/* ================= Look picker ================= */
.tp { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; font-family: Inter, system-ui, sans-serif; color: #1d1a16; }
.tp-fab { width: 3rem; height: 3rem; border-radius: 50%; border: none; background: #fff; font-size: 1.4rem; cursor: pointer; box-shadow: 0 6px 20px -6px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.08); transition: transform .15s; }
.tp-fab:hover { transform: rotate(-12deg) scale(1.08); }
.tp-panel { position: absolute; left: 0; bottom: 3.75rem; width: min(560px, calc(100vw - 2rem)); background: #fff; border-radius: 18px; padding: 1rem; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.06); opacity: 0; transform: translateY(10px) scale(.98); transform-origin: bottom left; pointer-events: none; transition: opacity .18s, transform .18s; max-height: calc(100vh - 6rem); overflow: auto; }
.tp.open .tp-panel { opacity: 1; transform: none; pointer-events: auto; }
.tp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .75rem; }
.tp-head span { font-size: .75rem; color: #888; }
.tp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.tp-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; text-align: left; border: 2px solid transparent; border-radius: 14px; padding: .55rem .65rem; cursor: pointer; background: var(--tb); color: var(--ti); transition: transform .12s, border-color .12s; }
.tp-tile:hover { transform: translateY(-2px); }
.tp-tile.on { border-color: #1d1a16; box-shadow: 0 0 0 3px #fff inset; }
.tp-swatch { grid-row: 1 / 3; display: flex; align-items: center; gap: 2px; }
.tp-swatch i { width: 10px; height: 30px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.tp-swatch i:nth-child(1) { background: var(--tp); }
.tp-swatch i:nth-child(2) { background: var(--ti); }
.tp-swatch i:nth-child(3) { background: var(--ta); }
.tp-name { font-family: var(--tf), sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.tp-note { font-size: .72rem; opacity: .75; }
@media (max-width: 520px) { .tp-grid { grid-template-columns: 1fr; } }

/* ================= 1. Recess · Sunny Paper (default) ================= */
/* Light mode: cream dotted paper, white panels with ink outlines, colour lives in the tiles and characters. */
[data-theme=recess] {
  --coral: #ff5a36; --butter: #ffd43b;
  --bg: #fff3d9; --paper: #fff; --ink: #1d1a16; --on-ink: #fff; --muted: #6d665c; --line: #eadfc8; --soft: #fdeccb;
  --accent: #ff5a36; --good: #12a150; --bad: #e0333f; --tint: #fff;
  --radius: 22px; --pill: 14px; --bw: 3px; --shadow: 0 5px 0 var(--ink);
  --font-body: 'Nunito', system-ui, sans-serif; --font-display: 'Nunito', system-ui, sans-serif;
  font-size: 17px; font-weight: 600;
}
[data-theme=recess] body { background: radial-gradient(rgba(29, 26, 22, .08) 1.3px, transparent 1.8px) 0 0 / 18px 18px fixed; }
[data-theme=recess] h1, [data-theme=recess] h2, [data-theme=recess] h3, [data-theme=recess] .prompt, [data-theme=recess] .banner { font-weight: 900; letter-spacing: 0; }
[data-theme=recess] .panel-title, [data-theme=recess] .lobby-head h2, [data-theme=recess] .side h3 > span:first-child, [data-theme=recess] .detail h2, [data-theme=recess] .ghead h2 {
  color: var(--coral); text-transform: uppercase; letter-spacing: .02em;
}
[data-theme=recess] .hostbar { border-top: 2px dashed #d9cdb3; }

/* Panels and tiles: white, ink outline, chunky bottom edge */
[data-theme=recess] .card, [data-theme=recess] .aibox, [data-theme=recess] .invite, [data-theme=recess] .jobcard, [data-theme=recess] .product-card, [data-theme=recess] .team, [data-theme=recess] .locked, [data-theme=recess] .scene.play {
  --on-ink: var(--ink); background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink);
}
[data-theme=recess] .scene.play { padding: 1.5rem 1.75rem; }
[data-theme=recess] .detail { border-top: 3px solid var(--ink); }
[data-theme=recess] .team.red { border-top: 8px solid var(--red); }
[data-theme=recess] .team.blue { border-top: 8px solid var(--blue); }
[data-theme=recess] .invite { background: var(--butter); }
[data-theme=recess] .invite .big, [data-theme=recess] .code-chip .code, [data-theme=recess] .timer-text { font-family: 'Lilita One', var(--font-display); font-weight: 400; letter-spacing: .14em; }
[data-theme=recess] .gcard, [data-theme=recess] .opt, [data-theme=recess] .result, [data-theme=recess] .entry, [data-theme=recess] .hostline p, [data-theme=recess] .story,
[data-theme=recess] .plist li:not(.empty), [data-theme=recess] .item, [data-theme=recess] .reaction {
  background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
}
[data-theme=recess] .item { border-width: 2px; box-shadow: 0 3px 0 var(--ink); }
[data-theme=recess] .item.flag, [data-theme=recess] .item.click:hover { border-color: var(--bad); }
[data-theme=recess] .hostline p { background: #fffbea; }

/* Game tiles: icon over label */
[data-theme=recess] .gcard { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.1rem .9rem 1rem; transition: transform .15s, box-shadow .15s; }
[data-theme=recess] .gcard .emo { width: 4.4rem; height: 4.4rem; font-size: 3.4rem; background: color-mix(in srgb, var(--c) 14%, #fff); border-radius: 50%; }
[data-theme=recess] .gcard h3 { text-transform: uppercase; font-size: 1.02rem; margin: .5rem 0 .25rem; }
[data-theme=recess] .gcard p { font-size: .84rem; }
[data-theme=recess] .gcard .meta { justify-content: center; }
[data-theme=recess] .gcard .meta span { background: var(--soft); }
[data-theme=recess] .gcard .meta span.vibe { background: color-mix(in srgb, var(--c) 20%, #fff); }
[data-theme=recess] .gcard.pickable { cursor: pointer; }
[data-theme=recess] .gcard.pickable:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 7px 0 var(--ink); }
[data-theme=recess] .gcard.on { border-color: var(--ink); box-shadow: 0 0 0 4px var(--coral), 0 4px 0 4px var(--ink); transform: translateY(-2px); }

/* Options */
[data-theme=recess] .opt { font-size: 1.1rem; font-weight: 800; padding: 1.15rem 1.2rem; }
[data-theme=recess] .opt:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
[data-theme=recess] .opt.on { background: #fff1ec; box-shadow: 0 0 0 4px var(--coral), 0 4px 0 4px var(--ink); }
[data-theme=recess] .opt.right { background: #e3f9ec; border-color: var(--ink); box-shadow: 0 0 0 4px var(--good), 0 4px 0 4px var(--ink); }
[data-theme=recess] .opt.wrong { background: #ffe8ea; }

/* Players */
[data-theme=recess] .side { background: #fff8ea; border-left: 3px solid var(--ink); }
[data-theme=recess] .plist li { padding: .5rem .6rem; margin-bottom: .55rem; }
[data-theme=recess] .plist li.me { box-shadow: 0 0 0 3px var(--coral), 0 4px 0 3px var(--ink); }
[data-theme=recess] .plist li.empty { border: 3px dashed #d9cdb3; border-radius: 16px; opacity: 1; color: #b3a891; text-transform: uppercase; font-weight: 800; font-size: .85rem; }
[data-theme=recess] .plist li.empty .av { background: #f4ead6; }
[data-theme=recess] .plist .pts { font-weight: 900; }

/* Buttons */
[data-theme=recess] .btn { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); text-transform: uppercase; font-weight: 900; letter-spacing: .03em; }
[data-theme=recess] .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
[data-theme=recess] .btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
[data-theme=recess] .btn.accent { background: var(--coral); color: #fff; border-color: var(--ink); }
[data-theme=recess] .btn.ghost { background: transparent; color: var(--ink); }
[data-theme=recess] .btn.sm { box-shadow: 0 3px 0 var(--ink); border-width: 2px; }
[data-theme=recess] .btn.sm:hover { box-shadow: 0 5px 0 var(--ink); }
[data-theme=recess] .invite .btn { background: #fff; color: var(--ink); border-color: var(--ink); }

/* Inputs */
[data-theme=recess] input, [data-theme=recess] textarea { background: #fff; border: 3px solid var(--ink); font-weight: 800; font-size: 1.1rem; border-radius: 14px; }
[data-theme=recess] input::placeholder, [data-theme=recess] textarea::placeholder { color: #a39a8b; }
[data-theme=recess] input:focus, [data-theme=recess] textarea:focus { box-shadow: 0 0 0 4px rgba(255, 90, 54, .25); border-color: var(--ink); }
[data-theme=recess] .avatars button { width: auto; height: auto; background: #fff; border: 2.5px solid var(--line); border-radius: 11px; }
[data-theme=recess] .avatars button:hover { border-color: var(--ink); }
[data-theme=recess] .avatars button.on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--coral); }
[data-theme=recess] .char-big { background: radial-gradient(circle at 50% 38%, #fff, #fdeccb); box-shadow: 0 0 0 4px var(--coral), 0 0 0 7px var(--ink), 0 9px 0 5px var(--ink); }
[data-theme=recess] .step-art { background: var(--soft); box-shadow: 0 0 0 3px var(--ink); }
[data-theme=recess] .perks span { background: #fff; border: 2px solid var(--ink); }

/* Room chrome */
[data-theme=recess] .top { background: #fff3d9; border-bottom: 3px solid var(--ink); }
[data-theme=recess] .code-chip { background: #fff; border: 2px solid var(--ink); }
[data-theme=recess] .pill { background: #fff; border: 2px solid var(--ink); }
[data-theme=recess] .timer { height: 8px; background: #f2e5c9; }
[data-theme=recess] .timer .bar { background: var(--coral); }
[data-theme=recess] .hostline .bot { background: #fff; box-shadow: 0 0 0 3px var(--ink); }
[data-theme=recess] .reactbar { background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
[data-theme=recess] .stepper { border-color: var(--ink); }

/* ================= 3. Brutalist ================= */
[data-theme=brutal] {
  --bg: #f4f1e8; --paper: #fff; --ink: #000; --muted: #3d3d3d; --line: #000; --soft: #ffe600; --accent: #ff3d00;
  --radius: 0px; --pill: 0px; --bw: 3px; --shadow: 6px 6px 0 #000;
  --font-body: 'Space Mono', ui-monospace, monospace; --font-display: 'Archivo Black', Impact, sans-serif;
}
[data-theme=brutal] h1, [data-theme=brutal] h2, [data-theme=brutal] .prompt { text-transform: uppercase; letter-spacing: -.01em; }
[data-theme=brutal] .card, [data-theme=brutal] .gcard, [data-theme=brutal] .opt, [data-theme=brutal] .result, [data-theme=brutal] .entry,
[data-theme=brutal] .team, [data-theme=brutal] .hostline p, [data-theme=brutal] .aibox, [data-theme=brutal] .story, [data-theme=brutal] .canvas-wrap { border: 3px solid #000; border-radius: 0; }
[data-theme=brutal] .gcard:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 #000; }
[data-theme=brutal] .gcard.on { background: var(--c); color: #000; }
[data-theme=brutal] .gcard.on p { color: #000; }
[data-theme=brutal] .btn { box-shadow: 4px 4px 0 #000; text-transform: uppercase; }
[data-theme=brutal] .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
[data-theme=brutal] .btn:active { transform: translate(4px, 4px); box-shadow: none; }
[data-theme=brutal] .btn.accent, [data-theme=brutal] .btn.ghost { border-color: #000; }
[data-theme=brutal] .btn.accent { color: #000; }
[data-theme=brutal] input, [data-theme=brutal] textarea { border: 3px solid #000; border-radius: 0; }
[data-theme=brutal] .pill, [data-theme=brutal] .item, [data-theme=brutal] .code-chip, [data-theme=brutal] .gcard .meta span { border: 2px solid #000; border-radius: 0; }
[data-theme=brutal] .av, [data-theme=brutal] .gcard .emo, [data-theme=brutal] .avatars button { border-radius: 0; }
[data-theme=brutal] .top { border-bottom: 3px solid #000; }
[data-theme=brutal] .side { border-left: 3px solid #000; }
[data-theme=brutal] .hostline p { box-shadow: 5px 5px 0 #000; }

/* ================= 4. Notebook ================= */
[data-theme=notebook] {
  --bg: #fdfcf6; --paper: #fffef9; --ink: #1f2d55; --muted: #5c6787; --line: #b9c3dd; --soft: #fff3b0; --accent: #e4572e;
  --radius: 6px; --shadow: 2px 3px 0 rgba(31, 45, 85, .18);
  --font-body: 'Patrick Hand', 'Comic Sans MS', cursive; --font-display: 'Caveat', 'Patrick Hand', cursive;
  font-size: 18px;
}
[data-theme=notebook] body {
  background:
    linear-gradient(90deg, transparent 0 56px, rgba(228, 87, 46, .45) 56px 58px, transparent 58px),
    repeating-linear-gradient(transparent 0 31px, rgba(80, 130, 220, .22) 31px 32px), #fdfcf6;
  background-attachment: fixed;
}
[data-theme=notebook] h1, [data-theme=notebook] h2, [data-theme=notebook] .prompt, [data-theme=notebook] .brand { font-weight: 700; letter-spacing: 0; }
[data-theme=notebook] .hero h1 { font-size: clamp(3rem, 6.5vw, 5rem); }
[data-theme=notebook] .hero h1 em { background: linear-gradient(transparent 55%, #fff07a 55% 90%, transparent 90%); color: var(--ink); }
[data-theme=notebook] .card, [data-theme=notebook] .gcard, [data-theme=notebook] .opt, [data-theme=notebook] .result, [data-theme=notebook] .entry,
[data-theme=notebook] .team, [data-theme=notebook] .hostline p, [data-theme=notebook] .story, [data-theme=notebook] .btn, [data-theme=notebook] input, [data-theme=notebook] textarea {
  border: 2px solid var(--ink); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}
[data-theme=notebook] .gcard:nth-child(3n) { transform: rotate(-.8deg); }
[data-theme=notebook] .gcard:nth-child(3n+1) { transform: rotate(.6deg); }
[data-theme=notebook] .gcard:hover { transform: rotate(0) scale(1.02); }
[data-theme=notebook] .card { position: relative; }
[data-theme=notebook] .home .card::before { content: ''; position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 230, 120, .7); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
[data-theme=notebook] .btn { background: var(--paper); color: var(--ink); }
[data-theme=notebook] .btn.accent { background: var(--game); color: #fff; }
[data-theme=notebook] .btn:hover { transform: rotate(-1.5deg); box-shadow: 3px 3px 0 var(--ink); }
[data-theme=notebook] .invite, [data-theme=notebook] .product-card, [data-theme=notebook] .jobcard { background: #fff3b0; color: var(--ink); --on-ink: var(--ink); transform: rotate(-.6deg); box-shadow: 3px 4px 0 rgba(0,0,0,.12); }
[data-theme=notebook] .invite .btn { background: var(--ink); color: #fff; }

/* ================= 5. Terminal ================= */
[data-theme=terminal] {
  --bg: #050805; --paper: #0a130b; --ink: #3dff6e; --on-ink: #050805; --muted: #22a548; --line: #155a26; --soft: #0f2414;
  --accent: #ffcc33; --good: #3dff6e; --bad: #ff5f56; --red: #ff5f56; --blue: #4fc3ff; --tint: #0a130b;
  --radius: 0px; --pill: 0px; --bw: 1px; --shadow: 0 0 0 1px #155a26;
  --font-body: 'JetBrains Mono', ui-monospace, Menlo, monospace; --font-display: 'VT323', 'JetBrains Mono', monospace;
}
[data-theme=terminal] body { background: radial-gradient(ellipse at center, #0b1a0d 0%, #030503 100%) fixed; text-shadow: 0 0 6px rgba(61, 255, 110, .35); }
[data-theme=terminal] body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .25) 2px 4px); }
[data-theme=terminal] h1, [data-theme=terminal] h2, [data-theme=terminal] h3, [data-theme=terminal] .prompt, [data-theme=terminal] .banner { font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
[data-theme=terminal] .hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
[data-theme=terminal] .hero h1::before, [data-theme=terminal] .prompt::before { content: '> '; color: var(--accent); }
[data-theme=terminal] .prompt::after { content: '█'; animation: tblink 1s steps(1) infinite; margin-left: .15em; }
@keyframes tblink { 50% { opacity: 0; } }
[data-theme=terminal] .btn { text-transform: uppercase; letter-spacing: .08em; }
[data-theme=terminal] .btn::before { content: '['; margin-right: .4em; }
[data-theme=terminal] .btn::after { content: ']'; margin-left: .4em; }
[data-theme=terminal] .btn.ghost { color: var(--ink); }
[data-theme=terminal] .btn:hover { box-shadow: 0 0 14px var(--ink); }
[data-theme=terminal] .gcard .emo, [data-theme=terminal] .av, [data-theme=terminal] .avatars button { border-radius: 0; filter: grayscale(1) sepia(1) hue-rotate(70deg) saturate(4); }
[data-theme=terminal] .canvas-wrap, [data-theme=terminal] .gallery canvas { filter: invert(1) hue-rotate(180deg); }
[data-theme=terminal] .hostline .bot { background: var(--soft); box-shadow: inset 0 0 0 1px var(--ink); border-radius: 0; }
[data-theme=terminal] input, [data-theme=terminal] textarea { background: #000; caret-color: var(--ink); }

/* ================= 6. Aurora Glass ================= */
[data-theme=aurora] {
  --bg: #c7d2fe; --paper: rgba(255, 255, 255, .58); --ink: #141433; --muted: #4b4b72; --line: rgba(255, 255, 255, .75); --soft: rgba(255, 255, 255, .5);
  --accent: #6d28d9; --tint: #fff; --radius: 24px; --shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 40px -20px rgba(40, 20, 120, .35);
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif; --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
}
[data-theme=aurora] body { background: transparent; }
[data-theme=aurora] body::before {
  content: ''; position: fixed; inset: -20%; z-index: -1; filter: blur(60px);
  background: radial-gradient(circle at 20% 30%, #f0abfc 0, transparent 35%), radial-gradient(circle at 80% 20%, #5eead4 0, transparent 35%),
              radial-gradient(circle at 60% 80%, #a5b4fc 0, transparent 40%), radial-gradient(circle at 10% 90%, #fde68a 0, transparent 30%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: rotate(25deg) scale(1.15); } }
[data-theme=aurora] .card, [data-theme=aurora] .gcard, [data-theme=aurora] .opt, [data-theme=aurora] .result, [data-theme=aurora] .entry, [data-theme=aurora] .team,
[data-theme=aurora] .hostline p, [data-theme=aurora] .aibox, [data-theme=aurora] .top, [data-theme=aurora] .side, [data-theme=aurora] .reactbar, [data-theme=aurora] .story {
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .7);
}
[data-theme=aurora] .side { background: rgba(255, 255, 255, .3); }
[data-theme=aurora] h1 { font-weight: 800; letter-spacing: -.04em; }
[data-theme=aurora] .hero h1 em { background: linear-gradient(90deg, #6d28d9, #db2777, #0d9488); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme=aurora] .btn { background: linear-gradient(135deg, #312e81, #6d28d9); border-color: transparent; }
[data-theme=aurora] .btn.ghost { background: rgba(255, 255, 255, .5); color: var(--ink); border-color: rgba(255,255,255,.8); }
[data-theme=aurora] .invite, [data-theme=aurora] .product-card, [data-theme=aurora] .jobcard { background: linear-gradient(135deg, #312e81, #6d28d9 60%, #db2777); }
[data-theme=aurora] input, [data-theme=aurora] textarea { background: rgba(255, 255, 255, .7); }

/* ================= 7. Editorial ================= */
[data-theme=editorial] {
  --bg: #f2ede3; --paper: #f8f5ee; --ink: #111; --muted: #5a5650; --line: #1112; --soft: #e8e1d3; --accent: #d6281e;
  --radius: 2px; --pill: 2px; --bw: 1px; --shadow: none;
  --font-body: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif; --font-display: 'Instrument Serif', Georgia, serif;
}
[data-theme=editorial] h1, [data-theme=editorial] h2, [data-theme=editorial] .prompt, [data-theme=editorial] .banner, [data-theme=editorial] .brand { font-weight: 400; letter-spacing: -.01em; }
[data-theme=editorial] .hero h1 { font-size: clamp(3.2rem, 7vw, 6rem); line-height: .95; }
[data-theme=editorial] h1 em { font-style: italic; }
[data-theme=editorial] .prompt { font-size: clamp(2rem, 4.5vw, 3.4rem); }
[data-theme=editorial] .card, [data-theme=editorial] .result, [data-theme=editorial] .entry, [data-theme=editorial] .team, [data-theme=editorial] .hostline p, [data-theme=editorial] .story { border-top: 3px solid #111; border-bottom: 1px solid #111; }
[data-theme=editorial] .gcard { border: none; border-top: 1px solid #111; background: transparent; padding: .9rem 0; }
[data-theme=editorial] .gcard .emo { background: none; width: auto; justify-content: start; }
[data-theme=editorial] .gcard h3 { font-size: 1.6rem; font-weight: 400; }
[data-theme=editorial] .gcard.on { background: transparent; border-top: 4px solid var(--c); box-shadow: none; }
[data-theme=editorial] .gcard .meta span { background: none; padding: 0; margin-right: .6rem; text-transform: uppercase; letter-spacing: .08em; font-size: .65rem; }
[data-theme=editorial] .btn { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 600; }
[data-theme=editorial] .btn.xl { font-size: 1rem; }
[data-theme=editorial] .btn:hover { box-shadow: none; transform: none; background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme=editorial] .opt { border: 1px solid #111; }
[data-theme=editorial] input, [data-theme=editorial] textarea { border: none; border-bottom: 1px solid #111; border-radius: 0; background: transparent; }
[data-theme=editorial] .pill, [data-theme=editorial] .label { text-transform: uppercase; letter-spacing: .14em; }
[data-theme=editorial] .top { border-bottom: 3px double #111; }
[data-theme=editorial] .av { box-shadow: none; filter: grayscale(.4); }

/* ================= 8. Bubblegum ================= */
[data-theme=bubblegum] {
  --bg: #ffe3f1; --paper: #fff; --ink: #5a1e5e; --muted: #9b5a96; --line: #ffc2e2; --soft: #ffd6ec; --accent: #ff4fa3;
  --radius: 28px; --bw: 3px; --shadow: 0 6px 0 #f6b3d6;
  --font-body: 'Fredoka', 'Nunito', system-ui, sans-serif; --font-display: 'Fredoka', system-ui, sans-serif;
}
[data-theme=bubblegum] body { background: radial-gradient(#ffc2e2 3px, transparent 3.5px) 0 0 / 34px 34px, radial-gradient(#c7f0ff 3px, transparent 3.5px) 17px 17px / 34px 34px, #ffe3f1; background-attachment: fixed; }
[data-theme=bubblegum] h1, [data-theme=bubblegum] h2, [data-theme=bubblegum] .prompt { font-weight: 700; letter-spacing: -.01em; }
[data-theme=bubblegum] .hero h1 em { color: #fff; -webkit-text-stroke: 3px var(--accent); paint-order: stroke fill; text-shadow: 4px 4px 0 #7ad7ff; }
[data-theme=bubblegum] .btn { box-shadow: 0 5px 0 #3a0f3d; }
[data-theme=bubblegum] .btn.accent { box-shadow: 0 5px 0 color-mix(in srgb, var(--game) 60%, #000); }
[data-theme=bubblegum] .btn.ghost { box-shadow: 0 5px 0 var(--line); background: #fff; }
[data-theme=bubblegum] .btn:hover { transform: translateY(-2px); }
[data-theme=bubblegum] .btn:active { transform: translateY(5px); box-shadow: none; }
[data-theme=bubblegum] .gcard, [data-theme=bubblegum] .opt, [data-theme=bubblegum] .card { border: 3px solid var(--line); }
[data-theme=bubblegum] .gcard { box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 35%, #ffd6ec); }
[data-theme=bubblegum] .gcard:hover { animation: jelly .5s; }
@keyframes jelly { 30% { transform: scale(1.06, .94); } 50% { transform: scale(.96, 1.04); } 70% { transform: scale(1.02, .98); } }
[data-theme=bubblegum] .gcard .emo { border-radius: 50%; }
[data-theme=bubblegum] .invite, [data-theme=bubblegum] .product-card, [data-theme=bubblegum] .jobcard { background: linear-gradient(135deg, #ff4fa3, #b14dff); color: #fff; --on-ink: #fff; }
[data-theme=bubblegum] .invite .btn { color: #b14dff; }
[data-theme=bubblegum] input, [data-theme=bubblegum] textarea { border-width: 3px; border-radius: 20px; }

/* ================= 9. Retro Desktop ================= */
[data-theme=retro] {
  --bg: #008080; --paper: #c0c0c0; --ink: #000; --on-ink: #fff; --muted: #404040; --line: #808080; --soft: #d4d0c8; --accent: #000080; --tint: #e8e8e8;
  --radius: 0px; --pill: 0px; --bw: 0px;
  --bevel: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  --sunk: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
  --shadow: var(--bevel);
  --font-body: Tahoma, Verdana, 'Segoe UI', sans-serif; --font-display: 'Silkscreen', Tahoma, sans-serif;
  font-size: 15px;
}
[data-theme=retro] body { background: #008080; }
[data-theme=retro] .hero h1, [data-theme=retro] .showcase h2, [data-theme=retro] .lobby-head h2 { color: #fff; text-shadow: 2px 2px 0 #000; }
[data-theme=retro] .hero p.lede { color: #e0ffff; }
[data-theme=retro] .hero h1 em { color: #ffff00; }
[data-theme=retro] .home .brand, [data-theme=retro] .home > * > .muted { color: #fff; }
[data-theme=retro] h1, [data-theme=retro] h2, [data-theme=retro] .prompt { font-weight: 700; letter-spacing: 0; }
[data-theme=retro] .card, [data-theme=retro] .gcard, [data-theme=retro] .result, [data-theme=retro] .entry, [data-theme=retro] .team, [data-theme=retro] .aibox, [data-theme=retro] .story, [data-theme=retro] .hostline p { box-shadow: var(--bevel); border-radius: 0; padding-top: 2.1rem; position: relative; border: none; }
[data-theme=retro] .card::before, [data-theme=retro] .gcard::before, [data-theme=retro] .result::before, [data-theme=retro] .entry::before, [data-theme=retro] .team::before, [data-theme=retro] .aibox::before, [data-theme=retro] .story::before, [data-theme=retro] .hostline p::before {
  content: '▪ ▪ ▪'; position: absolute; top: 3px; left: 3px; right: 3px; height: 1.35rem; background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff; font-size: .7rem; letter-spacing: .1em; padding: .15rem .4rem; text-align: right; font-family: Tahoma, sans-serif;
}
[data-theme=retro] .gcard::before { background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, #fff)); }
[data-theme=retro] .gcard.on { outline: 2px dotted #000; outline-offset: -6px; }
[data-theme=retro] .btn { background: #c0c0c0; color: #000; box-shadow: var(--bevel); font-weight: 400; }
[data-theme=retro] .btn:hover { transform: none; box-shadow: var(--bevel); outline: 1px dotted #000; outline-offset: -5px; }
[data-theme=retro] .btn:active { box-shadow: var(--sunk); }
[data-theme=retro] .btn.accent { background: #c0c0c0; color: #000; font-weight: 700; box-shadow: var(--bevel), 0 0 0 1px #000; }
[data-theme=retro] input, [data-theme=retro] textarea { border: none; background: #fff; box-shadow: var(--sunk); border-radius: 0; }
[data-theme=retro] .opt { border: none; box-shadow: var(--bevel); }
[data-theme=retro] .opt.on, [data-theme=retro] .opt.right, [data-theme=retro] .opt.wrong { box-shadow: var(--sunk); }
[data-theme=retro] .top { box-shadow: var(--bevel); border: none; }
[data-theme=retro] .side { background: #c0c0c0; box-shadow: var(--bevel); border: none; }
[data-theme=retro] .pill, [data-theme=retro] .item, [data-theme=retro] .code-chip, [data-theme=retro] .progress, [data-theme=retro] .gcard .meta span { border-radius: 0; box-shadow: var(--sunk); background: #fff; }
[data-theme=retro] .av, [data-theme=retro] .gcard .emo, [data-theme=retro] .avatars button { border-radius: 0; }
[data-theme=retro] .timer { height: 14px; box-shadow: var(--sunk); background: #fff; }
[data-theme=retro] .timer .bar { background: repeating-linear-gradient(90deg, #000080 0 10px, transparent 10px 12px); }
[data-theme=retro] .main .label, [data-theme=retro] .main .muted { color: #fff; }
[data-theme=retro] .main .card .label, [data-theme=retro] .main .card .muted, [data-theme=retro] .main .result .muted, [data-theme=retro] .main .entry .muted { color: var(--muted); }
[data-theme=retro] .main .prompt, [data-theme=retro] .main .ghead { color: #fff; text-shadow: 1px 1px 0 #000; }
[data-theme=retro] .invite, [data-theme=retro] .product-card, [data-theme=retro] .jobcard { background: #000080; box-shadow: var(--bevel); }

/* ================= 10. Soft Clay ================= */
[data-theme=clay] {
  --bg: #e6ebf2; --paper: #e6ebf2; --ink: #2b3445; --muted: #6b7690; --line: #d3dae6; --soft: #dde3ec; --accent: #4f7cff; --tint: #f3f6fa;
  --radius: 26px; --bw: 0px;
  --up: 8px 8px 18px #c3cad6, -8px -8px 18px #ffffff; --down: inset 5px 5px 10px #c3cad6, inset -5px -5px 10px #ffffff;
  --shadow: var(--up);
  --font-body: 'Nunito', system-ui, sans-serif; --font-display: 'Nunito', system-ui, sans-serif;
}
[data-theme=clay] h1, [data-theme=clay] h2, [data-theme=clay] .prompt, [data-theme=clay] .brand { font-weight: 900; letter-spacing: -.02em; }
[data-theme=clay] .btn { background: var(--paper); color: var(--ink); box-shadow: var(--up); }
[data-theme=clay] .btn:hover { transform: translateY(-1px); box-shadow: 10px 10px 22px #c3cad6, -10px -10px 22px #fff; }
[data-theme=clay] .btn:active { box-shadow: var(--down); transform: none; }
[data-theme=clay] .btn.accent { background: linear-gradient(145deg, color-mix(in srgb, var(--game) 85%, #fff), var(--game)); color: #fff; box-shadow: 6px 6px 14px color-mix(in srgb, var(--game) 45%, #c3cad6), -6px -6px 14px #fff; }
[data-theme=clay] .btn.ghost { background: var(--paper); }
[data-theme=clay] input, [data-theme=clay] textarea, [data-theme=clay] .progress, [data-theme=clay] .code-chip, [data-theme=clay] .stepper, [data-theme=clay] .locked { border: none; background: var(--paper); box-shadow: var(--down); }
[data-theme=clay] .opt { border: none; box-shadow: var(--up); }
[data-theme=clay] .opt.on, [data-theme=clay] .opt.right, [data-theme=clay] .opt.wrong { box-shadow: var(--down); }
[data-theme=clay] .opt.on { color: var(--game); }
[data-theme=clay] .gcard { border: none; }
[data-theme=clay] .gcard.on { box-shadow: var(--down); }
[data-theme=clay] .gcard .emo, [data-theme=clay] .av, [data-theme=clay] .avatars button { box-shadow: var(--up); background: var(--paper); }
[data-theme=clay] .avatars button.on { box-shadow: var(--down); border-color: transparent; }
[data-theme=clay] .pill, [data-theme=clay] .item, [data-theme=clay] .gcard .meta span { background: var(--paper); box-shadow: 3px 3px 6px #c3cad6, -3px -3px 6px #fff; }
[data-theme=clay] .top, [data-theme=clay] .side { border: none; background: var(--paper); }
[data-theme=clay] .side { box-shadow: inset 8px 0 16px -10px #c3cad6; }
[data-theme=clay] .invite, [data-theme=clay] .product-card, [data-theme=clay] .jobcard { background: linear-gradient(145deg, #5d87ff, #3d63e0); color: #fff; --on-ink: #fff; box-shadow: var(--up); }
[data-theme=clay] .invite .btn { color: #3d63e0; background: #fff; }

/* Shared: text shown on dark --ink panels */
.on-ink-muted { color: color-mix(in srgb, var(--on-ink) 70%, transparent) !important; }
[data-theme=recess] .dock { background: #fff; border-top: 3px solid var(--ink); box-shadow: none; }
[data-theme=recess] .dock-react { background: #fff3d9; border: 2px solid var(--ink); }
[data-theme=recess] .dock-react button:hover { background: #fff; }
[data-theme=recess] .dock-go { font-size: 1.1rem; }
[data-theme=recess] .dock-skip { background: var(--butter); }
[data-theme=recess] .tut { border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 30px 80px -30px rgba(0, 0, 0, .5); }
[data-theme=recess] .tut-opt { border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
[data-theme=recess] .tut-opt.on, [data-theme=recess] .tut-opt.right, [data-theme=recess] .tut-opt.wrong { border-color: var(--ink); }
[data-theme=recess] .tut-opt.right { box-shadow: 0 0 0 3px var(--good), 0 3px 0 3px var(--ink); }
[data-theme=recess] .tut-opt.wrong { box-shadow: 0 0 0 3px var(--bad), 0 3px 0 3px var(--ink); }
[data-theme=recess] .tut-head h2 { color: var(--coral); text-transform: uppercase; }
[data-theme=recess] .tut-x { border-color: var(--ink); color: var(--ink); }
[data-theme=recess] .gcard .learn { color: var(--ink); background: color-mix(in srgb, var(--c) 18%, #fff); }
[data-theme=recess] .jobcard.revealed .label, [data-theme=recess] .jobcard.revealed .muted { color: color-mix(in srgb, var(--ink) 70%, transparent); }
