/* ========================================
12. TABLET RESPONSIVE
======================================== */

* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #080d1a;
    --panel: #111a2d;
    --line: #263550;
    --text: #f8fafc;
    --muted: #9aabc4;
    --gold: #f5ad32;
    --red: #ef4444;
    --blue: #3b82f6;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(ellipse at 50% -15%, #26335b 0%, #10182c 42%, #070b15 80%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

button,
select {
    font: inherit;
}

button:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.hidden {
    display: none !important;
}

.screen {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
    padding: 30px 0 55px;
}

.topbar,
.arena-top,
.fighter-heading,
.roster-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar,
.arena-top {
    margin-bottom: 24px;
}

.eyebrow,
.section-label {
    margin: 0;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.topbar h1,
.arena-top h1 {
    margin: 7px 0;
    font-size: clamp(36px, 6vw, 62px);
    line-height: .95;
}

.topbar h1 span,
.arena-top h1 span {
    color: var(--gold);
}

.subtitle,
.fighter-heading > p,
.roster-heading p {
    color: var(--muted);
}

.subtitle {
    margin: 9px 0 0;
    font-size: 13px;
}

.fighter-heading > p,
.roster-heading p {
    font-size: 10px;
    letter-spacing: 1px;
}

.game-tag {
    padding: 10px 14px;
    border: 1px solid #66502c;
    border-radius: 8px;
    background: #382a173b;
    color: #f7c66f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}

.panel,
.player-card {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(145deg, #17233a, #0e1729);
    box-shadow: 0 15px 35px #0003;
}

.mode-panel {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 27px;
    padding: 17px 20px;
}

.mode-group,
.setting-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.button-row,
.target-buttons {
    display: flex;
    gap: 7px;
}

.choice-btn,
.setting-group select,
.target-btn,
.back-btn,
.franchise-tabs button {
    padding: 10px 13px;
    border: 1px solid #34445f;
    border-radius: 7px;
    background: #0a1222;
    color: #dbe5f5;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.choice-btn.active {
    border-color: var(--gold);
    background: var(--gold);
    color: #17120a;
}

.setting-group select {
    min-width: 130px;
}

.arena-setting {
    margin-left: auto;
}

.fighter-heading {
    align-items: end;
}

.fighter-heading h2 {
    margin: 4px 0 0;
    font-size: 28px;
}

.fighter-heading > p,
.roster-heading p {
    margin: 0;
}

.player-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 14px;
}

.player-card {
    min-width: 0;
    padding: 15px;
}

.player-one {
    border-top: 3px solid var(--red);
}

.player-two {
    border-top: 3px solid var(--blue);
}

.player-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.player-role {
    margin-left: auto;
    color: var(--muted);
    font-size: 9px;
}

.player-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.red {
    background: var(--red);
}

.blue {
    background: var(--blue);
}

.fighter-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 12px 0;
}

.fighter-info canvas {
    flex: none;
    width: 105px;
    height: 105px;
    border: 1px solid #34445f;
    border-radius: 10px;
    background: #0a1222;
}

.fighter-info h3 {
    margin: 0 0 3px;
    font-size: 25px;
}

.franchise {
    margin: 0 0 7px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
}

.description {
    margin: 0;
    color: #b6c3d6;
    font-size: 11px;
    line-height: 1.5;
}

.moves {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.moves p {
    min-width: 0;
    margin: 0;
    padding: 8px;
    border-radius: 6px;
    background: #0a1222;
}

.moves b,
.moves span {
    display: block;
}

.moves b {
    margin-bottom: 4px;
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 1px;
}

.moves span {
    color: #c8d3e4;
    font-size: 9px;
    line-height: 1.4;
}

.roster-heading {
    margin-top: 25px;
}

.roster-heading h3 {
    margin: 0;
    font-size: 20px;
}

.franchise-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 10px 0;
}

.franchise-tabs button {
    flex: none;
    padding: 8px 11px;
    background: #111b2e;
    color: #c7d2e4;
    font-size: 10px;
}

.franchise-tabs button:hover,
.franchise-tabs button.active {
    border-color: var(--gold);
    color: var(--gold);
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
}

.char-card {
    min-width: 0;
    padding: 7px 5px;
    border: 1px solid #2a3a55;
    border-radius: 9px;
    background: #111b2e;
    color: white;
    cursor: pointer;
}

.char-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: #1b2941;
}

.char-card canvas {
    display: block;
    width: 100%;
    max-width: 70px;
    aspect-ratio: 1;
    margin: auto;
    border-radius: 7px;
}

