/* =========================================================
   RollUp Gaming — coming soon
   Brand: white + mint green #AFFF9F on near-black
   ========================================================= */
:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --card: #141416;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #9a9ca3;
  --accent: #afff9f;
  --accent-dim: rgba(175, 255, 159, 0.14);
  --radius: 22px;
  --ramp: -4.94deg; /* the angle of the GAMING bar */
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- ambient layers ---------- */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 620px; height: 620px; border-radius: 50%;
  left: 0; top: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(175, 255, 159, .13), transparent 62%);
  transition: opacity .4s; opacity: 0;
}
body.has-pointer .glow { opacity: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav__logo img { width: 128px; height: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(175, 255, 159, .35);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(175, 255, 159, .7);
  animation: ping 1.8s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(175, 255, 159, .6); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(175, 255, 159, 0); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px clamp(20px, 5vw, 56px) 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 38%, rgba(175, 255, 159, .10), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 40%, #1a1b1e 0%, var(--bg) 70%);
}
.hero__ghost {
  position: absolute; left: 50%; top: 46%;
  width: min(140vh, 1500px); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: .06; pointer-events: none;
  animation: ghostSpin 60s linear infinite;
}
.hero__ghost img { width: 100%; height: 100%; }
@keyframes ghostSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero__inner { position: relative; text-align: center; max-width: 920px; }

.hero__coin {
  width: clamp(150px, 22vw, 240px); aspect-ratio: 1;
  margin: 0 auto 22px; cursor: pointer;
  filter: drop-shadow(0 0 38px rgba(175, 255, 159, .35));
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.hero__coin:hover { transform: scale(1.06) rotate(-4deg); }
.hero__coin img { width: 100%; height: 100%; }

.eyebrow {
  color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero__title {
  font-weight: 900;
  font-size: clamp(54px, 10.5vw, 140px);
  line-height: .92; letter-spacing: -.035em;
  transform: rotate(var(--ramp));
  margin: 6px 0 34px;
}
.hero__title .line { display: block; }
.hero__title .line--accent {
  color: var(--bg);
  background: var(--accent);
  display: inline-block;
  padding: .02em .22em .08em;
  margin-top: .08em;
  border-radius: 10px;
}
.hero__sub {
  max-width: 620px; margin: 0 auto 34px;
  color: var(--muted); font-size: clamp(16px, 1.6vw, 19px);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn--primary {
  background: var(--accent); color: #0b0b0c;
  box-shadow: 0 10px 40px -10px rgba(175, 255, 159, .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(175, 255, 159, .8); }
.btn--ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .25); transform: translateY(-2px); }

.countdown {
  display: flex; justify-content: center; gap: clamp(18px, 5vw, 64px);
  margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line);
}
.countdown__item { display: flex; flex-direction: column; align-items: center; }
.countdown__item span { font-weight: 900; font-size: clamp(26px, 3.4vw, 40px); }
.countdown__item small { color: var(--muted); font-size: 13px; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, .25);
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--accent);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 3; width: 100%;
  background: var(--accent); color: #0b0b0c;
  transform: rotate(var(--ramp)) scale(1.06);
  margin: -20px 0 40px;
  overflow: hidden; padding: 16px 0;
}
.marquee__track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  animation: marquee 26s linear infinite;
  font-weight: 900; font-size: clamp(22px, 3vw, 34px); text-transform: uppercase; letter-spacing: -.01em;
}
.marquee__track i {
  width: 22px; height: 22px; border-radius: 50%;
  background: #0b0b0c; display: inline-block;
  box-shadow: inset 0 0 0 6px var(--accent), inset 0 0 0 11px #0b0b0c;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; z-index: 2; }
.games, .studio { padding: 110px clamp(20px, 5vw, 56px); max-width: 1320px; margin: 0 auto; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2, .studio h2 {
  font-weight: 900; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(36px, 5.2vw, 64px);
}
.section-head__sub { color: var(--muted); margin-top: 16px; font-size: 17px; }

/* ---------- game cards ---------- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(180deg, #17181b, #111214);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
  will-change: transform;
}
.card:hover {
  border-color: rgba(175, 255, 159, .45);
  box-shadow: 0 30px 70px -30px rgba(175, 255, 159, .35);
}
.card__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(175, 255, 159, .16), transparent 60%),
    #0e0f11;
}
/* three blurred reels */
.reels {
  position: absolute; inset: 14% 12%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.reel {
  position: relative; overflow: hidden; border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 12px 18px -8px #000, inset 0 -12px 18px -8px #000;
}
.reel__strip {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; flex-direction: column; align-items: center;
  filter: blur(3px);
  animation: reelSpin var(--speed, 1.2s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.card:hover .reel__strip { animation-duration: calc(var(--speed, 1.2s) * .45); filter: blur(5px); }
.reel__sym {
  width: 70%; aspect-ratio: 1; margin: 10px 0;
  border-radius: 14px; opacity: .55;
}
.sym-coin { background: url("assets/coin.svg") center / contain no-repeat; border-radius: 50%; }
.sym-bar  { background: linear-gradient(var(--accent), var(--accent)) center / 100% 26% no-repeat; transform: rotate(var(--ramp)); }
.sym-ring { border: 7px solid rgba(255, 255, 255, .7); border-radius: 50%; width: 52%; }
.sym-tile { background: rgba(255, 255, 255, .55); width: 46%; }
@keyframes reelSpin { to { transform: translateY(-50%); } }

/* a "payline" across the reels */
.card__screen::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .35;
}

/* frosted lock over the screen */
.lock {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: 10px;
  background: linear-gradient(180deg, rgba(14, 15, 17, .2), rgba(14, 15, 17, .55));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.lock__icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11, 11, 12, .75); border: 1px solid rgba(175, 255, 159, .35);
}
.lock__icon svg { width: 20px; height: 20px; }
.lock__label {
  font-weight: 900; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}

.card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 20px;
}
.card__id { font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.card__id small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: 0; }
.status {
  font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: var(--muted); white-space: nowrap;
}
.status--hot { background: var(--accent-dim); color: var(--accent); }
.progress { height: 4px; margin: 0 20px 20px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.progress span {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #e9ffe4);
  transition: width 1.6s cubic-bezier(.2, .8, .2, 1);
}

/* ---------- studio ---------- */
.studio__card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 30px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(175, 255, 159, .12), transparent 55%),
    var(--card);
  border: 1px solid var(--line);
}
.studio__copy p:not(.eyebrow) { color: var(--muted); margin-top: 20px; font-size: 17px; }
.studio__list { list-style: none; display: grid; gap: 14px; }
.studio__list li {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  font-weight: 500;
}
.studio__list span { color: var(--accent); font-weight: 900; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 36px clamp(20px, 5vw, 56px) 44px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.footer img { width: 104px; height: auto; }
.footer__rg strong { color: var(--accent); margin-right: 4px; }
.footer__copy { margin-left: auto; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__title.reveal { transform: rotate(var(--ramp)) translateY(26px); }
.hero__title.reveal.is-in { transform: rotate(var(--ramp)); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .studio__card { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .pill { margin-left: auto; }
}
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .countdown { gap: 14px; }
  .countdown__item small { font-size: 11px; text-align: center; }
  .footer__copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
