/*
 * NickGames site theme: the app's own palette and shapes (ui/theme/Color.kt, Theme.kt, PartyComponents.kt).
 * Always dark, like the app. System fonts only, so the site loads nothing from other servers.
 */
:root {
  color-scheme: dark;
  --night: #15112E;          /* background */
  --night-raised: #1F1A45;   /* cards */
  --night-high: #2A2360;     /* chips, dividers */
  --night-highest: #3C3489;
  --night-outline: #534AB7;
  --moon: #EEEDFE;           /* text */
  --haze: #AFA9EC;           /* secondary text */
  --mint: #5DCAA5;           /* primary */
  --mint-deep: #04342C;
  --flamingo: #ED93B1;       /* secondary */
  --flamingo-deep: #4B1528;
  --sunburst: #FAC775;
  --sunburst-deep: #412402;
  --ember: #F0997B;
  --ember-deep: #4A1B0C;
  --sky: #85B7EB;
  --sky-deep: #042C53;
  --lilac: #AFA9EC;
  --lilac-deep: #26215C;
  --lime: #C0DD97;
  --lime-deep: #27500A;
  --aqua: #7FD6D2;
  --aqua-deep: #043D3B;
  --alarm: #F09595;
  --radius-card: 28px;
  --radius-chip: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --header: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--night);
  /* The app's screen glow: a soft radial light from the top-right corner. */
  background-image: radial-gradient(circle at 85% 0%, rgba(93, 202, 165, 0.22), transparent 55%);
  background-repeat: no-repeat;
  color: var(--moon);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.glow-lilac { background-image: radial-gradient(circle at 85% 0%, rgba(175, 169, 236, 0.22), transparent 55%); }

a { color: var(--mint); }
a:hover { color: #9FE1CB; }
:focus-visible { outline: 2.5px solid var(--mint); outline-offset: 3px; }

::selection { background: var(--mint); color: var(--mint-deep); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* Header: stays on top while scrolling, over a blurred night */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header); display: flex; align-items: center;
  background: rgba(21, 17, 46, 0.78); border-bottom: 1px solid rgba(83, 74, 183, 0.25);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--moon); text-decoration: none; font-weight: 900; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--moon); }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--haze); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--moon); background: var(--night-high); }
.nav a.nav-cta { background: var(--mint); color: var(--mint-deep); padding: 8px 16px; margin-left: 6px; }
.nav a.nav-cta:hover { background: #7AD8B8; color: var(--mint-deep); }
@media (max-width: 720px) { .nav a.wide-only { display: none; } }

/* Type: the app's heavy system sans, pushed bigger for headlines */
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 12px; }
.muted { color: var(--haze); }
.small { font-size: 0.9rem; }
.t-mint { color: var(--mint); }
.t-flamingo { color: var(--flamingo); }
.t-sunburst { color: var(--sunburst); }
.t-sky { color: var(--sky); }
.t-lime { color: var(--lime); }
.t-lilac { color: var(--lilac); }
.t-aqua { color: var(--aqua); }
.t-ember { color: var(--ember); }

section { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title p { color: var(--haze); max-width: 560px; margin: 0 auto; }

/* Home page sections: a pill label, a big two-tone headline, then the content */
.home section { padding: 64px 0; }
@media (min-width: 960px) { .home section { padding: 88px 0; } }
.lede { margin-bottom: 32px; max-width: 720px; }
.lede h2 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.035em; margin: 14px 0 12px; }
.lede p { color: var(--haze); font-size: 1.1rem; margin: 0; }
.label {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 800; background: rgba(93, 202, 165, 0.14); color: var(--mint);
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.label.flamingo { background: rgba(237, 147, 177, 0.14); color: var(--flamingo); }
.label.sunburst { background: rgba(250, 199, 117, 0.14); color: var(--sunburst); }
.label.sky { background: rgba(133, 183, 235, 0.14); color: var(--sky); }
.label.lilac { background: rgba(175, 169, 236, 0.14); color: var(--lilac); }

/* Hero: the pitch on the left, a moving wall of the games on the right (stacked on phones) */
.hero { padding: 32px 0 48px; text-align: center; }
.hero-logo { width: 112px; height: 112px; border-radius: 30px; box-shadow: 0 18px 50px rgba(93, 202, 165, 0.18); margin-bottom: 20px; }
.hero p.lead { color: var(--haze); font-size: 1.15rem; max-width: 620px; margin: 0 auto 28px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.home .hero { padding: 40px 0 24px; text-align: left; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-text h1 { font-size: clamp(2.7rem, 8.5vw, 4.9rem); line-height: 1; letter-spacing: -0.04em; margin: 18px 0 20px; }
.hero-text .lead { color: var(--haze); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 540px; margin: 0 0 28px; }
.hero-text .actions { justify-content: flex-start; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--haze); font-weight: 700; font-size: 0.95rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 20px; height: 20px; color: var(--mint); }
@media (min-width: 960px) {
  .home .hero { padding: 24px 0; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; min-height: calc(100vh - var(--header) - 48px); }
}

/* The wall: columns of game cards drifting up and down, slightly tilted, faded at the edges */
.wall {
  position: relative; height: 460px; overflow: hidden; border-radius: 36px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent), linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent), linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
/* Sized to the window (a bit larger, for the tilt) so it turns around the window's centre; the long tracks overflow below. */
.wall-cols { position: absolute; inset: -14% -2%; display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; gap: 14px; transform: rotate(-7deg); }
.wall-col:nth-child(3) { display: none; }
@media (min-width: 560px) { .wall-cols { grid-template-columns: repeat(3, 1fr); } .wall-col:nth-child(3) { display: block; } }
@media (min-width: 960px) { .wall { height: min(680px, calc(100vh - var(--header) - 64px)); } }
.wall-track { display: grid; gap: 14px; }
.wall.moving .wall-track { animation: wall-up var(--speed, 44s) linear infinite; }
.wall.moving .wall-col:nth-child(2) .wall-track { animation-name: wall-down; }
.wall.paused .wall-track { animation-play-state: paused; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
@keyframes wall-down { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .wall.moving .wall-track { animation: none; } .wall-pause { display: none; } }
.tile {
  --accent: var(--mint); --on-accent: var(--mint-deep);
  background: var(--night-raised); border-radius: 24px; padding: 16px; border: 1.5px solid rgba(83, 74, 183, 0.35);
  display: grid; gap: 10px;
}
.tile .badge { width: 48px; height: 48px; border-radius: 15px; }
.tile .badge svg { width: 27px; height: 27px; }
.tile b { font-size: 1.02rem; line-height: 1.2; letter-spacing: -0.01em; }
.tile .pill { justify-self: start; font-size: 0.72rem; padding: 3px 10px; }
.tile.soon { border-style: dashed; background: rgba(31, 26, 69, 0.55); }
.wall-pause {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(21, 17, 46, 0.85); color: var(--moon); display: flex; align-items: center; justify-content: center;
}
.wall-pause svg { width: 18px; height: 18px; }
.wall-pause .play { display: none; }
.wall.paused .wall-pause .play { display: block; }
.wall.paused .wall-pause .pause { display: none; }
.wall-box { position: relative; }

/* Buttons: the app's BigButton (pill, 60dp, bold) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--mint); color: var(--mint-deep); }
.btn-primary:hover { background: #7AD8B8; color: var(--mint-deep); }
.btn-secondary { background: var(--flamingo); color: var(--flamingo-deep); }
.btn-secondary:hover { background: #F2ADC4; color: var(--flamingo-deep); }
.btn-outline { background: transparent; color: var(--moon); border: 1.5px solid var(--night-outline); }
.btn-outline:hover { background: var(--night-high); color: var(--moon); }
@media (max-width: 420px) { .hero-text .actions .btn { flex: 1 1 100%; } }

/* Cards: the app's PartyCard (NightRaised, 28dp corners, optional 1.5dp accent border) */
.card { background: var(--night-raised); border-radius: var(--radius-card); padding: 20px; border: 1.5px solid transparent; }
.card.accent { border-color: var(--accent, var(--mint)); }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

/* Game cards: the app's GameBadge (accent square, 30% corners, deep-colored icon) */
.game { --accent: var(--mint); --on-accent: var(--mint-deep); border-color: transparent; transition: border-color 0.2s, transform 0.2s; }
.game:hover { border-color: var(--accent); transform: translateY(-3px); }
.game .head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.badge { width: 56px; height: 56px; border-radius: 17px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; flex: none; }
.badge svg { width: 31px; height: 31px; }
.game h3 { margin: 0; }
.game p { color: var(--haze); margin: 0 0 14px; }
.nicknames, .mint { --accent: var(--mint); --on-accent: var(--mint-deep); }
.quiz, .sunburst { --accent: var(--sunburst); --on-accent: var(--sunburst-deep); }
.taboo, .ember { --accent: var(--ember); --on-accent: var(--ember-deep); }
.charades, .flamingo { --accent: var(--flamingo); --on-accent: var(--flamingo-deep); }
.draw, .sky { --accent: var(--sky); --on-accent: var(--sky-deep); }
.categories, .lilac { --accent: var(--lilac); --on-accent: var(--lilac-deep); }
.thinkalike, .lime { --accent: var(--lime); --on-accent: var(--lime-deep); }
.letterrush, .aqua { --accent: var(--aqua); --on-accent: var(--aqua-deep); }
@media (min-width: 1100px) { .grid.games { grid-template-columns: repeat(4, 1fr); } }

/* Coming soon: same cards, dashed outline and a glowing "Coming soon" pill */
.game.soon { border: 1.5px dashed var(--night-outline); background: rgba(31, 26, 69, 0.6); }
.game.soon:hover { border-style: solid; border-color: var(--accent); }
.pill.soon { background: rgba(250, 199, 117, 0.16); color: var(--sunburst); animation: soon-glow 2.4s ease-in-out infinite; }
@keyframes soon-glow { 50% { background: rgba(250, 199, 117, 0.32); } }
@media (prefers-reduced-motion: reduce) { .pill.soon { animation: none; } }
.after-soon { margin: 24px 0 0; color: var(--haze); }

/* Pills: the app's Pill */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--night-high); color: var(--haze); }
.pill.mint { background: rgba(93, 202, 165, 0.16); color: var(--mint); }
.pill.sky { background: rgba(133, 183, 235, 0.16); color: var(--sky); }
.featured-pill { background: rgba(93, 202, 165, 0.16); color: var(--mint); }

