:root {
  --sky: #8cc7ec;
  --sky-pale: #e4f2fb;
  --grass: #4e8a3a;
  --grass-deep: #2d5c27;
  --pine: #213826;
  --pine-soft: #4a5e4d;
  --page: #eef5e1;
  --paper: #ffffff;
  --poppy: #d9412e;
  --poppy-deep: #a82c1d;
  --sun: #f6c945;
  --screen: #1a2420;
  --display: "Grandstander", "Trebuchet MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--pine);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--grass-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:focus-within {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; border-radius: 8px; }

/* ---------- top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(16px, (100% - var(--wrap)) / 2);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  color: var(--pine); text-decoration: none;
  padding: 4px 14px 4px 6px; border-radius: 999px; background: rgb(255 255 255 / 0.78);
}
.brand img { width: 34px; height: 34px; }
.topbar nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a {
  font-weight: 700; font-size: 0.95rem; color: var(--pine); text-decoration: none;
  padding: 7px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.78);
}
.topbar nav a:hover { background: var(--paper); }
.topbar nav a.donate { background: var(--sun); }

/* ---------- hero ---------- */
.hero { position: relative; height: clamp(360px, 46vw, 600px); overflow: hidden; background: var(--sky); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 22%;
  background: linear-gradient(to bottom, rgb(238 245 225 / 0), var(--page));
}
.hero-text {
  position: relative; z-index: 2; text-align: center;
  padding-top: clamp(72px, 9vw, 120px);
}
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.8rem, 8.2vw, 6.4rem); line-height: 0.95; letter-spacing: -0.01em;
  color: #fffdf4;
  -webkit-text-stroke: clamp(1.5px, 0.25vw, 3px) var(--pine);
  paint-order: stroke fill;
  text-shadow: 0 0.06em 0 var(--pine);
}
.hero p {
  margin: 14px auto 0; max-width: 34ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 700; color: var(--pine);
  background: rgb(255 255 255 / 0.82); padding: 6px 16px; border-radius: 999px; width: fit-content;
}

/* ---------- section heads ---------- */
.games-head { margin-top: 8px; margin-bottom: 28px; max-width: 62ch; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.1; margin: 0 0 8px; }
.games-head p { margin: 0; color: var(--pine-soft); }

/* ---------- cabinets ---------- */
.cabinets {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 34px 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.cab {
  --body-col: var(--grass);
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--body-col);
  border-radius: 22px 22px 10px 10px;
  padding: 0 14px 16px;
  box-shadow: inset 0 -6px 0 rgb(0 0 0 / 0.18), 0 10px 0 -4px rgb(33 56 38 / 0.18);
}
.marquee {
  margin: 0 -14px 12px; padding: 12px 16px 11px;
  border-radius: 22px 22px 0 0;
  background: color-mix(in srgb, var(--body-col) 72%, black);
  font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1.15;
  color: #fff7d6; text-align: center;
  text-shadow: 0 0 12px rgb(255 230 140 / 0.55);
  border-bottom: 4px solid rgb(255 255 255 / 0.2);
}
.screen {
  display: block; background: var(--screen); padding: 9px; border-radius: 14px;
  box-shadow: inset 0 0 0 3px rgb(0 0 0 / 0.35);
}
.screen img, .screen .static {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px;
}
.screen .static {
  display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #f3d98a;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.05) 0 2px, transparent 2px 4px),
    radial-gradient(circle at 50% 45%, #33463c, #18211d 75%);
}
.panel {
  margin-top: 14px; padding: 14px 16px 16px; border-radius: 12px;
  background: var(--paper); color: var(--pine);
  display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.panel p { margin: 0; font-size: 0.98rem; line-height: 1.5; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-size: 0.82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--sky-pale); color: #1f4560;
}
.tags li.save { background: #fdf0c4; color: #6b4d00; }
.tags li.phone { background: #e1f1da; color: #24531d; }
.panel p.compat {
  font-size: 0.9rem; line-height: 1.4; color: #6e3a12;
  background: #fbe9dc; border-radius: 8px; padding: 8px 10px;
}
.panel-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* the arcade button */
.play {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  color: var(--pine); text-decoration: none;
}
.play::before {
  content: ""; width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 38% 32%, #ff8a73 0 14%, var(--poppy) 42%, var(--poppy-deep) 100%);
  box-shadow: 0 5px 0 #6e1c12, 0 7px 10px rgb(0 0 0 / 0.25);
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.play:hover::before { filter: brightness(1.06); }
.play:active::before { transform: translateY(4px); box-shadow: 0 1px 0 #6e1c12, 0 2px 4px rgb(0 0 0 / 0.25); }
.play:focus-visible { outline-offset: 6px; border-radius: 999px; }
.soon-label { font-family: var(--display); font-weight: 800; color: var(--pine-soft); }
.cab.is-soon .screen img { filter: grayscale(0.4); }

/* ---------- feedback strip ---------- */
.ideas {
  margin: 72px auto 0; padding: 30px 32px; border-radius: 22px;
  background: var(--grass-deep); color: #f4f8ec;
  display: flex; gap: 20px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.ideas h2 { color: #fff7d6; margin: 0 0 4px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ideas p { margin: 0; max-width: 52ch; }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
  background: var(--sun); color: var(--pine);
  box-shadow: 0 4px 0 #b88f16;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #b88f16; }
.btn.red { background: var(--poppy); color: #fff; box-shadow: 0 4px 0 #6e1c12; }

/* ---------- footer ---------- */
footer { margin-top: 64px; padding: 28px 0 40px; border-top: 2px dashed rgb(45 92 39 / 0.25); color: var(--pine-soft); font-size: 0.95rem; }
footer .wrap { display: grid; gap: 6px; }
footer p { margin: 0; max-width: 72ch; }

/* ---------- inner pages (feedback, thanks, 404) ---------- */
.strip { position: relative; height: 210px; overflow: hidden; background: var(--sky); }
.strip > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.strip::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(to bottom, rgb(238 245 225 / 0), var(--page)); }
.sheet {
  position: relative; z-index: 2; margin: -70px auto 0; max-width: 680px;
  background: var(--paper); border-radius: 22px; padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 10px 0 -4px rgb(33 56 38 / 0.14);
}
.sheet h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.05; margin: 0 0 10px; }
.sheet > p { margin: 0 0 22px; color: var(--pine-soft); }
form { display: grid; gap: 20px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend, .field > label { display: block; font-weight: 700; margin-bottom: 8px; }
.hint { font-weight: 400; color: var(--pine-soft); font-size: 0.92rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 2px solid #cfdcc2; font-weight: 700;
}
.choices input { accent-color: var(--grass-deep); margin: 0; }
.choices label:has(input:checked) { border-color: var(--grass-deep); background: #e3efd5; }
input[type=text], input[type=email], select, textarea {
  width: 100%; font: inherit; color: inherit;
  padding: 11px 14px; border-radius: 12px; border: 2px solid #cfdcc2; background: #fbfdf8;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--grass-deep); }
.two { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.hp { position: absolute; left: -9999px; }
.sheet .btn { justify-self: start; }

@media (max-width: 640px) {
  .two { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .brand { padding: 4px; }
  .topbar nav a { padding: 6px 12px; font-size: 0.9rem; }
  .hero > img { object-position: 42% 60%; }
  .ideas { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
