/* ============================================================
   subpage.css — shared styles for Streaum / Playum detail pages
   Accent switches via body class: .sp-streaum (lime) / .sp-playum (cyan)
   ============================================================ */
.sp-streaum { --accent: #5BC500; --accent-rgb: 91,197,0; }
.sp-playum  { --accent: #22D3EE; --accent-rgb: 34,211,238; }

/* ---------- nav ---------- */
.sp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s; }
.sp-nav.scrolled { background: rgba(10,7,18,.82); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.sp-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sp-brand { display: flex; align-items: center; gap: 10px; }
.sp-brand img { height: 46px; width: auto; filter: drop-shadow(0 0 12px rgba(91,197,0,.32)); }
.sp-pill { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--accent); border: 1px solid rgba(var(--accent-rgb),.4); background: rgba(var(--accent-rgb),.1);
  padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.sp-nav-links { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
.sp-nav-links a { padding: 8px 11px; color: var(--tx2); border-radius: 7px; transition: color .2s, background .2s; white-space: nowrap; }
.sp-nav-links a:hover { color: var(--tx); background: rgba(168,85,247,.08); }
.sp-nav-actions { display: flex; align-items: center; gap: 12px; }
.sp-lang { display: flex; align-items: center; gap: 5px; background: transparent; border: 1px solid var(--line2);
  color: var(--tx2); font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 6px 10px;
  border-radius: 7px; cursor: pointer; transition: border-color .2s, color .2s; }
.sp-lang:hover { color: var(--tx); border-color: var(--accent); }
.sp-lang .sep { opacity: .4; }
.sp-cross { font-size: 13.5px; font-weight: 600; color: var(--tx2); padding: 8px 12px; border: 1px solid var(--line2); border-radius: 8px; transition: color .2s, border-color .2s; white-space: nowrap; }
.sp-cross:hover { color: var(--accent); border-color: var(--accent); }
.sp-burger { display: none; flex-direction: column; gap: 5px; background: transparent; border: 1px solid var(--line2); border-radius: 8px; padding: 10px; cursor: pointer; }
.sp-burger span { width: 18px; height: 2px; background: var(--tx); border-radius: 2px; }
.sp-mobile { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(10,7,18,.97);
  backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); padding: 14px var(--pad-x) 20px; flex-direction: column; gap: 2px; }
.sp-mobile.open { display: flex; }
.sp-mobile a { padding: 12px 6px; color: var(--tx); font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line); }

/* ---------- shared section primitives ---------- */
.sp-section { position: relative; z-index: 2; padding: clamp(70px,9vh,120px) 0; border-top: 1px solid var(--line); }
.sp-eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 9px; }
.sp-eyebrow .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: livepulse 1.6s infinite; }
.sp-h2 { font-size: clamp(28px,4vw,48px); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; margin: 0 0 18px; max-width: 820px; }
.sp-h2 .grad { background: linear-gradient(100deg, var(--accent), var(--cyan) 55%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: hueline 6s linear infinite; }
.sp-lead { font-size: clamp(15px,1.3vw,17.5px); color: var(--tx2); line-height: 1.62; max-width: 580px; margin: 0 0 44px; }

/* ---------- glass card ---------- */
.glass { background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--pink); }
.live-badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); animation: livepulse 1.4s infinite; }
.chip-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--accent); }
.chip-status .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: livepulse 1.6s infinite; }

