/* ============================================================
   SCHAR BEST OF CHRISTMAS — Custom CSS
   Colors, layout and structure matched to design
   ============================================================ */

/* ----------------------------------------------------------
   DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
    --clr-neutral-0:        #ffffff;
    --clr-neutral-1000:     #3D2B30;
    --clr-yellow-500:       #FFD100;
    --clr-red-500:          #cf003e;
    --clr-red-600:          #a8092f;
    --clr-brown-050:        #f4efe9;
    --clr-brown-100:        #e9ded4;
    --clr-brown-300:        #dbc8b7;
    --clr-brown-500:        #3d2b30;

    --schar-radius-pill:   50px;
    --schar-radius-circle: 50%;

    /* Height of the sticky header — .schar-navbar's min-height. The hero
       subtracts it to fill exactly what is left of the viewport. */
    --schar-header-h:      64px;

    --schar-icon-size:     72px;
    @media (min-width: 480px) {
        --schar-icon-size:     90px;
    }

    --schar-transition:    0.25s ease;
}

/* ----------------------------------------------------------
   BASE
   ---------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

body {
    overflow-x: hidden;
    background-color: var(--clr-brown-500);
    color: var(--clr-neutral-0);
    font-family: "Cabin", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
}

body,
h1,
h2,
h3,
ul,
p {
    padding: 0;
    margin: 0;
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", sans-serif;
    font-weight: 900;
    text-align: left;
}

h1 {
    font-size: 40px;
    line-height: 1.1;
}
@media (min-width: 768px) {
    h1 {
        font-size: 56px;
    }
}
@media (min-width: 960px) {
    h1 {
        font-size: 64px;
    }
}

h2 {
    font-size: 24px;
    line-height: 1.1;
}
@media (min-width: 768px) {
    h2 {
        font-size: 32px;
    }
}

h3 {
    font-size: 20px;
}
@media (min-width: 768px) {
    h3 {
        font-size: 24px;
    }
}

section {
    padding: 44px 0;
}

.container {
    max-width: 1440px;
}

.schar-dot {
    display: inline;
    color: var(--clr-red-500);
}

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */

.schar-btn {
    font-size: 1rem;
    font-weight: 700;
    border: none;
    padding: 12px 32px;
    min-width: 200px;
    width: fit-content;
}
.schar-btn.full-width {
    width: 100%;
}

.schar-btn--red {
    background-color: var(--clr-red-500);
    border: 1px solid var(--clr-red-500);
    color: var(--clr-neutral-0);
}

.schar-btn--red:hover,
.schar-btn--red:focus-visible {
    background-color: var(--clr-red-600);
    border: 1px solid var(--clr-red-600);
    color: var(--clr-neutral-0);
    box-shadow: 0 6px 20px rgba(207, 0, 62, 0.4);
}

.schar-btn--yellow {
    background-color: var(--clr-yellow-500);
    border: 1px solid var(--clr-yellow-500);
    color: var(--clr-red-500);
}

.schar-btn--yellow:hover,
.schar-btn--yellow:focus-visible {
    background-color: var(--clr-red-600);
    border: 1px solid var(--clr-red-600);
    color: var(--clr-neutral-0);
    box-shadow: 0 6px 20px rgba(207, 0, 62, 0.4);
}

.schar-btn-outline--red {
    background: transparent;
    border: 1px solid var(--clr-red-500);
    color: var(--clr-red-500);
}

.schar-btn-outline--red:hover,
.schar-btn-outline--red:focus-visible {
    background-color: var(--clr-red-600);
    border: 1px solid var(--clr-red-600);
    color: var(--clr-neutral-0);
    box-shadow: 0 6px 20px rgba(207, 0, 62, 0.4);
}

/* ----------------------------------------------------------
   HEADER / NAVBAR
   ---------------------------------------------------------- */
.schar-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.schar-navbar {
    background-color: var(--clr-yellow-500) !important;
    min-height: 56px;
}

.schar-navbar .container-fluid {
    display: flex;
    align-items: center;
}

.schar-navbar .navbar-brand {
    margin: 0;
}

.schar-navbar .navbar-brand img {
    max-height: 38px;
    width: auto;
}

/* ── Hamburger (mobile only) ─────────────────────────────── */
.schar-header__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-brown-500);
    font-size: 1.6rem;
    padding: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--schar-transition);
    order: -1;
    margin-right: 0.5rem;
}

.schar-header__hamburger:hover {
    opacity: 0.7;
}

/* ── Desktop nav links ───────────────────────────────────── */
.schar-navbar__links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.schar-navbar__link {
    color: var(--clr-brown-500);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    transition: opacity var(--schar-transition);
}

.schar-navbar__link:hover {
    opacity: 0.7;
    color: var(--clr-brown-500);
}

/* ── Right side (CTA + lang selector) ────────────────────── */
.schar-navbar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* ── CTA button (last nav item) — desktop only ───────────── */
.schar-navbar__cta {
    display: none;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--clr-red-500);
    color: var(--clr-neutral-0);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.45rem 1.25rem;
    border-radius: 4px;
    white-space: nowrap;
    transition: background-color var(--schar-transition), box-shadow var(--schar-transition);
}

.schar-navbar__cta:hover {
    background-color: var(--clr-red-600);
    color: var(--clr-neutral-0);
    box-shadow: 0 4px 12px rgba(207, 0, 62, 0.35);
}

.schar-navbar__cta img {
    width: 24px;
    height: 24px;
}

/* ── Desktop breakpoint ──────────────────────────────────── */
@media (min-width: 960px) {
    .schar-header__hamburger {
        display: none;
    }

    .schar-navbar__links {
        display: flex;
    }

    .schar-navbar__cta {
        display: inline-flex;
    }

    /* On mobile the logo is centered; on desktop it flows naturally */
    .schar-navbar .navbar-brand {
        flex: 0 0 auto;
        margin-right: 1rem;
    }
}

/* ── Mobile: center the logo ─────────────────────────────── */
@media (max-width: 960px) {
    .schar-navbar .container-fluid {
        position: relative;
        justify-content: center;
    }

    .schar-header__hamburger {
        position: absolute;
        left: 0;
    }

    .schar-navbar__right {
        position: absolute;
        right: 0;
    }

    /* Hide desktop-only lang selector on mobile (it's inside the offcanvas) */
    .schar-navbar__right .schar-lang-selector {
        display: none;
    }
}

#mobileNavLinks li a {
    color: var(--clr-brown-500);
}

/* ----------------------------------------------------------
   SECTION — base + modifiers
   ---------------------------------------------------------- */
.schar-section {
    padding: 32px 0 24px;
}
@media (min-width: 960px) {
    .schar-section {
        padding: 88px 0;
    }
}

.schar-section--light {
    background-color: var(--clr-brown-050);
    color: var(--clr-neutral-1000);
}

.schar-section--tan {
    background-color: var(--clr-brown-100);
    color: var(--clr-brown-500);
}

.schar-section--tan-dark {
    background-color: var(--clr-brown-300);
    color: var(--clr-brown-500);
}

.schar-section--dark {
    background-color: var(--clr-brown-500);
    color: var(--clr-neutral-0);
}

.schar-section--yellow {
    background-color: var(--clr-yellow-500);
    color: var(--clr-neutral-1000);
}

/* Content layout — schar-section__content--content-<position>, from a custom
   section's content_position: where the text sits relative to the media.
   The markup is always text first, media second. Left / right sit side by
   side from 960px and put the media on top below it; top / bottom stack at
   every width. A products section is always 'top'. */
.schar-section__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.schar-section__content--content-left,
.schar-section__content--content-right,
.schar-section__content--content-bottom {
    flex-direction: column-reverse;
}

