:root {
  --navy-deep: #0f172a;
  --navy-royal: #1e293b;
  --navy-elevated: #26354d;
  --sky-top: #bae6fd;
  --sky-mid: #e0f2fe;
  --meadow-cream: #fef9c3;
  --card-cream: #fffbeb;
  --card-cream-border: #facc15;
  --gold-bright: #facc15;
  --gold-warm: #f59e0b;
  --gold-deep: #b45309;
  --fox-orange: #fb923c;
  --fox-deep: #c2410c;
  --mint-top: #4ade80;
  --mint-mid: #22c55e;
  --mint-lip: #15803d;
  --sky-btn-top: #38bdf8;
  --sky-btn-mid: #0284c7;
  --sky-btn-lip: #0369a1;
  --sun-btn-top: #fde047;
  --sun-btn-mid: #facc15;
  --sun-btn-lip: #b45309;
  --crimson: #e11d48;
  --text-light: #f8fafc;
  --text-sky: #bae6fd;
  --text-muted: #cbd5e1;
  --ink-dark: #1e293b;
  --ink-cocoa: #5c230a;
  --font-display: "Comfortaa", "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #13123c 0%, #0f172a 52%, #0b1120 100%);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* Unified Royal-Navy Gold-Rimmed Top Bar (matches App UnifiedCandyTopHudBar) */
.site-header {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-plaque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-royal);
  border: 2px solid var(--gold-warm);
  border-radius: 22px;
  padding: 6px 14px 6px 8px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.14s ease;
}

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

.brand-plaque img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: block;
}

.brand-plaque .brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-bright);
  letter-spacing: 0.3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 6px 10px;
  border-radius: 12px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--gold-bright);
  background: rgba(250, 204, 21, 0.1);
}

.site-nav a.nav-play-pill {
  background: linear-gradient(180deg, var(--mint-top), var(--mint-mid));
  color: #052e16;
  border-bottom: 3px solid var(--mint-lip);
  padding: 7px 14px;
  border-radius: 14px;
  font-weight: 800;
}

/* 3D Tactile Keycap Candy Glossy Buttons (matches App CandyGlossyButton) */
.candy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: 18px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.14s ease;
  overflow: hidden;
}

.candy-btn::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 3px;
  height: 38%;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.candy-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.candy-btn:active {
  transform: scale(0.965) translateY(2.2px);
}

.candy-btn-mint {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  color: #ffffff;
  text-shadow: 0 1.5px 0 rgba(5, 46, 22, 0.65);
  box-shadow: 0 4px 0 #14532d, 0 10px 22px rgba(22, 163, 74, 0.32);
}

.candy-btn-gold {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  color: var(--ink-cocoa);
  box-shadow: 0 4px 0 #b45309, 0 10px 22px rgba(245, 158, 11, 0.3);
}

.candy-btn-sky {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  text-shadow: 0 1.5px 0 rgba(12, 74, 110, 0.65);
  box-shadow: 0 4px 0 #075985, 0 10px 22px rgba(2, 132, 199, 0.3);
}

.candy-btn-navy {
  background: var(--navy-royal);
  color: var(--text-sky);
  border: 2px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 4px 0 #090d16;
}

.badge-corner-new {
  display: inline-block;
  background: var(--crimson);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1.5px solid #fecdd3;
}

/* Landing Containers & Plaques */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 18px 64px;
  flex: 1;
}

.hero-diorama {
  background: linear-gradient(180deg, #bae6fd 0%, #e0f2fe 54%, #fef3c7 100%);
  color: var(--ink-dark);
  border: 3.5px solid var(--gold-bright);
  border-radius: 30px;
  padding: 36px 24px 40px;
  text-align: center;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
  position: relative;
}

.hero-icon-wrap {
  display: inline-flex;
  padding: 6px;
  background: var(--navy-royal);
  border: 3px solid var(--gold-bright);
  border-radius: 30px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.32);
  margin-bottom: 14px;
}

.hero-icon-wrap img {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  display: block;
}

.signpost-plaque {
  display: inline-block;
  background: var(--navy-royal);
  color: var(--gold-bright);
  border: 2px solid var(--gold-warm);
  border-radius: 16px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}

.hero-diorama h1 {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4.6vw, 3.05rem);
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.3px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1e3a5f;
}

.cta-cluster {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-trust-strip {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-chip {
  background: rgba(15, 23, 42, 0.88);
  color: #fef08a;
  border: 1.5px solid rgba(250, 204, 21, 0.6);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.82rem;
  font-weight: 800;
}

.challenge-banner {
  margin: 0 auto 20px;
  max-width: 640px;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--navy-royal);
  border: 2.5px solid var(--gold-bright);
  color: #fef08a;
  font-weight: 800;
  font-size: 0.98rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
}

.section-heading {
  margin-top: 48px;
  margin-bottom: 18px;
  text-align: center;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.section-heading p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 600;
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.cream-card {
  background: var(--card-cream);
  color: var(--ink-dark);
  border: 3px solid var(--card-cream-border);
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.cream-card .world-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cream-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--navy-deep);
}

.world-edge-pill {
  background: var(--navy-royal);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.cream-card p {
  color: #334155;
  font-size: 0.94rem;
  font-weight: 600;
}

.navy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.navy-plaque-card {
  background: var(--navy-royal);
  border: 2px solid rgba(250, 204, 21, 0.42);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.navy-plaque-card h3 {
  color: var(--gold-bright);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.navy-plaque-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 14px;
}

.rule-step {
  background: rgba(30, 41, 59, 0.92);
  border: 2px solid rgba(56, 189, 248, 0.38);
  border-radius: 20px;
  padding: 18px;
}

.rule-step .step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-bright);
  color: var(--navy-deep);
  font-weight: 900;
  font-size: 0.88rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.rule-step h3 {
  font-size: 1rem;
  color: #f8fafc;
  margin-bottom: 5px;
}

.rule-step p {
  font-size: 0.91rem;
  color: var(--text-muted);
  font-weight: 600;
}

.faq-stack {
  display: grid;
  gap: 12px;
}

.faq-card {
  background: var(--navy-royal);
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  padding: 18px 22px;
}

.faq-card h3 {
  font-size: 1.02rem;
  color: var(--sky-btn-top);
  margin-bottom: 6px;
}

.faq-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  font-weight: 600;
}

.studio-banner {
  margin-top: 44px;
  background: var(--navy-royal);
  border: 2.5px solid var(--gold-warm);
  border-radius: 26px;
  padding: 26px;
  text-align: center;
}

.studio-banner h2 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.studio-banner p {
  color: var(--text-muted);
  font-weight: 600;
  max-width: 720px;
  margin: 0 auto 10px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 28px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }
  .hero-diorama {
    padding: 26px 16px 30px;
    border-radius: 24px;
  }
  .candy-btn {
    width: 100%;
  }
}
