/* deepworksstudios.com – site styles.
 *
 * Mobile first: the base rules are the phone layout; (min-width: 768px) adds the tablet layout, (min-width: 992px) the
 * desktop header and wider grids. One self-hosted variable font (Open Sans; no request to Google: GDPR,
 * LG München I 3 O 17493/20). Library styles (Bootstrap + DWS, purged) come from vendor.css; this file wins over them.
 */

/* ============================================================ font */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
    src: url("../fonts/open-sans-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap;
    src: url("../fonts/open-sans-latin-italic-variable.woff2") format("woff2"); }

/* ============================================================ tokens */
:root {
    /* Dark studio palette: near-black ground, two surface steps, the DeepWorks blue and the teal of the logo glow. */
    --c-bg: #0f1113;
    --c-surface: #171a1d;
    --c-surface-2: #1f2327;
    --c-line: #2c3238;
    --c-line-strong: #46505a;
    --c-text: #f2f4f5;
    --c-muted: #aab3bb;
    --c-brand: #1a83af;
    --c-button: #1a7fa9;        /* white text on it: 4.6:1 (WCAG AA) */
    --c-button-hover: #2393c2;
    --c-accent: #2cccc4;
    --c-link: #8fd3f4;
    --c-success-bg: #173a26; --c-success: #6fd18b;
    --c-error-bg: #4a1c1c; --c-error: #ff9b9b;

    --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

    --fs-small: 0.875rem;
    --fs-body: 1rem;
    --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);        /* 17 -> 20 px */
    --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);       /* 18 -> 21 px */
    --fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);          /* 26 -> 36 px */
    --fs-h1: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);              /* 32 -> 52 px */
    --fs-hero: clamp(2.25rem, 1.3rem + 4vw, 4.25rem);           /* 36 -> 68 px */

    --sheet: 1140px;
    --gutter: 16px;
    --space-band: clamp(48px, 4rem + 2vw, 96px);
    --radius: 14px;
    --radius-sm: 8px;
    --header-h: 64px;
    --ease: 160ms ease;
}