.schar-section__content--content-top,
.schar-section__content--content-bottom {
    align-items: stretch;
}

@media (min-width: 960px) {
    .schar-section__content {
        gap: 56px;
    }

    .schar-section__content--content-left {
        flex-direction: row;
    }

    .schar-section__content--content-right {
        flex-direction: row-reverse;
    }

    .schar-section__content--content-left,
    .schar-section__content--content-right {
        justify-content: space-between;
    }

    .schar-section__content--content-top,
    .schar-section__content--content-bottom {
        gap: 40px;
    }
}

.schar-section__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

@media (min-width: 960px) {
    .schar-section__content--content-left > .schar-section__image,
    .schar-section__content--content-left > .schar-section__video,
    .schar-section__content--content-right > .schar-section__image,
    .schar-section__content--content-right > .schar-section__video {
        flex: 1 1 auto;
        max-width: 50%;
    }
    .schar-section__content--content-top > .schar-section__text,
    .schar-section__content--content-bottom > .schar-section__text {
        flex: 0 1 auto;
    }
}

.schar-section--custom .schar-section__text {
    max-width: 560px;
}

/* Content width — schar-section--<content_width> on the <section>.
   'container' is the global .container and needs no rule of its own. */
.schar-section--narrow .schar-section__content {
    max-width: 720px;
    margin-inline: auto;
}

/* 'full': the media bleeds to the edge of the viewport, the text keeps the
   container's padding. calc(50% - 50vw) is the distance from the (centred)
   content box to the viewport edge; body's overflow-x clips what the
   scrollbar adds to 100vw. Stacked, the media stretches across both edges. */
.schar-section--full .schar-section__content > .schar-section__image,
.schar-section--full .schar-section__content > .schar-section__video {
    align-self: stretch;
    width: auto;
    max-width: none;
    margin-inline: calc(50% - 50vw);
    border-radius: 0;
}

/* Side by side, it reaches only its own edge: the text keeps half the
   content box minus half the gap, the media gets the other half of the
   viewport. */
@media (min-width: 960px) {
    .schar-section--full .schar-section__content--content-left > .schar-section__image,
    .schar-section--full .schar-section__content--content-left > .schar-section__video,
    .schar-section--full .schar-section__content--content-right > .schar-section__image,
    .schar-section--full .schar-section__content--content-right > .schar-section__video {
        align-self: auto;
        flex: 0 0 auto;
        width: calc(50vw - 28px);
    }

    .schar-section--full .schar-section__content--content-left > .schar-section__image,
    .schar-section--full .schar-section__content--content-left > .schar-section__video {
        margin-inline: 0 calc(50% - 50vw);
    }

    .schar-section--full .schar-section__content--content-right > .schar-section__image,
    .schar-section--full .schar-section__content--content-right > .schar-section__video {
        margin-inline: calc(50% - 50vw) 0;
    }
}

.schar-section__headline {
    color: inherit;
    margin: 0;
    font-size: 26px;
}
@media (min-width: 768px) {
    .schar-section__headline {
        font-size: 32px;
    }
}

.schar-section__headline--image {
    line-height: 0;
}

.schar-section__headline--image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
}

.schar-section__headline span {
    color: var(--clr-brown-500);
}

/* Section default text color override per modifier — headline span color cascades from section text colors via specific overrides below */
.schar-section--dark .schar-section__headline span {
    color: var(--clr-neutral-0);
}

.schar-section__description {
    font-size: 16px;
    line-height: 1.55;
    color: inherit;
}
@media (min-width: 768px) {
    .schar-section__description {
        font-size: 17px;
    }
}

.schar-section__description p {
    margin: 1rem 0;
}

.schar-section__image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */
.schar-hero {
    position: relative;
    background-color: var(--clr-brown-500);
    color: var(--clr-neutral-0);
    padding: 40% 0 80px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(70svh - var(--schar-header-h));
}
.schar-hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 80%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    left: 0;
    bottom: 0;
}

.schar-hero__badge-img {
    position: absolute;
    z-index: 3;
    width: 100%;
    height: auto;
    max-width: 120px;
    right: 0;
    bottom: 5%;
}

.schar-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.schar-hero__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.schar-hero .container {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.schar-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 20px;
    max-width: 640px;
    padding: 16px 0 32px;
    flex: 1 1 auto;
}

.schar-hero__headline {
    color: var(--clr-yellow-500);
    margin: 0;
    line-height: 1;
}

.schar-hero__description {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--clr-neutral-0);
    max-width: 460px;
}

.schar-hero__description p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

.schar-hero__description p:first-child {
    font-weight: 600;
    font-style: normal;
}

.schar-scroll-btn {
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    right: 0;
    margin-inline: auto;
    bottom: -50px;
}
.schar-scroll-btn,
.schar-scroll-btn:hover,
.schar-scroll-btn:active,
.schar-scroll-btn:focus,
.schar-scroll-btn:focus-visible {
    color: var(--clr-brown-100);
}

.schar-scroll-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    animation: scroll-icon-animation 2s ease-in-out infinite;
}

@keyframes scroll-icon-animation {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .schar-scroll-icon {
        animation: none;
    }
}

@media (min-width: 768px) {
    .schar-hero__badge-img {
        max-width: 200px;
        bottom: auto;
    }

    .schar-hero {
        min-height: calc(100svh - var(--schar-header-h));
    }
}

@media (min-width: 960px) {
    .schar-hero {
        min-height: auto;
        max-height: calc(100svh - var(--schar-header-h));
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        padding-bottom: 56px;
    }

    .schar-hero__bg img {
        object-position: center center;
    }

    .schar-hero__content {
        max-width: 50%;
        padding: 16px 0 40px;
        gap: 24px;
    }
}

/* ----------------------------------------------------------
   COUNTDOWN (countdown.php, while the campaign is 'soon')
   ---------------------------------------------------------- */

/* The artwork sits at the top at its natural ratio and the text starts a
   fixed fraction of the width down, so the headline lands on the same spot of
   the picture at every width. The background colour continues the artwork's
   bottom edge, which differs between the two crops. */
.schar-countdown {
    --countdown-digit-size: 48px;

    position: relative;
    overflow: hidden;
    background-color: #e5bf00;
    color: var(--clr-brown-500);
    padding: 62vw 0 44px;
    text-align: center;
}
@media (min-width: 960px) {
    .schar-countdown {
        --countdown-digit-size: 96px;

        background-color: #eac204;
        padding: 38.5vw 0 96px;
    }
}

.schar-countdown__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
}
.schar-countdown__bg::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(234, 194, 4, 0), rgba(234, 194, 4, 1));
}
@media (min-width: 768px) {
    .schar-countdown__bg::after {
        height: 60%;
    }
}

.schar-countdown__bg img {
    display: block;
    width: 100%;
    height: auto;
}

.schar-countdown__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.schar-countdown__headline {
    color: var(--clr-brown-500);
    text-align: center;
    font-size: 40px;
    line-height: 0.9;
}
@media (min-width: 960px) {
    .schar-countdown__headline {
        font-size: clamp(48px, 5vw, 64px);
    }
}

.schar-countdown__description {
    max-width: 480px;
    margin-top: 30px;
    font-size: 17px;
    line-height: 24px;
}
@media (min-width: 960px) {
    .schar-countdown__description {
        margin-top: 36px;
    }
}

.schar-countdown__timer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: 684px;
    margin-top: 40px;
}
@media (min-width: 960px) {
    .schar-countdown__timer {
        margin-top: 32px;
    }
}

