/* playstonerush.com: one stylesheet, fonts served from the site (Bungee for titles, Rubik for text, both SIL OFL), no trackers.
   Motion comes from site.js through classes (.in, .scrolled, .hide) and CSS variables (--py, --hp, --mx…): without JS,
   or with reduced motion, every element is visible and still. */
@font-face { font-family: "Bungee"; src: url(/assets/fonts/bungee-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url(/assets/fonts/rubik-latin.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }

:root { --bg: #0c0b18; --panel: #1b1836; --line: #2b2752; --fg: #f4f2ff; --muted: #aaa6d2; --soft: #d6d3f5;
  --gold: #ffd166; --ruby: #ff4d6d; --sapphire: #4aa3ff; --emerald: #3ddc84; --amethyst: #a86bff; --purple: #6a3ad0;
  --display: "Bungee", "Arial Black", Impact, sans-serif; --text: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-io: cubic-bezier(.7, 0, .2, 1); --pop: cubic-bezier(.3, 1.6, .5, 1); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
/* the big words, glows and tilted bands go past the screen edges: cut them there (clip, unlike hidden, keeps position: sticky working) */
main { overflow-x: clip; }
footer { overflow: clip; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--gold); color: #1d1200; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* film grain over the whole page: texture for the flat dark areas, like the painted key art */
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* reading progress: a thin bar in the five gem colours */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; transform-origin: 0 50%; transform: scaleX(var(--prog, 0));
  background: linear-gradient(90deg, var(--ruby), var(--gold), var(--emerald), var(--sapphire), var(--amethyst)); }

/* ---------- navigation: a floating glass bar, hidden while scrolling down, back on the way up ---------- */
.nav { position: fixed; z-index: 50; top: 14px; left: 14px; right: 14px; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 7px 7px 7px 24px; border-radius: 999px; background: rgba(12, 11, 24, .42); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); transition: transform .5s var(--ease), background .3s; }
.nav.scrolled { background: rgba(12, 11, 24, .8); }
.nav.hide { transform: translateY(calc(-100% - 20px)); }
.nav a { font-family: var(--display); font-size: 13px; letter-spacing: .06em; color: rgba(255, 255, 255, .82); text-decoration: none; }
.nav a:hover { color: #fff; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-end { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-contact { padding: 10px 14px; }

/* language menu: a <details>, so it works without JS; the button shows the current language */
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 16px; border-radius: 999px; list-style: none; cursor: pointer;
  background: var(--gold); color: #1d1200; font-family: var(--display); font-size: 14px; letter-spacing: .04em; user-select: none; -webkit-user-select: none;
  transition: background .2s, transform .2s var(--ease); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: #ffe199; }
.lang summary:active { transform: scale(.96); }
.lang summary svg { width: 11px; height: 11px; transition: transform .35s var(--ease); }
.lang[open] summary svg { transform: rotate(180deg); }
.lang ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; margin: 0; padding: 6px; list-style: none; border-radius: 18px;
  background: rgba(22, 20, 44, .97); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  transform-origin: top right; animation: menu-in .28s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.95); } }
.lang li a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font: 500 15px/1.2 var(--text); letter-spacing: 0; color: var(--fg); }
.lang li a:hover { background: rgba(255, 255, 255, .07); }
.lang li a b { width: 26px; font: 400 13px/1 var(--display); color: var(--gold); }
.lang li a[aria-current]::after { content: ""; width: 9px; height: 9px; margin-left: auto; border-radius: 2px; background: var(--gold); transform: rotate(45deg);
  box-shadow: 0 0 12px var(--gold); }

