/* Forma Digital — shared stylesheet
   Fonts are self-hosted variable woff2 (latin subset), no external requests. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/Nunito-latin.var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/JetBrainsMono-latin.var.woff2") format("woff2");
}

:root {
  --tangerine: #ff8a3d;
  --sunshine: #ffd23f;
  --mint: #3ddc97;
  --blueberry: #5b8cff;
  --coral: #ff5a5f;
  --ink: #1c1c1e;
  --cream: #fff4e0;
  --body-gray: #5b5b60;
  --mono-gray: #a8a498;
  --link: #4a6fd6;
  --link-hover: #3a5fc4;
  --sky-gradient: linear-gradient(180deg, #3f74f2 0%, #5b8cff 34%, #9dbcff 68%, #dfe9ff 100%);
  --dusk-gradient: linear-gradient(180deg, #2c3a6e 0%, #4a7dee 40%, #8fb0ff 72%, #ffd9b0 96%, #ffcf9e 100%);
  --ease-bouncy: cubic-bezier(.34, 1.56, .64, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: #fff;
  font-family: Nunito, system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
main:focus { outline: none; }

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

a {
  color: var(--link);
  text-decoration: none;
  border-radius: 6px;
}
a:hover { color: var(--link-hover); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--tangerine);
  outline-offset: 3px;
}

::selection {
  background: var(--sunshine);
  color: var(--ink);
}

.mono {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 100px;
  box-shadow: 0 10px 26px rgba(20, 32, 70, .35);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Logo ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}
.brand:hover { color: inherit; }

.brand__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(20, 32, 70, .18);
}

.brand__word {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.03em;
}

/* ---------- Hero-style nav (Home, 404) ---------- */

.nav-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.nav-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 48px 0;
}

.nav-hero .brand { color: #fff; padding: 6px 0; }

.nav-hero__links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-hero__links a {
  color: rgba(255, 255, 255, .85);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 2px;
  border-bottom: 2.5px solid transparent;
  border-radius: 6px 6px 0 0;
  transition: color .2s ease;
}
.nav-hero__links a:hover { color: #fff; }
.nav-hero__links a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--sunshine);
}

/* ---------- Page-band nav (Privacy, Support) ---------- */

.band--cream { background: var(--cream); }
.band--blue { background: #eef3ff; }

.nav-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 48px;
}

.nav-page .brand__word { font-size: 24px; }

.nav-page__links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-page__links a {
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 12px;
  transition: background .2s ease;
}
.nav-page__links a:hover {
  color: var(--ink);
  background: rgba(28, 28, 30, .07);
}
.band--cream .nav-page__links a[aria-current="page"] {
  color: #c47b2a;
  background: rgba(255, 138, 61, .14);
}
.band--blue .nav-page__links a[aria-current="page"] {
  color: #4a6fd6;
  background: rgba(91, 140, 255, .16);
}

.page-head {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 48px 70px;
}