.schar-countdown__unit {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The thin rule between two units, sitting on the digits' baseline. */
.schar-countdown__unit + .schar-countdown__unit::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(var(--countdown-digit-size) * 0.675);
    height: calc(var(--countdown-digit-size) * 0.24);
    border-left: 1px solid var(--clr-brown-500);
}

.schar-countdown__value {
    font-family: "Playfair Display", sans-serif;
    font-weight: 900;
    font-size: var(--countdown-digit-size);
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--clr-red-500);
}

.schar-countdown__label {
    margin-top: 10px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
}
@media (min-width: 960px) {
    .schar-countdown__label {
        margin-top: 23px;
        font-size: 16px;
    }
}

/* ----------------------------------------------------------
   ABOUT
   ---------------------------------------------------------- */

/* Mobile: intro, prize carousel, CTA — in that order, which is why the CTA is
   not inside .schar-about__intro. From 960px: intro and CTA share the left
   column, the prize grid spans both rows on the right; the intro row takes
   the slack so the CTA's bottom lines up with the prizes'. Between 768px and
   960px the order stays the mobile one, with the prizes already a grid. */
.schar-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "intro"
        "prizes"
        "cta";
    row-gap: 32px;
}
@media (min-width: 960px) {
    .schar-about {
        grid-template-columns: minmax(0, 27fr) minmax(0, 59fr);
        grid-template-rows: 1fr auto;
        grid-template-areas:
            "intro  prizes"
            "cta    prizes";
        column-gap: 14%;
    }
}

.schar-about__intro {
    grid-area: intro;
}

.schar-about__prizes {
    grid-area: prizes;
}

.schar-about__cta {
    grid-area: cta;
}

@media (min-width: 960px) {
    #prize-swiper .swiper-pagination {
        display: none;
    }
}

/* Stacked but no longer a phone: the steps and the button keep a readable
   measure instead of running the full width of the container. */
@media (min-width: 768px) and (max-width: 960px) {
    .schar-about__intro,
    .schar-about__cta {
        width: 100%;
        max-width: 480px;
        justify-self: center;
    }
}

.schar-about__headline {
    text-align: center;
}
/* Fluid in the narrow column, so the headline keeps the line breaks its copy
   gives it instead of wrapping a third time. */
@media (min-width: 960px) {
    .schar-about__headline {
        font-size: clamp(24px, 2.55vw, 32px);
        text-align: left;
    }
}

.schar-about__steps {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
    gap: 24px;
}

.schar-about__step {
    width: 100%;
    text-align: center;
}

.schar-about__step-title {
    color: var(--clr-red-500);
    font-size: 24px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    padding: 12px;
    text-align: center;
    margin-bottom: 16px;
}
.schar-about__step-title::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background-color: #E5BC00;
    transform: rotate(-2deg);
}

/* Below 768px: a Swiper, one card at a time (js/main.js), bleeding to the
   screen edge so a card slides in and out from the edge rather than from the
   gutter. Two classes, to outrank the generic .swiper { width: 100% } further
   down. */
@media (max-width: 767.98px) {
    .swiper.schar-about__prizes {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 0 1rem;
    }

    /* Room for the dots. height: auto because as a grid item the swiper has a
       definite height, so Swiper's 100% would make the margin overflow it and
       put the dots over the cards. */
    .schar-about__prizes .swiper-wrapper {
        height: auto;
        margin-bottom: 40px;
    }
}

/* From 768px js/main.js has destroyed the Swiper (inline styles included),
   and its wrapper becomes a grid: the large prize (--large, set in index.php:
   the first one, unless there are exactly two) full width, the rest in pairs
   below it. One prize is the large card alone; two are a pair of small ones.

   align-content is what keeps every card the height of its own content: the
   wrapper is as tall as the intro column beside it, and the default (stretch)
   shares that spare height between the rows, so the pairs grew with the first
   prize. Centred, the rows keep their size and the spare is split above and
   below the grid. */
@media (min-width: 768px) {
    /* Nothing slides any more, and Swiper's overflow: hidden would cut the
       cards' shadow off at the edge of the grid. */
    .swiper.schar-about__prizes {
        overflow: visible;
    }

    .schar-about__prizes .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: center;
        gap: 20px;
    }

    .schar-about__prize--large {
        grid-column: 1 / -1;
    }
}

/* Beside the intro the large prize is a little taller than its artwork needs,
   as in the design: with the reference copy the grid then ends level with the
   CTA from 1440px. */
@media (min-width: 960px) {
    .schar-about__prize--large {
        min-height: min(21vw, 304px);
    }
}

/* height: auto overrides Swiper's 100%, so slides in the carousel are as tall
   as the tallest one, and grid cells size to their content. */
.schar-about__prize {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    height: auto;
    background: linear-gradient(to right, #FFF0D4, #F9D6E0);
    border: 2px solid var(--clr-red-500);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(207, 0, 62, 0.12);
    padding: 20px;
}

@media (min-width: 960px) {
    .schar-about__prize--large .schar-about__prize-title {
        font-size: 28px;
    }
}

.schar-about__prize-content,
.schar-about__prize-image {
    flex: 1 1 0;
    min-width: 0;
}

.schar-about__prize-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    border-radius: 8px;
}

.schar-about__prize-image figcaption {
    font-size: 12px;
    margin-top: 4px;
}

/* A word longer than the card's text column breaks instead of running over
   the artwork. */
.schar-about__prize-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--clr-red-500);
    margin-bottom: 8px;
    overflow-wrap: break-word;
}

.schar-about__prize-description {
    font-size: 14px;
}

/* Below 1200px, after .claude/design/prize-card-mobile.png: title, artwork,
   description, stacked and centred, in the card's frame — every card below
   768px, the paired (small) ones up to 1199px; the large card goes back
   beside its artwork from 768px, below. The title and the description share
   a wrapper in the markup, so the wrapper steps aside (display: contents)
   and order puts the artwork between them. */
@media (max-width: 1199.98px) {
    .schar-about__prize {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .schar-about__prize-content {
        display: contents;
    }

    .schar-about__prize-image {
        flex: none;
        order: 2;
    }

    .schar-about__prize-image figure {
        margin: 0;
    }

    /* Every prize's artwork gets the same box — the card's width, two thirds
       of it tall (the ratio of it-it's photo) — and is fitted inside it, so
       the cards of one carousel line up whatever the shape of their files
       (es-es: 2:1 and 1:1). */
    .schar-about__prize-image img {
        width: 100%;
        aspect-ratio: 3 / 2;
        object-fit: contain;
        margin: 0 auto;
        border-radius: 16px;
    }

    .schar-about__prize-title {
        order: 1;
        margin-bottom: 0;
        font-size: 32px;
        text-align: center;
    }

    .schar-about__prize-description {
        order: 3;
    }
}

/* Two cards to a row: half the width the title has on a phone. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .schar-about__prize:not(.schar-about__prize--large) .schar-about__prize-title {
        font-size: 24px;
    }
}

/* The large card spans the row from 768px: it keeps its artwork beside the
   text, as from 1200px — the block above undone for it. The title's size is
   the base rule's, and 28px from 960px (two classes, so it outranks the
   block above). */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .schar-about__prize--large {
        flex-direction: row;
        align-items: center;
        text-align: inherit;
    }

    .schar-about__prize--large .schar-about__prize-content {
        display: block;
    }

    .schar-about__prize--large .schar-about__prize-image {
        flex: 1 1 0;
    }

    /* Bootstrap's own figure margin, which it has from 1200px. */
    .schar-about__prize--large .schar-about__prize-image figure {
        margin: 0 0 1rem;
    }

    .schar-about__prize--large .schar-about__prize-image img {
        width: auto;
        aspect-ratio: auto;
        object-fit: fill;
        margin: 0 0 0 auto;
        border-radius: 8px;
    }

    .schar-about__prize--large .schar-about__prize-title {
        margin-bottom: 8px;
        text-align: left;
    }
}