/* ---------- hero ---------- */
.sp-hero { position: relative; z-index: 2; padding: calc(var(--nav-h) + 52px) 0 60px; }
.sp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sp-back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--tx3); margin-bottom: 22px; transition: color .2s; }
.sp-back:hover { color: var(--accent); }
.sp-hero h1 { font-size: clamp(36px,5.4vw,64px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin: 0 0 18px; }
.sp-hero h1 .grad { background: linear-gradient(100deg, var(--accent), var(--cyan) 55%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: hueline 5s linear infinite; }
.sp-kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; color: var(--cyan); margin: 0 0 16px; }
.sp-hero .sub { font-size: clamp(15px,1.5vw,18px); color: var(--tx2); line-height: 1.62; max-width: 520px; margin: 0 0 32px; }
.sp-hero .sub b { color: var(--tx); font-weight: 600; }
.sp-cta { display: flex; gap: 13px; flex-wrap: wrap; }
.sp-card-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sp-card-head .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--tx2); font-weight: 600; }
.viz { position: relative; width: 100%; }
.viz canvas { display: block; width: 100%; }
.chat-feed { height: 64px; padding: 8px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; overflow: hidden; border-top: 1px solid var(--line); }
.chat-row { display: flex; align-items: baseline; gap: 6px; font-size: 12px; line-height: 1.3; }
.chat-row .u { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; flex-shrink: 0; }
.chat-row .c { color: #cfc8e0; }

/* ---------- generic card grids ---------- */
.sp-grid { display: grid; gap: 16px; margin-top: 18px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.sp-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.sp-tile:hover { border-color: var(--line2); transform: translateY(-3px); }
.sp-tile.accent-hover:hover { border-color: var(--accent); box-shadow: 0 14px 40px rgba(var(--accent-rgb),.18); }
.sp-no { font-family: var(--font-mono); font-size: 26px; font-weight: 500; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.sp-tile h4 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.sp-tile p { font-size: 13.5px; color: var(--tx2); line-height: 1.6; margin: 0; }
.sp-tile .b { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.b-lime { color: var(--lime); } .b-cyan { color: var(--cyan); } .b-purple { color: var(--purple); } .b-pink { color: var(--pink); }
.sp-tile ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sp-tile li { font-size: 13px; color: var(--tx2); line-height: 1.5; padding-left: 16px; position: relative; }
.sp-tile li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--accent); }

/* ---------- stat counters ---------- */
.sp-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.sp-stat .num { font-family: var(--font-mono); font-size: clamp(26px,3vw,38px); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.sp-stat .lab { font-size: 12.5px; color: var(--tx2); margin-top: 10px; line-height: 1.45; }
.n-lime { color: var(--lime); } .n-cyan { color: var(--cyan); } .n-purple { color: var(--purple); } .n-pink { color: var(--pink); }

/* ---------- pills (supported games / triple-A) ---------- */
.sp-pills { display: flex; flex-direction: column; gap: 10px; }
.pill-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.pill-row .nm { font-weight: 600; font-size: 14.5px; }
.pill-row .st { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--tx2); }
.pill-row .st .dot { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- roadmap / pipeline ---------- */
.sp-track { position: relative; margin-top: 24px; padding-top: 30px; }
.sp-track-line { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.sp-track-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--cyan)); box-shadow: 0 0 12px rgba(var(--accent-rgb),.6); transition: width 1.8s var(--ease); }
.sp-track-nodes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.sp-node { position: relative; }
.sp-node::before { content: ""; position: absolute; top: -24px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line2); }
.sp-node.active::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); }
.sp-node .nt { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--tx); }
.sp-node.muted .nt { color: var(--tx3); }
.sp-node .ns { font-size: 11px; color: var(--tx3); margin-top: 3px; }

/* ---------- segmented / progress bars ---------- */
.seg-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 6px 0 14px; }
.seg-bar i { display: block; height: 100%; }
.prog { margin: 10px 0; }
.prog .pl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--tx2); margin-bottom: 5px; }
.prog .pb { height: 9px; background: rgba(255,255,255,.05); border-radius: 6px; overflow: hidden; }
.prog .pf { height: 100%; border-radius: 6px; }

/* ---------- CTA + footer ---------- */
.sp-final { position: relative; z-index: 2; border-top: 1px solid var(--line); overflow: hidden; padding: clamp(80px,12vh,140px) 0 0; text-align: center; }
.sp-final::after { content: ""; position: absolute; left: 50%; bottom: -120px; transform: translateX(-50%); width: 1000px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb),.12), transparent 65%); pointer-events: none; }
.sp-final h2 { font-size: clamp(30px,4.6vw,56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 30px; }
.sp-final h2 .grad { background: linear-gradient(100deg, var(--accent), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-final .sp-cta { justify-content: center; }
.sp-footer { position: relative; z-index: 2; padding: 70px 0 40px; }
/* full-site map (so detail pages expose the whole structure) */
.sp-sitemap { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr 1.1fr; gap: 36px; padding-bottom: 34px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.ssm-brand .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; }
.ssm-brand .brand img { height: 32px; }
.ssm-brand p { margin: 16px 0 0; font-size: 13px; color: var(--tx2); line-height: 1.65; max-width: 320px; }
.ssm-col h6 { font-family: var(--font-mono); font-size: 11px; color: var(--tx3); text-transform: uppercase; letter-spacing: .16em; margin: 0 0 14px; font-weight: 600; }
.ssm-col a { display: block; font-size: 13.5px; color: var(--tx2); padding: 6px 0; transition: color .2s; }
.ssm-col a:hover, .ssm-col a[aria-current="page"] { color: var(--accent); }
.sp-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sp-foot-row .legal { font-family: var(--font-mono); font-size: 12px; color: var(--tx3); }
@media (max-width: 760px) { .sp-sitemap { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 480px) { .sp-sitemap { grid-template-columns: 1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .sp-nav-links, .sp-nav-actions { display: none; }
  .sp-burger { display: flex; }
}
@media (max-width: 860px) {
  .sp-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --pad-x: 18px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .sp-track-nodes { grid-auto-flow: row; grid-auto-columns: auto; gap: 22px; }
  .sp-node::before { top: 50%; left: -22px; transform: translateY(-50%); }
  .sp-track-line { left: -16px; top: 0; bottom: 0; right: auto; width: 2px; height: auto; }
  .sp-track-fill { width: 100% !important; height: 0; transition: height 1.8s var(--ease); }
}
