/* Tinystack waitlist page · theusefulmedia.com/stack · 18 Nov 2026 */
:root {
  --paper: #F5F0E6; --paper2: #EDE6D8; --card: #FBF8F2; --line: #DDD3C2;
  --ink: #1E1B26; --soft: #4F4A57; --muted: #6E6777;
  --green: #2F6B4F; --green2: #24553E; --on-green: #FFFFFF;
  --hl: #E7D36A; --err: #B3263E; --ok: #24553E;
  --c-read: #DCE8DF; --c-make: #F2DDE2; --c-mind: #DEE4F2; --c-music: #E9DFF3;
  --c-move: #D9EEEE; --c-home: #F2E8C6; --c-calm: #E1E8F3; --c-people: #E8E1D3; --c-own: #ECE6DA;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 28px; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000; --paper2: #0E0E10; --card: #141416; --line: #2A2A2E;
    --ink: #F3EEE4; --soft: #CFC8BB; --muted: #A79FB0;
    --green: #6FB592; --green2: #8CCBA9; --on-green: #12241B;
    --err: #FF8A9C; --ok: #8CCBA9;
    --c-read: #2C3A31; --c-make: #3D2C33; --c-mind: #2C3242; --c-music: #362D41;
    --c-move: #273B3B; --c-home: #3D3624; --c-calm: #2B3340; --c-people: #37322A; --c-own: #34303A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--green); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 22px; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 12px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--green); color: var(--on-green); font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background .18s; white-space: nowrap; }
.btn:hover { background: var(--green2); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--paper2); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-big { min-height: 60px; font-size: 18px; padding: 0 28px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 650; font-size: 21px; }
.logo svg { width: 30px; height: 30px; }
.logo .l1 { fill: var(--green); } .logo .l2 { fill: var(--hl); } .logo .l3 { fill: var(--ink); }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--soft); text-decoration: none; font-size: 15px; }
.top-nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .top-nav { display: none; } .top .btn-small { margin-left: auto; } }

section { padding: clamp(44px, 6vw, 76px) clamp(16px, 5vw, 48px); max-width: 1180px; margin: 0 auto; }
.sec-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.sub { color: var(--soft); font-size: 18px; margin-top: 12px; }
.hint { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: clamp(32px, 6vw, 72px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; color: var(--soft); margin-bottom: 18px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(42px, 6.6vw, 78px); line-height: 1.02; }
.hero h1 em { font-style: italic; background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 90%, transparent 90%); padding: 0 .06em; }
@media (prefers-color-scheme: dark) { .hero h1 em { background: none; color: var(--hl); } }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--soft); margin: 20px 0 26px; max-width: 34em; }
.fine { font-size: 14px; color: var(--muted); margin-top: 12px; max-width: 36em; }
.hero-try { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 600; text-decoration: none; }
.hero-try:hover { text-decoration: underline; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 8px; } }

/* Signup */
.signup-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 520px; }
.signup-form input[type=email] { flex: 1 1 220px; min-width: 0; height: 54px; border-radius: 999px; border: 2px solid var(--line); background: var(--card);
  color: var(--ink); padding: 0 20px; font: inherit; font-size: 16px; }