@media (min-width: 768px) and (max-width: 959.98px) {
    .schar-about__prize--large .schar-about__prize-title {
        font-size: 22px;
    }
}

/* ----------------------------------------------------------
   SECTION — light background
   ---------------------------------------------------------- */
.schar-section--light {
    background-color: var(--clr-brown-300);
}

.schar-section--light .schar-section__headline {
    color: var(--clr-red-500);
}

.schar-section--light .schar-section__headline span:not(.schar-dot) {
    color: var(--clr-brown-500);
}

.schar-section--light .schar-section__headline .schar-dot {
    color: var(--clr-red-500);
}

/* ----------------------------------------------------------
   SECTION — Game
   Three screens (index.php, js/main.js), each on its own photo: intro,
   stage, and the result screen with the form and its two notes. Every
   size and place below is .claude/mockup/game-layout.html as exported on
   2026-10-29, fixed here on purpose: not country data, and nothing sets
   it at runtime. Between two breakpoints a value runs in a straight line
   from one to the next, as in the mockup: calc(a + b·cqw), 100cqw being
   the section's width, exact at both ends (where a share of the width or
   height itself changes, within 5px in between). A breakpoint across which
   the photo's mode, the image or the layout changes is a step. Only the
   figure and its track are country data (config.game.stage), set on the
   stage by js/main.js.
   ---------------------------------------------------------- */
.schar-section--game {
    container-type: inline-size;
    padding: 0;
    overflow: hidden;
    background-color: var(--clr-brown-500);
}

.schar-game-screen {
    position: relative;
    background-color: var(--game-fill);
}
.schar-game-screen[hidden] {
    display: none;
}

/* ── The photo: intro and stage ─────────────────────────── */
/* The band is where the photo shows: the whole screen, or a strip at the
   bottom with the screen's fill colour above it, blended into the photo
   over --game-fade. The photo covers the band (2880 × 1094) with its focal
   point — --game-bg-gx / --game-bg-gy, the focus share of the photo's size
   — as near the band's centre as the edges allow. js/main.js maps the
   silhouette's zone through the photo's rendered box and this band. */
.schar-game-bg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--game-band-h);
    overflow: hidden;
    pointer-events: none;
}
.schar-game-bg::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    height: var(--game-fade);
    background: linear-gradient(to bottom, var(--game-fill), transparent);
}
.schar-game-bg img {
    --game-bg-w: max(100cqw, calc(var(--game-band-h) * 2880 / 1094));
    --game-bg-h: calc(var(--game-bg-w) * 1094 / 2880);

    position: absolute;
    top: clamp(calc(var(--game-band-h) - var(--game-bg-h)), calc(var(--game-band-h) / 2 - var(--game-bg-gy)), 0px);
    left: clamp(calc(100cqw - var(--game-bg-w)), calc(50cqw - var(--game-bg-gx)), 0px);
    width: var(--game-bg-w);
    max-width: none;
    height: var(--game-bg-h);
    -webkit-user-drag: none;
}

/* ── Screen: intro ──────────────────────────────────────── */
/* min-height, not height: a headline that wraps further in one language
   makes the screen taller instead of running out of it. */
.schar-game-screen--intro {
    --game-fill: #d07f34;
    --game-band-h: 360px;
    --game-fade: 60px;

    min-height: 600px;
    padding-top: 36px;
}
.schar-game-screen--intro .schar-game-bg img {
    --game-bg-gx: calc(0.8 * var(--game-bg-w));
    --game-bg-gy: calc(0.5 * var(--game-bg-h));
}

.schar-game-intro {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 88cqw;
    margin-left: 6cqw;
    text-align: left;
}

.schar-game-intro__headline {
    font-size: 40px;
    line-height: 1;
    text-align: left;
    color: var(--clr-brown-300);
}
.schar-game-intro__headline .schar-accent {
    color: var(--clr-yellow-500);
}

.schar-game-intro__description {
    max-width: 480px;
    margin-top: 16px;
    color: var(--clr-brown-100);
}

/* Pixel-art button: the artwork is the background, the label is copy. */
.schar-game-play-btn {
    width: 190px;
    aspect-ratio: 522 / 168;
    margin-top: 20px;
    border: none;
    background: url("../assets/play-btn-image.png?v=1") center / 100% 100% no-repeat;
    font-family: "Playfair Display", serif;
    font-weight: 900;
    font-size: 21px;
    line-height: 1;
    color: var(--clr-red-500);
    cursor: pointer;
    transition: transform var(--schar-transition);
}
.schar-game-play-btn:hover,
.schar-game-play-btn:focus-visible {
    transform: scale(1.04);
}

@media (min-width: 768px) {
    .schar-game-screen--intro {
        --game-fade: 0px;

        min-height: calc(382px + 8cqw);
        padding-top: calc(44px + 6cqw);
    }
    .schar-game-screen--intro .schar-game-bg {
        height: 100%;
    }
    /* From 768px the photo simply covers the whole screen, anchored right. */
    .schar-game-screen--intro .schar-game-bg img {
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right center;
    }
    /* padding-bottom: at least 20px under the play button where the text
       runs past the screen's min-height (960–1282px), none elsewhere. */
    .schar-game-intro {
        width: calc(60cqw - 64px);
        margin-left: calc(8cqw - 20px);
        padding-bottom: 20px;
    }
    .schar-game-intro__headline {
        font-size: calc(16px + 4cqw);
    }
    .schar-game-play-btn {
        width: calc(194px + 5cqw);
        margin-top: calc(14px + 3cqw);
        font-size: calc(22px + 1cqw);
    }
}
@media (min-width: 1200px) {
    .schar-game-screen--intro {
        min-height: calc(80px + 32cqw);
        padding-top: calc(19px + 8cqw);
    }
    .schar-game-intro {
        width: 55cqw;
        margin-left: 6cqw;
    }
    .schar-game-intro__headline {
        font-size: 66px;
    }
    .schar-game-play-btn {
        width: 250px;
        margin-top: 48px;
        font-size: 28px;
    }
}
@media (min-width: 1440px) {
    .schar-game-screen--intro {
        min-height: calc(320px + 16cqw);
        padding-top: calc(78px + 4cqw);
    }
}
@media (min-width: 1920px) {
    .schar-game-screen--intro {
        min-height: 640px;
        padding-top: 154px;
    }
}

/* ── Screen: stage ──────────────────────────────────────── */
/* The figure's size and its track are country data (config.game.stage),
   set on the stage by js/main.js for the screen's width as
   --game-figure-width (% of the section's width), --game-figure-max (px)
   and --game-track-top / -right / -bottom / -left (% of the stage); the
   values here only stand in until it has. --target-x / --target-y place
   the silhouette in the track's own 0–1 coordinates — the same ones
   js/main.js moves Tiny Jürgen in, so wherever it is drawn he can reach
   it exactly — and js/main.js sets them from config.game.shadow before
   every go. */
.schar-game-screen--stage {
    --game-fill: #ae441d;
    --game-band-h: clamp(360px, calc(145px + 57cqw), 420px);
    --game-fade: 80px;
}
.schar-game-screen--stage .schar-game-bg img {
    --game-bg-gx: calc(0.64 * var(--game-bg-w));
    --game-bg-gy: calc(0.6 * var(--game-bg-h));
}

