/* Hue & Seek site. Colours come from the game: the night backdrop of its renders, green = hiders, orange = hunters.
   Team colours only ever mean a team; everything else stays neutral. */
:root {
  --night: #0b1523;      /* the renders' background, so the hero image has no edge */
  --panel: #131e30;
  --line: #26324a;
  --text: #eef1f6;
  --muted: #a6aebd;
  --hider: #35c46f;
  --hunter: #f2862a;
  --display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }

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

/* header + footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.logo { font: 700 1.5rem/1 var(--display); text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.logo .h { color: var(--hider); }
.logo .s { color: var(--hunter); }
.nav { display: flex; gap: 22px; font: 500 1rem/1 var(--display); }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 48px; color: var(--muted); font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot p { margin: 0; max-width: 46ch; }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.375rem; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 34ch; margin: 20px 0 0; }

/* buttons: neutral, so colour keeps meaning "team" */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1.0625rem/1 var(--display); text-decoration: none;
  padding: 15px 24px; border-radius: 999px;
  background: var(--text); color: var(--night);
}
.btn:hover { background: #fff; color: var(--night); }
.note { color: var(--muted); font-size: 0.95rem; margin: 14px 0 0; max-width: 44ch; }

/* hero: find the chameleon */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; padding: 24px 0 40px; }
.hero .cta { margin-top: 32px; }
.scene { margin: 0; }
.scene .frame { position: relative; cursor: crosshair; }
.scene .frame img { width: 100%; }
.spot {
  position: absolute; left: 28.6%; top: 36.5%; width: 12.5%; height: 14%;
  border: 0; padding: 0; background: transparent; border-radius: 50%; cursor: crosshair;
}
.spot::after {
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  border: 4px solid var(--hunter); opacity: 0; transform: scale(1.6);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2, 1.4, .4, 1);
}
.found .spot::after { opacity: 1; transform: scale(1); }
.scene figcaption { margin-top: 14px; color: var(--muted); min-height: 3.2em; max-width: 52ch; }
.scene figcaption b { color: var(--text); font-weight: 700; }
.reveal { font: inherit; color: var(--text); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* sections */
.section { padding-top: 88px; }
.section > p, .section .intro { color: var(--muted); max-width: 60ch; margin: 14px 0 0; }

/* a round: a real sequence, timed */
.round { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.round li { padding: 22px 28px 0 0; }
.round li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.round .t { font: 600 2rem/1 var(--display); }
.round h3 { margin: 14px 0 8px; }
.round p { margin: 0; color: var(--muted); }

/* the two teams */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.team { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; padding: 24px; border-radius: 28px; background: var(--panel); border: 2px solid var(--line); }
.team.hider { border-color: var(--hider); }
.team.hunter { border-color: var(--hunter); }
.team h3 { font-size: 1.75rem; }
.team.hider h3 { color: var(--hider); }
.team.hunter h3 { color: var(--hunter); }
.team p { margin: 8px 0 0; color: var(--muted); }

/* maps */
.maps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 16px; }
.maps img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); }
.maps span { display: block; margin-top: 8px; font: 500 1rem/1.25 var(--display); }

/* friends */
.friends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
.friends h3 { margin-bottom: 8px; }
.friends p { margin: 0; color: var(--muted); }

/* long-form pages: privacy, terms, support */
.doc { max-width: 68ch; padding-top: 32px; }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.doc .updated { color: var(--muted); margin: 12px 0 40px; }
.doc h2 { font-size: 1.625rem; margin: 48px 0 12px; }
.doc h3 { font-size: 1.1875rem; margin: 28px 0 8px; }
.doc p, .doc li { color: #d9dee8; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.98rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font: 600 1rem/1.3 var(--display); color: var(--text); }
.doc td:first-child { width: 34%; color: var(--text); }
.doc .box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 24px 0; }
.doc .box p { margin: 0; }
.doc .box p + p { margin-top: 8px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .maps { grid-template-columns: repeat(2, 1fr); }
  .teams, .friends { grid-template-columns: 1fr; }
  .round { grid-template-columns: 1fr; }
  .round li, .round li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .top { flex-wrap: wrap; }
  .nav { gap: 16px; }
  .team { grid-template-columns: 88px 1fr; padding: 18px; }
  .section { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .spot::after { transition: none; }
}