/* ---------- hero: the key art alone, full width; it opens like a curtain, follows the mouse, sinks as you scroll ---------- */
.hero { position: relative; z-index: 1; height: min(100vh, 62vw); height: min(100svh, 62vw); min-height: 440px; overflow: hidden; background: var(--bg); }
.hero-media, .hero-zoom { position: absolute; inset: 0; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; will-change: transform;
  transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--hp, 0) * 18vh + var(--my, 0) * -10px), 0) scale(calc(1.06 + var(--hp, 0) * .08)); }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: calc(var(--hp, 0) * .8); pointer-events: none; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 28px; height: 46px; margin-left: -14px; border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, .9); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-media { animation: hero-open 1.5s var(--ease-io) both; }
  .hero-zoom { animation: hero-zoom 2.4s var(--ease) both; }
  .nav { animation: drop-in .9s var(--ease) .7s backwards; }
  .scroll-cue { animation: fade-in .8s 1.4s backwards; }
}
@keyframes hero-open { from { clip-path: inset(16% 12% 16% 12% round 44px); } to { clip-path: inset(0 0 0 0 round 0); } }
@keyframes hero-zoom { from { transform: scale(1.4); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-30px); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- intro: the name in big, popping letter by letter, with gems floating around ---------- */
.intro { position: relative; text-align: center; padding: clamp(90px, 12vw, 160px) 0 clamp(80px, 10vw, 130px); }
.intro::before { content: ""; position: absolute; left: 50%; top: 42%; width: min(1000px, 120vw); height: 640px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(106, 58, 208, .5), rgba(106, 58, 208, 0)); pointer-events: none; }
.intro > .wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 400 13px/1.2 var(--display); letter-spacing: .14em; color: var(--gold); }
.eyebrow::before, .eyebrow::after { content: ""; width: 30px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }
.title { margin: 0; font: 400 clamp(46px, 13vw, 176px)/.92 var(--display); white-space: nowrap;
  filter: drop-shadow(0 .045em 0 #b4501a) drop-shadow(0 .04em 0 #5e1f0b) drop-shadow(0 .18em .22em rgba(0, 0, 0, .5)); }
.title .ch { display: inline-block; color: transparent; background: linear-gradient(180deg, #fff8d8 10%, #ffd166 48%, #ff9a1f 92%);
  -webkit-background-clip: text; background-clip: text; }
.tag { margin: 30px 0 14px; font: 400 clamp(18px, 2.2vw, 26px)/1.2 var(--display); letter-spacing: .04em; }
.tag em { font-style: normal; color: var(--ruby); }
.lead { max-width: 620px; margin: 0 auto 36px; font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); }

/* store badges: not links yet (the game is not out); a light sweeps across on hover */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.store { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-width: 200px; padding: 12px 22px 12px 18px; border-radius: 16px;
  background: #05050b; border: 1px solid rgba(255, 255, 255, .2); color: #fff; cursor: default; transition: border-color .3s; }
.store::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; transform: skewX(-20deg); transition: left .8s var(--ease);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .2), rgba(255, 255, 255, 0)); }
.store:hover { border-color: rgba(255, 209, 102, .7); }
.store:hover::after { left: 130%; }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #bbb; }
.store b { font-size: 18px; font-weight: 600; }

/* floating gems (the game's six gem shapes): bobbing, and each layer scrolls at its own speed */
.gem { position: absolute; z-index: 0; width: var(--s, 56px); height: var(--s, 56px); pointer-events: none; translate: 0 var(--py, 0px);
  transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.gem svg { display: block; width: 100%; height: 100%; animation: bob 6s ease-in-out infinite; animation-delay: var(--bd, 0s); }
@keyframes bob { 50% { transform: translateY(-14px) rotate(10deg); } }
.g1 { --s: 72px; --r: -14deg; left: 7%; top: 18%; }
.g2 { --s: 58px; --r: 12deg; --bd: -2s; right: 9%; top: 14%; }
.g3 { --s: 46px; --r: 20deg; --bd: -4s; left: 16%; bottom: 12%; }
.g4 { --s: 64px; --bd: -1s; right: 12%; bottom: 16%; }
.g5 { --s: 38px; --r: -8deg; --bd: -3s; left: 3%; top: 58%; }
.g6 { --s: 42px; --r: 16deg; --bd: -5s; right: 3%; top: 50%; }

/* ---------- marquee: two crossed bands of words, faster while you scroll ---------- */
.marquee { position: relative; height: clamp(170px, 19vw, 270px); overflow: hidden; }
.band { position: absolute; left: -6%; right: -6%; top: 50%; padding: 18px 0; overflow: hidden; white-space: nowrap; }
.band-a { z-index: 2; background: var(--gold); color: #1d1200; transform: translateY(-50%) rotate(-4deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.band-b { background: var(--purple); color: #fff; transform: translateY(-50%) rotate(3deg); }
.track { display: inline-flex; will-change: transform; }
.grp { display: inline-flex; align-items: center; font: 400 clamp(26px, 4vw, 54px)/1 var(--display); }
.grp > * { margin-right: .6em; }
.grp svg { width: .62em; height: .62em; flex: none; }
html:not(.js) .track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- features: number, big title, short text; phones that tilt with the mouse; a huge outlined word drifting behind ---------- */
.feat { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 90px); padding: clamp(60px, 8vw, 110px) 0; }
.feat.rev .phones { order: 2; }
.bgword { position: absolute; left: 50%; top: 50%; z-index: 0; pointer-events: none; white-space: nowrap; font: 400 clamp(110px, 21vw, 300px)/1 var(--display);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .08); transform: translate(calc(-50% + var(--dx, 0px)), -50%); }
.phones { position: relative; z-index: 1; display: flex; justify-content: center; min-height: 620px; align-items: center; perspective: 1400px; }
.phones::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(560px, 110vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: .6; }
#combat { --glow: rgba(255, 77, 109, .55); }
#sets { --glow: rgba(74, 163, 255, .5); }
#packs { --glow: rgba(255, 209, 102, .45); }
.tilt { position: relative; width: 270px; translate: 0 var(--py, 0px); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .7s var(--ease); }
.device { position: relative; z-index: 2; width: 270px; aspect-ratio: 600 / 1299; overflow: hidden; border-radius: 40px; border: 9px solid #15132b; background: #000;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 0 1px #3a3566; }
.device::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 36%); }
.device img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phones.two .device { transform: translateX(-54px) translateZ(30px); }
.phones.two .device.back { position: absolute; z-index: 1; top: 70px; left: 0; translate: 0 var(--py, 0px); transform: translateX(118px) scale(.88); filter: brightness(.72); }
.copy { position: relative; z-index: 1; max-width: 460px; }
.feat:not(.rev) .copy { justify-self: start; }
.feat.rev .copy { justify-self: end; }
.num { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font: 400 14px/1 var(--display); letter-spacing: .14em; color: var(--gold); }
.num b { font-weight: 400; font-size: 64px; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--gold); }
.copy h2 { margin: 0 0 20px; font: 400 clamp(32px, 3.8vw, 52px)/1.04 var(--display); text-transform: uppercase; }
.copy p { margin: 0; font-size: 18px; color: var(--muted); }

