/* The game's own palette (Sweetie 16) and font. Pixel-style edges: hard shadows, no rounded corners. */

@font-face {
  font-family: 'Press Start 2P';
  src: url('/assets/press-start-2p.woff2') format('woff2');
  font-display: swap;
}

:root {
  --ink: #1a1c2c;
  --plum: #5d275d;
  --red: #b13e53;
  --orange: #ef7d57;
  --sun: #ffcd75;
  --lime: #a7f070;
  --green: #38b764;
  --teal: #257179;
  --navy: #29366f;
  --blue: #3b5dc9;
  --sky: #41a6f6;
  --cyan: #73eff7;
  --snow: #f4f4f4;
  --mist: #94b0c2;
  --slate: #566c86;
  --night: #333c57;

  --paper: #fffaf0;
  --text: #1a1c2c;
  --muted: #475066;
  --pixel: 'Press Start 2P', ui-monospace, monospace;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow: 4px 4px 0 var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 18px/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--sun); padding: 8px 12px; }

h1, h2, h3 { line-height: 1.3; }
.pixel, h2.pixel, h1.pixel { font-family: var(--pixel); font-weight: normal; letter-spacing: 0; }

/* ---- Header ---- */

.top { background: var(--ink); color: var(--snow); position: sticky; top: 0; z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--sun); text-decoration: none; font-family: var(--pixel); font-size: 13px; }
.brand:hover { color: var(--snow); }
.brand img { image-rendering: pixelated; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--snow); text-decoration: none; font-size: 16px; }
.top nav a:hover { color: var(--cyan); }

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

.hero {
  background: linear-gradient(var(--sky) 0 72%, var(--green) 72% 100%);
  color: var(--ink);
  padding: 48px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero .cloud { position: absolute; background: var(--snow); height: 18px; box-shadow: 18px -18px 0 var(--snow), 36px 0 0 var(--snow); width: 36px; opacity: .9; }
.hero .cloud.a { top: 40px; left: 6%; }
.hero .cloud.b { top: 90px; right: 10%; }
.hero h1 {
  font-family: var(--pixel); font-weight: normal; margin: 0;
  font-size: clamp(26px, 6vw, 56px); line-height: 1.25;
  color: var(--sun); text-shadow: 4px 4px 0 var(--red), 7px 7px 0 var(--ink);
}
.hero .subtitle { font-family: var(--pixel); color: var(--snow); text-shadow: 3px 3px 0 var(--ink); font-size: clamp(14px, 2.6vw, 22px); margin: 16px 0 0; }
.hero .tagline {
  display: inline-block; margin: 24px 0 0; padding: 10px 16px;
  background: var(--ink); color: var(--cyan); font-size: clamp(16px, 2.2vw, 20px); font-weight: 600;
}
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 0; }
.store {
  display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 190px;
  background: var(--ink); color: var(--snow); text-decoration: none; padding: 10px 18px;
  font-weight: 700; font-size: 18px; box-shadow: var(--shadow); border: 3px solid var(--snow);
}
.store span { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--mist); }
a.store:hover { color: var(--sun); transform: translate(-1px, -1px); }
.store.soon { opacity: .92; }
.store.play { background: var(--green); color: var(--ink); border-color: var(--ink); }
.store.play span { color: var(--ink); }
a.store.play:hover { background: var(--lime); color: var(--ink); }
.trio { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin: 40px auto 0; max-width: 640px; }
.trio img { width: 30%; border: 5px solid var(--ink); border-bottom: 0; background: var(--ink); aspect-ratio: 9 / 13; object-fit: cover; object-position: top; }
.trio img:nth-child(2) { width: 36%; aspect-ratio: 9 / 14; position: relative; z-index: 1; margin: 0 -2%; box-shadow: 0 0 0 4px var(--sun); }

/* ---- Facts strip ---- */

.facts { background: var(--ink); color: var(--snow); }
.facts ul { list-style: none; margin: 0 auto; padding: 18px 16px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; max-width: 1100px; }
.facts li { font-weight: 600; }
.facts li::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--lime); margin-right: 10px; vertical-align: 1px; }

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

.band { padding: 64px 0; }
.band.alt { background: #eef6ff; }
.band.dark { background: var(--navy); color: var(--snow); }
.band.dark a:not(.button) { color: var(--cyan); }
.band h2 { font-family: var(--pixel); font-weight: normal; font-size: clamp(18px, 3vw, 26px); margin: 0 0 12px; }
.lead { font-size: 20px; max-width: 760px; margin: 0 0 32px; color: var(--muted); }
.band.dark .lead { color: var(--mist); }

.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1.2fr 1fr; } .split.flip > :first-child { order: 2; } }

