/* Shared responsive game layout. Scoped to game-page. */

body {
    background-color: #07152c;
    background-image: url('img/hitzoeker-wallpaper.png');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}


.game-page {margin:0; min-height:100vh; font:16px/1.4 system-ui,sans-serif;}
.game-page *, .game-page *::before,.game-page *::after {box-sizing:border-box;}
.game-shell {width:min(100%,1600px); min-height:100vh; min-height:100dvh; margin:auto; padding:clamp(12px,2vw,28px); display:flex; flex-direction:column; gap:14px;}
.game-header {display:flex; align-items:center; justify-content:center; gap:24px; text-align:center;}
.game-header h1,.game-header h2 {margin:0;}
.game-logo {display:block; max-width:min(55%,360px); height:clamp(65px,10vh,100px); object-fit:contain;}
.game-status {display:grid; grid-template-columns:auto minmax(80px,1fr) auto; align-items:center; gap:24px;}
.game-status progress {width:100%; height:12px;}
.game-columns {display:grid; grid-template-columns:minmax(240px, 1fr) minmax(0,2fr); gap:18px; align-items:stretch;}
.game-panel {min-width:0; margin:0; padding:clamp(12px,1.4vw,20px); border:1px solid var(--game-border); border-radius:12px; background:var(--game-panel);}
.game-panel h2,.game-panel p {margin:0; overflow-wrap:anywhere;}
.game-media {display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:16px;}
.game-media img {width:min(280px,100%); height:auto; aspect-ratio:1; object-fit:contain; border-radius:8px;}
.game-stack {display:grid; gap:12px; min-width:0; margin:0;}
.game-questions fieldset {padding-top:8px;}
.game-questions legend {font-weight:700; padding:0 6px;}
.game-options {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px;}
.game-options label {display:flex; align-items:center; gap:8px; padding:12px 10px; min-height:48px; border:1px solid transparent; border-radius:8px; background:var(--game-option); cursor:pointer; overflow-wrap:anywhere;}
.game-options input {flex:none; margin:0; accent-color:var(--game-accent);}
.game-options label:has(input:checked) {border-color:var(--game-accent); box-shadow:inset 0 0 0 1px var(--game-accent);}

.game-options label:focus-within,
.game-button:focus-visible {
    outline: 3px solid var(--game-accent);
    outline-offset: 4px;
}

.game-button {
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 10px;
    background: var(--game-accent);
    color: var(--game-button-text);
    font: 800 20px system-ui, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.45);
    transition: all 0.2s ease;
}

.game-button:not(.game-secondary):hover {
    filter: brightness(1.15);
    box-shadow: 0 0 20px var(--game-accent);
    transform: translateY(-2px);
}

.game-button:not(.game-secondary):active {
    transform: translateY(1px);
}


.game-center {width:min(100%,680px); margin:auto; text-align:center; display:grid; gap:20px;}
.game-center form {text-align:left;}
.game-center select,.game-center input[type=number] {display:block; width:100%; padding:10px; margin-top:6px; border:1px solid var(--game-border); border-radius:8px; font:inherit;}
.game-years {display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.game-footer {margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:14px;}
.game-footer form {margin:0;}
.game-secondary {background:transparent; border:1px solid var(--game-border); color:inherit; width:auto;}
@media(max-width:1050px){.game-options{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.game-columns{grid-template-columns:1fr;}.game-header{gap:8px;flex-direction:column;}.game-status{gap:8px;font-size:13px;}.game-media img{width:min(220px,100%);}.game-footer{flex-wrap:wrap;}}
@media(max-width:360px){.game-options,.game-years{grid-template-columns:1fr;}}
@media(min-width:1051px) and (max-height:850px){.game-shell{gap:10px;padding:12px 24px;}.game-panel{padding:10px 14px;}.game-stack{gap:8px;}.game-logo{height:65px;}.game-options label{padding:8px;min-height:42px;}.game-media{gap:10px;}}
