:root {
  --moss: #112218;
  --moss-deep: #0b1912;
  --card: rgba(26, 51, 36, 0.82);
  --card-solid: #1a3324;
  --leaf: #22c55e;
  --leaf-deep: #15803d;
  --gold: #eab308;
  --cream: #f0fdf4;
  --muted: #c9ead6;
  --line: rgba(240, 253, 244, 0.12);
  --nav-h: 64px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
  --radius: 22px;
  --max: 1100px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream);
  background-color: var(--moss);
  background-image:
    radial-gradient(920px 480px at -8% -10%, rgba(234, 179, 8, 0.16), transparent 58%),
    radial-gradient(840px 520px at 112% 0%, rgba(34, 197, 94, 0.18), transparent 52%),
    radial-gradient(700px 380px at 50% 120%, rgba(34, 197, 94, 0.08), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='%2322c55e' fill-opacity='.13'%3E%3Ccircle cx='67' cy='58' r='13'/%3E%3Ccircle cx='83' cy='58' r='13'/%3E%3Ccircle cx='75' cy='46' r='13'/%3E%3Ccircle cx='75' cy='70' r='13'/%3E%3C/g%3E%3Crect x='73' y='80' width='4' height='16' rx='2' fill='%23eab308' fill-opacity='.18'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

::selection {
  background: var(--leaf);
  color: #05210f;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

img { max-width: 100%; }

a { color: #d8ffe4; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--gold);
  color: #1c1400;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { top: 10px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: rgba(17, 34, 24, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.logo {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: none;
}

.logo a {
  color: var(--cream);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(34, 197, 94, 0.16);
  color: white;
}

.stage {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px 18px;
}

.player {
  width: min(var(--max), 100%);
}

.player-frame {
  width: min(var(--max), 100%, calc((100vh - var(--nav-h) - 156px) * 16 / 9));
  width: min(var(--max), 100%, calc((100svh - var(--nav-h) - 156px) * 16 / 9));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  position: relative;
  background: var(--moss-deep);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.38);
  box-shadow:
    0 0 0 7px rgba(26, 51, 36, 0.72),
    var(--shadow),
    inset 0 1px 0 rgba(240, 253, 244, 0.16);
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #14261c;
}

.toolbar {
  width: min(var(--max), 100%);
  margin: 12px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-leaf {
  background: var(--leaf);
  color: #05210f;
}

.btn-leaf:hover { background: #4ade80; }

.btn-ghost {
  background: rgba(240, 253, 244, 0.04);
  color: var(--cream);
  border: 1px solid rgba(240, 253, 244, 0.28);
}

.btn-ghost:hover { background: rgba(240, 253, 244, 0.1); }

.btn-gold {
  background: rgba(234, 179, 8, 0.08);
  color: var(--gold);
  border: 1px solid rgba(234, 179, 8, 0.72);
}

.btn-gold:hover {
  background: var(--gold);
  color: #1c1400;
}

.tip {
  flex: 1 1 260px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.28);
  color: #fde68a;
  font-size: 0.92rem;
  line-height: 1.4;
}

.player-status {
  flex: 1 1 100%;
  margin: 0;
  color: var(--gold);
  font-size: 0.92rem;
}

.player-status:empty { display: none; }

.host-note {
  width: min(var(--max), 100%);
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.player.is-fullscreen,
.player:fullscreen,
.player:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  background: #07140e;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.player.is-fullscreen .player-frame,
.player:fullscreen .player-frame,
.player:-webkit-full-screen .player-frame {
  width: 100%;
  max-width: none;
  height: auto;
  flex: 1;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.player.is-fullscreen .toolbar,
.player:fullscreen .toolbar,
.player:-webkit-full-screen .toolbar {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 12px 10px;
  background: rgba(12, 26, 18, 0.94);
}

.player.is-fullscreen .host-note,
.player:fullscreen .host-note,
.player:-webkit-full-screen .host-note { display: none; }

.guide {
  width: min(var(--max), calc(100% - 32px));
  margin: 8px auto 72px;
  display: grid;
  gap: 18px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(240, 253, 244, 0.12);
  backdrop-filter: blur(16px);
  padding: 26px 26px 22px;
}

.card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf), var(--gold));
}

.card h2,
.picks h2,
.card h3 {
  font-family: var(--display);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.card h2 {
  margin: 6px 0 12px;
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.lede,
.card p { color: var(--cream); }

.muted,
.checked { color: var(--muted); }

.checked {
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.steps,
.fixes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.steps li,
.fixes li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.steps li::before,
.fixes li::before {
  content: counter(step);
  counter-increment: step;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #05210f;
  background: var(--leaf);
}

.steps { counter-reset: step; }
.fixes { counter-reset: step; }

.about-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap: 22px;
  align-items: start;
}

.stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.stats li {
  background: rgba(17, 34, 24, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}

.stats strong {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.25rem;
}

.stats span { color: var(--muted); font-size: 0.92rem; }

.keys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keys li {
  background: rgba(17, 34, 24, 0.5);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}

kbd {
  font-family: inherit;
  font-size: 0.84em;
  font-weight: 700;
  color: var(--gold);
  background: var(--moss-deep);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-bottom-width: 3px;
  border-radius: 8px;
  padding: 1px 7px;
}

.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 0; }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 2px;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #05210f;
  background: var(--leaf);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  margin: 0 0 16px;
  color: var(--muted);
}

.picks { padding-top: 8px; }

.picks h2 {
  margin: 0 0 6px;
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.pick {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  color: #05210f;
  background: var(--leaf);
  margin-bottom: 12px;
}

.pick:nth-child(2) .mark { background: var(--gold); }
.pick:nth-child(3) .mark { background: #86efac; }
.pick:nth-child(4) .mark { background: #fde68a; }

.pick h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.2rem;
}

.pick p {
  margin: 0 0 14px;
  color: var(--muted);
  flex: 1;
}

.pick a {
  color: var(--gold);
  font-weight: 700;
  text-underline-offset: 3px;
}

.site-foot {
  border-top: 1px solid var(--line);
  background: rgba(8, 18, 13, 0.72);
  padding: 28px 16px 40px;
}

.foot-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.disclosure { margin: 0 0 12px; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin: 0 0 8px;
}

.foot-links button {
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  color: var(--cream);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

dialog {
  width: min(640px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-solid);
  color: var(--cream);
  padding: 26px 24px 20px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(6, 14, 10, 0.74);
  backdrop-filter: blur(4px);
}

dialog h2 {
  font-family: var(--display);
  margin: 0 0 10px;
  font-size: 1.8rem;
}

dialog p { color: var(--muted); }

.dialog-close {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .about-grid,
  .keys,
  .pick-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    height: auto;
    min-height: var(--nav-h);
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 12px 10px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }

  .stage {
    min-height: 0;
    display: block;
    padding-top: 8px;
  }

  .player-frame {
    width: min(100%, calc((100vh - 300px) * 16 / 9));
    width: min(100%, calc((100svh - 300px) * 16 / 9));
  }

  .about-grid,
  .keys,
  .pick-grid { grid-template-columns: 1fr; }

  .card { padding: 20px 16px 16px; }

  .tip { border-radius: 16px; }

  .logo { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
