/*
 * The Sims Creator Program - program stylesheet (landing, login, modal, dashboard).
 *
 * Brand source: "The Sims Brand Guidelines v1.1 (2025)".
 *   Core primary:   Plumbob Green #00DB37, Bonehilda White #F9F4ED, Grim Black #0A0203
 *   Core secondary: Sims Blue #182FFF, Sims Navy #00005A (supporting role only)
 *   Type: Sims Sans Headline (display), Neuwelt (secondary).
 *
 * Text pairings the guide allows: White on Green, Green/Black on White, Green/White on Black,
 * White on Blue, Green/White on Navy. Plumbob Green on Bonehilda White is ~1.8:1, so it is only
 * used for decoration here - never for text. Body copy on green is Grim Black (readability
 * exception; the guide's white-on-green is kept for display headlines).
 */

@font-face {
  font-family: 'Sims Sans';
  src: url('/fonts/the-sims/sims-sans-headline.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Only Bold / ExtraBold / Black (and an ExtraLight) Neuwelt cuts were supplied - no Regular or
   Medium. Neuwelt is therefore used for labels, buttons and subheads; running text uses
   --ts-font-body until the missing weights arrive. */
/* Sims Sans Simlish: the brand's Simlish style, used only for the Simlish super graphic. */
@font-face {
  font-family: 'Sims Simlish';
  src: url('/fonts/the-sims/sims-sans-simlish.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Neuwelt';
  src: url('/fonts/the-sims/neuwelt-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neuwelt';
  src: url('/fonts/the-sims/neuwelt-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neuwelt';
  src: url('/fonts/the-sims/neuwelt-black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

html.the-sims:root {
  --ts-green: #00db37;
  --ts-green-deep: #00c231;
  --ts-white: #f9f4ed;
  --ts-black: #0a0203;
  --ts-blue: #182fff;
  --ts-navy: #00005a;

  --ts-paper: #fffdf9;
  --ts-cream: #f1e9dc;
  --ts-ink: var(--ts-black);
  --ts-ink-muted: #4d4544;
  --ts-hairline: rgb(10 2 3 / 0.14);

  --ts-error: #c4001a;
  --ts-success: #00751d;

  /* Per-language CJK stack, set below. Han characters must come from the reader's own
     language's font, so one shared stack (a Korean face first, say) is wrong for the others. */
  --ts-cjk: system-ui;
  --ts-font-display: 'Sims Sans', 'Neuwelt', var(--ts-cjk), system-ui, sans-serif;
  --ts-font-ui: 'Neuwelt', var(--ts-cjk), system-ui, sans-serif;
  /* Stand-in for Neuwelt Regular. Swap to 'Neuwelt' once the regular weight is supplied. */
  --ts-font-body: 'Figtree', var(--ts-cjk), system-ui, sans-serif;

  --ts-radius: 20px;
  --ts-radius-lg: 32px;
  --ts-pill: 999px;
  --ts-max-w: 1240px;
  --ts-gutter: clamp(16px, 4vw, 40px);
  --ts-header-h: 72px;
  --ts-shadow: 0 2px 0 var(--ts-black);

  /* Creator kit bridge */
  --gsc-surface: var(--ts-white);
  --gsc-panel: var(--ts-paper);
  --gsc-panel-raised: #ffffff;
  --gsc-border: var(--ts-hairline);
  --gsc-border-strong: rgb(10 2 3 / 0.3);
  --gsc-text: var(--ts-ink);
  --gsc-text-muted: var(--ts-ink-muted);
  --gsc-text-subtle: #6b6261;
  /* The kit also uses the accent as TEXT colour (labels, icons, links), and Plumbob Green on
     Bonehilda White is unreadable - so the accent is Grim Black and green is applied
     deliberately below (header, hero, highlights). */
  --gsc-accent: var(--ts-black);
  --gsc-accent-hover: #2a2223;
  --gsc-accent-text: var(--ts-white);
  --gsc-success: var(--ts-success);
  --gsc-success-text: #ffffff;
  --gsc-danger: var(--ts-error);
  --gsc-danger-text: #ffffff;
  --gsc-warn: #8a5a00;
  --gsc-warn-text: #ffffff;

  --gsc-header-bg: var(--ts-black);
  --gsc-header-border: var(--ts-black);
  --gsc-nav-link: var(--ts-white);
  --gsc-nav-link-active: var(--ts-green);

  --font-display: var(--ts-font-display);
  --font-body: var(--ts-font-body);
  --gsc-font-display: var(--ts-font-display);
  --gsc-font-body: var(--ts-font-body);
  --gsc-font-brand: var(--ts-font-display);

  --gsc-radius: var(--ts-radius);
  --gsc-radius-sm: 10px;
  --gsc-radius-lg: var(--ts-radius-lg);
  --gsc-focus-ring: var(--ts-blue);
  --gsc-shadow: 0 2px 14px rgb(10 2 3 / 0.08);
  --gsc-transition: 0.2s ease-in-out;

  --gsc-field-bg: #ffffff;
  --gsc-field-border: rgb(10 2 3 / 0.28);
  --gsc-field-text: var(--ts-ink);
  --gsc-field-placeholder: #7a706f;
  --gsc-field-focus: var(--ts-blue);
  --gsc-field-radius: 12px;
  --gsc-field-panel-bg: #ffffff;
  --gsc-field-option-hover: var(--ts-cream);
  --gsc-field-option-active: var(--ts-black);
  --gsc-field-tag-bg: var(--ts-black);
  --gsc-field-tag-text: var(--ts-white);

  --gsc-overlay-backdrop: rgb(10 2 3 / 0.6);
  --gsc-modal-bg: var(--ts-white);
  --gsc-modal-border: var(--ts-hairline);

  --gsc-gradient-primary: var(--ts-green);
  --gsc-header-rail: none;
  --gsc-footer-rail: var(--ts-green);
  --gsc-login-bg: var(--ts-green);

  /* Legacy tokens still read by BaseForm / older shared components */
  --app-styling-background: var(--ts-white);
  --app-styling-slate-level-1: var(--ts-paper);
  --app-styling-slate-level-2: #ffffff;
  --color-palette-branding-normal: var(--ts-black);
  --color-palette-branding-normal-hover: #2a2223;
  --color-palette-branding-normal-active: #2a2223;
  --color-palette-branding-lucent: var(--ts-cream);
  --color-palette-border: var(--ts-hairline);
  --color-palette-blue-greys-100: #ffffff;
  --color-palette-blue-greys-200: var(--ts-paper);
  --color-palette-blue-greys-300: var(--ts-cream);
  --color-palette-blue-greys-400: var(--ts-hairline);
  --color-palette-blue-greys-500: rgb(10 2 3 / 0.3);
  --color-palette-blue-greys-600: var(--ts-ink-muted);
  --color-palette-blue-greys-900: var(--ts-ink);
  --text-colors-default: var(--ts-ink);
  --text-colors-link-default: var(--ts-blue);
  --text-colors-link-hover: var(--ts-navy);
  --text-colors-link-active: var(--ts-navy);
  --card--background: 255 253 249;
  --card--border: 10 2 3;
  --card--border-radius: 20px;
  --card--text: 10 2 3;
  --card--title: 10 2 3;
  --component-shadow: 0 2px 14px rgb(10 2 3 / 0.08);
  --input-buttons-primary-bg-default: var(--ts-black);
  --input-buttons-primary-bg-hover: #2a2223;
  --input-buttons-primary-bg-active: #2a2223;
  --input-buttons-primary-text-default: var(--ts-white);
  --input-buttons-primary-text-hover: var(--ts-white);
  --input-buttons-primary-text-active: var(--ts-white);
  --input-buttons-primary-bg-disabled: #b9b1a7;
  --input-buttons-primary-text-disabled: #ffffff;
  --input-buttons-secondary-bg-default: transparent;
  --input-buttons-secondary-bg-hover: var(--ts-cream);
  --input-buttons-secondary-text-default: var(--ts-ink);
  --input-buttons-secondary-text-hover: var(--ts-ink);
  --input-buttons-secondary-border: 2px solid var(--ts-black);

  --social-ea-bg: var(--ts-black);
  --social-ea-hover: #2a2223;
  --social-ea-text: var(--ts-white);
}

/* Noto Sans JP/KR/TC are loaded only for these locales (see useTheSimsLocale). */
html.the-sims:lang(ja) {
  --ts-cjk: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo;
}

html.the-sims:lang(ko) {
  --ts-cjk: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic';
}

html.the-sims:lang(zh) {
  --ts-cjk: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei';
}

/* Nuxt UI (modal, stepper, form inputs) */
html.the-sims:root,
html.the-sims body {
  --ui-text: var(--ts-ink);
  --ui-text-highlighted: var(--ts-ink);
  --ui-text-toned: var(--ts-ink);
  --ui-text-muted: var(--ts-ink-muted);
  --ui-text-dimmed: #6b6261;
  --ui-bg: #ffffff;
  --ui-bg-muted: var(--ts-paper);
  --ui-bg-elevated: var(--ts-cream);
  --ui-bg-accented: var(--ts-cream);
  --ui-bg-inverted: var(--ts-black);
  --ui-border: var(--ts-hairline);
  --ui-border-muted: var(--ts-hairline);
  --ui-border-accented: rgb(10 2 3 / 0.3);
  --ui-border-inverted: var(--ts-black);
  --ui-primary: var(--ts-black);
  --ui-secondary: var(--ts-black);
  --ui-error: var(--ts-error);
  --ui-success: var(--ts-success);
  --ui-radius: 0.75rem;
}

html.the-sims,
html.the-sims body {
  background-color: var(--ts-white);
  color: var(--ts-ink);
  font-family: var(--ts-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sims Sans ships one weight; never let the browser fake a bold or italic. */
html.the-sims .ts-display,
html.the-sims h1,
html.the-sims h2 {
  font-family: var(--ts-font-display);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: none;
}

html.the-sims h3,
html.the-sims h4 {
  font-family: var(--ts-font-ui);
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

html.the-sims .ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 2px solid var(--ts-black);
  border-radius: var(--ts-pill);
  font-family: var(--ts-font-ui);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--gsc-transition), background-color var(--gsc-transition),
    color var(--gsc-transition), box-shadow var(--gsc-transition);
}

html.the-sims .ts-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

html.the-sims .ts-btn:active {
  transform: translateY(0);
}

html.the-sims .ts-btn:focus-visible {
  outline: 3px solid var(--ts-blue);
  outline-offset: 3px;
}

html.the-sims .ts-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

html.the-sims .ts-btn--black {
  background: var(--ts-black);
  color: var(--ts-white);
}

html.the-sims .ts-btn--black:hover {
  box-shadow: 0 4px 0 var(--ts-green);
  color: var(--ts-white);
}

html.the-sims .ts-btn--green {
  background: var(--ts-green);
  color: var(--ts-black);
}

html.the-sims .ts-btn--green:hover {
  box-shadow: 0 4px 0 var(--ts-black);
  color: var(--ts-black);
}

html.the-sims .ts-btn--ghost {
  background: transparent;
  color: var(--ts-black);
}

html.the-sims .ts-btn--ghost:hover {
  background: var(--ts-black);
  color: var(--ts-white);
}

html.the-sims .ts-btn--ghost-light {
  background: transparent;
  border-color: var(--ts-white);
  color: var(--ts-white);
}

html.the-sims .ts-btn--ghost-light:hover {
  background: var(--ts-white);
  color: var(--ts-black);
}

html.the-sims .ts-btn--sm {
  min-height: 40px;
  padding: 0 1.125rem;
  font-size: 0.9375rem;
}

html.the-sims .ts-btn--lg {
  min-height: 56px;
  padding: 0 2rem;
  font-size: 1.0625rem;
}

/* Simlish Pattern (brand guide p.65): rows of Simlish words and Flat Plumbobs, set on a
   diagonal. One mask tile (built from Sims Sans Simlish) is tinted per surface; the layer is
   oversized and rotated, so its parent must clip. Tone on tone by default - a background
   pattern should recede.
   The clipping lives HERE, beside the pattern, not in each container's scoped styles: this
   sheet can paint before the component CSS (always on the dev server, which loads component
   styles from JS), and an oversized rotated layer with nothing clipping it covers the page.
   So the layer only renders inside a container this sheet itself has made a clipping box, and
   only once that container's own styles (its background) have arrived: each container's
   scoped CSS sets --ts-pattern-display: block. Until then the layer stays hidden. */
html.the-sims .ts-pattern {
  display: none;
}
html.the-sims :is(.ts-hero, .ts-login, .ts-dhero, .ts-modal__head) {
  position: relative;
  overflow: hidden;
}
html.the-sims :is(.ts-hero, .ts-login, .ts-dhero, .ts-modal__head) > .ts-pattern {
  display: var(--ts-pattern-display, none);
  position: absolute;
  inset: -60%;
  pointer-events: none;
  background: var(--ts-pattern-color, var(--ts-green-deep));
  transform: rotate(-30deg);
  -webkit-mask: url('/images/the-sims/pattern-simlish.png') repeat 0 0 / 480px 180px;
  mask: url('/images/the-sims/pattern-simlish.png') repeat 0 0 / 480px 180px;
}
html.the-sims .ts-modal__header {
  position: relative;
  overflow: hidden;
}

/* ── Application modal (UModal) ──────────────────────────────────────────── */

html.the-sims .ts-modal__content {
  background: var(--ts-white);
  color: var(--ts-ink);
  border: 2px solid var(--ts-black);
}

html.the-sims .ts-modal__body .content h2,
html.the-sims .ts-modal__body .content h3 {
  font-family: var(--ts-font-ui);
  font-weight: 800;
  font-size: 1.125rem;
  margin: 1.25rem 0 0.5rem;
}

html.the-sims .ts-modal__body .content p,
html.the-sims .ts-modal__body .content li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ts-ink);
}

html.the-sims .ts-modal__body .content p + p {
  margin-top: 0.75rem;
}

html.the-sims .ts-modal__body .content ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
  display: grid;
  gap: 0.5rem;
}

html.the-sims .ts-modal__body .content li {
  position: relative;
  padding-left: 1.5rem;
}

html.the-sims .ts-modal__body .content li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 0.55rem;
  height: 0.85rem;
  background: var(--ts-green);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

html.the-sims .ts-modal__body .content a {
  color: var(--ts-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* BaseForm inside the modal */
html.the-sims .ts-modal__body form label,
html.the-sims .ts-modal__body .form-label {
  font-family: var(--ts-font-ui);
  font-weight: 700;
  color: var(--ts-ink);
}

/* Radio groups and tick boxes. app.config.ts gives every radio item a dark-theme hover block
   (bg-neutral-800/50), a left indent (ml-4 on the container) and padded labels; on Bonehilda
   White that reads as a grey slab and pushes the radios out of line with the question. Here the
   radios sit flush with the label above, and hover just darkens the ring. Option labels are body
   copy, so they don't compete with the bold question. */
html.the-sims .ts-modal__body .URadioGroup fieldset {
  gap: 0.25rem 2rem;
}
html.the-sims .ts-modal__body .URadioGroup fieldset > div {
  background: transparent !important;
  cursor: pointer;
}
html.the-sims .ts-modal__body .URadioGroup fieldset > div > div:first-child {
  margin-left: 0 !important;
}
html.the-sims .ts-modal__body .URadioGroup fieldset > div:hover button[role='radio'] {
  --tw-ring-color: var(--ts-ink);
}
html.the-sims .ts-modal__body .URadioGroup label,
html.the-sims .ts-modal__body .UCheckbox label {
  padding: 0.25rem 0 0.25rem 0.6rem !important;
  font-family: var(--ts-font-body);
  font-weight: 500;
  cursor: pointer;
}

html.the-sims .ts-modal__body .success-message {
  background: var(--ts-paper);
  border: 2px solid var(--ts-black);
  color: var(--ts-ink);
  border-radius: var(--ts-radius);
}

/* ── Dashboard (creator kit) ─────────────────────────────────────────────── */

/* Kit anchors take their colour from the shared `#app a[href]` rule; the Sims link blue reads
   as off-brand on cards and nav, so dashboard links are ink. */
html.the-sims.dashboard:root {
  --text-colors-link-default: var(--ts-ink);
  --text-colors-link-hover: var(--ts-ink);
}

/* The header is Grim Black, so its links must beat the ink link colour above. */
html.the-sims.dashboard .creator-header__link,
html.the-sims.dashboard .creator-header__drawer-link {
  color: var(--ts-white) !important;
}

html.the-sims.dashboard .creator-header__link:hover,
html.the-sims.dashboard .creator-header__link.is-active,
html.the-sims.dashboard .creator-header__drawer-link:hover,
html.the-sims.dashboard .creator-header__drawer-link.is-active {
  color: var(--ts-green) !important;
}

html.the-sims .creator-home__article-category {
  padding: 0.2rem 0.6rem;
  border-radius: var(--ts-pill);
  background: var(--ts-green);
  color: var(--ts-black);
}

html.the-sims .creator-home__sidebar-link.attention {
  border-color: var(--ts-black);
  box-shadow: 4px 4px 0 var(--ts-green);
}

html.the-sims.dashboard .creator-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 0 var(--ts-green);
}

html.the-sims.dashboard .creator-header__link,
html.the-sims.dashboard .creator-header__drawer-link {
  font-family: var(--ts-font-ui);
  font-weight: 800;
  font-size: 0.9375rem;
  text-decoration: none;
  text-transform: none;
}


html.the-sims.dashboard .creator-header__bar .creator-header__logo,
html.the-sims.dashboard .creator-header__bar .creator-header__logo:hover {
  text-decoration: none;
}

/* User menu trigger: the kit colours it with the page ink, which vanishes on the Grim Black
   header. Bonehilda White name, outline pill like the language picker beside it. */
html.the-sims.dashboard .creator-header .creator-user-menu__trigger.nui {
  border: 2px solid rgb(249 244 237 / 0.55);
  border-radius: var(--ts-pill);
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  color: var(--ts-white);
  font-family: var(--ts-font-ui);
  font-weight: 800;
}
html.the-sims.dashboard .creator-header .creator-user-menu__trigger.nui:hover,
html.the-sims.dashboard .creator-header .creator-user-menu.open .creator-user-menu__trigger.nui {
  border-color: var(--ts-green);
  color: var(--ts-green);
}
html.the-sims.dashboard .creator-header .creator-user-menu__avatar {
  border-radius: 50%;
}
/* Same ink-on-black problem for the phone drawer toggle - the only way into the nav there. */
html.the-sims.dashboard .creator-header__nav-toggle {
  border: 2px solid rgb(249 244 237 / 0.55);
  border-radius: 50%;
  color: var(--ts-white);
}
html.the-sims.dashboard .creator-header__nav-toggle:hover,
html.the-sims.dashboard .creator-header__nav-toggle[aria-expanded='true'] {
  border-color: var(--ts-green);
  color: var(--ts-green);
}

html.the-sims.dashboard h1,
html.the-sims.dashboard h2 {
  font-family: var(--ts-font-display);
  font-weight: 400 !important;
}

html.the-sims.dashboard h3,
html.the-sims.dashboard h4 {
  font-family: var(--ts-font-ui);
  font-weight: 800 !important;
}

html.the-sims.dashboard body * {
  text-transform: none !important;
}

html.the-sims.dashboard .creator-account__social-network {
  text-transform: capitalize !important;
}

/* Kit links default to the shared blue hover underline - keep pill/CTA links clean. */
html.the-sims .creator-account__link-buttons .creator-account__link,
html.the-sims .creator-account__link-buttons .creator-account__link:hover,
html.the-sims .creator-home__how-cta,
html.the-sims .creator-home__how-cta:hover,
html.the-sims .creator-home__sidebar-link,
html.the-sims .creator-home__sidebar-link:hover {
  text-decoration: none;
}

html.the-sims .creator-home__article,
html.the-sims .creator-home__sidebar-link {
  border-radius: var(--ts-radius);
}

html.the-sims .creator-key-claim__btn.is-secondary {
  background: transparent;
  border: 2px solid var(--ts-black);
  color: var(--ts-ink);
}

html.the-sims .overlay-modal__panel {
  background: var(--ts-white);
  border: 2px solid var(--ts-black);
  border-radius: var(--ts-radius);
  color: var(--ts-ink);
}

html.the-sims .overlay-stepper__dot.is-active .overlay-stepper__index,
html.the-sims .overlay-stepper__dot.is-done .overlay-stepper__index {
  background: var(--ts-green);
  color: var(--ts-black);
}

/* ── Dashboard brand system (Brand Guide v1.1) ──────────────────────────────
   Kit pages are restyled here rather than in the kit. The vocabulary, all from the guide:
   - Modules: 2px Grim Black outline + hard offset shadow (the guide's tag / card treatment).
   - Page headlines sit in a Sims Navy module with a Simlish Super Graphic: one Simlish
     character, tone on tone (Navy -> Sims Blue), bleeding off the module (p.114-117).
     Navy + Sims Blue + Plumbob Green is one of the guide's 3-colour pairings.
   - Type: Sims Sans Headline for titles (sentence case), Neuwelt for labels and buttons.
   - The Flat Plumbob is the only marker, always Plumbob Green (Plumbob Frame on card art).
   - Motion: "playful bounce" - a springy settle and a slightly imperfect rotation, as if
     dragged by an invisible cursor (p.137).
   Text only uses the guide's pairings: Green/White on Navy, Green/White on Black, Black on
   White, White on Blue. */
html.the-sims.dashboard:root {
  /* Colour roles. These light values ARE the design above; the dark theme (end of this section)
     re-points the roles rather than restyling each component. */
  --ts-line: var(--ts-black);           /* module outlines */
  --ts-shadow-ink: var(--ts-black);     /* hard offset shadows */
  --ts-chip-bg: var(--ts-black);        /* small labels: category, reward, progress */
  --ts-chip-text: var(--ts-green);
  --ts-bar-bg: var(--ts-black);         /* card CTA bars, quest status banners */
  --ts-bar-text: var(--ts-green);
  --ts-btn-bg: var(--ts-black);         /* primary buttons */
  --ts-btn-text: var(--ts-green);
  --ts-btn-line: var(--ts-black);
  --ts-btn-shadow: var(--ts-green);
  --ts-btn2-bg: var(--ts-white);        /* secondary buttons */
  --ts-btn2-text: var(--ts-black);
  --ts-btn2-line: var(--ts-black);
  --ts-btn2-shadow: var(--ts-black);
  --ts-inset: var(--ts-white);          /* wells inside a card */
  --ts-track: var(--ts-white);          /* progress bar track */
  --ts-focus: var(--ts-blue);
  --ts-card-shadow: 6px 6px 0 var(--ts-shadow-ink);
  --ts-card-shadow-hover: 9px 9px 0 var(--ts-shadow-ink);
  --ts-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Page headline modules */
html.the-sims.dashboard :is(.creator-keys__header, .creator-requests__header, .creator-downloads__header, .creator-quests__header, .gsc-terms__head) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 2.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--ts-radius-lg);
  background: var(--ts-navy);
  color: var(--ts-white);
}
html.the-sims.dashboard :is(.creator-keys__header, .creator-requests__header, .creator-downloads__header, .creator-quests__header, .gsc-terms__head)::before {
  content: var(--ts-simlish, 'S');
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -0.04em;
  font-family: 'Sims Simlish', sans-serif;
  font-size: clamp(15rem, 28vw, 24rem);
  line-height: 1;
  background: linear-gradient(180deg, var(--ts-navy) 12%, var(--ts-blue) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(-48%);
  pointer-events: none;
}
html.the-sims.dashboard .creator-keys__header { --ts-simlish: 'K'; }
html.the-sims.dashboard .creator-requests__header { --ts-simlish: 'R'; }
html.the-sims.dashboard .creator-downloads__header { --ts-simlish: 'D'; }
html.the-sims.dashboard .creator-quests__header { --ts-simlish: 'Q'; }
html.the-sims.dashboard .gsc-terms__head { --ts-simlish: 'T'; }
html.the-sims.dashboard :is(.creator-keys__eyebrow, .creator-requests__eyebrow, .creator-downloads__eyebrow, .creator-quests__eyebrow, .gsc-terms__eyebrow) {
  color: var(--ts-green);
  font-family: var(--ts-font-ui) !important;
  font-weight: 800 !important;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html.the-sims.dashboard :is(.creator-keys__page-title, .creator-requests__page-title, .creator-downloads__page-title, .creator-quests__title, .gsc-terms__title) {
  margin-top: 0.5rem;
  color: var(--ts-green);
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem);
  line-height: 0.95;
}
html.the-sims.dashboard :is(.creator-keys__desc, .creator-requests__desc, .creator-downloads__desc, .creator-quests__desc) {
  max-width: 40rem;
  margin-top: 0.875rem;
  color: var(--ts-white);
  font-size: 1.0625rem;
  line-height: 1.5;
}
html.the-sims.dashboard .gsc-terms__back {
  color: var(--ts-white) !important;
}

/* Tabs and filters (inside the navy module): outline pills, active = Bonehilda White */
html.the-sims.dashboard :is(.creator-requests__tab, .creator-quests__filter) {
  border: 2px solid rgb(249 244 237 / 0.55);
  border-radius: var(--ts-pill);
  background: transparent;
  color: var(--ts-white);
  font-family: var(--ts-font-ui);
  font-weight: 800;
  transition: transform 0.3s var(--ts-bounce), background-color 0.2s, color 0.2s;
}
html.the-sims.dashboard :is(.creator-requests__tab, .creator-quests__filter):hover {
  border-color: var(--ts-white);
  color: var(--ts-white);
  transform: rotate(-2deg);
}
html.the-sims.dashboard :is(.creator-requests__tab, .creator-quests__filter).active {
  border-color: var(--ts-white);
  background: var(--ts-white);
  color: var(--ts-black);
}
html.the-sims.dashboard :is(.creator-requests__tab-count, .creator-quests__filter-count) {
  background: var(--ts-black);
  color: var(--ts-green);
}

/* Cards: keys, requests, forms, quests, announcements */
html.the-sims.dashboard :is(.creator-keys__card, .creator-requests__card, .gsc-quest-card, .creator-home__article) {
  overflow: hidden;
  border: 2px solid var(--ts-line);
  border-radius: var(--ts-radius);
  background: var(--ts-paper);
  box-shadow: var(--ts-card-shadow);
  transition: transform 0.35s var(--ts-bounce), box-shadow 0.35s var(--ts-bounce);
}
html.the-sims.dashboard :is(.creator-keys__card, .creator-requests__card):hover {
  transform: translate(-3px, -3px) rotate(-0.6deg);
  box-shadow: var(--ts-card-shadow-hover);
}
html.the-sims.dashboard :is(.creator-keys__card-banner, .creator-requests__card-banner) {
  position: relative;
  border-bottom: 2px solid var(--ts-line);
}
/* Plumbob Frame (p.133): a Flat Plumbob in the corner of the art. Plumbob Green with a hairline
   Grim Black edge, so it still reads on green artwork. */
html.the-sims.dashboard :is(.creator-keys__card-banner, .creator-requests__card-banner, .creator-key-claim__about-art, .creator-request-detail__art)::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 14px;
  width: 15px;
  height: 28px;
  background: var(--ts-green);
  -webkit-mask: url('/images/the-sims/plumbob.svg') no-repeat center / contain;
  mask: url('/images/the-sims/plumbob.svg') no-repeat center / contain;
  filter: drop-shadow(1px 0 0 var(--ts-black)) drop-shadow(-1px 0 0 var(--ts-black)) drop-shadow(0 1px 0 var(--ts-black)) drop-shadow(0 -1px 0 var(--ts-black));
}
html.the-sims.dashboard :is(.creator-keys__card-title, .creator-requests__card-title) {
  font-family: var(--ts-font-display) !important;
  font-weight: 400 !important;
  font-size: 1.5rem;
  line-height: 1.05;
}
html.the-sims.dashboard :is(.creator-keys__card-meta, .creator-requests__card-meta) {
  color: var(--ts-ink);
  font-family: var(--ts-font-ui);
  font-weight: 700;
}
html.the-sims.dashboard :is(.creator-keys__card-cta, .creator-requests__card-cta, .creator-home__article-cta) {
  border-top: 2px solid var(--ts-line);
  background: var(--ts-bar-bg);
  color: var(--ts-bar-text) !important;
  font-family: var(--ts-font-ui);
  font-weight: 800;
}
html.the-sims.dashboard :is(.creator-keys__card-cta, .creator-requests__card-cta, .creator-home__article-cta) i {
  color: var(--ts-bar-text);
  transition: transform 0.3s var(--ts-bounce);
}
html.the-sims.dashboard :is(.creator-keys__card, .creator-requests__card, .creator-home__article):hover :is(.creator-keys__card-cta, .creator-requests__card-cta, .creator-home__article-cta) i {
  transform: translateX(4px);
}

/* Section titles carry a Flat Plumbob marker */
html.the-sims.dashboard :is(.creator-home__section-title, .creator-quests__group-head h2, .creator-quests__group-head h3, .creator-account__section-title, .creator-request-detail__section-title, .creator-request-detail__fields-title, .creator-key-claim__claim-title) {
  font-family: var(--ts-font-display) !important;
  font-weight: 400 !important;
}
html.the-sims.dashboard :is(.creator-home__section-title, .creator-quests__group-head h2, .creator-quests__group-head h3)::before {
  content: '';
  display: inline-block;
  width: 0.5em;
  height: 0.95em;
  margin-right: 0.4em;
  vertical-align: -0.08em;
  background: var(--ts-green);
  -webkit-mask: url('/images/the-sims/plumbob.svg') no-repeat center / contain;
  mask: url('/images/the-sims/plumbob.svg') no-repeat center / contain;
}

/* Home: announcements, quick links, resources */
html.the-sims.dashboard .creator-home__article-category {
  background: var(--ts-chip-bg) !important;
  color: var(--ts-chip-text) !important;
  font-family: var(--ts-font-ui);
  font-weight: 800;
}
html.the-sims.dashboard .creator-home__article-date {
  color: var(--ts-ink-muted);
  font-family: var(--ts-font-ui);
  font-weight: 700;
}
html.the-sims.dashboard .creator-home__article-title {
  font-family: var(--ts-font-display) !important;
  font-weight: 400 !important;
  font-size: 1.625rem;
  line-height: 1.05;
}
html.the-sims.dashboard .creator-home__sidebar-link {
  border: 2px solid var(--ts-line) !important;
  border-radius: var(--ts-radius) !important;
  background: var(--ts-paper) !important;
  box-shadow: 4px 4px 0 var(--ts-shadow-ink) !important;
  transition: transform 0.3s var(--ts-bounce), box-shadow 0.3s var(--ts-bounce);
}
html.the-sims.dashboard .creator-home__sidebar-link:hover {
  transform: translate(-2px, -2px) rotate(-0.8deg);
  box-shadow: 6px 6px 0 var(--ts-shadow-ink) !important;
}
html.the-sims.dashboard .creator-home__sidebar-link > i:first-child {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--ts-green);
  color: var(--ts-black);
}
html.the-sims.dashboard .creator-home__sidebar-link-title {
  font-family: var(--ts-font-display) !important;
  font-weight: 400 !important;
  font-size: 1.125rem;
}
html.the-sims.dashboard .creator-home__resource {
  border: 2px solid var(--ts-line);
  border-radius: 12px;
  background: var(--ts-paper);
  font-family: var(--ts-font-ui);
  font-weight: 700;
  transition: transform 0.3s var(--ts-bounce);
}
html.the-sims.dashboard .creator-home__resource:hover {
  transform: translateX(3px);
}
html.the-sims.dashboard .creator-home__resource i {
  color: var(--ts-ink);
}

/* Detail pages: the art + title block becomes a navy module; the kit's floating logo goes */
html.the-sims.dashboard :is(.creator-key-claim__logo-wrap, .creator-request-detail__logo) {
  display: none;
}
html.the-sims.dashboard :is(.creator-key-claim__about, .creator-request-detail__head) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--ts-radius-lg);
  background: var(--ts-navy);
  color: var(--ts-white);
}
html.the-sims.dashboard :is(.creator-key-claim__about, .creator-request-detail__head)::before {
  content: 'D';
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -0.04em;
  font-family: 'Sims Simlish', sans-serif;
  font-size: clamp(14rem, 24vw, 21rem);
  line-height: 1;
  background: linear-gradient(180deg, var(--ts-navy) 12%, var(--ts-blue) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(-48%);
  pointer-events: none;
}
html.the-sims.dashboard :is(.creator-key-claim__about-art, .creator-request-detail__art) {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ts-black);
  border-radius: var(--ts-radius);
  box-shadow: 6px 6px 0 var(--ts-black);
  transform: rotate(-2deg);
}
html.the-sims.dashboard :is(.creator-key-claim__about, .creator-request-detail__head) :is(h1, h2, .creator-request-detail__title) {
  color: var(--ts-green);
  font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem);
  line-height: 1;
}
html.the-sims.dashboard :is(.creator-key-claim__about, .creator-request-detail__head) :is(p, .creator-key-claim__description, .creator-request-detail__desc) {
  color: var(--ts-white);
}
html.the-sims.dashboard :is(.creator-request-detail__field-card, .creator-request-detail__keylist, .creator-request-detail__notes, .creator-key-claim__grant, .creator-key-claim__terms, .creator-key-claim__key-card, .creator-account__card, .creator-request-detail__result) {
  border: 2px solid var(--ts-line) !important;
  border-radius: var(--ts-radius) !important;
  background: var(--ts-paper) !important;
  box-shadow: var(--ts-card-shadow) !important;
}
html.the-sims.dashboard :is(.creator-request-detail__keylist-head, .creator-key-claim__grant-name, .creator-key-claim__terms h1, .creator-account__title) {
  font-family: var(--ts-font-display) !important;
  font-weight: 400 !important;
}

/* Buttons: Grim Black pill, Plumbob Green label; disabled fades instead of turning grey */
html.the-sims.dashboard :is(.creator-key-claim__btn, .creator-request-detail__submit, .creator-account__btn, .creator-quests__disclaimer-cta) {
  border: 2px solid var(--ts-btn-line) !important;
  border-radius: var(--ts-pill) !important;
  background: var(--ts-btn-bg) !important;
  color: var(--ts-btn-text) !important;
  box-shadow: 4px 4px 0 var(--ts-btn-shadow);
  font-family: var(--ts-font-ui) !important;
  font-weight: 800 !important;
  transition: transform 0.3s var(--ts-bounce), box-shadow 0.3s var(--ts-bounce);
}
html.the-sims.dashboard :is(.creator-key-claim__btn, .creator-request-detail__submit, .creator-account__btn, .creator-quests__disclaimer-cta):not(:disabled):hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 6px 6px 0 var(--ts-btn-shadow);
}
html.the-sims.dashboard :is(.creator-key-claim__btn, .creator-request-detail__submit, .creator-account__btn, .creator-quests__disclaimer-cta):disabled {
  opacity: 0.35;
  box-shadow: none;
  cursor: not-allowed;
}

