/* Laughing Kookaburra - studio site, 8-bit edition.
   Layout: one centred column, max 1080px. Arcade night screen, hard pixel borders, chunky drop shadows,
   dawn-yellow accent and kookaburra-wing blue. */
@font-face { font-family: "Press Start 2P"; src: url("pressstart2p.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("vt323.ttf") format("truetype"); font-display: swap; }

:root {
  --night: #0F1F24;
  --panel: #17303A;
  --line: #3D6672;
  --ink: #050B0D;
  --sand: #F3E9D2;
  --muted: #A9C4C0;
  --sun: #F2B33D;
  --wing: #5AA0C8;
  --berry: #E0607E;
  --px: 4px;
  --display: "Press Start 2P", "Courier New", monospace;
  --body: "VT323", "Courier New", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--sand);
  font-family: var(--body);
  font-size: 24px;
  line-height: 1.3;
}
/* CRT scanlines */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .14) 0 2px, transparent 2px 4px);
}
img { max-width: 100%; display: block; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--sun); text-underline-offset: 4px; }
a:focus-visible { outline: var(--px) dashed var(--sun); outline-offset: var(--px); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* pixel box: notched corners and a hard shadow */
.box {
  background: var(--panel);
  border: var(--px) solid var(--line);
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
}

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); border-bottom: var(--px) solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--sand); text-decoration: none; font-family: var(--display); font-size: 12px; line-height: 1.5; }
.brand img { width: 54px; height: auto; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-family: var(--display); font-size: 11px; }
.nav a:hover, .nav a:focus-visible { color: var(--sun); }
.nav a:hover::before { content: "\25B6 "; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding-block: 72px 64px; }
.eyebrow { margin: 0 0 18px; color: var(--wing); font-family: var(--display); font-size: 11px; line-height: 1.8; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(26px, 5vw, 52px); line-height: 1.25; text-shadow: 4px 4px 0 var(--ink); }
h1 .laugh { color: var(--sun); display: block; margin-top: 10px; }
.lead { margin: 24px 0 0; font-size: 28px; color: var(--muted); max-width: 30ch; }
.stats { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--display); font-size: 11px; color: var(--sand); }
.stats b { color: var(--sun); font-weight: 400; }
.start {
  display: inline-block; margin-top: 30px; padding: 14px 20px 12px;
  font-family: var(--display); font-size: 14px; color: var(--ink); background: var(--sun); text-decoration: none;
  border: var(--px) solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.start:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.mascot { position: relative; justify-self: center; width: min(380px, 100%); }
.mascot img { width: 100%; }
.bubble {
  position: absolute; top: -20px; right: 0;
  background: var(--sand); color: var(--ink); font-family: var(--display); font-size: 12px;
  padding: 10px 12px; border: var(--px) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.bubble::after { content: ""; position: absolute; left: 14px; bottom: -12px; width: 8px; height: 8px; background: var(--sand); box-shadow: 4px 0 0 var(--ink), 0 4px 0 var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .blink { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .mascot img { animation: hop 1.2s steps(2) infinite; }
  @keyframes hop { 50% { transform: translateY(-8px); } }
}

/* sections */
section { padding-block: 64px; border-top: var(--px) dashed var(--line); }
h2 { font-size: clamp(20px, 3.4vw, 30px); line-height: 1.4; color: var(--sun); text-shadow: 3px 3px 0 var(--ink); }
.section-intro { margin: 16px 0 32px; color: var(--muted); max-width: 54ch; }

/* games: level select */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.game { display: flex; flex-direction: column; min-width: 0; }
.level { position: absolute; top: -18px; left: 16px; z-index: 1; background: var(--wing); color: var(--ink); font-family: var(--display); font-size: 10px; padding: 7px 10px 6px; border: var(--px) solid var(--ink); }
.game-art { aspect-ratio: 1024 / 500; background: var(--ink); border-bottom: var(--px) solid var(--line); overflow: hidden; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.delver-art { display: grid; place-items: center; text-align: center; padding: 16px; background: #0B0907; }
.lantern { width: 24px; height: 32px; margin: 0 auto 20px; background: var(--sun); box-shadow: 0 0 0 var(--px) #8A5A1C, 0 0 36px 14px rgba(242, 179, 61, .4); }
.delver-art span { font-family: var(--display); font-size: clamp(14px, 2.4vw, 20px); color: #E9D7B0; line-height: 1.5; }
.game-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game h3 { font-size: 16px; line-height: 1.5; }
.game p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.tag { font-family: var(--display); font-size: 9px; line-height: 1.6; padding: 6px 9px 5px; border: 3px solid var(--line); color: var(--sand); }
.tag.soon { background: var(--sun); color: var(--ink); border-color: var(--ink); }
.tag.dev { background: var(--berry); color: var(--ink); border-color: var(--ink); }
.more { color: var(--sun); font-family: var(--display); font-size: 11px; line-height: 1.6; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* about: player select */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about p { margin: 18px 0 0; color: var(--muted); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.person { padding: 20px; }
.person .tagline { font-family: var(--display); font-size: 9px; color: var(--ink); background: var(--sun); display: inline-block; padding: 6px 8px 5px; }
.person.p2 .tagline { background: var(--wing); }
.person .initial { width: 64px; height: 64px; margin-top: 14px; display: grid; place-items: center; font-family: var(--display); font-size: 26px; color: var(--ink); border: var(--px) solid var(--ink); }
.person h3 { font-size: 14px; margin-top: 16px; }
.person p { margin: 8px 0 0; font-size: 22px; }

/* contact */
.contact-mail { display: inline-block; margin-top: 4px; font-family: var(--display); font-size: clamp(12px, 2.4vw, 20px); line-height: 1.6; color: var(--sun); word-break: break-all; }

/* footer */
footer { border-top: var(--px) solid var(--line); background: var(--ink); padding-block: 26px 40px; color: var(--muted); font-size: 20px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }
.insert { font-family: var(--display); font-size: 9px; color: var(--sun); }

/* game page */
.page-hero .wrap { padding-block: 56px 32px; }
.page-hero h1 { font-size: clamp(24px, 4.6vw, 44px); }
.banner { margin-top: 32px; overflow: hidden; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.fact { padding: 16px 18px; }
.fact b { display: block; font-family: var(--display); font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--sun); margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: 22px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shots img { border: var(--px) solid var(--line); box-shadow: 6px 6px 0 var(--ink); }
.list { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.list li { margin: 8px 0; padding-left: 28px; position: relative; }
.list li::before { content: "\25B6"; position: absolute; left: 0; color: var(--sun); font-size: 18px; top: 3px; }
.list b { color: var(--sand); font-weight: 400; }

/* privacy */
.prose { max-width: 68ch; }
.prose h2 { font-size: 15px; margin-top: 40px; }
.prose p { color: var(--muted); }
.prose .date { color: var(--wing); }

@media (max-width: 760px) {
  body { font-size: 22px; }
  .hero .wrap, .about .wrap { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 56px 40px; }
  .mascot { width: min(270px, 78%); order: -1; margin-top: 24px; }
  .games, .facts { grid-template-columns: 1fr; }
  .shots { gap: 10px; }
  .nav { gap: 14px; }
  .nav a { font-size: 9px; }
  .brand span { display: none; }
  .duo { gap: 16px; }
}
