/* ==========================================================================
   Kopi Kia — Promo Site
   Vintage Nanyang kopitiam theme, sharing the game's palette and typefaces.
   ========================================================================== */

:root {
  --gold: #f59e0b;
  --gold-deep: #b45309;
  --nanyang: #0f386b;
  --nanyang-dark: #092142;
  --vintage-red: #c23b22;
  --jade: #1f7a5c;

  --paper: #fdfbf7;
  --paper-warm: #f6efe1;
  --paper-deep: #ece0cb;
  --card: #ffffff;

  --ink: #2a1608;
  --ink-soft: #5c4a37;
  --ink-faint: #8a7862;

  --rule: rgba(15, 56, 107, 0.16);
  --shadow-sm: 0 2px 8px rgba(42, 22, 8, 0.07);
  --shadow-md: 0 10px 30px rgba(42, 22, 8, 0.11);
  --shadow-lg: 0 24px 60px rgba(9, 33, 66, 0.22);

  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-chinese: 'Noto Serif TC', 'Songti SC', serif;

  --maxw: 1120px;
  --readw: 44rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.07), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(15, 56, 107, 0.06), transparent 46%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--nanyang); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--vintage-red); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--readw); }

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--nanyang-dark);
  margin-right: auto;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-deep);
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: all 0.18s ease;
}

.nav-pill-btn:hover {
  background: var(--gold);
  color: #092142;
  border-color: var(--gold);
  transform: translateY(-1px);
}

.nav-pill-btn[aria-current="page"] {
  background: var(--gold);
  color: #092142;
  border-color: var(--gold-deep);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.nav-btn-sprite {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  flex: none;
  display: block;
}

.nav-feedback-avatar {
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(160deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #2a1608;
  border-color: rgba(42, 22, 8, 0.22);
  box-shadow: 0 6px 0 rgba(120, 62, 6, 0.55), var(--shadow-md);
}

.btn-primary:hover { color: #2a1608; box-shadow: 0 4px 0 rgba(120, 62, 6, 0.55), var(--shadow-lg); }
.btn-primary:active { box-shadow: 0 2px 0 rgba(120, 62, 6, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--nanyang);
  border-color: rgba(15, 56, 107, 0.32);
}

.btn-ghost:hover { background: var(--paper-warm); color: var(--nanyang-dark); }
.btn-lg { min-height: 3.5rem; font-size: 1.1rem; padding: 0.85rem 2.1rem; }

.store-badges {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  align-items: center;
  flex-shrink: 0;
}

.btn-appstore,
.store-badge-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
  flex-shrink: 0;
}

.btn-appstore:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

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

.store-badge-wrapper.is-coming-soon {
  cursor: default;
  opacity: 0.9;
}

.store-badge-wrapper.is-coming-soon:hover {
  filter: brightness(1.05);
}

.appstore-badge-img {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.badge-coming-soon {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gold, #f59e0b);
  color: #092142;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  border: 1.5px solid var(--nanyang-dark, #092142);
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--nanyang-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  filter: saturate(115%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 33, 66, 0.55) 0%, rgba(9, 33, 66, 0.82) 72%, rgba(9, 33, 66, 0.96) 100%);
}

.hero-inner {
  position: relative;
  padding: 4.5rem 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero-chinese {
  font-family: var(--font-chinese);
  font-weight: 900;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  color: var(--gold);
  letter-spacing: 0.22em;
  margin: 0 0 1.1rem;
}

.hero-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
  margin: 0 0 1.9rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  align-items: flex-start;
}

.hero-action-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  align-items: center;
}

.hero-subline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-browser-link {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.hero-browser-link:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.cta-subline {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-subline .hero-browser-link {
  color: rgba(255, 255, 255, 0.84);
}

.cta-subline .hero-browser-link:hover {
  color: var(--gold);
}

.hero-roadmap-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.hero-roadmap-link:hover {
  color: var(--gold);
  transform: translateX(2px);
}

.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.42); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.hero-meta {
  margin: 1.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

.hero-art {
  border-radius: 1.1rem;
  overflow: hidden;
  border: 3px solid rgba(245, 158, 11, 0.55);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.4deg);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 4rem 0; }
.section-tint { background: var(--paper-warm); border-block: 1px solid var(--rule); }

.section-head { max-width: 42rem; margin: 0 0 2.5rem; }

.section-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  color: var(--nanyang-dark);
}

.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Screenshot Gallery
   -------------------------------------------------------------------------- */

.section-gallery {
  padding: 4.5rem 0 3.8rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, var(--nanyang-dark) 0%, #06152a 100%);
  color: #fff;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.section-gallery .section-head {
  margin-bottom: 2rem;
}

.section-gallery .section-kicker {
  color: var(--gold);
}

.section-gallery .section-head h2 {
  color: #fff;
}

.section-gallery .section-head p {
  color: rgba(255, 255, 255, 0.84);
}

.gallery-scroll-container {
  margin: 0 -1.5rem -1rem;
  padding: 0 1.5rem 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.gallery-scroll-container::-webkit-scrollbar {
  height: 7px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 999px;
}

.gallery-track {
  display: flex;
  gap: 1.4rem;
  padding: 0.5rem 0.2rem 0.8rem;
  width: max-content;
}

.gallery-card {
  flex: 0 0 230px;
  scroll-snap-align: center;
  border-radius: 16px;
  overflow: hidden;
  background: #06152a;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.25);
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 560px) {
  .section-gallery {
    padding: 3rem 0 2.2rem;
  }
  .gallery-card {
    flex: 0 0 200px;
    border-radius: 14px;
  }
  .gallery-track {
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.feature-icon {
  display: flex;
  align-items: center;
  height: 48px;
  margin-bottom: 0.85rem;
}

.feature-sprite-img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12));
}

.feature-sprite-diorama {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-icon-sprite {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 0.5rem;
  object-fit: contain;
}

.meta-icon-sprite {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 0.35rem;
  object-fit: contain;
}

.mini-star-sprite {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 3px;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: var(--nanyang-dark);
}

.feature-card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Drinks menu board
   -------------------------------------------------------------------------- */

.menu-board {
  background: var(--nanyang-dark);
  border-radius: 1rem;
  padding: 2rem clamp(1.1rem, 3vw, 2.25rem);
  color: #fff;
  box-shadow: var(--shadow-lg);
  border: 3px double rgba(245, 158, 11, 0.45);
}

.menu-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.6rem 2.4rem;
}

.menu-col h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gold);
  margin: 0 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.32);
}

