:root {
  --ink: #2b1d2e;
  --ink-soft: #4a3850;
  --paper: #fffaf0;
  --paper-card: #fff5e1;
  --paper-tint: #fbeed2;
  --gold: #ffd447;
  --gold-shadow: #d89f21;
  --sky: #7ec8f2;
  --sky-deep: #4ea8de;
  --sky-night: #1f1b3c;
  --mint: #8edb8a;
  --mint-shadow: #5cb658;
  --purple: #b892ff;
  --purple-soft: #ede6ff;
  --coral: #ff7582;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-chunky: 0 5px 0 var(--ink);
  --shadow-chunky-sm: 0 3px 0 var(--ink);
  --shadow-chunky-lg: 0 8px 0 var(--ink);
  --font-main: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere */
.sky-bg {
  background: linear-gradient(180deg, #5fb4e8 0%, #a4dbfc 40%, #e6f5ff 85%, var(--paper) 100%);
  position: relative;
  overflow: hidden;
}

.sky-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0.5) 4px, transparent 4px),
    radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0.3) 3px, transparent 3px),
    radial-gradient(circle at 90% 40%, rgba(255, 255, 255, 0.35) 0, rgba(255, 255, 255, 0.35) 2px, transparent 2px),
    radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.25) 0, rgba(255, 255, 255, 0.25) 3px, transparent 3px);
  pointer-events: none;
}

/* Layout Utilities */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

a {
  color: #2468b1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

a:hover {
  color: #124375;
  text-decoration: underline;
}

/* Chunky UI Elements */
.card {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-chunky);
  padding: 28px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-chunky-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-tint);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 var(--ink);
  margin-bottom: 16px;
}

.badge.gold { background: var(--gold); }
.badge.mint { background: var(--mint); }
.badge.purple { background: var(--purple-soft); }

.dot-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 24px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-chunky);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
}

.btn:hover {
  background: #ffe072;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-chunky-lg);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}

.btn-mint {
  background: var(--mint);
}
.btn-mint:hover {
  background: #a4e9a1;
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
}
.btn-secondary:hover {
  background: #fdf5ea;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #3478c6;
  text-decoration: none;
}

/* Hero Section */
.hero {
  padding: 60px 0 70px;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 700px;
  margin: 0 auto 30px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-image-wrap {
  margin: 20px auto 0;
  max-width: 980px;
  border: 4px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-chunky-lg);
  overflow: hidden;
  background: var(--ink);
  line-height: 0;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Feature Counters Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  margin-bottom: 60px;
}

.stat-item {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-chunky-sm);
  padding: 16px;
  text-align: center;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-num span {
  color: #e09f19;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

/* Story Section */
.story-box {
  background: #fff3db;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-chunky);
  padding: 36px 30px;
  margin: 60px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .story-box {
    grid-template-columns: 280px 1fr;
    align-items: center;
  }
}

.pip-avatar {
  background: var(--sky);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-chunky-sm);
}

.pip-star {
  font-size: 4rem;
  display: block;
  margin-bottom: 8px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.pip-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.6;
  border-left: 4px solid var(--gold);
  padding-left: 16px;
  margin: 16px 0 0;
}

/* Section Common */
.section {
  padding: 60px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-chunky);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  box-shadow: 0 2px 0 var(--ink);
}

.icon-yellow { background: var(--gold); }
.icon-blue { background: var(--sky); }
.icon-green { background: var(--mint); }
.icon-purple { background: var(--purple); }
.icon-red { background: var(--coral); }

/* Screenshots Showcase */
.screenshot-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 10px 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshot-scroller::-webkit-scrollbar {
  height: 10px;
}

.screenshot-scroller::-webkit-scrollbar-track {
  background: var(--paper-tint);
  border-radius: 6px;
  border: 2px solid var(--ink);
}

.screenshot-scroller::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 6px;
  border: 2px solid var(--ink);
}

.shot-card {
  flex: 0 0 270px;
  scroll-snap-align: start;
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-chunky);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 3px solid var(--ink);
}

.shot-info {
  padding: 14px 16px;
}

.shot-info h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.shot-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* How to Play Steps */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.step-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-chunky);
  padding: 24px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 var(--ink);
}

.step-card h3 {
  margin-top: 10px;
}

/* Community & Online Features */
.online-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.online-item {
  background: #f7edff;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-chunky-sm);
  padding: 20px;
}

/* Call to Action Box */
.cta-banner {
  background: linear-gradient(135deg, #7ec8f2, #b892ff);
  border: 4px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-chunky-lg);
  padding: 50px 30px;
  text-align: center;
  margin: 60px 0;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.2rem;
  color: var(--ink);
  max-width: 600px;
  margin: 0 auto 28px;
  font-weight: 600;
}

/* Legal & Simple Pages Container */
.legal-page {
  padding: 50px 0 80px;
}

.legal-card {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-chunky);
  padding: 36px 32px;
  max-width: 780px;
  margin: 0 auto;
}

.legal-card ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.legal-card li {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.legal-card b {
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: #f3e6cf;
  border-top: 3px solid var(--ink);
  padding: 40px 0 50px;
  margin-top: 60px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 2px dashed rgba(43, 29, 46, 0.2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile nav */
  }
  .card, .legal-card {
    padding: 22px 18px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .guide-layout {
    grid-template-columns: 1fr !important;
  }
  .guide-sidebar {
    position: static !important;
    margin-bottom: 24px;
  }
}

/* ==========================================================================
   Game Guide Styles
   ========================================================================== */
.guide-page {
  padding: 40px 0 80px;
}

.guide-hero {
  text-align: center;
  padding: 50px 20px 40px;
  background: linear-gradient(180deg, #7ec8f2 0%, #c9e8fb 60%, var(--paper) 100%);
  border-bottom: 3px solid var(--ink);
  margin-bottom: 40px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: 80px;
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-chunky);
  padding: 20px 16px;
}

.guide-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px dashed rgba(43, 29, 46, 0.2);
}

.guide-toc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-toc li {
  margin-bottom: 6px;
}

.guide-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.guide-toc a:hover {
  background: var(--paper-tint);
  transform: translateX(3px);
  color: #2468b1;
}

.guide-card {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-chunky);
  padding: 36px 32px;
  margin-bottom: 32px;
  scroll-margin-top: 90px;
}

.guide-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.85rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
}

.tip-box {
  background: #f7eed8;
  border: 2px solid var(--ink);
  border-left: 6px solid var(--gold-shadow);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow-chunky-sm);
}

.tip-box.mint {
  border-left-color: var(--mint-shadow);
  background: #eefbee;
}

.tip-box.purple {
  border-left-color: var(--purple);
  background: #f5f0ff;
}

.tip-box p:last-child {
  margin-bottom: 0;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.guide-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.guide-table th {
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid var(--ink);
  border-right: 1px solid rgba(43, 29, 46, 0.15);
}

.guide-table th:last-child {
  border-right: none;
}

.guide-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(43, 29, 46, 0.15);
  border-right: 1px solid rgba(43, 29, 46, 0.15);
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.guide-table td:last-child {
  border-right: none;
}

.guide-table tr:last-child td {
  border-bottom: none;
}

.guide-table tr:nth-child(even) td {
  background: #fffdf8;
}

.key-badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--ink);
  font-family: monospace;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0 2px;
}

