/* ============================================================
   SprachenPortal – Raketen-Flug (Spiel) Styles
   ============================================================ */

.game-body {
    overflow: auto;
}

.game {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem 1rem 2.5rem;
    width: 100%;
    max-width: 680px;
    /* Einziges Layout-Kind von body (display:flex, column) - .stars ist
       position:fixed und nimmt an diesem Layout nicht teil. Der freie
       Platz auf der Querachse (hier: horizontal) geht an Auto-Raender,
       das zentriert .game im Fenster statt es links kleben zu lassen. */
    margin: 0 auto;
}

.game__title {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    background: linear-gradient(90deg, #ffffff, var(--akzent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.game__hint {
    color: var(--text-leise);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.game__hint kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.05rem 0.4rem;
    font-size: 0.85em;
}

.game__stage {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 620px;
    /* Nur die Anzeigegroesse waechst. Die Canvas-Aufloesung in spiel.php
       bleibt 420x640 - game.js rechnet Physik in diesen Pixeln, ein
       groesseres Canvas-Attribut wuerde das Spielgefuehl verschieben.
       aspect-ratio haelt das Seitenverhaeltnis, #game skaliert per CSS
       auf 100% davon. */
    aspect-ratio: 420 / 640;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#game {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #232434 0%, #1b2b40 55%, #14304a 100%);
    touch-action: none;
    cursor: pointer;
}

.game__back {
    margin-top: 1.2rem;
}

.game__back a {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .88rem;
    color: var(--akzent);
    text-decoration: none;
    font-size: 0.95rem;
}

.game__back a:hover {
    text-decoration: underline;
}