.char-card span {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.target-btn {
    background: #111b2e;
    color: #aebbd0;
    font-size: 10px;
}

.target-active-red {
    border-color: var(--red);
    background: #7f1d1d;
    color: white;
}

.target-active-blue {
    border-color: var(--blue);
    background: #1e3a8a;
    color: white;
}

.start-btn {
    padding: 14px 23px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(100deg, #f5ad32, #f97316);
    color: #17120a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
}

.start-btn:hover,
.result-actions button:hover {
    filter: brightness(1.12);
}

.arena-screen {
    max-width: 1100px;
}

.arena-top {
    margin-bottom: 15px;
}

.arena-top h1 {
    font-size: 42px;
}

.back-btn {
    background: #111b2e;
}

.battle-hud {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.hud-player {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border: 1px solid #34445f;
    border-radius: 9px;
    background: #111b2e;
}

.hud-player span {
    color: #cbd5e1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hud-player strong {
    font-size: 23px;
}

.hud-player small {
    color: var(--muted);
    font-size: 9px;
}

.red-hud {
    border-left: 3px solid var(--red);
}

.blue-hud {
    border-right: 3px solid var(--blue);
    text-align: right;
}

.fight-label {
    color: var(--gold);
    font-size: 22px;
    font-weight: 900;
}

.game-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid #52617a;
    border-radius: 12px;
    background: #080d1a;
    box-shadow: 0 20px 55px #0008;
}

.game-frame canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.arena-hint {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 10px;
    background: #080d1acc;
    color: #dbe5f5;
    font-size: 10px;
    text-align: center;
}

.arena-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

@media (max-width: 850px) {

.roster-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mode-panel {
    gap: 18px;
}

.arena-setting {
    margin-left: 0;
}


}

/* ========================================
13. MOBIELE RESPONSIVE
======================================== */

@media (max-width: 600px) {

.screen {
    width: calc(100% - 22px);
    padding-top: 20px;
}

.topbar {
    align-items: flex-start;
}

.game-tag {
    padding: 8px;
    font-size: 8px;
}

.player-cards {
    grid-template-columns: 1fr;
}

.roster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fighter-heading > p {
    display: none;
}

.select-footer {
    align-items: stretch;
    flex-direction: column;
}

.start-btn {
    width: 100%;
}

.target-buttons > * {
    flex: 1;
}

.fighter-info canvas {
    width: 90px;
    height: 90px;
}

.arena-hint {
    font-size: 8px;
}

.game-frame canvas {
    min-height: 340px;
}

.battle-hud {
    gap: 7px;
}

.hud-player {
    padding: 9px;
}

.hud-player strong {
    font-size: 18px;
}


}
/* Resultatenscherm */
.result-overlay { position: fixed; inset: 0; z-index: 1000; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(3,7,18,.88); backdrop-filter:blur(12px); overflow-y:auto; }
.result-panel { width:min(760px,100%); padding:clamp(22px,4vw,40px); border:1px solid #f5ad32; border-radius:20px; background:linear-gradient(145deg,#192641,#0a1121); box-shadow:0 25px 90px #000b; text-align:center; color:#f8fafc; }
.result-eyebrow { color:#f5ad32; font-weight:900; letter-spacing:3px; font-size:12px; }
.result-panel h2 { font:900 clamp(34px,6vw,60px)/1 'Barlow Condensed',sans-serif; margin:12px 0; color:#f5ad32; }
.music-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0; padding: 12px 16px; border: 1px solid #334155; border-radius: 10px; background: #111d30; color: #c3d0e2; font-size: 13px; }
.music-controls button { min-width: 110px; padding: 9px 14px; border: 1px solid #a28349; border-radius: 7px; background: #293248; color: #ffe0a4; cursor: pointer; font: inherit; font-weight: 700; }
.music-controls button[aria-pressed="false"] { color: #b7c5d8; border-color: #58667d; }
.music-controls input { width: 130px; accent-color: #f5ad32; cursor: pointer; }
.music-controls [data-music-status] { margin-left: auto; color: #a7bbd3; }
.music-controls :focus-visible { outline: 2px solid #f5ad32; outline-offset: 4px; }
@media(max-width:580px) { .music-controls [data-music-status] { width: 100%; margin-left: 0; } }
.random-character-btn { margin: 8px 0; padding: 10px 14px; border: 1px solid #7685a4; border-radius: 8px; background: #24324a; color: #eef3ff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.random-character-btn:hover { background: #334663; border-color: #f5ad32; }
.random-character-btn:focus-visible { outline: 2px solid #f5ad32; outline-offset: 3px; }
.random-character-status { margin: 12px 0; color: #c9d7ee; font-size: 13px; line-height: 1.5; }
.random-character-status:empty { display: none; }
.result-time {color:#9aabc4;}
.result-stats-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:24px 0;}
.result-stats-grid article {padding:18px;border-radius:12px;background:#0d1526;border:1px solid #263550;text-align:left;}
.result-stats-grid h3 {margin:0 0 14px;font-size:18px;}
.result-stats {display:grid;gap:9px;}
.result-stats span {display:flex;justify-content:space-between;gap:8px;color:#b7c7dc;font-size:13px;}
.result-stats b {color:#fff;}
.result-actions {display:flex;justify-content:center;flex-wrap:wrap;gap:10px;}
.result-actions button {cursor:pointer;border:1px solid #445672;border-radius:9px;background:#1a2942;color:white;font-weight:800;padding:13px 17px;}
.result-actions button:first-child {background:#f5ad32;color:#17120a;border-color:#f5ad32;}
.result-actions button:hover {filter:brightness(1.2);}
@media(max-width:580px){.result-stats-grid{grid-template-columns:1fr;}.result-panel{margin:auto;}}