/* Quests */
html.the-sims.dashboard .gsc-quest-card__banner {
  border-bottom: 2px solid var(--ts-line);
  background: var(--ts-bar-bg) !important;
  color: var(--ts-bar-text) !important;
  font-family: var(--ts-font-ui);
  font-weight: 800;
}
html.the-sims.dashboard .gsc-quest-card__banner.is-starts {
  background: var(--ts-blue) !important;
  color: var(--ts-white) !important;
}
html.the-sims.dashboard .gsc-quest-card__banner.is-ended {
  background: var(--ts-navy) !important;
  color: var(--ts-white) !important;
}
html.the-sims.dashboard .gsc-quest-card__limited {
  background: var(--ts-white) !important;
  color: var(--ts-black) !important;
}
html.the-sims.dashboard .gsc-quest-card__title {
  font-family: var(--ts-font-display) !important;
  font-weight: 400 !important;
  font-size: 1.375rem;
  line-height: 1.05;
}
html.the-sims.dashboard .gsc-quest-card__icon {
  color: var(--ts-green);
}
html.the-sims.dashboard .gsc-quest-card__bar {
  height: 0.75rem;
  border: 2px solid var(--ts-line);
  border-radius: var(--ts-pill);
  background: var(--ts-track) !important;
}
html.the-sims.dashboard .gsc-quest-card__fill {
  background: var(--ts-green) !important;
}
html.the-sims.dashboard .gsc-quest-card__footer {
  border-top: 2px solid var(--ts-line);
}
/* The kit paints the reward strip (and the prize draw's confirmed-entry box, below) in the
   accent - Grim Black in light, Plumbob Green in dark. The strip is a bar like the card CTAs, so
   it is pinned to the bar colours in both themes and the rewards inside it stay transparent. */