/* New in the app: one big card per new game, with a little round played out */
.spotlight { display: grid; gap: 20px; }
@media (min-width: 900px) { .spotlight { grid-template-columns: 1fr 1fr; } }
.spot { display: flex; flex-direction: column; padding: 28px; border: 1.5px solid var(--accent); position: relative; overflow: hidden; }
.spot::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: var(--accent); opacity: 0.12; filter: blur(30px); pointer-events: none;
}
.spot .head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.spot .badge { width: 64px; height: 64px; border-radius: 20px; }
.spot .badge svg { width: 36px; height: 36px; }
.spot h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 900; letter-spacing: -0.03em; margin: 0; }
.spot .tagline { color: var(--accent); font-weight: 800; font-size: 0.95rem; margin: 2px 0 0; }
.spot > p { color: var(--haze); margin-bottom: 20px; }
.spot .pills { margin-top: auto; }
.demo { background: var(--night); border-radius: 22px; padding: 18px; margin-bottom: 20px; display: grid; gap: 12px; }
.demo-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; }
.demo-q .meta { color: var(--haze); font-weight: 700; font-size: 0.85rem; }
.letter {
  width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900;
}
.groups { display: flex; flex-wrap: wrap; gap: 8px; }
.grp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; background: var(--night-high); font-weight: 700; }
.grp i { font-style: normal; font-size: 0.8rem; color: var(--haze); }
.grp.top { background: var(--accent); color: var(--on-accent); }
.grp.top i { color: var(--on-accent); opacity: 0.75; }
.grp.lone { border: 1.5px dashed var(--alarm); background: transparent; }
.grp.lone i { color: var(--alarm); }
.claims { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.claims li { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 14px; background: var(--night-high); font-weight: 700; }
.claims li span { color: var(--haze); font-weight: 600; font-size: 0.85rem; margin-right: auto; }
.claims b { white-space: nowrap; font-size: 0.85rem; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.claims li.out { text-decoration: line-through; text-decoration-color: var(--alarm); color: var(--haze); }
.claims li.out b { background: rgba(240, 149, 149, 0.16); color: var(--alarm); }

/* Watch: the trailer in a phone-shaped frame, with a short pitch beside it */
.watch { display: grid; gap: 28px; align-items: center; justify-items: center; }
.watch-video { width: 100%; max-width: 340px; }
/* The YouTube Short: our poster with a play button until tapped, then YouTube's player, same frame. */
.watch-video .yt {
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden;
  background: var(--night-raised); border: 1.5px solid var(--night-outline);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6), 0 0 80px rgba(93, 202, 165, 0.12);
}
.watch-video iframe.yt { border: 0; }
.watch-video .yt img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.watch-video a.yt:hover img { transform: scale(1.03); }
.yt-play {
  /* In the empty space under the phones on the poster. */
  position: absolute; left: 50%; top: 86%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--mint); color: var(--mint-deep);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(93, 202, 165, 0.22); transition: transform 0.2s ease;
}
.yt-play svg { width: 34px; height: 34px; margin-left: 4px; }
a.yt:hover .yt-play, a.yt:focus-visible .yt-play { transform: scale(1.08); }
.yt-note {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px;
  font-size: 0.8rem; color: var(--moon); background: rgba(8, 6, 24, 0.7); white-space: nowrap;
}
.watch-text { max-width: 480px; }
.watch-text .lede { margin-bottom: 0; }
.watch-points { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; text-align: left; }
.watch-points li { position: relative; padding-left: 30px; color: var(--moon); }
.watch-points li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304342C' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (min-width: 800px) {
  .watch { grid-template-columns: 340px 1fr; justify-items: start; gap: 72px; max-width: 960px; margin: 0 auto; }
}