.schar-game-stage {
    --jurgen-w: min(calc(var(--game-figure-width, 26) * 1cqw), calc(var(--game-figure-max, 150) * 1px));
    --jurgen-h: calc(var(--jurgen-w) * 434 / 270);
    --game-land-w: clamp(240px, calc(168px + 20cqw), 260px);
    --target-x: 0.53;
    --target-y: 0.62;

    position: relative;
    height: clamp(624px, calc(688px - 14cqw), 638px);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.schar-game-stage.is-running {
    cursor: pointer;
}

.schar-game-stage__headline {
    position: absolute;
    z-index: 2;
    top: 4%;
    left: 6%;
    font-size: clamp(44px, calc(22px + 6cqw), 50px);
    line-height: 0.92;
    color: var(--clr-brown-300);
    pointer-events: none;
}

/* Above the headline (z-index 2): Tiny Jürgen may fly over it. */
.schar-game-track {
    position: absolute;
    z-index: 3;
    top: calc(var(--game-track-top, 20) * 1%);
    right: calc(var(--game-track-right, 3) * 1%);
    bottom: calc(var(--game-track-bottom, 4) * 1%);
    left: calc(var(--game-track-left, 3) * 1%);
    pointer-events: none;
}

.schar-game-target,
.schar-game-character {
    position: absolute;
    width: var(--jurgen-w);
    height: var(--jurgen-h);
    max-width: none;
    -webkit-user-drag: none;
}

.schar-game-target {
    left: calc((100% - var(--jurgen-w)) * var(--target-x));
    top: calc((100% - var(--jurgen-h)) * var(--target-y));
    filter: brightness(0);
    opacity: 0.6;
}

.schar-game-character {
    top: 0;
    left: 0;
    will-change: transform;
}

.schar-game-land-btn {
    position: absolute;
    z-index: 4;
    left: calc(50% - var(--game-land-w) / 2);
    bottom: 3%;
    width: var(--game-land-w);
    height: 40px;
    border: none;
    border-radius: 2px;
    background-color: var(--clr-yellow-500);
    font-family: "Cabin", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--clr-red-500);
    cursor: pointer;
    /* Shown only while Tiny Jürgen moves: js/main.js toggles .is-running on
       the stage. visibility, not display, so it cannot be tabbed to while
       hidden and nothing reflows when it appears. */
    visibility: hidden;
}
.schar-game-stage.is-running .schar-game-land-btn {
    visibility: visible;
}
.schar-game-land-btn:focus-visible {
    outline: 3px solid var(--clr-neutral-0);
    outline-offset: 2px;
}

@media (min-width: 480px) {
    .schar-game-screen--stage {
        --game-band-h: 420px;
    }
    .schar-game-stage {
        --game-land-w: 260px;

        height: 624px;
    }
    .schar-game-stage__headline {
        font-size: 50px;
    }
}
@media (min-width: 768px) {
    .schar-game-screen--stage {
        --game-band-h: calc(462px - 0.2cqw);
        --game-fade: 0px;
    }
    .schar-game-screen--stage .schar-game-bg img {
        --game-bg-gx: calc(906px - 20cqw);
        --game-bg-gy: calc(318px - 5cqw);
    }
    .schar-game-stage {
        --game-land-w: calc(204px + 5cqw);

        height: calc(462px - 0.2cqw);
    }
    .schar-game-stage__headline {
        top: calc(30px + 2cqw);
        left: calc(7cqw - 21px);
        font-size: calc(26px + 3cqw);
    }
    .schar-game-land-btn {
        left: calc(64% - var(--game-land-w) / 2);
        bottom: 4%;
    }
}
@media (min-width: 1200px) {
    .schar-game-screen--stage {
        --game-band-h: calc(25px + 36.25cqw);
    }
    .schar-game-screen--stage .schar-game-bg img {
        --game-bg-gx: calc(0.55 * var(--game-bg-w));
        --game-bg-gy: calc(0.55 * var(--game-bg-h));
    }
    .schar-game-stage {
        --game-land-w: 260px;

        height: calc(25px + 36.25cqw);
    }
    .schar-game-stage__headline {
        top: 12%;
        left: 5%;
        font-size: calc(30px + 2.5cqw);
    }
}
@media (min-width: 1440px) {
    .schar-game-screen--stage {
        --game-band-h: calc(508px + 3cqw);
    }
    .schar-game-stage {
        height: calc(508px + 3cqw);
    }
    .schar-game-stage__headline {
        font-size: 66px;
    }
}
@media (min-width: 1920px) {
    .schar-game-screen--stage {
        --game-band-h: 560px;
    }
    .schar-game-stage {
        height: 560px;
    }
}

/* ── Stage pop-ups ──────────────────────────────────────── */
.schar-game-popup {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 32px);
    max-width: 553px;
    padding: 48px 24px 52px;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    background-color: rgba(60, 0, 15, 0.6);
    text-align: center;
    cursor: default;
}
.schar-game-popup[hidden] {
    display: none;
}

/* Dims the stage behind whichever pop-up is open — js/main.js toggles
   .has-popup on the stage, which spans the section's whole width.
   ::before and the pop-ups' own z-index, so they paint above it. */
.schar-game-stage.has-popup::before {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.schar-game-popup__headline {
    font-size: 34px;
    line-height: 1.05;
    text-align: center;
    color: var(--clr-yellow-500);
}

.schar-game-popup__description {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--clr-brown-100);
}
.schar-game-popup__description + .schar-game-popup__description {
    margin-top: 4px;
}
.schar-game-popup__description .disclaimer {
    font-size: 12px;
    line-height: 1.2;
    text-align: left;
    display: block;
    margin-top: 12px;
}
.schar-game-popup__description .disclaimer a {
    color: inherit;
}

.schar-game-popup .schar-btn {
    width: 100%;
    max-width: 304px;
    margin-top: 40px;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .schar-game-popup__headline {
        font-size: 46px;
    }
    .schar-game-popup__description .disclaimer {
        max-width: 420px;
        margin-inline: auto;
        font-size: 13px;
    }
}

/* Intro pop-up — 280px tall at every width, the patterned frame always
   whole (decision, maintainer, 2026-11-02). The artwork is two files cut
   from first-popup-bg-image.png: first-popup-frame.png (frame + red
   field, the bottom row behind Tiny Jürgen rebuilt from its 310px
   repeat) and first-popup-jurgen.png (him, transparent). The frame is a
   border-image at the artwork's scale for 280px (280 / 655): the sides
   fit exactly, the top and bottom rows repeat from the centre, so a
   narrower card shows less of them instead of losing the corners. At
   522px the card is the artwork exactly. The copy sits on the red field
   on the left; he stands on the bottom row on the right, as drawn. */
.schar-game-popup--intro {
    overflow: hidden;
    max-width: 522px;
    height: 280px;
    padding: 0;
    align-items: stretch;
    text-align: left;
}

.schar-game-popup--intro::before {
    content: "";
    position: absolute;
    inset: 0;
    border: solid transparent;
    border-width: 18.81px 19.66px 20.52px 18.38px;
    border-image: url("../assets/first-popup-frame.png?v=1") 44 46 48 43 fill / 18.81px 19.66px 20.52px 18.38px repeat;
}

.schar-game-popup__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    width: 46%;
    padding: 30px 0 0 32px;
}

.schar-game-popup--intro .schar-game-popup__headline {
    font-size: 28px;
    text-align: left;
}

.schar-game-popup__subheadline {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--clr-brown-100);
}

.schar-game-popup--intro .schar-game-popup__description {
    margin: 8px 0 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--clr-brown-100);
}

.schar-game-popup--intro .schar-btn {
    max-width: 208px;
    margin-top: auto;
    margin-bottom: 32px;
    padding: 6px 16px;
    text-transform: uppercase;
}

