@font-face {
  font-family: 'Lilita One';
  src: url('/fonts/lilita-one.woff2') format('woff2');
  font-display: swap;
}

:root {
  --ink: #22183c;
  --ink-2: #3b2e5e;
  --paper: #fff9f0;
  --card: #ffffff;
  --sun: #ffcf3f;
  --sun-dark: #c99a12;
  --red: #ff4d5e;
  --muted: #5f5775;
  --line: #ebe1d2;
  --link: #6a2fd0;
  --radius: 22px;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --accent: var(--ink-2);
  --accent-2: var(--red);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  display: flex; flex-direction: column; min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--text);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: normal; letter-spacing: .3px; }
main { flex: 1; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 10;
  background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { left: 12px; }

/* The bar along the top */

.top { background: var(--ink); color: #fff; }
.top .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 4px 20px; min-height: 64px; padding-top: 8px; padding-bottom: 8px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font: 27px/1 var(--display);
}
.brand svg { width: 38px; height: 38px; flex: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.top nav a { color: #e6defc; text-decoration: none; font-weight: 650; font-size: 15.5px; padding: 6px 0; }
.top nav a:hover { color: var(--sun); }

/* Buttons and badges */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sun); color: var(--ink); text-decoration: none;
  font: 20px/1 var(--display); letter-spacing: .4px;
  padding: 14px 24px 13px; border-radius: 999px;
  box-shadow: 0 4px 0 var(--sun-dark);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sun-dark); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--sun-dark); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.game { background: var(--accent); color: #fff; box-shadow: 0 4px 0 rgba(20, 10, 40, .35); }
.btn.game:hover { box-shadow: 0 6px 0 rgba(20, 10, 40, .35); }
.btn.game:active { box-shadow: 0 2px 0 rgba(20, 10, 40, .35); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f1ebff; color: var(--ink-2);
  font-weight: 700; font-size: 14.5px; line-height: 1.2;
  padding: 8px 14px; border-radius: 999px;
}
.badge svg { width: 14px; height: 14px; flex: none; }

/* The home page */

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 78% 40%, rgba(255, 95, 162, .35), transparent 46%),
    radial-gradient(circle at 12% 0%, rgba(120, 80, 255, .35), transparent 50%),
    repeating-linear-gradient(-55deg, rgba(255, 255, 255, .035) 0 26px, transparent 26px 52px),
    var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}
.hero .wrap { display: grid; gap: 36px; padding-top: 36px; padding-bottom: 88px; }
.hero h1 {
  margin: 0; color: var(--sun);
  font: clamp(54px, 13vw, 104px)/.95 var(--display);
  text-shadow: 0 5px 0 #120b24;
}
.hero .tag { margin: 14px 0 0; font: clamp(26px, 5.4vw, 38px)/1.12 var(--display); }
.hero .intro { margin: 16px 0 28px; max-width: 32em; color: #dcd4f2; font-size: 18px; }
.hero-icons { display: flex; justify-content: center; align-items: center; gap: 22px; }
.hero-icons a { display: block; border-radius: 24%; transition: transform .15s; }
.hero-icons img { width: clamp(118px, 32vw, 200px); border-radius: 24%; box-shadow: 0 16px 34px rgba(0, 0, 0, .5); }
.hero-icons a:first-child { transform: rotate(-7deg); }
.hero-icons a:last-child { transform: rotate(6deg) translateY(20px); }
.hero-icons a:first-child:hover { transform: rotate(-4deg) scale(1.04); }
.hero-icons a:last-child:hover { transform: rotate(3deg) translateY(20px) scale(1.04); }

.section { padding: 48px 0 24px; }
#contact { padding-top: 8px; }
.section > .wrap > h2 { margin: 0 0 26px; font: clamp(36px, 7.5vw, 54px)/1 var(--display); }

.game-card {
  display: grid; overflow: hidden; margin: 0 0 34px;
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink);
}
.gc-text { padding: 26px 24px 30px; }
.gc-head { display: flex; align-items: center; gap: 16px; }
.gc-head img { width: 78px; border-radius: 22%; box-shadow: 0 6px 14px rgba(34, 24, 60, .25); }
.gc-head h3 { margin: 0; font: clamp(34px, 6vw, 44px)/1 var(--display); }
.gc-text > p { margin: 16px 0 18px; font-size: 18.5px; line-height: 1.5; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.links a:not(.btn) { font-weight: 650; }
.gc-shots {
  display: flex; justify-content: center; align-items: flex-start;
  height: 330px; padding: 30px 8px 0; overflow: hidden;
  background:
    repeating-linear-gradient(-55deg, rgba(255, 255, 255, .08) 0 22px, transparent 22px 44px),
    linear-gradient(135deg, var(--accent), var(--accent-2));
}
.gc-shots img {
  width: 37%; max-width: 190px; margin: 0 -3.5%;
  border: 4px solid var(--ink); border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35);
}
.gc-shots img:nth-child(1) { transform: rotate(-9deg) translateY(30px); }
.gc-shots img:nth-child(2) { position: relative; z-index: 1; }
.gc-shots img:nth-child(3) { transform: rotate(9deg) translateY(30px); }

.contact-card {
  padding: 30px 24px; margin-bottom: 40px;
  background: var(--sun); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink);
}
.contact-card h2 { margin: 0 0 10px; font: clamp(34px, 7vw, 48px)/1 var(--display); }
.contact-card p { margin: 0 0 16px; max-width: 36em; font-size: 18px; }
.contact-card p:last-child { margin-bottom: 0; }
.mail { color: var(--ink); font: clamp(23px, 5.6vw, 34px)/1.2 var(--display); overflow-wrap: anywhere; }