html.the-sims.dashboard .gsc-quest-card__rewards {
  background: var(--ts-bar-bg) !important;
  color: var(--ts-bar-text) !important;
}
html.the-sims.dashboard .gsc-quest-card__reward {
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-family: var(--ts-font-ui);
  font-weight: 800;
}
html.the-sims.dashboard .gsc-quest-card__remaining {
  font-family: var(--ts-font-ui);
  font-weight: 800;
}
html.the-sims.dashboard .gsc-quest-card__overlay {
  font-family: var(--ts-font-display);
  font-size: 1.5rem;
  color: var(--ts-white) !important;
}
html.the-sims.dashboard .gsc-quest-card__overlay.completed { background: rgb(0 219 55 / 0.92) !important; }
html.the-sims.dashboard .gsc-quest-card__overlay.pending { background: rgb(24 47 255 / 0.92) !important; }
html.the-sims.dashboard .gsc-quest-card__overlay:is(.ended, .exhausted) { background: rgb(10 2 3 / 0.85) !important; }
html.the-sims.dashboard .creator-quests__group-progress {
  padding: 0.25rem 0.75rem;
  border-radius: var(--ts-pill);
  background: var(--ts-chip-bg) !important;
  color: var(--ts-chip-text) !important;
  font-family: var(--ts-font-ui);
  font-weight: 800;
}
/* Prize draw: Grim Black module, Plumbob Green numbers */
html.the-sims.dashboard .gsc-prize {
  border: 2px solid var(--ts-line) !important;
  border-radius: var(--ts-radius) !important;
  background: var(--ts-black) !important;
  color: var(--ts-white) !important;
  box-shadow: 6px 6px 0 var(--ts-green) !important;
}
/* Entry box: part of the Grim Black module in both themes (the kit would fill a confirmed entry
   with the accent, which is Plumbob Green in dark and hides the green count). Before any entry
   it is a dashed outline - the kit's panel fill would sit cream behind the white copy in light. */