/* 547 × 590 in the artwork, 57px from its right edge, at 280 / 655 */
.schar-game-popup__image {
    position: absolute;
    right: 57px;
    bottom: 0;
    display: block;
    width: auto;
    height: 252px;
}

/* Narrower than 522px the card loses width only: he gets smaller and
   closer to the frame, so the copy keeps a usable column. */
@media (max-width: 559px) {
    .schar-game-popup__text {
        width: 56%;
        padding-left: 28px;
    }
    .schar-game-popup--intro .schar-game-popup__headline {
        font-size: 24px;
    }
    .schar-game-popup--intro .schar-btn {
        min-width: 0;
        padding: 6px 24px;
    }
    .schar-game-popup__image {
        right: 20px;
        height: 175px;
    }
}

/* ── Screen: result — the form and its two notes ────────── */
/* The cards sit in the screen's flow, centred between its paddings: the
   screen is as tall as the card needs, or its min-height. The photo
   covers the whole screen, no blend (decision, 2026-10-29): the mobile
   one below 768px, the desktop one from 768px (the <picture> in
   index.php). */
.schar-game-screen--result {
    --game-fill: #d37a3b;
    --game-card-w: min(420px, calc(100cqw - 32px));

    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0 48px;
}

.schar-game-result__art {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.schar-game-result__art img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
}

/* A container, so the form card picks its layout by its own width. */
.schar-game-result__cards {
    position: relative;
    z-index: 2;
    container-type: inline-size;
    width: var(--game-card-w);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .schar-game-screen--result {
        padding: 48px 0 64px;
    }
    /* Tiny Jürgen is at 15–40% of the photo's width: keep him left. */
    .schar-game-result__art img {
        object-position: 25% 50%;
    }
    .schar-game-result__cards {
        margin: 0 2cqw 0 auto;
    }
}
@media (min-width: 1200px) {
    .schar-game-screen--result {
        --game-fill: #ac3f1d;
        --game-card-w: clamp(440px, calc(760px - 16cqw), 560px);

        min-height: clamp(547px, calc(392px + 13cqw), 640px);
        padding: 64px 0;
    }
    .schar-game-result__cards {
        margin: 0 0 0 calc(50cqw + 244px - var(--game-card-w) / 2);
    }
}
/* While the form shows, the cards are as wide as the form card was before
   the redesign (640px, at most 56% of the screen); the two notes keep
   --game-card-w as set above. */
@media (min-width: 960px) {
    .schar-game-result__cards:has(> .schar-game-form-card:not([hidden])) {
        --game-card-w: min(640px, 56cqw);
    }
}

.schar-game-step {
    position: relative;
}
.schar-game-step[hidden] {
    display: none;
}

.schar-game-badge {
    position: absolute;
    z-index: 2;
    top: -40px;
    left: 50%;
    width: 100px;
    height: auto;
    transform: translateX(-50%);
}

/* Form card */
.schar-game-form-card {
    padding-top: 32px;
    padding-bottom: 24px;
    border-radius: 12px;
    background-color: var(--clr-neutral-0);
    color: var(--clr-brown-500);
}

/* "hohoho!" — two images of the same artwork: upright on a narrow card, a
   box with the landscape ratio; read sideways in the column of a wide one.
   It runs past the card's edges, as designed. */
.schar-game-form-card__hohoho {
    position: relative;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 1024 / 220;
}
.schar-game-form-card__hohoho img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}
.schar-game-form-card__hohoho .schar-game-form-card__hohoho-wide {
    display: none;
}

.schar-game-form-card__body {
    padding-top: 14px;
    margin-inline: 24px;
}

.schar-game-form-card__title {
    font-size: 22px;
    line-height: 1.15;
    color: var(--clr-brown-500);
}

.schar-game-form-card__lead {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.3;
}

/* From 960px: "hohoho!" read sideways in a column on the left. */
@media (min-width: 960px) {
    .schar-game-form-card {
        padding: 32px 40px 32px 190px;
    }
    .schar-game-form-card .schar-game-badge {
        top: -14px;
        left: -14px;
        width: 92px;
        transform: translate(0) rotate(-20deg);
    }
    /* The column is the card's left padding (190px) less its 28px inset:
       the image fills the card's height until it would be wider than
       that, then stops growing and stays at the top — a card made taller
       by the address fields and their errors (it-it) would otherwise
       widen it over the form. */
    .schar-game-form-card__hohoho {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 28px;
        width: 162px;
        margin: 0;
        aspect-ratio: auto;
    }
    .schar-game-form-card__hohoho .schar-game-form-card__hohoho-narrow {
        display: none;
    }
    .schar-game-form-card__hohoho .schar-game-form-card__hohoho-wide {
        display: block;
        position: static;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: left top;
    }
    .schar-game-form-card__body {
        padding-top: 0;
    }
}

/* Success / duplicate card. */
.schar-game-note-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 68px 32px 40px;
    color: var(--clr-brown-500);
}

.schar-game-note-card--duplicate {
    background-color: var(--clr-neutral-0);
}

.schar-game-note-card--duplicate .schar-game-note-card__title,
.schar-game-note-card--duplicate .schar-game-note-card__body {
    color: var(--clr-brown-500);
}

.schar-game-note-card[data-step="form-success"] .schar-game-note-card__body small {
    font-size: 11px;
}

.schar-game-note-card[data-step="form-success"] {
    background-image: url("../assets/form-success-bg-image-mobile.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    padding-bottom: 120px;
}
@media (min-width: 960px) {
    .schar-game-note-card[data-step="form-success"] {
        background-image: url("../assets/form-success-bg-image-desktop.png");
        padding-bottom: 160px;
    }
    .schar-game-note-card[data-step="form-success"] .schar-game-note-card__title,
    .schar-game-note-card[data-step="form-success"] .schar-game-note-card__body {
        max-width: 320px;
    }
}

.schar-game-note-card__title {
    font-size: 36px;
    line-height: 0.95;
    color: var(--clr-brown-100);
}

.schar-game-note-card__body {
    font-size: 17px;
    line-height: 1.3;
    color: var(--clr-brown-100);
}

.schar-game-note-card .schar-btn {
    align-self: center;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

@media (min-width: 960px) {
    .schar-game-note-card__title {
        font-size: 44px;
    }
}

/* ── Form fields ────────────────────────────────────────── */
/* One field per row, except the address fields (--pair, only where the
   country has them): two per row — street | postcode, city | province —
   with the short one in a narrow second column. */
.schar-game-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 8px 12px;
}
.schar-game-form > * {
    grid-column: 1 / -1;
}
.schar-game-form > .schar-game-form__field--pair {
    grid-column: auto;
}

.schar-game-form__mandatory {
    margin: 6px 0 4px;
    font-size: 13px;
    color: var(--clr-brown-500);
}

.schar-game-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schar-game-form__field input,
.schar-game-form__field select,
.schar-game-form__field textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--clr-brown-300);
    background: transparent;
    padding: 6px 0;
    font-family: inherit;
    font-size: 17px;
    color: var(--clr-brown-500);
    outline: none;
}
.schar-game-form__field input:focus,
.schar-game-form__field select:focus,
.schar-game-form__field textarea:focus {
    border-bottom-color: var(--clr-red-500);
}
.schar-game-form__field input::placeholder,
.schar-game-form__field textarea::placeholder {
    color: var(--clr-brown-500);
    opacity: 0.75;
}
.schar-game-form__field.is-invalid input,
.schar-game-form__field.is-invalid select,
.schar-game-form__field.is-invalid textarea {
    border-bottom-color: var(--clr-red-500);
}
/* The province dropdown: the native box and arrow replaced by the inputs'
   underline and a chevron in --clr-brown-500. Its empty first option is the
   placeholder, dimmed like the inputs' until a province is chosen. */
