/* =========================================================
   duggu.uk: one stylesheet for every page.
   Colours live in :root, so changing the whole look is easy.
   ========================================================= */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0c0a2b;
  --bg-deep: #070620;
  --surface: #17144a;
  --surface-2: #211d5e;
  --line: rgba(255, 255, 255, 0.13);

  --ink: #f7f5ff;
  --muted: #c4c0ef;
  --on-bright: #18113d;

  --sun: #ffd23f;
  --sun-deep: #c99a00;
  --mint: #3ff0c4;
  --mint-deep: #13a483;
  --pink: #ff74b6;
  --pink-deep: #c2397a;
  --sky: #76f3ed;
  --violet: #b59cff;

  --radius: 22px;
  --font: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
}

/* starry sky: soft nebula glows + a tiled pattern of tiny stars, fixed behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(60vmax 42vmax at 88% -12%, rgba(181, 156, 255, 0.24), transparent 62%),
    radial-gradient(48vmax 40vmax at -12% 36%, rgba(63, 240, 196, 0.1), transparent 62%),
    radial-gradient(1.6px 1.6px at 30px 40px, rgba(255, 255, 255, 0.9) 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 150px 120px, rgba(255, 255, 255, 0.7) 50%, transparent 55%),
    radial-gradient(1px 1px at 90px 210px, rgba(255, 255, 255, 0.6) 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 225px 70px, rgba(255, 210, 63, 0.85) 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 255px 235px, rgba(118, 243, 237, 0.8) 50%, transparent 55%);
  background-size: auto, auto, 280px 280px, 280px 280px, 280px 280px, 280px 280px, 280px 280px;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-weight: 900;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--sun);
  color: var(--on-bright);
  font-weight: 900;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- header + footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 10, 43, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo img {
  width: 42px;
  height: 42px;
  transition: transform 0.2s ease;
}

.logo:hover img {
  transform: rotate(-8deg) scale(1.06);
}

.logo small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  margin-left: -8px;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a[aria-current="page"] {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 2px var(--line);
}

.site-footer {
  margin-top: 40px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.site-footer .heart {
  color: var(--pink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer nav a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 540px) {
  .logo {
    font-size: 1.4rem;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .logo small {
    display: none;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.98rem;
  }
}

/* ---------- buttons + links ---------- */

.btn {
  --b: var(--sun);
  --b-deep: var(--sun-deep);
  --b-ink: var(--on-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 26px;
  border: 0;
  border-radius: 16px;
  background: var(--b);
  color: var(--b-ink);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--b-deep), 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--b-deep), 0 16px 28px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--b-deep), 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn--mint {
  --b: var(--mint);
  --b-deep: var(--mint-deep);
}

.btn--pink {
  --b: var(--pink);
  --b-deep: var(--pink-deep);
}

.btn--ghost {
  --b: transparent;
  --b-ink: var(--ink);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
  box-shadow: inset 0 0 0 3px var(--ink);
}

