/* Secondary surfaces share the club's paper, ink and typography.
   Theme qualification also takes precedence over the legacy night palette. */

html[data-theme] :is(.figma-catalog, .figma-game-page) {
    --catalog-ink: var(--ww-ink);
    --catalog-muted: var(--ww-muted);
    --catalog-border: var(--ww-line);
    --catalog-soft: var(--ww-surface);
    --catalog-purple: var(--ww-forest);
    --catalog-yellow: var(--ww-peach);
}

html[data-theme] :is(.fp-wide, .fp-responsible-wide, .catalog-container, .figma-game-container,
    .nv-account__shell, .fc-wrap, .pk-wrap) {
    width: min(calc(100% - 64px), 1280px);
    margin-inline: auto;
}

html[data-theme] :is(.fp-auth, .fp-contact, .fp-faq, .fp-not-found, .nv-account,
    .fp-responsible-intro, .fp-responsible-controls, .fp-responsible-signs,
    .fp-responsible-partners, .catalog-browse, .catalog-picks, .catalog-popular,
    .figma-game-details, .page-circuit, .page-poker, .page-quick-poker) {
    height: auto;
    min-height: 0;
    background: var(--ww-paper);
    color: var(--ww-ink);
}

html[data-theme] :is(.fp-auth, .fp-contact, .fp-faq, .fp-not-found,
    .fp-responsible-intro, .fp-responsible-controls, .fp-responsible-signs,
    .fp-responsible-partners, .catalog-browse, .catalog-picks, .catalog-popular,
    .figma-game-details, .nv-account, .fc-main, .pk-main) {
    padding-block: clamp(40px, 5vw, 72px);
}

html[data-theme] :is(.fp-auth h1, .fp-page-hero h1, .fp-contact h2,
    .fp-support > h2, .fp-not-found h1, .fp-responsible-hero h1,
    .fp-responsible-intro h2, .fp-responsible-controls h2,
    .fp-responsible-signs h2, .fp-responsible-partners h2,
    .catalog-title-row h1, .catalog-section-heading h2, .catalog-mobile-intro h1,
    .figma-game-title h1, .figma-game-details h2, .nv-account h1, .nv-account h2,
    .fc-hero h1, .fc-heading h2, .fc-goal h3, .fc-style h3,
    .pk-hero h1, .pk-lobby__intro h2, .pk-guide h2, .pk-room h2, .pk-choice h3,
    .pk-quick__intro h2, .pk-history__title) {
    color: var(--ww-ink);
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.08;
    text-wrap: balance;
}

html[data-theme] :is(.fp-page-hero, .fp-responsible-hero, .fc-hero, .pk-hero) {
    height: auto;
    min-height: 0;
    padding-block: clamp(48px, 6vw, 88px);
    border-bottom: 1px solid var(--ww-line);
    background: var(--ww-paper);
    color: var(--ww-ink);
}

html[data-theme] :is(.fp-page-hero h1, .fp-responsible-hero h1, .fc-hero h1, .pk-hero h1) {
    max-width: 17ch;
    font-size: clamp(40px, 5.5vw, 76px);
}

html[data-theme] :is(.fp-page-hero p, .fp-responsible-hero p,
    .fc-hero p:not(.fc-kicker), .pk-hero p:not(.pk-kicker)) {
    max-width: 65ch;
    margin-top: 20px;
    color: var(--ww-muted);
    font-size: 17px;
    line-height: 1.6;
}

html[data-theme] :is(.fp-kicker, .catalog-kicker, .fc-kicker, .pk-kicker,
    .nv-account-kicker, .nv-profile-card__label,
    .catalog-section-heading--popular > div:first-child > span) {
    display: none;
}

html[data-theme] :is(.fp-button, .catalog-primary, .fc-button--primary,
    .fc-button--light, .pk-button--primary, .pk-button--dark) {
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--ww-forest);
    color: #fffdf7;
    font: 600 15px/1.3 "IBM Plex Sans", sans-serif;
    letter-spacing: 0;
    box-shadow: none;
    transition: background-color 180ms ease, border-color 180ms ease;
}

html[data-theme] :is(.fp-button:hover, .catalog-primary:hover, .fc-button:hover,
    .pk-button:hover:not(:disabled)) {
    transform: none;
    box-shadow: none;
}

html[data-theme] :is(.fp-button:hover, .catalog-primary:hover,
    .fc-button--primary:hover, .fc-button--light:hover,
    .pk-button--primary:hover:not(:disabled), .pk-button--dark:hover:not(:disabled)) {
    background: color-mix(in srgb, var(--ww-forest) 88%, #000);
    color: #fffdf7;
}

html[data-theme] :is(.fp-button:disabled, .fc-button:disabled, .catalog-reset:disabled,
    .pk-button:disabled) { opacity: .55; cursor: not-allowed; }

html[data-theme] :is(.fp-auth, .fp-contact, .fp-faq, .catalog-filters,
    .nv-account, .store-billing, .fc-main, .pk-lobby, .pk-quick__form,
    .legal-nav) :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--ww-ink);
    outline-offset: 4px;
}

/* Forms have generous hit areas and keep all native validation states. */
html[data-theme] .fp-auth { padding-block: clamp(40px, 7vw, 96px); }
html[data-theme] :is(.fp-auth-card, .fp-auth-card--signup) {
    width: min(100%, 520px);
    min-height: 0;
    gap: 28px;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--ww-line);
    border-radius: 16px;
    background: var(--ww-surface);
    color: var(--ww-ink);
    box-shadow: none;
}

html[data-theme] .fp-auth-heading { text-align: left; }
html[data-theme] .fp-auth-heading h1 { font-size: clamp(36px, 4vw, 48px); }
html[data-theme] :is(.fp-auth-heading p, .fp-auth-switch, .fp-auth-intro) {
    color: var(--ww-muted);
    font-size: 15px;
    line-height: 1.55;
}
html[data-theme] .fp-auth-heading p { margin-top: 12px; }
html[data-theme] :is(.fp-auth-switch a, .fp-auth-help a, .fp-consents a,
    .fp-auth-card > p a, .fp-support-item h3, .fp-professional-support a,
    .fp-partner-grid a) {
    color: var(--ww-ink);
    text-decoration: underline;
    text-decoration-color: var(--ww-copper);
    text-underline-offset: 4px;
}