.schar-game-form__field select {
    appearance: none;
    border-radius: 0;
    padding-right: 24px;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233d2b30' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 4px center;
}
.schar-game-form__field select:invalid {
    color: rgb(61 43 48 / 0.75);
}
.schar-game-form__field select option {
    color: var(--clr-brown-500);
}
/* A textarea field: the inputs' underline, grows only downwards. No field is
   one yet (FORM_FIELDS). */
.schar-game-form__field textarea {
    resize: vertical;
    min-height: 4em;
}

.schar-game-form__error {
    color: var(--clr-red-500);
    font-size: 12px;
}

.schar-game-form__notice {
    margin: 12px 0 4px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--clr-brown-500);
}

.schar-game-form__notice small {
    font-size: 10px;
}

.schar-game-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--clr-brown-500);
    cursor: pointer;
}
.schar-game-form__checkbox input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--clr-red-500);
    cursor: pointer;
}

.schar-game-form__checkbox a {
    color: var(--clr-red-500);
}
.schar-game-form__checkbox a:hover {
    text-decoration: none;
}

.schar-game-form__generic-error {
    margin: 0;
    color: var(--clr-red-500);
    font-size: 13px;
    text-align: center;
}

.schar-game-form__submit {
    width: 100%;
    margin-top: 10px;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 600;
}
.schar-game-form__submit:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ----------------------------------------------------------
   SECTION — Video
   ---------------------------------------------------------- */
.schar-section--video {
    background-color: var(--clr-brown-100);
}
.schar-section--video .schar-section__text {
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

.schar-section--video .schar-section__description {
    text-align: center;
    color: var(--clr-brown-500);
}

.schar-section__video {
    display: block;
    width: 100%;
    border-radius: 8px;
    background-color: #000;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.schar-section--video .schar-section__content,
.schar-section--quality .schar-section__content,
.schar-section--goodies .schar-section__content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ----------------------------------------------------------
   SECTION — spotlight
   ---------------------------------------------------------- */
.schar-section--spotlight {
    background-color: var(--clr-brown-300);
}

.schar-section--spotlight .schar-section__headline {
    color: var(--clr-red-500);
}

.schar-section--spotlight .schar-section__headline span:not(.schar-dot) {
    color: var(--clr-brown-500);
    display: block;
}

.schar-section--spotlight .schar-section__headline .schar-dot {
    color: var(--clr-red-500);
}

/* Empty swiper placeholder — reserves no visual space until carousel is added */
.swiper {
    width: 100%;
    height: 100%;
}

#product-swiper .swiper-pagination-bullet,
#prize-swiper .swiper-pagination-bullet {
    background: transparent;
    border: 2px solid var(--clr-brown-500);
}

#product-swiper .swiper-pagination-bullet-active,
#prize-swiper .swiper-pagination-bullet-active {
    width: 20px;
    background-color: var(--clr-brown-500);
    border-radius: 4px;
}

/* ----------------------------------------------------------
   SECTION — products (custom_sections, type 'products')
   ---------------------------------------------------------- */
.schar-section--products .schar-section__text {
    align-items: center;
    text-align: center;
}

.schar-section--products .schar-section__headline {
    text-align: center;
}

/* Below 768px: a Swiper, bleeding to the screen edge so the next card peeks
   in from the right. Two classes, to outrank the generic
   .swiper { width: 100% } above. Padded by the container's gutter, so the
   first card lines up with the CTA below it. */
@media (max-width: 767.98px) {
    .swiper.schar-products {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5);
    }

    /* Room for the dots. */
    .schar-products .swiper-wrapper {
        height: auto;
        margin-bottom: 40px;
    }

    .schar-products__cta {
        width: 100%;
    }
}

/* From 768px js/main.js has destroyed the Swiper (inline styles included),
   and its wrapper becomes a centred row that wraps when a market lists more
   cards than fit. */
@media (min-width: 768px) {
    .schar-products .swiper-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
    }

    .schar-products .schar-product {
        width: 176px;
    }

    .schar-products .swiper-pagination {
        display: none;
    }

    .schar-products__cta {
        align-self: center;
        min-width: 260px;
    }
}

/* height: auto overrides Swiper's 100%, so every card in the row or the
   carousel is as tall as the tallest one. */
.schar-product {
    height: auto;
}

.schar-product__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    color: var(--clr-brown-500);
    text-decoration: none;
}

.schar-product__link:hover {
    color: var(--clr-brown-500);
}

/* The packshot is absolutely positioned so the box keeps its aspect ratio
   whatever the image's own size: an in-flow image would stretch it. */
.schar-product__image {
    position: relative;
    aspect-ratio: 175 / 190;
    background-color: var(--clr-brown-500);
}

.schar-product__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    object-fit: contain;
}

.schar-product__body {
    flex: 1 1 auto;
    background-color: var(--clr-yellow-500);
    padding: 20px 16px 24px;
}

