/* 双人作战 · 平台样式 */
:root {
    --bg: #070a12;
    --bg-soft: #0b1120;
    --panel: #0e1526;
    --panel-2: #121a2e;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #e9edff;
    --muted: #8b93b0;
    --muted-2: #616a86;
    --p1: #33e1ff;
    --p2: #ff4d9d;
    --accent: #7c5cff;
    --gold: #ffd166;
    --green: #38e6a4;
    --danger: #ff5f7e;
    --radius: 16px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 520px at 12% -10%, rgba(51, 225, 255, 0.10), transparent 68%),
        radial-gradient(800px 480px at 88% 0%, rgba(255, 77, 157, 0.10), transparent 68%),
        radial-gradient(900px 600px at 50% 110%, rgba(124, 92, 255, 0.10), transparent 70%);
    pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* ---------------- 顶部导航 ---------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(7, 10, 18, 0.78);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 17px;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(51, 225, 255, 0.18), rgba(255, 77, 157, 0.18));
    border: 1px solid rgba(120, 200, 255, 0.35);
    box-shadow: 0 0 20px rgba(51, 225, 255, 0.15);
}

.logo-mark svg { width: 20px; height: 20px; }

.logo b { color: var(--text); }
.logo span { color: var(--p1); }

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: 6px;
}

.nav-links a {
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    transition: 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    width: 220px;
}

.nav-search svg { width: 15px; height: 15px; opacity: 0.6; flex: none; }

.nav-search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 13px;
}

.nav-search input::placeholder { color: var(--muted-2); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
    white-space: nowrap;
}

.btn:hover { background: rgba(255, 255, 255, 0.09); }

.btn.primary {
    border: 0;
    color: #04121a;
    background: linear-gradient(90deg, var(--p1), var(--accent));
    box-shadow: 0 10px 30px rgba(51, 225, 255, 0.22);
}

.btn.primary:hover { filter: brightness(1.08); }

.btn.pink {
    border: 0;
    color: #1a0410;
    background: linear-gradient(90deg, #ff79b5, var(--p2));
}

.btn.small { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    color: #04121a;
    background: linear-gradient(135deg, var(--p1), var(--accent));
}

.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-user span { font-size: 13px; color: var(--muted); }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    padding: 62px 0 38px;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(120, 170, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 170, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 72%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(51, 225, 255, 0.08);
    border: 1px solid rgba(51, 225, 255, 0.22);
    color: #9be9ff;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--p1);
    box-shadow: 0 0 10px var(--p1);
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.15;
    letter-spacing: -1px;
    font-weight: 800;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--p1), #b39cff 60%, var(--p2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 15px;
    max-width: 560px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 12px;
    min-width: 300px;
}

.stat {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(14, 21, 38, 0.72);
    border: 1px solid var(--line);
}

.stat b {
    display: block;
    font-size: 24px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.stat b.c1 { color: var(--p1); }
.stat b.c2 { color: var(--p2); }
.stat b.c3 { color: var(--gold); }
.stat b.c4 { color: var(--green); }
.stat span { font-size: 12px; color: var(--muted); }

.notice {
    margin: 8px 0 26px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 209, 102, 0.06);
    border: 1px solid rgba(255, 209, 102, 0.18);
    color: #e9d59a;
    font-size: 13px;
}

/* ---------------- 筛选栏 ---------------- */
.filterbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 22px;
    flex-wrap: wrap;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.chip {
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 13px;
    transition: 0.2s;
}

.chip:hover { color: var(--text); border-color: var(--line-strong); }

.chip.active {
    color: #04121a;
    border-color: transparent;
    background: linear-gradient(90deg, var(--p1), #9ad7ff);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(51, 225, 255, 0.2);
}

.sort-select {
    padding: 9px 14px;
    border-radius: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    outline: none;
}

/* ---------------- 游戏卡片 ---------------- */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 26px 0 14px;
}

.section-title h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.section-title span { color: var(--muted); font-size: 12px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(51, 225, 255, 0.35);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(51, 225, 255, 0.1);
}