.page-head__eyebrow { display: block; }
.band--cream .page-head__eyebrow { color: #c47b2a; }
.band--blue .page-head__eyebrow { color: #4a6fd6; }

.page-head h1 {
  font-weight: 900;
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -.03em;
  margin: 14px 0 0;
}

/* ---------- Hero (Home, 404) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 90px;
  background: var(--sky-gradient);
  overflow: hidden;
}

.haze {
  position: absolute;
  border-radius: 100vw;
  filter: blur(46px);
}
.hero .haze--a {
  top: 12%;
  left: -6%;
  width: 44vw;
  height: 14vw;
  background: rgba(255, 255, 255, .55);
  animation: cloudA 34s ease-in-out infinite alternate;
}
.hero .haze--b {
  top: 44%;
  right: -8%;
  width: 52vw;
  height: 16vw;
  background: rgba(255, 255, 255, .4);
  filter: blur(56px);
  animation: cloudB 42s ease-in-out infinite alternate;
}
.hero .haze--c {
  bottom: -4%;
  left: 14%;
  width: 60vw;
  height: 18vw;
  background: rgba(255, 255, 255, .5);
  filter: blur(60px);
  animation: cloudA 48s ease-in-out infinite alternate-reverse;
}

.hero__grid {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 48px 90px;
}

.hero__copy { animation: fadeUp .8s .1s ease both; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(28, 28, 30, .28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 9px 18px;
}

.badge .mono {
  color: #fff;
  letter-spacing: .16em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sunshine);
  flex-shrink: 0;
}
.dot--mint {
  background: var(--mint);
  animation: blink 3s infinite;
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(42px, 6.4vw, 88px);
  letter-spacing: -.035em;
  line-height: .98;
  color: #fff;
  margin: 26px 0 0;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(38, 72, 164, .25);
}

.hero h1 .hl { color: var(--sunshine); }

.hero__sub {
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255, 255, 255, .92);
  margin: 24px 0 0;
  max-width: 460px;
  line-height: 1.55;
}

.hero__cta-row {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 17px 32px;
  border-radius: 100px;
  box-shadow: 0 10px 26px rgba(20, 32, 70, .35);
  transition: transform .25s var(--ease-bouncy), box-shadow .25s ease, background .2s ease;
}
.btn:hover {
  color: #fff;
  background: #2a2a2e;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(20, 32, 70, .42);
}
.btn:active {
  transform: translateY(0) scale(.96);
  box-shadow: 0 4px 12px rgba(20, 32, 70, .3);
}
.btn .arrow { font-size: 18px; line-height: 1; }

.hero__art {
  position: relative;
  animation: fadeUp .9s .25s ease both;
}

.hero__art img {
  position: relative;
  z-index: 2;
  width: min(46vw, 640px);
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 30px 40px rgba(31, 55, 120, .3));
  animation: heroBob 5.2s ease-in-out infinite alternate;
}

.ground-shadow {
  position: absolute;
  left: 50%;
  bottom: -7%;
  transform: translateX(-50%);
  width: 52%;
  height: 34px;
  background: radial-gradient(closest-side, rgba(24, 42, 96, .4), transparent 70%);
  animation: shadowPulse 5.2s ease-in-out infinite alternate;
}

/* ---------- About ---------- */

.about { padding: 130px 48px; background: #fff; }

.about__inner,
.games__inner { max-width: 1120px; margin: 0 auto; }

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label__num { color: var(--mono-gray); }
.section-label__rule {
  height: 1.5px;
  width: 44px;
  background: #e3e1d9;
}
.section-label__name { color: var(--tangerine); }

.about h2 {
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 60px);
  letter-spacing: -.03em;
  line-height: 1.12;
  margin: 30px 0 0;
  max-width: 900px;
  text-wrap: balance;
}

.u-sunshine { background: linear-gradient(transparent 62%, var(--sunshine) 62%); }
.u-mint { background: linear-gradient(transparent 62%, #a5e8cc 62%); }
.u-blue { background: linear-gradient(transparent 62%, #c8d8ff 62%); }

.about p {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.6;
  color: var(--body-gray);
  margin: 30px 0 0;
  max-width: 600px;
  text-wrap: pretty;
}

/* ---------- Games ---------- */

.games {
  position: relative;
  padding: 120px 48px 140px;
  background: var(--dusk-gradient);
  overflow: hidden;
}

.games__sun {
  position: absolute;
  bottom: -16%;
  left: 30%;
  width: 44%;
  height: 46%;
  background: radial-gradient(closest-side, rgba(255, 214, 150, .8), transparent 72%);
}
.games .haze--b {
  top: 10%;
  right: -6%;
  width: 48%;
  height: 20%;
  background: rgba(255, 255, 255, .22);
  filter: blur(38px);
  animation: cloudB 38s ease-in-out infinite alternate;
}
.games .haze--a {
  bottom: 6%;
  left: -8%;
  width: 52%;
  height: 22%;
  background: rgba(255, 255, 255, .24);
  filter: blur(44px);
  animation: cloudA 32s ease-in-out infinite alternate;
}

.games__inner { position: relative; }

.games .section-label__num { color: rgba(255, 255, 255, .6); }
.games .section-label__rule { background: rgba(255, 255, 255, .35); }
.games .section-label__name { color: var(--sunshine); }

.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}

.game__art { position: relative; }
.game__art img {
  width: 100%;
  max-width: 560px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 34px 44px rgba(16, 32, 80, .4));
  animation: heroBob 5.8s ease-in-out infinite alternate;
}
.game__art .ground-shadow {
  bottom: -9%;
  width: 50%;
  height: 30px;
  background: radial-gradient(closest-side, rgba(24, 42, 96, .35), transparent 70%);
  animation-duration: 5.8s;
}

.game .badge {
  gap: 9px;
  background: rgba(28, 28, 30, .32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.game .badge .mono { font-size: 11.5px; }

.game h3 {
  font-weight: 900;
  font-size: clamp(40px, 5.4vw, 72px);
  letter-spacing: -.035em;
  line-height: 1;
  color: #fff;
  margin: 22px 0 0;
  text-shadow: 0 2px 26px rgba(30, 50, 110, .3);
}

.game__desc {
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .94);
  margin: 20px 0 0;
  max-width: 470px;
  text-wrap: pretty;
}

.spec {
  display: flex;
  flex-direction: column;
  margin: 30px 0 0;
  max-width: 470px;
  background: rgba(28, 28, 30, .34);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 6px 24px;
}

.spec__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}
.spec__row:last-child { border-bottom: 0; }

.spec dt {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

.spec dd {
  margin: 0;
  font-weight: 800;
  font-size: 14.5px;
  color: #fff;
}

/* ---------- Page body (Privacy, Support) ---------- */

.page-body { padding: 70px 48px 100px; }

.page-body__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.page-body__inner--support { gap: 36px; }

.lede {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.65;
  color: #3b3b40;
  margin: 0;
  text-wrap: pretty;
}
.lede a { font-weight: 700; }
.lede--support { font-size: 19px; }
.lede--support a { font-weight: 800; }

.policy-section h2 {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}

.policy-section p {
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body-gray);
  margin: 0;
  text-wrap: pretty;
}
.policy-section a { font-weight: 700; }

.contact-card {
  background: #f7f6f2;
  border-radius: 20px;
  padding: 30px 34px;
}
.contact-card h2 {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.contact-card p {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-gray);
  margin: 0;
}
.contact-card a { font-weight: 700; }

/* ---------- Support ---------- */

.help-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 34px 38px;
}
.help-card h2 {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.help-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.help-card li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 16.5px;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
}
.swatch--tangerine { background: var(--tangerine); }
.swatch--sunshine { background: var(--sunshine); }
.swatch--mint { background: var(--mint); }

.privacy-note {
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--body-gray);
  margin: 0;
}
.privacy-note a { font-weight: 800; }

.btn--support {
  display: inline-block;
  align-self: flex-start;
  gap: 0;
  padding: 16px 30px;
  border-radius: 14px;
  box-shadow: none;
}
.btn--support:hover {
  background: #333336;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(28, 28, 30, .22);
}
.btn--support:active {
  transform: translateY(0) scale(.97);
  box-shadow: none;
}

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

.hero--error .hero__grid {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.hero--error .hero__sub { margin-left: auto; margin-right: auto; }
.hero--error .hero__cta-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  padding: 64px 48px;
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer .brand { color: #fff; }

.site-footer__links { display: flex; gap: 14px; }

.site-footer__links a {
  color: #c9c9cd;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 6px;
  transition: color .2s ease;
}
.site-footer__links a:hover { color: #fff; }

.site-footer__legal {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: #6a6a70;
}

/* ---------- Motion ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroBob {
  from { transform: translateY(-14px) rotate(-1.2deg); }
  to { transform: translateY(16px) rotate(1.4deg); }
}
@keyframes shadowPulse {
  from { transform: translateX(-50%) scaleX(1.06); opacity: .28; }
  to { transform: translateX(-50%) scaleX(.9); opacity: .16; }
}
@keyframes cloudA {
  from { transform: translateX(-4%); }
  to { transform: translateX(5%); }
}
@keyframes cloudB {
  from { transform: translateX(3%); }
  to { transform: translateX(-5%); }
}
@keyframes blink {
  0%, 88%, 100% { opacity: 1; }
  94% { opacity: .2; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-hero__row { padding: 18px 24px 0; }
  .nav-hero__links { gap: 14px; }

  .hero { padding-top: 74px; }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 34px 24px 64px;
  }
  .hero__art img { width: min(74vw, 400px); }

  .nav-page { padding: 14px 24px; }
  .nav-page__links { gap: 2px; }
  .page-head { padding: 40px 24px 48px; }
  .page-body { padding: 48px 24px 64px; }

  .about { padding: 80px 24px 84px; }
  .games { padding: 80px 24px 84px; }
  .game {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .game__art img { max-width: min(70vw, 380px); }

  .help-card { padding: 28px 24px; }
  .contact-card { padding: 26px 24px; }

  .site-footer { padding: 56px 24px; }
}

@media (max-width: 480px) {
  .hero__cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta-row .btn {
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