.schar-product__title {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.schar-product__description {
    font-size: 14px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .schar-product__image img {
        padding: 20px;
    }

    .schar-product__body {
        padding: 12px 12px 16px;
    }

    .schar-product__title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .schar-product__description {
        font-size: 13px;
    }
}

/* ----------------------------------------------------------
   SECTION — "Our quality commitment"
   ---------------------------------------------------------- */
.schar-section--quality {
    background-color: var(--clr-brown-100);
}

.schar-section--quality .schar-section__headline {
    color: var(--clr-red-500);
}

.schar-section--quality .schar-section__headline span {
    color: var(--clr-brown-500);
}

/* ----------------------------------------------------------
   SECTION — "Looking for Gluten-Free Goodies Near You?"
   ---------------------------------------------------------- */
.schar-section--goodies {
    background-color: var(--clr-brown-300);
}
.schar-section--goodies .schar-section__headline {
    color: var(--clr-brown-500);
}

.schar-section--goodies .schar-section__headline span:not(.schar-dot) {
    color: var(--clr-red-500);
    display: block;
}

.schar-section--goodies .schar-section__image {
    background-color: var(--clr-brown-300);
    border-radius: 0;
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
footer {
    font-size: 14px;
}

footer h3 {
    font-size: inherit;
    text-transform: uppercase;
    font-weight: 700;
    font-family: "Cabin", sans-serif;
    margin-bottom: 16px;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Sub-section top: yellow bg, brown text (categories + logo/social) */
footer .sub-section-top {
    background-color: var(--clr-yellow-500);
    color: var(--clr-brown-500);
}

.footer-logo {
    width: 92px;
    height: auto;
}

/* Below 768px: the two link lists first, then the logo and the social icons
   sharing the last row, the icons lined up with the lists' second column and
   the country switcher under the logo. The markup keeps the desktop order
   (logo first); the areas reorder it. On a screen too narrow for the icons in
   half the width, their column grows rather than overflowing. */
footer .sub-section-top-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    grid-template-areas:
        "products products"
        "useful   useful"
        "brand    follow";
    align-items: start;
    row-gap: 40px;
}

footer .footer-brand    { grid-area: brand; }
footer .footer-products { grid-area: products; }
footer .footer-useful   { grid-area: useful; }
footer .footer-follow   { grid-area: follow; padding-top: 8px; }

/* The heading is not in the mobile design; it stays for screen readers. */
footer .footer-follow h3 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 768px) {
    footer .sub-section-top-inner  {
        grid-template-columns: auto 2fr 2fr auto;
        grid-template-areas: "brand products useful follow";
    }

    footer .footer-follow {
        padding-top: 0;
    }

    footer .footer-follow h3 {
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 16px;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .footer-logo {
        width: 80px;
    }
}

footer .sub-section-top-inner .product-links a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: .75rem;
}

footer .sub-section-top-inner .product-links .bi {
    margin-left: 6px;
    font-size: .625rem;
}

footer .sub-section-top-inner .useful-links a {
    font-size: 15px;
}

/* Two columns filled top to bottom (the first half of the list on the left),
   whatever length a market's list is. Spacing is padding on the item, not a
   margin, so it never splits across a column break. */
footer .sub-section-top .product-links,
footer .sub-section-top .useful-links {
    columns: 2;
    column-gap: 24px;
}
@media (min-width: 768px) {
    footer .sub-section-top .product-links,
    footer .sub-section-top .useful-links {
        max-width: 90%;
    }
}

footer .sub-section-top .product-links li,
footer .sub-section-top .useful-links li {
    break-inside: avoid;
}

footer .sub-section-top .product-links       { margin-bottom: -8px; }
footer .sub-section-top .product-links li    { padding-bottom: 8px; }
footer .sub-section-top .useful-links        { margin-bottom: -6px; }
footer .sub-section-top .useful-links li     { padding-bottom: 6px; }

@media (min-width: 768px) and (max-width: 959.98px) {
    footer .sub-section-top .product-links,
    footer .sub-section-top .useful-links {
        columns: 1;
    }
}

.footer-social {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.footer-social li img {
    display: block;
    width: 38px;
    height: auto;
}

@media (min-width: 768px) {
    .footer-social li img {
        width: 32px;
    }
}

/* Sub-section middle: red bg, white text (info links) */
footer .sub-section-middle {
    background-color: var(--clr-red-500);
    color: var(--clr-neutral-0);
}

footer .sub-section-middle-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}
@media (min-width: 768px) {
    footer .sub-section-middle-inner  {
        grid-template-columns: repeat(2, 1fr);
    }
}

footer .sub-section-middle-inner ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* Below 768px (after .claude/design/footer-mobile.png): the two lists side
   by side, legal on the left, corporate on the right, each one link per
   line. From 768px they stay one row each, as above. */
@media (max-width: 767.98px) {
    footer .sub-section-middle-inner {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 24px;
    }

    footer .sub-section-middle-inner ul {
        flex-direction: column;
        gap: 16px;
    }

    /* A link a narrow column wraps reads as one item, not two. */
    footer .sub-section-middle-inner li {
        line-height: 1.3;
    }

    /* The cookie-settings button, when a narrow column wraps it. */
    footer .sub-section-middle-inner button {
        text-align: left;
    }
}

.footer-legal-links,
.footer-corporate-links {
    flex-wrap: wrap;
}

/* Sub-section bottom: dark red bg, white text (legal, research, copyright) */
footer .sub-section-bottom {
    background-color: var(--clr-red-600);
    color: var(--clr-neutral-0);
    text-align: center;
}
/* it-it's prize contest notice sits above the company line, in its own <div>. */
footer .sub-section-bottom-inner > div + div {
    margin-top: 8px;
}

footer .sub-section-bottom a {
    text-decoration: underline;
}
footer .sub-section-bottom a:hover {
    text-decoration: none;
}

#ot-sdk-btn.ot-sdk-show-settings,
#ot-sdk-btn.optanon-show-settings {
    background-color: unset !important;
    font-size: inherit !important;
    padding: inherit !important;
    border: none !important;
    outline: none !important;
    color: var(--clr-neutral-0) !important;
}

#ot-sdk-btn.ot-sdk-show-settings:hover,
#ot-sdk-btn.optanon-show-settings:hover {
    text-decoration: underline !important;
    color: inherit !important;
}


#ot-sdk-btn.ot-sdk-show-settings:active,
#ot-sdk-btn.optanon-show-settings:active {
    border: none !important;
}

.userway_buttons_wrapper {
    top: auto !important;
    bottom: 16px !important;
    left: 16px !important;
    transform: unset !important;
}

.uai {
    background: rgb(61, 43, 48) !important;
}


/* ── Country switcher ─────────────────────────────────────────
   A button under the footer logo opening a Bootstrap modal of the active
   countries in app/data/countries.php. Rendered only when there is more than
   one, so a single-market deployment looks exactly as it did before. Names are
   written in each country's own language, so the list is readable to someone
   who cannot read the page they are on. The globe is an inline SVG drawn in
   currentColor. */
.schar-country-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: .875rem;
    white-space: nowrap;
}

.schar-country-switcher:hover {
    text-decoration: underline;
}

.schar-country-switcher__icon {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .schar-country-switcher {
        margin-top: 36px;
    }
}

.schar-country-modal .modal-content {
    border: 0;
    border-radius: 8px;
    background-color: var(--clr-brown-100);
    color: var(--clr-brown-500);
}

.schar-country-modal .modal-header {
    border-bottom-color: rgba(61, 43, 48, 0.15);
}

.schar-country-modal .modal-title {
    font-family: "Cabin", sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
}

.schar-country-modal .modal-body {
    width: 400px;
    margin-inline: auto;
}

/* Two columns at every width, filled row by row in countries.php order. */
.schar-country-modal__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 700;
}

.schar-country-modal__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
}

a.schar-country-modal__item:hover,
a.schar-country-modal__item:focus-visible {
    color: inherit;
    text-decoration: underline;
}

/* Each flag keeps its own proportions at a fixed height. */
.schar-country-modal__flag {
    width: auto;
    height: 26px;
    flex-shrink: 0;
}

/* The current country stays in the list — removing it would make the list
   change length as you switch — and is marked rather than dropped: not a link,
   bold, on a darker tan. */
.schar-country-modal__item.is-current {
    background-color: var(--clr-brown-300);
    font-weight: 600;
}

/* The page at `/` (app/templates/selector.php), after
   .claude/design/home-page.png without its background artwork: a tan panel
   inset from the viewport edge, its content centred, the countries in two
   columns at every width. */
.schar-selector-page {
    --schar-selector-inset: 16px;

    min-height: 100vh;
    padding: var(--schar-selector-inset);
    background-color: #635a53;
}

.schar-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 2 * var(--schar-selector-inset));
    padding: 48px 16px;
    border-radius: 20px;
    background-color: var(--clr-brown-300);
    color: var(--clr-brown-500);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.schar-selector__logo {
    width: auto;
    margin-bottom: 24px;
}

.schar-selector__headline {
    margin: 0 0 24px;
    font-family: "Cabin", sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-align: center;
}

.schar-selector__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    column-gap: 16px;
    row-gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.schar-selector__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: inherit;
    font-size: 0.9375rem;
    line-height: 1.3;
    text-decoration: none;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.schar-selector__item:hover,
.schar-selector__item:focus-visible {
    color: inherit;
    text-decoration: underline;
}

/* Each flag keeps its own proportions at a fixed height. */
.schar-selector__flag {
    width: auto;
    height: 20px;
    flex-shrink: 0;
}

@media (min-width: 560px) {
    .schar-selector__list {
        grid-template-columns: repeat(3, minmax(0, max-content));
    }
}

@media (min-width: 768px) {
    .schar-selector-page {
        --schar-selector-inset: 40px;
    }

    .schar-selector__headline {
        font-size: 1.8rem;
    }

    .schar-selector__list {
        column-gap: 56px;
        row-gap: 16px;
    }

    .schar-selector__item {
        font-size: 1.0625rem;
    }

    .schar-selector__flag {
        height: 24px;
    }
}
