:root {
  --bg: #0b0f1a;
  --surface: #151b2b;
  --text: #e8ecf5;
  --muted: #9aa4b8;
  --accent: #6342e8;
  --accent-hover: #5232d4;
  --accent-soft: #a894ff;
  --accent-2: #22d3ee;
  --border: #26314c;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .4);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.embed-body { overflow: hidden; height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--text); margin: 0 0 12px; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; max-width: 70ch; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* Header */
.site-header {
  background: rgba(11, 15, 26, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.site-nav a:hover { color: var(--accent-2); text-decoration: none; }

/* Hero & Game Stage */
.hero-stage-section { padding: 24px 0 48px; }
.hero-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.hero-bar h1 { margin-bottom: 4px; }
.hero-tagline { margin: 0; color: var(--muted); font-size: 16px; }
.vu-bars { display: flex; align-items: flex-end; gap: 5px; height: 26px; }
.vu-bars i {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--accent-2);
}
.vu-bars i:nth-child(1) { height: 12px; }
.vu-bars i:nth-child(2) { height: 22px; background: var(--accent-soft); }
.vu-bars i:nth-child(3) { height: 16px; }
.vu-bars i:nth-child(4) { height: 26px; background: var(--accent-soft); }
.vu-bars i:nth-child(5) { height: 14px; }

.player-frame-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  background: var(--bg);
  overflow: hidden;
}
.stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 4;
}
[data-gf-state="loading"] .cover,
[data-gf-state="playing"] .cover,
[data-gf-state="playing"] .loader {
  display: none !important;
}
.cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-overlay-card {
  position: relative;
  z-index: 2;
  background: rgba(11, 15, 26, .9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 90%;
}
.cover-pill { font-size: 12px; font-weight: 600; color: var(--accent-2); letter-spacing: .04em; }
.cover-meta { font-size: 12px; color: var(--muted); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.play-btn { min-height: 52px; padding: 0 36px; font-size: 18px; }
.btn-primary:focus-visible, .btn-ghost:focus-visible, .text-btn:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.like-btn[data-gf-liked], .like-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

/* Spinning Vinyl CSS Loader */
.loader {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 3;
}
[data-gf-state="loading"] .loader { display: flex; }
.vinyl-spinner {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #151b2b 0px, #151b2b 4px, #26314c 5px, #151b2b 6px);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinDisc 1.1s linear infinite;
}
.vinyl-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-2);
}
.vinyl-core {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
}
@keyframes spinDisc { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loader-label { margin: 0; font-weight: 600; color: var(--muted); }

/* Action Bar */
.engage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.engage-left { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share-status { font-size: 13px; color: var(--accent-2); font-weight: 600; }

/* Sections */
.block { padding: 56px 0; }
.block-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.track-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.block-lead { color: var(--muted); font-size: 17px; margin-bottom: 24px; }

.sleeve-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
.sleeve-spec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.spec-dl { margin: 0; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); font-weight: 600; }
.spec-row dd { margin: 0; font-weight: 600; text-align: right; }

.scale-figure { margin: 0 0 28px; }
.scale-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.scale-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.rule-rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.rule-row {
  display: flex;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.rule-idx {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rule-row p { margin: 0; font-size: 15px; color: var(--muted); }

/* Liner Modes */
.liner-modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.liner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.liner-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.liner-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Tips */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tip-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.tip-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-stack { display: flex; flex-direction: column; gap: 12px; }
.faq-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.faq-row summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-row summary::after { content: "+"; font-size: 20px; color: var(--accent-2); font-weight: 700; }
.faq-row[open] summary::after { content: "\2212"; }
.faq-row p { margin: 12px 0 0; color: var(--muted); }

/* Comments */
.comment-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reply-bar { display: none; justify-content: space-between; align-items: center; font-size: 13px; color: var(--accent-2); }
.comment-box[data-gf-replying] .reply-bar { display: flex; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.field-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.comment-status { font-size: 14px; color: var(--accent-2); font-weight: 600; }
.comment-feed { display: flex; flex-direction: column; gap: 12px; }
.comment-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.comment-item[data-gf-owner] { border-left: 4px solid var(--accent-2); }
.comment-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.comment-top time { color: var(--muted); font-size: 12px; margin-left: auto; }
.team-pill {
  display: none;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: var(--text);
  padding: 2px 8px;
  border-radius: 999px;
}
.comment-item[data-gf-owner] .team-pill { display: inline-block; }
.comment-text { margin: 0 0 8px; font-size: 15px; }
.mention { color: var(--accent-2); font-weight: 600; }
.comment-replies { margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.text-btn { background: none; border: 0; color: var(--accent-2); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0; }
.comments-empty { display: none; color: var(--muted); font-size: 15px; margin: 0; }
.comment-feed[data-gf-empty] .comments-empty { display: block; }

/* Inner & Legal */
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.inner-stage-wrap { margin: 0 0 32px; }
.narrow-inner { max-width: 820px; }
.page-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 28px;
}
.page-cta-banner strong { display: block; font-family: var(--font-head); font-size: 20px; margin-bottom: 4px; color: var(--text); }
.page-cta-banner p { margin: 0; font-size: 14px; color: var(--muted); }
.page-cta-banner .btn-primary { flex-shrink: 0; text-decoration: none; }
.page-cta-banner .btn-primary:hover { text-decoration: none; }
.inner-faq { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.prose h2 { margin-top: 28px; font-size: 22px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  font-size: 14px;
  color: var(--muted);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer-brand strong { font-family: var(--font-head); font-size: 18px; color: var(--text); }
.footer-brand p { margin: 4px 0 0; font-size: 13px; }
.footer-groups { display: flex; flex-wrap: wrap; gap: 36px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.footer-col a { color: var(--muted); font-weight: 600; }
.footer-copy { width: 100%; margin: 12px 0 0; font-size: 12px; }

/* Mobile */
@media (max-width: 640px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .container { padding: 0 16px; }
  .brand { font-size: 18px; gap: 6px; }
  .site-nav { gap: 10px; flex-wrap: nowrap; }
  .site-nav a { font-size: 12px; white-space: nowrap; }
  .page-cta-banner { flex-direction: column; align-items: stretch; }
  .page-cta-banner .btn-primary { width: 100%; }
  .vu-bars { display: none; }
  .stage { aspect-ratio: 3 / 4; min-height: 520px; }
  .cover-overlay-card { padding: 18px 20px; }
  .engage-bar { flex-direction: column; align-items: stretch; }
  .engage-bar > .btn-ghost { width: 100%; justify-content: center; }
  .sleeve-split, .rule-rows, .liner-modes, .tips-grid { grid-template-columns: 1fr; }
  .block { padding: 40px 0; }
}