/* ---------- key numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 48px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 400 clamp(48px, 6vw, 84px)/1 var(--display); }
.stat:nth-child(1) b { color: var(--ruby); }
.stat:nth-child(2) b { color: var(--sapphire); }
.stat:nth-child(3) b { color: var(--emerald); }
.stat:nth-child(4) b { color: var(--gold); }
.stat span { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- closing call: the key art again, darkened, with a light following the mouse ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(70px, 9vw, 130px); padding: clamp(90px, 12vw, 160px) 24px; border-radius: 36px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .1); }
.cta-bg { position: absolute; inset: -15% 0; z-index: -2; translate: 0 var(--py, 0px); }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 40%; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 40%), rgba(255, 209, 102, .22), rgba(255, 209, 102, 0) 70%),
    linear-gradient(180deg, rgba(12, 11, 24, .5), rgba(12, 11, 24, .9)); }
.cta h2 { margin: 0 0 36px; font: 400 clamp(40px, 7.5vw, 108px)/.95 var(--display); text-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.cta h2 span { color: var(--gold); }

/* ---------- footer: links, then the name in giant outlined letters that fill in when they come into view ---------- */
footer { position: relative; margin-top: 90px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-row a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot-row a:hover { color: var(--gold); }
.foot-row .top { margin-left: auto; font: 400 12px/1 var(--display); letter-spacing: .1em; }
.wordmark { margin: 10px 0 -.16em; font: 400 15.2vw/1 var(--display); text-align: center; white-space: nowrap; user-select: none; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .14); background: linear-gradient(180deg, #34306a, #121028) no-repeat 0 0 / 0% 100%;
  -webkit-background-clip: text; background-clip: text; transition: background-size 1.8s var(--ease-io); }
.wordmark.in, html:not(.js) .wordmark { background-size: 100% 100%; }

/* ---------- scroll reveals (only when JS runs, see site.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(44px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .title .ch { opacity: 0; transform: translateY(.5em) rotate(8deg) scale(.5); transition: transform .9s var(--pop), opacity .35s; transition-delay: calc(var(--i) * 55ms); }
.js .title.in .ch { opacity: 1; transform: none; }
.js .copy h2 { clip-path: inset(0 0 100% 0); transform: translateY(30px); transition: clip-path 1.1s var(--ease-io) .1s, transform 1.1s var(--ease) .1s; }
.js .copy.in h2 { clip-path: inset(-20% -10% -30% -10%); transform: none; }
.js .phones .tilt { opacity: 0; scale: .9; transition: transform .7s var(--ease), opacity 1s var(--ease), scale 1.2s var(--ease); }
.js .phones.in .tilt { opacity: 1; scale: 1; }

@media (max-width: 860px) {
  .feat, .feat.rev { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .feat.rev .phones { order: 0; }
  .copy, .feat.rev .copy, .feat:not(.rev) .copy { justify-self: center; }
  .num { justify-content: center; }
  .phones { min-height: 0; }
  .tilt, .device { width: 220px; }
  .phones.two .device { transform: translateX(-40px); }
  .phones.two .device.back { top: 46px; transform: translateX(84px) scale(.88); }
  .bgword { top: 26%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gem.far { display: none; }
  .g1 { --s: 44px; left: 5%; top: 34px; }
  .g2 { --s: 36px; right: 7%; top: 52px; }
  .g4 { --s: 40px; right: 9%; bottom: 22px; }
}
@media (max-width: 700px) {
  .nav { left: auto; padding-left: 7px; }
  .nav-links { display: none; }
  .foot-row .top { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal, .js .title .ch, .js .copy h2, .js .phones .tilt { opacity: 1; transform: none; clip-path: none; scale: none; transition: none; }
}
