@font-face {
    font-family: "BriscaBody";
    src: url("/site-fonts/BriscaBody.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "BriscaDisplay";
    src: url("/site-fonts/BriscaDisplay.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
}

:root {
    --site-body: "BriscaBody", system-ui, sans-serif;
    --site-display: "BriscaDisplay", Georgia, serif;
    --ink: #fff8df;
    --ink-dark: #172019;
    --muted: #cbd5ce;
    --paper: #f3ecda;
    --green: #17422e;
    --green-deep: #091711;
    --green-black: #050b08;
    --wine: #681a2d;
    --wine-deep: #310b16;
    --gold: #f0ca68;
    --gold-dark: #7a531a;
    --focus: #fff3a3;
    --header-height: 76px;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    min-width: 280px;
    margin: 0;
    overflow-x: hidden;
    background: var(--green-black);
    color: var(--ink);
    font-family: var(--site-body);
    font-size: 18px;
    line-height: 1.58;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-underline-offset: 0.18em;
}

button,
select {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.site-skip {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: 4px;
    background: var(--paper);
    color: var(--ink-dark);
    transform: translateY(-180%);
}

.site-skip:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px max(24px, calc((100vw - 1280px) / 2));
    border-bottom: 1px solid rgb(240 202 104 / 35%);
    background: rgb(5 11 8 / 96%);
    box-shadow: 0 10px 28px rgb(0 0 0 / 25%);
}

.site-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-brand img {
    width: 178px;
    height: auto;
}

.site-brand span {
    max-width: 170px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
}

.site-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.site-navigation > a {
    padding: 9px 8px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}

.site-navigation > a:hover,
.site-navigation > a:focus-visible {
    border-bottom-color: var(--gold);
    color: var(--ink);
}

.site-language select {
    width: 190px;
    max-width: 190px;
    min-height: 42px;
    padding: 7px 34px 7px 10px;
    border: 1px solid rgb(240 202 104 / 55%);
    border-radius: 4px;
    background: #13241b;
    color: var(--ink);
    cursor: pointer;
}

.site-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(240 202 104 / 55%);
    border-radius: 4px;
    background: #13241b;
    color: var(--ink);
}

.site-menu-icon,
.site-menu-icon::before,
.site-menu-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    content: "";
}

.site-menu-icon {
    position: relative;
}

.site-menu-icon::before {
    position: absolute;
    top: -7px;
}

.site-menu-icon::after {
    position: absolute;
    top: 7px;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    margin-top: 0;
    letter-spacing: 0;
}

h1,
h2 {
    font-family: var(--site-display);
    font-weight: 700;
    line-height: 1.08;
}

h1 {
    max-width: 900px;
    margin-right: auto;
    margin-bottom: 14px;
    margin-left: auto;
    font-size: 52px;
}

h2 {
    max-width: 850px;
    margin-bottom: 18px;
    font-size: 42px;
}

h3 {
    margin-bottom: 8px;
    color: var(--gold);
    font-family: var(--site-display);
    font-size: 26px;
    line-height: 1.18;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.section-lead {
    max-width: 820px;
    margin: 0 0 34px;
    color: var(--muted);
    font-size: 21px;
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - var(--header-height) - 96px);
    padding: 24px 24px 28px;
    background: var(--green-deep) url("/site-assets/brisca-menu-background.webp") center / cover no-repeat;
}

.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgb(3 12 8 / 42%);
    content: "";
}

.hero__inner {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero__body {
    max-width: 1180px;
    margin: 0 auto 18px;
    color: #f5f2e7;
    font-size: 20px;
}

.game-frame {
    position: relative;
    width: min(100%, max(66.6667vw, 900px));
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgb(240 202 104 / 70%);
    border-radius: 6px;
    background: #020403;
    box-shadow: 0 24px 60px rgb(0 0 0 / 46%);
}

.game-frame__facade,
.game-frame__embed {
    position: absolute;
    inset: 0;
}

.game-frame__facade {
    display: grid;
    place-items: center;
}

.game-frame__facade::after {
    position: absolute;
    inset: 0;
    background: rgb(3 10 7 / 28%);
    content: "";
}

.game-frame__facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-frame__facade .primary-action {
    position: absolute;
    z-index: 2;
}

.game-frame__embed {
    width: 100%;
    height: 100%;
}

.game-frame__embed[hidden],
.game-frame__facade[hidden] {
    display: none;
}

.primary-action {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid #ffe39a;
    border-radius: 5px;
    background: var(--wine);
    box-shadow: 0 10px 22px rgb(0 0 0 / 32%);
    color: #fffaf0;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.primary-action:hover {
    background: #841f39;
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid currentColor;
}

.download-band,
.stats-band,
.content-band,
.final-cta {
    padding: 78px 0;
}

.download-band {
    padding-top: 32px;
    border-top: 1px solid rgb(240 202 104 / 30%);
    border-bottom: 1px solid rgb(240 202 104 / 30%);
    background: var(--wine-deep);
}

.download-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 56px;
}