html.the-sims.dashboard .gsc-prize__entry {
  background: transparent !important;
  border-color: rgb(249 244 237 / 0.35) !important;
}
html.the-sims.dashboard .gsc-prize__entry.has-entry {
  background: var(--ts-black) !important;
  border-color: var(--ts-black) !important;
  box-shadow: none !important;
}
html.the-sims.dashboard :is(.gsc-prize__entry-count, .gsc-prize__entry-x) {
  color: var(--ts-green) !important;
  font-family: var(--ts-font-display) !important;
  font-weight: 400 !important;
}
html.the-sims.dashboard :is(.gsc-prize__entry-label, .gsc-prize__pool-label, .gsc-prize__winners-label) {
  color: var(--ts-green) !important;
  font-family: var(--ts-font-ui);
  font-weight: 800;
}
html.the-sims.dashboard :is(.gsc-prize__entry-msg, .gsc-prize__desc, .gsc-prize__name, .gsc-prize__winners-list) {
  color: var(--ts-white) !important;
}
html.the-sims.dashboard .gsc-prize__pool {
  border-color: rgb(249 244 237 / 0.2) !important;
  background: transparent !important;
  color: var(--ts-white) !important;
}
html.the-sims.dashboard .gsc-prize__item {
  border-color: rgb(249 244 237 / 0.2) !important;
  background: rgb(249 244 237 / 0.08) !important;
}
html.the-sims.dashboard .gsc-prize__rank {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.1rem 0.65rem;
  border-radius: var(--ts-pill);
  background: var(--ts-white) !important;
  color: var(--ts-black) !important;
  font-family: var(--ts-font-ui);
  font-weight: 800;
}
/* Community challenge: Sims Blue module, white type, Plumbob Green progress */
html.the-sims.dashboard .gsc-community {
  border: 2px solid var(--ts-line) !important;
  border-radius: var(--ts-radius) !important;
  background: var(--ts-blue) !important;
  color: var(--ts-white) !important;
  box-shadow: var(--ts-card-shadow) !important;
}
html.the-sims.dashboard :is(.gsc-community__title, .gsc-community__current, .gsc-community__pct) {
  color: var(--ts-white) !important;
  font-family: var(--ts-font-display) !important;
  font-weight: 400 !important;
}
html.the-sims.dashboard :is(.gsc-community__desc, .gsc-community__goal, .gsc-community__sep, .gsc-community__icon) {
  color: var(--ts-white) !important;
}
html.the-sims.dashboard .gsc-community__bar {
  border: 2px solid var(--ts-black);
  background: var(--ts-navy) !important;
}
html.the-sims.dashboard .gsc-community__fill {
  background: var(--ts-green) !important;
}