html[data-theme] .fp-form:not([hidden]) { gap: 20px; }
html[data-theme] :is(.fp-field, .fp-faq-search, .fp-field > span:first-child,
    .nv-profile-edit .form-field > span:first-child) {
    color: var(--ww-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
html[data-theme] :is(.fp-field input, .fp-field select, .fp-field textarea,
    .fp-contact-form .fp-field input, .fp-contact-form .fp-field select,
    .fp-contact-form .fp-field textarea, .fp-faq-search input,
    .nv-profile-edit .form-field input) {
    min-height: 48px;
    height: auto;
    padding: 12px 14px;
    border: 1px solid var(--ww-line);
    border-radius: 8px;
    background: var(--ww-paper);
    color: var(--ww-ink);
    font: 400 16px/1.4 "IBM Plex Sans", sans-serif;
    caret-color: var(--ww-ink);
    box-shadow: none;
}
html[data-theme] .fp-field textarea { min-height: 160px; }
html[data-theme] :is(.fp-field input, .fp-field textarea, .fp-faq-search input,
    .nv-profile-edit input)::placeholder { color: var(--ww-muted); opacity: 1; }
html[data-theme] .fp-field.has-error :is(input, select, textarea) { border-color: #a43832; }
html[data-theme] .fp-field small { font-size: 13px; line-height: 1.4; }
html[data-theme] .fp-check { gap: 12px; font-size: 13px; line-height: 1.5; color: var(--ww-ink); }
html[data-theme] .fp-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ww-forest); }
html[data-theme] .fp-auth-help { font-size: 14px; line-height: 1.4; }
html[data-theme] .fp-consents { gap: 16px; }
html[data-theme] .fp-form-alert {
    padding: 14px 16px;
    border: 1px solid #a43832;
    border-radius: 8px;
    background: color-mix(in srgb, var(--ww-surface) 92%, #a43832);
    color: var(--ww-ink);
    font-size: 14px;
    line-height: 1.5;
}
html[data-theme] .fp-form-alert.is-success {
    border-color: var(--ww-forest);
    background: color-mix(in srgb, var(--ww-surface) 90%, var(--ww-forest));
    color: var(--ww-ink);
}
html[data-theme] .account-verification-notice {
    background: var(--ww-surface);
    border-bottom: 1px solid var(--ww-line);
    color: var(--ww-ink);
}
html[data-theme] .account-verification-notice a { color: var(--ww-ink); text-underline-offset: 3px; }

/* The contact page reads as a letter and an adjacent support directory. */
html[data-theme] .fp-contact-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
}
html[data-theme] .fp-contact-card {
    min-height: 0;
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid var(--ww-line);
    border-radius: 16px;
    background: var(--ww-surface);
}
html[data-theme] :is(.fp-contact-card h2, .fp-support > h2) { font-size: clamp(30px, 3vw, 40px); }
html[data-theme] .fp-support { min-height: 0; }
html[data-theme] .fp-support-item {
    padding: 28px 0;
    border: 0;
    border-bottom: 1px solid var(--ww-line);
    border-radius: 0;
}
html[data-theme] .fp-support-item--featured { margin-top: 16px; }
html[data-theme] :is(.fp-support-item a, .fp-support-item strong) {
    color: var(--ww-ink);
    font-size: 18px;
    overflow-wrap: anywhere;
}
html[data-theme] .fp-support-item p { margin-top: 12px; color: var(--ww-muted); font-size: 15px; line-height: 1.6; }
html[data-theme] .fp-message-field .character-count { display: block; text-align: right; color: var(--ww-muted); font-size: 12px; }
html[data-theme] .fp-form-note { display: block; color: var(--ww-muted); font-size: 13px; line-height: 1.5; }

/* A continuous question list keeps answers together as they expand. */
html[data-theme] .fp-faq-container { width: min(calc(100% - 64px), 960px); min-height: 0; }
html[data-theme] .fp-faq-categories { flex-wrap: wrap; gap: 8px; }
html[data-theme] .fp-faq-categories button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--ww-line);
    background: var(--ww-surface);
    color: var(--ww-ink);
    font-size: 14px;
    transition: background-color 180ms ease, color 180ms ease;
}
html[data-theme] .fp-faq-categories button.is-active {
    border-color: var(--ww-forest);
    background: var(--ww-forest);
    color: #fffdf7;
}
html[data-theme] .fp-faq-search { margin-top: 32px; }
html[data-theme] .fp-faq-search input { padding-right: 48px; }
html[data-theme] .fp-faq-search img { top: 15px; }
html[data-theme] .fp-faq-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 32px;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--ww-line);
    border-radius: 0;
}
html[data-theme] .fp-faq-item {
    border: 0;
    border-bottom: 1px solid var(--ww-line);
    border-radius: 0;
    background: transparent;
    color: var(--ww-ink);
}
html[data-theme] .fp-faq-item h2 button {
    min-height: 80px;
    padding: 20px 0;
    color: var(--ww-ink);
    font-size: 17px;
    line-height: 1.45;
}
html[data-theme] .fp-faq-toggle { background: var(--ww-surface); border-color: var(--ww-line); }
html[data-theme] .fp-faq-toggle::before,
html[data-theme] .fp-faq-toggle::after { background: var(--ww-ink); }
html[data-theme] .fp-faq-answer { max-width: 75ch; padding: 0 52px 24px 0; color: var(--ww-muted); font-size: 16px; line-height: 1.7; }
html[data-theme] :is(.fp-faq-empty, .catalog-empty) { padding: 40px 24px; background: var(--ww-surface); color: var(--ww-ink); border-radius: 12px; }

/* Game artwork is the catalog's identity; controls stay quiet and legible. */
html[data-theme] :is(.catalog-browse, .catalog-picks, .catalog-popular) { min-height: 0; }
html[data-theme] .catalog-title-row { align-items: center; margin-bottom: 32px; }
html[data-theme] .catalog-title-row h1 { margin-bottom: 12px; font-size: clamp(40px, 5.5vw, 72px); }
html[data-theme] .catalog-section-heading h2 { font-size: clamp(32px, 4vw, 48px); }
html[data-theme] :is(.catalog-title-row p, .catalog-section-heading p) { max-width: 65ch; font-size: 15px; line-height: 1.6; }
html[data-theme] .catalog-status { min-height: 36px; background: var(--ww-surface); color: var(--ww-muted); font-size: 13px; }
html[data-theme] .catalog-filters {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    border: 1px solid var(--ww-line);
    border-radius: 12px;
    background: var(--ww-surface);
}
html[data-theme] .catalog-filters label { font-size: 14px; font-weight: 600; }
html[data-theme] .catalog-filters :is(input, select) {
    min-height: 48px;
    height: auto;
    padding: 12px 14px;
    border: 1px solid var(--ww-line);
    background: var(--ww-paper);
    color: var(--ww-ink);
    font: 400 16px/1.4 "IBM Plex Sans", sans-serif;
}
html[data-theme] .catalog-input-wrap input { padding-right: 44px; }
html[data-theme] .catalog-filters :is(input, select):focus { border-color: var(--ww-ink); box-shadow: none; }
html[data-theme] .catalog-filters input::placeholder { color: var(--ww-muted); }
html[data-theme] .catalog-input-wrap i { border-color: var(--ww-muted); }
html[data-theme] .catalog-input-wrap i::after { background: var(--ww-muted); }
html[data-theme] .catalog-reset {
    min-height: 48px;
    height: auto;
    padding: 12px 20px;
    border: 1px solid var(--ww-line);
    border-radius: 8px;
    background: var(--ww-paper);
    color: var(--ww-ink);
    font-size: 15px;
}
html[data-theme] :is(.catalog-mini-grid, .catalog-popular-grid) { gap: 24px; }
html[data-theme] :is(.catalog-mini-card, .catalog-popular-card, .catalog-pick-card,
    .catalog-popular-card.is-featured) {
    border: 1px solid var(--ww-line);
    border-radius: 14px;
    background: var(--ww-surface);
    color: var(--ww-ink);
}
html[data-theme] :is(.catalog-mini-card__art, .catalog-popular-card > a:first-child,
    .catalog-pick-card__art) {
    aspect-ratio: 1;
    margin: 0;
    border-radius: 0;
    background: #173b32;
}
html[data-theme] .catalog-mini-card__body { min-height: 0; padding: 20px; }
html[data-theme] :is(.catalog-mini-card h2, .catalog-popular-card h3, .catalog-pick-card h3) { color: var(--ww-ink); font-size: 18px; line-height: 1.3; }
html[data-theme] :is(.catalog-mini-card p, .catalog-popular-card p, .catalog-pick-card p,
    .catalog-popular-card.is-featured p) { min-height: 0; color: var(--ww-muted); font-size: 13px; line-height: 1.55; }