.card-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0a0f1c;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.card:hover .card-cover img { transform: scale(1.06); }

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    color: #cfe6ff;
    background: rgba(8, 14, 26, 0.78);
    border: 1px solid rgba(120, 180, 255, 0.24);
    backdrop-filter: blur(6px);
}

.p2badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffd8e8;
    background: rgba(255, 77, 157, 0.16);
    border: 1px solid rgba(255, 77, 157, 0.35);
}

.card-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(6, 10, 18, 0.1), rgba(6, 10, 18, 0.8));
    opacity: 0;
    transition: 0.25s;
}

.card:hover .card-play { opacity: 1; }

.card-play b {
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13px;
    color: #04121a;
    background: linear-gradient(90deg, var(--p1), var(--accent));
    box-shadow: 0 8px 26px rgba(51, 225, 255, 0.3);
}

.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-body h3 { margin: 0; font-size: 16px; letter-spacing: 0.3px; }

.card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.keys {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: #9fb4d8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plays { font-size: 11px; color: var(--muted-2); white-space: nowrap; }

.empty-state {
    display: none;
    padding: 60px 0;
    text-align: center;
    color: var(--muted);
}

.empty-state b { display: block; font-size: 17px; color: var(--text); margin-bottom: 6px; }

/* ---------------- 页脚 ---------------- */
footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    padding: 30px 0 42px;
    color: var(--muted-2);
    font-size: 12px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-inner a { color: var(--muted); margin-left: 16px; }
.footer-inner a:hover { color: var(--text); }

/* ---------------- 游戏运行页 ---------------- */
.play-page {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.play-bar {
    height: 58px;
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    background: rgba(9, 13, 22, 0.96);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 5;
}

.icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    place-items: center;
    color: var(--muted);
    transition: 0.2s;
}

.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.icon-btn svg { width: 16px; height: 16px; }

.play-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.play-title img { width: 34px; height: 26px; border-radius: 6px; object-fit: cover; }
.play-title h1 { margin: 0; font-size: 15px; white-space: nowrap; }
.play-title small { color: var(--muted-2); font-size: 11px; }

.play-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    font-family: ui-monospace, monospace;
    font-weight: 700;
    font-size: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.play-score i { font-style: normal; color: var(--muted-2); font-size: 12px; }
.play-score .s1 { color: var(--p1); }
.play-score .s2 { color: var(--p2); }

.play-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #05070d;
}

.play-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #06080f;
}

.loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    background: rgba(6, 8, 15, 0.92);
    z-index: 3;
    transition: opacity 0.3s;
}

.loading.hide { opacity: 0; pointer-events: none; }

.spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--p1);
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading small { color: var(--muted); }

/* 侧边抽屉 */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 13, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
    z-index: 40;
}

.drawer-backdrop.show { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 92vw);
    background: #0c1220;
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    transition: transform 0.28s cubic-bezier(.2, .9, .3, 1);
    z-index: 41;
    display: flex;
    flex-direction: column;
}

.drawer.show { transform: none; }

.drawer-head {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.drawer-head h2 { margin: 0; font-size: 15px; }

.drawer-body { padding: 20px; overflow: auto; flex: 1; }

.drawer-body h3 { font-size: 12px; color: var(--muted); font-weight: 600; margin: 18px 0 8px; letter-spacing: 1px; }
.drawer-body h3:first-child { margin-top: 0; }

.drawer-body p { margin: 0; color: #c2cae6; font-size: 13px; }

.keyrow { display: flex; gap: 8px; flex-wrap: wrap; }

.kbd {
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: #cfd9f7;
}

.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; color: var(--muted); }
.field input {
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #080d18;
    outline: none;
}

.field input:focus { border-color: rgba(51, 225, 255, 0.45); }

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.switch {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    position: relative;
    transition: 0.2s;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8b93b0;
    transition: 0.2s;
}

.switch.on { background: rgba(51, 225, 255, 0.25); }
.switch.on::after { left: 23px; background: var(--p1); box-shadow: 0 0 12px rgba(51, 225, 255, 0.5); }

.record-list { display: flex; flex-direction: column; gap: 8px; }

.record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 12px;
    color: var(--muted);
}

