/* VamTimbo's Mocap Studio — motion-capture stage look.
   Single dark visual world: near-black violet-biased ground, coral key light,
   cyan rim light (sparingly), violet-grey neutrals. */
:root {
  --bg:        #0b0c12;
  --bg-2:      #0e1018;
  --surface:   #161926;
  --surface-2: #1d2132;
  --line:      rgba(255,255,255,0.075);
  --line-strong: rgba(255,255,255,0.14);

  --text:      #eceef7;
  --text-dim:  #9a9db6;
  --text-mute: #676a83;

  --coral:     #ff6a53;
  --coral-2:   #ff8a63;
  --coral-soft: rgba(255,106,83,0.13);
  --cyan:      #5fd0dd;

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1180px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > .wrap, body > .hero, body > .denied { flex: 1 0 auto; }
a { color: inherit; }
button { font-family: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }
.mono-inline { font-family: var(--font-mono); color: var(--text); }
.sig { color: var(--text); font-weight: 600; }

/* ============================ VERIFY / LANDING ============================ */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
#markers { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% 108%, var(--coral-soft), transparent 55%),
    radial-gradient(90% 80% at 92% -10%, rgba(95,208,221,0.08), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 96px 0; }

.wordmark { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.wordmark.nomargin { margin: 0; }
.wordmark .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 18px 2px rgba(255,106,83,0.6); flex: none; }
.wordmark .name { font-weight: 700; letter-spacing: .02em; font-size: 15px; }
.wordmark .name b { color: var(--coral); font-weight: 700; }
.wordmark .sub { color: var(--text-mute); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 22px;
}
h1.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.06; letter-spacing: -0.03em; font-weight: 800;
  margin: 0 0 22px; text-wrap: balance;
}
h1.hero-title em { font-style: normal; color: var(--coral); }
.lede { font-size: 1.22rem; color: var(--text-dim); max-width: 62ch; margin: 0 0 38px; }

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-verify {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--coral); color: #1a0a06; border: 0;
  padding: 15px 26px; border-radius: 11px; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: .01em; text-decoration: none;
  box-shadow: 0 10px 34px -8px rgba(255,106,83,0.55);
  transition: transform .16s, box-shadow .16s;
}
.btn-verify:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(255,106,83,0.7); }
.btn-verify svg { width: 18px; height: 18px; }
.cta-note { font-size: 13px; color: var(--text-mute); max-width: 30ch; }

.trust {
  margin-top: 46px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 720px;
}
.trust .cell { background: var(--bg-2); padding: 20px 22px; }
.trust .k { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; margin-bottom: 5px; }
.trust .k svg { width: 15px; height: 15px; color: var(--cyan); flex: none; }
.trust .v { font-size: 12.5px; color: var(--text-mute); line-height: 1.5; }
.trust .v b { color: var(--text-dim); }

/* ============================ GALLERY ============================ */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.topbar .row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; flex-wrap: wrap; }
.greet { display: flex; align-items: center; gap: 12px; }
.greet .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--coral), #b4342a);
  display: grid; place-items: center; font-weight: 700; color: #200a06; font-size: 15px;
}
.greet .who { font-size: 14px; }
.greet .who .n { font-weight: 680; }
.greet .who .t {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--cyan);
}
.greet .who .t::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--cyan); box-shadow:0 0 8px var(--cyan); }
.greet .logout { margin-left: 10px; font-size: 12px; color: var(--text-mute); text-decoration: none; border-bottom: 1px dotted var(--text-mute); }
.greet .logout:hover { color: var(--text-dim); }

.gallery-head { padding: 40px 0 22px; }
.gallery-head .eyebrow { margin-bottom: 12px; }
.gallery-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 6px; font-weight: 780; }
.gallery-head p { color: var(--text-mute); margin: 0; font-size: 14px; }

.controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 30px; }
.search { position: relative; flex: 1 1 320px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-mute); }
.search input {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 12px 14px 12px 40px; font-size: 14px;
  outline: none; transition: border-color .16s, box-shadow .16s;
}
.search input::placeholder { color: var(--text-mute); }
.search input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
select.sort {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px 38px 12px 14px; font-size: 14px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23676a83' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center;
}
select.sort:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.btn-go {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px 18px; font-size: 14px; cursor: pointer;
}
.count-label { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); letter-spacing: .04em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.8); }