@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.25fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 120px; }
  .game-card { grid-template-columns: 1fr 1fr; }
  .gc-text { padding: 40px 40px 44px; align-self: center; }
  .gc-shots { height: auto; min-height: 420px; padding-top: 44px; }
  .game-card:nth-of-type(even) .gc-shots { order: -1; }
  .contact-card { padding: 40px; }
}

/* A game's page */

.game-hero {
  color: #fff;
  background:
    repeating-linear-gradient(-55deg, rgba(255, 255, 255, .07) 0 26px, transparent 26px 52px),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%);
}
.game-hero .wrap { display: grid; gap: 18px; justify-items: start; padding-top: 36px; padding-bottom: 76px; }
.game-hero .icon { width: 120px; border-radius: 22%; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.game-hero h1 { margin: 0; font: clamp(52px, 11vw, 88px)/.95 var(--display); text-shadow: 0 5px 0 rgba(20, 10, 40, .3); }
.game-hero .tag { margin: 0; max-width: 28em; font-size: clamp(19px, 3.6vw, 24px); font-weight: 650; line-height: 1.4; }
.game-hero .badge { background: rgba(255, 255, 255, .94); }
.game-hero .btn { background: #fff; box-shadow: 0 4px 0 rgba(20, 10, 40, .3); }

/* the screenshots run to the screen's edge, starting in line with the page */
.strip {
  --edge: max(20px, calc((100% - 1080px) / 2));
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--edge);
  padding: 10px var(--edge) 22px; margin: 0;
}
.strip figure { flex: none; width: min(60vw, 250px); margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
.strip figcaption { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }

.about { display: grid; gap: 30px; padding-top: 28px; padding-bottom: 20px; }
.about h2 { margin: 0 0 14px; font: clamp(32px, 6vw, 42px)/1 var(--display); }
.about p { margin: 0 0 16px; font-size: 18.5px; line-height: 1.55; }
.about .small { color: var(--muted); font-size: 16px; }
.features { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.features li {
  position: relative; padding: 12px 16px 12px 50px;
  background: var(--card); border: 2px solid var(--line); border-radius: 16px;
  font-weight: 650; line-height: 1.4;
}
.features li::before {
  content: ''; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 5px var(--accent-2);
}
.cards { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 56px; }
.card {
  display: block; padding: 22px 24px; color: var(--ink); text-decoration: none;
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
a.card:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); text-decoration: none; }
.card h2, .card h3 { margin: 0 0 6px; font: 26px/1.1 var(--display); }
.card p { margin: 0; color: var(--muted); }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.card-head img { width: 52px; border-radius: 22%; }
.card-head h3 { margin: 0; }
.card .go { display: inline-block; margin-top: 10px; color: var(--link); font-weight: 700; }

@media (min-width: 860px) {
  .game-hero .wrap { grid-template-columns: auto 1fr; align-items: center; column-gap: 36px; padding-top: 56px; padding-bottom: 100px; }
  .game-hero .icon { grid-row: 1 / span 4; width: 200px; }
  .about { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
  .cards { grid-template-columns: 1fr 1fr; }
}

/* The privacy policies */

.doc { max-width: 800px; margin: 0 auto; padding: 32px 20px 64px; }
.crumbs { margin: 0 0 18px; font-size: 15.5px; font-weight: 650; }
.doc h1 { margin: 0 0 8px; font: clamp(38px, 7.5vw, 56px)/1.02 var(--display); }
.doc .updated { margin: 0 0 24px; color: var(--muted); }
.doc h2 { margin: 44px 0 12px; font: clamp(26px, 5vw, 31px)/1.15 var(--display); scroll-margin-top: 16px; }
.doc h3 { margin: 30px 0 8px; font-size: 20px; font-weight: 750; scroll-margin-top: 16px; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 1.3em; }
.doc li { margin: 7px 0; }
.doc li > ul { margin: 7px 0 0; }
.doc a { overflow-wrap: anywhere; }
.doc strong { font-weight: 750; }
.toc { margin: 24px 0 8px; padding: 2px 20px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; }
.toc summary { padding: 12px 0; cursor: pointer; font-weight: 750; }
.toc ul { margin: 0 0 16px; padding-left: 1.2em; columns: 2 230px; column-gap: 28px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 18px 0 20px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; }
.doc table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.doc th, .doc td { padding: 11px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { background: #f4eefe; font-weight: 750; }
.doc tr:last-child td { border-bottom: 0; }
.doc .cards { padding: 4px 0 8px; }
.doc .card h3 { margin: 0; font: 26px/1.1 var(--display); }
@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc table { min-width: 0; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .doc tr:last-child { border-bottom: 0; }
  .doc td { padding: 6px 14px; border: 0; }
  .doc td::before {
    content: attr(data-label); display: block;
    color: var(--muted); font-size: 12.5px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase;
  }
}

/* Not found */

.lost { padding: 56px 20px 72px; text-align: center; }
.lost h1 { margin: 0; color: var(--red); font: clamp(90px, 24vw, 160px)/.9 var(--display); text-shadow: 0 6px 0 var(--ink); }
.lost p { margin: 18px auto 28px; max-width: 26em; font-size: 19px; }

/* The bar along the bottom */

.foot { background: var(--ink); color: #cfc6e8; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; padding-top: 26px; padding-bottom: 30px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: #fff; }

/* Each game's colours (from site.json) */

.g-adrush { --accent: #c13cc9; --accent-2: #ff5fa2; }
.g-gold-getaway { --accent: #1a7bcc; --accent-2: #4fbdfc; }
