/* ==================== PRE-GAME / DECK SELECTION ==================== */
.play-pregame { display:flex; flex-direction:column; align-items:center; height:100%; padding:16px 32px; box-sizing:border-box; overflow:hidden; }
.play-pregame-inner { text-align:center; max-width:1100px; width:100%; display:flex; flex-direction:column; height:100%; min-height:0; }
.play-setup-row { display:flex; gap:24px; align-items:stretch; justify-content:center; flex:1; min-height:0; overflow:hidden; }
.play-setup-col { flex:1; max-width:440px; display:flex; flex-direction:column; min-height:0; }
.play-setup-label { color:#9ca3af; font-size:12px; font-weight:700; letter-spacing:1px; margin-bottom:8px; text-transform:uppercase; flex-shrink:0; }
.play-vs { color:#ef4444; font-size:28px; font-weight:900; align-self:center; flex-shrink:0; padding:0 8px; text-shadow:0 0 20px rgba(239,68,68,0.3); }
.play-deck-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:6px; overflow-y:auto; flex:1; min-height:0; padding:4px; align-content:start; scrollbar-width:thin; scrollbar-color:rgba(239,68,68,0.3) transparent; border:1px solid rgba(255,255,255,0.06); border-radius:8px; background:rgba(0,0,0,0.2); }
.play-deck-grid::-webkit-scrollbar { width:6px; }
.play-deck-grid::-webkit-scrollbar-track { background:transparent; }
.play-deck-grid::-webkit-scrollbar-thumb { background:rgba(239,68,68,0.3); border-radius:3px; }
.play-deck-card { cursor:pointer; border-radius:8px; overflow:hidden; border:2px solid transparent; transition:all 0.2s; position:relative; }
.play-deck-card img { width:100%; display:block; border-radius:6px; }
.play-deck-card:hover { border-color:rgba(255,200,50,0.5); transform:translateY(-2px); }
.play-deck-card.selected { border-color:#ef4444; box-shadow:0 0 16px rgba(239,68,68,0.4); }
.play-deck-card .play-deck-name { position:absolute; bottom:0; left:0; right:0; background:rgba(0,0,0,0.8); color:#fff; font-size:8px; padding:2px 3px; text-align:center; font-weight:600; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.play-deck-card .play-deck-set { position:absolute; top:4px; left:4px; background:rgba(0,0,0,0.7); color:#d4a017; font-size:8px; padding:1px 4px; border-radius:3px; font-weight:700; }
.play-deck-section-header { grid-column: 1 / -1; color:#6b7280; font-size:10px; font-weight:700; letter-spacing:1px; padding:6px 0 2px; border-bottom:1px solid rgba(255,255,255,0.06); }
.play-deck-card.play-deck-invalid { opacity:0.4; filter:grayscale(0.6); }
.play-deck-card.play-deck-invalid:hover { border-color:rgba(239,68,68,0.4); transform:none; }
.play-ai-select { display:flex; gap:6px; align-items:center; }
.play-ai-btn { background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); color:#9ca3af; padding:6px 14px; border-radius:6px; cursor:pointer; font-size:12px; font-weight:600; text-transform:none; }
.play-ai-btn:hover { border-color:rgba(239,68,68,0.3); color:#ef4444; }
.play-ai-btn.active { background:rgba(239,68,68,0.15); border-color:#ef4444; color:#ef4444; }
.play-start-btn { background:linear-gradient(135deg,#dc2626,#b91c1c); color:white; border:none; padding:12px 40px; border-radius:10px; font-size:16px; font-weight:800; cursor:pointer; margin-top:12px; letter-spacing:1px; text-transform:uppercase; transition:all 0.3s; flex-shrink:0; }
.play-start-btn:hover { background:linear-gradient(135deg,#ef4444,#dc2626); box-shadow:0 4px 24px rgba(239,68,68,0.4); transform:translateY(-2px); }

/* ==================== MODE SELECT ==================== */
.play-mode-btn { display:flex; flex-direction:column; align-items:center; gap:4px; width:100%; padding:20px; margin-bottom:12px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:12px; cursor:pointer; transition:all 0.2s; color:#fff; }
.play-mode-btn:hover { border-color:rgba(239,68,68,0.5); background:rgba(239,68,68,0.08); transform:translateY(-2px); box-shadow:0 4px 20px rgba(239,68,68,0.2); }
.play-mode-icon { font-size:36px; }
.play-mode-label { font-size:18px; font-weight:800; letter-spacing:1px; }
.play-mode-desc { font-size:12px; color:#6b7280; }

/* ==================== LOBBY ==================== */
.play-lobby-back-btn { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); color:#9ca3af; width:36px; height:36px; border-radius:8px; cursor:pointer; font-size:18px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.play-lobby-back-btn:hover { border-color:#ef4444; color:#ef4444; }
.lobby-section { margin-bottom:16px; }
.lobby-section-title { color:#9ca3af; font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; margin-bottom:8px; }
.lobby-deck-grid { max-height:180px; }
.lobby-refresh-btn { background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); color:#9ca3af; padding:4px 10px; border-radius:6px; cursor:pointer; font-size:11px; }
.lobby-refresh-btn:hover { border-color:#ef4444; color:#ef4444; }
.lobby-table-list { border:1px solid rgba(255,255,255,0.06); border-radius:8px; background:rgba(0,0,0,0.2); max-height:200px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgba(239,68,68,0.3) transparent; }
.lobby-table-row { display:flex; align-items:center; padding:10px 14px; border-bottom:1px solid rgba(255,255,255,0.04); gap:12px; }
.lobby-table-row:last-child { border-bottom:none; }
.lobby-table-player { flex:1; color:#e5e7eb; font-weight:600; font-size:14px; }
.lobby-table-time { color:#6b7280; font-size:11px; }
.lobby-join-btn { background:rgba(16,185,129,0.15); border:1px solid rgba(16,185,129,0.4); color:#10b981; padding:6px 16px; border-radius:6px; cursor:pointer; font-size:12px; font-weight:700; }
.lobby-join-btn:hover { background:rgba(16,185,129,0.25); border-color:#10b981; }
.lobby-empty { color:#555a6b; font-size:13px; text-align:center; padding:24px; }

/* Waiting Room */
.waiting-spinner { width:40px; height:40px; border:3px solid rgba(245,158,11,0.2); border-top-color:#f59e0b; border-radius:50%; animation:waitSpin 1s linear infinite; margin:16px auto; }
@keyframes waitSpin { to { transform:rotate(360deg); } }

/* ==================== GAME BOARD ==================== */
.play-board {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, #141824 0%, #0b0d14 70%);
    position: relative;
    overflow: hidden;
}
.play-board::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M0 30h60M30 0v60' stroke='rgba(255,255,255,0.015)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}
.play-board > * {
    position: relative;
    z-index: 1;
}


/* ==================== GAME LOG ==================== */
.play-log {
    position: absolute;
    top: 44px;
    right: 8px;
    width: 180px;
    max-height: 140px;
    overflow-y: auto;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 5px 7px;
    font-size: 9px;
    color: #6b7280;
    z-index: 20;
    line-height: 1.4;
    scrollbar-width: thin;
    backdrop-filter: blur(6px);
    opacity: 0.7;
    transition: opacity 0.2s;
}
.play-log:hover {
    opacity: 1;
}
.play-log .log-entry { margin-bottom: 2px; }
.play-log .log-entry.player { color: #10b981; }
.play-log .log-entry.ai { color: #ef4444; }
.play-log .log-entry.system { color: #d4a017; font-weight: 600; }


/* ==================== HINT BAR (top) ==================== */
.play-hint {
    background: linear-gradient(90deg, rgba(59,130,246,0.1), rgba(16,185,129,0.06));
    border-bottom: 1px solid rgba(59,130,246,0.15);
    padding: 7px 16px;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    flex-shrink: 0;
    letter-spacing: 0.2px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.play-hint .hint-icon { font-size: 14px; }
.play-hint .hint-text { }
.play-hint-key {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
    color: #d1d5db;
    margin: 0 2px;
}


/* ==================== PLAYER ROW (horizontal: Ground | Center | Space) ==================== */
.play-player-row {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* ==================== ARENA SIDES (left = ground, right = space) ==================== */
.play-arena-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    min-height: 140px;
    position: relative;
    overflow: visible;
}

/* Ground Arena - warm brown tint (left side) */
.play-arena-ground {
    background: rgba(139,92,40,0.08);
    border-right: 1px solid rgba(139,92,40,0.12);
}

/* Space Arena - dark blue tint (right side) */
.play-arena-space {
    background: rgba(59,130,246,0.06);
    border-left: 1px solid rgba(59,130,246,0.08);
}

/* Arena label (vertical text) */
.play-arena-label {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.06);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    pointer-events: none;
    user-select: none;
}

/* Cards row inside arenas */
.play-cards-row {
    display: flex;
    gap: 8px;
    padding: 4px 24px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* ==================== CENTER COLUMN (Base + Leader + Stats) ==================== */
.play-center-col {
    width: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    background: rgba(0,0,0,0.35);
    border-left: 1px solid rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.04);
}

/* Base + Leader stacked vertically in center */
.play-center-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Base card - landscape */
.play-base-card {
    width: 110px;
    height: 79px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    transition: border-color 0.2s;
    cursor: pointer;
}
.play-base-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-base-card:hover {
    border-color: rgba(255,200,50,0.4);
}

/* Leader card - landscape (horizontal) */
.play-leader-card {
    width: 110px;
    height: 79px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}
.play-leader-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-leader-card:hover {
    border-color: rgba(255,200,50,0.4);
}
/* Deployed leader - flips to portrait (vertical) */
.play-leader-card.deployed {
    width: 79px;
    height: 110px;
    border-color: rgba(16,185,129,0.4);
    box-shadow: 0 0 10px rgba(16,185,129,0.3);
}

/* Stat blocks under base/leader */
.play-zone-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.play-stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.play-stat {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
    line-height: 1.2;
}
.play-stat-hp { color: #ef4444; }
.play-stat-hp.hp-high { color: #10b981; }
.play-stat-hp.hp-mid { color: #eab308; }
.play-stat-hp.hp-low { color: #ef4444; }
.play-stat-label {
    color: #555a6b;
    font-size: 7px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Opponent row - top border */
.play-row-opponent {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.play-row-opponent .play-center-col {
    background: rgba(0,0,0,0.45);
}
/* Player row - bottom border */
.play-row-player {
    border-top: 1px solid rgba(255,255,255,0.04);
}
.play-row-player .play-center-col {
    background: rgba(10,14,24,0.5);
}


/* ==================== CENTER DIVIDER ==================== */
.play-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 4px 16px;
    background: linear-gradient(90deg, transparent 0%, rgba(239,68,68,0.12) 30%, rgba(239,68,68,0.12) 70%, transparent 100%);
    border-top: 1px solid rgba(239,68,68,0.2);
    border-bottom: 1px solid rgba(239,68,68,0.2);
    flex-shrink: 0;
    min-height: 28px;
}
.play-phase-label {
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.play-round-label {
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
}
.play-initiative-icon {
    font-size: 14px;
    color: #eab308;
    text-shadow: 0 0 6px rgba(234,179,8,0.4);
}


/* ==================== GAME CARDS (board units) ==================== */
.play-card {
    width: 110px;
    height: 154px;
    border-radius: 8px;
    overflow: visible;
    border: 2px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    position: relative;
    flex-shrink: 0;
    background: #0a0e17;
}
.play-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}
.play-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.play-card:hover {
    border-color: rgba(255,200,50,0.6);
    transform: translateY(-4px);
    z-index: 5;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* Card name overlay (hidden on board, visible as tooltip) */
.play-card .play-card-name {
    display: none;
}

/* --- Card stat overlays --- */
.play-card .play-card-stats {
    position: absolute;
    bottom: -1px;
    left: -1px;
    right: -1px;
    display: flex;
    justify-content: space-between;
    padding: 3px 6px;
    background: rgba(0,0,0,0.9);
    font-size: 13px;
    font-weight: 800;
    border-radius: 0 0 7px 7px;
}
.play-card .play-card-power { color: #f59e0b; }
.play-card .play-card-hp { color: #ef4444; }

/* Cost badge (top-left, blue circle) */
.play-card .play-card-cost {
    position: absolute;
    top: 3px;
    left: 3px;
    background: rgba(10,15,30,0.92);
    color: #60a5fa;
    font-size: 12px;
    font-weight: 900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(96,165,250,0.35);
    z-index: 2;
}

/* Shield icon (top-right) */
.play-card .play-card-shield {
    position: absolute;
    top: 3px;
    right: 3px;
    color: #60a5fa;
    font-size: 16px;
    text-shadow: 0 0 8px rgba(96,165,250,0.6);
    z-index: 2;
}

/* Damage counter (center overlay) */
.play-card .play-card-damage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220,38,38,0.85);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    pointer-events: none;
    z-index: 3;
    border: 2px solid rgba(255,255,255,0.15);
}
.play-card .play-card-damage.visible {
    display: flex;
}


/* ==================== CARD STATES ==================== */

/* Exhausted - CRITICAL: full 90-degree rotation */
.play-card.exhausted {
    transform: rotate(90deg);
    opacity: 0.85;
    border-color: rgba(255,255,255,0.05);
    margin: 22px 14px;
    /* margin compensates for rotated bounding box so cards don't overlap */
}
.play-card.exhausted:hover {
    transform: rotate(90deg) translateY(-4px);
    opacity: 0.95;
    border-color: rgba(255,200,50,0.4);
}

/* Targetable - green glow with pulse */
.play-card.targetable {
    border-color: #10b981;
    box-shadow: 0 0 16px rgba(16,185,129,0.5);
    animation: targetPulse 1.2s ease-in-out infinite;
    cursor: crosshair;
}
@keyframes targetPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(16,185,129,0.3); }
    50% { box-shadow: 0 0 22px rgba(16,185,129,0.7); }
}

/* Selected for attack - red glow */
.play-card.selected-attack {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239,68,68,0.6);
}

/* Playable (hand cards) - green border glow */
.play-card.playable {
    border-color: rgba(16,185,129,0.5);
    box-shadow: 0 0 10px rgba(16,185,129,0.2);
}
.play-card.unplayable {
    opacity: 0.55;
}


/* ==================== PLAYER HAND ==================== */
.play-hand-area {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 8px 20px 10px;
    display: flex;
    justify-content: center;
    min-height: 140px;
    flex-shrink: 0;
}
.play-hand {
    display: flex;
    align-items: flex-end;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
}
.play-hand .play-card {
    width: 120px;
    height: 168px;
    margin-left: -15px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, z-index 0s;
}
.play-hand .play-card:first-child {
    margin-left: 0;
}
.play-hand .play-card:hover {
    transform: translateY(-30px) scale(1.1);
    z-index: 10;
    box-shadow: 0 12px 32px rgba(0,0,0,0.7);
}
.play-hand .play-card.playable {
    border-color: rgba(16,185,129,0.5);
    box-shadow: 0 0 12px rgba(16,185,129,0.2);
}
.play-hand .play-card.playable:hover {
    border-color: rgba(16,185,129,0.7);
    box-shadow: 0 0 20px rgba(16,185,129,0.35), 0 12px 32px rgba(0,0,0,0.7);
}
.play-hand .play-card.unplayable {
    opacity: 0.5;
    filter: brightness(0.7);
}


/* ==================== ACTION BAR ==================== */
.play-action-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(8,10,16,0.96);
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.play-action-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #d1d5db;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s;
}
.play-action-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.play-action-resource { color: #10b981; border-color: rgba(16,185,129,0.25); }
.play-action-resource:hover { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.4); }
.play-action-cancel { color: #f59e0b; border-color: rgba(245,158,11,0.25); }
.play-action-cancel:hover { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.4); }
.play-action-quit { color: #ef4444; border-color: rgba(239,68,68,0.15); }
.play-action-quit:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
.play-action-info { color: #93c5fd; font-size: 12px; font-weight: 500; }


/* ==================== CARD ZOOM OVERLAY ==================== */
.play-zoom-overlay {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 260px;
    height: 364px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 48px rgba(0,0,0,0.85), 0 0 24px rgba(96,165,250,0.2);
    border: 2px solid rgba(255,255,255,0.2);
    display: none;
    transition: opacity 0.15s;
}
.play-zoom-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-zoom-overlay.visible {
    display: block;
}


/* ==================== GAME OVER OVERLAY ==================== */
.play-gameover {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.92);
    z-index: 100;
    backdrop-filter: blur(6px);
}
.play-gameover-inner {
    text-align: center;
    animation: gameoverFadeIn 0.5s ease-out;
}
.play-gameover-title {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.play-gameover-title.win {
    color: #10b981;
    text-shadow: 0 0 40px rgba(16,185,129,0.4);
}
.play-gameover-title.lose {
    color: #ef4444;
    text-shadow: 0 0 40px rgba(239,68,68,0.4);
}
.play-gameover-sub {
    color: #9ca3af;
    font-size: 16px;
    margin-bottom: 32px;
}
.play-gameover-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 14px 44px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}
.play-gameover-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 24px rgba(239,68,68,0.4);
    transform: translateY(-2px);
}
@keyframes gameoverFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .play-card {
        width: 77px;
        height: 108px;
        border-radius: 6px;
    }
    .play-hand .play-card {
        width: 84px;
        height: 118px;
        margin-left: -10px;
    }
    .play-hand .play-card:hover {
        transform: translateY(-20px) scale(1.08);
    }
    .play-center-col {
        width: 130px;
        padding: 4px;
        gap: 4px;
    }
    .play-base-card {
        width: 90px;
        height: 65px;
    }
    .play-leader-card {
        width: 90px;
        height: 65px;
    }
    .play-leader-card.deployed {
        width: 65px;
        height: 90px;
    }
    .play-arena-side {
        min-height: 100px;
        padding: 4px;
    }
    .play-hand-area {
        min-height: 100px;
        padding: 6px 10px 8px;
    }
    .play-cards-row {
        gap: 5px;
        padding: 2px 16px;
    }
    .play-card.exhausted {
        margin: 16px 8px;
    }
    .play-stat {
        font-size: 12px;
    }
    .play-zone-stats {
        gap: 4px;
    }
    .play-gameover-title {
        font-size: 36px;
        letter-spacing: 3px;
    }
    .play-zoom-overlay {
        width: 180px;
        height: 252px;
    }
    .play-action-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .play-player-row {
        flex-direction: column;
    }
    .play-center-col {
        width: 100%;
        flex-direction: row;
        padding: 4px 8px;
        gap: 8px;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.04);
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .play-arena-side {
        min-height: 80px;
    }
    .play-arena-ground {
        border-right: none;
        border-bottom: 1px solid rgba(139,92,40,0.12);
    }
    .play-arena-space {
        border-left: none;
        border-top: 1px solid rgba(59,130,246,0.08);
    }
    .play-zone-stats {
        gap: 6px;
    }
    .play-stat {
        font-size: 11px;
        min-width: 20px;
    }
    .play-hint {
        font-size: 11px;
        padding: 5px 10px;
    }
    .play-card {
        width: 66px;
        height: 92px;
    }
    .play-hand .play-card {
        width: 72px;
        height: 101px;
    }
}