.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.thumb .playlink {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; text-decoration: none;
}
.thumb .playlink span {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(10,11,16,0.55); border: 1px solid rgba(255,255,255,0.25);
  display: grid; place-items: center; backdrop-filter: blur(3px);
  transition: transform .18s, background .18s, border-color .18s;
}
.thumb .playlink svg { width: 17px; height: 17px; margin-left: 2px; color: #fff; }
.card:hover .thumb .playlink span { transform: scale(1.08); background: var(--coral); border-color: var(--coral); }
.card:hover .thumb .playlink svg { color: #1a0a06; }
.thumb .tc {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em;
  color: #dfe1ee; background: rgba(9,10,16,0.7); padding: 2px 7px; border-radius: 5px;
}

.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.card-title { font-size: 15px; font-weight: 660; letter-spacing: -0.01em; line-height: 1.25; }
.meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.meta .date { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mute); letter-spacing: .03em; }
.meta .dl { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.meta .dl svg { width: 12px; height: 12px; color: var(--text-mute); }

.btn-dl {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--coral-soft); color: var(--coral); border: 1px solid rgba(255,106,83,0.3);
  padding: 10px; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
  font-size: 13px; font-weight: 650; letter-spacing: .01em;
  transition: background .16s, color .16s;
}
.btn-dl:hover { background: var(--coral); color: #1a0a06; }
.btn-dl svg { width: 15px; height: 15px; }

.empty { text-align: center; padding: 70px 20px; color: var(--text-mute); }

.pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 42px 0 70px; flex-wrap: wrap; }
.pager .pg {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-dim);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none;
  transition: color .16s, border-color .16s, background .16s;
}
.pager a.pg:hover { color: var(--text); border-color: var(--line-strong); }
.pager .pg.current { background: var(--coral); color: #1a0a06; border-color: var(--coral); }

/* ============================ DENIED ============================ */
.denied { min-height: 620px; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.denied-card { max-width: 480px; }
.denied .glyph {
  width: 74px; height: 74px; border-radius: 20px; margin: 0 auto 26px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong);
}
.denied .glyph svg { width: 32px; height: 32px; color: var(--coral); }
.denied h2 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 760; }
.denied p { color: var(--text-dim); margin: 0 auto 30px; max-width: 40ch; }
.btn-join {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--coral); color: #1a0a06; border: 0; padding: 14px 24px;
  border-radius: 11px; cursor: pointer; font-size: 14.5px; font-weight: 700;
  text-decoration: none;
}
.denied-alt { margin-top: 18px; font-size: 13px; }
.denied-alt a { color: var(--text-mute); }
.denied-alt a:hover { color: var(--text-dim); }

footer.foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--text-mute); font-size: 12.5px; flex-shrink: 0; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer.foot .mono { font-family: var(--font-mono); letter-spacing: .06em; }

@media (max-width: 640px) {
  .trust { grid-template-columns: 1fr; }
  .hero-inner { padding: 60px 0; }
  .count-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================ COMMUNITY ============================ */
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 7px 14px; border-radius: 8px; text-decoration: none; color: var(--text-dim); font-weight: 600; font-size: 13.5px; }
.topnav a:hover { color: var(--text); }
.topnav a.active { background: var(--surface); color: var(--text); }
.greet .handle { font-family: var(--font-mono); font-size: 13px; color: var(--cyan); font-weight: 600; }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: #1a0a06; border: 0; border-radius: 9px; padding: 10px 18px; font-weight: 700; cursor: pointer; font: inherit; font-size: 14px; margin-top: 10px; text-decoration: none; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--line); }

.flash { padding: 11px 15px; border-radius: 10px; margin: 0 0 18px; font-weight: 600; font-size: 14px; }
.flash.ok { background: rgba(95,208,221,.12); color: var(--cyan); border: 1px solid rgba(95,208,221,.3); }
.flash.err { background: var(--coral-soft); color: var(--coral); border: 1px solid rgba(255,106,83,.3); }
.muted-note { color: var(--text-mute); font-size: 14px; padding: 14px 2px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.panel h3, .board-title { font-size: 15px; margin: 0 0 12px; color: var(--text); }
.board-title { margin: 26px 0 12px; }
.post-form textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 14px; resize: vertical; }
.post-form textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.side-note { color: var(--text-mute); font-size: 12.5px; margin: 0 0 10px; }