.signup-form input[type=email]:focus { outline: none; border-color: var(--green); }
.signup-form .btn { height: 54px; flex: 0 0 auto; }
.signup-form.has-error input[type=email] { border-color: var(--err); }
.signup-form.is-done .btn { background: var(--ok); }
.signup-msg { font-size: 14.5px; margin-top: 10px; max-width: 520px; }
.signup-msg:empty { display: none; }
.signup-msg.is-error { color: var(--err); }
.signup-msg.is-ok { color: var(--ok); }
.signup-msg button { margin: 8px 8px 0 0; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
@media (max-width: 480px) { .signup-form .btn { flex: 1 1 100%; } }

/* Hero art */
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 520px; }
.phone { position: relative; z-index: 2; width: 290px; height: 560px; border-radius: 48px; background: var(--ink); padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(30, 27, 38, .45); transform: rotate(-3deg); }
@media (prefers-color-scheme: dark) { .phone { background: #0F0D14; box-shadow: 0 0 0 1.5px var(--line), 0 40px 80px -30px #000; } }
.phone-notch { position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 2; }
.phone-screen { height: 100%; border-radius: 38px; background: #F5F0E6; color: #1E1B26; padding: 62px 16px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ph-time { font: 600 13px var(--sans); color: #6E6777; text-align: center; margin-bottom: 4px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.35; opacity: 0; animation: pop .5s var(--ease) forwards; }
.bubble.me { align-self: flex-end; background: #2F6B4F; color: #fff; border-bottom-right-radius: 6px; animation-delay: .3s; }
.bubble.ai { align-self: flex-start; background: #FBF8F2; box-shadow: inset 0 0 0 1.5px #DDD3C2; border-bottom-left-radius: 6px; animation-delay: 1.1s; }
.spark { color: #2F6B4F; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.mini-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mini { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 18px; font-size: 15px; color: #1E1B26; }
.mini span { font-size: 22px; }
.mini i { white-space: nowrap; font-style: normal; font-size: 13px; color: #4F4A57; font-weight: 600; }
.mini-stack .mini { opacity: 0; animation: drop .55s var(--ease) forwards; }
.mini-stack .mini:nth-child(1) { animation-delay: 1.8s; } .mini-stack .mini:nth-child(2) { animation-delay: 2.1s; } .mini-stack .mini:nth-child(3) { animation-delay: 2.4s; }
@keyframes drop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
.ph-start { margin-top: auto; text-align: center; background: #1E1B26; color: #F5F0E6; border-radius: 999px; padding: 13px; font-weight: 650; font-size: 15px; opacity: 0; animation: pop .5s var(--ease) 2.9s forwards; }
.c-read { background: #DCE8DF; } .c-make { background: #F2DDE2; } .c-mind { background: #DEE4F2; } .c-music { background: #E9DFF3; }
.c-move { background: #D9EEEE; } .c-home { background: #F2E8C6; } .c-calm { background: #E1E8F3; } .c-people { background: #E8E1D3; } .c-own { background: #ECE6DA; }
.pile { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.obj { position: absolute; width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; font-size: 46px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); animation: float 6s ease-in-out infinite; }
.o1 { left: 2%; top: 14%; transform: rotate(-10deg); }
.o2 { right: 0; top: 40%; transform: rotate(8deg); animation-delay: -2s; }
.o3 { left: 8%; bottom: 8%; transform: rotate(5deg); animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -10px; } }
@media (max-width: 520px) { .hero-art { min-height: 480px; } .phone { width: 250px; height: 480px; border-radius: 40px; } .phone-screen { border-radius: 30px; padding-top: 54px; } .mini { padding: 9px 12px; } .bubble { font-size: 13.5px; } .obj { width: 70px; height: 70px; font-size: 34px; border-radius: 22px; } }

/* Strip */
.strip { max-width: none; background: var(--ink); color: var(--paper); padding: 26px clamp(16px, 5vw, 48px); text-align: center; }
.strip p { max-width: 820px; margin: 0 auto; font-size: 17px; }
.strip b { font-family: var(--serif); font-weight: 600; color: var(--hl); }
@media (prefers-color-scheme: dark) { .strip { background: var(--paper2); color: var(--ink); } }

/* Builder */
.builder { background: var(--card); border-radius: 36px; box-shadow: inset 0 0 0 2px var(--line); padding: clamp(20px, 4vw, 40px); max-width: 980px; margin: 0 auto; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); font-weight: 600; font-size: 14.5px; }
.steps li .lbl { font-style: normal; }
.steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper2); font-size: 13px; }
.steps li.on { color: var(--ink); }
.steps li.on span { background: var(--green); color: var(--on-green); }
.steps li.done span { background: var(--hl); color: #1E1B26; }
.pane { animation: pop .35s var(--ease); }
.q { border: 0; padding: 0; margin: 0 0 24px; }
.q legend { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .cat-row button { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 600; font-size: 15.5px; cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s; }
.chips button:hover, .cat-row button:hover { box-shadow: inset 0 0 0 2px var(--green); }
.chips button[aria-pressed=true], .cat-row button[aria-selected=true] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chips button:active { transform: scale(.96); }
.pane-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.sticky-foot { position: sticky; bottom: 0; z-index: 3; margin: 20px calc(-1 * clamp(20px, 4vw, 40px)) calc(-1 * clamp(20px, 4vw, 40px)); padding: 14px clamp(20px, 4vw, 40px);
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-radius: 0 0 36px 36px; justify-content: space-between; }

.pick-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.pick-head h3 { font-size: 26px; margin-bottom: 6px; }
.picked-count { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 15px; }
.picked-count b { font-family: var(--serif); font-size: 20px; }
.picked-count.ready { background: var(--hl); color: #1E1B26; }

.row-wrap { position: relative; display: flex; align-items: center; gap: 6px; }
.scroll-row { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; cursor: grab; flex: 1; }
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row.dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.scroll-row.dragging * { pointer-events: none; }
.cat-row button { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.chip-ico { width: 22px; height: 22px; }
.row-arrow { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.row-arrow:hover { box-shadow: inset 0 0 0 2px var(--green); }
.row-arrow[disabled] { opacity: .3; cursor: default; }
@media (hover: none) { .row-arrow { display: none; } }

.search { margin: 12px 0 16px; }
.search input { width: 100%; height: 48px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); padding: 0 18px; font: inherit; font-size: 16px; }
.search input:focus { outline: none; border-color: var(--green); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.act { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px; border: 0; border-radius: 22px;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; min-height: 112px; color: var(--ink); }
.act:hover { transform: translateY(-2px); }
.act .e { font-size: 28px; line-height: 1; }
.act .n { font-weight: 650; font-size: 15.5px; line-height: 1.25; }
.act .m { font-size: 12.5px; color: var(--soft); }
.act[aria-pressed=true] { box-shadow: inset 0 0 0 3px var(--ink); }
.act[aria-pressed=true]::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 13px; font-weight: 700; animation: pop .25s var(--ease); }
.cell { position: relative; display: flex; }
.cell .act { flex: 1; width: 100%; }
.cell .rm { position: absolute; bottom: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); cursor: pointer; font-size: 15px; display: grid; place-items: center; }
.cell .rm:hover { background: color-mix(in srgb, var(--err) 25%, transparent); }
.act.c-read { background: var(--c-read); } .act.c-make { background: var(--c-make); } .act.c-mind { background: var(--c-mind); } .act.c-music { background: var(--c-music); }
.act.c-move { background: var(--c-move); } .act.c-home { background: var(--c-home); } .act.c-calm { background: var(--c-calm); } .act.c-people { background: var(--c-people); } .act.c-own { background: var(--c-own); }
.empty-search { text-align: center; color: var(--muted); padding: 20px; }

.custom { margin-top: 18px; padding: 18px; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); border-style: dashed; }
.custom-title { font-family: var(--serif); font-weight: 600; font-size: 20px; margin-bottom: 4px; }
.custom-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.custom-row input, .custom-row select { height: 48px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); padding: 0 14px; font: inherit; font-size: 16px; }
.custom-row input { flex: 1 1 200px; min-width: 0; }
.custom-row select { flex: 0 1 auto; cursor: pointer; }
.custom-row input:focus, .custom-row select:focus { outline: none; border-color: var(--green); }
.custom-msg { font-size: 14px; margin-top: 8px; color: var(--err); }
.custom-msg:empty { display: none; }
.custom-msg.ok { color: var(--ok); }

/* Result */
.result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 820px) { .result { grid-template-columns: minmax(0, 1fr); } }
.btn-big { white-space: normal; text-align: center; }
.stack-card { background: var(--ink); color: #F5F0E6; border-radius: 32px; padding: 28px 24px 22px; }
@media (prefers-color-scheme: dark) { .stack-card { background: #F5F0E6; color: #1E1B26; } .stack-card .sc-why, .stack-card .sc-foot { color: #4F4A57; } .stack-card .sc-kicker { color: #2F6B4F; } }
.sc-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl); }
.sc-title { font-size: 30px; margin: 8px 0 18px; }
.sc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sc-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 14px; border-radius: 20px; color: #1E1B26; animation: drop .45s var(--ease) both; }
.sc-list li:nth-child(2) { animation-delay: .08s; } .sc-list li:nth-child(3) { animation-delay: .16s; } .sc-list li:nth-child(4) { animation-delay: .24s; }
.sc-list .e { font-size: 28px; text-align: center; }
.sc-list .n { font-weight: 700; font-size: 16.5px; display: block; }
.sc-list .w { font-size: 13px; color: #4F4A57; display: block; }
.sc-list .t { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.sc-list .t small { font-family: var(--sans); font-size: 12px; font-weight: 600; }
.sc-why { font-size: 14.5px; color: #CFC8BB; margin-top: 16px; }
.sc-foot { font-size: 12px; color: #A79FB0; margin-top: 16px; letter-spacing: .02em; }
.result-side { display: flex; flex-direction: column; gap: 14px; }
.result-side .btn-big { width: 100%; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-actions .btn { min-height: 44px; font-size: 15px; padding: 0 16px; }
.save-box { margin-top: 6px; padding: 20px; border-radius: 24px; background: var(--paper); }
.save-title { font-family: var(--serif); font-weight: 600; font-size: 20px; margin-bottom: 6px; }
.save-box .signup { margin-top: 14px; }

/* How */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }
.how-card { background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--line); padding: 18px 22px 26px; }
.how-card .num { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--green); margin-top: 18px; }
.how-card h3 { font-size: 26px; margin: 2px 0 8px; }
.how-card p:last-child { color: var(--soft); }
.how-art { height: 190px; border-radius: 22px; background: var(--paper); display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px; overflow: hidden; }
.art-ask .bubble { opacity: 1; animation: none; }
.tri { display: flex; gap: 8px; }
.tri span { flex: 1; height: 62px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; font-size: 28px; }
.art-stack .mini { padding: 9px 12px; font-size: 14px; }
.art-lock { background: #1E1B26; color: #F5F0E6; align-items: center; }
.lock-time { font-family: var(--serif); font-size: 52px; font-weight: 500; line-height: 1; }
.live { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 12px 14px; border-radius: 22px; background: rgba(245, 240, 230, .12); font-size: 14.5px; }
.live span { font-size: 20px; } .live i { font-style: normal; font-weight: 700; color: #E7D36A; }

/* AI row */
.ai-row { padding-bottom: 12px; }
.ai-card { flex: 0 0 250px; scroll-snap-align: start; background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--line); padding: 22px; }
.ai-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: var(--paper); font-size: 26px; margin-bottom: 16px; }
.ai-card h3 { font-size: 20px; margin-bottom: 6px; }
.ai-card p { color: var(--soft); font-size: 15.5px; }

/* Modes */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .mode-grid { grid-template-columns: 1fr; } }
.mode { background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--line); padding: 18px 22px 26px; }
.mode h3 { font-size: 26px; margin: 18px 0 8px; display: flex; align-items: center; gap: 10px; }
.mode .tag { font: 700 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--hl); color: #1E1B26; }
.mode p { color: var(--soft); }
.mode-art { position: relative; height: 170px; border-radius: 22px; background: var(--paper); overflow: hidden; }
.mode-art .you { position: absolute; left: 22%; bottom: 26px; font-size: 64px; }
.room { position: absolute; right: 18px; top: 20px; bottom: 20px; width: 38%; border-radius: 16px; background: var(--paper2); box-shadow: inset 0 0 0 2px var(--line); }
.door { position: absolute; left: -2px; top: 30%; width: 4px; height: 40%; background: var(--card); }
.ph-down { position: absolute; left: 50%; top: 50%; width: 46px; height: 22px; margin: -11px 0 0 -23px; border-radius: 8px; background: var(--ink); }
.ph-down::after { content: "z z"; position: absolute; top: -30px; left: 52px; font: italic 600 15px var(--serif); color: var(--muted); }
.stand { position: absolute; right: 22%; bottom: 22px; width: 50px; height: 92px; border-radius: 12px; background: var(--ink); transform: rotate(-6deg); }
.stand::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 6px; height: 16px; margin-left: -3px; background: var(--muted); }
.rec { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #E2445C; animation: pulse 1.4s infinite; }

/* Science */
.sci-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .sci-grid { grid-template-columns: 1fr; } }
.sci { background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--line); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.sci .big { font-family: var(--serif); font-size: 64px; font-weight: 600; line-height: 1; color: var(--green); }
.sci .big small { font-size: 22px; color: var(--soft); }
.sci p:not(.big) { color: var(--soft); }
.sci a { margin-top: auto; font-weight: 600; font-size: 14.5px; }

/* Founder */
.founder { max-width: 880px; }
.note { margin: 0; background: var(--card); border-radius: 36px; box-shadow: inset 0 0 0 2px var(--line); padding: clamp(26px, 5vw, 48px); }
.note blockquote { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; font-weight: 500; }
.note figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--soft); font-size: 15.5px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px; flex: 0 0 auto; }

/* Price */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
.plan { background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--line); padding: 26px; }
.plan.hot { box-shadow: inset 0 0 0 3px var(--green); }
.plan.founding { background: var(--hl); color: #1E1B26; box-shadow: none; }
.plan.founding .amt small, .plan.founding li { color: #1E1B26; }
.plan h3 { font-size: 22px; }
.plan .amt { font-family: var(--serif); font-size: 44px; font-weight: 600; margin: 8px 0 14px; }
.plan .amt small { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--soft); }
.plan ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; color: var(--soft); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan.founding li::before { color: #1E1B26; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--card); border-radius: 22px; box-shadow: inset 0 0 0 2px var(--line); margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 650; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 400; color: var(--green); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 22px 22px; color: var(--soft); }

/* Final */
.final { text-align: center; max-width: 760px; }
.final .signup-form, .final .signup-msg { margin-left: auto; margin-right: auto; }
.final .sub { margin-bottom: 24px; }
.final .fine { margin: 14px auto 0; }
.final-art { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.final-art span { width: 58px; height: 58px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; font-size: 28px; animation: float 5s ease-in-out infinite; }
.final-art span:nth-child(2) { animation-delay: -1s; } .final-art span:nth-child(3) { animation-delay: -2s; } .final-art span:nth-child(4) { animation-delay: -3s; } .final-art span:nth-child(5) { animation-delay: -4s; }
.foot { text-align: center; padding: 30px 16px 48px; color: var(--muted); font-size: 14px; }

/* Runner */
.runner { position: fixed; inset: 0; z-index: 100; background: #1E1B26; color: #F5F0E6; display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.runner[hidden] { display: none; }
.runner > div { width: min(520px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.runner > div[hidden] { display: none; }
.runner .eyebrow { color: #E7D36A; }
.runner h2 { font-size: clamp(28px, 5vw, 38px); }
.runner .sub { color: #CFC8BB; }
.runner .btn-ghost { color: #F5F0E6; box-shadow: inset 0 0 0 2px #3A3545; }
.runner .btn-ghost:hover { background: #2A2633; }
.runner .btn { background: #6FB592; color: #12241B; }
.runner .btn.btn-ghost { background: transparent; color: #F5F0E6; }
.runner .link-btn { color: #CFC8BB; }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: 100%; }
.scale button { aspect-ratio: 1; border-radius: 14px; border: 0; background: #2A2633; color: #F5F0E6; font-family: var(--serif); font-size: 18px; font-weight: 600; cursor: pointer; }
.scale button:hover { background: #3A3545; }
.scale button[aria-pressed=true] { background: #E7D36A; color: #1E1B26; }
.scale-ends { display: flex; justify-content: space-between; width: 100%; font-size: 13px; color: #A79FB0; margin-top: -6px; }
.run-step { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: #E7D36A; }
.run-ring { position: relative; width: min(300px, 72vw); aspect-ratio: 1; }
.run-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.run-ring circle { fill: none; stroke-width: 10; }
.run-ring .trk { stroke: #2A2633; }
.run-ring .bar { stroke: #6FB592; stroke-linecap: round; stroke-dasharray: 565.49; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.run-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.run-emoji { font-size: 56px; }
.run-left { font-family: var(--serif); font-size: clamp(44px, 10vw, 60px); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.run-next { color: #A79FB0; }
.run-ctrl { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sound { background: none; border: 0; color: #A79FB0; cursor: pointer; font-size: 14px; }
.done-result { font-family: var(--serif); font-size: 22px; color: #E7D36A; min-height: 1.3em; }

/* Tip and toast */
.tip { position: fixed; z-index: 120; max-width: 300px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.45; padding: 12px 14px; border-radius: 14px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.4); }
.tip[hidden], .toast[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; width: max-content; max-width: calc(100vw - 32px); text-align: center; z-index: 130; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; animation: pop .25s var(--ease); }

@media (max-width: 560px) {
  .steps { gap: 6px; margin-bottom: 20px; }
  .steps li { padding: 6px; font-size: 14px; }
  .steps li.on { padding-right: 12px; }
  .steps li:not(.on) .lbl { display: none; }
  .pick-head { flex-direction: column; gap: 10px; }
  .pick-head h3 { font-size: 23px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .act { min-height: 100px; padding: 12px; }
  .q legend { font-size: 20px; }
  .chips button { padding: 0 14px; font-size: 15px; }
  .stack-card { padding: 22px 16px 18px; }
  .sc-title { font-size: 26px; }
  .sc-list li { grid-template-columns: 36px 1fr auto; padding: 12px; }
}

/* 3D icons */
.e img, .mini span img, .tri img, .live img, .final-art img, .ai-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.act .e { width: 40px; height: 40px; }
.sc-list .e { width: 40px; height: 40px; justify-self: center; }
.mini span { width: 30px; height: 30px; display: block; }
.tri span img { width: 40px; height: 40px; }
.live span { width: 26px; height: 26px; display: block; }
.final-art img { width: 34px; height: 34px; }
.ai-ico img { width: 34px; height: 34px; }
.obj img { width: 64%; height: 64%; object-fit: contain; }
.mode-art .you img { width: 84px; height: 84px; }
.run-emoji { display: block; }
.run-ico, .run-ico img { width: 100%; height: 100%; display: block; }
.credit { font-size: 12.5px; margin-top: 6px; }
.credit a { color: inherit; }

/* Hero flip: brain rot feed vs brain stack */
.hero-art { flex-direction: column; }
.phone-screen { position: relative; }
.calm { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.feed { position: absolute; inset: 0; border-radius: inherit; background: #0E0C12; overflow: hidden; z-index: 3; transition: opacity .5s ease, transform .6s var(--ease), filter .5s; }
.feed-top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; padding: 52px 14px 14px; display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(#0E0C12 60%, transparent); color: #fff; font-size: 12px; font-weight: 700; }
.feed-meter { background: rgba(255,255,255,.12); padding: 5px 9px; border-radius: 999px; font-weight: 600; }
.feed-meter b { color: #FF8A9C; font-variant-numeric: tabular-nums; }
.feed-track { display: flex; flex-direction: column; gap: 8px; padding: 0 10px; animation: doom 9s linear infinite; }
@keyframes doom { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 4px)); } }
.reel { position: relative; height: 168px; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; }
.reel p { font-weight: 700; font-size: 14px; line-height: 1.25; position: relative; z-index: 1; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.reel i { font-style: normal; font-size: 11.5px; opacity: .85; margin-top: 4px; position: relative; z-index: 1; }
.reel-ico { position: absolute; top: 14px; right: 12px; width: 54px; height: 54px; }
.reel-ico img { width: 100%; height: 100%; }
.r1 { background: linear-gradient(160deg, #7B2FF7, #F107A3); } .r2 { background: linear-gradient(160deg, #FF5F6D, #FFC371); }
.r3 { background: linear-gradient(160deg, #00C6FF, #0072FF); } .r4 { background: linear-gradient(160deg, #11998E, #38EF7D); }
.r5 { background: linear-gradient(160deg, #FC466B, #3F5EFB); } .r6 { background: linear-gradient(160deg, #F7971E, #FFD200); }
.phone-screen:not(.is-rot) .feed { opacity: 0; transform: scale(.92) rotateX(18deg); filter: blur(6px); pointer-events: none; }
.phone-screen.is-rot .calm > * { animation: none !important; opacity: 0; }
.phone { transition: transform .6s var(--ease); perspective: 900px; }
.phone.flip { animation: flipPhone .7s var(--ease); }
@keyframes flipPhone { 40% { transform: rotate(-3deg) rotateY(12deg) scale(.97); } }

.swap { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); width: 300px; }
.swap button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; border: 0; background: none; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--soft); transition: color .25s; }
.swap button[aria-pressed=true] { color: var(--paper); }
.swap-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease); }
.swap[data-on=stack] .swap-thumb { transform: translateX(100%); background: var(--green); }
.swap[data-on=stack] button[aria-pressed=true] { color: var(--on-green); }
@media (max-width: 520px) { .reel { height: 130px; } .swap { width: 280px; } }

/* Screen time calculator */
.calc-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; max-width: 1040px; margin: 0 auto; border-radius: 36px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); background: var(--card); }
@media (max-width: 860px) { .calc-box { grid-template-columns: 1fr; } }
.calc-in { background: var(--ink); color: var(--paper); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 10px; }
@media (prefers-color-scheme: dark) { .calc-in { background: #14121A; } }
.calc-q { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.calc-val { font-size: 18px; color: #CFC8BB; margin-top: 8px; }
.calc-val b { font-family: var(--serif); font-size: clamp(56px, 8vw, 80px); font-weight: 600; color: #FF8A9C; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.calc-in input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px; margin: 18px 0 4px; cursor: pointer;
  background: linear-gradient(90deg, #FF8A9C var(--p, 33%), rgba(245,240,230,.15) var(--p, 33%)); }
.calc-in input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #F5F0E6; border: 0; box-shadow: 0 4px 14px rgba(0,0,0,.4); transition: transform .15s; }
.calc-in input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-in input[type=range]::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: #F5F0E6; border: 0; }
.calc-ends { display: flex; justify-content: space-between; font-size: 13px; color: #A79FB0; }
.calc-tip { margin-top: auto; padding-top: 18px; font-size: 14px; color: #A79FB0; }
.calc-tip b { color: #CFC8BB; }
.calc-out { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.calc-year { font-size: 18px; color: var(--soft); }
.calc-year b { font-family: var(--serif); font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-tile { border-radius: 22px; padding: 16px; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; color: #1E1B26; }
.calc-tile img { width: 48px; height: 48px; grid-row: span 2; transition: transform .3s var(--ease); }
.calc-tile:hover img { transform: rotate(-8deg) scale(1.1); }
.calc-tile b { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-tile span { font-size: 14px; color: #4F4A57; font-weight: 600; }
.calc-tile.bump img { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25) rotate(6deg); } }
.calc-swap { color: var(--soft); font-size: 15.5px; }
.calc-swap b { color: var(--ink); }
.calc-out .btn { align-self: flex-start; }
@media (max-width: 480px) { .calc-tile { grid-template-columns: 1fr; padding: 14px; } .calc-tile img { grid-row: auto; width: 40px; height: 40px; margin-bottom: 6px; } .calc-tile b { font-size: 28px; } }

/* Pick stack in the footer */
.sticky-foot { align-items: center; flex-wrap: nowrap; }
.tower { flex: 0 1 auto; overflow: hidden; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 12px 0 8px; border: 0; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; min-width: 0; }
.tower:hover { box-shadow: inset 0 0 0 2px var(--green); }
.tower-pile { display: flex; align-items: center; padding-left: 10px; }
.tower-pile .tw { width: 36px; height: 36px; margin-left: -10px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2.5px var(--card); flex: 0 0 auto; }
.tower-pile .tw img { width: 24px; height: 24px; }
.tower-pile .tw.new { animation: land .5s var(--ease); }
@keyframes land { 0% { transform: translateY(-22px) scale(1.25); } 60% { transform: translateY(2px) scale(.92, 1.08); } 100% { transform: none; } }
.tower-pile .empty { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: -4px; white-space: nowrap; }
.tower-n { font-weight: 700; font-size: 15px; white-space: nowrap; }
.flyer { position: fixed; z-index: 90; pointer-events: none; width: 40px; height: 40px; }
@media (max-width: 560px) {
  .sticky-foot { gap: 8px; }
  .sticky-foot .btn-ghost[data-go="1"] { padding: 0 16px; font-size: 0; gap: 0; }
  .sticky-foot .btn-ghost[data-go="1"] span { font-size: 18px; }
  .tower-pile .tw:nth-last-child(n+4) { display: none; }
  .tower-n { display: none; }
  .tower { padding: 0 8px 0 6px; overflow: visible; }
  .tower-pile .tw { width: 32px; height: 32px; margin-left: -12px; }
  .tower-pile .tw img { width: 22px; height: 22px; }
  .sticky-foot .btn[data-go="3"] { flex: 0 0 auto; }
  .sticky-foot .btn[data-go="3"] { padding: 0 16px; font-size: 15px; }
}

/* Thinking reveal */
.thinking { display: none; background: var(--ink); color: #F5F0E6; border-radius: 32px; padding: 32px 26px; min-height: 360px; flex-direction: column; justify-content: center; gap: 26px; }
.result.is-thinking .thinking { display: flex; }
.result.is-thinking .stack-card, .result.is-thinking .result-side { display: none; }
.result.is-thinking { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
.think-orb { display: flex; gap: 8px; }
.think-orb span { width: 22px; height: 22px; border-radius: 8px; background: #6FB592; animation: orb 1s var(--ease) infinite; }
.think-orb span:nth-child(2) { background: #E7D36A; animation-delay: .12s; } .think-orb span:nth-child(3) { background: #F5F0E6; animation-delay: .24s; }
@keyframes orb { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) rotate(8deg); } }
.think-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.think-steps li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: #A79FB0; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease), color .3s; }
.think-steps li.show { opacity: 1; transform: none; }
.think-steps li.done { color: #F5F0E6; }
.think-steps li i { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 2px #3A3545; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; }
.think-steps li.show:not(.done) i { box-shadow: inset 0 0 0 2px #6FB592; border-top-color: transparent; animation: spin .8s linear infinite; background: conic-gradient(#6FB592 0 25%, transparent 25%); -webkit-mask: radial-gradient(circle, transparent 7px, #000 8px); mask: radial-gradient(circle, transparent 7px, #000 8px); }
.think-steps li.done i { background: #6FB592; color: #12241B; box-shadow: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.stack-card.landed { animation: thunk .5s var(--ease); }
@keyframes thunk { 0% { transform: translateY(-16px) scale(.98); opacity: 0; } 60% { transform: translateY(3px) scale(1.01); opacity: 1; } 100% { transform: none; } }
.sc-list.spin li { animation: slot .45s var(--ease) both; }
.sc-list.spin li:nth-child(2) { animation-delay: .06s; } .sc-list.spin li:nth-child(3) { animation-delay: .12s; } .sc-list.spin li:nth-child(4) { animation-delay: .18s; }
@keyframes slot { 0% { transform: translateY(-30px) rotateX(70deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Type and see */
.ask { max-width: 760px; margin: 0 auto 44px; background: var(--ink); color: #F5F0E6; border-radius: 32px; padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
@media (prefers-color-scheme: dark) { .ask { background: #14121A; box-shadow: inset 0 0 0 2px var(--line); } }
.ask-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.ask-box { display: flex; gap: 8px; }
.ask-box input { flex: 1; min-width: 0; height: 56px; border-radius: 999px; border: 2px solid #3A3545; background: #2A2633; color: #F5F0E6; padding: 0 20px; font: inherit; font-size: 17px; }
.ask-box input:focus { outline: none; border-color: #6FB592; }
.ask-box input::placeholder { color: #8C8496; }
.ask .btn { background: #6FB592; color: #12241B; height: 56px; }
.ask .btn:hover { background: #8CCBA9; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips button { border: 0; background: #2A2633; color: #CFC8BB; border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.ask-chips button:hover { background: #3A3545; color: #F5F0E6; }
.ask-chips button:active { transform: scale(.96); }
.ask-out { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.ask-out[hidden] { display: none; }
.ask-read { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-read span { background: rgba(231, 211, 106, .14); color: #E7D36A; border-radius: 999px; padding: 5px 11px; font-size: 13.5px; font-weight: 600; animation: pop .3s var(--ease) both; }
.ask-read span:nth-child(2) { animation-delay: .05s; } .ask-read span:nth-child(3) { animation-delay: .1s; } .ask-read span:nth-child(4) { animation-delay: .15s; } .ask-read span:nth-child(5) { animation-delay: .2s; }
.ask-out .btn { align-self: flex-start; }
.ask-note { color: #8C8496; font-size: 13.5px; }
.row-hint { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
@media (max-width: 520px) { .ask-box { flex-direction: column; } .ask-box input { flex: none; width: 100%; } .ask-box .btn { width: 100%; } .ask-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 4px; } .ask-chips::-webkit-scrollbar { display: none; } .ask-chips button { flex: 0 0 auto; white-space: nowrap; } }

/* Candle runner */
.runner { background: radial-gradient(60% 50% at 50% 30%, #2C2533 0%, #1E1B26 70%); }
.candle { width: min(200px, 46vw); aspect-ratio: 200 / 250; position: relative; }
.candle svg { width: 100%; height: 100%; overflow: visible; }
.wax-g { transform-box: view-box; transform-origin: 100px 226px; transform: scaleY(calc(.18 + .82 * var(--left))); transition: transform 1s linear; }
.flame-g { transform: translateY(calc((1 - var(--left)) * 119.7px)); transition: transform 1s linear; }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) skewX(0); } 20% { transform: scale(.96, 1.06) skewX(-3deg); } 45% { transform: scale(1.03, .95) skewX(2deg); } 70% { transform: scale(.98, 1.04) skewX(-1deg); } }
.halo { animation: halo 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 50% { opacity: .75; transform: scale(1.08); } }
.paused .flame, .paused .halo { animation-play-state: paused; opacity: .35; }
.run-left { margin-top: -6px; }
.run-now { display: flex; align-items: center; gap: 12px; }
.run-now .run-emoji { width: 44px; height: 44px; }
.ambient { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ambient button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px; background: #2A2633; color: #CFC8BB; font-size: 14px; font-weight: 600; cursor: pointer; }
.ambient button[aria-pressed=true] { background: #F5F0E6; color: #1E1B26; }
@media (max-width: 520px) { .ambient { gap: 4px; flex-wrap: nowrap; } .ambient button { padding: 8px 10px; font-size: 13px; gap: 4px; } .ambient img { width: 16px; height: 16px; } }

/* Shelf */
.shelf[hidden] { display: none; }
.shelf-box { max-width: 1040px; margin: 0 auto; background: var(--card); border-radius: 36px; box-shadow: inset 0 0 0 2px var(--line); padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.shelf-top { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
@media (max-width: 720px) { .shelf-top { grid-template-columns: 1fr; } }
.streak { display: flex; align-items: center; gap: 12px; }
.streak img { width: 56px; height: 56px; animation: float 4s ease-in-out infinite; }
.streak.cold img { filter: grayscale(1) opacity(.5); animation: none; }
.streak b { font-family: var(--serif); font-size: 40px; line-height: 1; display: block; }
.streak span { color: var(--soft); font-size: 14.5px; }
.week { display: flex; gap: 8px; justify-content: center; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.week i { width: 34px; height: 34px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; font-style: normal; }
.week .on i { background: var(--green); box-shadow: none; color: var(--on-green); }
.week .on i::after { content: "✓"; font-weight: 800; }
.week .today { color: var(--ink); }
.week .today i { box-shadow: inset 0 0 0 2px var(--ink); }
.week .on.today i { box-shadow: none; }
.totals { display: flex; gap: 18px; }
.totals div { text-align: right; }
.totals b { font-family: var(--serif); font-size: 30px; display: block; line-height: 1; }
.totals span { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 720px) { .totals div { text-align: left; } .week { justify-content: flex-start; } }
.shelf-row { gap: 12px; padding-bottom: 6px; }
.spine { flex: 0 0 190px; border-radius: 24px; padding: 16px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); display: flex; flex-direction: column; gap: 10px; animation: pop .4s var(--ease) both; }
.spine .when { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.spine .icons { display: flex; }
.spine .icons span { width: 36px; height: 36px; border-radius: 50%; margin-right: -8px; display: grid; place-items: center; box-shadow: 0 0 0 2.5px var(--paper); }
.spine .icons img { width: 24px; height: 24px; }
.spine .mins { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; }
.spine .mins small { font: 600 13px var(--sans); color: var(--soft); }
.spine .mind { font-size: 13.5px; color: var(--soft); }
.spine .mind b { color: var(--green); }
.shelf-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.shelf-foot p { color: var(--soft); font-size: 15px; flex: 1 1 260px; }
.done-saved { display: flex; align-items: center; gap: 8px; color: #CFC8BB; font-size: 15px; }
.done-saved img { width: 28px; height: 28px; }

/* Character cards */
.char { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.char-name { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.05; margin-top: 2px; }
.char-line { font-size: 14.5px; color: #CFC8BB; margin-top: 6px; }
@media (prefers-color-scheme: dark) { .char-line { color: #4F4A57; } }
.char-art { position: relative; width: 108px; height: 108px; border-radius: 32px; background: radial-gradient(circle at 50% 40%, rgba(231,211,106,.35), rgba(231,211,106,0) 70%); display: grid; place-items: center; }
.char-art img { width: 92px; height: 92px; animation: charIn .7s var(--ease) both, float 5s ease-in-out .7s infinite; }
@keyframes charIn { 0% { transform: scale(.3) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.12) rotate(6deg); opacity: 1; } 100% { transform: none; } }
.char-prop { position: absolute; right: -6px; bottom: -4px; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--ink); animation: pop .4s var(--ease) .5s both; }
@media (prefers-color-scheme: dark) { .char-prop { box-shadow: 0 0 0 3px #F5F0E6; } }
.char-prop img { width: 28px; height: 28px; }
.sc-title { font-size: 24px; margin: 4px 0 14px; }
.types { padding: 16px 18px; border-radius: 22px; background: var(--paper); }
.types-lbl { font-size: 14.5px; font-weight: 600; margin-bottom: 10px; }
.types-row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; }
.types-row button { width: 100%; aspect-ratio: 1; height: auto; border-radius: 14px; border: 0; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease); }
.types-row button img { width: 72%; height: 72%; filter: grayscale(.6); opacity: .65; transition: filter .2s, opacity .2s; }
.types-row button:hover { transform: translateY(-3px) rotate(-4deg); }
.types-row button:hover img, .types-row button.me img { filter: none; opacity: 1; }
.types-row button.me { box-shadow: inset 0 0 0 2.5px var(--green); background: var(--c-read); }

/* Polish: reveals, magnetic buttons, confetti, sound toggle */
.js .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in) { opacity: 1; transform: none; } }
.mag { transition: transform .25s var(--ease), background .18s; will-change: transform; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 140; }
.snd { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; font-size: 17px; display: grid; place-items: center; }
.snd[aria-pressed=false] { opacity: .55; }
@media (max-width: 760px) { .snd { margin-left: auto; } .top .btn-small { margin-left: 0; } }
.act:active, .chips button:active, .types-row button:active { transform: scale(.95); }
.btn:not(.btn-ghost):hover { box-shadow: 0 10px 24px -12px rgba(47,107,79,.7); }