html[data-theme] :is(.catalog-mini-card__body > a, .catalog-card-link,
    .catalog-pick-card__body a, .catalog-section-heading > a,
    .catalog-section-heading--popular > div:last-child a,
    .catalog-popular-card.is-featured .catalog-card-link) {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    color: var(--ww-ink);
    font-size: 14px;
}
html[data-theme] .catalog-popular-card.is-featured h3 { color: var(--ww-ink); }
html[data-theme] .catalog-popular-card h3 { margin-top: 20px; }
html[data-theme] .catalog-picks { border-block: 1px solid var(--ww-line); }
html[data-theme] .catalog-pick-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
html[data-theme] .catalog-pick-card__art { align-self: stretch; aspect-ratio: auto; }
html[data-theme] .catalog-pick-card__body { min-height: 0; padding: 24px; }
html[data-theme] .catalog-pick-card__body > span { display: none; }
html[data-theme] .catalog-pick-card h3 { padding-right: 0; font-size: 24px; }
html[data-theme] .catalog-pick-card__body > p:not(.catalog-pick-card__meta) { min-height: 0; color: var(--ww-muted); font-size: 14px; }
html[data-theme] .catalog-pick-card__body > div { flex-wrap: wrap; gap: 8px 20px; }
html[data-theme] .catalog-secondary { min-height: 44px; border: 1px solid var(--ww-line); border-radius: 8px; background: var(--ww-surface); color: var(--ww-ink); }
html[data-theme] .catalog-disclaimer { margin-top: 24px; font-size: 13px; line-height: 1.5; }