.community-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; padding-bottom: 60px; }
@media (max-width: 820px) { .community-grid { grid-template-columns: 1fr; } }

.requests { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.request { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.vote { margin: 0; }
.votebtn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 48px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 6px; color: var(--text-dim); cursor: pointer; font-weight: 700; font-size: 13px; line-height: 1; }
.votebtn span { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.votebtn:hover { border-color: var(--coral); color: var(--coral); }
.votebtn.voted { background: var(--coral); color: #1a0a06; border-color: var(--coral); }
.request-body { flex: 1; min-width: 0; }
.request-text { white-space: pre-wrap; overflow-wrap: break-word; font-size: 14px; margin-bottom: 6px; }
.request-meta { font-size: 12px; color: var(--text-mute); font-family: var(--font-mono); }
.inline-del { display: inline; margin: 0; }
.inline-del button { background: none; border: 0; color: var(--text-mute); cursor: pointer; font: inherit; font-size: 12px; text-decoration: underline; padding: 0; }
.inline-del button:hover { color: var(--coral); }

/* handle page */
.handle-page { min-height: 70vh; display: grid; place-items: center; padding: 40px 24px; }
.handle-card { max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px 30px; }
.handle-card .eyebrow { margin-bottom: 10px; }
.handle-card h1 { font-size: 1.7rem; margin: 0 0 12px; letter-spacing: -.02em; }
.handle-card p { color: var(--text-dim); font-size: 14px; margin: 0 0 20px; }
.handle-input { display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.handle-input span { color: var(--text-mute); font-size: 16px; }
.handle-input input { flex: 1; background: none; border: 0; color: var(--text); padding: 12px 6px; font: inherit; font-size: 16px; outline: none; }
.handle-input:focus-within { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.hint { color: var(--text-mute); font-size: 12px; margin: 7px 2px 16px; }
.back { display: inline-block; margin-top: 16px; color: var(--text-mute); font-size: 13px; text-decoration: none; }
.back:hover { color: var(--text-dim); }

/* scene detail */
.scene-detail { padding-top: 26px; max-width: 820px; padding-bottom: 60px; }
.scene-head h2 { font-size: 1.7rem; letter-spacing: -.02em; margin: 14px 0 4px; }
.scene-sub { color: var(--text-mute); font-family: var(--font-mono); font-size: 13px; margin-bottom: 16px; }
.scene-player { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px; }
.scene-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.btn-dl.big { max-width: 260px; padding: 13px; font-size: 14px; }
.comments-title { font-size: 1.1rem; margin: 34px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.comment-form { margin-bottom: 22px; }
.join-hint { color: var(--text-mute); font-size: 14px; margin-bottom: 20px; }
.join-hint a { color: var(--coral); }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.comment-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 10px; }
.c-handle { font-weight: 700; color: var(--cyan); font-size: 13.5px; }
.creator-badge { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #1a0a06; background: var(--coral); padding: 1px 7px; border-radius: 5px; vertical-align: middle; }
.c-when { font-size: 12px; color: var(--text-mute); font-family: var(--font-mono); }
.comment-body { white-space: pre-wrap; overflow-wrap: break-word; font-size: 14px; margin-bottom: 10px; }
.reactions { display: flex; gap: 6px; flex-wrap: wrap; }
.react { margin: 0; }
.reactbtn { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; cursor: pointer; font-size: 13px; color: var(--text-dim); line-height: 1.4; }
.reactbtn span { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; }
.reactbtn:hover { border-color: var(--coral); }
.reactbtn.mine { background: var(--coral-soft); border-color: rgba(255,106,83,.4); color: var(--coral); }

/* gallery card discuss link */
.meta-right { display: inline-flex; align-items: center; gap: 12px; }
.discuss { font-size: 11.5px; color: var(--text-mute); text-decoration: none; font-family: var(--font-mono); }
.discuss:hover { color: var(--text-dim); }