/* ============================================================ base */
/* Normal document flow: the DWS library fixes html/body to the viewport only with class="dws-app-shell" on <html>
   (library 0.1.7+), which this site does not set. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
    overflow-x: clip;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 100vh; min-height: 100dvh; margin: 0;
    background: var(--c-bg); color: var(--c-text);
    font-family: var(--font); font-size: var(--fs-body); line-height: 1.65;
    text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--c-text); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; margin: 0; }
p, li, figcaption, dd { text-wrap: pretty; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--c-link); text-underline-offset: 0.15em; }
img, video, iframe { display: block; max-width: 100%; }
figure { margin: 0; }
code { color: #ffd59a; font-size: 0.9em; }
/* Icons are <i> elements: without this the italic font file would be downloaded for them. */
.bi, i.dws-icon { font-style: normal; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
::selection { background: var(--c-brand); color: #fff; }
.visually-hidden { 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; white-space: nowrap !important; border: 0 !important; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--c-button); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 8px; }

.sheet { width: 100%; max-width: calc(var(--sheet) + 2 * var(--gutter)); margin-inline: auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* DWS typography: the library sets its own sizes, colours and margins on these classes. The defaults below are
   written with :where() (one class of specificity), so a site class on the same element (.eyebrow, .profile__role,
   .site-footer__copy, ...) still wins, as it did on the plain <p> / <h2> those elements were before. */
.dws-typography { font-family: var(--font) !important; color: inherit; }
:where(h1, h2, h3).dws-typography { color: var(--c-text); font-weight: 750; margin: 0; }
:where(h1).dws-typography { font-size: var(--fs-h1); }
:where(h2).dws-typography { font-size: var(--fs-h2); }
:where(h3).dws-typography { font-size: var(--fs-h3); }
:where(p, span).dws-typography { font-size: inherit; line-height: inherit; }
:where(p).dws-typography { margin: 0 0 1em; }
:where(p).dws-typography:where(:last-child) { margin-bottom: 0; }

.eyebrow { margin: 0 0 10px; color: var(--c-accent); font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.page-title { margin-bottom: 16px !important; }
.lead, p.dws-typography.lead { color: var(--c-muted); font-size: var(--fs-lead); max-width: 62ch; }

/* ============================================================ buttons, chips, icons */
.btn-dws { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 24px;
    background: var(--c-button); color: #fff !important; border: 1px solid transparent; border-radius: 999px;
    font: 700 1rem/1.2 var(--font); letter-spacing: 0.01em; text-decoration: none !important; cursor: pointer;
    transition: background var(--ease), border-color var(--ease), transform var(--ease); }
.btn-dws:hover { background: var(--c-button-hover); }
.btn-dws:active { transform: translateY(1px); }
.btn-dws--ghost { background: transparent; border-color: var(--c-line-strong); }
.btn-dws--ghost:hover { background: var(--c-surface-2); border-color: var(--c-muted); }
.btn-dws .dws-icon, .icon-circle .dws-icon { font-size: 1.1em; color: inherit; margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.actions--center { justify-content: center; }

.chip { display: inline-block; margin-bottom: 12px; padding: 3px 12px; border: 1px solid color-mix(in srgb, var(--c-accent) 55%, transparent);
    border-radius: 999px; color: var(--c-accent); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; }
/* DwsChip (non-clickable: a span) brings a filled pill of its own: the site's chip is an outline. */
.dws-chip.chip { min-height: 0; background: none; line-height: inherit; }
.chip .dws-chip__main { min-height: 0; padding: 0; }

.icon-circle { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-surface-2);
    border: 1px solid var(--c-line-strong); color: #fff !important; font-size: 20px; text-decoration: none; transition: background var(--ease), border-color var(--ease); }
.icon-circle:hover { background: var(--c-button); border-color: var(--c-button); }

/* ============================================================ header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(15, 17, 19, 0.94); border-bottom: 1px solid var(--c-line);
    padding-top: env(safe-area-inset-top, 0px); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.site-logo { display: block; line-height: 0; padding-block: 10px; }
.site-logo img { width: 104px; height: auto; object-fit: contain; }
.site-menu__toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.site-menu__burger { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -10px; cursor: pointer; font-size: 1.75rem; color: #fff; border-radius: var(--radius-sm); }
.site-menu__burger:hover { background: var(--c-surface-2); }
.site-menu__burger .dws-icon { font-size: inherit; color: inherit; }
.site-menu__close { display: none !important; }
.site-menu__toggle:checked + .site-menu__burger .site-menu__open { display: none !important; }
.site-menu__toggle:checked + .site-menu__burger .site-menu__close { display: inline-block !important; }
.site-menu__toggle:focus-visible + .site-menu__burger { outline: 3px solid var(--c-accent); }
.site-nav { display: none; width: 100%; }
.site-menu__toggle:checked ~ .site-nav { display: block; }
.site-menu { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 4px 0 16px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.site-menu a { display: block; padding: 14px 4px; color: var(--c-text); text-decoration: none; font-size: 1.125rem; font-weight: 600; border-top: 1px solid var(--c-line); transition: color var(--ease); }
/* Menu links are DwsNavLinks, i.e. list items (.dws-list-item, .dws-selected-item when current): no list-item fill or
   full width; the menus keep their own look. */
.site-menu a.dws-list-item, .footer-menu a.dws-list-item { width: auto; background-color: transparent; }
.site-menu a:hover, .site-menu a.active, .site-menu a[aria-current="page"] { color: var(--c-accent); }

/* ============================================================ main / bands */
.site-main { flex: 1; display: flex; flex-direction: column; }
.band { padding-block: var(--space-band); }
.band + .band { border-top: 1px solid var(--c-line); }
.band--intro, .band--services, .band--game-hero { background: var(--c-surface); }
.band__title { margin-bottom: 28px !important; }

/* ============================================================ home: hero slider */
.slider { position: relative; height: clamp(440px, 72svh, 720px); overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 96px var(--gutter) 88px;
    opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0s linear 0.8s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.8s ease; }
.slide .dws-video, .slide .dws-video__stage { position: absolute; inset: 0; max-width: none !important; margin: 0; background: #000; }
.slide video, .slide .dws-video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.85) 100%); }
.slide__content { position: relative; z-index: 1; width: 100%; max-width: var(--sheet); margin-inline: auto; }
h2.slide__title { font-size: var(--fs-hero); font-weight: 800; line-height: 1.05; margin: 0 0 14px; max-width: 16ch; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }
.slide__text, p.dws-typography.slide__text { font-size: var(--fs-lead); max-width: 52ch; margin: 0 0 22px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.slider__indicators { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 2; display: flex; gap: 4px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.slider__indicators button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 0; }
.slider__indicators button::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); transition: background var(--ease), width var(--ease); }
.slider__indicators button[aria-current="true"]::before { background: var(--c-accent); width: 40px; }
.slider__indicators button:hover::before { background: #fff; }
.slider__pause { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); bottom: 20px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 1.125rem; cursor: pointer; padding: 0; }
.slider__pause:hover { background: rgba(0, 0, 0, 0.75); }
.slider__pause .dws-icon, .slider__pause .bi { color: #fff; }
.no-js .slide:first-child { opacity: 1; visibility: visible; }
.no-js .slider__pause, .no-js .slider__indicators { display: none; }

/* ============================================================ home: intro, game cards, services */
.intro > * { max-width: 860px; }
h1.intro__title { font-size: var(--fs-h1); margin-bottom: 18px; }
.intro__lead, p.dws-typography.intro__lead { color: var(--c-muted); font-size: var(--fs-lead); max-width: 60ch; }

.game-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
.game-card { position: relative; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line);
    border-radius: var(--radius); overflow: hidden; transition: border-color var(--ease), transform var(--ease); }
.game-card:hover { border-color: var(--c-line-strong); transform: translateY(-2px); }
.game-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; }
/* DwsCard (Home): the card, its media and content regions; the primary action link is stretched over the card. */
.dws-card.game-card { color: var(--c-text); }
.dws-card .card-body .game-card__body { padding: 20px 22px 24px; }
.game-card__title { font-size: var(--fs-h3); font-weight: 750; margin: 0 0 6px; }
.game-card .dws-card-primary-action:focus-visible { outline: none; }
.game-card:has(a:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.game-card__text { color: var(--c-muted); margin: 0; }

.services { display: grid; gap: 20px; align-items: center; }
.services .band__title { margin-bottom: 12px !important; }
.services__text, p.dws-typography.services__text { color: var(--c-muted); font-size: var(--fs-lead); max-width: 62ch; margin: 0; }
.services .btn-dws { justify-self: start; }

/* ============================================================ games: switcher and panel */
/* Phones: wrapping pills; tablets and up: one segmented control. */
/* The switcher is a DwsTabGroup in link mode: root .dws-tabs.switcher > header > list > tab > a.dws-tabs__tab-link, then
   the body with the shown panel. The library's tab strip (bar, separators, active underline, hover fill) is replaced by
   the site's pills; the selectors match the library's specificity and come later. */
.switcher.dws-tabs { display: block; background: none; border: 0; color: var(--c-text); }
.switcher.dws-tabs > .dws-tabs__header { display: block; background: none; border: 0; }
.switcher.dws-tabs > .dws-tabs__header > .dws-tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; padding: 0; overflow: visible; }
.switcher.dws-tabs > .dws-tabs__header > .dws-tabs__list > .dws-tabs__tab,
.switcher.dws-tabs > .dws-tabs__header > .dws-tabs__list > .dws-tabs__tab.dws-tabs__tab--active { position: static; min-width: 0; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.switcher .dws-tabs__tab-link { display: block; padding: 10px 18px; border: 1px solid var(--c-line-strong); border-radius: 999px; color: var(--c-muted); font-weight: 700; white-space: nowrap; text-decoration: none; transition: background var(--ease), color var(--ease); }
.switcher .dws-tabs__tab-link::after { content: none; }
.switcher .dws-tabs__tab-link:hover { color: var(--c-text); background: var(--c-surface-2); }
.switcher .dws-tabs__tab-link[aria-current="page"] { background: var(--c-button); color: #fff; }
.switcher.dws-tabs > .dws-tabs__body, .switcher .dws-tabs__body-inner, .switcher .dws-tabs__panel { padding: 0; background: none; border: 0; overflow: visible; color: inherit; }

.game-panel { display: grid; gap: 28px; padding: 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.game-panel__media { justify-self: center; width: min(100%, 320px); }
.game-panel__media--wide { width: 100%; }
.game-panel__img, .game-panel__media img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.game-panel__media--wide img { aspect-ratio: auto; object-fit: contain; background: #000; }
.game-panel__title { margin-bottom: 14px !important; }
.game-panel__body > p.dws-typography { font-size: var(--fs-lead); color: var(--c-text); }
h3.game-panel__goals-title { margin: 20px 0 10px !important; }
.checklist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); transform: rotate(-45deg); }

.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--c-line); }
.facts dt { color: var(--c-muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 600; }

/* ============================================================ help box (depression / suicide) */
.help-box { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; padding: 20px; background: #10262d;
    border: 1px solid #1f5563; border-radius: var(--radius); }
.help-box__icon { font-size: 28px !important; color: var(--c-accent) !important; }
.help-box__title { font-size: var(--fs-h3); font-weight: 750; margin: 0 0 8px; }
.help-box p { color: var(--c-text); }
.help-box__lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.help-box__lines li { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; color: var(--c-muted); }
.help-box__lines span { width: 100%; color: var(--c-muted); font-size: var(--fs-small); }
.help-box__lines a { color: #fff; font-weight: 700; font-size: 1.125rem; }
.help-box__more { font-size: var(--fs-small); color: var(--c-muted) !important; }
.help-box a.dws-link { color: var(--c-link); text-decoration: underline; }
.help-box__lines a.dws-link { color: #fff; }

/* ============================================================ game pages */
.game-hero { display: grid; gap: 32px; }
.game-hero__cover { width: min(100%, 380px); justify-self: center; }
.game-hero__cover img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
h1.game-hero__title { margin-bottom: 18px; }
.game-hero__intro, p.dws-typography.game-hero__intro { font-size: var(--fs-lead); color: var(--c-text); }
.game-block { display: grid; gap: 18px; }
.game-block__media { overflow: hidden; border-radius: var(--radius); background: #000; }
.game-block__media img { width: 100%; height: auto; }
.game-block__media--video { aspect-ratio: 16 / 9; overflow: hidden; }
.game-block__media--video video { width: 100%; height: 100%; object-fit: contain; }
.game-block figcaption { max-width: 72ch; font-size: var(--fs-lead); color: var(--c-text); }
.band--game-block { padding-block: calc(var(--space-band) * 0.6); }
.band--game-block + .band--game-block { border-top: 0; padding-top: 0; }
.game-notes { display: grid; gap: 24px; }
.game-notes > * { max-width: 900px; }
.game-notes .help-box { margin-top: 0; }
.note { padding: 20px; border-left: 3px solid var(--c-line-strong); background: var(--c-surface); border-radius: 0 var(--radius) var(--radius) 0; }
.note__title { font-size: var(--fs-h3); font-weight: 750; margin: 0 0 8px; }
.note p { color: var(--c-muted); }
.sources { color: var(--c-muted); font-size: var(--fs-small); }
.sources a.dws-link { color: var(--c-link); text-decoration: underline; }

/* ============================================================ company */
.about { display: grid; gap: 24px; align-items: center; }
.about__mark { width: 120px; }
.about__mark img { width: 100%; height: auto; border-radius: var(--radius); }
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
.team > li { display: flex; }
.dws-card.profile__card { width: 100%; background: var(--c-surface); color: var(--c-text);
    border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: none; }
.profile__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-surface-2); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
h3.profile__name { font-size: var(--fs-h3); margin: 0; }
.profile__role { margin: 2px 0 12px; color: var(--c-accent); font-size: var(--fs-small); font-weight: 700; }
.profile__bio, p.dws-typography.profile__bio { color: var(--c-muted); font-size: 0.9375rem; line-height: 1.6; }

/* ============================================================ contact */
.contact { display: grid; gap: 40px; }
.contact__details { font-style: normal; margin: 24px 0 28px; display: grid; gap: 6px; }
.contact__details p.dws-typography { margin: 0; color: var(--c-muted); }
.contact__details a.dws-link { color: var(--c-text); font-weight: 600; text-decoration: none; }
.contact__details a.dws-link:hover { text-decoration: underline; }
.contact__details .dws-icon { color: var(--c-accent); margin-right: 8px; }
.contact-form, .contact-form > .dws-form__fields { display: grid; gap: 4px; }
/* DwsForm puts the fields in a <fieldset> (it locks them while a submit runs): no box of its own. */
.contact-form > .dws-form__fields { min-width: 0; margin: 0; padding: 0; border: 0; }
/* DwsInput: .dws-input-wrapper > .input-group > .form-floating > input/textarea.form-control + label (Bootstrap floating
   label: inside the field while it is empty, small above the text once focused or filled), then its own error line
   (.dws-input-error-message, linked by aria-describedby). Restyled to the site's dark fields. */
/* The library themes its fields from its own variables (light by default, some with !important): give it the site's. */
.contact-form { --surface: var(--c-surface); --text: var(--c-text); --control-background: var(--c-surface); --accent: var(--c-accent);
    --bs-body-bg: var(--c-surface); --bs-body-color: var(--c-text); }
.contact-form .dws-input-wrapper { margin-bottom: 14px; }
.contact-form .form-floating > .form-control { width: 100%; background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-line-strong);
    border-radius: var(--radius-sm); font-family: inherit; height: 3.5rem; line-height: 1.25; padding: 1.5rem 14px 0.5rem; box-shadow: none; transition: border-color var(--ease), box-shadow var(--ease); }
.contact-form .form-floating > .form-control:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 35%, transparent); }
.contact-form .form-floating > .form-control[aria-invalid="true"] { border-color: var(--c-error); }
.contact-form .form-floating > textarea.form-control { height: auto; min-height: 170px; padding-top: 1.75rem; resize: vertical; }
.contact-form .form-floating > label { color: var(--c-muted); font-weight: 600; padding: 1.05rem 14px; height: auto; }
.contact-form .form-floating > .form-control:focus ~ label, .contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--c-muted); }
.contact-form .form-floating > .form-control ~ label::after { background-color: transparent !important; }
.contact-form .dws-input-focus-glow:focus-within { box-shadow: none; }
.contact-form .dws-input-error-message { margin-top: 6px; color: var(--c-error); font-size: var(--fs-small); font-weight: 600; }
.form-field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* DwsCheckBox: one label around the native box (visually hidden, :checked switches the two icons) and its text. */
.form-consent { display: grid; gap: 6px; font-size: 0.9375rem; color: var(--c-muted); margin: 4px 0 4px; }
.form-consent .dws-checkbox-label { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text); font-weight: 600; cursor: pointer; }
.form-consent .dws-checkbox .dws-icon { color: var(--c-button); font-size: 1.375rem; padding: 0 !important; }
.form-consent .dws-checkbox-input[aria-invalid="true"] ~ .dws-icon { color: var(--c-error); }
.form-consent .dws-checkbox-input:focus-visible ~ .dws-icon { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
p.dws-typography.form-consent__note { margin: 0; }
.form-consent a.dws-link { color: var(--c-link); text-decoration: underline; }
p.dws-typography.form-error { margin: 0; color: var(--c-error); font-size: var(--fs-small); font-weight: 600; }
.btn.btn-dws.btn-submit { justify-self: start; margin-top: 14px; padding: 10px 28px; border-radius: 999px; background: var(--c-button) !important; color: #fff !important; font: 700 1rem/1.2 var(--font); min-height: 48px; }
.btn.btn-dws.btn-submit:hover { background: var(--c-button-hover) !important; }
.form-status.alert { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--radius-sm); border: 0; }
.form-status.alert.severity-success { background-color: var(--c-success-bg); color: #fff; border-left: 4px solid var(--c-success); }
.form-status.alert.severity-error { background-color: var(--c-error-bg); color: #fff; border-left: 4px solid var(--c-error); }

.map { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-text); }
/* DwsIFrameComponent (RequireConsent): its host fills the box; before consent the placeholder holds the site's text
   and the consent link, styled as the site's button. */
.map .dws-iframe { width: 100%; height: 100%; background: none; border: 0; border-radius: 0; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map .dws-iframe__consent { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px;
    padding: 24px; text-align: center; font-size: 0.9375rem; color: var(--c-muted); background: none; border-radius: 0; }
.map .dws-iframe__consent p.dws-typography { margin: 0; max-width: 44ch; }
.map .dws-iframe__consent strong { color: var(--c-text); }
.map__icon { font-size: 40px !important; color: var(--c-accent) !important; }
.map .dws-iframe__consent a.dws-link:not(.dws-iframe__consent-action) { color: var(--c-link); text-decoration: underline; }
.map a.dws-iframe__consent-action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; margin-top: 4px;
    background: var(--c-button); color: #fff !important; border-radius: 999px; font: 700 1rem/1.2 var(--font); text-decoration: none !important; transition: background var(--ease); }
.map a.dws-iframe__consent-action:hover { background: var(--c-button-hover); }

/* ============================================================ legal / text pages */
.prose { max-width: calc(860px + 2 * var(--gutter)); }
.prose h1.dws-typography { margin-bottom: 28px; }
.prose h2 { font-size: var(--fs-h2); font-weight: 750; margin: 44px 0 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { font-size: 1.25rem; font-weight: 750; margin: 32px 0 10px; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.75; color: #dde2e6; }
.prose li { margin-bottom: 6px; }
.prose a, .prose a.dws-link { color: var(--c-link); text-decoration: underline; }
.prose .dws-divider { border-color: var(--c-line); opacity: 1; }
.toc { display: grid; gap: 20px; margin: 0 0 36px; padding: 20px 22px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.toc__title { margin: 0 0 6px !important; font-weight: 800; }
.toc__title a { color: var(--c-text) !important; text-decoration: none !important; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { font-size: 0.9375rem !important; line-height: 1.6 !important; margin: 0 !important; }
.toc li a { display: inline-block; padding-block: 3px; } /* 24 px touch targets */

.empty-state { text-align: center; min-height: 46vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.empty-state h1.dws-typography { margin-bottom: 10px; }
.empty-state p.dws-typography { color: var(--c-muted); max-width: 52ch; margin-inline: auto; }
.empty-state__icon, .updates__icon { display: inline-block; font-size: 48px !important; color: var(--c-accent) !important; margin-bottom: 12px; }
.empty-state__meta { color: var(--c-muted); font-size: var(--fs-small); margin-top: 12px; }
.empty-state .dws-horizontal { margin-top: 20px; }

/* ============================================================ updates: channel cards */
.updates { text-align: center; max-width: calc(900px + 2 * var(--gutter)); }
.updates__lead, p.dws-typography.updates__lead { color: var(--c-muted); max-width: 52ch; margin: 0 auto 32px; }
.channel-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; text-align: left; }
.channel { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
    padding: 16px 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none !important; color: var(--c-text) !important;
    transition: border-color var(--ease), transform var(--ease); }
.channel:hover { border-color: var(--c-line-strong); transform: translateY(-2px); }
.channel__icon { grid-row: 1 / 3; display: grid !important; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-button); color: #fff !important; font-size: 22px !important; }
.channel__name { font-size: 1.125rem; font-weight: 700; color: var(--c-text); }
.channel__text { grid-column: 2; font-size: 0.9375rem; color: var(--c-muted); }
.channel__arrow { grid-row: 1 / 3; grid-column: 3; color: var(--c-muted) !important; }

/* ============================================================ footer */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-line); padding: 40px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.site-footer__inner { display: grid; gap: 24px; }
.site-footer__name { margin: 0; font-weight: 800; font-size: 1.125rem; }
.site-footer__tagline { margin: 0; color: var(--c-muted); font-size: var(--fs-small); }
.footer-menu { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; margin: 0 0 0 -12px; padding: 0; }
.footer-menu a { display: block; padding: 10px 12px; color: var(--c-muted); text-decoration: none; font-size: 0.9375rem; font-weight: 600; transition: color var(--ease); }
.footer-menu a:hover, .footer-menu a.active { color: var(--c-text); }
.socials { display: flex; gap: 8px; list-style: none; margin: 0 0 0 -6px; padding: 0; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--c-muted) !important; text-decoration: none; font-size: 1.25rem; transition: color var(--ease), background var(--ease); }
.socials a:hover { color: #fff !important; background: var(--c-surface-2); }
.socials .dws-icon { color: inherit; }
.site-footer__copy { margin: 0; padding-top: 20px; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: 0.8125rem; }

/* ============================================================ tablet (>= 768 px) */
@media (min-width: 768px) {
    :root { --gutter: 32px; --header-h: 72px; }

    .slide { padding-bottom: 104px; }
    .slider__indicators { bottom: 28px; }
    .slider__pause { bottom: 28px; right: 28px; }

    .game-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .help-box { grid-template-columns: auto 1fr; gap: 16px; padding: 24px; }
    .switcher.dws-tabs > .dws-tabs__header > .dws-tabs__list { flex-wrap: nowrap; gap: 4px; padding: 4px; width: max-content; max-width: 100%; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; }
    .switcher .dws-tabs__tab-link { border-color: transparent; }
    .services { grid-template-columns: 1fr auto; gap: 40px; }

    .game-panel { grid-template-columns: 260px minmax(0, 1fr); padding: 32px; gap: 36px; align-items: start; }
    .game-panel:has(.game-panel__media--wide) { grid-template-columns: 1fr; }
    .game-panel__media { width: 100%; }

    .game-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
    .game-hero__cover { width: 100%; }

    .about { grid-template-columns: 160px minmax(0, 1fr); gap: 40px; }
    .about__mark { width: 160px; }
    .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
    .map { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 24px); }

    .toc { grid-template-columns: 1fr 1fr; }
    .channel-grid { grid-template-columns: 1fr 1fr; }

    .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
    .site-footer__inner > nav { grid-column: 1 / -1; grid-row: 2; }
    .socials { grid-column: 2; grid-row: 1; margin: 0; }
    .site-footer__copy { grid-column: 1 / -1; }
}

/* ============================================================ desktop (>= 992 px) */
@media (min-width: 992px) {
    .site-logo img { width: 124px; }
    .site-menu__burger { display: none; }
    .site-nav { display: block; width: auto; }
    .site-menu { flex-direction: row; gap: 4px; padding: 0; max-height: none; overflow: visible; }
    .site-menu a { padding: 10px 16px; border: 0; font-size: 1rem; border-radius: 999px; }
    .site-menu a:hover { background: var(--c-surface-2); color: var(--c-text); }
    .site-menu a.active, .site-menu a[aria-current="page"] { color: var(--c-accent); }

    .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .game-panel { grid-template-columns: 300px minmax(0, 1fr); padding: 40px; }
}

@media (min-width: 1200px) {
    .team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================ motion & print */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
    .site-header, .site-footer, .slider, .map, .skip-link, .toc { display: none !important; }
    body, .band { background: #fff !important; color: #000 !important; border: 0 !important; }
    h1, h2, h3, .prose p, .prose li { color: #000 !important; }
}

/* ============================================================ DWS image shape classes */
/* DwsImage always adds a shape class (.dws-image.shape-square { border-radius: 0 }): restate the radii with the same
   specificity, later in the cascade. */
.about__mark .dws-image, .game-panel__media .dws-image, .game-hero__cover .dws-image { border-radius: var(--radius); }
.game-panel__media .dws-image { border-radius: var(--radius-sm); }

/* Team cards (DwsCard: media region, then card-body > .inner > content region) on phones: small square portrait beside
   name and role, bio below; tablets and up: portrait on top. The card body wrappers take no box of their own. */
.dws-card.profile__card { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; padding: 16px; }
.dws-card.profile__card > .card-body, .dws-card.profile__card > .card-body > .inner { display: contents; }
.dws-card .profile__photo { grid-row: 1; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
.dws-card .card-body .profile__body { display: contents; padding: 0; }
.profile__head { grid-column: 2; grid-row: 1; align-self: center; }
.profile__bio, p.dws-typography.profile__bio { grid-column: 1 / -1; grid-row: 2; margin-top: 14px; }
.profile__photo img { object-position: center 18%; }
@media (min-width: 768px) {
    .dws-card.profile__card { display: flex; flex-direction: column; padding: 0; }
    .dws-card .profile__photo { aspect-ratio: 4 / 5; border-radius: 0; }
    .dws-card .card-body .profile__body { display: block; padding: 18px 20px 22px; }
    .profile__bio, p.dws-typography.profile__bio { margin-top: 0; }
}
