:root {
    --game-ink: #17233c;
    --game-page: #f6f8fc;
    --game-border: #dce3ee;
    --game-primary: #2f6fed;
    --game-focus: #f6b73c;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.game-page {
    margin: 0;
    background: var(--game-page);
    color: var(--game-ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.game-skip-link {
    position: fixed;
    top: .5rem;
    left: .5rem;
    z-index: 2000;
    padding: .7rem 1rem;
    border-radius: .65rem;
    background: #fff;
    color: var(--game-ink);
    transform: translateY(-160%);
}

.game-skip-link:focus {
    transform: none;
}

.game-shell-header {
    position: relative;
    z-index: 100;
    min-height: 64px;
    padding: .65rem clamp(.85rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--game-border);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(23, 35, 60, .08);
}

.game-shell-brand,
.game-back-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--game-ink);
    font-weight: 750;
    text-decoration: none;
}

.game-shell-brand-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: .75rem;
    background: var(--game-ink);
    color: #fff;
    font-family: ui-monospace, monospace;
}

.game-shell-actions {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.game-language-note {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #46536a;
    font-size: .875rem;
}

.game-back-link {
    min-height: 44px;
    padding: .55rem .8rem;
    border: 1px solid var(--game-border);
    border-radius: .75rem;
    background: #fff;
}

.game-back-link:hover {
    border-color: var(--game-primary);
    color: var(--game-primary);
}

.game-shell-main {
    min-height: calc(100vh - 64px);
}

.game-page :where(a, button, input, select, [tabindex]):focus-visible {
    outline: 3px solid var(--game-ink) !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--game-focus) !important;
}

@media (max-width: 767.98px) {
    .game-language-note {
        display: none;
    }

    .game-shell-brand > span:last-child {
        display: none;
    }

    .game-back-link {
        font-size: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
