/* Digoxin. Near-black, crisp white type, one accent: the client menu's pink. Unbounded for headlines, Onest for reading. */
:root {
  --bg: #09090b;
  --bg-1: #0e0e11;
  --card: #121216;
  --card-2: #18181d;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --faint: #5f5f6b;
  --rose: #f8acd6;
  --rose-2: #fbc6e3;
  --lav: #c0a8ff;
  --on-rose: #2a1424;
  --ok: #5fe3a1;
  --warn: #ffb35c;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  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-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; line-height: 1.04; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 33em; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-rose { background: var(--rose); color: var(--on-rose); }
.btn-rose:hover { background: var(--rose-2); }
.btn-line { border-color: var(--line-2); background: rgba(255,255,255,.02); }
.btn-line:hover { border-color: rgba(255,255,255,.3); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .92rem; border-radius: 9px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(9,9,11,.78); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.top .wrap { height: 68px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.06em; }
.logo img { width: 30px; height: 30px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top-end .link { color: var(--muted); font-weight: 500; font-size: .95rem; }
.top-end .link:hover, .top-end .link[aria-current="page"] { color: var(--text); }
@media (max-width: 860px) { .nav { display: none; } .top-end .link { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto 35%; height: 120%; background: radial-gradient(closest-side, rgba(248,172,214,.20), rgba(248,172,214,.05) 55%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; min-height: min(760px, calc(100vh - 68px)); gap: 20px; }
.hero-copy { padding: 48px 0; }
.chip-row { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.vchip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: .85rem; font-weight: 500; color: var(--muted); background: rgba(255,255,255,.02); }
.vchip b { color: var(--text); font-weight: 600; }
.hero .lead { margin-top: 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-art { position: relative; height: 560px; perspective: 1800px; }
.hero-art::before { content: ''; position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, rgba(248,172,214,.18), rgba(192,168,255,.08) 55%, transparent 75%); filter: blur(10px); pointer-events: none; }

/* the client menu, in 3D (same colours and layout as the real one) */
.mw-fit { position: absolute; left: 50%; top: 50%; width: 760px; height: 500px; transform: translate(-50%, -50%) scale(var(--k, 1)); transform-style: preserve-3d; }
.mw { --rx: 8deg; --ry: -18deg; position: relative; width: 760px; height: 500px; display: grid; grid-template-columns: 188px 1fr; gap: 10px; padding: 10px; border-radius: 18px;
  background: rgba(20,19,29,.9); border: 1px solid rgba(255,255,255,.08); color: #f0ecf8; font-family: var(--body); font-size: 13px; line-height: 1.3; user-select: none;
  box-shadow: 0 50px 120px rgba(0,0,0,.65), 0 0 90px rgba(248,172,214,.14), inset 0 1px 0 rgba(255,255,255,.05);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(-1.2deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.mw::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 35%); pointer-events: none; }
.mw-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px 8px; border-radius: 13px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); }
.mw-brand { display: flex; align-items: center; gap: 8px; padding: 0 6px 10px; }
.mw-brand img { width: 30px; height: 30px; }
.mw-brand b { font-size: 15px; font-weight: 700; }
.mw-brand span { font-size: 10.5px; color: #565166; margin-top: 3px; }
.mw-sec { padding: 8px 9px 4px; font-size: 10.5px; color: #565166; }
.mw-item { display: flex; align-items: center; gap: 9px; height: 29px; padding: 0 9px; border-radius: 8px; color: #847d96; font-size: 12.5px; }
.mw-item.on { background: linear-gradient(90deg, rgba(248,172,214,.16), rgba(192,168,255,.06)); color: #f0ecf8; box-shadow: inset 2px 0 0 #f8acd6; }
.mw-item.on i { color: #f8acd6; }
.mw-item em { margin-left: auto; font-style: normal; font-size: 10.5px; color: #565166; }
.mw-item i, .mw-search i { width: 14px; height: 14px; flex: 0 0 14px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic-all { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='1' width='6' height='6' rx='1.6'/%3E%3Crect x='9' y='1' width='6' height='6' rx='1.6'/%3E%3Crect x='1' y='9' width='6' height='6' rx='1.6'/%3E%3Crect x='9' y='9' width='6' height='6' rx='1.6'/%3E%3C/svg%3E"); }
.ic-combat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 13l7-7M10 2.5l3.5 3.5-2 .7-2.2-2.2zM2.5 13.5l1.8-.6-1.2-1.2z'/%3E%3C/svg%3E"); }
.ic-move { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E"); }
.ic-player { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='8' cy='5' r='3'/%3E%3Cpath d='M2.5 15c.7-3 2.8-4.5 5.5-4.5s4.8 1.5 5.5 4.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ic-visual { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M1 8s2.5-5 7-5 7 5 7 5-2.5 5-7 5-7-5-7-5z'/%3E%3Ccircle cx='8' cy='8' r='2'/%3E%3C/svg%3E"); }
.ic-world { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='8' cy='8' r='6.5'/%3E%3Cpath d='M1.5 8h13M8 1.5c2 2 2 11 0 13M8 1.5c-2 2-2 11 0 13'/%3E%3C/svg%3E"); }
.ic-misc { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='3' cy='8' r='1.7'/%3E%3Ccircle cx='8' cy='8' r='1.7'/%3E%3Ccircle cx='13' cy='8' r='1.7'/%3E%3C/svg%3E"); }
.ic-star { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M8 1.8l1.9 3.9 4.3.6-3.1 3 .7 4.3L8 11.6l-3.8 2 .7-4.3-3.1-3 4.3-.6z'/%3E%3C/svg%3E"); }
.ic-cfg { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 4h12M2 8h12M2 12h12'/%3E%3C/svg%3E"); }
.ic-theme { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M8 1.5S3 7 3 10a5 5 0 0 0 10 0c0-3-5-8.5-5-8.5z'/%3E%3C/svg%3E"); }
.ic-search { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E"); }
.mw-acct { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 9px 6px 2px; border-top: 1px solid rgba(255,255,255,.06); }
.mw-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f8acd6, #c0a8ff); color: #1c1226; font-weight: 700; }
.mw-acct b { display: block; font-size: 12.5px; }
.mw-acct small { color: #f8acd6; font-size: 10.5px; }
.mw-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mw-top { display: flex; gap: 8px; }
.mw-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(32,31,44,.85); border: 1px solid rgba(255,255,255,.06); color: #565166; font-size: 12px; }
.mw-pill { display: grid; place-items: center; height: 34px; padding: 0 16px; border-radius: 10px; background: linear-gradient(90deg, #f8acd6, #c0a8ff); color: #2a1424; font-weight: 700; font-size: 12px; }
.mw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.mw-col { display: grid; gap: 10px; }
.mw-card { padding: 11px 13px; border-radius: 12px; background: rgba(32,31,44,.9); border: 1px solid rgba(255,255,255,.05); transition: background-color .3s ease, box-shadow .3s ease; }
.mw-card.is-on { background: rgba(44,36,54,.96); box-shadow: inset 0 0 0 1px rgba(248,172,214,.18); }
.mw-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.mw-h span { flex: 1; min-width: 0; }
.mw-h kbd { font: 600 10px var(--body); color: #847d96; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.05); }
.mw-card p { margin-top: 5px; font-size: 11px; color: #847d96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw { position: relative; display: inline-block; width: 26px; height: 14px; border-radius: 999px; background: #383548; text-decoration: none; transition: background .25s ease, box-shadow .25s ease; }
.sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #968fa8; transition: left .25s cubic-bezier(.3,.7,.3,1.2), background .25s; }
.sw.on { background: linear-gradient(90deg, #f8acd6, #c0a8ff); box-shadow: 0 0 12px rgba(248,172,214,.5); }
.sw.on::after { left: 14px; background: #fcf8ff; }
.mw-set { display: grid; gap: 11px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.mw-sl { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 11px; color: #847d96; }
.mw-sl b { color: #f0ecf8; font-weight: 600; }
.tr { grid-column: 1 / -1; position: relative; height: 4px; border-radius: 4px; background: #383548; }
.tr i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #f8acd6, #c0a8ff); transition: left .6s ease, right .6s ease; }
.tr i::before, .tr i::after { content: ''; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fcf8ff; box-shadow: 0 0 0 3px rgba(248,172,214,.3); }
.tr i::before { left: -5px; } .tr i::after { right: -5px; }
.mw-tg { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #c9c3d6; }
.mw-cursor { position: absolute; left: 0; top: 0; width: 20px; height: 20px; z-index: 5; pointer-events: none; transition: transform .75s cubic-bezier(.45,.05,.25,1); filter: drop-shadow(0 3px 6px rgba(0,0,0,.6));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 2l12.5 7.6-5.6 1.1L7.3 16z' fill='white' stroke='black' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; }
.mw-cursor.click::before { content: ''; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(248,172,214,.8); animation: ping .5s ease-out forwards; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 36px 0 0; }
  .hero-art { height: calc(520px * var(--k, 1) + 40px); }
}

/* ---------------------------------------------------------------- sections */
.sec { padding: 112px 0; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26em); gap: 16px 48px; align-items: end; margin-bottom: 56px; }
.sec-head p { color: var(--muted); }
@media (max-width: 800px) { .sec { padding: 76px 0; } .sec-head { grid-template-columns: 1fr; margin-bottom: 36px; } }

/* ---------------------------------------------------------------- spotlights: text on one side, a live visual on the other */
.spots { display: grid; gap: 22px; }
.spot { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--bg-1); overflow: hidden; min-height: 420px; }
.spot:nth-child(even) { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.spot:nth-child(even) .spot-copy { order: 2; }
.spot-copy { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.spot-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.12; margin-bottom: 14px; }
.spot-copy p { color: var(--muted); max-width: 30em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 7px; background: var(--card-2); border: 1px solid var(--line); font-size: .82rem; font-weight: 500; color: #c9c9d2; }
.spot-vis { position: relative; background: #0b0b0e; border-left: 1px solid var(--line); overflow: hidden; }
.spot:nth-child(even) .spot-vis { border-left: 0; border-right: 1px solid var(--line); }
.spot-vis canvas, .spot-vis svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .spot, .spot:nth-child(even) { grid-template-columns: 1fr; }
  .spot:nth-child(even) .spot-copy { order: 0; }
  .spot-copy { padding: 30px 26px 8px; }
  .spot-vis, .spot:nth-child(even) .spot-vis { border: 0; border-top: 1px solid var(--line); min-height: 300px; }
}

/* the click-timing readout */
.readout { position: absolute; left: 22px; top: 18px; display: flex; gap: 20px; font-size: .82rem; color: var(--muted); z-index: 1; }
.readout b { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--text); font-weight: 600; letter-spacing: -0.02em; }

/* the code window */
.code { position: absolute; inset: 28px -2px -2px 28px; border: 1px solid var(--line-2); border-radius: 12px 0 0 0; background: #0f0f13; display: flex; flex-direction: column; }
.code-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.code-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a31; }
.code-bar span { margin-left: 8px; color: var(--text); }
.code pre { margin: 0; padding: 16px 18px; font: 500 .82rem/1.75 ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace; color: #d8d8e0; overflow: hidden; white-space: pre; flex: 1; }
.code pre .n { color: #44444e; display: inline-block; width: 28px; user-select: none; }
.code .kw { color: var(--rose); } .code .fn { color: #fff; font-weight: 600; } .code .st { color: #9fe7c4; } .code .nu { color: #ffb35c; } .code .cm { color: #5f5f6b; }
.code-foot { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 10px rgba(95,227,161,.6); }
.dot.idle { background: #b9a6ff; }

/* ---------------------------------------------------------------- module index */
.index-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-1); border: 1px solid var(--line); }
.seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-weight: 500; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.index-bar .count { margin-left: auto; color: var(--faint); font-size: .9rem; }
.index { columns: 3; column-gap: 40px; }
.cat { break-inside: avoid; margin-bottom: 40px; }
.cat h3 { font-family: var(--body); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.cat ul { list-style: none; margin: 0; padding: 0; }
.cat li { padding: 11px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.cat li b { font-weight: 600; font-size: .96rem; display: flex; align-items: center; gap: 8px; }
.cat li span { color: var(--faint); font-size: .86rem; line-height: 1.45; }
.cat li.off { display: none; }
.mini { font-size: .7rem; font-weight: 600; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
.mini.risk { border-color: rgba(255,179,92,.4); color: var(--warn); }
@media (max-width: 980px) { .index { columns: 2; } }
@media (max-width: 620px) { .index { columns: 1; } }

/* ---------------------------------------------------------------- capes carousel */
.reel { position: relative; height: 430px; display: grid; place-items: center; perspective: 1400px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.reel-track { position: relative; width: 100%; height: 100%; }
.reel-card { position: absolute; left: 50%; top: 50%; width: 210px; aspect-ratio: 10 / 16; margin: -168px 0 0 -105px; border-radius: 6px; overflow: hidden; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s, filter .6s; box-shadow: 0 30px 60px rgba(0,0,0,.55); cursor: pointer; border: 0; padding: 0; background: #000; }
.reel-card img { width: 100%; height: 100%; object-fit: cover; }
.reel-card[aria-current="true"] { box-shadow: 0 30px 80px rgba(248,172,214,.25), 0 0 0 2px var(--rose); }
.reel-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.reel-meta b { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.reel-meta p { color: var(--muted); }
.reel-nav { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-1); cursor: pointer; }
.icon-btn:hover { border-color: rgba(255,255,255,.3); }
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 700px) { .reel { height: 340px; } .reel-card { width: 160px; margin: -128px 0 0 -80px; } }

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { display: flex; flex-direction: column; padding: 30px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-1); }
.plan.best { border-color: rgba(248,172,214,.55); background: linear-gradient(180deg, rgba(248,172,214,.09), transparent 45%), var(--bg-1); }
.plan h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); display: flex; justify-content: space-between; }
.plan .price { font-family: var(--display); font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; margin: 18px 0 2px; }
.plan .price.soon { font-size: 1.6rem; }
.plan .per { color: var(--faint); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 11px; font-size: .95rem; color: #d4d4dc; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--rose); }
.plan .btn { margin-top: auto; width: 100%; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }

/* ---------------------------------------------------------------- download */
.dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.dl-box { margin-top: 32px; padding: 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-1); display: grid; gap: 4px; }
.dl-box .v { font-family: var(--display); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.03em; }
.dl-box .btn { margin-top: 18px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 6px 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 600; color: var(--rose); font-size: .95rem; padding-top: 2px; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .dl { grid-template-columns: 1fr; gap: 36px; } }

/* ---------------------------------------------------------------- questions */
.qa { max-width: 780px; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 300; color: var(--muted); }
.qa details[open] summary::after { content: '\2212'; }
.qa details p { padding: 0 0 22px; color: var(--muted); max-width: 44em; }

/* ---------------------------------------------------------------- final call + footer */
.final { text-align: center; padding: 120px 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; left: 50%; top: 100%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(248,172,214,.22), transparent 70%); pointer-events: none; }
.final h2 { position: relative; }
.final .hero-cta { justify-content: center; position: relative; }
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--faint); font-size: .88rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ---------------------------------------------------------------- cape room */
.room { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: calc(100vh - 68px); min-height: 620px; }
.room-stage { position: relative; background: radial-gradient(70% 60% at 50% 42%, #1a1418, var(--bg) 70%); border-right: 1px solid var(--line); overflow: hidden; }
.room-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.room-stage canvas:active { cursor: grabbing; }
.room-title { position: absolute; left: 32px; top: 28px; right: 32px; pointer-events: none; }
.room-title h1 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.room-title p { color: var(--muted); margin-top: 8px; }
.room-tools { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.skin { display: flex; align-items: center; gap: 4px; height: 44px; padding: 3px 3px 3px 14px; border-radius: 10px; background: rgba(14,14,17,.85); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.skin input { width: 160px; min-width: 0; border: 0; background: none; outline: none; font-size: .92rem; }
.skin input::placeholder { color: var(--faint); }
.skin button { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--card-2); font-weight: 600; font-size: .86rem; cursor: pointer; }
.skin button:hover { background: #222229; }
.skin-note { position: absolute; left: 32px; bottom: 78px; font-size: .86rem; color: var(--muted); }
.room-side { display: flex; flex-direction: column; min-height: 0; background: var(--bg-1); }
.room-side .seg { margin: 22px 22px 6px; align-self: flex-start; }
.room-list { flex: 1; overflow-y: auto; padding: 10px 14px 24px; scrollbar-width: thin; scrollbar-color: #26262d transparent; }
.cape-row { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 12px; background: none; text-align: left; cursor: pointer; }
.cape-row:hover { background: var(--card); }
.cape-row[aria-pressed="true"] { background: var(--card); border-color: rgba(248,172,214,.5); }
.cape-row img { width: 52px; height: 83px; object-fit: cover; border-radius: 4px; }
.cape-row b { display: block; font-weight: 600; }
.cape-row span { color: var(--faint); font-size: .86rem; line-height: 1.4; }
.cape-row .mini { margin-left: 6px; vertical-align: 1px; }
@media (max-width: 900px) {
  .room { grid-template-columns: 1fr; height: auto; }
  .room-stage { height: 72vh; min-height: 480px; border-right: 0; border-bottom: 1px solid var(--line); }
  .room-list { overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .skin input { width: 120px; }
}

/* ---------------------------------------------------------------- account */
.acct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 64px 0 96px; align-items: start; }
.acct > header { grid-column: 1 / -1; margin-bottom: 18px; }
.acct > header p { color: var(--muted); margin-top: 12px; }
.box { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-1); padding: 30px; }
.box h2 { font-size: 1.4rem; margin-bottom: 6px; }
.box > p { color: var(--muted); }
.field { display: grid; gap: 7px; margin-top: 16px; }
.field label { font-size: .9rem; font-weight: 500; color: #d4d4dc; }
.field input { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); outline: none; transition: border-color .15s; }
.field input:focus { border-color: var(--rose); }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.check input { accent-color: var(--rose); width: 16px; height: 16px; }
.actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.msg { margin-top: 14px; min-height: 1.4em; font-size: .92rem; color: var(--muted); }
.msg.bad { color: #ff8a9a; }
.me { display: flex; align-items: center; gap: 16px; }
.me b { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; display: block; }
.friends { list-style: none; margin: 18px 0 0; padding: 0; }
.friends li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.friends .where { font-size: .86rem; color: var(--muted); text-align: right; display: flex; align-items: center; gap: 8px; }
.keybig { font-family: var(--display); font-size: 2.1rem; font-weight: 600; letter-spacing: -0.03em; margin-top: 22px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 14px 0 0; font-size: .95rem; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; font-weight: 500; }
@media (max-width: 860px) { .acct { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- avatars (your picture, or your initial) */
.av { display: inline-grid; place-items: center; flex: 0 0 auto; width: var(--s, 36px); height: var(--s, 36px); border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #f8acd6, #c0a8ff); color: #1c1226; font-weight: 700; font-size: calc(var(--s, 36px) * .42); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av img.mc { image-rendering: pixelated; }

/* ---------------------------------------------------------------- profile editor */
.profile-edit { display: flex; gap: 20px; align-items: center; margin-top: 18px; }
.profile-edit .av { --s: 84px; }
.profile-edit .actions { margin-top: 0; }
.name-row { display: flex; gap: 10px; align-items: end; }
.name-row .field { flex: 1; min-width: 0; }
.name-row .field input { width: 100%; }
.acct > * { min-width: 0; }
@media (max-width: 520px) { .box { padding: 22px; } .profile-edit { gap: 14px; } .profile-edit .av { --s: 68px; } }

/* ---------------------------------------------------------------- forums */
.forum { padding: 56px 0 96px; }
.forum-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 30px; }
.forum-head p { color: var(--muted); margin-top: 10px; max-width: 40em; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--faint); font-size: .9rem; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.cats { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-1); }
.fcat { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 260px); gap: 20px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--line); transition: background .15s; }
.fcat:first-child { border-top: 0; }
.fcat:hover { background: var(--card); }
.fcat b { font-weight: 600; font-size: 1.05rem; display: flex; gap: 8px; align-items: center; }
.fcat p { color: var(--muted); font-size: .92rem; margin-top: 3px; }
.fcat .num { color: var(--muted); font-size: .88rem; }
.fcat .num b { font-size: 1rem; color: var(--text); display: inline; }
.fcat .last { color: var(--faint); font-size: .86rem; min-width: 0; }
.fcat .last .t { color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum h1 { font-size: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.forum h1 .flag { font-family: var(--body, inherit); font-size: .8rem; letter-spacing: 0; }
.forum-me { display: flex; gap: 10px; align-items: center; }
.me-chip { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 5px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .92rem; }
.me-chip:hover { border-color: var(--line-2); }
.composer-who { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.composer-who b { color: var(--text); font-weight: 600; }
.composer .count { margin-left: auto; align-self: center; }
.composer.empty { padding: 26px; }
.composer.empty a, .box.empty a, .empty a { color: var(--rose); }
.edit-box textarea { width: 100%; min-height: 140px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 12px 14px; outline: none; font: inherit; line-height: 1.6; resize: vertical; }
.edit-box textarea:focus { border-color: var(--rose); }
.edit-box .actions { margin-top: 12px; }
.post-text .quote { display: block; color: var(--muted); border-left: 2px solid rgba(248,172,214,.45); background: rgba(255,255,255,.025); border-radius: 0 8px 8px 0; padding: 8px 12px; margin: 2px 0 10px; }
.tool.danger { color: #ff8a9a; border-color: rgba(255,138,154,.45); }
.fthread .n b { color: var(--text); font-weight: 600; }
.threads { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-1); }
.fthread { display: grid; grid-template-columns: 40px minmax(0, 1fr) 90px 120px; gap: 16px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); }
.fthread:first-child { border-top: 0; }
.fthread:hover { background: var(--card); }
.fthread .t { font-weight: 600; display: flex; gap: 8px; align-items: center; min-width: 0; }
.fthread .t a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fthread .by { color: var(--faint); font-size: .86rem; margin-top: 2px; }
.fthread .n { color: var(--muted); font-size: .88rem; text-align: right; }
.flag { font-size: .7rem; font-weight: 600; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); flex: 0 0 auto; }
.flag.pin { border-color: rgba(248,172,214,.5); color: var(--rose); }
.flag.staff { border-color: rgba(192,168,255,.5); color: var(--lav); }
.posts { display: grid; gap: 14px; }
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--bg-1); overflow: hidden; }
.post-who { padding: 20px; border-right: 1px solid var(--line); display: grid; justify-items: start; gap: 8px; align-content: start; }
.post-who .av { --s: 52px; }
.post-who b { font-weight: 600; word-break: break-word; }
.post-who small { color: var(--faint); }
.post-body { padding: 20px 22px 16px; display: flex; flex-direction: column; min-width: 0; }
.post-meta { color: var(--faint); font-size: .84rem; margin-bottom: 10px; }
.post-text { white-space: pre-wrap; word-wrap: break-word; line-height: 1.65; color: #e2e2e8; }
.post-text a { color: var(--rose); text-decoration: underline; }
.post-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.tool { white-space: nowrap; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: .85rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tool:hover { color: var(--text); border-color: var(--line-2); }
.tool.liked { color: var(--rose); border-color: rgba(248,172,214,.45); }
.tool svg { width: 15px; height: 15px; }
.composer { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-1); padding: 22px; }
.composer textarea, .composer input { width: 100%; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 12px 14px; outline: none; font: inherit; }
.composer textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.composer textarea:focus, .composer input:focus { border-color: var(--rose); }
.composer input { height: 48px; margin-bottom: 12px; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.mod-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
@media (max-width: 760px) {
  .fcat { grid-template-columns: 1fr; gap: 6px; }
  .fcat .last { display: none; }
  .fthread { grid-template-columns: 34px minmax(0, 1fr); }
  .fthread .n { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-who { grid-template-columns: auto 1fr; border-right: 0; border-bottom: 1px solid var(--line); align-items: center; padding: 14px 16px; }
  .post-who .av { --s: 40px; grid-row: span 2; }
}
