  @font-face { font-family: 'Press Start 2P'; font-weight: 400; font-display: swap; src: url(/fonts/press-start-2p-latin-400.woff2) format('woff2'); }
  @font-face { font-family: 'Silkscreen'; font-weight: 400; font-display: swap; src: url(/fonts/silkscreen-latin-400.woff2) format('woff2'); }
  @font-face { font-family: 'Silkscreen'; font-weight: 700; font-display: swap; src: url(/fonts/silkscreen-latin-700.woff2) format('woff2'); }
  @font-face { font-family: 'Plus Jakarta Sans'; font-weight: 200 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-wght.woff2) format('woff2'); }
  @font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-400.woff2) format('woff2'); }
  @font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-700.woff2) format('woff2'); }

  /* Layout concept: an arcade "level select" in soft pastels. Worlds are selectable cartridges; logo pink is the one loud colour.
     Light (pastel pink) and dark (lavender night) themes; Calm Mode removes motion, glow and critters and switches to an easy-reading font. */
  :root {
    color-scheme: light;
    --bg: #fff4f9;
    --surface: #ffffff;
    --surface-2: #fde8f3;
    --line: #f1d2e4;
    --ink: #2b1a34;
    --muted: #6b5878;
    --pink: #d63d8f;        /* logo pink, deepened for contrast on light */
    --pink-soft: #a8357a;   /* label text */
    --violet: #7357c4;
    --mint: #1e8a62;
    --on-pink: #ffffff;
    --tint: #ffd6ec;        /* pastel wash */
    --glow: 0 6px 20px rgba(214, 61, 143, .18);
    --shadow: 0 24px 60px -34px rgba(214, 61, 143, .45);
    --f-display: 'Press Start 2P', 'Courier New', monospace;
    --f-label: 'Silkscreen', 'Courier New', monospace;
    --f-body: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    --f-head: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    --radius: 14px;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
      color-scheme: dark;
      --bg: #17132a; --surface: #201a37; --surface-2: #2a2346; --line: #3a315e;
      --ink: #fbf3ff; --muted: #c9bedf; --pink: #ff9fd6; --pink-soft: #ffcde9; --violet: #c6b4ff; --mint: #9fe8ca;
      --on-pink: #2a0f22; --tint: #3a2350;
      --glow: 0 0 22px rgba(255, 159, 214, .32); --shadow: 0 30px 80px -40px rgba(255, 159, 214, .45);
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #17132a; --surface: #201a37; --surface-2: #2a2346; --line: #3a315e;
    --ink: #fbf3ff; --muted: #c9bedf; --pink: #ff9fd6; --pink-soft: #ffcde9; --violet: #c6b4ff; --mint: #9fe8ca;
    --on-pink: #2a0f22; --tint: #3a2350;
    --glow: 0 0 22px rgba(255, 159, 214, .32); --shadow: 0 30px 80px -40px rgba(255, 159, 214, .45);
  }
  /* ---------- Extra colour themes (match Arcana Soul Book) ---------- */
  :root[data-theme="ocean"] { --bg: #f2f8fd; --surface-2: #e1eff9; --line: #cfe3f2; --ink: #142a3a; --muted: #4d6577; --pink: #1f6fa3; --pink-soft: #1f5a80; --tint: #d3e9f8; --violet: #4a5fc1; --glow: 0 6px 20px rgba(31, 111, 163, .18); --shadow: 0 24px 60px -34px rgba(31, 111, 163, .45); }
  :root[data-theme="lavender"] { --bg: #f8f5fe; --surface-2: #ede7fb; --line: #ddd3f3; --ink: #2b1a40; --muted: #67598a; --pink: #6f4fc9; --pink-soft: #55398f; --tint: #e4dafb; --violet: #a0478f; --glow: 0 6px 20px rgba(111, 79, 201, .18); --shadow: 0 24px 60px -34px rgba(111, 79, 201, .45); }
  :root[data-theme="sand"] { --bg: #fbf8f2; --surface-2: #f2ebdd; --line: #e6dcc8; --ink: #2e2418; --muted: #6b5c48; --pink: #8c6a32; --pink-soft: #5e4a2a; --tint: #efe3cc; --violet: #7a5a8c; --glow: 0 6px 20px rgba(140, 106, 50, .18); --shadow: 0 24px 60px -34px rgba(140, 106, 50, .45); }
  :root[data-theme="sage"] { --bg: #f5f9f5; --surface-2: #e6efe7; --line: #d3e2d5; --ink: #1d2b20; --muted: #56685a; --pink: #3f7a52; --pink-soft: #355e3f; --tint: #d9eadc; --violet: #5c6aa8; --mint: #2f7a6a; --glow: 0 6px 20px rgba(63, 122, 82, .18); --shadow: 0 24px 60px -34px rgba(63, 122, 82, .45); }
  :root[data-theme="mist"] { --bg: #f5f7f9; --surface-2: #e8ecf1; --line: #d7dee7; --ink: #1e2632; --muted: #5a6575; --pink: #4f6380; --pink-soft: #3e4d63; --tint: #dde4ee; --violet: #6a5c9a; --glow: 0 6px 20px rgba(79, 99, 128, .18); --shadow: 0 24px 60px -34px rgba(79, 99, 128, .45); }
  .theme-pop { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
  .theme-pop[hidden] { display: none; }
  .theme-pop .tp-back { position: absolute; inset: 0; background: rgba(20, 12, 28, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  .theme-pop .tp-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35); }
  .tp-card h2 { font-size: 1.45rem; font-weight: 800; margin: 0; }
  .tp-card .tp-sub { color: var(--muted); margin: 6px 0 16px; font-size: 14px; }
  .tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .th-opt { text-align: left; display: grid; gap: 6px; padding: 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
  .th-opt:hover { border-color: color-mix(in srgb, var(--pink) 50%, var(--line)); }
  .th-opt[aria-pressed="true"] { border-color: var(--pink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 25%, transparent); }
  .th-opt .sw { display: flex; gap: 6px; }
  .th-opt .sw i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
  .th-opt b { font-size: 15px; }
  .th-opt small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
  .tp-done { width: 100%; margin-top: 16px; justify-content: center; }
  .tp-cancel { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; padding: 6px; }

  /* CALM MODE: no motion, no glow, no critters, easy-reading type */
  html.calm {
    --glow: none;
    --shadow: none;
    --f-body: 'Atkinson Hyperlegible', Verdana, Arial, sans-serif;
    --f-head: 'Atkinson Hyperlegible', Verdana, Arial, sans-serif;
    --f-label: 'Atkinson Hyperlegible', Verdana, Arial, sans-serif;
    --f-display: 'Atkinson Hyperlegible', Verdana, Arial, sans-serif;
  }
  html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  html.calm body { font-size: 18px; letter-spacing: .01em; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--pink-soft); outline-offset: 3px; border-radius: 6px; }
  h1, h2, h3 { font-family: var(--f-head); text-wrap: balance; margin: 0; line-height: 1.12; letter-spacing: -.02em; }
  html.calm h1, html.calm h2, html.calm h3 { letter-spacing: 0; }
  p { margin: 0; }
  .wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
  .label { font-family: var(--f-label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-soft); }
  html.calm .label { letter-spacing: .06em; font-weight: 700; font-size: 13px; }
  .lede { color: var(--muted); max-width: 62ch; font-size: 1.06em; }

  /* arcade atmosphere (off in calm mode) */
  .grid-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image: linear-gradient(to right, color-mix(in srgb, var(--pink) 7%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--pink) 7%, transparent) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
  .orb { position: fixed; z-index: -1; pointer-events: none; width: 560px; height: 560px; border-radius: 50%; filter: blur(100px); opacity: .35; background: var(--tint); top: -220px; right: -160px; animation: drift 14s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate(-60px, 40px); } }
  html.calm .grid-bg, html.calm .orb { display: none; }

  /* header */
  header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
  .brand img { width: 42px; height: 42px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--pink) 50%, transparent); box-shadow: var(--glow); }
  .brand b { font-family: var(--f-display); font-weight: 400; font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
  .brand small { display: block; font-family: var(--f-label); font-size: 10px; color: var(--muted); letter-spacing: .14em; }
  html.calm .brand b { font-size: 18px; font-weight: 700; letter-spacing: 0; }
  nav.main { display: none; gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
  nav.main a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); padding: 7px 13px; border-radius: 999px; }
  nav.main a:hover { color: var(--ink); background: var(--surface-2); }
  @media (min-width: 1380px) { nav.main { display: flex; } }
  .controls { display: flex; align-items: center; gap: 8px; }
  .chip-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
  .chip-btn:hover { border-color: var(--pink); }
  .switch { width: 30px; height: 17px; border-radius: 999px; background: var(--line); position: relative; flex: none; }
  .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--muted); transition: left .2s; }
  [aria-pressed="true"] .switch { background: var(--pink); }
  [aria-pressed="true"] .switch::after { left: 15px; background: var(--on-pink); }
  .icon-btn { width: 38px; height: 38px; justify-content: center; padding: 0; position: relative; }
  .icon-btn svg { width: 17px; height: 17px; }
  .i-sun { display: none; }
  :root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme]) .i-sun { display: block; } :root:not([data-theme]) .i-moon { display: none; } }
  #music-toggle[aria-pressed="true"] { border-color: var(--pink); color: var(--pink); }
  .eq { position: absolute; right: 5px; bottom: 6px; display: none; gap: 1px; align-items: flex-end; height: 8px; }
  #music-toggle[aria-pressed="true"] .eq { display: flex; }
  .eq i { width: 2px; background: currentColor; border-radius: 1px; animation: eq 1.2s ease-in-out infinite; }
  .eq i:nth-child(2) { animation-delay: .3s; } .eq i:nth-child(3) { animation-delay: .6s; }
  @keyframes eq { 0%, 100% { height: 2px; } 50% { height: 8px; } }
  /* cute critters that pop up where you click */
  .critter { position: fixed; z-index: 100; pointer-events: none; font-size: 30px; line-height: 1; transform: translate(-50%, -50%); animation: critter 1.5s cubic-bezier(.2,.9,.3,1.2) forwards; }
  .critter.heart { font-size: 14px; animation-name: heart; }
  @keyframes critter { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(-20deg); } 18% { opacity: 1; transform: translate(-50%, -70%) scale(1.15) rotate(8deg); } 30% { transform: translate(-50%, -75%) scale(1) rotate(-4deg); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(.9) rotate(6deg); } }
  @keyframes heart { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -260%) scale(1); } }
  .controls .hide-sm { display: none; }
  @media (min-width: 640px) { .controls .hide-sm { display: inline-flex; } }
  @media (max-width: 460px) { .brand > span { display: none; } .chip-btn { padding: 8px 10px; } }

  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer; border: 0; border-radius: 12px; font: 800 15px var(--f-body); padding: 14px 22px; transition: transform .15s, box-shadow .2s; }
  .btn:active { transform: translateY(2px); }
  .btn-pink { background: var(--pink); color: var(--on-pink); box-shadow: var(--glow), inset 0 -3px 0 rgba(0,0,0,.14); }
  .btn-pink:hover { filter: brightness(1.06); }
  html.calm .btn-pink:hover { box-shadow: none; filter: brightness(1.06); }
  .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
  .btn-ghost:hover { border-color: var(--pink-soft); }
  .btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }

  /* hero */
  .hero { padding-block: 56px 72px; }
  .hud { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--f-label); font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-bottom: 34px; }
  .hud b { color: var(--pink-soft); font-weight: 700; }
  .hud .mascot { display: inline-block; font-size: 17px; line-height: 1; margin-right: 8px; vertical-align: -2px; animation: hop 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
  @keyframes hop { 0%, 60%, 100% { transform: translateY(0) scale(1, 1); } 70% { transform: translateY(0) scale(1.1, .9); } 80% { transform: translateY(-5px) scale(.95, 1.05); } 90% { transform: translateY(0) scale(1.05, .95); } }
  @keyframes blink { 50% { opacity: .2; } }
  html.calm .hud { letter-spacing: .03em; font-size: 14px; }
  .hero-grid { display: grid; gap: 44px; align-items: center; }
  @media (min-width: 960px) { .hero-grid { grid-template-columns: 1.12fr .88fr; } }
  .hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); font-weight: 800; }
  .hero h1 .em { color: var(--pink); text-shadow: var(--glow); }
  html.calm .hero h1 .em { text-shadow: none; }
  .hero .lede { margin-top: 22px; font-size: 1.15em; }
  .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

  /* level select panel */
  .select { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
  html.calm .select { box-shadow: none; }
  .select-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 14px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
  .select-head .t { font-family: var(--f-display); font-size: 11px; color: var(--pink-soft); }
  html.calm .select-head .t { font-size: 15px; font-weight: 700; }
  .select-head .c { font-family: var(--f-label); font-size: 11px; color: var(--muted); }
  .slot { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 13px 10px; border-radius: 12px; text-decoration: none; border: 1px solid transparent; }
  .slot:hover, .slot:focus-visible { background: var(--surface-2); border-color: var(--line); }
  .slot .arrow { font-family: var(--f-display); font-size: 12px; color: var(--pink); opacity: 0; }
  .slot:hover .arrow, .slot:focus-visible .arrow { opacity: 1; animation: blink 1s steps(2) infinite; }
  html.calm .slot .arrow { opacity: 1; font-size: 15px; }
  .slot .n { font-weight: 800; font-size: 16px; }
  .slot .d { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
  .slot > span:nth-child(2) { min-width: 0; }
  .tag { font-family: var(--f-label); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; border: 1px solid currentColor; white-space: nowrap; }
  html.calm .tag { font-size: 12px; letter-spacing: .02em; font-weight: 700; }
  .tag.flag { color: var(--pink); }
  .tag.dev { color: var(--mint); }
  .tag.soon { color: var(--violet); }
  .tag.lock { color: var(--muted); }
  .select-foot { font-size: 12px; color: var(--muted); padding: 12px 8px 2px; border-top: 1px dashed var(--line); margin-top: 8px; font-family: var(--f-label); letter-spacing: .06em; }

  /* calm band */
  .calm-band { border-block: 1px solid var(--line); background: var(--surface); }
  .calm-band .wrap { display: grid; gap: 18px; padding-block: 28px; align-items: center; }
  @media (min-width: 820px) { .calm-band .wrap { grid-template-columns: auto 1fr auto; gap: 28px; } }
  .calm-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--pink-soft); }
  .calm-icon svg { width: 26px; height: 26px; }
  .calm-band h2 { font-size: 1.25rem; }
  .calm-band p { color: var(--muted); font-size: .97em; margin-top: 4px; max-width: 70ch; }

  /* sections */
  section.block { padding-block: 84px; }
  .sec-head { display: grid; gap: 14px; margin-bottom: 40px; }
  .sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; max-width: 22ch; }

  .principles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  @media (min-width: 820px) { .principles { grid-template-columns: repeat(3, 1fr); } }
  .principle { background: var(--bg); padding: 28px 26px; display: grid; gap: 10px; align-content: start; }
  .principle h3 { font-size: 1.2rem; }
  .principle p { color: var(--muted); font-size: .97em; }
  .principle .k { font-family: var(--f-label); font-size: 11px; color: var(--pink); letter-spacing: .1em; text-transform: uppercase; }
  html.calm .principle .k { font-size: 13px; letter-spacing: .03em; font-weight: 700; }

  /* worlds */
  .worlds { display: grid; gap: 18px; }
  @media (min-width: 820px) { .worlds { grid-template-columns: 1fr 1fr; } }
  .world { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; scroll-margin-top: 90px; }
  .world:hover { border-color: color-mix(in srgb, var(--pink) 55%, var(--line)); }
  .world .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .world .who { font-family: var(--f-label); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
  html.calm .world .who { font-size: 13px; letter-spacing: .02em; }
  .world h3 { font-size: 1.6rem; font-weight: 800; }
  .world .pitch { color: var(--pink-soft); font-weight: 600; }
  .world ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: .96em; }
  .world li { display: flex; align-items: flex-start; gap: 12px; }
  .world li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .6em; border-radius: 2px; background: var(--pink); box-shadow: var(--glow); }
  html.calm .world li::before { border-radius: 50%; }
  .world .note { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
  .world .go { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
  .world.flagship { background: linear-gradient(160deg, var(--tint) 0%, var(--surface) 60%); border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); }
  .world.locked { background: var(--surface); border-style: dashed; }
  .world.locked h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 400; letter-spacing: .02em; line-height: 1.5; }
  html.calm .world.locked h3 { font-size: 1.5rem; font-weight: 800; }
  .redact { display: inline-block; vertical-align: -2px; width: 7em; height: .95em; background: var(--line); border-radius: 4px; }

  /* colleges */
  .split { display: grid; gap: 34px; align-items: start; }
  @media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
  .panel { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: var(--surface); display: grid; gap: 16px; }
  .rows { display: grid; gap: 0; }
  .row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .96em; }
  .row:last-child { border-bottom: 0; }
  .row dt { font-family: var(--f-label); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--pink-soft); padding-top: 3px; }
  html.calm .row dt { font-size: 14px; letter-spacing: .02em; font-weight: 700; }
  .row dd { margin: 0; color: var(--muted); min-width: 0; }
  @media (max-width: 520px) { .row { grid-template-columns: 1fr; gap: 4px; } }

  /* studio */
  .studio { border-top: 1px solid var(--line); }
  .studio-grid { display: grid; gap: 18px; }
  @media (min-width: 900px) { .studio-grid { grid-template-columns: 1.1fr .9fr; } }
  .svc { display: flex; flex-wrap: wrap; gap: 8px; }
  .svc span { font-size: 14px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
  .case { border-radius: 20px; border: 1px solid var(--line); padding: 26px; display: grid; gap: 12px; background: var(--surface); }
  .case .url { font-family: var(--f-label); font-size: 12px; color: var(--pink-soft); letter-spacing: .04em; word-break: break-all; }

  /* founder */
  .founder { background: var(--surface); border-block: 1px solid var(--line); }
  .founder-grid { display: grid; gap: 36px; align-items: center; }
  @media (min-width: 860px) { .founder-grid { grid-template-columns: 300px 1fr; gap: 56px; } }
  .portrait { position: relative; width: min(300px, 100%); aspect-ratio: 1; border-radius: 22px; padding: 4px; background: linear-gradient(140deg, var(--pink), var(--violet)); box-shadow: var(--glow); }
  .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; border-radius: 18px; }
  .portrait .p1 { position: absolute; left: 12px; bottom: 12px; font-family: var(--f-display); font-size: 9px; background: var(--bg); color: var(--pink-soft); padding: 6px 8px; border-radius: 6px; }
  html.calm .portrait .p1 { font-size: 13px; font-weight: 700; }
  .founder h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
  .founder .role { color: var(--pink-soft); font-weight: 700; margin-top: 6px; }
  .founder .bio { display: grid; gap: 14px; margin-top: 20px; color: var(--muted); max-width: 64ch; }
  .founder .bio strong { color: var(--ink); }
  .founder .bio-quote { font-family: var(--f-head); font-size: 1.35rem; font-weight: 700; font-style: italic; color: var(--pink); line-height: 1.35; }
  .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
  .badges span { font-family: var(--f-label); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
  html.calm .badges span { font-size: 13px; letter-spacing: 0; text-transform: none; }
  .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

  /* waitlist: a player card, not a form */
  .join { display: grid; gap: 28px; align-items: start; }
  @media (min-width: 900px) { .join { grid-template-columns: 1fr 320px; gap: 36px; } }
  .steps { display: grid; gap: 26px; padding: 30px; border-radius: 26px; background: linear-gradient(170deg, var(--tint), var(--surface) 55%); border: 1px solid var(--line); min-width: 0; }
  .step { display: grid; gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
  .step-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; padding: 0; }
  .step-title .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--on-pink); font-size: 13px; font-weight: 800; flex: none; }
  .madlib { font-size: 1.15rem; line-height: 2.3; color: var(--ink); }
  .madlib input { font: 600 1.05rem var(--f-body); color: var(--pink); background: transparent; border: 0; border-bottom: 2px dashed color-mix(in srgb, var(--pink) 55%, transparent); border-radius: 0; padding: 2px 4px; width: 11ch; max-width: 100%; }
  .madlib input#wl-email { width: 17ch; }
  .madlib input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); font-weight: 400; }
  .madlib input:focus { outline: none; border-bottom-style: solid; border-bottom-color: var(--pink); background: color-mix(in srgb, var(--pink) 8%, transparent); border-radius: 6px 6px 0 0; }
  @media (max-width: 560px) { .madlib input, .madlib input#wl-email { display: block; width: 100%; margin-block: 2px 6px; } .madlib { line-height: 1.7; } }
  .roles { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip, .tile { position: relative; cursor: pointer; }
  .chip input, .tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .chip span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); transition: transform .15s, background .2s; }
  .chip span i { font-style: normal; font-size: 17px; }
  .chip:hover span { transform: translateY(-2px); }
  .chip input:checked + span { color: var(--ink); background: var(--tint); border-color: var(--pink); }
  .chip input:focus-visible + span, .tile input:focus-visible + .t-in { outline: 3px solid var(--pink-soft); outline-offset: 2px; }
  .tiles { display: flex; flex-wrap: wrap; gap: 12px; }
  .tile { flex: 1 1 130px; }
  .t-in { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 12px 14px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); transition: transform .18s cubic-bezier(.3,1.6,.5,1), background .2s, border-color .2s; height: 100%; }
  .t-in .e { font-size: 34px; line-height: 1.1; transition: transform .25s cubic-bezier(.3,1.8,.5,1); }
  .t-in b { font-size: 14px; }
  .t-in small { font-size: 12px; color: var(--muted); line-height: 1.35; }
  .tile:hover .t-in { transform: translateY(-3px); }
  .tile input:checked + .t-in { background: var(--tint); border-color: var(--pink); transform: translateY(-3px) rotate(-1.5deg); }
  .tile input:checked + .t-in .e { transform: scale(1.18); }
  .tile .tick { position: absolute; top: -8px; right: -6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--on-pink); font-size: 14px; font-weight: 800; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.8,.5,1); pointer-events: none; }
  .tile input:checked ~ .tick { transform: scale(1); }
  .note { width: 100%; min-height: 96px; font: 400 16px var(--f-body); color: var(--ink); background: var(--surface); border: 1.5px dashed var(--line); border-radius: 18px; padding: 14px 16px; resize: vertical; }
  .note:focus { outline: none; border-color: var(--pink); border-style: solid; }
  .oops { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--pink); font-size: 15px; }
  .send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
  .send-row .hint { font-size: 13px; color: var(--muted); }
  /* live player card */
  .pcard { position: sticky; top: 100px; border-radius: 26px; padding: 22px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; }
  .pcard .ph { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-label); font-size: 11px; letter-spacing: .1em; color: var(--pink-soft); text-transform: uppercase; }
  .pcard .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
  .avatar { width: 64px; height: 64px; flex: none; border-radius: 22px; display: grid; place-items: center; font-size: 34px; background: var(--tint); border: 2px solid color-mix(in srgb, var(--pink) 45%, transparent); }
  .avatar.pop { animation: pop .4s cubic-bezier(.3,1.8,.5,1); }
  @keyframes pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
  .pcard .pname { font-weight: 800; font-size: 1.2rem; overflow-wrap: anywhere; }
  .pcard .prole { font-size: 13px; color: var(--muted); }
  .pcard .lvl { font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
  .bar2 { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
  .bar2 i { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, var(--pink), var(--violet)); border-radius: 99px; transition: width .4s; }
  .badges2 { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
  .badges2 span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--tint); font-weight: 600; }
  .badges2 em { font-size: 13px; color: var(--muted); font-style: normal; }
  .done { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: var(--tint); border: 1.5px solid var(--pink); }
  .done strong { font-size: 1.05rem; }
  .contact-line { font-size: 13px; color: var(--muted); }
  .contact-line b { color: var(--ink); user-select: all; }

  footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 14px; color: var(--muted); }
  footer .wrap { display: grid; gap: 18px; }
  @media (min-width: 820px) { footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
  footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  footer a { text-decoration: none; }
  footer a:hover { color: var(--pink-soft); }

  /* ---- added: menu for every world ---- */
  nav.main a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
  .menu { position: relative; }
  .menu summary { list-style: none; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(290px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: var(--shadow); display: grid; gap: 2px; z-index: 60; }
  .menu-panel a { text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
  .menu-panel a small { font-family: var(--f-label); font-size: 10px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
  .menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--surface-2); }
  .menu-panel hr { border: 0; border-top: 1px dashed var(--line); margin: 4px 6px; }
  @media (min-width: 1380px) { .menu { display: none; } }
  nav.main a { white-space: nowrap; padding: 7px 11px; }
  .brand img, .controls { flex: none; }
  .brand img { max-width: none; }
  @media (max-width: 460px) { .menu summary span { display: none; } .menu summary { width: 38px; height: 38px; justify-content: center; padding: 0; } }
  .brand small, .chip-btn { white-space: nowrap; }
  .world .note { min-height: 0; width: auto; resize: none; background: none; border: 0; border-top: 1px dashed var(--line); border-radius: 0; padding: 12px 0 0; font-size: 13px; }
  .tag.live { color: var(--mint); background: color-mix(in srgb, var(--mint) 10%, transparent); }
  .world.wide { grid-column: 1 / -1; }
  footer address { font-style: normal; margin-top: 10px; line-height: 1.55; }
  footer address b { color: var(--ink); font-weight: 700; }
  .world .go .more { margin-left: auto; }
  @media (max-width: 560px) { .world .go .more { margin-left: 0; } }

  /* ---- world pages ---- */
  .page-hero { padding-block: 44px 56px; }
  .crumbs { font-family: var(--f-label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
  .crumbs a { text-decoration: none; color: var(--pink-soft); }
  html.calm .crumbs { letter-spacing: .02em; font-size: 14px; }
  .page-hero .tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
  .page-hero .pitch { color: var(--pink-soft); font-weight: 700; font-size: 1.2em; margin-top: 14px; }
  .page-hero .lede { margin-top: 14px; }
  .cards { display: grid; gap: 16px; }
  @media (min-width: 760px) { .cards.c2 { grid-template-columns: 1fr 1fr; } .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 1000px) { .cards.c4 { grid-template-columns: repeat(4, 1fr); } }
  @media (min-width: 640px) and (max-width: 999px) { .cards.c4 { grid-template-columns: 1fr 1fr; } }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
  .card h3 { font-size: 1.15rem; }
  .card p, .card li { color: var(--muted); font-size: .96em; }
  .card .k { font-family: var(--f-label); font-size: 11px; color: var(--pink); letter-spacing: .1em; text-transform: uppercase; }
  html.calm .card .k { font-size: 13px; letter-spacing: .03em; font-weight: 700; }
  .ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
  .ticks li { display: flex; gap: 10px; align-items: flex-start; }
  .ticks li::before { content: "\2713"; color: var(--mint); font-weight: 800; flex: none; }
  .ticks.no li::before { content: "\2715"; color: var(--pink); }
  .model { display: grid; gap: 12px; align-items: stretch; }
  @media (min-width: 860px) { .model { grid-template-columns: 1fr auto 1fr auto 1fr; } }
  .model .box { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 20px; display: grid; gap: 6px; }
  .model .box.me { background: var(--tint); border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); }
  .model .box b { font-family: var(--f-label); font-size: 12px; letter-spacing: .1em; color: var(--pink-soft); }
  html.calm .model .box b { font-size: 14px; letter-spacing: .02em; }
  .model .box span { color: var(--muted); font-size: .95em; }
  .model .arr { display: grid; place-items: center; color: var(--pink); font-weight: 800; font-size: 22px; }
  @media (max-width: 859px) { .model .arr { transform: rotate(90deg); } }
  .motto { text-align: center; font-weight: 800; font-size: 1.15rem; margin-top: 22px; }
  .outcome b { display: block; font-size: 1.05rem; color: var(--ink); }
  .outcome .n { font-family: var(--f-display); font-size: 11px; color: var(--pink); }
  html.calm .outcome .n { font-size: 14px; }
  /* plans */
  .plans { display: grid; gap: 16px; align-items: stretch; }
  @media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
  .plan { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .plan .lvl { font-family: var(--f-label); font-size: 11px; letter-spacing: .12em; color: var(--pink-soft); text-transform: uppercase; }
  html.calm .plan .lvl { font-size: 13px; letter-spacing: .03em; font-weight: 700; }
  .plan h3 { font-size: 1.25rem; }
  .plan .best { font-size: 14px; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 12px; }
  .plan .ticks { font-size: 14.5px; color: var(--muted); }
  .plan .price { margin-top: auto; padding-top: 10px; font-weight: 800; }
  .plan .price span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
  .plan.feat { border-color: var(--pink); background: linear-gradient(170deg, var(--tint), var(--surface) 60%); box-shadow: var(--shadow); }
  .plan .badge { position: absolute; top: -12px; left: 22px; background: var(--pink); color: var(--on-pink); font-family: var(--f-label); font-size: 10px; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; }
  .plan.alt { border-style: dashed; }
  .note-line { color: var(--muted); font-size: 14px; margin-top: 18px; }
  .stepper { display: grid; gap: 12px; counter-reset: st; }
  @media (min-width: 760px) { .stepper { grid-template-columns: repeat(4, 1fr); } }
  .stepper div { counter-increment: st; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
  .stepper div::before { content: counter(st, decimal-leading-zero); display: block; font-family: var(--f-display); font-size: 11px; color: var(--pink); margin-bottom: 10px; }
  html.calm .stepper div::before { font-size: 15px; }
  .stepper b { display: block; }
  .stepper span { color: var(--muted); font-size: 14.5px; }
  .contact-card { display: grid; gap: 22px; padding: 30px; border-radius: 24px; background: linear-gradient(170deg, var(--tint), var(--surface) 60%); border: 1px solid var(--line); }
  @media (min-width: 860px) { .contact-card { grid-template-columns: 1.2fr 1fr; align-items: center; } }
  .contact-card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
  .contact-card .lines { display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
  .contact-card .lines a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
  .ip { font-size: 12.5px; color: var(--muted); margin-top: 22px; }
  .others { display: grid; gap: 10px; }
  @media (min-width: 760px) { .others { grid-template-columns: 1fr 1fr; } }
  .others .slot { background: var(--surface); border-color: var(--line); }

  /* Header fix (16 Oct 2026): keep the "CtrlSphere" name fully visible in normal and calm mode on phones and small screens */
  .brand { flex: 0 1 auto; }
  .brand > span { min-width: max-content; }
  @media (max-width: 700px) {
    #calm-toggle > span:last-child, .menu summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    #calm-toggle { padding: 8px 10px; }
    .menu summary { width: 38px; height: 38px; justify-content: center; padding: 0; }
    .controls { gap: 6px; }
  }
  @media (max-width: 460px) {
    .bar { gap: 8px; }
    .brand { gap: 8px; }
    .brand > span { display: block; }
    .brand small { display: none; }
    .brand img { width: 36px; height: 36px; }
    .brand b { font-size: 11px; letter-spacing: .02em; }
    html.calm .brand b { font-size: 16px; }
    .controls { gap: 4px; }
    .controls .icon-btn, .menu summary { width: 34px; height: 34px; padding: 0; justify-content: center; }
    #calm-toggle { padding: 8px; }
  }
  @media (max-width: 360px) {
    header .wrap.bar { padding-inline: 12px; }
    .brand img { width: 32px; height: 32px; }
    .brand b { font-size: 10px; letter-spacing: 0; }
    html.calm .brand b { font-size: 15px; }
  }
