:root {
  --bg: #0b0a24;
  --card: #14123a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f1f0ff;
  --muted: #b4b2d6;
  --gold: #ffc93c;
  --violet: #5b4bd6;
  --display: "Paytone One", "Inter", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: #1d1b4f; padding: .6rem 1rem; border-radius: .6rem; font-weight: 600; z-index: 10; }
.skip:focus { top: 1rem; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

.hero-bg { background: linear-gradient(180deg, rgba(11, 10, 36, .35), var(--bg) 92%), url("/assets/bg.jpg") center top / cover no-repeat; }
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 1.25rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font: 1.35rem var(--display); letter-spacing: .03em; }
.brand img { width: 2.5rem; height: 2.5rem; border-radius: .75rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.nav { display: flex; gap: 1.25rem; font-size: .9rem; color: var(--muted); }
.nav a { text-decoration: none; padding: .25rem 0; }
.nav a:hover { color: #fff; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; }
.hero { display: grid; gap: 3rem; align-items: center; padding-block: 2.5rem 5rem; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); }
.hero h1 span { color: var(--gold); }
.lead { margin: 1.5rem 0 0; font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.badges { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.badges img { height: 3.5rem; width: auto; }
/* The game's green jelly button (assets/art/ui/jelly_green.png): caps fixed, middle stretches. */
.web-badge { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 3.5rem; min-width: 11.9rem; padding: 0 .4rem; border-style: solid; border-width: 0 2.15rem; border-image: url("/assets/btn-green.png") 0 69 fill / 0 2.15rem stretch; text-decoration: none; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .3)); }
.web-badge span { margin-top: -.35rem; font-family: "Paytone One", system-ui, sans-serif; font-size: 1.3rem; color: #fff; white-space: nowrap; text-shadow: 0 2px 0 #1d6b12, 0 0 2px #1d6b12, 1px 1px 0 #1d6b12, -1px 1px 0 #1d6b12; }
/* Hero: the green button alone on the first row, the two store badges side by side under it,
   both rows the same width. */
.hero-badges { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; max-width: 24rem; }
.hero-badges .web-badge { grid-column: 1 / -1; width: 100%; height: 4rem; border-width: 0 2.45rem; border-image-width: 0 2.45rem; }
.hero-badges .web-badge span { font-size: 1.5rem; }
.hero-badges a:not(.web-badge) { display: block; }
.hero-badges a:not(.web-badge) img { width: 100%; height: 3.5rem; object-fit: contain; object-position: left center; display: block; }
.hero-badges a:not(.web-badge):last-child img { object-position: right center; }
.web-badge:hover { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .3)) brightness(1.06); }
.hero-phones { position: relative; display: flex; justify-content: center; }
.phone { border-radius: 2rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -20px rgba(0, 0, 0, .75); background: var(--card); }
.hero-phones .phone { width: min(15rem, 52%); }
.hero-phones .phone + .phone { margin: 3rem 0 -3rem -1.5rem; }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(18.5rem, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 1.5rem; padding: 1.5rem; }
.card h3 { color: var(--gold); font-size: 1.4rem; }
.card p { margin: .6rem 0 0; color: var(--muted); }

section.block { margin-top: 5rem; }
section.block > h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); text-align: center; }
.sub { text-align: center; color: var(--muted); margin: .75rem auto 0; max-width: 36rem; }

.gallery { margin: 2.5rem 0 0; padding: 0 0 1rem; list-style: none; display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery li { flex: 0 0 min(15rem, 62vw); scroll-snap-align: center; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: .9rem; text-align: center; font-size: .92rem; color: var(--muted); }

.cta { margin-top: 5rem; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 2rem; padding: 3rem 1.5rem; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.cta .badges { justify-content: center; }

.foot { margin-top: 5rem; border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
.foot div { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* legal + 404 pages */
.page-head { padding-block: 2.5rem 3rem; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
.page-head p { margin: .75rem 0 0; font-size: .9rem; color: var(--muted); }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 1.5rem; padding: clamp(1.5rem, 5vw, 3rem); }
.doc h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; color: var(--gold); }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #d8d6f0; }
.doc p { margin: .5rem 0; }
.doc ul { padding-left: 1.25rem; margin: .5rem 0; }
.doc a { color: var(--gold); text-underline-offset: 3px; }
.center { text-align: center; padding-block: 6rem 2rem; }
.center h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--gold); }
.center p { color: var(--muted); font-size: 1.1rem; }
.btn { display: inline-block; margin-top: 1.5rem; padding: .85rem 1.75rem; border-radius: 999px; background: #27b376; color: #fff; text-decoration: none; font: 1.05rem var(--display); box-shadow: 0 4px 0 #1b7f54; }
.btn:hover { background: #2ec485; }

@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.1fr .9fr; }
  .gallery { justify-content: center; flex-wrap: wrap; overflow: visible; }
  .gallery li { flex: 0 0 13.5rem; }
}
@media (max-width: 36rem) {
  .nav .opt { display: none; }
  .badges img { height: 3rem; }
  .web-badge { height: 3rem; min-width: 10.2rem; border-width: 0 1.85rem; border-image-width: 0 1.85rem; }
  .web-badge span { font-size: 1.1rem; margin-top: -.3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
section.block.first { margin-top: 0; }
