/* SOCK PUPPET — NEATLABS™ */
:root {
  --bg: #0f0d17; --bg2: #14111e; --panel: #1a1626; --panel2: #231e32; --ink: #f3eefa; --mut: #a8a1b9; --dim: #726b87;
  --line: rgba(243,238,250,.08); --line2: rgba(243,238,250,.16);
  --brand: #f47d3d; --brand2: #ff9a62; --thread: #ff4fa3; --bad: #ff4d5e; --good: #3ee0b0; --warn: #ffc15e;
  --app: #f5f3fa; --card: #ffffff; --cardline: #e6e1ef; --aink: #1b1726; --amut: #6b6480; --hub: #6d4aff;
  --display: 'Bricolage Grotesque', Inter, ui-sans-serif, system-ui, sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
button, input { font: inherit; color: inherit; }
a { color: var(--brand2); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn { white-space: nowrap; border: 1px solid var(--line2); background: var(--panel2); border-radius: 10px; padding: 10px 16px; cursor: pointer; font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #1d0c02; }
.btn.primary:hover { background: var(--brand2); border-color: var(--brand2); }
.btn.big { font-size: 17px; padding: 13px 26px; }
.btn.sm { font-size: 13px; padding: 7px 12px; }
.btn.ghost { background: rgba(15,13,23,.55); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.pill { white-space: nowrap; border: 1px solid var(--line2); background: rgba(15,13,23,.55); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--mut); }
.pill:hover { color: var(--ink); border-color: var(--ink); }
.pill.sm { padding: 5px 11px; font-size: 12px; } .pill.round { width: 30px; height: 30px; padding: 0; }

/* ---------- title ---------- */
.title { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; background: radial-gradient(1200px 700px at 75% 40%, #1d1530, var(--bg) 70%); }
#titleCv { position: fixed; inset: 0; width: 100%; height: 100%; }
.title::after { content: ''; position: fixed; inset: 0; background: linear-gradient(90deg, rgba(15,13,23,.96) 0%, rgba(15,13,23,.82) 38%, rgba(15,13,23,.2) 70%, rgba(15,13,23,.5)); pointer-events: none; }
.title > *:not(canvas) { position: relative; z-index: 2; }
.t-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 32px; }
.neat { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; } .neat span { color: var(--brand); }
.t-main { flex: 1 0 auto; display: flex; align-items: center; gap: 4vw; padding: 4px 6vw 28px; }
.t-copy { max-width: 640px; }
.t-kick { margin: 0 0 10px; font: 600 14px var(--mono); color: var(--brand2); }
.t-word { margin: 0; font: 800 clamp(60px, 9.4vw, 138px)/.82 var(--display); letter-spacing: -.035em; display: flex; flex-direction: column; }
.t-word .w1 { color: var(--ink); animation: drop 1.1s cubic-bezier(.2,1.4,.35,1) both; transform-origin: 30% 0; }
.t-word .w2 { color: var(--thread); padding-left: .42em; animation: drop 1.1s .12s cubic-bezier(.2,1.4,.35,1) both; transform-origin: 30% 0; text-shadow: 0 0 60px rgba(255,79,163,.35); }
@keyframes drop { 0% { opacity: 0; transform: translateY(-60px) rotate(-4deg); } 100% { opacity: 1; transform: none; } }
.t-line { margin: 18px 0 8px; font: 700 clamp(21px, 2.6vw, 30px)/1.2 var(--display); letter-spacing: -.01em; }
.t-sub { margin: 0 0 18px; color: var(--mut); font-size: 16px; max-width: 590px; }
.t-case { border-left: 3px solid var(--thread); padding: 4px 0 4px 14px; margin: 0 0 22px; max-width: 560px; }
.t-case .tc-k { font: 600 12.5px var(--mono); color: var(--mut); margin: 0 0 2px; }
.t-case .tc-t { font-weight: 700; font-size: 17px; margin: 0; }
.t-case .tc-d { color: var(--mut); margin: 2px 0 0; font-size: 14.5px; }
.t-challenge, .t-done { background: rgba(244,125,61,.1); border: 1px solid rgba(244,125,61,.35); border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; max-width: 560px; }
.t-done p, .t-challenge p { margin: 0 0 8px; }
.t-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.t-expert { color: var(--mut); font-size: 13.5px; margin: 14px 0 0; max-width: 580px; }
.t-expert b { color: var(--thread); }
.t-expert .xd { color: var(--ink); }
.linkbtn { background: none; border: 0; color: var(--brand2); text-decoration: underline; cursor: pointer; padding: 0; font-size: 13.5px; }
.btn.xbtn { border-color: rgba(255,79,163,.6); color: #ffd0e6; }
.btn.xbtn:hover { border-color: var(--thread); background: rgba(255,79,163,.12); }
.expert .logo::after { content: 'Expert'; font: 700 11px var(--sans); color: #1a0410; background: var(--thread); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 5px; letter-spacing: 0; }
.p-who .via { color: #9a93ad; font-size: 11.5px; flex-basis: 100%; margin-top: -1px; }
.pf-ren { margin: -4px 0 10px; font-size: 13px; color: var(--warn); }
.pf-ren b { font-family: var(--mono); font-weight: 600; }
.t-stats { color: var(--mut); font-size: 14px; margin: 18px 0 0; min-height: 21px; }
.t-next { color: var(--dim); font: 500 13px var(--mono); margin: 4px 0 0; }
.t-fine { margin: 0; padding: 14px 32px 20px; color: var(--dim); font-size: 12.5px; max-width: 900px; }
.mascot { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; position: relative; }
.sock { width: clamp(180px, 22vw, 300px); height: auto; overflow: visible; cursor: pointer; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
.sock-body { transform-origin: 90px 300px; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.sock .mouth { transform-origin: 150px 150px; transition: transform .12s; }
.sock.talk .mouth { transform: scaleY(2.2); }
.bubble { position: relative; background: var(--ink); color: var(--bg); font: 700 clamp(15px, 1.5vw, 19px)/1.3 var(--display); padding: 14px 18px; border-radius: 18px; margin-bottom: 18px; max-width: 300px; text-align: center; transition: opacity .25s, transform .25s; }
.bubble::after { content: ''; position: absolute; left: 58%; bottom: -12px; border: 12px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.bubble.out { opacity: 0; transform: translateY(6px); }

/* ---------- game shell ---------- */
.game { position: fixed; inset: 0; display: grid; grid-template-columns: 290px minmax(0, 1fr) 390px; grid-template-rows: 70px minmax(0, 1fr); background: var(--bg); }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--bg2); position: relative; z-index: 6; }
.logo { font: 800 24px var(--display); letter-spacing: -.03em; color: var(--ink); text-decoration: none; white-space: nowrap; } .logo span { color: var(--thread); }
.tb-case { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tb-case b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tb-case span { font: 500 12px var(--mono); color: var(--mut); }
.tb-clock { display: flex; flex-direction: column; line-height: 1.15; text-align: center; } .tb-clock b { font: 600 18px var(--mono); } .tb-clock span { font-size: 11px; color: var(--dim); }
.line { flex: 1; min-width: 260px; max-width: 420px; height: 62px; position: relative; margin-left: auto; }
.line > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.slot { position: absolute; top: 9px; width: 40px; margin-left: -20px; display: flex; flex-direction: column; align-items: center; }
.slot .pin { width: 8px; height: 14px; border-radius: 2px; background: #c9b89a; border: 1px solid rgba(0,0,0,.35); }
.slot.empty .pin { background: transparent; border: 1px dashed var(--dim); }
.slot .hang { margin-top: -3px; transform-origin: 50% 0; animation: hang .9s cubic-bezier(.3,1.6,.4,1) both; cursor: pointer; position: relative; }
.slot .hang svg { width: 34px; height: 44px; display: block; }
.slot .hang img { position: absolute; left: 5px; top: 7px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; }
.slot .hang:hover { animation: jiggle .5s ease-in-out; }
@keyframes hang { 0% { transform: translateY(-40px) rotate(-25deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes jiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(9deg); } 65% { transform: rotate(-6deg); } }
.rail, .side { overflow-y: auto; padding: 16px; background: var(--bg); }
.rail { border-right: 1px solid var(--line); }
.side { border-left: 1px solid var(--line); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px; margin-bottom: 12px; }
.card h2 { margin: 2px 0 6px; font: 800 22px var(--display); letter-spacing: -.02em; color: var(--thread); word-break: break-word; }
.card h3 { margin: 0 0 8px; font-size: 13px; color: var(--mut); font-weight: 700; }
.card p { margin: 0 0 6px; font-size: 14px; color: #d9d3e5; }
.card .k { color: var(--mut); font-size: 13px; margin: 0; }
.card .k b { color: var(--ink); }
.lvl { font: 600 12.5px var(--mono); color: var(--warn) !important; margin-top: 8px !important; }
.tool { display: block; width: 100%; text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 7px; cursor: pointer; }
button.tool:hover { border-color: var(--line2); }
.tool.static { cursor: default; }
.tool b { display: block; font-size: 14px; } .tool span { display: block; color: var(--mut); font-size: 12.5px; }
.lens-n { color: var(--mut) !important; font-size: 12.5px !important; margin-top: 8px !important; }
.hint .on { color: var(--ink); }

/* ---------- the fake app ---------- */
.feedcol { overflow-y: auto; background: var(--app); color: var(--aink); position: relative; scroll-behavior: smooth; }
.app-head { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: rgba(245,243,250,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--cardline); }
.app-name { font: 800 22px var(--display); color: var(--hub); letter-spacing: -.04em; }
.app-trend { font-weight: 700; color: var(--aink); font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-head .pill { color: var(--amut); border-color: var(--cardline); background: #fff; }
.app-head .pill:hover, .app-head .pill.on { color: var(--hub); border-color: var(--hub); }
.seg { display: flex; background: #ebe7f3; border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--amut); cursor: pointer; }
.seg button.on { background: #fff; color: var(--aink); box-shadow: 0 1px 2px rgba(27,23,38,.12); }
.clockstrip { position: sticky; top: 57px; z-index: 3; background: #fff; border-bottom: 1px solid var(--cardline); padding: 10px 18px 8px; }
#clockCv { width: 100%; height: 92px; display: block; cursor: crosshair; }
.cs-h { margin: 4px 0 0; font-size: 12px; color: var(--amut); }
.feed { max-width: 660px; margin: 0 auto; padding: 14px 14px 90px; }
.mtrend { display: none; }
.post { background: var(--card); border: 1px solid var(--cardline); border-radius: 16px; padding: 13px 15px 9px; margin-bottom: 10px; position: relative; transition: box-shadow .2s, border-color .2s, transform .2s; }
.post:hover { border-color: #d4cde2; }
.post.sel { border-color: var(--hub); box-shadow: 0 0 0 3px rgba(109,74,255,.14); }
.post.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(109,74,255,0); } 30% { box-shadow: 0 0 0 6px rgba(109,74,255,.25); } }
.post.flagged { border-color: #ffb3bb; background: #fff7f8; }
.post.echo { border-color: var(--thread); box-shadow: 0 0 0 3px rgba(255,79,163,.16); }
.p-rt { font-size: 12.5px; color: var(--amut); margin: -2px 0 6px 56px; font-weight: 500; }
.p-rt b { color: var(--aink); font-weight: 600; cursor: pointer; }
.p-row { display: flex; gap: 12px; }
.p-av { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px; cursor: pointer; background: #eee; }
.p-av:hover { box-shadow: 0 0 0 3px rgba(109,74,255,.25); }
.p-main { flex: 1; min-width: 0; }
.p-who { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; line-height: 1.25; }
.p-who .nm { font-weight: 700; cursor: pointer; } .p-who .nm:hover { text-decoration: underline; }
.p-who .hd, .p-who .tm { color: var(--amut); font: 400 13px var(--mono); }
.p-who .org { font-size: 11px; font-weight: 700; color: #fff; background: var(--hub); border-radius: 4px; padding: 0 5px; }
.p-text { margin: 4px 0 6px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.p-text .tag { color: var(--hub); font-weight: 600; }
.p-text mark { background: rgba(255,79,163,.22); color: inherit; border-radius: 3px; padding: 0 1px; box-shadow: 0 1px 0 var(--thread); }
.p-link { display: block; border: 1px solid var(--cardline); border-radius: 12px; padding: 9px 12px; margin: 4px 0 8px; background: #faf9fd; }
.p-link .d { display: block; font: 500 12px var(--mono); color: var(--amut); word-break: break-all; }
.p-link .t { display: block; font-weight: 700; font-size: 14px; }
.p-act { display: flex; align-items: center; gap: 16px; color: var(--amut); font-size: 13px; }
.p-act .n { display: inline-flex; gap: 5px; align-items: center; }
.p-act .sp { flex: 1; }
.p-act button { border: 1px solid var(--cardline); background: #fff; color: var(--amut); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.p-act button:hover { color: var(--aink); border-color: #c9c1da; }
.p-act .fl { color: #c2263a; border-color: #ffd0d5; }
.p-act .fl:hover { background: #fff0f2; color: #a3142a; border-color: #ff9aa6; }
.post.flagged .p-act .fl { background: #e0243c; color: #fff; border-color: #e0243c; }
.stamp { position: absolute; right: 18px; top: 10px; font: 800 15px var(--display); color: #e0243c; border: 2.5px solid #e0243c; border-radius: 6px; padding: 1px 8px; transform: rotate(-9deg); letter-spacing: .04em; opacity: .9; pointer-events: none; animation: stamp .35s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes stamp { 0% { transform: rotate(-9deg) scale(2.2); opacity: 0; } 100% { transform: rotate(-9deg) scale(1); opacity: .9; } }

/* ---------- profile ---------- */
.side-empty { color: var(--mut); padding: 40px 10px; text-align: center; }
.side-empty .dim { color: var(--dim); font-size: 13.5px; }
.pf-top { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.pf-top img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--panel2); }
.pf-top h2 { margin: 0; font: 800 22px var(--display); letter-spacing: -.02em; line-height: 1.1; word-break: break-word; }
.pf-top .hd { font: 500 13px var(--mono); color: var(--mut); }
.pf-bio { margin: 0 0 10px; color: #e2dcec; font-size: 14.5px; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--mut); margin-bottom: 12px; }
.pf-meta b { color: var(--ink); font-weight: 600; }
.new { font: 700 11px var(--sans); color: #1a0b02; background: var(--warn); border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.pf-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; margin-bottom: 10px; }
.pf-sec h3 { margin: 0 0 8px; font-size: 12.5px; color: var(--mut); font-weight: 700; }
.hours { display: flex; align-items: flex-end; gap: 2px; height: 54px; }
.hours i { flex: 1; background: var(--hub); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .9; }
.hours i.n { background: #4d5fd1; }
.hours-x { display: flex; justify-content: space-between; font: 500 10.5px var(--mono); color: var(--dim); margin-top: 4px; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { border-top: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
.hist li:first-child { border-top: 0; padding-top: 0; }
.hist .w { display: block; font: 500 11.5px var(--mono); color: var(--dim); margin-bottom: 2px; }
.hist .gap { color: var(--warn); font-size: 13px; }
.ri { display: flex; gap: 10px; align-items: center; padding: 6px 0; cursor: pointer; }
.ri img { width: 38px; height: 38px; border-radius: 50%; }
.ri b { font-size: 14px; display: block; } .ri span { font-size: 12.5px; color: var(--mut); }
.ri:hover b { text-decoration: underline; }
.echo-h { font-size: 14px; color: var(--mut); margin: 0 0 8px; }
.echo-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.echo-item:hover { border-color: var(--line2); }
.echo-item .who { font-weight: 700; font-size: 13.5px; } .echo-item .who span { font: 400 12px var(--mono); color: var(--mut); }
.echo-item q { display: block; margin-top: 4px; color: #ffc0de; font-size: 14px; }
.back { margin-bottom: 12px; }

/* ---------- misc ---------- */
.mbar { display: none; }
.toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--panel2); border: 1px solid var(--line2); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4); animation: tin .25s ease both; max-width: 90vw; }
.toast.good { border-color: rgba(62,224,176,.5); } .toast.bad { border-color: rgba(255,77,94,.6); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.tip { position: fixed; z-index: 50; background: #1b1726; color: #fff; font: 500 12.5px var(--sans); padding: 6px 9px; border-radius: 8px; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; background: rgba(8,6,14,.72); backdrop-filter: blur(6px); padding: 18px; }
.m-box { background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; padding: 26px 28px; max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: pop .3s cubic-bezier(.2,1.2,.4,1) both; }
.m-box.wide { max-width: 760px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.m-kick { font: 600 13px var(--mono); color: var(--brand2); margin: 0 0 4px; }
.m-box h2 { margin: 0 0 8px; font: 800 30px var(--display); letter-spacing: -.02em; }
.m-lead { color: #ddd6e8; margin: 0 0 16px; }
.steps3 { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps3 li { counter-increment: s; background: var(--panel2); border-radius: 12px; padding: 11px 14px 11px 48px; position: relative; }
.steps3 li::before { content: counter(s); position: absolute; left: 14px; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--thread); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.steps3 b { display: block; } .steps3 span { color: var(--mut); font-size: 14px; }
.m-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.help-grid div { background: var(--panel2); border-radius: 12px; padding: 12px 14px; }
.help-grid p { margin: 4px 0 0; color: var(--mut); font-size: 14px; }
.help-fine { color: var(--mut); font-size: 13.5px; }

/* ---------- reveal ---------- */
.reveal { position: fixed; inset: 0; z-index: 40; background: transparent; overflow-y: hidden; }
.reveal.done { overflow-y: auto; background: #0b0912; }
.folding .game .post, .folding .game .app-head, .folding .game .rail, .folding .game .side, .folding .game .topbar, .folding .game .mbar { opacity: 0; transform: scale(.97); transition: opacity .7s ease, transform .7s ease; }
.side-x { display: none; }
.stage { position: relative; height: 100vh; height: 100dvh; min-height: 560px; }
#netCv { position: absolute; inset: 0; width: 100%; height: 100%; }
.cap { position: absolute; left: 32px; top: 28px; max-width: 420px; pointer-events: none; transition: opacity .35s; }
.cap-k { margin: 0 0 4px; font: 600 13px var(--mono); color: var(--mut); }
.cap h2 { margin: 0 0 6px; font: 800 clamp(26px, 3.2vw, 40px)/1.05 var(--display); letter-spacing: -.02em; }
.cap p { margin: 0; color: #ddd5ea; font-size: 15.5px; }
.cap.fade { opacity: 0; }
.skip { position: absolute; right: 24px; top: 24px; z-index: 3; }
.ntip { position: absolute; z-index: 4; background: rgba(27,23,38,.96); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; max-width: 280px; font-size: 13.5px; pointer-events: none; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.ntip b { display: block; font-size: 14.5px; } .ntip .hd { font: 500 12px var(--mono); color: var(--mut); }
.ntip .role { display: inline-block; margin: 6px 0 4px; font-weight: 700; font-size: 12.5px; }
.ntip ul { margin: 4px 0 0; padding-left: 16px; color: #d9d2e6; }
.verdict { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); background: rgba(26,22,38,.94); border: 1px solid var(--line2); border-radius: 22px; padding: 18px 26px 20px; text-align: center; min-width: 340px; box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: rise .6s cubic-bezier(.2,1.3,.4,1) both; z-index: 3; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 30px); } }
.v-k { margin: 0; font: 600 13px var(--mono); color: var(--mut); }
.verdict h2 { margin: 2px 0 6px; font: 800 clamp(30px, 4vw, 44px)/1 var(--display); letter-spacing: -.02em; }
.v-sq { margin: 0 0 2px; font-size: 26px; letter-spacing: 3px; }
.v-pts { margin: 0 0 14px; color: var(--mut); } .v-pts b { color: var(--ink); font: 700 22px var(--mono); }
.v-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- debrief ---------- */
.debrief { max-width: 1040px; margin: 0 auto; padding: 36px 22px 80px; }
.debrief h3.sec { font: 800 28px var(--display); letter-spacing: -.02em; margin: 34px 0 6px; }
.debrief .sec-p { color: var(--mut); margin: 0 0 16px; max-width: 720px; }
.d-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: stretch; }
.d-score { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.d-score .g { font: 800 38px/1 var(--display); letter-spacing: -.02em; margin: 4px 0 10px; }
.d-score .sq { font-size: 30px; letter-spacing: 4px; margin: 0 0 8px; }
.d-score table { border-collapse: collapse; font-size: 14px; color: var(--mut); margin: 6px 0 14px; }
.d-score td { padding: 2px 16px 2px 0; } .d-score td:last-child { color: var(--ink); font-family: var(--mono); text-align: right; }
.d-score .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.d-stats { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.d-stats .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; text-align: center; }
.d-stats .nums b { display: block; font: 700 26px var(--mono); } .d-stats .nums span { font-size: 12px; color: var(--mut); }
.dist { display: grid; gap: 4px; }
.dist div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mut); }
.dist i { display: block; height: 18px; border-radius: 4px; background: var(--panel2); font: 600 11px/18px var(--mono); color: var(--ink); padding-left: 6px; font-style: normal; }
.dist i.me { background: var(--thread); }
.tells { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.tell { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; border-top: 4px solid var(--c); }
.tell h4 { margin: 0 0 4px; font: 800 21px var(--display); letter-spacing: -.01em; color: var(--c); }
.tell p { margin: 0 0 10px; color: #ddd6e8; font-size: 14.5px; }
.ev { background: var(--bg2); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.ev .r { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.ev img { width: 26px; height: 26px; border-radius: 50%; }
.ev .m { font-family: var(--mono); font-size: 12.5px; color: var(--mut); }
.ev mark { background: rgba(255,79,163,.25); color: #fff; border-radius: 3px; padding: 0 2px; }
.ev .faces { display: flex; gap: 10px; flex-wrap: wrap; }
.ev .faces figure { margin: 0; text-align: center; font-size: 11.5px; color: var(--mut); } .ev .faces img { width: 54px; height: 54px; display: block; margin-bottom: 3px; }
.ev .mini { display: flex; align-items: flex-end; gap: 1px; height: 26px; width: 120px; }
.ev .mini i { flex: 1; background: var(--c); border-radius: 1px; min-height: 1px; }
.who5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.acct { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; font-size: 13px; }
.acct img { width: 54px; height: 54px; border-radius: 50%; display: block; margin: 0 auto 6px; }
.acct b { display: block; font-size: 13.5px; word-break: break-all; } .acct .hd { font-family: var(--mono); color: var(--mut); font-size: 11.5px; word-break: break-all; }
.acct .st { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 2px 9px; }
.st.ok { background: rgba(62,224,176,.15); color: var(--good); } .st.miss { background: rgba(255,193,94,.14); color: var(--warn); } .st.wr { background: rgba(255,77,94,.16); color: #ff8a96; }
.decoys { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.dec { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; }
.dec.hit { border-color: rgba(255,77,94,.6); background: linear-gradient(0deg, rgba(255,77,94,.06), rgba(255,77,94,.06)), var(--panel); }
.dec img { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px; }
.dec b { font-size: 14.5px; } .dec .hd { font: 400 12px var(--mono); color: var(--mut); }
.dec p { margin: 4px 0 0; font-size: 14px; color: #d8d1e4; }
.dec .yf { color: #ff8a96; font-weight: 700; font-size: 12.5px; }
.motive { background: linear-gradient(120deg, rgba(255,79,163,.12), rgba(244,125,61,.08)); border: 1px solid rgba(255,79,163,.3); border-radius: 18px; padding: 20px 22px; }
.motive h4 { margin: 0 0 6px; font: 800 24px var(--display); }
.motive p { margin: 0 0 8px; color: #e7e0f0; }
.motive .fine { color: var(--mut); font-size: 13.5px; }
.d-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.d-foot .nx { color: var(--mut); font: 500 13px var(--mono); margin-right: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .game { grid-template-columns: 250px minmax(0, 1fr) 340px; }
  .tb-clock span { display: none; }
  .topbar { gap: 12px; }
  .logo { font-size: 20px; }
  .line { min-width: 180px; }
  .tb-case { max-width: 190px; }
  .tb-case span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #exposeBtn { padding: 9px 12px; font-size: 13.5px; }
}
@media (max-width: 940px) {
  body { overflow: auto; }
  .game { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding: 8px 12px 4px; }
  .logo { font-size: 20px; }
  .tb-case { flex: 1; } .tb-case b { font-size: 14px; }
  .line { order: 9; flex: 0 0 100%; max-width: none; min-width: 0; height: 56px; margin: 0; }
  #exposeBtn, #gHelp { display: none; }
  .rail { display: none; }
  .side { position: fixed; left: 0; right: 0; bottom: 0; max-height: 78vh; z-index: 30; background: var(--bg2); border: 1px solid var(--line2); border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.9,.3,1); box-shadow: 0 -20px 60px rgba(0,0,0,.5); padding-top: 8px; }
  .side.open { transform: none; }
  .side::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 3px; background: var(--line2); margin: 0 auto 10px; }
  .side-empty { display: none; }
  .side-x { display: inline-flex; }
  .mtrend { display: block; background: #fff; border: 1px solid var(--cardline); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
  .mtrend .k { font-size: 12.5px; color: var(--amut); margin: 0; } .mtrend h2 { margin: 0; font: 800 20px var(--display); color: var(--hub); } .mtrend p { margin: 4px 0 0; font-size: 14px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(15,13,23,.96); border-top: 1px solid var(--line); }
  .mbar button { flex: 1; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); border-radius: 10px; padding: 10px; font-weight: 600; font-size: 14px; }
  .mbar .go { flex: 1.6; background: var(--brand); color: #1d0c02; border-color: var(--brand); }
  .mbar .go:disabled { opacity: .4; }
  .app-head { padding: 10px 12px; gap: 8px; } .app-name { font-size: 19px; } .app-trend { display: none; }
  .clockstrip { top: 51px; padding: 8px 12px; }
  .feed { padding: 10px 10px 100px; }
  .title::after { background: linear-gradient(180deg, rgba(15,13,23,.55), rgba(15,13,23,.92) 45%); }
  .title { overflow-y: auto; }
  .t-main { flex: none; flex-direction: column-reverse; justify-content: flex-end; align-items: flex-start; gap: 6px; padding: 0 22px 12px; }
  .t-sub { display: none; }
  .t-line { margin-top: 14px; }
  .tb-case span { display: none; }
  .tb-case b { font-size: 13.5px; }
  .mascot { flex: 0 0 auto; flex-direction: row; align-items: flex-end; gap: 10px; width: 100%; justify-content: flex-start; }
  .sock { width: 96px; } .bubble { font-size: 14px; padding: 10px 12px; margin: 0 0 40px; max-width: 220px; } .bubble::after { left: -10px; bottom: 14px; border: 10px solid transparent; border-right-color: var(--ink); border-left: 0; }
  .t-top { padding: 14px 22px; }
  .t-word { font-size: clamp(60px, 19vw, 96px); }
  .t-fine { padding: 10px 22px 16px; }
  .d-head { grid-template-columns: 1fr; }
  .who5 { grid-template-columns: repeat(2, 1fr); }
  .cap { left: 18px; right: 18px; top: 64px; max-width: none; }
  .cap h2 { font-size: 24px; } .cap p { font-size: 14px; }
  .skip { top: 14px; right: 14px; }
  .verdict { min-width: 0; width: calc(100% - 28px); bottom: 14px; padding: 14px 16px 16px; }
  .help-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