/* How it works: three numbered steps */
.howto { display: grid; gap: 16px; }
@media (min-width: 860px) { .howto { grid-template-columns: repeat(3, 1fr); } }
.howto .card { display: flex; gap: 18px; padding: 24px; }
.howto .num {
  flex: none; width: 52px; height: 52px; border-radius: 17px; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 900;
}
.howto h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.howto p { color: var(--haze); margin: 0; }

/* Steps (the delete-data page) */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--mint); color: var(--mint-deep); font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.step p { color: var(--haze); margin: 0; }

/* Why NickGames: big two-tone statements with the app's icons */
.why { display: grid; gap: 0 56px; }
@media (min-width: 800px) { .why { grid-template-columns: 1fr 1fr; } }
.why-item { padding: 28px 0; border-top: 1px solid var(--night-high); display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; }
.why-item .icon {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 17px; display: flex; align-items: center; justify-content: center;
  background: rgba(93, 202, 165, 0.14); color: var(--accent);
}
.why-item .icon svg { width: 28px; height: 28px; }
.why-item h3 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.035em; margin: 0; }
.why-item h3 span { color: var(--accent); }
.why-item p { color: var(--haze); margin: 6px 0 0; }
.why-item.mint .icon { background: rgba(93, 202, 165, 0.14); }
.why-item.sky .icon { background: rgba(133, 183, 235, 0.14); }
.why-item.sunburst .icon { background: rgba(250, 199, 117, 0.14); }
.why-item.flamingo .icon { background: rgba(237, 147, 177, 0.14); }
.why-item.lime .icon { background: rgba(192, 221, 151, 0.14); }
.why-item.lilac .icon { background: rgba(175, 169, 236, 0.14); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--night-high); }
.faq details:last-child { border-bottom: 1px solid var(--night-high); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-weight: 800; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--night-high); color: var(--mint);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--mint); }
.faq details p { color: var(--haze); margin: 0 0 20px; max-width: 700px; }

/* Call to action at the end */
.cta { text-align: center; }
.cta .card { padding: 36px 20px; background: linear-gradient(160deg, var(--night-high), var(--night-raised)); }
.final { text-align: center; }
.final .card { padding: 48px 20px; background: linear-gradient(160deg, var(--night-high), var(--night-raised)); position: relative; overflow: hidden; }
@media (min-width: 640px) { .final .card { padding: 64px 40px; } }
.final-logo { width: 104px; height: 104px; border-radius: 28px; box-shadow: 0 0 0 10px rgba(93, 202, 165, 0.1), 0 20px 60px rgba(93, 202, 165, 0.35); margin-bottom: 24px; }
.final h2 { font-size: clamp(2.2rem, 6.5vw, 3.8rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 14px; }
.final p { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Legal pages */
.legal { padding-top: 32px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.45rem; margin-top: 8px; }
.legal h3 { font-size: 1.05rem; margin-top: 18px; }
.legal section { padding: 22px 0; border-top: 1px solid var(--night-high); }
.legal section:first-of-type { border-top: 0; }
.legal p, .legal li { color: var(--haze); }
.legal strong { color: var(--moon); }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--mint); }
.updated { color: var(--haze); margin-bottom: 24px; }
.summary { margin: 8px 0 12px; }
.summary li { margin-bottom: 8px; }
.toc { columns: 1; }
@media (min-width: 640px) { .toc { columns: 2; } }
.toc a { color: var(--haze); text-decoration: none; }
.toc a:hover { color: var(--mint); }

/* Tables that stack on phones */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 12px; border-radius: 20px; border: 1px solid var(--night-high); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.92rem; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--night-high); }
th { color: var(--moon); background: var(--night-raised); font-weight: 700; }
td { color: var(--haze); }
tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer { padding: 32px 0 40px; margin-top: 24px; border-top: 1px solid var(--night-high); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--haze); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--mint); }
.site-footer .muted { font-size: 0.9rem; }
.site-footer .brand { font-size: 1.05rem; }
.site-footer .brand img { width: 30px; height: 30px; border-radius: 9px; }

/* Join page */
.join { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.join .card { width: 100%; max-width: 440px; padding: 32px 24px; }
.code { font-size: 2.6rem; letter-spacing: 0.35em; font-weight: 900; margin: 18px 0; padding-left: 0.35em; color: var(--mint); }
.hidden { display: none !important; }

/* Screenshot gallery: swipe on phones, a row on wide screens */
.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--night-outline) transparent;
}
.shots figure { flex: 0 0 64%; max-width: 240px; margin: 0; scroll-snap-align: center; text-align: center; }
.shots img { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45)); }
.shots figcaption { color: var(--haze); font-weight: 700; font-size: 0.9rem; margin-top: 10px; }
@media (min-width: 960px) { .shots { overflow-x: visible; justify-content: space-between; } .shots figure { flex: 1 1 0; max-width: 180px; } }
