:root {
  --paper: #fff6d8;
  --sky: #7fd4ff;
  --ink: #2a1144;
  --pink: #ff4f8b;
  --pink-ink: #9f1250;
  --link: #4c1d95;
  --lemon: #ffe14a;
  --mint: #3ee0a4;
  --orange: #ff8a3d;
  --violet: #7b5cff;
  --line: #2a1144;
  --warn: #e11d48;
  --max: 1120px;
  --round: 28px;
  --round-sm: 18px;
  --pop: 5px 5px 0 var(--ink);
  --sans: "Trebuchet MS", "Avenir Next", "Segoe UI", ui-rounded, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--lemon);
  color: var(--ink);
  font-weight: 800;
  border: 3px solid var(--ink);
  border-radius: 999px;
}

.skip:focus {
  left: 12px;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  background:
    radial-gradient(circle at 12% 8%, #ffd0e6 0 140px, transparent 141px),
    radial-gradient(circle at 88% 12%, #9ae8ff 0 160px, transparent 161px),
    radial-gradient(circle at 80% 78%, #fff59a 0 180px, transparent 181px),
    radial-gradient(circle at 10% 70%, #b8ffd9 0 150px, transparent 151px),
    linear-gradient(180deg, #ffe9f4 0%, #fff6d8 38%, #d9f4ff 100%);
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

.top {
  position: relative;
  z-index: 2;
  padding: 12px 12px 0;
}

.top__bar {
  width: min(calc(100% - 8px), var(--max));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 14px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--pop);
}

.brand {
  color: var(--pink-ink);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

.brand:hover { color: var(--link); }

.nav {
  display: flex;
  gap: 14px;
  flex: 1;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
}

.nav a[aria-current="page"],
.nav a:hover { color: var(--pink-ink); }

.top__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.age {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--lemon);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
}

html[data-region="AT"] [data-geo="ch"],
html[data-region="CH"] [data-geo="at"],
html:not([data-region="AT"]):not([data-region="CH"]) [data-geo] { display: none; }

.geo {
  display: flex;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.geo button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.geo button + button { border-left: 3px solid var(--ink); }

.geo button[aria-pressed="true"] {
  background: var(--lemon);
  color: var(--ink);
}

.auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coins {
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  border: 3px solid var(--ink);
  background: var(--mint);
  border-radius: 999px;
  padding: 6px 10px;
}

.auth__name {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dlg {
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 22px;
  max-width: 24rem;
  width: calc(100% - 32px);
  box-shadow: 6px 6px 0 var(--ink);
  background: #fff;
}

.dlg::backdrop { background: rgb(42 17 68 / 0.45); }

.dlg h2 { margin: 0 0 0.4em; }

.dlg > p,
.dlg form > p { margin: 0 0 1em; }

.dlg form { max-width: none; }

.dlg .stamp { margin-bottom: 10px; }

.dlg .check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.dlg .check input { width: auto; }

.dlg .btn,
.dlg .btn-line {
  width: 100%;
  margin-top: 8px;
}

.btn,
.btn-line {
  appearance: none;
  border: 3px solid var(--ink);
  background: var(--pink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-line {
  background: var(--lemon);
  color: var(--ink);
}

.btn:hover {
  background: var(--orange);
  color: var(--ink);
}

.btn-line:hover {
  background: var(--mint);
  color: var(--ink);
}

.menu {
  display: none;
  appearance: none;
  border: 3px solid var(--ink);
  background: var(--mint);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.menu span,
.menu span::before,
.menu span::after {
  display: block;
  width: 16px;
  height: 3px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  border-radius: 99px;
}

.menu span::before,
.menu span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu span::before { top: -6px; }
.menu span::after { top: 6px; }

main { flex: 1; padding: 28px 0 72px; }

.hero {
  display: grid;
  gap: 22px;
  margin-bottom: 48px;
  padding: 22px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 40px;
  box-shadow: 8px 8px 0 #ff8ad4;
}

.hero__top {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: end;
}

.hero__shot {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: var(--round);
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--violet);
}

.hero__shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.block { margin: 0 0 48px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 36px;
  box-shadow: 6px 6px 0 var(--mint);
}

.split figure {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: var(--round);
  overflow: hidden;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wide-shot {
  margin: 0 0 16px;
  border: 3px solid var(--ink);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--orange);
}

.wide-shot img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.facts > div {
  padding: 16px 16px 18px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 4px 4px 0 var(--ink);
}

.facts > div:nth-child(1) { background: var(--lemon); }
.facts > div:nth-child(2) { background: #b8f3ff; }
.facts > div:nth-child(3) { background: #ffd0e8; }

.facts h3 { margin-bottom: 0.35em; }
.facts p { margin: 0; }

.rule {
  height: 0;
  border: 0;
  border-top: 4px dotted var(--pink);
  margin: 8px 0 40px;
}

.kicker {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-ink);
}

.lead { font-size: 1.12rem; max-width: 42rem; }

.stage {
  background: #2a1144;
  border: 3px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--lemon);
}

.stage iframe {
  width: 100%;
  height: min(62vh, 560px);
  min-height: 320px;
  border: 0;
  display: block;
  background: #2a1144;
}

.stage iframe[hidden] { display: none; }

.stage__play {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #2a1144;
  color: var(--ink);
}

.stage__play img {
  width: 100%;
  height: min(62vh, 560px);
  min-height: 280px;
  object-fit: cover;
  opacity: 0.9;
}

.stage__play span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid var(--ink);
  background: var(--lemon);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
}

.stage.is-on .stage__play { display: none; }

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding: 12px 14px;
  background: #fff3b0;
  border-top: 3px solid var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.game-meta a { color: var(--ink); }

.stamp {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  background: var(--mint);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 999px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 3px solid var(--ink);
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s ease;
}

.card:nth-child(1) { box-shadow: 5px 5px 0 var(--pink); }
.card:nth-child(2) { box-shadow: 5px 5px 0 var(--violet); }
.card:nth-child(3) { box-shadow: 5px 5px 0 var(--orange); }
.card:nth-child(4) { box-shadow: 5px 5px 0 var(--mint); }

.card:hover {
  color: inherit;
  transform: translate(-3px, -3px);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 3px solid var(--ink);
}

.card__body { padding: 12px 12px 16px; display: grid; gap: 8px; }

.card h3 { margin: 0; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.9rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 10px 0 16px;
}

.prose {
  max-width: 42rem;
  padding: 22px 24px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 32px;
  box-shadow: 6px 6px 0 #9ae8ff;
}

.prose h2 { margin-top: 1.4em; }

.law {
  border: 3px solid var(--ink);
  padding: 12px 14px;
  margin: 0 0 12px;
  border-radius: 18px;
  background: #fff3b0;
}

.law > strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose ol { padding-left: 1.2em; }

.faq details {
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 12px 14px;
  margin: 0 0 10px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details p { margin: 10px 0 0; }

.table-wrap {
  overflow-x: auto;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--violet);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

caption {
  text-align: left;
  padding: 12px 14px 4px;
  font-weight: 800;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid #ffd0e8;
}

th {
  font-family: var(--sans);
  font-size: 0.82rem;
  background: var(--lemon);
}

tr:last-child td { border-bottom: 0; }

form { display: grid; gap: 12px; max-width: 28rem; }

label { display: grid; gap: 4px; font-size: 0.88rem; font-weight: 800; }

input, textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  width: 100%;
  border-radius: 16px;
}

textarea { min-height: 140px; resize: vertical; }

.note {
  border: 3px solid var(--ink);
  padding: 12px 14px;
  font-size: 0.92rem;
  border-radius: 18px;
  background: #b8f3ff;
  font-weight: 700;
}

.foot {
  margin: 0 12px 16px;
  padding: 28px 0 24px;
  font-size: 0.9rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 36px;
  box-shadow: 8px 8px 0 var(--pink);
}

.foot .wrap { display: grid; gap: 28px; }

.foot a { color: var(--ink); font-weight: 800; }

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px 20px;
}

.foot__grid .brand { display: inline-block; margin-bottom: 10px; }

.foot__grid h2 {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 10px;
  color: var(--pink-ink);
}

.foot__grid section { display: grid; align-content: start; gap: 2px; }

.foot__grid section a,
.foot__base a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.foot__grid p { margin: 0; max-width: 28rem; }

.foot__org {
  border-top: 3px dotted var(--violet);
  border-bottom: 3px dotted var(--violet);
  padding: 18px 0;
}

.foot__org h2 {
  font-family: var(--sans);
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--link);
}

.foot__org p { margin: 0 0 12px; }

.foot__org dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 16px;
}

.foot__org dt {
  font-family: var(--sans);
  font-size: 0.78rem;
}

.foot__org dd { margin: 2px 0 0; }

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.foot__base p { margin: 0 0 0 auto; font-weight: 800; }

.help-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

body.is-nav .nav {
  display: flex;
  position: absolute;
  top: 86px;
  left: 16px;
  right: 16px;
  z-index: 3;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 24px;
  flex-direction: column;
  padding: 14px 16px;
  gap: 12px;
  box-shadow: 5px 5px 0 var(--pink);
}

body.is-nav .nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

@media (max-width: 980px) {
  .hero__top,
  .split,
  .facts,
  .foot__grid,
  .foot__org dl { grid-template-columns: 1fr 1fr; }
  .foot__grid section:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: inline-grid; place-items: center; }
  .top__bar {
    flex-wrap: wrap;
    min-height: 56px;
    border-radius: 28px;
  }
  .hero { margin-bottom: 24px; }
  .stage iframe,
  .stage__play img {
    height: 220px;
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .grid,
  .hero__top,
  .split,
  .facts,
  .foot__grid,
  .foot__org dl { grid-template-columns: 1fr; }
  .top__bar { gap: 10px; }
  .top__tools > .btn { display: none; }
  .btn { padding: 7px 12px; font-size: 0.8rem; }
  .foot__base p { margin-left: 0; }
}
