@font-face { font-family: "Lilita One"; src: url("fonts/lilita-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --ink: #2b2340;
  --muted: #5d5578;
  --cream: #fffdf8;
  --paper: #fff7ec;
  --sky: #9ed4fa;
  --sky-2: #d8efff;
  --tabby: #ff8a3d;
  --tabby-dark: #c2541a;
  --sun: #ffd23f;
  --grass: #7cc66b;
  --line: #e6dccb;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tabby-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--tabby); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-size: 24px; letter-spacing: .01em; line-height: 1; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 900; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }

/* hero */
.hero { background: linear-gradient(var(--sky), var(--sky-2)); border-bottom: 3px solid var(--ink); overflow: hidden; }
.hero .wrap { padding: 56px 0 64px; display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.eyebrow { display: inline-block; font-weight: 900; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); margin: 16px 0 14px; color: var(--tabby); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.hero p { font-size: 19px; margin: 0 0 24px; max-width: 34ch; }
.hero-art { position: relative; justify-self: center; width: min(270px, 100%); }
.hero-art img { border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); transform: rotate(2deg); }

.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 16px; color: var(--ink); background: var(--cream); border: 2.5px solid var(--ink); border-radius: 16px; padding: 12px 18px; box-shadow: 0 4px 0 var(--ink); }
.btn.primary { background: var(--tabby); color: var(--cream); }
.btn[aria-disabled="true"] { cursor: default; }
.btn small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; line-height: 1.1; }
.btn b { display: block; line-height: 1.15; }

/* sections */
section { padding: 64px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 44px); }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 60ch; }

.game { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; background: var(--paper); border: 3px solid var(--ink); border-radius: 28px; padding: 28px; box-shadow: 0 6px 0 var(--ink); }
.game > img { width: 140px; border-radius: 30px; border: 3px solid var(--ink); }
.game h3 { font-size: 34px; }
.game .tag { font-family: var(--display); font-size: 20px; color: var(--tabby-dark); margin: 4px 0 12px; }
.game p { margin: 0 0 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; list-style: none; }
.facts li { font-size: 14px; font-weight: 900; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.shots figure { margin: 0; }
.shots img { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); background: var(--sky); }
.shots figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }

.about { background: var(--paper); border-block: 3px solid var(--ink); }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about p { margin: 0 0 14px; }
.next { background: var(--cream); border: 2.5px dashed var(--ink); border-radius: 22px; padding: 22px 24px; }
.next h3 { font-size: 26px; margin-bottom: 8px; }

/* document pages (privacy, support) */
.doc-head { background: linear-gradient(var(--sky), var(--sky-2)); border-bottom: 3px solid var(--ink); padding: 44px 0 40px; }
.doc-head h1 { font-size: clamp(36px, 5.5vw, 52px); color: var(--tabby); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.doc-head p { margin: 12px 0 0; max-width: 60ch; }
.doc { padding: 40px 0 72px; font-weight: 600; }
.doc h2 { font-size: 28px; margin: 40px 0 12px; }
.doc h3 { font-family: var(--body); font-weight: 900; font-size: 18px; margin: 24px 0 6px; line-height: 1.3; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc strong { font-weight: 900; }
.summary { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 20px; padding: 18px 22px; margin: 0 0 8px; }
.summary ul { margin: 8px 0 0; }
.table-scroll { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; border: 2px solid var(--line); padding: 10px 12px; }
th { background: var(--paper); font-weight: 900; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; padding: 22px 24px; box-shadow: 0 5px 0 var(--ink); margin-bottom: 12px; }
.contact-card p { margin: 0; }
.contact-card .email { font-family: var(--display); font-size: clamp(18px, 5.2vw, 24px); overflow-wrap: anywhere; }
details { border: 2.5px solid var(--ink); border-radius: 18px; background: var(--cream); margin: 12px 0; }
summary { cursor: pointer; font-weight: 900; padding: 14px 18px; list-style: none; display: flex; gap: 12px; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--tabby-dark); flex: none; width: 14px; }
details[open] summary::before { content: "–"; }
details[open] summary { border-bottom: 2px solid var(--line); }
details > div { padding: 4px 20px 10px; }
details ol, details ul { padding-left: 1.3em; }

/* footer */
footer { background: var(--ink); color: var(--cream); padding: 36px 0; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer a { color: var(--cream); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.grass { height: 18px; background: var(--grass); border-top: 3px solid var(--ink); }

@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 36px 0 48px; gap: 32px; }
  .hero p { max-width: none; }
  .hero-art { width: min(220px, 70%); }
  .game { grid-template-columns: 1fr; padding: 22px; }
  .game > img { width: 112px; border-radius: 24px; }
  .shots { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .about .wrap { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 48px 0; }
}
