/* Clickbait Tycoon marketing site - brand palette from the game. */
:root {
  --bg: #0b0d1a;
  --bg-2: #171236;
  --panel: rgba(13, 6, 32, 0.75);
  --border: #33395e;
  --text: #e8e6f5;
  --muted: #a9a6c9;
  --cyan: #00f0ff;
  --pink: #ff2ec4;
  --gold: #ffd23f;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #0b0d1a 0%, #171236 38%, #3a1a55 68%, #7a2a5a 88%, #a13a58 100%) fixed;
  color: var(--text);
  line-height: 1.6;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: min(1080px, 92vw); margin: 0 auto; }

a { color: var(--cyan); }
a:hover { color: #7df6ff; }

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.9rem; margin-bottom: 0.75rem; color: var(--gold); }

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px min(4vw, 40px);
  background: rgba(11, 13, 26, 0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand img { display: block; height: 48px; width: auto; }

.site-header nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--cyan); }

.nav-cta {
  background: var(--cyan);
  color: #0b0d1a !important;
  padding: 8px 16px;
  border-radius: 6px;
}
.nav-cta:hover { background: #7df6ff; }

/* hero */
.hero {
  text-align: center;
  padding: 72px 0 48px;
  background-image: url('/art/skyline.png');
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: auto 200px;
  image-rendering: pixelated;
  padding-bottom: 220px;
}

.hero-wordmark {
  width: min(492px, 86vw);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(167, 111, 240, 0.45)) drop-shadow(6px 8px 0 rgba(0, 0, 0, 0.55));
}

.hero-tagline { font-size: 1.35rem; color: var(--text); margin: 20px 0 28px; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #0b0d1a;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
}
.btn-primary:hover { background: #7df6ff; color: #0b0d1a; }

.hero-platforms { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }

/* sections */
section { padding: 44px 0; }
.about p { font-size: 1.1rem; max-width: 70ch; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.feature-card h3 { color: var(--cyan); margin-bottom: 8px; }
.feature-card p { color: var(--muted); }

.shot-grid { display: grid; gap: 18px; }
.shot-grid img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.cta { text-align: center; padding-bottom: 80px; }
.cta .btn { margin-top: 18px; }

/* support */
.support-hero h1 { font-size: 2.4rem; color: var(--gold); margin: 40px 0 8px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 14px 18px;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); }
.faq details p { margin-top: 10px; color: var(--muted); }

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 13, 26, 0.85);
  padding: 28px min(4vw, 40px);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-size: 3rem; color: var(--pink); margin-bottom: 12px; }

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

/* ============ THE INSTRUCTION BOOKLET (/manual/) ============ */
.manual-main { width: 100%; max-width: none; }

.manual-head { text-align: center; padding: 36px 4vw 8px; }
.manual-head h1 { color: var(--gold); font-size: 2.2rem; }
.manual-hint { color: var(--muted); margin-top: 6px; }

.manual-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2vw 56px;
}