.menu-col ul { list-style: none; margin: 0; padding: 0; }

.menu-col li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.28rem 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
}

.menu-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.28);
  transform: translateY(-0.22rem);
}

.menu-price { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }

.menu-note {
  margin: 1.6rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Level list
   -------------------------------------------------------------------------- */

.level-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.level-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0.7rem;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
}

.level-num {
  flex: none;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nanyang);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
}

.level-name { font-weight: 600; font-size: 0.97rem; }
.level-goal { margin-left: auto; color: var(--ink-faint); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Roadmap
   -------------------------------------------------------------------------- */

.roadmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
}

.status-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; flex: none; }

.status-live { color: var(--jade); border-color: rgba(31, 122, 92, 0.35); background: rgba(31, 122, 92, 0.09); }
.status-building { color: var(--gold-deep); border-color: rgba(180, 83, 9, 0.35); background: rgba(245, 158, 11, 0.12); }
.status-planned { color: var(--nanyang); border-color: rgba(15, 56, 107, 0.28); background: rgba(15, 56, 107, 0.07); }

.roadmap-section { margin: 0 0 3.5rem; }

.roadmap-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
  margin: 0 0 0.5rem;
}

.roadmap-section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.9rem;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--nanyang-dark);
}

.roadmap-blurb { margin: 0 0 1.5rem; color: var(--ink-soft); }

.roadmap-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }

.roadmap-items li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rule);
  border-radius: 0.6rem;
  padding: 1rem 1.15rem 1rem 3.1rem;
  box-shadow: var(--shadow-sm);
}

.roadmap-items li::before {
  position: absolute;
  left: 1.05rem;
  top: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 800;
}

.items-live li { border-left-color: var(--jade); }
.items-live li::before { content: '✓'; color: var(--jade); }

.items-building li { border-left-color: var(--gold); }
.items-building li::before { content: '◐'; color: var(--gold-deep); }

.items-planned li { border-left-color: rgba(15, 56, 107, 0.35); }
.items-planned li::before { content: '○'; color: var(--nanyang); }

.roadmap-items h3 { margin: 0 0 0.25rem; font-size: 1.02rem; font-weight: 800; color: var(--nanyang-dark); }
.roadmap-items p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

.roadmap-updated { color: var(--ink-faint); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }

.post-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.post-card h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0.35rem 0 0.6rem;
}

.post-card h2 a { color: var(--nanyang-dark); text-decoration: none; }
.post-card h2 a:hover { color: var(--vintage-red); }
.post-card p { margin: 0 0 0.9rem; color: var(--ink-soft); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }

.tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(180, 83, 9, 0.22);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.post-header { padding: 3.25rem 0 1.5rem; }

.post-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0.8rem;
  color: var(--nanyang-dark);
}

.post-header .post-summary { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.1rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-decoration: none;
}

.back-link:hover { color: var(--nanyang); }

.prose { padding-bottom: 3.5rem; font-size: 1.09rem; line-height: 1.75; }

.prose > * + * { margin-top: 1.35rem; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--nanyang-dark);
  margin-top: 2.75rem;
}

.prose h3 { font-size: 1.25rem; font-weight: 800; color: var(--nanyang-dark); margin-top: 2rem; }

.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: 0.45rem; }

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 4px solid var(--gold);
  color: var(--ink-soft);
  font-style: italic;
}

.prose blockquote p { margin: 0.5rem 0; }

.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--paper-deep);
  border-radius: 0.3rem;
  padding: 0.12em 0.4em;
}

.prose pre {
  background: var(--nanyang-dark);
  color: #f1e7d5;
  border-radius: 0.7rem;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.55;
}

.prose pre code { background: none; padding: 0; color: inherit; font-size: 1em; }

.prose figure { margin: 2rem 0; }

.prose figure img {
  border-radius: 0.8rem;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.prose figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
  text-align: center;
}

.prose hr { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.post-footer {
  margin-top: 3rem;
  padding: 1.75rem;
  border-radius: 0.9rem;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  text-align: center;
}

.post-footer h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: var(--nanyang-dark);
}

.post-footer p { margin: 0 0 1.1rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Call to action strip
   -------------------------------------------------------------------------- */

.cta-strip {
  background: linear-gradient(150deg, var(--nanyang) 0%, var(--nanyang-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

.cta-strip p { margin: 0 auto 1.9rem; max-width: 34rem; color: rgba(255, 255, 255, 0.8); font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom));
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--nanyang); text-decoration: underline; }
.footer-note { color: var(--ink-faint); font-size: 0.86rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.25rem; padding: 3rem 0; }
  .hero-art { order: -1; transform: none; max-width: 27.5rem; margin: 0 auto; }
  .section { padding: 3rem 0; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .site-nav { width: 100%; gap: 0.35rem; }
  .nav-pill-btn { padding: 0.3rem 0.6rem; font-size: 0.84rem; gap: 0.3rem; }
  .nav-btn-sprite { width: 1rem; height: 1rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-action-bar { flex-direction: column; align-items: stretch; gap: 0.75rem; width: 100%; }
  .store-badges { display: flex; flex-direction: row; justify-content: center; width: 100%; gap: 0.6rem; }
  .appstore-badge-img { height: 48px; }
  .hero-subline { justify-content: center; text-align: center; margin-top: 0.15rem; }
  .prose { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Feedback Modal
   -------------------------------------------------------------------------- */

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.feedback-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feedback-dialog {
  position: relative;
  background: #092142;
  color: #fff;
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: 1.25rem;
  padding: 2rem;
  max-width: 30rem;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  z-index: 10;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.feedback-modal.is-open .feedback-dialog {
  transform: scale(1) translateY(0);
}

.feedback-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.feedback-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.feedback-header {
  margin-bottom: 1.25rem;
}

.feedback-header h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--gold);
  margin: 0 0 0.3rem;
}

.feedback-header p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.45;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feedback-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.feedback-optional {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.feedback-category-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.category-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.category-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-pill span {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.2;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

.category-pill.is-active {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--gold);
}

.category-pill.is-active span {
  color: var(--gold);
}

.cat-sprite {
  display: block;
  object-fit: contain;
}

.cat-sprite-avatar {
  border-radius: 50%;
}

.feedback-input,
.feedback-textarea {
  width: 100%;
  background: #06152a;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.65rem;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feedback-input:focus,
.feedback-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.feedback-textarea {
  resize: vertical;
  min-height: 5.5rem;
  line-height: 1.45;
}

.feedback-submit-btn {
  width: 100%;
  margin-top: 0.25rem;
  min-height: 2.85rem;
  font-size: 1rem;
}

.feedback-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.success-avatar-sprite {
  margin-bottom: 0.9rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.feedback-success-state h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--gold);
  margin: 0 0 0.4rem;
}

.feedback-success-state p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.25rem;
  max-width: 20rem;
  line-height: 1.45;
}

@media print {
  .site-header, .site-footer, .cta-strip, .post-footer, .hero-actions, .feedback-modal { display: none; }
  body { background: #fff; }
}
