@font-face {
    font-family: "Bitcount Prop Single";
    src: url("../fonts/bitcount-prop-single/latin-ext.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Bitcount Prop Single";
    src: url("../fonts/bitcount-prop-single/latin.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --menu-font: "Bitcount Prop Single", "Arial Black", sans-serif;
    --corner-size: clamp(2.875rem, 7vmin, 4rem);
    --edge-gap: clamp(1rem, 2.7vmin, 2rem);
    --bottom-gap: max(var(--edge-gap), env(safe-area-inset-bottom));
    --right-gap: max(var(--edge-gap), env(safe-area-inset-right));
    font-family: "Segoe UI", sans-serif;
    color: #f7f4f1;
    background-color: #171516;
}

html.large-text {
    font-size: 112.5%;
}

html.high-contrast {
    color: #fff;
    background: #000;
}

html.high-contrast body {
    color: #fff;
    background: #000;
}

html.high-contrast a {
    color: #ff0;
}

html.high-contrast :focus-visible {
    outline: 3px solid #ff0;
    outline-offset: 3px;
}

html.high-contrast .account-panel,
html.high-contrast .cookie-notice {
    color: #fff;
    background: #000;
    border-color: #fff;
    box-shadow: none;
}

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    display: grid;
    background: #171516 url("../menu/background.png") center / cover no-repeat fixed;
}

.scene-content {
    align-self: center;
    width: min(calc(100% - 2rem), 68rem);
    margin-inline: auto;
    padding-block: 2rem calc(var(--corner-size) + var(--bottom-gap) + 1.5rem);
}

.site-flashes {
    position: fixed;
    z-index: 4;
    inset: 1rem 1rem auto;
    display: grid;
    justify-items: center;
    pointer-events: none;
}

.site-flash {
    max-width: min(100%, 42rem);
    margin: 0;
    padding: 0.75rem 1rem;
    border: 2px solid #a7f58d;
    color: #fff;
    background: #10200d;
    text-align: center;
}

html.high-contrast .site-flash {
    border-color: #fff;
    color: #fff;
    background: #000;
}

h1 {
    margin: 0 0 1rem;
    font: 600 clamp(2rem, 5vw, 3.5rem)/1.1 var(--menu-font);
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.art-button {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 4px;
    padding: 0;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}

.art-button img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 150ms ease-out;
}

.art-button:focus-visible,
.account-panel :focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (hover: hover) {
    .art-button:hover img {
        transform: translateY(-4px);
    }
}

.art-button:active img {
    transform: translateY(1px);
}

.scene-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 2;
}

.corner-button {
    position: fixed;
    bottom: var(--bottom-gap);
    width: var(--corner-size);
    height: var(--corner-size);
}

.corner-button img {
    /* Match both silhouettes to the height of the 215 × 256 account icon. */
    height: calc(var(--corner-size) * 256 / 215);
    width: auto;
}

.home-button {
    left: max(var(--edge-gap), env(safe-area-inset-left));
    width: auto;
}

.account-button {
    right: var(--right-gap);
}

.settings-button {
    right: calc(var(--right-gap) + var(--corner-size) + 0.65rem);
}

.settings-button img {
    /* The gear is square, so fit it to the button instead of the account height. */
    height: var(--corner-size);
}

.account-panel {
    position: fixed;
    inset: auto var(--right-gap) calc(var(--bottom-gap) + var(--corner-size) + 0.65rem) auto;
    margin: 0;
    padding: 0.375rem;
    max-width: calc(100vw - 2rem);
    background: #161415;
    color: #fff;
    border: 2px solid #ef2026;
    box-shadow: 3px 3px 0 #050505;
    font: 600 1.35rem/1.1 var(--menu-font);
}

.account-panel a,
.account-panel button,
.account-panel .account-name {
    display: block;
    padding: 0.7rem 1rem;
    overflow-wrap: anywhere;
}

.account-panel a,
.account-panel button {
    width: 100%;
    border: 0;
    font: inherit;
    text-align: left;
    text-decoration: none;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.account-panel a:is(:hover, :focus-visible),
.account-panel button:is(:hover, :focus-visible) {
    background: #91191d;
}

@media (prefers-reduced-motion: reduce) {
    .art-button img {
        transition: none;
    }
    .art-button:is(:hover, :active) img {
        transform: none;
    }
}

.account-panel .account-name {
    color: #ffd7d3;
}

.account-panel .account-privacy {
    margin-top: 0.25rem;
    border-top: 1px solid #4a2427;
    font-size: 1rem;
    color: #d6ccca;
}

/* ---------- informacja o cookies ---------- */

.cookie-notice {
    position: fixed;
    inset: auto 0 0;
    z-index: 3;
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
    background: #161415;
    border-top: 2px solid #ef2026;
    box-shadow: 0 -3px 0 #050505;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-notice-inner {
    width: min(100% - 2rem, 68rem);
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem 1.5rem;
}

.cookie-notice-text {
    flex: 1;
    min-width: 0;
}

.cookie-notice-text p {
    margin: 0;
}

.cookie-notice details {
    margin-top: 0.5rem;
    color: #d6ccca;
}

.cookie-notice summary {
    color: #ff8a85;
    font-weight: 600;
    cursor: pointer;
}

.cookie-notice ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.cookie-notice li + li {
    margin-top: 0.3rem;
}

.cookie-notice a {
    color: #ff8a85;
}

.cookie-notice code {
    color: #f7f4f1;
}

.cookie-notice-button {
    flex: none;
    min-height: 44px;
    padding: 0.6rem 1.2rem;
    border: 2px solid #ef2026;
    color: #fff;
    background: #230f11;
    font: 600 1.1rem/1 var(--menu-font);
    cursor: pointer;
}

.cookie-notice-button:is(:hover, :focus-visible) {
    background: #91191d;
}

@media (max-width: 600px) {
    .cookie-notice-inner {
        flex-direction: column;
        align-items: stretch;
    }
}
