/* ============================================================
   css/tarot-portau.css —— 深空蓝黑 & 青蓝霓虹 & 菱形卡槽
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    
    /* 融合了深空蓝与暗红色的流体质感背景 */
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(139, 30, 30, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 30, 30, 0.25) 0%, transparent 50%),
        linear-gradient(135deg, #070b12 0%, #12060c 30%, #0c1524 70%, #0d1117 100%);
    color: #cbd8e6;
}

/* 星空点缀保持青蓝微光 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #00bfff, transparent),
        radial-gradient(2px 2px at 40px 70px, #00bfff, transparent),
        radial-gradient(2px 2px at 50px 160px, #00bfff, transparent),
        radial-gradient(2px 2px at 90px 40px, #00bfff, transparent),
        radial-gradient(2px 2px at 130px 80px, #00bfff, transparent),
        radial-gradient(2px 2px at 160px 30px, #00bfff, transparent);
    background-size: 200px 200px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.game-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    background: rgba(5, 8, 15, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow: hidden;
}

/* ---------- 顶部 ---------- */
.game-header {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 4px 24px;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.game-title {
    color: #e0f0ff;
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-shadow: 0 0 30px rgba(0, 191, 255, 0.4), 0 0 10px rgba(0, 191, 255, 0.2);
}

.game-title::before { content: '♠ '; opacity: 0.6; color: #00bfff; }
.game-title::after  { content: ' ♥'; opacity: 0.6; color: #00bfff; }

.scoreboard {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(10, 18, 30, 0.7);
    border-radius: 60px;
    padding: 8px 26px;
    border: 1px solid rgba(0, 191, 255, 0.15);
    font-size: 1.1rem;
    color: #8da6cc;
}

.scoreboard .score { display: flex; align-items: center; gap: 10px; }
.scoreboard .num { 
    font-weight: 700; 
    font-size: 1.9rem; 
    color: #00bfff;
    text-shadow: 0 0 12px rgba(0, 191, 255, 0.5);
    min-width: 34px; 
    text-align: center; 
}
.scoreboard .vs { color: #556a82; }
.scoreboard .deck-info { color: #8da6cc; font-size: 0.95rem; }

.connection-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 18, 30, 0.7);
    border-radius: 60px;
    padding: 8px 20px;
    border: 1px solid rgba(0, 191, 255, 0.15);
    flex-wrap: wrap;
    justify-content: center;
}

.connection-panel input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 30px;
    padding: 8px 16px;
    color: #e0f0ff;
    font-size: 0.95rem;
    width: 150px;
    outline: none;
    transition: 0.3s;
}

.connection-panel input:focus {
    border-color: #00bfff;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

.connection-panel .btn {
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    background: linear-gradient(135deg, #1e3a5f, #0f2440);
    color: #cbd8e6;
}

.connection-panel .btn:hover { transform: scale(1.05); }
.connection-panel .btn-create { 
    background: linear-gradient(135deg, #00bfff, #0077b3); 
    color: #05080f;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

.peer-id-display {
    color: #00bfff;
    font-size: 0.95rem;
    background: rgba(0, 191, 255, 0.1);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 191, 255, 0.3);
    cursor: pointer;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 对手区 ---------- */
.opp-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding: 6px 0 4px;
}

.area-label {
    font-size: 1rem;
    color: #8da6cc;
    letter-spacing: 3px;
    opacity: 0.85;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.opp-hand {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
}

.opp-hand .card-slot {
    width: 78px;
    height: 117px;
    cursor: default;
}

/* ---------- 核心：菱形棋盘 ---------- */
.board-area {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 12px;
    min-height: 0;
}

.board {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 10px 0;
}

/* 卡槽基础容器 */
.board-slot {
    position: relative;
    width: 96px;
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* 菱形外框（负责发光与颜色） */
.board-slot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 191, 255, 0.4);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    z-index: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 菱形内部挖空（内衬底色） */
.board-slot::after {
    content: '';
    position: absolute;
    inset: 2px; /* 2px 控制边框粗细 */
    background: rgba(5, 10, 18, 0.75);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    z-index: 1;
    transition: all 0.3s;
    backdrop-filter: blur(2px);
}

/* 槽位字母 */
.slot-label {
    position: absolute;
    top: -12px; /* 浮在菱形上方 */
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #00bfff;
    opacity: 0.8;
    z-index: 3;
    white-space: nowrap;
    pointer-events: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.8);
}

/* 卡牌容器（居中嵌入菱形中，防止切角） */
.slot-card-container {
    position: relative;
    z-index: 2;
    width: 68%;  /* 略小于菱形宽度 */
    height: 78%; /* 略小于菱形高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8));
}

.board-slot .card-slot {
    width: 100%;
    height: 100%;
    cursor: default;
}

/* 大阿卡纳卡槽（金色发光） */
.board-slot.has-major::before {
    background: #ffd700;
    filter: drop-shadow(0 0 10px #ffd700);
}
.board-slot.has-major::after {
    background: rgba(30, 20, 0, 0.85); 
}

/* 可放置状态（脉冲发光） */
.board-slot.can-place::before {
    background: #00bfff;
    filter: drop-shadow(0 0 12px #00bfff);
    animation: pulseGlow 1.5s ease-in-out infinite;
}

.board-slot.target-slot::before {
    background: #00bfff;
    filter: drop-shadow(0 0 18px #00bfff);
}

.board-slot:hover {
    transform: scale(1.05);
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.6)); }
    50%      { filter: drop-shadow(0 0 20px rgba(0, 191, 255, 1)); }
}

/* ---------- 手牌区 ---------- */
.my-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding: 4px 0 6px;
}

.my-hand {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
}

.my-hand .card-slot {
    width: 100px;
    height: 150px;
}

/* 弃牌模式保留原图的暖橙红火光感 */
.my-hand.discard-mode .card-slot .card-front {
    border-color: #ff5555;
    animation: discardPulse 1s ease-in-out infinite;
    cursor: pointer;
}

.my-hand.discard-mode .card-slot:hover .card-front {
    box-shadow: 0 0 28px rgba(255, 85, 85, 0.6);
}

@keyframes discardPulse {
    0%, 100% { box-shadow: 0 0 14px rgba(255, 85, 85, 0.3); }
    50%      { box-shadow: 0 0 25px rgba(255, 85, 85, 0.7); }
}

/* ---------- 卡牌通用 ---------- */
.card-slot {
    perspective: 1000px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.card-slot:hover { transform: translateY(-6px); }
.card-slot.selected { transform: translateY(-12px) scale(1.06); }
.card-slot.selected .card-front {
    border-color: #00bfff;
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.5);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.card-slot.flipped .card-inner { transform: rotateY(180deg); }

.card-front, .card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px; /* 边缘柔和一点 */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ★ 正面：深蓝黑渐变 */
.card-front {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #0f1824, #1a2a3a);
    border: 1.5px solid rgba(0, 191, 255, 0.3);
    flex-direction: column;
    justify-content: flex-start;
}

/* 图片区 */
.card-img-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px 2px 0;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-img-placeholder {
    font-size: 1.8rem;
    opacity: 0.6;
    line-height: 1;
}

/* ★ 底部牌名标签 */
.card-name-label {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    color: #e0f0ff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(5, 10, 18, 0.9);
    border-top: 1px solid rgba(0, 191, 255, 0.25);
    padding: 3px 4px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 大阿卡纳牌名 */
.card-name-label.major {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(0, 80, 150, 0.9), rgba(0, 40, 80, 0.9));
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
    border-top-color: rgba(0, 191, 255, 0.6);
}

/* 背面 */
.card-back {
    background: linear-gradient(145deg, #05080f, #0c1420);
    border: 1.5px solid rgba(0, 191, 255, 0.3);
    position: relative;
}
.card-back::after {
    content: '✦';
    position: absolute;
    font-size: 3rem;
    color: #00bfff;
    opacity: 0.2;
    text-shadow: 0 0 30px rgba(0, 191, 255, 0.4);
}

.card-back img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1;}

/* ---------- 底部 ---------- */
.game-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 8px 0 12px;
}

.game-message {
    color: #cbd8e6;
    font-size: 1.15rem;
    padding: 12px 28px;
    background: rgba(10, 18, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    border-left: 4px solid #00bfff;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 760px;
    width: 92%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.game-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    border: none;
    border-radius: 50px;
    padding: 12px 26px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-discard { background: linear-gradient(135deg, #c94a4a, #7a2020); color: #fff; }
.btn-redraw  { background: linear-gradient(135deg, #1e3a5f, #0f2440); color: #cbd8e6; border: 1px solid #2a4a6a; }
.btn-reset   { background: linear-gradient(135deg, #00bfff, #0077b3); color: #05080f; box-shadow: 0 0 15px rgba(0, 191, 255, 0.4); }
.btn-rules {
    background: rgba(255, 255, 255, 0.04);
    color: #8da6cc;
    border: 1px solid rgba(0, 191, 255, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.04); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1400px) {
    .board-slot { width: 86px; height: 124px; }
    .board { gap: 7px; }
    .my-hand .card-slot { width: 92px; height: 138px; }
    .opp-hand .card-slot { width: 72px; height: 108px; }
    .game-title { font-size: 2.1rem; }
}

@media (max-width: 1200px) {
    .board-slot { width: 78px; height: 114px; }
    .board { gap: 6px; }
    .my-hand .card-slot { width: 84px; height: 126px; }
    .opp-hand .card-slot { width: 64px; height: 96px; }
    .my-hand { gap: 12px; }
    .opp-hand { gap: 9px; }
    .game-title { font-size: 1.9rem; }
    .scoreboard { font-size: 1rem; padding: 6px 20px; gap: 14px; }
    .scoreboard .num { font-size: 1.6rem; }
    .card-name-label { font-size: 0.65rem; }
    .slot-label { font-size: 0.7rem; top: -10px; }
}

@media (max-width: 1000px) {
    .board-slot { width: 64px; height: 92px; }
    .board { gap: 5px; }
    .slot-label { font-size: 0.6rem; top: -8px; }
    .my-hand .card-slot { width: 74px; height: 111px; }
    .opp-hand .card-slot { width: 56px; height: 84px; }
    .my-hand { gap: 10px; }
    .opp-hand { gap: 8px; }
    .game-title { font-size: 1.7rem; letter-spacing: 4px; }
    .game-message { font-size: 1rem; padding: 10px 22px; min-height: 46px; }
    .btn { padding: 10px 20px; font-size: 0.95rem; }
    .card-name-label { font-size: 0.6rem; padding: 2px 3px; }
    .card-img-placeholder { font-size: 1.4rem; }
}

@media (max-width: 820px) {
    .board-slot { width: 52px; height: 75px; }
    .board { gap: 4px; }
    .slot-label { font-size: 0.5rem; top: -7px; }
    .my-hand .card-slot { width: 60px; height: 90px; }
    .opp-hand .card-slot { width: 46px; height: 69px; }
    .my-hand { gap: 8px; }
    .opp-hand { gap: 6px; }
    .game-header { flex-direction: column; gap: 8px; padding: 4px 14px; }
    .header-left { justify-content: center; gap: 16px; }
    .game-title { font-size: 1.5rem; letter-spacing: 3px; }
    .scoreboard { font-size: 0.9rem; padding: 5px 16px; }
    .scoreboard .num { font-size: 1.4rem; }
    .connection-panel { padding: 6px 14px; }
    .connection-panel input { width: 120px; padding: 6px 12px; font-size: 0.85rem; }
    .connection-panel .btn { padding: 6px 14px; font-size: 0.85rem; }
    .peer-id-display { font-size: 0.85rem; padding: 4px 10px; }
    .card-name-label { font-size: 0.52rem; padding: 2px 2px; letter-spacing: 0; }
    .card-img-placeholder { font-size: 1.1rem; }
}

@media (max-width: 640px) {
    .board-slot { width: 42px; height: 60px; }
    .board { gap: 3px; }
    .slot-label { font-size: 0.4rem; top: -6px; }
    .my-hand .card-slot { width: 48px; height: 72px; }
    .opp-hand .card-slot { width: 36px; height: 54px; }
    .my-hand { gap: 6px; }
    .opp-hand { gap: 5px; }
    .area-label { font-size: 0.85rem; letter-spacing: 2px; }
    .game-message { font-size: 0.85rem; padding: 8px 16px; min-height: 40px; }
    .btn { padding: 8px 14px; font-size: 0.82rem; }
    .game-actions { gap: 10px; }
    .card-name-label { font-size: 0.46rem; padding: 1px 2px; }
    .card-img-wrap { padding: 2px 2px 0; }
    .card-img-placeholder { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .board-slot { width: 34px; height: 48px; }
    .board { gap: 2px; }
    .slot-label { font-size: 0.32rem; top: -5px; }
    .my-hand .card-slot { width: 40px; height: 60px; }
    .opp-hand .card-slot { width: 30px; height: 45px; }
    .my-hand { gap: 5px; }
    .opp-hand { gap: 4px; }
    .game-title { font-size: 1.2rem; letter-spacing: 2px; }
    .scoreboard { font-size: 0.8rem; padding: 4px 12px; gap: 10px; }
    .scoreboard .num { font-size: 1.15rem; min-width: 22px; }
    .game-message { font-size: 0.75rem; padding: 6px 12px; min-height: 36px; }
    .btn { padding: 6px 12px; font-size: 0.72rem; letter-spacing: 0.3px; }
    .card-name-label { font-size: 0.4rem; padding: 1px 1px; letter-spacing: 0; }
    .card-img-wrap { padding: 1px 1px 0; }
    .card-img-placeholder { font-size: 0.8rem; }
}

/* 按屏幕高度压缩 */
@media (max-height: 780px) and (min-width: 640px) {
    .board-slot { width: 70px; height: 100px; }
    .my-hand .card-slot { width: 78px; height: 117px; }
    .opp-hand .card-slot { width: 58px; height: 87px; }
    .game-title { font-size: 1.6rem; }
    .game-message { min-height: 40px; padding: 8px 20px; font-size: 0.95rem; }
    .btn { padding: 9px 20px; font-size: 0.92rem; }
    .card-name-label { font-size: 0.6rem; }
    .slot-label { top: -9px; font-size: 0.65rem; }
}

@media (max-height: 640px) and (min-width: 640px) {
    .board-slot { width: 60px; height: 85px; }
    .my-hand .card-slot { width: 66px; height: 99px; }
    .opp-hand .card-slot { width: 50px; height: 75px; }
    .area-label { font-size: 0.85rem; }
    .game-title { font-size: 1.35rem; }
    .game-message { min-height: 34px; padding: 6px 16px; font-size: 0.85rem; }
    .btn { padding: 8px 16px; font-size: 0.85rem; }
    .card-name-label { font-size: 0.52rem; padding: 2px 2px; }
    .slot-label { top: -8px; font-size: 0.55rem; }
}

/* ============================================================
   大字模式
   ============================================================ */
.btn-large-font {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    border: none;
    border-radius: 40px;
    padding: 12px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(0, 191, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #00bfff;
    border: 1px solid rgba(0, 191, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-family: inherit;
}
.btn-large-font:hover {
    background: rgba(0, 191, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

body.large-mode .card-name-label { font-size: 1.05rem; white-space: normal; line-height: 1.15; padding: 2px 2px; letter-spacing: 0; }
body.large-mode .card-name-label.major { font-size: 1.1rem; }
body.large-mode .card-img-wrap { padding: 2px 2px 0; }

body.large-mode .slot-label { font-size: 1.1rem; font-weight: 700; top: -16px; }
body.large-mode .area-label { font-size: 1.4rem; letter-spacing: 4px; opacity: 0.95; }
body.large-mode .game-message { font-size: 1.35rem; padding: 14px 30px; min-height: 60px; }
body.large-mode .btn { font-size: 1.2rem; padding: 14px 30px; }
body.large-mode .scoreboard { font-size: 1.25rem; }
body.large-mode .scoreboard .num { font-size: 2.3rem; }
body.large-mode .scoreboard .deck-info { font-size: 1.1rem; }
body.large-mode .game-title { font-size: 2.6rem; }

/* 大字模式 · 小屏压缩 */
@media (max-width: 1000px) {
    body.large-mode .card-name-label { font-size: 0.9rem; }
    body.large-mode .card-name-label.major { font-size: 0.95rem; }
    body.large-mode .slot-label { font-size: 0.9rem; top: -13px; }
    body.large-mode .area-label { font-size: 1.25rem; letter-spacing: 3px; }
    body.large-mode .game-message { font-size: 1.15rem; padding: 12px 24px; min-height: 50px; }
    body.large-mode .btn { font-size: 1.05rem; padding: 12px 24px; }
    body.large-mode .scoreboard .num { font-size: 2rem; }
}

@media (max-width: 820px) {
    body.large-mode .card-name-label { font-size: 0.72rem; line-height: 1.1; }
    body.large-mode .card-name-label.major { font-size: 0.78rem; }
    body.large-mode .slot-label { font-size: 0.75rem; top: -11px; }
    body.large-mode .area-label { font-size: 1.1rem; letter-spacing: 2px; }
    body.large-mode .game-message { font-size: 1rem; padding: 10px 18px; min-height: 44px; }
    body.large-mode .btn { font-size: 0.95rem; padding: 10px 18px; }
    body.large-mode .game-title { font-size: 1.9rem; }
    body.large-mode .scoreboard { font-size: 1rem; }
    body.large-mode .scoreboard .num { font-size: 1.7rem; }
}

@media (max-width: 640px) {
    body.large-mode .card-name-label { font-size: 0.6rem; }
    body.large-mode .card-name-label.major { font-size: 0.65rem; }
    body.large-mode .slot-label { font-size: 0.6rem; top: -9px; }
    body.large-mode .area-label { font-size: 0.95rem; letter-spacing: 1px; }
    body.large-mode .game-message { font-size: 0.9rem; padding: 8px 14px; min-height: 38px; }
    body.large-mode .btn { font-size: 0.88rem; padding: 8px 14px; }
    body.large-mode .game-title { font-size: 1.5rem; letter-spacing: 2px; }
    body.large-mode .scoreboard { font-size: 0.9rem; }
    body.large-mode .scoreboard .num { font-size: 1.4rem; }
    .btn-large-font { padding: 9px 16px; font-size: 0.85rem; bottom: 12px; left: 12px; }
}

@media (max-width: 480px) {
    body.large-mode .card-name-label { font-size: 0.5rem; padding: 1px 1px; }
    body.large-mode .card-name-label.major { font-size: 0.55rem; }
    body.large-mode .slot-label { font-size: 0.5rem; top: -8px; }
    body.large-mode .area-label { font-size: 0.8rem; letter-spacing: 1px; }
    body.large-mode .game-message { font-size: 0.8rem; padding: 6px 10px; min-height: 34px; }
    body.large-mode .btn { font-size: 0.78rem; padding: 7px 12px; }
    body.large-mode .game-title { font-size: 1.2rem; }
    body.large-mode .scoreboard .num { font-size: 1.15rem; }
    .btn-large-font { padding: 7px 12px; font-size: 0.75rem; bottom: 8px; left: 8px; }
}