:root {
  --bg-obsidian: #0E0D0A;
  --surface-dark: #161410;
  --surface-elevated: #1F1C15;
  --nijika-yellow: #FFD230;
  --nijika-yellow-deep: #E5B400;
  --nijika-crimson: #E03E52;
  --ink-on-yellow: #12100B;
  --ink-on-yellow-muted: #423716;
  --text-cream: #FAF6EA;
  --text-muted: #B8AF99;
  --border-hairline: rgba(255, 210, 48, 0.2);
  --border-strong: rgba(255, 210, 48, 0.48);
  --shadow-soft: 0 20px 44px -14px rgba(0, 0, 0, 0.72);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--nijika-yellow-deep) var(--bg-obsidian);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}

::-webkit-scrollbar-thumb {
  background: #352E1E;
  border: 2px solid var(--bg-obsidian);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--nijika-yellow-deep);
}

::selection {
  background: var(--nijika-yellow);
  color: var(--ink-on-yellow);
}

:focus-visible {
  outline: 2px solid var(--nijika-yellow);
  outline-offset: 3px;
}

body {
  background-color: var(--bg-obsidian);
  background-image: radial-gradient(
    ellipse 70% 45% at 78% 6%,
    rgba(255, 210, 48, 0.09),
    transparent 65%
  );
  color: var(--text-cream);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  caret-color: var(--nijika-yellow);
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
.brand-name {
  font-family: "Bricolage Grotesque", "Be Vietnam Pro", sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-cream);
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 700;
  text-wrap: balance;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 13, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--nijika-yellow);
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-cream);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.site-nav a:hover {
  color: var(--nijika-yellow);
}

.site-nav .nav-steam {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--nijika-yellow);
  color: var(--ink-on-yellow);
  font-weight: 600;
}

.site-nav .nav-steam:hover {
  background: var(--nijika-yellow-deep);
  color: var(--ink-on-yellow);
}

/* Hero Section */
.hero-section {
  padding: 56px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: center;
}

.identity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.mini-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.identity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nijika-yellow);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nijika-yellow);
  box-shadow: 0 0 0 3px rgba(255, 210, 48, 0.22);
}

.domain-note {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-lead {
  margin-top: 22px;
  max-width: 58ch;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.hero-lead strong {
  color: var(--text-cream);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-spring), background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--nijika-yellow);
  color: var(--ink-on-yellow);
}

.btn-primary:hover {
  background: var(--nijika-yellow-deep);
}

.btn-secondary {
  background: var(--surface-dark);
  color: var(--text-cream);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--nijika-yellow);
}

.friend-code-bar {
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-dark);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
}

.fc-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.fc-value {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--nijika-yellow);
  letter-spacing: 0.04em;
}

.fc-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
  background: var(--surface-elevated);
  color: var(--text-cream);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.fc-btn:hover {
  border-color: var(--nijika-yellow);
  color: var(--nijika-yellow);
}

/* Hero Right Column: Nijika Stage */
.hero-stage-visual {
  display: flex;
  justify-content: center;
}

.stage-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 0 14px 20px 0;
}

.stage-yellow-plate {
  position: absolute;
  inset: 18px 0 4px 18px;
  background: var(--nijika-yellow);
  border-radius: var(--radius-md);
  z-index: 0;
}

.stage-figure {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface-dark);
  box-shadow: var(--shadow-soft);
}

.stage-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.dorito-beat-btn {
  position: relative;
  z-index: 2;
  margin: -24px 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-dark);
  color: var(--text-cream);
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease, background-color 0.2s ease;
}

.dorito-beat-btn:hover {
  border-color: var(--nijika-yellow);
  background: var(--surface-elevated);
}

.dorito-svg {
  color: var(--nijika-yellow);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-spring);
}

.dorito-beat-btn.is-bouncing .dorito-svg {
  transform: translateY(-6px) rotate(-14deg) scale(1.16);
}

.dorito-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid var(--nijika-yellow);
  opacity: 0;
  pointer-events: none;
}

.dorito-beat-btn.is-bouncing .dorito-pulse {
  animation: dorito-ring 0.55s var(--ease-spring) forwards;
}

