/* Drinkopoly legal pages - dark neon style matching the game */
@font-face {
  font-family: "FreeRoyalty";
  src: url("assets/FreeRoyalty.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #120c1f;
  --bg-2: #1c1230;
  --card: #1a1428;
  --line: #2e2545;
  --text: #ece8f4;
  --muted: #b3abc6;
  --yellow: #ffc21a;
  --pink: #ff4f8a;
  --violet: #9d6bff;
  --link: #8fb6ff;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 50% -120px, rgba(157, 107, 255, 0.28), transparent 70%),
    radial-gradient(700px 400px at 100% 30%, rgba(255, 79, 138, 0.10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(18, 12, 31, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--yellow);
  text-decoration: none;
  font-family: "FreeRoyalty", "Fredoka", sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 18px rgba(255, 194, 26, 0.35);
}
.brand img { border-radius: 11px; display: block; }

.lang {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}
.lang button {
  min-width: 48px;
  min-height: 36px;
  padding: 4px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 15px "Fredoka", sans-serif;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 16px rgba(157, 107, 255, 0.55);
}
.lang button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ---------- legal tabs ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 24px auto 0;
  padding: 5px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}
.tabs a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 20px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 79, 138, 0.5);
}
.tabs a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ---------- document ---------- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 24px;
}

.doc h1 {
  margin: 0 0 6px;
  font-family: "FreeRoyalty", "Fredoka", sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 8vw, 60px);
  line-height: 1.05;
  color: var(--yellow);
  text-shadow: 0 4px 0 #6b3300, 0 0 34px rgba(255, 170, 0, 0.35);
}

.updated {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.toc {
  margin: 24px 0 32px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 28px;
}
.toc li { break-inside: avoid; padding: 2px 0; }

section {
  margin: 0 0 18px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 84px;
}

h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}
h2 span {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 79, 138, 0.16);
  border: 1px solid rgba(255, 79, 138, 0.55);
  color: var(--pink);
  font-size: 15px;
}

section p { margin: 0 0 10px; }
section p:last-child { margin-bottom: 0; }

ol.sub { margin: 0; padding-left: 22px; }
ol.sub li { margin: 0 0 10px; padding-left: 4px; }
ol.sub li:last-child { margin-bottom: 0; }
ol.sub li::marker { color: var(--pink); font-weight: 600; }


ul.sub { margin: 0 0 10px; padding-left: 22px; }
ul.sub:last-child { margin-bottom: 0; }
ul.sub li { margin: 0 0 8px; padding-left: 4px; }
ul.sub li::marker { color: var(--pink); }

.facts { margin: 14px 0 0; display: grid; gap: 8px; }
.facts div {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(157, 107, 255, 0.10);
  border: 1px solid rgba(157, 107, 255, 0.30);
}
.facts dt { font-weight: 600; color: var(--violet); font-size: 14px; }
.facts dd { margin: 2px 0 0; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #c3d6ff; }

/* ---------- landing page ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}
.hero-icon {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  box-shadow: 0 0 60px rgba(157, 107, 255, 0.55), 0 20px 40px rgba(0, 0, 0, 0.5);
}
.hero-title {
  margin: 28px 0 8px;
  font-family: "FreeRoyalty", "Fredoka", sans-serif;
  font-weight: 400;
  font-size: clamp(56px, 13vw, 92px);
  line-height: 1;
  color: var(--yellow);
  text-shadow: 0 5px 0 #6b3300, 0 0 40px rgba(255, 170, 0, 0.4);
}
.hero-tag { margin: 8px 0 28px; max-width: 480px; font-size: 21px; line-height: 1.45; }

.play-badge {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.15s ease, filter 0.15s ease;
  filter: drop-shadow(0 0 22px rgba(255, 79, 138, 0.35));
}
.play-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 0 30px rgba(255, 79, 138, 0.55)); }
.play-badge:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.play-badge img { display: block; width: 216px; height: auto; }
.brand:hover { color: #ffd65c; }

.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.perks li { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.hero-note { margin: 22px 0 0; color: var(--muted); font-size: 15px; }

main.landing { max-width: none; padding: 0; }
.landing h2 span { display: inline; width: auto; height: auto; background: none; border: 0; border-radius: 0; color: inherit; font-size: inherit; }
.steps { counter-reset: step; }

/* sections */
.band { max-width: 1120px; margin: 0 auto; padding: 48px 20px 8px; }
.band-title {
  display: block;
  margin: 0 0 24px;
  text-align: center;
  font-family: "FreeRoyalty", "Fredoka", sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 7vw, 52px);
  line-height: 1.05;
  color: var(--yellow);
  text-shadow: 0 4px 0 #6b3300, 0 0 30px rgba(255, 170, 0, 0.3);
}

