* { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.main-content { min-height:calc(100vh - 160px); padding:clamp(20px,4vw,40px) 12px 48px; background:#fff; }
[data-theme="dark"] .main-content { background:linear-gradient(180deg,rgba(9,15,22,.96),rgba(5,10,16,.92)); }
.mod-container { max-width:860px; margin:0 auto; }
.mod-card {
    background:#fff; border-radius:36px;
    padding:clamp(18px,2.5vw,32px);
    box-shadow:0 10px 24px rgba(15,23,42,.08);
    border:1px solid rgba(148,163,184,.22);
    position:relative; overflow:hidden;
}
[data-theme="dark"] .mod-card {
    background:linear-gradient(155deg,rgba(10,31,47,.97),rgba(5,16,25,.98) 58%,rgba(8,27,40,.97)),#0b1d2b;
    box-shadow:0 20px 48px rgba(0,0,0,.32); border-color:rgba(94,188,245,.24);
}
.mod-card::before {
    content:""; position:absolute; inset:0; pointer-events:none;
    background:radial-gradient(circle at top right,rgba(255,194,92,.12),transparent 24%),
               radial-gradient(circle at top left,rgba(74,219,255,.12),transparent 24%);
}
.mod-title {
    font-weight:800; font-size:clamp(1.5rem,4vw,2.6rem);
    background:linear-gradient(145deg,#0f5fd0,#00a7d8 48%,#f97316);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
    margin:0 0 4px; line-height:1.1; text-align:center;
}
[data-theme="dark"] .mod-title {
    background:linear-gradient(145deg,#f8fdff,#7bd7ff 48%,#ffd27a);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.mod-sub { text-align:center; color:#87bfdb; font-size:.88rem; letter-spacing:.16em; text-transform:uppercase; margin:0 0 20px; }
.status-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; flex-wrap:wrap; gap:10px; }
.stat-chip {
    background:linear-gradient(180deg,rgba(14,42,60,.96),rgba(8,28,42,.96));
    padding:9px 18px; border-radius:100px; border:1px solid rgba(98,177,223,.38);
    color:#ceecff; font-size:clamp(.8rem,2.8vw,.95rem); font-weight:500;
}
.stat-chip span { font-weight:800; font-size:clamp(1rem,3.5vw,1.35rem); color:#fff7b5; margin-left:5px;
    text-shadow:0 0 12px #ffbf00; }
.arena {
    background:linear-gradient(180deg,rgba(7,24,36,.9),rgba(7,24,36,.7));
    border:1px solid rgba(95,179,228,.22); border-radius:28px;
    padding:24px; margin-bottom:18px; text-align:center;
}
.phase-label { color:#7bd7ff; font-size:.8rem; letter-spacing:.18em; text-transform:uppercase; margin-bottom:16px; }
.grid-wrap { display:inline-grid; gap:6px; margin:0 auto; }
.grid-cell {
    border-radius:10px; aspect-ratio:1/1;
    width:clamp(44px,10vw,64px);
    cursor:default; transition:all .15s;
    position:relative; border:2px solid transparent;
}
.grid-cell.lit {
    box-shadow:0 0 18px currentColor, inset 0 0 8px rgba(255,255,255,.12);
}
.grid-cell.hidden-cell { background:rgba(255,255,255,.06) !important; border-color:rgba(255,255,255,.08) !important; }
.grid-cell.clickable { cursor:pointer; }
.grid-cell.clickable:hover { transform:scale(1.08); filter:brightness(1.2); }
.grid-cell.correct-ans { border-color:#4affb5 !important; box-shadow:0 0 20px #4affb5 !important; }
.grid-cell.wrong-ans   { border-color:#ff4444 !important; box-shadow:0 0 20px #ff4444 !important; }
.phase-msg { color:#cbeeff; font-size:clamp(1rem,3.5vw,1.4rem); font-weight:700; min-height:2em;
    display:flex; align-items:center; justify-content:center; gap:8px; }
.btn-primary {
    background:linear-gradient(160deg,#ffae5a,#f57c2e); border:none;
    font-size:clamp(.9rem,3vw,1.2rem); font-weight:700; padding:13px 28px;
    border-radius:60px; color:#0e2b37; letter-spacing:1px;
    box-shadow:0 8px 0 #a1440b,0 8px 28px #ffb45b; cursor:pointer;
    transition:.08s linear; user-select:none; display:block; margin:0 auto;
}
.btn-primary:active { transform:translateY(6px); box-shadow:0 2px 0 #a1440b; }
.level-row { display:flex; gap:8px; justify-content:center; margin-bottom:18px; flex-wrap:wrap; }
.level-btn {
    background:rgba(255,255,255,.06); border:1px solid rgba(95,179,228,.3);
    color:#7bd7ff; font-size:.82rem; padding:7px 16px; border-radius:30px;
    cursor:pointer; transition:.1s; font-weight:600;
}
.level-btn:hover, .level-btn.active { background:rgba(74,219,255,.14); border-color:#4adbff; color:#fff; }