.btn--ghost:active {
  transform: translateY(2px);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.btn--small {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 13px;
  font-size: 0.98rem;
}

.btn--small:not(.btn--ghost) {
  box-shadow: 0 4px 0 var(--b-deep);
}

.btn--small:not(.btn--ghost):hover {
  box-shadow: 0 6px 0 var(--b-deep);
}

.btn--small:not(.btn--ghost):active {
  box-shadow: 0 1px 0 var(--b-deep);
  transform: translateY(3px);
}

.btn--danger {
  --b: transparent;
  --b-ink: #ff9cc8;
  box-shadow: inset 0 0 0 3px rgba(255, 116, 182, 0.45);
}

.btn--danger:hover {
  box-shadow: inset 0 0 0 3px var(--pink);
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.text-link {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 3px solid var(--c, var(--sun));
  transition: color 0.15s ease;
}

.text-link:hover {
  color: var(--c, var(--sun));
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
}

/* ---------- page sections ---------- */

.section {
  padding: clamp(48px, 7vw, 88px) 0;
}

.section--flush {
  padding-top: 0;
}

.section-head {
  max-width: 660px;
  margin-bottom: 32px;
}

.section-head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.page-head {
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
}

.page-head h1 {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.05;
}

.page-head .lead {
  max-width: 46ch;
}

.lead {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.kicker {
  margin: 0 0 6px;
  color: var(--sky);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- home: hero ---------- */

.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
}

.hero .wrap {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(63, 240, 196, 0.12);
  box-shadow: inset 0 0 0 2px rgba(63, 240, 196, 0.35);
  color: var(--mint);
  font-size: 0.95rem;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0;
  font-size: clamp(2.7rem, 6.6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.squiggle {
  color: var(--sun);
  text-decoration: underline wavy var(--pink);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}

.hero .lead {
  max-width: 34ch;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
}

.trust li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--mint);
  font-weight: 900;
}

.hero-art {
  position: relative;
  margin: 0 8px 24px;
}

.screen {
  position: relative;
  display: block;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(160deg, #2c2777, #15123f);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.screen:hover {
  transform: rotate(0deg) scale(1.015);
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 6px 0 var(--sun-deep), 0 0 0 12px rgba(255, 210, 63, 0.22);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.screen:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.08);
}

.play-badge svg {
  width: 36px;
  height: 36px;
  margin-left: 6px;
  fill: var(--on-bright);
}

.sticker {
  position: absolute;
  left: -6px;
  top: -18px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--pink);
  color: var(--on-bright);
  font-weight: 900;
  box-shadow: 0 4px 0 var(--pink-deep);
  transform: rotate(-6deg);
  pointer-events: none;
}

.mascot-peek {
  position: absolute;
  right: -6px;
  bottom: -44px;
  width: clamp(92px, 15vw, 148px);
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
  transform: rotate(8deg);
  animation: bob 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bob {
  50% {
    transform: rotate(5deg) translateY(-8px);
  }
}

/* ---------- home: three things you can do ---------- */

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 2px var(--line);
}

.card h3 {
  margin: 20px 0 8px;
  font-size: 1.5rem;
}

.card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.card--sun {
  --c: var(--sun);
  --c-deep: var(--sun-deep);
}

.card--mint {
  --c: var(--mint);
  --c-deep: var(--mint-deep);
}

.card--pink {
  --c: var(--pink);
  --c-deep: var(--pink-deep);
}

.icon-blob {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--c);
  color: var(--on-bright);
  box-shadow: 0 5px 0 var(--c-deep);
  transform: rotate(-6deg);
}

.card:nth-child(2) .icon-blob {
  transform: rotate(5deg);
}

.icon-blob svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- home: featured game ---------- */

.feature {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  padding: clamp(14px, 3vw, 32px);
  border-radius: 32px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(118, 243, 237, 0.16), transparent 52%),
    linear-gradient(180deg, #0f1a33, #0a1024);
  box-shadow: inset 0 0 0 2px rgba(118, 243, 237, 0.28), 0 30px 60px rgba(0, 0, 0, 0.35);
}

@media (min-width: 880px) {
  .feature {
    grid-template-columns: 1.15fr 1fr;
  }
}

.feature-shot {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(118, 243, 237, 0.25);
}

.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.feature-shot:hover img {
  transform: scale(1.03);
}

.feature-text {
  padding: 0 clamp(6px, 1.5vw, 12px) clamp(10px, 1.5vw, 12px);
}

.game-title {
  margin: 0 0 12px;
  color: #c6fff8;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: 0.14em;
  text-shadow: 0 0 24px rgba(118, 243, 237, 0.45);
}

.feature-text > p {
  margin: 0 0 20px;
  color: #c9d8ea;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.keys li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #c9d8ea;
  font-weight: 700;
  font-size: 0.95rem;
}

kbd {
  min-width: 30px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-bright);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 3px 0 #9d98cf;
}

.feature .hint {
  margin-bottom: 24px;
  color: #a9bbd2;
}

/* ---------- home: about ---------- */

.about {
  display: grid;
  gap: 28px;
  align-items: center;
}

.about-mascot {
  width: 160px;
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45));
}

@media (min-width: 820px) {
  .about {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }

  .about-mascot {
    width: 100%;
  }
}

.speech {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background: var(--ink);
  color: var(--on-bright);
  font-size: 1.15rem;
}

.speech::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  border: 14px solid transparent;
  border-top: 0;
  border-bottom-color: var(--ink);
  transform: translateX(-50%);
}

@media (min-width: 820px) {
  .speech::before {
    left: -14px;
    top: 56px;
    border: 14px solid transparent;
    border-left: 0;
    border-right-color: var(--ink);
    transform: none;
  }
}

.speech h2 {
  color: var(--on-bright);
}

.speech p {
  margin: 0 0 14px;
  color: #3b3466;
}

.speech .sign {
  margin: 0;
  color: #6b43d6;
  font-weight: 900;
}

/* ---------- home: safety ---------- */

.safe {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.safe li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(63, 240, 196, 0.08);
  box-shadow: inset 0 0 0 2px rgba(63, 240, 196, 0.25);
  font-weight: 800;
}

.safe svg {
  flex: none;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- ideas ---------- */

.idea-list {
  display: grid;
  gap: 16px;
}

.idea-list--row {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.idea {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line);
}

.idea h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.idea > p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.idea-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.idea-meta b {
  color: var(--ink);
}

.tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c, var(--violet));
  color: var(--on-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kind-game {
  --c: var(--sun);
}

.kind-orbit {
  --c: var(--sky);
}

.kind-build {
  --c: var(--pink);
}

.kind-other {
  --c: var(--violet);
}

.kind-message {
  --c: #aab0c8;
}

.star {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 210, 63, 0.12);
  box-shadow: inset 0 0 0 2px rgba(255, 210, 63, 0.4);
  color: var(--sun);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease;
}

.star:hover:not([disabled]) {
  transform: scale(1.06);
  background: rgba(255, 210, 63, 0.22);
}

.star[aria-pressed="true"] {
  background: var(--sun);
  color: var(--on-bright);
  box-shadow: none;
  cursor: default;
}