/* Game surrounds change palette; iframe and fullscreen geometry remain intact. */
html[data-theme] .figma-game-stage-section { min-height: 0; background: var(--ww-forest); color: #fffdf7; }
html[data-theme] .figma-game-title h1 { color: #fffdf7; font-size: clamp(32px, 4vw, 48px); }
html[data-theme] .figma-game-title p { color: #e7ede3; font-size: 14px; line-height: 1.5; }
html[data-theme] .figma-game-shell { background: var(--ww-surface); color: var(--ww-ink); }
html[data-theme] :is(.figma-game-shell__notice, .figma-game-shell__help) { font-size: 13px; line-height: 1.5; }
html[data-theme] .figma-game-shell__help a { color: var(--ww-ink); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme] .figma-game-title__actions :is(a, button) { font-size: 14px; }
html[data-theme] .figma-game-title__actions .is-yellow { background: #edc9b2; color: #173b32; border-color: #edc9b2; }
html[data-theme] .figma-game-details { min-height: 0; }
html[data-theme] .figma-game-details h2 { font-size: clamp(32px, 4vw, 48px); }
html[data-theme] .figma-game-details__intro > p { max-width: 70ch; color: var(--ww-muted); font-size: 16px; line-height: 1.6; }
html[data-theme] .figma-game-guide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; }
html[data-theme] :is(.figma-quick-facts, .figma-how-play, .figma-rule-list, .figma-metadata) { min-height: 0; border-color: var(--ww-line); background: var(--ww-surface); color: var(--ww-ink); }
html[data-theme] :is(.figma-quick-facts, .figma-how-play, .figma-metadata) { padding: 24px; }
html[data-theme] .figma-game-details h3 { color: var(--ww-ink); font-size: 18px; }
html[data-theme] :is(.figma-quick-facts dl > div, .figma-how-play li) { font-size: 15px; line-height: 1.6; }
html[data-theme] :is(.figma-quick-facts p, .figma-metadata > p) { color: var(--ww-muted); font-size: 14px; line-height: 1.6; }
html[data-theme] .figma-how-play li::before { top: 3px; background: var(--ww-forest); color: #fffdf7; }
html[data-theme] :is(.figma-rule-list .accordion-item, .figma-rule-list button) { background: transparent; color: var(--ww-ink); }
html[data-theme] .figma-rule-list .accordion-item { border-bottom-color: var(--ww-line); }
html[data-theme] .figma-rule-list button { min-height: 64px; font-size: 15px; line-height: 1.5; }
html[data-theme] .figma-rule-list .accordion-item > div { color: var(--ww-muted); font-size: 15px; line-height: 1.6; }
html[data-theme] .figma-metadata dl > div { background: transparent; padding: 0; }
html[data-theme] .figma-metadata dt { color: var(--ww-muted); font-size: 13px; }
html[data-theme] .figma-metadata dd { font-size: 15px; }

/* Safer-play guidance uses a reading rhythm, with illustration kept secondary. */
html[data-theme] .fp-responsible-hero-grid { height: auto; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
html[data-theme] .fp-responsible-hero .fp-button { width: auto; margin-top: 24px; }
html[data-theme] .fp-responsible-intro-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; }
html[data-theme] .fp-responsible-intro img { width: min(100%, 360px); height: auto; justify-self: center; }
html[data-theme] :is(.fp-responsible-intro h2, .fp-responsible-controls h2,
    .fp-responsible-signs h2, .fp-responsible-partners h2) { font-size: clamp(30px, 3.5vw, 44px); }
html[data-theme] :is(.fp-responsible-intro .fp-lead, .fp-responsible-intro .fp-lead + p,
    .fp-responsible-heading > p:last-child, .fp-signs-grid > div > p,
    .fp-signs-grid ul, .fp-professional-support > p) { color: var(--ww-muted); font-size: 16px; line-height: 1.7; }
html[data-theme] .fp-responsible-intro .fp-lead { font-size: 19px; }
html[data-theme] .fp-responsible-controls { border-block: 1px solid var(--ww-line); }
html[data-theme] .fp-control-grid { height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 32px; }
html[data-theme] .fp-control-card {
    gap: 20px;
    padding: 28px 0;
    border: 0;
    border-bottom: 1px solid var(--ww-line);
    border-radius: 0;
    background: transparent;
    color: var(--ww-ink);
}
html[data-theme] .fp-control-card:last-child { border-color: var(--ww-line); }
html[data-theme] :is(.fp-control-card h3, .fp-partner-grid h3, .fp-support-banner h3) { color: var(--ww-ink); font: 700 22px/1.2 "Bricolage Grotesque", "IBM Plex Sans", sans-serif; }
html[data-theme] .fp-control-card p { max-width: 55ch; color: var(--ww-muted); font-size: 15px; line-height: 1.65; }
html[data-theme] .fp-control-card img { width: 80px; height: 80px; flex-basis: 80px; }
html[data-theme] .fp-signs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
html[data-theme] .fp-signs-grid li::before { background: var(--ww-copper); }
html[data-theme] .fp-professional-support { min-height: 0; padding: 32px; border: 1px solid var(--ww-line); background: var(--ww-surface); }
html[data-theme] .fp-professional-support dt { color: var(--ww-ink); font-size: 15px; }
html[data-theme] .fp-professional-support dd { color: var(--ww-muted); font-size: 15px; line-height: 1.6; }
html[data-theme] :is(.fp-professional-support a, .fp-partner-grid a) { font-size: 14px; }
html[data-theme] .fp-partner-grid { gap: 32px; }
html[data-theme] :is(.fp-partner-grid article, .fp-partner-grid article:nth-child(2)) { min-height: 0; padding: 24px 0; border: 0; border-top: 1px solid var(--ww-line); border-radius: 0; background: transparent; }
html[data-theme] .fp-partner-grid p { color: var(--ww-muted); font-size: 15px; line-height: 1.6; }
html[data-theme] .fp-support-banner { background: var(--ww-surface); color: var(--ww-ink); border: 1px solid var(--ww-line); border-radius: 12px; }
html[data-theme] .fp-support-banner p { color: var(--ww-muted); }

/* Accounts retain the existing dashboard, with quieter records and navigation. */
html[data-theme] :is(.page-account, .page-profile) .site-main { background: var(--ww-paper); }
html[data-theme] :is(.nv-account-card, .nv-account-guest, .nv-account-guest--dark,
    .nv-profile-card, .nv-profile-shortcuts, .nv-profile-details) {
    border: 1px solid var(--ww-line);
    border-radius: 14px;
    background: var(--ww-surface);
    color: var(--ww-ink);
    box-shadow: none;
}
html[data-theme] :is(.nv-account-identity__copy h2, .nv-account-identity__meta dd,
    .nv-profile-card__facts dd, .nv-profile-details__grid dd,
    .nv-account-empty h3, .nv-account-activity__table td strong,
    .nv-profile-features h3, .nv-profile-features) { color: var(--ww-ink); }
html[data-theme] :is(.nv-account-identity__copy > p[data-account-email],
    .nv-account-identity__meta dt, .nv-account-card__heading p:not(.nv-account-kicker),
    .nv-account-empty p, .nv-account-safety p:last-child,
    .nv-account-guest > p:not(.nv-account-kicker), .nv-profile-card__email,
    .nv-profile-card__facts dt, .nv-profile-heading > p:last-child,
    .nv-profile-details__grid dt, .nv-profile-details__help,
    .nv-profile-features p, .nv-profile-edit > p, .nv-account-menu small) {
    color: var(--ww-muted);
    font-size: 14px;
    line-height: 1.55;
}
html[data-theme] :is(.nv-account-avatar, .nv-profile-avatar, .nv-account-guest__mark) {
    border-color: var(--ww-line);
    background: var(--ww-peach);
    color: #173b32;
    font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    box-shadow: none;
}
html[data-theme] .nv-account-avatar--neon { background: #dce8e1; color: #173b32; }
html[data-theme] .nv-account-avatar--royal { background: #edc9b2; color: #173b32; }
html[data-theme] .nv-account-avatar--midnight { background: #173b32; color: #fffdf7; }
html[data-theme] :is(.nv-account-menu > a, .nv-account-menu__logout button,
    .nv-profile-shortcuts > a, .nv-profile-shortcuts button) { color: var(--ww-ink); font-size: 14px; }
html[data-theme] :is(.nv-account-menu > a:hover, .nv-account-menu > a.is-active,
    .nv-account-menu__logout button:hover, .nv-profile-shortcuts > a:hover,
    .nv-profile-shortcuts button:hover) { background: var(--ww-paper); color: var(--ww-ink); }
html[data-theme] :is(.nv-account-menu__icon, .nv-account-safety__mark,
    .nv-account-menu .is-active .nv-account-menu__icon,
    .nv-account-menu a:hover .nv-account-menu__icon,
    .nv-account-menu button:hover .nv-account-menu__icon) { background: var(--ww-paper); color: var(--ww-ink); }
html[data-theme] .nv-account-menu strong { font-size: 15px; }
html[data-theme] :is(.nv-account-text-link, .nv-account-flair, .nv-profile-details__help a) { color: var(--ww-ink); font-size: 14px; }
html[data-theme] :is(.nv-account-identity__meta, .nv-account-menu > a + a,
    .nv-account-menu__logout, .nv-account-activity__table-wrap,
    .nv-account-activity__table th, .nv-account-activity__table td,
    .nv-account-empty, .nv-account-inline-notice, .nv-profile-card__facts,
    .nv-profile-card__facts > div, .nv-profile-shortcuts > a + a,
    .nv-profile-shortcuts form, .nv-profile-details__grid,
    .nv-profile-details__grid > div) { border-color: var(--ww-line); }
html[data-theme] .nv-account-balance { border: 0; background: var(--ww-forest); border-radius: 14px; box-shadow: none; }
html[data-theme] .nv-account-balance h2 { color: #fffdf7; }
html[data-theme] .nv-account-balance :is(p:first-child, div > p:last-child) { color: #e0e7dc; font-size: 14px; }
html[data-theme] .nv-account-balance__action { border-color: #edc9b2; background: #edc9b2; color: #173b32; box-shadow: none; }
html[data-theme] .nv-account-balance__action:hover { border-color: #f4ddcb; background: #f4ddcb; color: #173b32; }
html[data-theme] .nv-account-activity__table { color: var(--ww-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
html[data-theme] .nv-account-activity__table th { background: var(--ww-paper); color: var(--ww-muted); font-size: 12px; text-transform: none; }
html[data-theme] :is(.nv-account-inline-notice, .nv-account-empty__coin) { background: var(--ww-paper); color: var(--ww-ink); }
html[data-theme] .nv-profile-status { border-color: var(--ww-line); background: var(--ww-paper); color: var(--ww-ink); font-size: 13px; }
html[data-theme] .nv-profile-details__grid dt { text-transform: none; }
html[data-theme] .nv-profile-details__grid dd { font-size: 16px; }
html[data-theme] .nv-profile-heading { text-align: left; }
html[data-theme] .nv-profile-heading h1 { font-size: clamp(40px, 5vw, 64px); }
html[data-theme] .nv-profile-section-heading { text-align: left; }
html[data-theme] .nv-profile-features__grid { gap: 24px; }
html[data-theme] .nv-profile-features article { min-height: 0; padding: 24px 0; border: 0; border-top: 1px solid var(--ww-line); border-radius: 0; background: transparent; }
html[data-theme] .nv-profile-features article > span { background: var(--ww-surface); color: var(--ww-ink); }
html[data-theme] .nv-profile-features h3 { font-size: 18px; }
html[data-theme] .nv-account-guest { margin-block: 0; }
html[data-theme="light"] .nv-account-amount.is-positive { color: #286648; }
html[data-theme="dark"] .nv-account-amount.is-positive { color: #a9dfbc; }
html[data-theme="light"] .nv-account-amount.is-negative { color: #a43832; }
html[data-theme="dark"] .nv-account-amount.is-negative { color: #ffb9b2; }

/* Prices, checked packs and checkout stay explicit at every viewport. */
html[data-theme] :is(.page-store, .page-payment-return, .page-legal) .page-hero {
    min-height: 0;
    padding-block: clamp(40px, 5vw, 72px);
    border-bottom: 1px solid var(--ww-line);
    background: var(--ww-paper);
    color: var(--ww-ink);
}
html[data-theme] :is(.page-store, .page-payment-return, .page-legal) .page-hero__inner {
    width: min(calc(100% - 64px), 1280px);
    max-width: 1280px;
    text-align: left;
}
html[data-theme] :is(.page-store, .page-payment-return, .page-legal) .page-hero h1 {
    margin: 0 0 16px;
    color: var(--ww-ink);
    font: 700 clamp(40px, 5vw, 64px)/1.08 "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
    letter-spacing: -.035em;
    text-wrap: balance;
}
html[data-theme] :is(.page-store, .page-payment-return, .page-legal) .page-hero .eyebrow { display: none; }
html[data-theme] :is(.page-store, .page-payment-return, .page-legal) .page-hero .breadcrumbs ol { justify-content: flex-start; margin-bottom: 24px; color: var(--ww-muted); }
html[data-theme] :is(.page-store, .page-payment-return, .page-legal) .page-hero a { color: var(--ww-ink); }
html[data-theme] :is(.page-store, .page-payment-return, .page-legal) .page-hero__inner > p:last-child { max-width: 70ch; margin: 0; color: var(--ww-muted); font-size: 17px; line-height: 1.6; }
html[data-theme] :is(.page-store, .page-payment-return) .store-section { min-height: 0; padding-block: clamp(40px, 5vw, 72px); background: var(--ww-paper); color: var(--ww-ink); }
html[data-theme] .page-store :is(.store-section .container, .responsible-callout .container) { width: min(calc(100% - 64px), 1280px); }
html[data-theme] :is(.page-store .store-balance, .page-store .store-package,
    .page-store .store-package--popular, .page-store .store-billing,
    .page-payment-return .store-billing) { border: 1px solid var(--ww-line); border-radius: 14px; background: var(--ww-surface); color: var(--ww-ink); box-shadow: none; }
html[data-theme] .page-store .store-balance { margin-bottom: 48px; }
html[data-theme] .page-store .store-balance .eyebrow { color: var(--ww-muted); font-size: 14px; text-transform: none; }
html[data-theme] .page-store :is(.store-balance h2, .store-heading h2, .store-trust-grid h3,
    .store-package__coins, .store-billing h3),
html[data-theme] .page-payment-return .store-billing h2 { color: var(--ww-ink); font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif; letter-spacing: -.025em; }
html[data-theme] .page-store .store-heading { margin-bottom: 32px; text-align: left; }
html[data-theme] .page-store .store-heading h2 { font-size: clamp(30px, 3vw, 40px); }
html[data-theme] .page-store :is(.store-balance p, .store-heading > p,
    .store-package__bonus, .store-package__price span, .store-trust-grid p,
    .store-billing__intro p, .store-billing__note, .store-billing__country) { color: var(--ww-muted); font-size: 15px; line-height: 1.6; }
html[data-theme] .page-store .store-package--popular :is(.store-package__bonus, .store-package__price span) { color: var(--ww-muted); }
html[data-theme] .page-store .store-package-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
html[data-theme] .page-store .store-package__choice { padding: 40px 28px 28px; }
html[data-theme] .page-store .store-package__radio { accent-color: var(--ww-forest); }
html[data-theme] .page-store .store-package__label { right: 16px; top: 16px; transform: none; background: var(--ww-paper); color: var(--ww-ink); font-size: 12px; }
html[data-theme] .page-store .store-package__art { width: 96px; height: 88px; margin: 0 auto 20px; }
html[data-theme] .page-store .store-package__name { font-size: 16px; }
html[data-theme] .page-store :is(.store-package__coins, .store-package--popular .store-package__coins) { color: var(--ww-ink); font-size: clamp(28px, 3vw, 40px); }
html[data-theme] .page-store .store-package__price { margin: 24px 0; padding-block: 20px; border-color: var(--ww-line); }
html[data-theme] .page-store .store-package__price span { text-transform: none; font-size: 13px; }
html[data-theme] .page-store :is(.store-package__price strong, .store-package--popular .store-package__price strong) { color: var(--ww-ink); font-size: 24px; font-variant-numeric: tabular-nums; }
html[data-theme] .page-store .store-package__action { min-height: 48px; border-color: var(--ww-line); background: var(--ww-paper); color: var(--ww-ink); transition: background-color 180ms ease; }
html[data-theme] .page-store :is(.store-package, .store-package--popular):has(.store-package__radio:checked) { border: 1px solid var(--ww-ink); background: var(--ww-surface); outline: 1px solid var(--ww-ink); box-shadow: none; }
html[data-theme] .page-store .store-package:focus-within { outline: 2px solid var(--ww-ink); outline-offset: 4px; }
html[data-theme] .page-store .store-package__radio:checked + .store-package__choice .store-package__action { background: var(--ww-forest); border-color: var(--ww-forest); color: #fffdf7; }
html[data-theme] .page-store .store-billing { width: min(100%, 880px); margin-top: 48px; padding: clamp(24px, 4vw, 40px); }
html[data-theme] .page-store .store-billing__fields { gap: 20px; }
html[data-theme] .page-store .store-billing__fields label { color: var(--ww-ink); }
html[data-theme] .page-store .store-billing__fields input { min-height: 48px; border-color: var(--ww-line); background: var(--ww-paper); color: var(--ww-ink); font-size: 16px; }
html[data-theme] .page-store .store-billing__fields input::placeholder { color: var(--ww-muted); }
html[data-theme] .page-store .store-billing__fields input:focus-visible { outline: 2px solid var(--ww-ink); outline-offset: 3px; }
html[data-theme] .page-store .store-billing__alert { background: color-mix(in srgb, var(--ww-surface) 90%, #a43832); color: var(--ww-ink); border: 1px solid #a43832; }
html[data-theme] .page-store .store-billing__note { font-size: 13px; }
html[data-theme] .page-store .store-trust-grid { margin-top: 48px; gap: 40px; border-color: var(--ww-line); }
html[data-theme] .page-store .store-trust-grid article { display: block; }
html[data-theme] .page-store .store-trust-grid article > span { display: none; }
html[data-theme] .page-store .store-trust-grid h3 { font-size: 20px; }
html[data-theme] .page-store .responsible-callout { background: var(--ww-forest); color: #fffdf7; }
html[data-theme] .page-store .responsible-callout :is(h2, p) { color: #fffdf7; }
html[data-theme] .page-store :is(.store-balance .button, .store-billing > .button,
    .responsible-callout .button) { border-color: var(--ww-forest); background: var(--ww-forest); color: #fffdf7; }
html[data-theme] .page-store .responsible-callout .button { border-color: #edc9b2; background: #edc9b2; color: #173b32; }
html[data-theme] .page-payment-return .payment-status { padding: clamp(24px, 4vw, 40px); }
html[data-theme] .page-payment-return .payment-status p { color: var(--ww-muted); font-size: 16px; line-height: 1.6; }

/* Legal documents keep a comfortable reading measure and a clear directory. */
html[data-theme] .page-legal .legal-section { padding-block: clamp(40px, 5vw, 72px); background: var(--ww-paper); color: var(--ww-ink); }
html[data-theme] .page-legal .legal-layout { width: min(calc(100% - 64px), 1280px); grid-template-columns: 240px minmax(0, 820px); gap: clamp(40px, 6vw, 96px); }
html[data-theme] .page-legal .legal-nav { top: 112px; padding: 24px; border-color: var(--ww-line); border-radius: 12px; background: var(--ww-surface); }
html[data-theme] .page-legal .legal-nav .eyebrow { color: var(--ww-ink); font-size: 16px; letter-spacing: 0; text-transform: none; }
html[data-theme] .page-legal .legal-nav a,
html[data-theme] .page-legal .legal-nav > p:last-child { border-color: var(--ww-line); color: var(--ww-muted); font-size: 14px; line-height: 1.6; }
html[data-theme] .page-legal .legal-nav a { min-height: 44px; padding-block: 12px; }
html[data-theme] .page-legal :is(.legal-nav a:hover, .prose a) { color: var(--ww-ink); text-underline-offset: 4px; }
html[data-theme] .page-legal :is(.legal-content, .prose) { color: var(--ww-ink); font-size: 16px; line-height: 1.8; }
html[data-theme] .page-legal .legal-content section + section { border-color: var(--ww-line); }
html[data-theme] .page-legal .legal-content h2 { color: var(--ww-ink); font: 700 30px/1.2 "Bricolage Grotesque", "IBM Plex Sans", sans-serif; letter-spacing: -.025em; }

/* Circuit records and goals use the same editorial hierarchy. */
html[data-theme] .fc-hero__inner { padding-block: 0; }
html[data-theme] .fc-hero__mark { display: none; }
html[data-theme] .fc-heading h2 { font-size: clamp(30px, 3.5vw, 44px); }
html[data-theme] :is(.fc-notice, .fc-overview > div, .fc-goal, .fc-style,
    .fc-table-wrap, .fc-empty) { border: 1px solid var(--ww-line); border-radius: 14px; background: var(--ww-surface); color: var(--ww-ink); box-shadow: none; }
html[data-theme] .fc-notice--compact { border-left-width: 1px; }
html[data-theme] :is(.fc-notice strong, .fc-overview strong, .fc-style__bottom strong) { color: var(--ww-ink); }
html[data-theme] :is(.fc-notice p, .fc-heading > p, .fc-dates, .fc-overview span,
    .fc-overview small, .fc-overview strong small, .fc-goal p, .fc-style p,
    .fc-table th, .fc-empty, .fc-footnote) { color: var(--ww-muted); font-size: 15px; line-height: 1.6; }
html[data-theme] .fc-overview { gap: 24px; }
html[data-theme] .fc-overview > div { min-height: 168px; padding: 28px; }
html[data-theme] .fc-overview strong { font: 700 38px/1.2 "Bricolage Grotesque", "IBM Plex Sans", sans-serif; font-variant-numeric: tabular-nums; }
html[data-theme] :is(.fc-overview progress, .fc-goal progress) { height: 8px; accent-color: var(--ww-forest); }
html[data-theme] :is(.fc-overview progress, .fc-goal progress)::-webkit-progress-bar { background: var(--ww-line); }
html[data-theme] :is(.fc-overview progress, .fc-goal progress)::-webkit-progress-value { background: var(--ww-forest); }
html[data-theme] :is(.fc-overview progress, .fc-goal progress)::-moz-progress-bar { background: var(--ww-forest); }
html[data-theme] .fc-button--outline { border: 1px solid var(--ww-line); background: var(--ww-surface); color: var(--ww-ink); }
html[data-theme] .fc-hero .fc-button--outline { border-color: var(--ww-line); color: var(--ww-ink); }
html[data-theme] .fc-goal__icon { background: var(--ww-paper); color: var(--ww-ink); }
html[data-theme] .fc-goal__reward { background: #edc9b2; color: #173b32; }
html[data-theme] .fc-style__symbol { border-width: 1px; border-radius: 12px; background: #dce8e1; color: #173b32; }
html[data-theme] .fc-style--royal .fc-style__symbol { background: #edc9b2; color: #173b32; }
html[data-theme] .fc-style--midnight .fc-style__symbol { background: #173b32; color: #fffdf7; }
html[data-theme] :is(.fc-style__bottom, .fc-table th, .fc-table td) { border-color: var(--ww-line); }
html[data-theme] .fc-table { color: var(--ww-ink); font-variant-numeric: tabular-nums; }
html[data-theme] .fc-table th { font-size: 13px; letter-spacing: 0; text-transform: none; }
html[data-theme] .fc-table .is-self { background: var(--ww-paper); }
html[data-theme] .fc-action-error { border-color: #a43832; background: color-mix(in srgb, var(--ww-surface) 90%, #a43832); color: var(--ww-ink); }

/* Poker lobby and history are reskinned without touching table or seat geometry. */
html[data-theme] .pk-hero__facts { gap: 12px; margin-top: 28px; }
html[data-theme] .pk-hero__facts span { border-color: var(--ww-line); color: var(--ww-ink); font-weight: 500; }
/* Quick invites retain their compact dark stage and existing light-copy rule. */
html[data-theme] .pk-hero--quick { background: var(--ww-forest); color: #fffdf7; }
html[data-theme] .pk-hero--quick h1 { color: #fffdf7; }
html[data-theme] .pk-hero--quick .pk-hero__facts span { border-color: #7a9b8b; color: #fffdf7; }
html[data-theme] :is(.pk-message, .pk-choice, .pk-guide__tiles article,
    .pk-invite, .pk-tournament) { border: 1px solid var(--ww-line); border-radius: 14px; background: var(--ww-surface); color: var(--ww-ink); box-shadow: none; }
html[data-theme] :is(.pk-message.is-error) { border-color: #a43832; background: color-mix(in srgb, var(--ww-surface) 90%, #a43832); color: var(--ww-ink); }
html[data-theme] :is(.pk-lobby__intro > p:last-child, .pk-guide > div:first-child > p:last-child,
    .pk-choice p, .pk-guide__tiles p, .pk-room__header p:last-child,
    .pk-tournament > div > span, .pk-room__footer, .pk-invite span,
    .pk-choice .pk-tournament-hint, .pk-tournament-choice small) { color: var(--ww-muted); font-size: 15px; line-height: 1.6; }
html[data-theme] .pk-choice p { min-height: 0; }
html[data-theme] :is(.pk-choice h3, .pk-guide__tiles h3, .pk-tournament > div > strong) { color: var(--ww-ink); }
html[data-theme] :is(.pk-choice__icon, .pk-choice__icon--gold) { background: var(--ww-paper); color: var(--ww-ink); }
html[data-theme] :is(.pk-choice label, .pk-capacity legend) { color: var(--ww-ink); }
html[data-theme] .pk-choice input:not([type="radio"]):not([type="checkbox"]) { min-height: 48px; border-color: var(--ww-line); background: var(--ww-paper); color: var(--ww-ink); }
html[data-theme] :is(.pk-capacity label span, .pk-choice .pk-tournament-choice) { border: 1px solid var(--ww-line); background: var(--ww-paper); color: var(--ww-ink); }
html[data-theme] .pk-capacity input:checked + span { border-color: var(--ww-forest); background: var(--ww-forest); color: #fffdf7; }
html[data-theme] .pk-capacity input:focus-visible + span { outline: 2px solid var(--ww-ink); outline-offset: 4px; }
html[data-theme] .pk-guide { padding: 32px; border: 1px solid var(--ww-line); border-radius: 14px; background: var(--ww-surface); }
html[data-theme] .pk-guide__tiles article { padding: 24px 0 0; border: 0; border-top: 1px solid var(--ww-line); border-radius: 0; background: transparent; }
html[data-theme] :is(.pk-guide__tiles span, .pk-tournament > p) { color: var(--ww-muted); }
html[data-theme] .pk-invite button { background: var(--ww-paper); color: var(--ww-ink); }
html[data-theme] .pk-button--outline { border: 1px solid var(--ww-line); background: var(--ww-surface); color: var(--ww-ink); }
html[data-theme] .pk-room__footer .pk-button--outline { border-color: var(--ww-line); background: var(--ww-surface); color: var(--ww-ink); }
html[data-theme] .pk-room__tool { border-color: var(--ww-line); background: var(--ww-surface); color: var(--ww-ink); }
html[data-theme] .pk-room__tool[aria-pressed="true"] { border-color: #edc9b2; background: #edc9b2; color: #173b32; }
html[data-theme] .pk-history { border-color: #9b8264; background: #173b32; color: #fffdf7; }
html[data-theme] .pk-history__title { color: #fffdf7; }
html[data-theme] :is(.pk-history__toggle, .pk-history__retry) { border-color: #edc9b2; background: #edc9b2; color: #173b32; }
html[data-theme] :is(.pk-history__toggle:hover:not(:disabled), .pk-history__retry:hover) { background: #f4ddcb; }
html[data-theme] .pk-history__hand { background: #102c25; border-color: #577164; }
html[data-theme] .pk-quick { background: var(--ww-forest); }
html[data-theme] .pk-quick__intro h2 { color: #fffdf7; }
html[data-theme] .pk-quick__form { background: var(--ww-surface); color: var(--ww-ink); }
html[data-theme] .pk-quick__form > input { border-color: var(--ww-line); background: var(--ww-paper); color: var(--ww-ink); }
html[data-theme] .pk-quick__room { background: var(--ww-paper); color: var(--ww-ink); }
html[data-theme] :is(.pk-quick__field-help, .pk-quick__note) { color: var(--ww-muted); }
html[data-theme] :is(.pk-quick__age, .pk-quick__age a) { color: var(--ww-ink); }

html[data-theme] .fp-not-found-inner { height: auto; padding: 0; }
html[data-theme] .fp-not-found-art { width: min(100%, 400px); height: auto; max-height: 360px; }
html[data-theme] .fp-not-found-copy { width: min(calc(100% - 32px), 700px); margin-top: 24px; }
html[data-theme] .fp-not-found-copy h1 { font-size: clamp(36px, 4vw, 56px); }
html[data-theme] .fp-not-found-copy p { color: var(--ww-muted); font-size: 17px; line-height: 1.6; }
html[data-theme] .fp-not-found-button { width: auto; min-width: 220px; margin-top: 24px; }

@media (max-width: 1080px) {
    html[data-theme] :is(.catalog-mini-grid, .catalog-popular-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    html[data-theme] .catalog-pick-card { grid-template-columns: minmax(0, 1fr); }
    html[data-theme] .catalog-pick-card__art { aspect-ratio: 4 / 3; }
    html[data-theme] .fp-responsible-hero-grid { gap: 32px; }
    html[data-theme] .fp-control-card img { width: 64px; height: 64px; flex-basis: 64px; }
    html[data-theme] .fp-signs-grid { gap: 32px; }
}

@media (max-width: 800px) {
    html[data-theme] :is(.fp-wide, .fp-responsible-wide, .catalog-container,
        .figma-game-container, .nv-account__shell, .fc-wrap, .pk-wrap,
        .fp-faq-container) { width: calc(100% - 40px); }
    html[data-theme] :is(.catalog-title-row, .catalog-section-heading) { align-items: flex-start; }
    html[data-theme] .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; }
    html[data-theme] .catalog-filters label:first-child { grid-column: 1 / -1; }
    html[data-theme] .catalog-reset { grid-column: 1 / -1; }
    html[data-theme] .catalog-mobile-intro { min-height: 0; padding: 32px 20px; background: var(--ww-surface); color: var(--ww-ink); border-bottom: 1px solid var(--ww-line); }
    html[data-theme] .catalog-mobile-intro h1 { color: var(--ww-ink); font-size: 36px; }
    html[data-theme] .catalog-mobile-intro > div > p:not(.catalog-kicker) { color: var(--ww-muted); font-size: 15px; line-height: 1.6; }
    html[data-theme] .catalog-mobile-intro__facts article { padding: 12px 0; border: 0; border-top: 1px solid var(--ww-line); border-radius: 0; background: transparent; }
    html[data-theme] .catalog-mobile-intro__facts :is(strong, span) { color: var(--ww-ink); font-size: 13px; line-height: 1.5; }
    html[data-theme] :is(.catalog-mini-grid, .catalog-popular-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html[data-theme] :is(.fp-contact-grid, .fp-responsible-hero-grid,
        .fp-responsible-intro-grid, .fp-signs-grid, .figma-game-guide) { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    html[data-theme] .fp-responsible-intro img { width: min(70%, 300px); }
    html[data-theme] .fp-control-grid { grid-template-columns: minmax(0, 1fr); }
    html[data-theme] .fp-partner-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    html[data-theme] .fp-control-card img { width: 80px; height: 80px; flex-basis: 80px; }
    html[data-theme] .nv-profile-rail { width: 100%; }
    html[data-theme] .nv-profile-features__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    html[data-theme] .page-store .store-package-grid { grid-template-columns: minmax(0, 1fr); }
    html[data-theme] .page-store .store-package__choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; text-align: left; }
    html[data-theme] .page-store .store-package__art { display: none; }
    html[data-theme] .page-store .store-package__name { margin-top: 8px; }
    html[data-theme] .page-store .store-package__coins { grid-column: 1; }
    html[data-theme] .page-store .store-package__bonus { grid-column: 1 / -1; min-height: 0; }
    html[data-theme] .page-store .store-package__price { grid-column: 2; grid-row: 1 / 3; margin: 0; padding: 0; border: 0; align-self: center; text-align: right; }
    html[data-theme] .page-store .store-package__action { grid-column: 1 / -1; margin-top: 12px; text-align: center; }
    html[data-theme] .page-store .store-trust-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    html[data-theme] :is(.page-store, .page-payment-return, .page-legal) .page-hero__inner,
    html[data-theme] .page-store :is(.store-section .container, .responsible-callout .container),
    html[data-theme] .page-legal .legal-layout { width: calc(100% - 40px); }
    html[data-theme] .page-legal .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    html[data-theme] .page-legal .legal-nav { position: static; }
}

@media (max-width: 560px) {
    html[data-theme] :is(.fp-wide, .fp-responsible-wide, .catalog-container,
        .figma-game-container, .nv-account__shell, .fc-wrap, .pk-wrap,
        .fp-faq-container) { width: calc(100% - 32px); }
    html[data-theme] :is(.page-store, .page-payment-return, .page-legal) .page-hero__inner,
    html[data-theme] .page-store :is(.store-section .container, .responsible-callout .container),
    html[data-theme] .page-legal .legal-layout { width: calc(100% - 32px); }
    html[data-theme] .fp-field-row { grid-template-columns: minmax(0, 1fr); }
    html[data-theme] .fp-faq-categories { overflow: visible; }
    html[data-theme] .fp-faq-categories button { flex: 0 0 auto; min-width: 0; padding-inline: 14px; }
    html[data-theme] .fp-faq-item h2 button { font-size: 16px; }
    html[data-theme] .fp-faq-answer { padding-right: 0; }
    html[data-theme] .catalog-mobile-intro { padding-inline: 16px; }
    html[data-theme] .catalog-mobile-intro h1 { color: var(--ww-ink); font-size: 32px; }
    html[data-theme] .catalog-title-row { display: block; }
    html[data-theme] .catalog-title-row h1 { font-size: 40px; }
    html[data-theme] .catalog-status { margin-top: 16px; }
    html[data-theme] .catalog-filters { gap: 16px 12px; padding: 16px; }
    html[data-theme] :is(.catalog-mini-grid, .catalog-popular-grid) { gap: 12px; }
    html[data-theme] .catalog-mini-card__body { padding: 14px 12px 8px; }
    html[data-theme] :is(.catalog-mini-card h2, .catalog-popular-card h3) { font-size: 16px; }
    html[data-theme] :is(.catalog-mini-card p, .catalog-popular-card p) { font-size: 12px; }
    html[data-theme] .catalog-pick-grid { grid-template-columns: minmax(0, 1fr); }
    html[data-theme] .catalog-section-heading--popular > div:last-child { flex-wrap: wrap; gap: 12px; }
    html[data-theme] .figma-game-details__intro > div { display: flex; flex-wrap: wrap; }
    html[data-theme] .figma-game-chip { width: auto; font-size: 13px; }
    html[data-theme] .figma-how-play ol { grid-template-columns: minmax(0, 1fr); }
    html[data-theme] .figma-metadata dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    html[data-theme] .fp-control-card img { width: 64px; height: 64px; flex-basis: 64px; }
    html[data-theme] .fp-professional-support { padding: 24px; }
    html[data-theme] .fp-support-banner { flex-direction: column; align-items: flex-start; }
    html[data-theme] .nv-account-card__heading { gap: 12px; }
    html[data-theme] .nv-account-activity__table td:nth-child(1),
    html[data-theme] .nv-account-activity__table td:nth-child(3) { color: var(--ww-muted); font-size: 12px; }
    html[data-theme] .nv-profile-card { padding: 28px 24px; }
    html[data-theme] .nv-profile-features article:last-child { grid-column: auto; }
    html[data-theme] .page-store .store-package__choice { gap: 8px 12px; padding: 40px 24px 24px; }
    html[data-theme] .page-store .store-billing__fields { grid-template-columns: minmax(0, 1fr); }
    html[data-theme] .page-legal .legal-content h2 { font-size: 26px; }
    html[data-theme] .fc-overview { gap: 16px; }
    html[data-theme] .fc-overview > div { min-height: 0; gap: 12px; }
    html[data-theme] .pk-guide { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme] :is(.fp-button, .catalog-primary, .catalog-secondary,
        .catalog-reset, .fp-faq-categories button, .store-package__action,
        .fc-button, .pk-button, .nv-account-menu > a, .nv-profile-shortcuts > a) {
        transition: none;
        transform: none;
    }
}

/* Landscape game artwork remains compact across the catalog. */
html[data-theme] .catalog-mini-card__art, html[data-theme] .catalog-popular-card > a:first-child { aspect-ratio: 4 / 3; }