.record-item b { color: var(--text); font-weight: 600; }
.record-item .win { color: var(--gold); font-size: 11px; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translate(-50%, 20px);
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(14, 21, 38, 0.96);
    border: 1px solid rgba(51, 225, 255, 0.3);
    color: #d9f6ff;
    font-size: 13px;
    opacity: 0;
    transition: 0.3s;
    z-index: 60;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 通用内页 ---------------- */
.page-head {
    padding: 44px 0 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.page-head h1 { margin: 0; font-size: 28px; letter-spacing: 0.5px; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.panel + .panel { margin-top: 18px; }

.panel h2 {
    margin: 0 0 14px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel h2::before {
    content: "";
    width: 3px;
    height: 13px;
    border-radius: 2px;
    background: linear-gradient(var(--p1), var(--accent));
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th, .table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.table td { color: #c9d2ee; }
.table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid var(--line-strong);
    color: var(--muted);
}

.tag.p1 { color: #9be9ff; border-color: rgba(51, 225, 255, 0.35); background: rgba(51, 225, 255, 0.08); }
.tag.p2 { color: #ffb3d0; border-color: rgba(255, 77, 157, 0.35); background: rgba(255, 77, 157, 0.08); }
.tag.draw { color: #ffe3a3; border-color: rgba(255, 209, 102, 0.35); background: rgba(255, 209, 102, 0.08); }

.rank-list { display: flex; flex-direction: column; gap: 10px; }

.rank-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.rank-row .no {
    width: 26px;
    text-align: center;
    font-weight: 800;
    font-family: ui-monospace, monospace;
    color: var(--muted-2);
}

.rank-row:nth-child(1) .no { color: var(--gold); }
.rank-row:nth-child(2) .no { color: #d7e3ff; }
.rank-row:nth-child(3) .no { color: #ffb98a; }

.rank-row img { width: 64px; height: 44px; border-radius: 8px; object-fit: cover; }
.rank-row .info { flex: 1; min-width: 0; }
.rank-row .info b { display: block; font-size: 14px; }
.rank-row .info span { font-size: 12px; color: var(--muted-2); }

/* ---------------- 登录页 ---------------- */
.auth-wrap {
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.auth-card {
    width: min(420px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.auth-card h1 { margin: 0 0 6px; font-size: 22px; }
.auth-card p.sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }

.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 18px;
}

.tabs button {
    flex: 1;
    padding: 8px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
}

.tabs button.active { background: rgba(51, 225, 255, 0.14); color: #c8f4ff; font-weight: 600; }

.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.form-field input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #080d18;
    outline: none;
    transition: 0.2s;
}

.form-field input:focus { border-color: rgba(51, 225, 255, 0.45); box-shadow: 0 0 0 3px rgba(51, 225, 255, 0.08); }

.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.alert.err { color: #ff9fb2; background: rgba(255, 95, 126, 0.08); border: 1px solid rgba(255, 95, 126, 0.22); }
.alert.ok { color: #86f2c8; background: rgba(56, 230, 164, 0.08); border: 1px solid rgba(56, 230, 164, 0.22); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
    .nav-search { display: none; }
    .nav-links { display: none; }
    .hero { padding-top: 42px; }
    .hero-side { grid-template-columns: repeat(4, 1fr); width: 100%; min-width: 0; }
    .stat { padding: 12px; }
    .stat b { font-size: 20px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .play-title small { display: none; }
    .play-score { font-size: 15px; padding: 5px 10px; }
}

@media (max-width: 560px) {
    .container { width: calc(100% - 28px); }
    .grid { grid-template-columns: 1fr; }
    .hero-side { grid-template-columns: repeat(2, 1fr); }
    .hero-actions .btn { flex: 1; }
    .play-bar { gap: 8px; padding: 0 10px; }
    .play-title h1 { font-size: 13px; }
}