.star.pop {
  animation: pop 0.35s ease;
}

@keyframes pop {
  50% {
    transform: scale(1.25);
  }
}

.reply {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(63, 240, 196, 0.1);
  box-shadow: inset 0 0 0 2px rgba(63, 240, 196, 0.3);
}

.reply img {
  flex: none;
  width: 30px;
  height: 30px;
}

.reply b {
  display: block;
  color: var(--mint);
  font-size: 0.85rem;
}

.reply span {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.empty {
  margin: 0;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  border: 2px dashed var(--line);
}

.empty a {
  color: var(--sun);
  font-weight: 900;
}

.rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 800;
  font-size: 0.95rem;
}

.board-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 980px) {
  .board-layout {
    grid-template-columns: minmax(380px, 430px) 1fr;
  }
}

@media (min-width: 980px) and (min-height: 940px) {
  .board-layout .panel {
    position: sticky;
    top: 94px;
  }
}

.panel {
  padding: clamp(20px, 3vw, 30px);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 2px var(--line), 0 20px 40px rgba(0, 0, 0, 0.25);
}

.panel-title {
  margin: 0 0 18px;
  font-size: 1.6rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.toolbar h2 {
  margin: 0;
  font-size: 1.6rem;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 2px var(--line);
}

.segmented button {
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

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

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 2px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.filter:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter[aria-pressed="true"] {
  background: var(--c, var(--ink));
  color: var(--on-bright);
  box-shadow: none;
}

/* ---------- forms ---------- */

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.field > label,
.field legend,
.label-row label {
  padding: 0;
  font-weight: 900;
}

.field legend {
  margin-bottom: 10px;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.optional {
  color: var(--muted);
  font-weight: 700;
}

.count {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: var(--bg-deep);
  color: var(--ink);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #8f8bc0;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--sun);
  box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.25);
}

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

.input-row {
  display: flex;
  gap: 8px;
}

.dice {
  flex: none;
  width: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.dice:hover {
  transform: rotate(-12deg);
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 800;
  font-size: 0.97rem;
}

.choice:hover span {
  background: rgba(255, 255, 255, 0.11);
}

.choice input:checked + span {
  background: var(--c, var(--sun));
  color: var(--on-bright);
  box-shadow: none;
}

.choice input:focus-visible + span {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 116, 182, 0.1);
  box-shadow: inset 0 0 0 2px rgba(255, 116, 182, 0.3);
  font-weight: 700;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--pink);
}

.status {
  min-height: 1.6em;
  margin: 14px 0 0;
  font-weight: 800;
}

.status--error {
  color: #ffa3cd;
}

.status--ok {
  color: var(--mint);
}

.sent {
  padding: 12px 4px;
  text-align: center;
}

.sent:focus {
  outline: none;
}

.sent img {
  width: 110px;
  height: auto;
}

.sent h2 {
  margin: 10px 0 8px;
  font-size: 1.8rem;
}

.sent p {
  margin: 0 auto 22px;
  max-width: 30ch;
  color: var(--muted);
}

/* ---------- games page ---------- */

.game-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

.game-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line);
}

.game-tile .thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.game-tile .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-tile a.thumb:hover img {
  transform: scale(1.04);
}

.thumb--soon {
  display: grid !important;
  place-items: center;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 14px, transparent 14px 28px), var(--bg-deep);
}

.thumb--soon img {
  width: 96px !important;
  height: auto !important;
  opacity: 0.85;
}

.thumb--soon svg {
  width: 72px;
  height: 72px;
  fill: none;
  stroke: var(--pink);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.game-tile .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 26px;
}

.game-tile h2 {
  margin: 0;
  font-size: 1.6rem;
}

.game-tile .body > p {
  margin: 0;
  color: var(--muted);
}

.game-tile .cta-row,
.game-tile .text-link {
  margin-top: auto;
  padding-top: 8px;
}

.game-tile .text-link {
  align-self: flex-start;
  padding-top: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- privacy page ---------- */

.prose {
  max-width: 720px;
}

.prose h2 {
  margin: 44px 0 10px;
  font-size: 1.65rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--ink);
}

.prose a {
  color: var(--sun);
  font-weight: 800;
}

.callout {
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(63, 240, 196, 0.08);
  box-shadow: inset 0 0 0 2px rgba(63, 240, 196, 0.25);
}

.callout p {
  margin: 0;
  color: var(--ink);
}

/* ---------- 404 ---------- */

.lost {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(56px, 10vw, 120px) 0;
  text-align: center;
}

.lost img {
  width: 150px;
  height: auto;
  animation: drift 6s ease-in-out infinite;
}

@keyframes drift {
  50% {
    transform: rotate(-14deg) translate(10px, -14px);
  }
}

.lost h1 {
  margin: 12px 0 0;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.lost p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.2rem;
}

/* ---------- admin ---------- */

.admin-item {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line);
}

.admin-item h3 {
  margin: 0;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.admin-item > p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.admin-item textarea {
  min-height: 70px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-count {
  display: inline-block;
  min-width: 26px;
  margin-left: 4px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--on-bright);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- motion preferences ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