@keyframes dorito-ring {
  0% {
    opacity: 0.75;
    transform: scale(0.98);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.dorito-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.dorito-text strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.beat-counter {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  color: var(--nijika-yellow);
}

/* Committed Yellow Band */
.yellow-band {
  background: var(--nijika-yellow);
  color: var(--ink-on-yellow);
  padding: 68px 0;
  border-top: 1px solid rgba(18, 16, 11, 0.14);
  border-bottom: 1px solid rgba(18, 16, 11, 0.14);
}

.yellow-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 44px;
  align-items: start;
}

.yellow-band h2 {
  color: var(--ink-on-yellow);
}

.band-quote {
  margin-top: 18px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-on-yellow);
  max-width: 48ch;
}

.band-desc {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--ink-on-yellow-muted);
}

.band-desc strong {
  color: var(--ink-on-yellow);
}

.yellow-band-facts {
  border-top: 1px solid rgba(18, 16, 11, 0.25);
}

.fact-rows {
  display: flex;
  flex-direction: column;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(18, 16, 11, 0.2);
  font-size: 0.94rem;
}

.fact-row dt {
  color: var(--ink-on-yellow-muted);
  font-weight: 500;
}

.fact-row dd {
  font-weight: 600;
  color: var(--ink-on-yellow);
  text-align: right;
}

/* Shared Section Rhythm */
.section-block {
  padding: 76px 0;
}

.section-alt {
  background: var(--surface-dark);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 36px;
}

.section-sub {
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Gear Ledger */
.ledger-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ledger-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nijika-yellow);
  margin-bottom: 12px;
}

.ledger-list {
  list-style: none;
  border-top: 1px solid var(--border-hairline);
}

.ledger-row {
  display: grid;
  grid-template-columns: 36px minmax(190px, 0.9fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 16px 24px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--border-hairline);
  transition: background-color 0.18s ease;
}

.ledger-row:hover {
  background: rgba(255, 210, 48, 0.04);
}

.ledger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nijika-yellow);
}

.ledger-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ledger-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ledger-name strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-cream);
}

.ledger-spec {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: right;
}

/* Potato PC Split */
.potato-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.potato-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-obsidian);
  box-shadow: var(--shadow-soft);
}

.potato-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.spec-ledger {
  border-top: 1px solid var(--border-hairline);
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.spec-row dt {
  font-size: 0.82rem;
  color: var(--nijika-yellow);
  font-weight: 600;
}

.spec-row dd {
  font-size: 1.02rem;
  color: var(--text-cream);
  font-weight: 500;
}

/* Direct Channels */
.channels-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-hairline);
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 12px;
  border-bottom: 1px solid var(--border-hairline);
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.channel-row:hover {
  background: rgba(255, 210, 48, 0.05);
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-dark);
  border: 1px solid var(--border-strong);
  color: var(--nijika-yellow);
  flex-shrink: 0;
}

.channel-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.channel-meta strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-cream);
}

.channel-meta span {
  font-size: 0.9rem;
  color: var(--text-muted);
  word-break: break-word;
}

.channel-arrow {
  color: var(--nijika-yellow);
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-spring);
}

.channel-row:hover .channel-arrow {
  transform: translateX(6px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.copy-url-btn {
  background: transparent;
  color: var(--nijika-yellow);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.copy-url-btn:hover {
  border-color: var(--nijika-yellow);
  background: rgba(255, 210, 48, 0.08);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--nijika-yellow);
  color: var(--ink-on-yellow);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-spring);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid,
  .yellow-band-inner,
  .potato-split {
    grid-template-columns: 1fr;
  }

  .hero-stage-visual {
    order: -1;
  }

  .stage-frame-wrap {
    max-width: 340px;
  }

  .ledger-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .ledger-spec {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.86rem;
  }

  .site-nav a[href="#nijika"],
  .site-nav a[href="#pc"] {
    display: none;
  }

  .hero-section {
    padding: 36px 0 56px;
  }

  .section-block,
  .yellow-band {
    padding: 56px 0;
  }

  .friend-code-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
