@font-face { font-family: 'Chewy'; src: url('assets/fonts/chewy.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #0F1622;
  --bg-deep: #0B111B;
  --band: #141E2C;
  --card: #1E2A3B;
  --line: #33445C;
  --line-soft: #22303F;
  --text: #EAF2F8;
  --muted: #9FB0C3;
  --faint: #7D8FA5;
  --green: #39FF4A;
  --green-shadow: #1E9A2A;
  --yellow: #FFD21F;
  --yellow-shadow: #A88600;
  --cyan: #22E4F0;
  --display: 'Chewy', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: 0.5px; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding-bottom: 64px; }

.label { font-weight: 700; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; }
.label.green { color: var(--green); }
.label.yellow { color: var(--yellow); }
.label.cyan { color: var(--cyan); }
.label.faint { color: var(--faint); font-size: 12px; }
.pill { display: inline-block; align-self: flex-start; color: var(--cyan); border: 2px solid var(--cyan); border-radius: 999px; padding: 6px 14px; }
.muted { color: var(--muted); font-weight: 500; line-height: 1.55; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-family: var(--display); letter-spacing: 1px; border-radius: 14px; padding: 14px 32px; font-size: 26px; }
.btn-yellow { color: var(--bg); background: var(--yellow); box-shadow: 0 5px 0 var(--yellow-shadow); }
.btn-green { color: var(--bg); background: var(--green); box-shadow: 0 4px 0 var(--green-shadow); font-size: 22px; padding: 12px 26px; border-radius: 12px; }
.btn-ghost { color: var(--text); border: 2px solid var(--line); font-size: 24px; padding: 13px 26px; }
.btn:hover { color: var(--bg); filter: brightness(1.08); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn:active { transform: translateY(3px); box-shadow: none; }

/* header */
.site-header { background: var(--bg-deep); border-bottom: 2px solid var(--line-soft); padding: 12px 0; }
.site-header nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { text-decoration: none; font-family: var(--display); font-size: 32px; letter-spacing: 1px; color: var(--green); }
.logo:hover { color: var(--green); }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 16px; padding: 12px 12px; }
.nav-links a:hover { color: var(--yellow); }
.nav-links .btn { font-size: 22px; padding: 8px 22px; border-radius: 12px; margin-left: 8px; box-shadow: 0 4px 0 var(--yellow-shadow); }

/* hero */
.hero { max-width: 1200px; padding-top: 40px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.hero-text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(56px, 7.5vw, 96px); line-height: 0.95; letter-spacing: 1px; color: var(--yellow); }
.hero .muted { font-size: 19px; max-width: 460px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.hero-art { flex: 1 1 420px; min-width: 0; max-width: 640px; width: 100%; filter: drop-shadow(0 0 48px rgba(57, 255, 74, 0.28)); }

/* cards */
.card { background: var(--card); border: 2px solid var(--line); border-radius: 24px; }
.beta { overflow: hidden; display: flex; flex-direction: column; }
.beta img { width: 100%; }
.beta-body { padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.beta-body > div { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.beta h2 { font-size: 42px; }
.beta .muted { font-size: 17px; }

.section-title { font-size: clamp(36px, 4.5vw, 48px); }

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 20px; }
.mode { border-radius: 20px; padding: 18px 22px; display: flex; align-items: center; gap: 18px; }
.mode img { width: 110px; height: 110px; object-fit: contain; flex: none; }
.mode img.glow { filter: drop-shadow(0 0 14px rgba(196, 140, 255, 0.45)); }
.mode > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mode h3 { font-size: 30px; }
.mode .muted { font-size: 16px; line-height: 1.45; }

.pets-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 20px; }
.pets-head .muted { font-size: 16px; }
.pets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 840px; margin: 0 auto; }
.pet { border-radius: 20px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pet img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.pet h3 { font-size: 24px; letter-spacing: 0.5px; }

/* lore */
.lore { background: var(--bg-deep); border-top: 2px solid var(--line-soft); padding: 64px 0 72px; }
.lore .wrap { display: flex; flex-direction: column; gap: 32px; }
.lore-top { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.lore-top > div { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lore h2 { font-size: clamp(44px, 6vw, 72px); line-height: 0.95; }
.lore-top .muted { font-size: 18px; max-width: 560px; line-height: 1.6; }
.lore-top img { flex: 1 1 220px; min-width: 0; max-width: 300px; width: 100%; }
.files { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.file { background: var(--band); border: 2px solid var(--line-soft); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.file h3 { font-size: 28px; }
.file .muted { font-size: 16px; }

/* footer */
.site-footer { background: var(--bg-deep); border-top: 2px solid var(--line-soft); padding: 26px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: var(--muted); }
.site-footer .logo { font-size: 26px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---- added 2026-11-12: how to play, gloom nights, facts, parents, faq ---- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }
.lead { font-size: 18px; max-width: 680px; margin-top: 10px; }
.fine { font-size: 15px; margin-top: 16px; }
.section > .label { margin-bottom: 8px; }
.pad-top { padding-top: 64px; }

.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.step { border-radius: 20px; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.step .num { font-family: var(--display); font-size: 26px; line-height: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--bg); box-shadow: 0 4px 0 var(--green-shadow); margin-bottom: 8px; }
.step h3 { font-size: 28px; }
.step .muted { font-size: 16px; line-height: 1.5; }

.wings { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.wing { background: var(--band); border: 2px solid var(--line-soft); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.wing h3 { font-size: 26px; }
.wing .muted { font-size: 15px; }
.wing.locked { border-style: dashed; }
.wing.locked h3 { color: var(--faint); }

.band { background: var(--band); border-top: 2px solid var(--line-soft); border-bottom: 2px solid var(--line-soft); padding: 64px 0; margin-bottom: 64px; }
.nights-top { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.nights-top > div:first-child { flex: 999 1 420px; min-width: 0; }
.nights-top .label { margin-bottom: 8px; }
.clock { flex: 1 1 340px; max-width: 420px; border-radius: 20px; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-deep); }
.clock-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; font-weight: 600; color: var(--muted); }
.clock-row span { white-space: nowrap; }
.clock-row strong { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--yellow); font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock .fine { margin-top: 2px; font-size: 13px; }
.sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-top: 28px; }
.side { border-radius: 20px; padding: 20px 22px; }
.side ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.side li { color: var(--muted); font-weight: 500; line-height: 1.45; font-size: 16px; padding-left: 22px; position: relative; }
.side li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }

.pets-head.sub { margin-top: 48px; }
.sub-title { font-size: clamp(28px, 3.5vw, 36px); }
.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.pair { border-radius: 20px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pair-art { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.pair-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.pair-art img.glow { filter: drop-shadow(0 0 14px rgba(196, 140, 255, 0.45)); }
.pair h3 { font-size: 24px; }
.pair.mystery { justify-content: center; border-style: dashed; background: transparent; min-height: 180px; }
.pair.mystery .q { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--line); }
.pair.mystery h3 { color: var(--faint); }

.facts, .parents { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 20px; }
.fact { background: var(--band); border: 2px solid var(--line-soft); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.fact h3 { font-size: 24px; }
.fact .muted { font-size: 16px; line-height: 1.5; }

.scrawl { font-family: var(--body); font-style: italic; font-weight: 600; font-size: 15px; color: var(--cyan); margin-top: 6px; transform: rotate(-1deg); transform-origin: left; }

.faq { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq details { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 22px; letter-spacing: 0.5px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-size: 28px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 18px; font-size: 16px; }

.site-footer .legal { flex-basis: 100%; font-size: 13px; font-weight: 500; color: var(--faint); line-height: 1.5; }

/* plain pages (privacy, 404) */
.page { max-width: 720px; padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.page h1 { font-size: clamp(44px, 6vw, 64px); color: var(--yellow); }
.page h2 { font-size: 28px; margin-top: 12px; }
.page p, .page li { color: var(--muted); font-weight: 500; line-height: 1.6; font-size: 17px; }
.page ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 640px) {
  .nav-links a { font-size: 15px; padding: 10px 9px; }
  .nav-links .btn { margin-left: 2px; }
  .beta h2 { font-size: 34px; }
  .mode { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 640px) {
  .pets { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pet { padding: 10px 8px; border-radius: 16px; }
  .pet h3 { font-size: 18px; }
}
