/* Archivo, as on the Fynex Threads/X cards (library: brands/fynex/fonts). */
@font-face { font-family: "Archivo"; src: url(../assets/fonts/Archivo-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(../assets/fonts/Archivo-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url(../assets/fonts/ArchivoBlack-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0F0121;
  --ink2: #15102E;
  --deep: #1B0A38;
  --mint: #9EFBCD;
  --mint-d: #00331A;
  --violet: #964FF7;
  --lilac: #E8D6FF;
  --grey: #F2F2F3;
  --grey2: #E9E9EC;
  --muted: #6E6E79;
  --line: #ECECEF;
  --white: #fff;
  --warn: #FF5A4E;
  --amber: #FFB547;
  --grad-a: #5A4DE4;
  --grad-b: #9D97F2;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--ink); overscroll-behavior: none; touch-action: none;
  -webkit-user-select: none; user-select: none;
}
#app { position: fixed; inset: 0; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
[hidden] { display: none !important; }

/* Tilt-shift: blur bands at top and bottom, like the miniature reference */
.tilt { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.tilt-top { top: 0; height: 26%;
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0,0,0,.6) 45%, transparent 100%);
  mask-image: linear-gradient(#000 0%, rgba(0,0,0,.6) 45%, transparent 100%); }
.tilt-bottom { bottom: 0; height: 22%;
  -webkit-mask-image: linear-gradient(transparent 0%, rgba(0,0,0,.6) 55%, #000 100%);
  mask-image: linear-gradient(transparent 0%, rgba(0,0,0,.6) 55%, #000 100%); }

/* ── HUD ───────────────────────────────────────────── */
#hud { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hud-top { position: absolute; top: calc(var(--safe-t) + 10px); left: 10px; right: 10px;
  display: flex; gap: 8px; align-items: stretch; }
.hud-top > * { background: rgba(15,1,33,.88); color: #fff; border-radius: 14px; padding: 8px 12px; }
.hud-week { display: flex; flex-direction: column; justify-content: center; font-weight: 800; font-size: 15px; line-height: 1.1; }
.hud-week small { font-weight: 500; font-size: 11px; opacity: .65; }
.hud-close { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.hud-close-label { display: flex; justify-content: space-between; font-size: 12px; opacity: .9; }
.hud-close-label b { font-size: 13px; }
.bar { height: 8px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--mint); border-radius: 99px; transition: width .3s; }
.hud-time { font: 800 22px/1 ui-monospace, "SF Mono", Menlo, monospace; display: flex; align-items: center; min-width: 74px; justify-content: center; }
.hud-time.low { background: var(--warn); animation: pulse .6s infinite alternate; }
@keyframes pulse { to { transform: scale(1.06); } }

.tickets { position: absolute; top: calc(var(--safe-t) + 70px); left: 10px; right: 10px;
  display: flex; gap: 6px; overflow: hidden; }
.ticket { flex: 0 0 auto; width: 96px; background: #fff; border-radius: 12px; padding: 7px 8px 8px;
  box-shadow: 0 4px 14px rgba(15,1,33,.18); position: relative; animation: drop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes drop { from { transform: translateY(-30px) rotate(-4deg); } }
.ticket .t-brand { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.ticket .t-dot { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 900; }
.ticket .t-name { font-size: 12px; font-weight: 700; line-height: 1.2; margin: 4px 0 6px; height: 29px; overflow: hidden; }
.ticket .t-steps { display: flex; gap: 3px; margin-bottom: 6px; }
.ticket .t-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--grey2); }
.ticket .t-steps span.done { background: var(--ink); }
.ticket .t-steps span.now { background: var(--violet); }
.ticket .t-timer { height: 5px; border-radius: 3px; background: var(--grey2); overflow: hidden; }
.ticket .t-timer i { display: block; height: 100%; background: var(--mint-d); }
.ticket.warm .t-timer i { background: var(--amber); }
.ticket.late .t-timer i { background: var(--warn); }
.ticket.late { animation: shake .4s infinite; }
.ticket.agent { outline: 2px solid var(--violet); }
.ticket.agent .t-name::after { content: " ⚡"; }
@keyframes shake { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.ticket.out { animation: out .35s forwards; }
@keyframes out { to { transform: translateY(-40px) scale(.8); opacity: 0; } }

.hud-score { position: absolute; left: 10px; bottom: calc(var(--safe-b) + 14px); background: rgba(15,1,33,.88); color: #fff;
  border-radius: 99px; padding: 7px 14px; font-size: 13px; }
.hud-score span { font-weight: 800; font-size: 16px; }
.hud-agents { position: absolute; left: 10px; bottom: calc(var(--safe-b) + 52px); display: flex; gap: 5px; flex-wrap: wrap; max-width: 60%; }
.hud-agents span { background: var(--violet); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 4px 9px; }
.hud-agents span.human { background: var(--amber); color: var(--ink); }
.mute { pointer-events: auto; position: absolute; right: 10px; top: calc(var(--safe-t) + 166px); width: 38px; height: 38px;
  border-radius: 50%; border: 0; background: rgba(15,1,33,.7); color: #fff; font-size: 17px; }
.mute.off { opacity: .45; text-decoration: line-through; }

.act { pointer-events: auto; position: absolute; right: 18px; bottom: calc(var(--safe-b) + 26px);
  width: 104px; height: 104px; border-radius: 50%; border: 0; background: var(--mint); color: var(--ink);
  font: 900 17px/1.1 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; box-shadow: 0 0 0 6px rgba(158,251,205,.35), 0 10px 24px rgba(0,0,0,.3);
  animation: breathe 1s infinite alternate; }
.act:active { transform: scale(.94); }
@keyframes breathe { to { box-shadow: 0 0 0 14px rgba(158,251,205,.15), 0 10px 24px rgba(0,0,0,.3); } }

.toast { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); pointer-events: none;
  font-weight: 900; font-size: 26px; color: #fff; text-shadow: 0 3px 0 var(--ink), 0 6px 18px rgba(0,0,0,.4);
  opacity: 0; white-space: nowrap; }
.toast.show { animation: toast 1s ease-out; }
.toast.good { color: var(--mint); }
.toast.bad { color: var(--warn); }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -120%); } }

/* Joystick */
#joy { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.joy-base { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.5); opacity: 0; transition: opacity .15s; }
.joy-base.on { opacity: 1; }
.joy-knob { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(255,255,255,.9); box-shadow: 0 4px 12px rgba(0,0,0,.25); }

/* ── Screens ───────────────────────────────────────── */
.screen { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--safe-t) + 16px) 16px calc(var(--safe-b) + 16px); background: rgba(15,1,33,.45); overflow-y: auto; touch-action: pan-y; }
.card { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 26px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: -.01em;
  animation: rise .4s cubic-bezier(.2,1.2,.4,1); margin: auto; }
@keyframes rise { from { transform: translateY(30px) scale(.97); } }
.card.center { text-align: center; }
.card.center p:not(.kicker) { text-align: left; }
.hero { background: #fff; color: var(--ink); }
.logo { height: 20px; display: block; margin-bottom: 26px; }
.logo.small { height: 16px; margin-bottom: 16px; }
/* Headlines as on the Fynex Threads/X cards: Archivo Black, tight, gradient payoff. */
h1, h2 { font-family: "Archivo Black", "Archivo", -apple-system, sans-serif; font-weight: 400; }
h1 { font-size: 50px; line-height: .95; margin: 0 0 16px; letter-spacing: -.045em; color: var(--ink); }
h2 { font-size: 26px; line-height: 1.05; margin: 4px 0 10px; letter-spacing: -.035em; }
h1 em, h2 em { font-style: normal; background: linear-gradient(180deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
p { font-size: 15px; line-height: 1.5; margin: 0 0 16px; max-width: 60ch; }
.lede { color: var(--muted); font-weight: 500; }
.sub { color: var(--muted); }
.kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.kicker.warn { color: var(--warn); }
.kicker.mint { color: var(--mint); }
.fine { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.fine { font-weight: 500; }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 17px 16px; font: 600 17px/1 "Archivo", -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer;
  background: var(--grey); color: var(--ink); }
.btn.primary { background: linear-gradient(180deg, var(--grad-a), var(--grad-b)); color: #fff; }
.btn.ghost { background: transparent; border: 2px solid var(--grey2); }
.share-note { text-align: center; max-width: none; }
.btn:disabled { opacity: .4; }
.btn:active { transform: scale(.98); }
.row { display: flex; gap: 8px; margin-top: 10px; }

.avatars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 18px; }
.avatar { border: 2px solid var(--line); border-radius: 16px; padding: 12px 10px; background: #fff; text-align: left; font-family: inherit; color: var(--ink); cursor: pointer; }
.avatar.on { border-color: var(--grad-a); box-shadow: 0 0 0 3px rgba(90,77,228,.15); }
.avatar img { width: 100%; aspect-ratio: 1; display: block; border-radius: 10px; background: var(--grey); margin-bottom: 8px; }
.avatar b { display: block; font-size: 15px; font-weight: 600; }
.avatar small { color: var(--muted); font-size: 12px; }

/* ── Join form (title card) ───────────────────────── */
.join input { display: block; width: 100%; font-size: 16px; font-family: inherit; font-weight: 500; padding: 14px; border: 2px solid var(--line); border-radius: 12px;
  margin-bottom: 8px; background: #fff; color: var(--ink); -webkit-user-select: text; user-select: text; }
.join input::placeholder { color: var(--muted); }
.join input:focus { outline: none; border-color: var(--grad-a); }
.join .btn { margin-top: 6px; }
.hero .err { margin: 0 0 8px; }
.welcome .lede b { color: var(--ink); }
.link { display: block; margin: 12px auto 0; border: 0; background: none; padding: 4px; font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: inherit; opacity: .7; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── How-to-play cards ─────────────────────────────── */
.guide { padding: 20px 0 22px; overflow: hidden; }
.guide-top { display: flex; justify-content: space-between; align-items: center; padding: 0 22px; }
.guide-top .kicker { margin: 0; }
.guide-top .link { margin: 0; color: var(--muted); }
.guide-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x; }
.guide-track::-webkit-scrollbar { display: none; }
.guide-card { flex: 0 0 100%; scroll-snap-align: start; padding: 14px 22px 0; }
.guide-card h2 { font-size: 23px; }
.guide-card p { margin-bottom: 0; color: var(--muted); font-weight: 500; }
.guide-art { height: 150px; border-radius: 18px; background: var(--ink); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; overflow: hidden; }
.art-tickets .ticket { animation: none; width: 140px; }
.art-tickets .t-st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.art-tickets .ticket.warm { transform: rotate(3deg); }
.art-move { gap: 34px; }
.g-joy { width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.45); position: relative; }
.g-joy i { position: absolute; width: 42px; height: 42px; left: 25px; top: 25px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(20px, -14px); } 65% { transform: translate(-16px, 10px); } }
.g-act { width: 84px; height: 84px; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-content: center; text-align: center; font-weight: 900; font-size: 15px; line-height: 1.1;
  box-shadow: 0 0 0 6px rgba(158,251,205,.3); animation: breathe 1s infinite alternate; }
.g-act small { font-size: 10px; font-weight: 700; opacity: .7; }
.art-desks { height: auto; padding: 10px 12px; justify-content: flex-start; }
.g-desks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.g-desks li { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); font-size: 13px; }
.g-desks li b { color: #fff; min-width: 82px; }
.g-desks span { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 900; flex: 0 0 auto; }
.art-close { gap: 8px; padding: 0 18px; }
.g-hud, .g-time { background: rgba(255,255,255,.1); color: #fff; border-radius: 14px; padding: 10px 12px; }
.g-hud { flex: 1; display: grid; gap: 7px; }
.g-hud div:first-child { display: flex; justify-content: space-between; font-size: 12px; }
.g-hud .bar i { background: var(--mint); }
.g-time { font: 800 22px/1 ui-monospace, "SF Mono", Menlo, monospace; padding: 16px 12px; background: var(--warn); animation: pulse .6s infinite alternate; }
.guide-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 14px; }
.guide-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--grey2); transition: width .2s, background .2s; }
.guide-dots i.on { width: 20px; background: var(--ink); }
.guide > .btn { width: calc(100% - 44px); margin: 0 22px; }

.upgrades { display: grid; gap: 10px; }
.up { text-align: left; border: 2px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; font-family: inherit; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; }
.up:active { transform: scale(.98); }
.up .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.up.agent .ic { background: linear-gradient(180deg, var(--grad-a), var(--grad-b)); color: #fff; }
.up.human .ic { background: var(--grey); }
.up b { color: var(--ink); display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.up span span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }
.up em { font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.finale { background: transparent; align-items: flex-start; pointer-events: none; }
.finale-copy { margin-top: 18vh; text-align: center; color: #fff; text-shadow: 0 4px 20px rgba(15,1,33,.7); padding: 0 16px; }
.finale-copy h2 { font-size: 32px; }
.finale-count { margin-top: 14px; display: inline-flex; flex-direction: column; background: rgba(15,1,33,.85); border-radius: 18px; padding: 12px 22px; }
.finale-count b { font-size: 44px; color: var(--mint); line-height: 1; }
.finale-count span { font-size: 13px; opacity: .8; }

.err { color: var(--warn); font-size: 13px; margin: 8px 0 0; }


/* ── Mini-game sheet ───────────────────────────────── */
#mg { position: absolute; inset: 0; z-index: 8; display: flex; align-items: flex-end; background: rgba(15,1,33,.25); }
.mg-sheet { width: 100%; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 24px 24px 0 0;
  padding: 16px 16px calc(var(--safe-b) + 20px); animation: sheet .22s cubic-bezier(.2,1.1,.4,1); box-shadow: 0 -10px 40px rgba(0,0,0,.3); }
@keyframes sheet { from { transform: translateY(100%); } }
.mg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mg-brand { display: flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 9px; border-radius: 10px; color: #fff; font-weight: 900; font-size: 13px; }
.mg-brand img { width: 22px; height: 22px; }
.mg-title { flex: 1; font-weight: 800; font-size: 17px; line-height: 1.2; }
.mg-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--grey); font-size: 20px; }
.mg-q { background: var(--grey); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.mg-q small { display: block; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.mg-q b { font-size: 19px; display: block; }
.mg-q span { font-size: 14px; color: var(--muted); }
.mg-opts { display: grid; gap: 8px; }
.mg-opts.two { grid-template-columns: 1fr 1fr; }
.mg-opt { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 12px; font: 700 16px/1.25 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; text-align: left; cursor: pointer; min-height: 56px; }
.mg-opt small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.mg-opt:active { transform: scale(.97); }
.mg-opt.right { border-color: #18B26B; background: #E7FBF1; }
.mg-opt.wrong { border-color: var(--warn); background: #FFECEA; animation: shake .3s 2; }
.mg-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: center; max-width: none; }

.split-track { position: relative; height: 64px; background: var(--grey); border-radius: 14px; margin: 6px 0 12px; overflow: hidden; }
.split-zone { position: absolute; top: 0; bottom: 0; background: rgba(24,178,107,.25); border-left: 2px solid #18B26B; border-right: 2px solid #18B26B; }
.split-needle { position: absolute; top: 6px; bottom: 6px; width: 6px; margin-left: -3px; border-radius: 3px; background: var(--ink); }
.split-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: -6px; margin-bottom: 12px; }
.split-readout { text-align: center; font: 800 22px/1 ui-monospace, Menlo, monospace; margin-bottom: 12px; }

.sign-wrap { display: grid; place-items: center; padding: 8px 0 4px; }
.sign-btn { width: 150px; height: 150px; border-radius: 50%; border: 0; position: relative; background: var(--ink); color: #fff; font: 900 17px/1.2 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; touch-action: none; }
.sign-btn svg { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); transform: rotate(-90deg); }
.sign-btn circle { fill: none; stroke: var(--mint); stroke-width: 8; stroke-linecap: round; }
.checks { display: grid; gap: 6px; margin-bottom: 14px; }
.checks div { font-size: 14px; display: flex; gap: 8px; align-items: center; color: var(--muted); }
.checks div i { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--grey2); flex: 0 0 auto; }
.checks div.ok { color: var(--ink); }
.checks div.ok i { background: #18B26B; border-color: #18B26B; }

@media (min-width: 700px) {
  .ticket { width: 120px; }
  .tickets { justify-content: center; }
}

#hud.finale-mode .hud-top, #hud.finale-mode .hud-score, #hud.finale-mode .hud-agents, #hud.finale-mode .act, #hud.finale-mode .toast { display: none; }
#hud.finale-mode .tickets { top: auto; bottom: calc(var(--safe-b) + 18px); }

/* The soft-3D post stack draws its own lens blur; the CSS blur bands are the fallback. */
body.post-on .tilt { display: none; }

/* ── Results: the Fynex Threads/X card look ───────── */
.results { padding: 24px 22px 18px; font-family: "Archivo", -apple-system, sans-serif; letter-spacing: -.01em; }
.res-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; }
.res-logo { height: 17px; display: block; }
.res-head span { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.res-kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.res-title { font-family: "Archivo Black", "Archivo", sans-serif; font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -.04em; margin: 0; }
.res-title em { font-style: normal; display: block; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 2px; }
.res-sub { font-size: 14px; font-weight: 500; color: var(--muted); margin: 10px 0 18px; }
.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--line); border-radius: 18px; margin-bottom: 14px; }
.res-stats div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.res-stats div + div { border-left: 2px solid var(--line); }
.res-stats b { font-family: "Archivo Black", "Archivo", sans-serif; font-weight: 400; font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.res-stats span { font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.2; }

.board { border: 2px solid var(--line); border-radius: 18px; padding: 14px 14px 8px; margin-bottom: 20px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.board-head h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.board-head small { font-size: 12px; font-weight: 500; color: var(--muted); }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; font-weight: 500; border-top: 1px solid var(--line); }
.board li:first-child { border-top: 0; }
.board li i { width: 18px; font-style: normal; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.board li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.board li.me span, .board li.me i { color: var(--ink); font-weight: 600; }
.board li.me b { background: linear-gradient(180deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.board li em { font-style: normal; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #fff;
  background: linear-gradient(180deg, var(--grad-a), var(--grad-b)); border-radius: 99px; padding: 3px 7px; margin-left: 6px; vertical-align: 1px; }
.board li.gap { justify-content: center; color: var(--muted); padding: 2px 0; letter-spacing: .2em; border-top: 0; }
.board-note { font-size: 13px; font-weight: 500; color: var(--muted); margin: 4px 0 8px; max-width: none; }

.res-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; max-width: none; }
.share-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share { border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 0 10px; font: 600 12px/1.2 "Archivo", -apple-system, sans-serif; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; transition: border-color .15s, transform .15s; }
.share .ic { width: 26px; height: 26px; background: var(--ink); -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.share:active { transform: scale(.95); border-color: var(--grad-b); }
.share:disabled { opacity: .4; }
.share.linkedin { --glyph: url(../assets/linkedin.svg); }
.share.instagram { --glyph: url(../assets/instagram.svg); }
.share.x { --glyph: url(../assets/x.svg); }
.share.threads { --glyph: url(../assets/threads.svg); }
.share-note { font-size: 13px; font-weight: 500; text-align: center; margin: 10px 0 0; max-width: none; color: var(--ink); }
.btn.res-again { margin-top: 16px; background: linear-gradient(180deg, var(--grad-a), var(--grad-b)); color: #fff; font-family: "Archivo", -apple-system, sans-serif; font-weight: 600; font-size: 17px; }
.res-me { font-size: 12px; font-weight: 500; color: var(--muted); text-align: center; margin: 12px 0 0; max-width: none; }
.res-me .link { display: inline; margin: 0; padding: 0; font-size: 12px; color: var(--muted); }
