:root {
  --bg: #fff8ed;
  --surface: #ffffff;
  --surface-alt: #fdf0db;
  --ink: #271d14;
  --muted: #604e3d;
  --accent: #d34a2f;
  --accent-dark: #a63420;
  --gold: #f5b342;
  --secondary: #225442;
  --border: #ead6ba;
  --dark-bg: #160f0b;
  --dark-card: #221712;
  --dark-border: rgba(245, 179, 66, 0.24);
  --shadow: 0 12px 32px rgba(39, 29, 20, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

h1,
h2,
h3,
.brand {
  font-family: 'Baloo 2', 'Be Vietnam Pro', 'Trebuchet MS', system-ui, sans-serif;
}

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

a {
  color: var(--accent-dark);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(24, 17, 13, 0.94);
  color: #fff7eb;
  border-bottom: 1px solid rgba(245, 179, 66, 0.2);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: #fff8ed;
  text-decoration: none;
}

.brand-crest {
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: #f3e4cf;
}

.nav-links a:hover {
  color: var(--gold);
}

.lang-pill {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 179, 66, 0.35);
  font-size: 12px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 16px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-glow {
  background: linear-gradient(135deg, #e55332 0%, #c83e24 100%);
  border-color: rgba(245, 179, 66, 0.55);
  box-shadow: 0 8px 24px rgba(229, 83, 50, 0.42);
}

.btn-store {
  background: var(--secondary);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-ghost-light {
  background: rgba(255, 248, 237, 0.08);
  color: #fff7eb;
  border-color: rgba(255, 248, 237, 0.25);
}

.btn-audio {
  background: #261b15;
  color: var(--gold);
  border-color: var(--dark-border);
}

.main-sub {
  padding: 24px 0 48px;
}

.main-full {
  padding: 0 0 48px;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 75% 22%, #3f2213 0%, var(--dark-bg) 68%);
  color: #fff8ed;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--dark-border);
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245, 179, 66, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-fireflies i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 12px 3px rgba(255, 209, 102, 0.65);
  opacity: 0.55;
  animation: drift 7s ease-in-out infinite;
}

.hero-fireflies i:nth-child(1) { top: 18%; left: 8%; }
.hero-fireflies i:nth-child(2) { top: 68%; left: 16%; animation-delay: 1.4s; }
.hero-fireflies i:nth-child(3) { top: 32%; left: 48%; animation-delay: 2.3s; }
.hero-fireflies i:nth-child(4) { top: 76%; left: 62%; animation-delay: 0.9s; }
.hero-fireflies i:nth-child(5) { top: 20%; right: 10%; animation-delay: 3.1s; }
.hero-fireflies i:nth-child(6) { top: 58%; right: 6%; animation-delay: 2s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(0.85); opacity: 0.35; }
  50% { transform: translate(10px, -14px) scale(1.25); opacity: 0.9; }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow-dark {
  background: rgba(245, 179, 66, 0.16);
  color: #ffd584;
  border: 1px solid rgba(245, 179, 66, 0.32);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.3vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 {
  margin: 8px 0 12px;
  font-size: clamp(22px, 3.1vw, 30px);
  line-height: 1.2;
}

h3 {
  margin: 10px 0 6px;
  font-size: 18px;
}

.hero-lead {
  margin: 0 0 18px;
  color: #e8d8c3;
  font-size: 17px;
}

.hero-sync {
  margin: 12px 0 0;
  font-size: 13px;
  color: #cbb69c;
}

.video-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(245, 179, 66, 0.42);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
  background: #120c08;
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
}

.live-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 15, 11, 0.85);
  color: #ffd166;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(245, 179, 66, 0.35);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 10px;
}

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.trust-pill {
  background: rgba(255, 248, 237, 0.07);
  border: 1px solid rgba(245, 179, 66, 0.22);
  border-radius: 12px;
  padding: 11px 12px;
  text-align: center;
}

.trust-pill strong {
  display: block;
  font-size: 21px;
  color: var(--gold);
  line-height: 1.2;
}

.trust-pill span {
  font-size: 12px;
  color: #e8d8c3;
  font-weight: 600;
}

.section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-sub {
  margin: 0 0 14px;
  color: var(--muted);
}

.shift-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.shift-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.shift-tab[aria-pressed='true'] {
  background: #241812;
  color: #ffd584;
  border-color: #d69833;
  box-shadow: 0 6px 18px rgba(36, 24, 18, 0.2);
}

.shift-viewport {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.shift-section[data-shift='morning'] .shift-viewport {
  background: linear-gradient(135deg, #fff5df 0%, #ffffff 70%);
}

.shift-section[data-shift='lunch'] .shift-viewport {
  background: linear-gradient(135deg, #ffe9dc 0%, #ffffff 70%);
}

.shift-section[data-shift='rain'] .shift-viewport {
  background: linear-gradient(135deg, #1b2838 0%, #273749 100%);
  color: #eef6ff;
  border-color: rgba(140, 184, 232, 0.35);
}

.shift-section[data-shift='lantern'] .shift-viewport {
  background: linear-gradient(135deg, #21150f 0%, #311d13 100%);
  color: #fff6e6;
  border-color: rgba(245, 179, 66, 0.38);
}

.shift-section[data-shift='rain'] .shift-caption p,
.shift-section[data-shift='lantern'] .shift-caption p {
  color: #e4d8ca;
}

.shift-viewport img {
  position: relative;
  z-index: 2;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.shift-caption {
  position: relative;
  z-index: 2;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.bento-wide {
  grid-column: span 2;
}

.bento-media {
  overflow: hidden;
}

.bento-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.bento-card:hover .bento-media img {
  transform: scale(1.03);
}

.bento-copy {
  padding: 14px 16px 16px;
}

.bento-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dish-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dish-thumb {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  border-radius: 12px;
  background: radial-gradient(circle, #fff3da 0%, #fae3be 100%);
  display: grid;
  place-items: center;
  padding: 6px;
}

.dish-lv {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

.dish-info h3 {
  margin: 4px 0 2px;
  font-size: 16px;
}

.dish-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.community-band-full {
  margin-top: 44px;
  padding: 38px 0;
  background: linear-gradient(135deg, #1d4032 0%, #162a23 100%);
  color: #fff8ed;
  border-top: 1px solid rgba(245, 179, 66, 0.25);
  border-bottom: 1px solid rgba(245, 179, 66, 0.25);
}

.split-showcase {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: start;
}

.postcard-gold-frame {
  background: linear-gradient(145deg, #d4a037, #f3d27a, #b68322);
  padding: 7px;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
}

.postcard-gold-frame img {
  border-radius: 10px 10px 0 0;
}

.postcard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #241911;
  color: #ffe39b;
  border-radius: 0 0 10px 10px;
  font-size: 13px;
}

.community-copy p {
  color: #d6e7de;
}

.changelog-panel {
  background: rgba(255, 248, 237, 0.96);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 20px;
}

.timeline-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  border-left: 2px solid var(--border);
  padding-left: 14px;
}

.timeline-item h3 {
  margin: 4px 0;
  font-size: 16px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.faq-acc summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-acc p {
  margin: 10px 0 0;
  color: var(--muted);
}

.version-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fdeae4;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 12px;
}

.changelog-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.meta-note {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}

/* Subpage utilities preserved */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.callout {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.shot-card img,
.article-shot img {
  border-radius: 12px;
  border: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  font-weight: 700;
  white-space: nowrap;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.changelog-list {
  display: grid;
  gap: 12px;
}

.changelog-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.hub-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.hub-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.hub-card:hover {
  border-color: var(--accent);
}

.hub-card strong {
  display: block;
  margin-bottom: 4px;
}

.hub-card span {
  font-size: 14px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 24px 0 42px;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.mobile-dock {
  display: none;
}

@media (max-width: 860px) {
  .hero-grid,
  .shift-viewport,
  .split-showcase,
  .hero,
  .grid-2,
  .grid-3,
  .dish-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .bento-grid,
  .bento-wide {
    grid-template-columns: 1fr;
    grid-column: span 1;
  }

  .header-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 84px;
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(24, 17, 13, 0.94);
    border: 1px solid rgba(245, 179, 66, 0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fireflies i {
    animation: none;
  }
}