.phone { max-width: 300px; margin: 0 auto; border: 6px solid var(--ink); box-shadow: 8px 8px 0 rgba(26, 28, 44, .25); background: var(--ink); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { background: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 16px 18px; }
.steps strong { display: block; font-family: var(--pixel); font-weight: normal; font-size: 13px; margin-bottom: 8px; color: var(--plum); }

/* Lands */
.lands { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .lands { grid-template-columns: 1fr 1fr; } }
.land { border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 20px; background: #fff; }
.land h3 { font-family: var(--pixel); font-weight: normal; font-size: 15px; margin: -20px -20px 16px; padding: 14px 20px; color: var(--ink); }
.land ul { margin: 0; padding-left: 20px; }
.land.garden h3 { background: var(--lime); }
.land.dunes h3 { background: var(--sun); }
.land.peaks h3 { background: var(--cyan); }
.land.isles h3 { background: #f6b6c8; }

.ideas { margin: 28px 0 0; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; color: var(--text); border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

/* Free vs full */
.plans { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: #fff; color: var(--text); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 24px; }
.plan h3 { font-family: var(--pixel); font-weight: normal; font-size: 16px; margin: 0 0 6px; }
.plan .price { font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan.full { background: #fff7e0; }
.plan-play { margin: 18px 0 0; }
.plan-play .button { background: var(--green); }
.plan.full h3 { color: var(--red); }
.note { margin: 20px 0 0; color: var(--mist); font-size: 16px; }

/* Grown-ups */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; background: var(--green); box-shadow: 3px 3px 0 var(--ink); }
.checks strong { display: block; }

/* Screenshots */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 20px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 200px; scroll-snap-align: start; }
.shots img { border: 4px solid var(--ink); }
.shots figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* FAQ */
.faq details { background: #fff; border: 3px solid var(--ink); padding: 14px 18px; margin: 0 0 12px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p, .faq details ul { margin: 10px 0 0; }

.button {
  display: inline-block; background: var(--orange); color: var(--ink); font-weight: 700; text-decoration: none;
  padding: 12px 20px; border: 3px solid var(--ink); box-shadow: var(--shadow);
}
.button:hover { background: var(--sun); color: var(--ink); }

/* ---- Text pages (support, privacy, terms, company, credits) ---- */

.page { padding: 48px 0 64px; }
.doc { max-width: 780px; }
.doc h1 { font-family: var(--pixel); font-weight: normal; font-size: clamp(18px, 3.4vw, 26px); line-height: 1.5; margin: 0 0 24px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; padding-top: 8px; border-top: 3px solid var(--ink); }
.doc h3 { font-size: 20px; margin: 28px 0 8px; }
.doc li { margin: 4px 0; }
.doc code { background: #eef0f4; padding: 1px 5px; font-size: .9em; overflow-wrap: anywhere; }
.doc a { overflow-wrap: anywhere; }
.table { overflow-x: auto; margin: 16px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; }
.doc th, .doc td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--sun); }
.details th { width: 38%; background: #eef6ff; }
.licences { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; background: #fff; border: 3px solid var(--ink); padding: 16px; max-height: 70vh; overflow-y: auto; }

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

.bottom { background: var(--ink); color: var(--mist); padding: 36px 0 44px; font-size: 15px; }
.bottom a { color: var(--snow); }
.foot-title { color: var(--sun); font-weight: 700; margin: 0 0 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 18px; }
.bottom .fine { font-size: 13px; color: var(--slate); }




/* ---- Company home and the series ---- */

.hero.company { padding: 72px 0 96px; background: linear-gradient(var(--sky) 0 80%, var(--green) 80% 100%); }
.hero .series {
  display: inline-block; margin: 0 0 18px; padding: 6px 12px; background: var(--plum); color: var(--snow);
  font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.games { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .games { grid-template-columns: 2fr 1fr; } }
.game-card {
  display: block; background: #fff; color: var(--text); text-decoration: none;
  border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
a.game-card:hover { color: var(--text); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.game-card img { image-rendering: pixelated; border-bottom: 4px solid var(--ink); width: 100%; }
.game-card > div { padding: 20px; }
.game-card h3 { font-family: var(--pixel); font-weight: normal; font-size: 18px; margin: 0 0 10px; }
.game-card p { margin: 0 0 16px; color: var(--muted); }
.series-no { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; color: var(--plum) !important; margin: 0 0 6px !important; }
.game-card.next { background: repeating-linear-gradient(45deg, #fff 0 14px, #f3f6fb 14px 28px); display: flex; align-items: center; }