/* Account panels */
html.the-sims.dashboard .creator-account__social {
  border: 2px solid var(--ts-line) !important;
  border-radius: 12px !important;
  background: var(--ts-inset) !important;
}
html.the-sims.dashboard .creator-account__link {
  border: 2px solid var(--ts-line) !important;
  border-radius: 12px !important;
  background: var(--ts-paper) !important;
  transition: transform 0.3s var(--ts-bounce);
}
html.the-sims.dashboard .creator-account__link:hover {
  transform: translateY(-2px) rotate(-3deg);
}

/* Request detail: the section around the field cards stays a plain container */
html.the-sims.dashboard :is(.creator-request-detail__section, .creator-request-detail__about) {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html.the-sims.dashboard .creator-request-detail__hint {
  color: var(--ts-ink) !important;
  font-family: var(--ts-font-ui);
  font-weight: 700;
}

/* Secondary button: outline, same shape */
html.the-sims.dashboard .creator-key-claim__btn.is-secondary {
  border-color: var(--ts-btn2-line) !important;
  background: var(--ts-btn2-bg) !important;
  color: var(--ts-btn2-text) !important;
  box-shadow: 4px 4px 0 var(--ts-btn2-shadow);
}
html.the-sims.dashboard .creator-key-claim__btn.is-secondary:not(:disabled):hover {
  box-shadow: 6px 6px 0 var(--ts-btn2-shadow);
}
html.the-sims.dashboard .creator-key-claim__terms {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
html.the-sims.dashboard .creator-key-claim__terms-content h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
}
html.the-sims.dashboard .creator-key-claim__terms-content a {
  color: var(--ts-ink);
  font-weight: 700;
}

/* Quest group art tiles (console-supplied) get the same frame as the cards */
html.the-sims.dashboard .creator-quests__banner {
  border: 2px solid var(--ts-line);
  border-radius: var(--ts-radius);
  box-shadow: var(--ts-card-shadow);
}
html.the-sims.dashboard .creator-quests__banner::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 14px;
  width: 15px;
  height: 28px;
  background: var(--ts-green);
  -webkit-mask: url('/images/the-sims/plumbob.svg') no-repeat center / contain;
  mask: url('/images/the-sims/plumbob.svg') no-repeat center / contain;
  filter: drop-shadow(1px 0 0 var(--ts-black)) drop-shadow(-1px 0 0 var(--ts-black)) drop-shadow(0 1px 0 var(--ts-black)) drop-shadow(0 -1px 0 var(--ts-black));
}
/* Countdowns in Neuwelt with fixed-width digits, not the kit's monospace */
html.the-sims.dashboard .gsc-quest-card__banner-value {
  color: inherit !important;
  font-family: var(--ts-font-ui) !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
html.the-sims.dashboard .gsc-quest-card__overlay.completed { background: var(--ts-green) !important; }
html.the-sims.dashboard .gsc-quest-card__overlay.pending { background: var(--ts-blue) !important; }
html.the-sims.dashboard .gsc-quest-card__overlay:is(.ended, .exhausted) { background: rgb(10 2 3 / 0.9) !important; }

/* Demo-only marker inside sample content: a Grim Black tag instead of red text */
html.the-sims .demo-mock {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: var(--ts-pill);
  background: var(--ts-chip-bg, var(--ts-black));
  color: var(--ts-chip-text, var(--ts-green)) !important;
  font-family: var(--ts-font-ui);
  font-size: 0.75em;
  font-weight: 800;
  vertical-align: 0.1em;
}

/* Header controls wrap inside the navy module on narrow screens (it clips its overflow). */
@media (max-width: 640px) {
  html.the-sims.dashboard :is(.creator-quests__header-right, .creator-requests__tabs) {
    width: 100%;
    flex-wrap: wrap;
  }
  html.the-sims.dashboard .creator-quests__season {
    width: 100%;
    min-width: 0;
  }
  html.the-sims.dashboard .creator-quests__filters {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.the-sims.dashboard * {
    transition: none !important;
  }
}

/* ── Dashboard dark theme ────────────────────────────────────────────────────
   Chosen in the user menu (Match system / Light / Dark). composables/creator/useCreatorTheme.ts
   keeps the RESOLVED theme in data-creator-theme on <html>, so this one block covers both a
   forced dark and a dark system setting. Light is the design above, untouched.

   From the guide: "Plumbob Green works well in both dark and light environments", and its type
   pairings include Bonehilda White and Plumbob Green on Grim Black. So dark is a Grim Black
   ground with Bonehilda White type and outlines and Plumbob Green accents:
   - Cards are Grim Black lifted by a 7% Bonehilda White wash (tone on tone), so they separate
     from the page. Their outline turns Bonehilda White and their hard shadow Plumbob Green,
     since a black shadow vanishes on black.
   - Buttons flip to a Plumbob Green pill with a Grim Black label (Black on Green is a guide
     pairing) and a Bonehilda White shadow; small labels flip the same way.
   - Already dark-ready, so unchanged: the green hero, the Sims Navy headline modules, the Grim
     Black header, footer and prize draw, and the Sims Blue community module. */
html.the-sims.dashboard[data-creator-theme='dark'] {
  color-scheme: dark;

  --ts-paper: #1b1313;
  --ts-cream: #2a2121;
  --ts-ink: var(--ts-white);
  --ts-ink-muted: #c4bcb5;
  --ts-hairline: rgb(249 244 237 / 0.16);

  --ts-line: var(--ts-white);
  --ts-shadow-ink: var(--ts-green);
  --ts-chip-bg: var(--ts-green);
  --ts-chip-text: var(--ts-black);
  --ts-bar-bg: var(--ts-black);
  --ts-bar-text: var(--ts-green);
  --ts-btn-bg: var(--ts-green);
  --ts-btn-text: var(--ts-black);
  --ts-btn-line: var(--ts-green);
  --ts-btn-shadow: var(--ts-white);
  --ts-btn2-bg: transparent;
  --ts-btn2-text: var(--ts-white);
  --ts-btn2-line: var(--ts-white);
  --ts-btn2-shadow: var(--ts-green);
  --ts-inset: var(--ts-black);
  --ts-track: var(--ts-black);
  --ts-focus: var(--ts-white);

  /* Creator kit bridge */
  --gsc-surface: var(--ts-black);
  --gsc-panel-raised: #241b1b;
  --gsc-border-strong: rgb(249 244 237 / 0.32);
  --gsc-text-subtle: #9d948e;
  --gsc-accent: var(--ts-green);
  --gsc-accent-hover: #3de366;
  --gsc-accent-text: var(--ts-black);
  --gsc-success: var(--ts-green);
  --gsc-success-text: var(--ts-black);
  --gsc-danger: #ff6b7a;
  --gsc-danger-text: var(--ts-black);
  --gsc-warn: #ffb547;
  --gsc-warn-text: var(--ts-black);
  --gsc-focus-ring: var(--ts-white);
  --gsc-shadow: 0 6px 24px rgb(0 0 0 / 0.55);
  --gsc-field-bg: var(--ts-black);
  --gsc-field-border: rgb(249 244 237 / 0.32);
  --gsc-field-placeholder: #8f8681;
  --gsc-field-focus: var(--ts-green);
  --gsc-field-panel-bg: #241b1b;
  --gsc-field-option-active: var(--ts-green);
  --gsc-field-tag-bg: var(--ts-green);
  --gsc-field-tag-text: var(--ts-black);
  --gsc-overlay-backdrop: rgb(0 0 0 / 0.72);
  --gsc-modal-bg: var(--ts-paper);

  /* Legacy tokens still read by BaseForm / older shared components */
  --app-styling-background: var(--ts-black);
  --app-styling-slate-level-2: #241b1b;
  --color-palette-branding-normal: var(--ts-green);
  --color-palette-branding-normal-hover: #3de366;
  --color-palette-branding-normal-active: #3de366;
  --color-palette-blue-greys-100: #241b1b;
  --color-palette-blue-greys-500: rgb(249 244 237 / 0.32);
  --card--background: 27 19 19;
  --card--border: 249 244 237;
  --card--text: 249 244 237;
  --card--title: 249 244 237;
  --component-shadow: 0 6px 24px rgb(0 0 0 / 0.55);
  --input-buttons-primary-bg-default: var(--ts-green);
  --input-buttons-primary-bg-hover: #3de366;
  --input-buttons-primary-bg-active: #3de366;
  --input-buttons-primary-text-default: var(--ts-black);
  --input-buttons-primary-text-hover: var(--ts-black);
  --input-buttons-primary-text-active: var(--ts-black);
  --input-buttons-primary-bg-disabled: #3a3030;
  --input-buttons-primary-text-disabled: #8f8681;
  --input-buttons-secondary-border: 2px solid var(--ts-white);
}

/* Nuxt UI reads its tokens from <body> too (see the Nuxt UI block at the top). */
html.the-sims.dashboard[data-creator-theme='dark'],
html.the-sims.dashboard[data-creator-theme='dark'] body {
  --ui-text-dimmed: #9d948e;
  --ui-text-inverted: var(--ts-black);
  --ui-bg: var(--ts-paper);
  --ui-bg-inverted: var(--ts-white);
  --ui-border-accented: rgb(249 244 237 / 0.32);
  --ui-border-inverted: var(--ts-white);
  --ui-primary: var(--ts-green);
  --ui-secondary: var(--ts-green);
  --ui-error: #ff6b7a;
  --ui-success: var(--ts-green);
  background-color: var(--ts-black);
}

html.the-sims.dashboard[data-creator-theme='dark'] .overlay-modal__panel {
  background: var(--ts-paper);
  border-color: var(--ts-line);
}

/* The Sims' own buttons (how-to-apply, EA account card) follow the same flip. */
html.the-sims.dashboard[data-creator-theme='dark'] .ts-btn--black {
  border-color: var(--ts-green);
  background: var(--ts-green);
  color: var(--ts-black);
}
html.the-sims.dashboard[data-creator-theme='dark'] .ts-btn--black:hover {
  box-shadow: 0 4px 0 var(--ts-white);
  color: var(--ts-black);
}
html.the-sims.dashboard[data-creator-theme='dark'] .ts-btn--ghost {
  border-color: var(--ts-white);
  color: var(--ts-white);
}
html.the-sims.dashboard[data-creator-theme='dark'] .ts-btn--ghost:hover {
  background: var(--ts-white);
  color: var(--ts-black);
}

/* EA account mark: a Grim Black disc disappears on the dark card, so it inverts. */
html.the-sims.dashboard[data-creator-theme='dark'] .ts-ea__icon {
  background: var(--ts-white);
}
html.the-sims.dashboard[data-creator-theme='dark'] .ts-ea__mark {
  background: var(--ts-black);
}

/* Login (creator kit) */
html.the-sims .creator-login {
  position: relative;
  z-index: 1;
}

html.the-sims .demo-mock {
  color: var(--ts-error);
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html.the-sims *,
  html.the-sims *::before,
  html.the-sims *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Sims Sans has no CJK glyphs. Latin runs keep Sims Sans (it only has a 400 face and
   synthesis is off), while the CJK fallback face renders heavy enough to read as a headline.
   Last in the file and !important so it also beats the dashboard heading weights above. */
html.the-sims:is(:lang(ja), :lang(ko), :lang(zh)) :is(.ts-display, h1, h2) {
  font-weight: 900 !important;
  line-height: 1.15;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* CJK glyphs are much wider than Sims Sans - keep the landing's giant headlines in proportion.
   (Global, not in the page's scoped style: Vue drops everything after `:global(...)`.) */
html.the-sims:is(:lang(ja), :lang(ko), :lang(zh)) .ts-hero__title {
  font-size: clamp(2.75rem, 1.25rem + 4.5vw, 5.25rem);
}

html.the-sims:is(:lang(ja), :lang(ko), :lang(zh)) :is(.ts-section__title, .ts-closing__title, .ts-dhero__title) {
  font-size: clamp(2rem, 1.25rem + 2.6vw, 3.5rem);
}

