/* Recursive Loop Studios - one stylesheet for every page. The game's look: Fredoka, navy panels, gold, a green button, the
   park's sky and grass. Self-hosted fonts (nothing loaded from another site). */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0e1424;
  --panel: #161e33;
  --panel-2: #1d2742;
  --line: #2a3555;
  --text: #f3f5fb;
  --dim: #aab3c9;
  --gold: #ffc933;
  --green: #5bc84f;
  --green-deep: #3f9f37;
  --purple: #8b5cf6;
  --red: #e23b3b;
  --sky-top: #7cc3ee;
  --sky-low: #d4ecfb;
  --grass: #4daa48;
  --grass-deep: #3c8f3a;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe08a; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--gold); color: #1b1300; padding: 8px 14px; border-radius: 10px; z-index: 10;
}
.skip:focus { left: 8px; }

/* --- Header ----------------------------------------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(14, 20, 36, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em;
}
.brand:hover { color: var(--text); }
.brand .mark { width: 36px; height: 36px; flex: none; }
.brand small { color: var(--dim); font-weight: 600; }

.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: var(--dim); text-decoration: none; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a[aria-current="page"] { color: #1b1300; background: var(--gold); }

@media (max-width: 640px) {
  .site-header { position: static; } /* two rows of links: not held over the page on a phone */
  .site-header .wrap { padding-top: 10px; padding-bottom: 8px; gap: 8px; }
  .nav { width: 100%; flex-wrap: wrap; overflow: visible; margin: 0 -6px; }
  .nav a { padding: 6px 12px; font-size: 0.95rem; }
}

/* --- Buttons and pills ------------------------------------------------------------------------------------------------ */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  text-decoration: none; color: #fff;
  padding: 14px 26px; border-radius: 16px; border: 0;
  background: linear-gradient(#69d65c, var(--green) 55%, var(--green-deep));
  box-shadow: 0 4px 0 #2f7d29, var(--shadow);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.button:hover { color: #fff; filter: brightness(1.06); }
.button.secondary {
  background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--line); text-shadow: none;
}
.button[aria-disabled="true"] { opacity: 0.6; cursor: default; filter: none; }

.pill {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; background: rgba(255, 201, 51, 0.15); color: var(--gold);
}

/* --- Hero (the park: sky over grass, a ball on its arc) ------------------------------------------------------------------ */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(var(--sky-top), var(--sky-low) 70%);
  color: #10223a;
  padding: 72px 0 150px;
}
.hero::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -30px; height: 120px;
  background: linear-gradient(var(--grass), var(--grass-deep));
  border-radius: 50% 50% 0 0 / 56px 56px 0 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #0f2240; max-width: 13em; }
.hero .pill { background: rgba(15, 34, 64, 0.12); color: #0f2240; }
.hero p.lead { font-size: 1.2rem; max-width: 34em; color: #1d3554; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .arc { position: absolute; right: max(16px, calc((100vw - 1080px) / 2)); top: 40px; width: min(42vw, 440px); opacity: 0.95; z-index: 0; }
@media (max-width: 760px) { .hero .arc { opacity: 0.35; width: 70vw; right: -30vw; } }

.page-head { padding-top: 56px; padding-bottom: 24px; } /* the side gutter stays .wrap's */
.page-head p { color: var(--dim); font-size: 1.15rem; max-width: 40em; }

/* --- Sections and cards ----------------------------------------------------------------------------------------------- */

section { padding: 48px 0; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 .card h3 { color: var(--gold); }
.grid-3 .card p { color: var(--dim); margin: 0; }

.game {
  display: grid; gap: 24px; align-items: center;
  grid-template-columns: 160px 1fr;
}
.game .icon { width: 160px; height: 160px; border-radius: 34px; box-shadow: var(--shadow); }
.game h2, .game h3 { margin-bottom: 0.25em; }
.game .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.game p { color: var(--dim); }
.game .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 640px) {
  .game { grid-template-columns: 1fr; }
  .game .icon { width: 120px; height: 120px; border-radius: 26px; }
}

.features { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.features li { padding-left: 30px; position: relative; color: var(--text); }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: conic-gradient(var(--red) 0 25%, #fff 0 50%, var(--red) 0 75%, #fff 0);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.25);
}

.screens {
  display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin-top: 28px;
}
.screens figure { margin: 0; }
.screens img {
  width: 100%; height: auto; aspect-ratio: 540 / 1090; object-fit: cover;
  border-radius: 18px; border: 3px solid #0a0f1c; box-shadow: var(--shadow);
}
.screens figcaption { font-family: var(--display); font-weight: 600; color: var(--dim); text-align: center; margin-top: 8px; }
@media (max-width: 760px) {
  .screens { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .screens figure { scroll-snap-align: start; }
}

.mail {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.mail .address { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 4.2vw, 1.6rem); word-break: break-all; }
.mail p { color: var(--dim); margin: 0; }

/* --- Questions (no script: details and summary) ------------------------------------------------------------------------- */

.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 0;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { color: var(--dim); }

/* --- Long text (the privacy policy) ---------------------------------------------------------------------------------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #d7dcea; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose .updated { color: var(--dim); font-size: 0.95rem; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px; margin: 8px 0 24px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; }
.toc li { margin: 4px 0; }

.table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 0.97rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--display); font-weight: 600; color: var(--gold); }
.table td { color: #d7dcea; }
.table-scroll { overflow-x: auto; }

/* --- Footer ----------------------------------------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0 40px; color: var(--dim); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