.manual-nav {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.manual-nav:hover { border-color: var(--cyan); color: var(--cyan); }

.manual-track {
  flex: 1;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 18px 8vw;
  -webkit-overflow-scrolling: touch;
}

/* one printed sheet */
.manual-page {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: min(460px, 86vw);
  aspect-ratio: 17 / 22; /* squat booklet page */
  background: #f4ecd8;   /* old-manual paper */
  color: #2a2333;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(120, 90, 40, 0.12);
  padding: 26px 28px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  font-size: clamp(0.82rem, 2.4vw, 0.98rem);
  line-height: 1.5;
}

.manual-page a { color: #7a2a8a; }

/* per-chapter color coding, like the old booklets */
.m-band { border-radius: 4px; padding: 8px 14px; margin-bottom: 14px; color: #fff; }
.m-band h2 { font-size: 1.25rem; color: #fff; margin: 0; }
.m-kicker { display: block; font-size: 0.65rem; letter-spacing: 2px; opacity: 0.85; }
.accent-cyan .m-band { background: #0e7c8c; }
.accent-pink .m-band { background: #b3238c; }
.accent-gold .m-band { background: #a8720d; }
.accent-purple .m-band { background: #5a3591; }

.m-body { flex: 1; }
.m-body ul, .m-body ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.m-body h4 { margin: 12px 0 6px; letter-spacing: 1px; }
.m-body img { image-rendering: pixelated; }

.m-figure { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 12px; }
.m-vs { font-weight: 900; color: #b3238c; }

.m-warning {
  border: 2px solid #b3238c;
  border-radius: 4px;
  padding: 10px;
  font-weight: 700;
  font-size: 0.8em;
  margin-bottom: 12px;
}
.m-seal-note { margin-top: 12px; font-size: 0.78em; font-style: italic; }

.m-pageno { text-align: center; color: #8a7a5a; font-size: 0.8em; padding-top: 8px; }

/* covers */
.manual-page.is-cover {
  background: linear-gradient(180deg, #171236 0%, #3a1a55 60%, #7a2a5a 100%);
  color: #e8e6f5;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.m-cover { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.m-cover a { color: var(--cyan); }
.m-cover-top { letter-spacing: 4px; font-weight: 900; color: var(--gold); }
.m-cover-logo { width: min(320px, 70%); height: auto; }
.m-cover-art { image-rendering: pixelated; }
.m-cover-bottom { font-size: 0.75em; color: #cbc6e6; }

/* the notes page */
.m-notes { display: flex; flex-direction: column; gap: 26px; padding-top: 18px; }
.m-noteline { border-bottom: 1.5px solid #b9a87f; }

/* print: one sheet per page, chrome hidden - the "printed manual" */
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .manual-nav, .manual-head { display: none !important; }
  .manual-shell, .manual-track { display: block; overflow: visible; padding: 0; }
  .manual-page {
    width: 100%;
    aspect-ratio: auto;
    min-height: 95vh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
    break-after: page;
    page-break-after: always;
  }
}

/* TOC: dotted leaders to right-aligned page numbers */
.m-toc { list-style: none; padding-left: 0 !important; counter-reset: toc; }
.m-toc li { display: flex; align-items: baseline; gap: 8px; counter-increment: toc; }
.m-toc li::before { content: counter(toc) "."; min-width: 1.6em; font-weight: 700; }
.m-toc li::after { content: ""; flex: 1; order: 2; border-bottom: 2px dotted #b9a87f; transform: translateY(-3px); }
.m-toc li span { order: 1; }
.m-toc li i { order: 3; font-style: normal; font-weight: 700; }

/* ============ SNES-era manual restyle (overrides) ============ */
.manual-page {
  background: #f7f6f2; /* clean SNES-manual white */
  border-radius: 3px;
  border: 2px solid #16122a;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.m-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 2px;
}

/* checkerboard tail on every chapter bar - pure SNES print design */
.m-checker {
  width: 72px;
  height: 26px;
  flex: 0 0 auto;
  background: conic-gradient(rgba(255,255,255,0.4) 90deg, transparent 0 180deg, rgba(255,255,255,0.4) 0 270deg, transparent 0) 0 0 / 13px 13px;
}

/* footer: four-color pips (console-logo nod) + page number in a colored box */
.m-pageno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
}

.m-pips {
  width: 52px;
  height: 10px;
  background: linear-gradient(90deg, #e60012 0 25%, #f8b500 0 50%, #00a651 0 75%, #0079c1 0);
  border-radius: 2px;
}

.m-pagebox {
  min-width: 34px;
  text-align: center;
  padding: 4px 10px;
  color: #fff;
  font-weight: 900;
  border-radius: 2px;
}
.accent-cyan .m-pagebox { background: #0e7c8c; }
.accent-pink .m-pagebox { background: #b3238c; }
.accent-gold .m-pagebox { background: #a8720d; }
.accent-purple .m-pagebox { background: #5a3591; }

/* covers: black console-box field with a fine grid */
.manual-page.is-cover {
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,0.05) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,0.05) 23px 24px),
    #14121f;
  border-color: #000;
}

.m-sys-strip {
  background: #d8d8d8;
  color: #14121f;
  font-size: 0.62em;
  font-weight: 900;
  letter-spacing: 2.5px;
  padding: 6px 14px;
  border-radius: 2px;
}