/* screenshots strip */
.shots-wrap { position: relative; }
.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.shots:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 12px; }
.shots img {
  flex: 0 0 auto;
  width: 240px;
  height: auto;
  aspect-ratio: 600 / 1067;
  border-radius: 16px;
  scroll-snap-align: start;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.shots img.join { margin-left: -14px; border-top-left-radius: 0; border-bottom-left-radius: 0; scroll-snap-align: none; }
.shots img:has(+ img.join) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.shots-arrow {
  position: absolute;
  top: calc(50% - 30px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(26, 20, 40, 0.92);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.shots-arrow:hover { background: var(--violet); color: #fff; }
.shots-arrow:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.shots-arrow[disabled] { opacity: 0; pointer-events: none; }
.shots-arrow.prev { left: -8px; }
.shots-arrow.next { right: -8px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li {
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  counter-increment: step;
}
.steps svg { color: var(--pink); filter: drop-shadow(0 0 10px rgba(255, 79, 138, 0.5)); }
.steps h3 { margin: 10px 0 6px; font-size: 21px; font-weight: 600; }
.steps h3::before { content: counter(step) ". "; color: var(--pink); }
.steps p { margin: 0; color: var(--muted); }

/* boards */
.boards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.board {
  padding: 14px 14px 18px;
  background: var(--card);
  border: 2px solid var(--c);
  border-radius: var(--radius);
  box-shadow: 0 0 26px color-mix(in srgb, var(--c) 35%, transparent);
  text-align: center;
}
.board img { display: block; width: 100%; height: auto; border-radius: 12px; }
.board h3 { margin: 12px 0 4px; font-family: "FreeRoyalty", "Fredoka", sans-serif; font-weight: 400; font-size: 30px; color: var(--c); }
.board p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
.b-chill { --c: #3d86ff; }
.b-party { --c: #8b5cff; }
.b-chaos { --c: #ff8a1f; }
.b-hot { --c: #ff3f7a; }

/* final call to action */
.cta { text-align: center; padding-top: 56px; padding-bottom: 24px; }
.cta-title {
  display: block;
  margin: 0 0 8px;
  text-align: center;
  line-height: 1.1;
  font-family: "FreeRoyalty", "Fredoka", sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 7vw, 52px);
  color: var(--pink);
  text-shadow: 0 4px 0 #4d0019, 0 0 34px rgba(255, 79, 138, 0.45);
}
.cta > p:not(.hero-note) { margin: 0 0 24px; font-size: 19px; }

[hidden] { display: none !important; }

/* ---------- footer ---------- */
.foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 20px 40px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.foot-links { margin: 0 0 6px; font-size: 15px; }
.foot-links a[aria-current="page"] { color: var(--muted); text-decoration: none; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand { font-size: 22px; }
  .brand img { width: 38px; height: 38px; }
  main { padding-top: 28px; }
  section { padding: 18px 18px; }
  .toc ol { columns: 1; }
  .tabs a { padding: 6px 14px; font-size: 15px; }
  .shots img { width: 200px; }
  .shots-arrow { display: none; }
  .steps { grid-template-columns: 1fr; }
  .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .board h3 { font-size: 26px; }
}

/* ---------- printing ---------- */
@media print {
  body { background: #fff; color: #000; }
  .top, .lang, .toc { display: none; }
  section { border: 0; padding: 0; background: none; }
  .doc h1 { color: #000; text-shadow: none; }
  .doc[hidden] { display: none; }
}
