/* QuickDraw — styles.css */

:root {
  --bg: #07080c;
  --bg-2: #0d0f16;
  --ink: #f4f6fa;
  --ink-2: #b4bbc8;
  --muted: #737b8b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --volt: #eaf4ff;
  --volt-2: #8fc7ff;
  --amber: #ffb43a;
  --green: #2ee67a;
  --font-display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1; margin: 0; }
p { margin: 0; }
::selection { background: var(--volt-2); color: #03050a; }
.container { width: min(1120px, calc(100% - 2 * clamp(20px, 5vw, 64px))); margin-inline: auto; }

/* ---------- ambient layers ---------- */
.noise { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .4; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.cursor-glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(520px 520px at var(--mx, -999px) var(--my, -999px), rgba(143, 199, 255, .08), transparent 60%); }
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; animation: intro-out .5s ease 1.3s forwards; }
.intro svg { width: min(36vw, 180px); overflow: visible; }
.intro .bolt { fill: none; stroke: var(--volt); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600;
  filter: drop-shadow(0 0 10px var(--volt)) drop-shadow(0 0 30px var(--volt-2)); animation: bolt-draw .55s cubic-bezier(.7, 0, .2, 1) .1s forwards, bolt-fill .2s ease .7s forwards; }
.intro .flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash .45s ease .72s; }
@keyframes bolt-draw { to { stroke-dashoffset: 0; } }
@keyframes bolt-fill { to { fill: var(--volt); } }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: .95; } 100% { opacity: 0; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
body.no-intro .intro { display: none; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 8, 12, .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand img { height: 30px; width: auto; filter: drop-shadow(0 0 8px rgba(234, 244, 255, .3)); transition: filter .3s, transform .3s; }
.brand:hover img { filter: drop-shadow(0 0 16px rgba(234, 244, 255, .8)); transform: scale(1.05); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; padding: 10px 16px; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 1px; background: var(--volt); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; justify-content: flex-end; gap: 10px; }

.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink); transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: var(--ink); color: #07080c; transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(234, 244, 255, .6); }

/* ---------- buttons ---------- */
.btn { --btn-bg: var(--ink); --btn-ink: #07080c; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-ink); border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .3s; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--volt-2); transform: translateX(-101%) skewX(-14deg); transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(143, 199, 255, .55); }
.btn:hover::before { transform: translateX(0) skewX(-14deg); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); border-color: var(--line-2); }
.btn--ghost::before { background: rgba(255, 255, 255, .08); }
.btn--stake { --btn-bg: var(--green); --btn-ink: #04140a; }
.btn--stake::before { background: #6cffa8; }
.btn--stake:hover { box-shadow: 0 12px 34px -10px rgba(46, 230, 122, .6); }

/* ---------- spark line (signature divider) ---------- */
.spark-line { position: relative; height: 1px; background: var(--line); overflow: visible; }
.spark-line::after { content: ''; position: absolute; top: -1px; left: 0; width: 140px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--volt) 60%, #fff); box-shadow: 0 0 14px var(--volt-2), 0 0 30px rgba(143, 199, 255, .5);
  animation: spark-run 5s cubic-bezier(.6, 0, .2, 1) infinite; opacity: 0; }
@keyframes spark-run { 0% { left: -140px; opacity: 0; } 8% { opacity: 1; } 60% { left: 100%; opacity: 1; } 62%, 100% { left: 100%; opacity: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 30px) 0 70px; overflow: hidden; text-align: center; }
#sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow { position: absolute; left: 50%; top: 45%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(143, 199, 255, .16), rgba(143, 199, 255, .04) 40%, transparent 65%); filter: blur(30px); animation: breathe 7s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: translate(-50%, -50%) scale(1.15); opacity: .7; } }
.hero-bolt { position: absolute; left: 50%; top: -6%; height: 112%; width: auto; transform: translateX(-50%); z-index: 0; pointer-events: none; overflow: visible; }
.hero-bolt path { fill: none; stroke: var(--volt-2); stroke-width: 1.2; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; opacity: 0;
  filter: drop-shadow(0 0 6px rgba(143, 199, 255, .9)) drop-shadow(0 0 18px rgba(143, 199, 255, .5)); animation: strike 9s ease-out infinite; }
.hero-bolt path.b2 { animation-delay: 4.5s; stroke: var(--volt); }
@keyframes strike { 0% { stroke-dashoffset: 900; opacity: 0; } 4% { opacity: 1; } 12% { stroke-dashoffset: 0; opacity: 1; } 16% { opacity: .25; } 20% { opacity: .9; } 34% { opacity: 0; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
.hero .container { position: relative; z-index: 2; display: grid; justify-items: center; gap: 26px; }
.wordmark { width: min(100%, 700px); height: auto; filter: drop-shadow(0 0 12px rgba(234, 244, 255, .45)) drop-shadow(0 0 40px rgba(143, 199, 255, .35));
  animation: wm-in 1.1s var(--ease) .2s both, wm-glow 4s ease-in-out 1.4s infinite alternate; }
@keyframes wm-in { from { clip-path: inset(0 100% 0 0); transform: translateX(-30px) skewX(-10deg); opacity: 0; } to { clip-path: inset(0 0 0 0); transform: none; opacity: 1; } }
@keyframes wm-glow { to { filter: drop-shadow(0 0 18px rgba(234, 244, 255, .8)) drop-shadow(0 0 60px rgba(143, 199, 255, .55)); } }
.tagline { font-family: var(--font-display); font-size: clamp(13px, 1.5vw, 16px); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); animation: fade-up .9s var(--ease) .5s both; display: flex; align-items: center; gap: 18px; }
.tagline::before, .tagline::after { content: ''; width: 40px; height: 1px; background: var(--line-2); }
.tagline b { color: var(--green); font-weight: 700; }
.hero .actions { animation: fade-up .9s var(--ease) .65s both; margin-top: 6px; }
@keyframes fade-up { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; width: 1px; height: 56px; background: linear-gradient(var(--volt), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateX(-50%) scaleY(0); transform-origin: top; } 50% { transform: translateX(-50%) scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: translateX(-50%) scaleY(0); transform-origin: bottom; } }

/* ---------- sections ---------- */
.section { position: relative; z-index: 1; padding: clamp(70px, 10vw, 130px) 0; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(13px, 1.4vw, 15px); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.section-head i { flex: 1; height: 1px; background: var(--line); }
.section-head span { font-family: var(--font-display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- game entry (editorial) ---------- */
.game { position: relative; display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.game + .game { margin-top: clamp(70px, 10vw, 120px); padding-top: clamp(70px, 10vw, 120px); border-top: 1px solid var(--line); }
.game .num { position: absolute; right: -10px; top: -40px; font-family: var(--font-display); font-size: clamp(120px, 18vw, 240px); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07); pointer-events: none; user-select: none; }
.tile-wrap { position: relative; perspective: 1200px; }
.tile-wrap::before { content: ''; position: absolute; inset: 10% -10% -10%; background: radial-gradient(closest-side, rgba(255, 180, 58, .28), transparent); filter: blur(30px); z-index: 0; }
.tile { position: relative; z-index: 1; border-radius: 20px; overflow: hidden; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s ease-out; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08) inset; animation: float 6s ease-in-out infinite; }
.tile img { width: 100%; aspect-ratio: 408 / 546; object-fit: cover; }
.tile .shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .3) 48%, rgba(255, 255, 255, .08) 52%, transparent 60%); transform: translateX(-120%); animation: shine 6s ease-in-out 2s infinite; }
@keyframes shine { 0%, 20% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.game-info { position: relative; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 180, 58, .6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 100% { box-shadow: 0 0 0 10px rgba(255, 180, 58, 0); } }
.game-info h3 { margin-top: 14px; font-size: clamp(44px, 7vw, 92px); text-transform: uppercase; font-style: italic; letter-spacing: -.03em; line-height: .9; }
.game-info h3 span { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.game-info p { margin-top: 22px; color: var(--ink-2); max-width: 50ch; font-size: 17px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--font-display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); transition: border-color .3s, color .3s; }
.facts li:hover { border-color: var(--volt-2); color: var(--volt); }
.game-info .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---------- video ---------- */
.video-wrap { position: relative; margin-top: clamp(40px, 6vw, 70px); border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 60px 120px -60px rgba(0, 0, 0, 1); }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-cover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 8, 12, .3); transition: opacity .5s, visibility .5s, background .4s; }
.video-cover:hover { background: rgba(7, 8, 12, .15); }
.video-cover.hidden { opacity: 0; visibility: hidden; }
.play { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #07080c; transition: transform .35s var(--ease), box-shadow .35s; }
.play::before, .play::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(234, 244, 255, .6); animation: ripple 2.4s ease-out infinite; }
.play::after { animation-delay: 1.2s; }
@keyframes ripple { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-cover:hover .play { transform: scale(1.08); box-shadow: 0 0 60px rgba(143, 199, 255, .6); }
.video-cover .label { position: absolute; left: 24px; bottom: 20px; padding: 8px 12px; border-radius: 8px; background: rgba(7, 8, 12, .6); backdrop-filter: blur(8px); font-family: var(--font-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact { position: relative; z-index: 1; min-height: 80svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 50px) 0 80px; overflow: hidden; }
.contact .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact h1 { font-size: clamp(44px, 7vw, 92px); text-transform: uppercase; font-style: italic; letter-spacing: -.03em; line-height: .9; }
.contact h1 span { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.contact-lede { margin-top: 22px; color: var(--ink-2); font-size: 17px; max-width: 40ch; }
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.links a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 20px; padding: 26px 4px; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.links a:hover { padding-left: 14px; }
.links .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink); transition: background .3s, color .3s; }
.links a:hover .ic { background: var(--ink); color: #07080c; }
.links .ic svg { width: 17px; height: 17px; }
.links b { display: block; font-family: var(--font-display); text-transform: uppercase; font-style: italic; font-size: 20px; }
.links span { color: var(--muted); font-size: 14px; }
.links .arrow { color: var(--muted); font-size: 20px; transition: transform .3s var(--ease), color .3s; }
.links a:hover .arrow { transform: translateX(6px); color: var(--volt); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; padding: 30px 0 34px; }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.footer .left { display: flex; align-items: center; gap: 18px; }
.footer .wm { width: 140px; opacity: .9; }
.footer .right { display: flex; align-items: center; gap: 18px; }
.footer .age { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 10px; margin-right: 8px; vertical-align: middle; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav .container { grid-template-columns: auto 1fr auto; gap: 10px; }
  .nav-links { justify-content: center; }
  .nav-links a { padding: 10px 10px; font-size: 12px; }
  .game { grid-template-columns: 1fr; text-align: center; }
  .tile-wrap { width: min(62vw, 260px); margin: 0 auto; }
  .game .num { right: auto; left: 50%; transform: translateX(-50%); top: -30px; }
  .game-info p { margin-inline: auto; }
  .facts, .game-info .actions { justify-content: center; }
  .contact .container { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { min-height: 90svh; }
  .tagline::before, .tagline::after { display: none; }
  .tagline { letter-spacing: .2em; font-size: 12px; }
  .game-info .actions .btn { width: 100%; }
  .play { width: 72px; height: 72px; }
  .footer .container { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .intro, .noise, .hero-bolt { display: none; }
  .reveal { opacity: 1; transform: none; }
}