.download-band__copy {
    max-width: 620px;
}

.download-band__copy > p:not(.eyebrow) {
    margin-bottom: 12px;
}

.download-band__note {
    color: #e9cfd5;
    font-size: 16px;
}

.store-options {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.store-option {
    display: grid;
    width: 190px;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.store-option small {
    min-height: 40px;
    color: #e6cbd1;
    font-size: 13px;
    line-height: 1.3;
}

.store-qr {
    display: block;
    position: relative;
    width: 124px;
    height: 124px;
    box-sizing: border-box;
    border: 9px solid #fff;
    object-fit: contain;
}

.store-qr.is-provisional {
    background-color: #fff;
    background-image: repeating-conic-gradient(#111 0 25%, #fff 0 50%);
    background-size: 18px 18px;
}

.store-qr.is-provisional::before,
.store-qr.is-provisional::after {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 7px solid #111;
    background: #fff;
    content: "";
}

.store-qr.is-provisional::before {
    top: 2px;
    left: 2px;
}

.store-qr.is-provisional::after {
    right: 2px;
    bottom: 2px;
}

.store-badge {
    display: flex;
    width: 190px;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid rgb(255 255 255 / 52%);
    border-radius: 6px;
    background: #090b0a;
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
}

.store-badge.is-provisional {
    cursor: not-allowed;
    opacity: 0.72;
}

.store-badge__icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 26px;
    height: 30px;
}

.store-badge__icon--play {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #7edc87;
}

.store-badge__icon--apple {
    border-radius: 48% 48% 52% 52%;
    background: #fff;
}

.stats-band {
    background: #102a1e;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 36px 0 0;
    border: 1px solid rgb(240 202 104 / 34%);
    background: rgb(240 202 104 / 34%);
}

.stats-grid > div {
    min-height: 156px;
    padding: 24px;
    background: #0c2118;
}

.stats-grid dt {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.3;
}

.stats-grid dd {
    margin: 12px 0 0;
    color: var(--gold);
    font-family: var(--site-display);
    font-size: 42px;
    line-height: 1;
}

.stats-status {
    min-height: 28px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.content-band--light {
    background: var(--paper);
    color: var(--ink-dark);
}

.content-band--light .section-lead {
    color: #46524a;
}

.content-band--light .eyebrow,
.content-band--light h3 {
    color: var(--wine);
}

.content-band--wine {
    background: var(--wine-deep);
}

.content-band--deep {
    background: var(--green-deep);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px;
    padding: 0;
    margin: 40px 0 72px;
    list-style: none;
}

.steps li {
    position: relative;
    padding-top: 58px;
    border-top: 2px solid var(--wine);
}

.steps li > span {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--wine);
    font-family: var(--site-display);
    font-size: 34px;
    line-height: 1;
}

.steps p,
.mode-grid p,
.feature-list p {
    margin: 0;
}

.editorial-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
    align-items: center;
    gap: 42px;
}

.editorial-feature--reverse {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.editorial-feature img,
.wide-art {
    width: 100%;
    border: 1px solid rgb(240 202 104 / 45%);
    border-radius: 6px;
    box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
}

.wide-art {
    max-height: 620px;
    margin: 20px 0 42px;
    object-fit: cover;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.mode-grid article {
    padding-top: 22px;
    border-top: 1px solid rgb(240 202 104 / 55%);
}

.feature-list {
    display: grid;
    gap: 20px;
}

.feature-list article {
    padding-bottom: 18px;
    border-bottom: 1px solid rgb(240 202 104 / 24%);
}

.feature-list article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.feature-list h3 {
    font-size: 22px;
}

.final-cta {
    border-top: 1px solid rgb(240 202 104 / 34%);
    background: var(--wine);
    text-align: center;
}

.final-cta h2,
.final-cta p {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.final-cta .primary-action {
    margin-top: 14px;
    background: var(--green-deep);
}

.site-footer {
    padding: 44px 0;
    border-top: 1px solid rgb(240 202 104 / 26%);
    background: #030705;
    color: var(--muted);
    font-size: 14px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px 40px;
}

.site-footer strong {
    color: var(--ink);
    font-family: var(--site-display);
    font-size: 24px;
}

.site-footer p {
    margin: 4px 0 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 20px;
}

.site-footer__inner > p:last-child {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid rgb(255 255 255 / 12%);
}

.policy-main {
    min-height: 70vh;
    padding: 64px 24px 90px;
    background: var(--paper);
    color: var(--ink-dark);
}

.policy-article {
    width: min(880px, 100%);
    margin: 0 auto;
}

.policy-article > header {
    padding-bottom: 32px;
    border-bottom: 2px solid var(--wine);
}

.policy-article h1 {
    margin-left: 0;
    color: #281019;
    text-align: left;
}

.policy-back {
    display: inline-block;
    margin-bottom: 36px;
    color: var(--wine);
    font-weight: 700;
}

.policy-intro {
    max-width: 780px;
    font-size: 21px;
}

.policy-updated {
    margin-bottom: 0;
    color: #5a665e;
    font-size: 14px;
}

.policy-toc {
    margin: 32px 0 46px;
    padding: 22px 24px;
    border-left: 4px solid var(--wine);
    background: #e6ddc9;
}

.policy-toc strong {
    color: var(--wine);
}

.policy-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 28px;
    margin-bottom: 0;
}

.policy-toc a {
    color: #342029;
}

.policy-sections {
    display: grid;
    gap: 44px;
}

.policy-section {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.policy-section h2 {
    margin-bottom: 12px;
    color: var(--wine);
    font-family: var(--site-display);
    font-size: 30px;
}

.policy-section p {
    margin: 0;
}

.policy-action {
    margin-top: 52px;
    padding-top: 32px;
    border-top: 2px solid var(--wine);
}

@media (max-width: 1320px) {
    .site-menu-button {
        display: grid;
    }

    .site-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - var(--header-height));
        align-items: stretch;
        padding: 18px 24px 24px;
        overflow-y: auto;
        border-bottom: 1px solid rgb(240 202 104 / 42%);
        background: #07100c;
        box-shadow: 0 18px 38px rgb(0 0 0 / 35%);
    }

    .site-navigation.is-open {
        display: grid;
    }

    .site-navigation > a {
        min-height: 44px;
        padding: 10px 4px;
        border-bottom: 1px solid rgb(255 255 255 / 12%);
    }

    .site-language select {
        width: 100%;
        max-width: none;
        margin-top: 8px;
    }

    .download-band__inner {
        grid-template-columns: 1fr;
    }

    .store-options {
        justify-content: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 68px;
    }

    body {
        font-size: 17px;
    }

    .site-header {
        padding-right: 16px;
        padding-left: 16px;
    }

    .site-brand img {
        width: 150px;
    }

    .site-brand span {
        display: none;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 34px;
    }

    h3 {
        font-size: 23px;
    }

    .section-inner {
        width: min(100% - 32px, 1180px);
    }

    .hero {
        min-height: auto;
        padding: 28px 12px 32px;
    }

    .game-frame {
        width: 100%;
    }

    .hero__body,
    .section-lead,
    .policy-intro {
        font-size: 18px;
    }

    .primary-action {
        min-height: 48px;
        padding: 10px 18px;
    }

    .download-band,
    .stats-band,
    .content-band,
    .final-cta {
        padding: 56px 0;
    }

    .store-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .store-option {
        width: auto;
    }

    .store-badge {
        width: 100%;
        min-height: 66px;
    }

    .store-qr {
        width: 112px;
        height: 112px;
    }

    .steps,
    .editorial-feature,
    .editorial-feature--reverse {
        grid-template-columns: 1fr;
    }

    .steps {
        gap: 28px;
        margin-bottom: 52px;
    }

    .editorial-feature--reverse img {
        order: 0;
    }

    .editorial-feature--reverse .feature-list {
        order: 1;
    }

    .policy-main {
        padding: 42px 16px 70px;
    }

    .policy-toc ol {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 30px;
    }

    .stats-grid,
    .mode-grid,
    .store-options {
        grid-template-columns: 1fr;
    }

    .stats-grid > div {
        min-height: 124px;
    }

    .store-option {
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: center;
        gap: 10px 14px;
        text-align: left;
    }

    .store-option small {
        grid-column: 2;
    }

    .store-qr {
        grid-row: 1 / span 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    .primary-action,
    .store-badge,
    .site-menu-button,
    .site-language select {
        border: 2px solid ButtonText;
        forced-color-adjust: auto;
    }
}
