/* =================================================================
   EVIL EYE STUDIO — Design System
   Two divisions, one eye: iGaming Slots + Design & Development Studio
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* base / surfaces (subtle purple-tinted near-black, from the logo) */
  --bg: #08060e;
  --bg-2: #0f0a18;
  --surface: #16111f;
  --surface-2: #1f1733;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(177, 92, 255, 0.20);

  /* text */
  --text: #f5f2fb;
  --muted: #a79ec0;
  --faint: #6f6685;

  /* brand accents (slots division — Evil Eye logo: violet primary, crimson eye as accent) */
  --accent: #7c3aed;       /* royal violet (primary) */
  --accent-2: #b15cff;     /* bright orchid (secondary) */
  --accent-3: #e11d3a;     /* crimson red (accent pop) */
  --glow: rgba(124, 58, 237, 0.5);

  /* type */
  --font-display: 'Anton', 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* studio division re-theme */
body[data-division='studio'] {
  --accent: #8a5bff;       /* violet */
  --accent-2: #2bf0c8;     /* mint */
  --accent-3: #ffd166;     /* warm gold */
  --glow: rgba(138, 91, 255, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.display { font-family: var(--font-display); font-weight: 400; line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent-2); }
.text-grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-3) 60%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section { padding: clamp(70px, 11vw, 150px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.muted { color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  will-change: transform;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 40px -12px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -10px var(--glow); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 7, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { height: var(--header-h); display: flex; align-items: center; gap: 22px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.04em; }
.brand .eye {
  width: 44px; height: 44px; flex: none;
  background: url('../images/evil-eye-logo.png') center / contain no-repeat;
  filter: drop-shadow(0 0 9px var(--glow));
  transition: transform .4s var(--ease);
}
.brand:hover .eye { transform: scale(1.08) rotate(-4deg); }
/* image-only nav logo (no wordmark) — a touch larger */
.brand-logo .eye { width: 52px; height: 52px; }
.brand b { color: var(--text); }
.brand span { color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* division switcher */
.divisions {
  display: flex; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
}
.divisions a {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 8px 16px; border-radius: 100px; color: var(--muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.divisions a .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: middle; }
.divisions a.active { color: #fff; background: var(--accent); }
.divisions a:not(.active):hover { color: var(--text); }

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .25s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .mobile-divisions { display: none; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* studio sub-nav */
.subnav {
  position: fixed; top: var(--header-h); inset-inline: 0; z-index: 99;
  background: rgba(13, 13, 22, 0.8); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.subnav .wrap { display: flex; align-items: center; gap: 28px; height: 52px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav .sub-label { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.06em; color: var(--accent); white-space: nowrap; }
.subnav a { font-size: 0.85rem; color: var(--muted); white-space: nowrap; transition: color .2s; }
.subnav a:hover { color: var(--text); }
.subnav .sub-cta { margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
/* animated GIF background (falls back to dark base until images/hero-bg.gif exists) */
.hero-bg .hero-gif {
  position: absolute; inset: 0; z-index: -1;
  background: var(--bg) url('../images/hero-bg.gif') center / cover no-repeat;
}
.hero-bg .hero-gif::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,6,14,0.94) 0%, rgba(8,6,14,0.72) 42%, rgba(8,6,14,0.28) 100%),
    linear-gradient(0deg, rgba(8,6,14,0.65), transparent 42%);
}
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.hero-bg .orb.a { width: 520px; height: 520px; background: var(--accent); top: -120px; right: -80px; }
.hero-bg .orb.b { width: 460px; height: 460px; background: var(--accent-2); bottom: -160px; left: -120px; opacity: 0.35; }
.hero-bg .grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.5;
}

.hero-bg .emblem {
  position: absolute; top: 50%; right: -8%; transform: translateY(-50%);
  width: min(78vh, 820px); aspect-ratio: 1;
  background: url('../images/evil-eye-mark.svg') center / contain no-repeat;
  opacity: 0.07; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.7rem); margin: 0 0 24px; }
.hero h1 .line { display: block; overflow: hidden; padding-block: 0.06em; }
.hero h1 .line > span { display: block; animation: rise .9s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats-bottom {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 5; width: 100%; max-width: var(--maxw); padding-inline: var(--gutter);
  justify-content: center; gap: 72px; text-align: center;
}
.hero-stats-bottom .stat { text-align: center; }
@media (max-width: 560px) {
  .hero-stats-bottom { gap: 26px; bottom: 22px; }
  .hero-stats-bottom .stat .num { font-size: 2rem; }
}
.hero-stats .stat .num { font-family: var(--font-display); font-size: 2.6rem; color: var(--text); line-height: 1; }
.hero-stats .stat .num span { color: var(--accent); }
.hero-stats .stat .lbl { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }

/* floating card scenes — reusable 3D-tilt clusters */
.hero-visual, .float-scene { position: relative; }
.hero-visual { position: absolute; top: 50%; right: 3%; transform: translateY(-50%); width: min(43vw, 600px); height: 452px; z-index: 1; }
.reel {
  position: absolute; width: 188px; height: 208px;
  animation: floaty 6s ease-in-out infinite;
}
.reel .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.8rem; }
.reel .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.55)); }

/* floating card scene for interior page heroes */
.page-hero .float-scene {
  position: absolute; right: 0; top: 56%;
  transform: translateY(-50%) scale(0.72); transform-origin: center right;
  width: 600px; height: 560px; z-index: 1;
}
.page-hero .wrap { position: relative; z-index: 2; }

/* auto-scrolling reel wall of square art tiles (shared: studio + slots hero) */
.hero-reels {
  z-index: 1; display: flex; gap: 18px; justify-content: flex-end; align-items: flex-start;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.page-hero .hero-reels {
  position: absolute; right: clamp(0px, 2vw, 40px); top: 50%; transform: translateY(-50%);
  width: min(32vw, 400px); height: 660px;
}
.hero .hero-reels {
  position: absolute; right: clamp(0px, 2vw, 44px); top: 50%; transform: translateY(-52%);
  width: min(34vw, 430px); height: 500px;
}
.reel-col { flex: 1; display: flex; flex-direction: column; will-change: transform; }
.reel-col.up { animation: reel-up 34s linear infinite; }
.reel-col.down { animation: reel-down 34s linear infinite; }
.hero-reels:hover .reel-col { animation-play-state: paused; }
@keyframes reel-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes reel-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.reel-tile {
  flex: none; width: 100%; aspect-ratio: 1 / 1; margin-bottom: 18px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7);
}
.reel-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* single floating art card (used in content sections) */
.feature-art {
  position: relative; width: 400px; height: 430px; max-width: 100%;
  animation: floaty 6s ease-in-out infinite;
}
.feature-art::before { content: ''; position: absolute; inset: -12%; z-index: -1; background: radial-gradient(circle, var(--glow), transparent 66%); filter: blur(22px); opacity: .7; }
.feature-art .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6rem; }
.feature-art .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.5)); }
/* balanced 3-over-2 cluster — symmetric, centred, clear of headline & bottom stats */
.reel.r1 { top: 3%; left: 1%; z-index: 1; animation-delay: 0s; }
.reel.r3 { top: 0; left: 35%; z-index: 2; animation-delay: 1.6s; }
.reel.r5 { top: 3%; right: 1%; z-index: 1; animation-delay: 1.2s; }
.reel.r2 { top: 49%; left: 14%; z-index: 3; animation-name: floaty2; animation-delay: .8s; }
.reel.r2::before { content: ''; position: absolute; inset: -18%; z-index: -1; background: radial-gradient(circle, var(--glow), transparent 66%); filter: blur(20px); }
.reel.r4 { top: 49%; right: 14%; z-index: 1; animation-delay: 2.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-22px) rotate(3deg); } }
@keyframes floaty2 { 0%,100% { transform: scale(1.15) translateY(0); } 50% { transform: scale(1.15) translateY(-26px); } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint .bar { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee / ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; overflow: hidden; }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.04em; color: var(--faint); display: inline-flex; align-items: center; gap: 56px; }
.ticker-track span::after { content: '✦'; color: var(--accent); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Game grid ---------- */
.games-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 48px; }
.game-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.game-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 28px 60px -28px var(--glow); }
.game-thumb { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4.5rem; background: linear-gradient(160deg, var(--surface-2), var(--bg)); transition: transform .5s var(--ease); }
.game-card:hover .game-thumb { transform: scale(1.08); }
.game-card .tag { position: absolute; top: 12px; left: 12px; z-index: 3; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 5px 10px; border-radius: 100px; background: var(--accent); color: #fff; }
.game-card .tag.gold { background: var(--accent-3); color: #fff; }
.game-overlay {
  position: absolute; inset: 0; z-index: 2; padding: 18px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(7,7,12,0.96) 8%, rgba(7,7,12,0.4) 50%, transparent);
}
.game-overlay h3 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.02em; }
.game-meta { display: flex; gap: 14px; font-size: 0.76rem; color: var(--muted); margin: 8px 0 0; }
.game-meta b { color: var(--accent-2); font-weight: 600; }
.game-play {
  margin-top: 14px; opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s; display: flex; gap: 8px;
}
.game-card:hover .game-play { opacity: 1; transform: translateY(0); }
.game-play .btn { padding: 9px 16px; font-size: 0.8rem; flex: 1; justify-content: center; }

/* cover-art cards (full-bleed artwork with baked-in title) */
.game-card.has-cover .game-cover { position: absolute; inset: 0; background: linear-gradient(160deg, var(--surface-2), var(--bg)); }
.game-card.has-cover .game-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.game-card.has-cover:hover .game-cover img { transform: scale(1.06); }
.cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 18px; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.game-card.has-cover .game-overlay { background: transparent; transition: background .35s; }
.game-card.has-cover:hover .game-overlay { background: linear-gradient(to top, rgba(7,7,12,0.9), transparent 55%); }

/* dual play buttons — Stake.com / Stake.us */
.game-play { gap: 8px; }
.btn-stake-us { border: 1px solid var(--accent-2); color: var(--text); background: rgba(177, 92, 255, 0.12); transition: background .2s, color .2s; }
.btn-stake-us:hover { background: var(--accent-2); color: #fff; }

/* Coming Soon state */
.tag.soon { background: #f2b53c; color: #1a1206; }
.btn-soon { background: rgba(255, 255, 255, 0.08); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.game-card.is-soon .game-cover img { filter: drop-shadow(0 16px 22px rgba(0,0,0,0.5)) grayscale(0.15) brightness(0.92); }
/* touch devices have no hover — keep the play buttons visible */
@media (hover: none) {
  .game-card .game-play { opacity: 1; transform: none; }
  .game-card.has-cover .game-overlay { background: linear-gradient(to top, rgba(7,7,12,0.9), transparent 55%); }
}

/* ---------- Split / divisions feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(28px, 4vw, 54px);
  padding-top: clamp(72px, 8vw, 104px);
  min-height: 360px; display: flex; flex-direction: column; justify-content: flex-start;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s;
}
.split-card .link { margin-top: auto; }
.split-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.split-card .badge { position: absolute; top: 28px; left: clamp(28px,4vw,54px); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); }
.split-card .glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; filter: blur(80px); top: -60px; right: -60px; opacity: 0.4; }
.split-card.slots .glow { background: #7c3aed; }
.split-card.studio .glow { background: #8a5bff; }
.split-card h3 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 12px; position: relative; }
.split-card p { color: var(--muted); margin-bottom: 22px; position: relative; max-width: 42ch; }
.split-card .link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); position: relative; }
.split-card .link .arrow { transition: transform .25s var(--ease); }
.split-card:hover .link .arrow { transform: translateX(5px); }

/* ---------- Packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.pkg-card {
  display: flex; flex-direction: column; padding: 30px 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.pkg-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 28px 60px -30px var(--glow); }
.pkg-card.pkg-custom { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.pkg-card h3 { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.05; letter-spacing: 0.02em; }
.pkg-sub { color: var(--muted); font-size: 0.88rem; margin: 8px 0 20px; }
.pkg-list { display: grid; align-content: start; gap: 11px; margin: 0 0 26px; flex: 1; }
.pkg-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.pkg-list li::before { content: '✦'; position: absolute; left: 0; top: 0; color: var(--accent-2); }
.pkg-quote { width: 100%; justify-content: center; margin-top: auto; }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pkg-grid { grid-template-columns: 1fr; } }

/* ---------- Latest Games (featured banner + tile row) ---------- */
.latest { position: relative; overflow: hidden; }
/* themed backdrop */
.latest::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(8,6,14,0.74) 20%, rgba(8,6,14,0.72) 80%, var(--bg) 100%),
    url('../images/greekbackground.png') center / cover no-repeat;
}
.latest .wrap { position: relative; z-index: 1; }

/* Divisions section — dungeon backdrop */
#divisions { position: relative; overflow: hidden; }
#divisions::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(8,6,14,0.78) 22%, rgba(8,6,14,0.78) 78%, var(--bg) 100%),
    url('../images/games/dungeonbg1.png') center / cover no-repeat;
}
#divisions .wrap { position: relative; z-index: 1; }

.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.latest .rating { color: var(--accent-3); letter-spacing: 2px; font-size: 0.95rem; white-space: nowrap; }

/* Featured banner */
.feature-banner {
  position: relative; margin-top: 44px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  min-height: 440px; display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 24px; padding: clamp(30px, 4vw, 56px) clamp(28px, 4vw, 60px) 78px;
  transition: transform .4s var(--ease), border-color .4s;
}
.feature-banner:hover { border-color: var(--line-strong); }
/* blurred cover art as the backdrop (set to the featured game's cover via JS) */
.feature-banner .fb-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: center / cover no-repeat;
  filter: blur(10px) saturate(1.2); transform: scale(1.1); opacity: 0.7;
}
.feature-banner::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(8,6,14,0.92) 0%, rgba(8,6,14,0.60) 48%, rgba(8,6,14,0.22) 100%);
}
.fb-copy { position: relative; z-index: 2; max-width: 540px; }
.fb-copy .badge { display: inline-block; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.fb-copy h3 { font-family: var(--font-display); font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 0.98; margin-bottom: 16px; }
.fb-copy p { color: var(--muted); margin-bottom: 28px; max-width: 46ch; }
.fb-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.fb-art { position: relative; z-index: 2; justify-self: center; width: min(30vw, 300px); aspect-ratio: 3 / 4; }
.fb-art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); filter: drop-shadow(0 26px 30px rgba(0,0,0,0.55)); animation: floaty 6s ease-in-out infinite; }
.fb-art .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 7rem; }
.fb-footer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px clamp(28px, 4vw, 60px); background: linear-gradient(to top, rgba(0,0,0,0.55), transparent); }
.fb-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.15rem; color: var(--text); }

/* Tile row */
.latest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 22px; }
.latest-tile {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 50% 0%, var(--surface-2), var(--bg) 78%);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.latest-tile:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 28px 60px -28px var(--glow); }
.lt-art { position: absolute; inset: 0; display: grid; place-items: center; }
.lt-art img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(0,0,0,0.5)); transition: transform .5s var(--ease); }
.lt-art .ph { font-size: 4.4rem; }
.latest-tile:hover .lt-art img { transform: translateY(-6px) scale(1.05); }
.lt-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 13px 16px; background: linear-gradient(to top, rgba(7,7,12,0.92) 12%, transparent);
}
.lt-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.98rem; color: var(--text); }
.latest .lt-bar .rating { font-size: 0.78rem; letter-spacing: 1px; }

.latest-cta { display: flex; justify-content: center; margin-top: 44px; }

@media (max-width: 860px) {
  .feature-banner { grid-template-columns: 1fr; text-align: left; }
  .fb-art { width: min(60vw, 300px); height: 300px; order: -1; justify-self: start; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .latest-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .lt-name { font-size: 0.85rem; }
}

/* ---------- Stats band ---------- */
.stat-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 56px; }
.stat-band .stat { text-align: center; }
.stat-band .num { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; }
.stat-band .num span { color: var(--accent); }
.stat-band .lbl { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 10px; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; background: var(--surface); }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--font-display); font-size: 2.6rem; color: var(--accent); opacity: 0.5; display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* studio showcase sliders — one large image, auto-advancing */
.asset-slider { position: relative; }
.asset-slider .slides { position: relative; aspect-ratio: 16 / 9; }
.asset-slider .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease-in-out; pointer-events: none; }
.asset-slider .slide.active { opacity: 1; pointer-events: auto; }
.asset-slider .slide img {
  width: 100%; height: 100%; object-fit: contain; display: block; padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 50% 30%, var(--surface-2), var(--bg) 75%);
}
.asset-slider .slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 28px 20px; border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(to top, rgba(7,7,12,0.85), transparent);
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
}
.asset-slider .slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.asset-slider .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); transition: background .25s, transform .25s; }
.asset-slider .dot:hover { transform: scale(1.3); }
.asset-slider .dot.active { background: var(--accent); }

/* even-tile art gallery grid */
.art-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
  grid-auto-flow: dense;
}
.art-tile { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 50% 30%, var(--surface-2), var(--bg) 75%); }
.art-tile img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  transition: transform .4s var(--ease);
}
.art-tile--wide { grid-column: span 2; }
.art-tile--wide img { aspect-ratio: 2 / 1; }
.art-grid--lg { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.art-tile:hover { border-color: var(--accent); }
.art-tile:hover img { transform: scale(1.06); }
@media (max-width: 640px) {
  .art-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .art-grid--lg { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}


/* ---------- Partners ---------- */

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner { position: relative; z-index: 2; border-radius: calc(var(--radius) * 1.6); padding: clamp(40px, 7vw, 90px); text-align: center; border: 1px solid var(--line-strong); background: radial-gradient(ellipse at top, rgba(255,255,255,0.05), transparent), var(--surface); overflow: hidden; }
.cta-inner .glow1 { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--accent); filter: blur(110px); opacity: 0.4; top: -120px; left: -60px; z-index: -1; }
.cta-inner .glow2 { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--accent-2); filter: blur(110px); opacity: 0.3; bottom: -120px; right: -60px; z-index: -1; }
.cta-inner h2 { font-size: clamp(2.4rem, 6vw, 5rem); margin-bottom: 18px; }
.cta-inner p { color: var(--muted); max-width: 540px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-inner .hero-ctas { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 16px; }
.contact-info .row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .row .ic { font-size: 1.3rem; }
.contact-info .row .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.contact-info .row .val { color: var(--text); }
form.contact-form { display: grid; gap: 16px; }
form.contact-form .field { display: grid; gap: 8px; }
form.contact-form label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
form.contact-form input, form.contact-form select, form.contact-form textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--text); font-family: inherit; font-size: 0.95rem; transition: border-color .2s;
}
form.contact-form input:focus, form.contact-form select:focus, form.contact-form textarea:focus { border-color: var(--accent); outline: none; }
form.contact-form textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--accent-2); min-height: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin: 18px 0 22px; max-width: 32ch; }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--muted); padding: 7px 0; font-size: 0.92rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent-2); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .2s, transform .2s; }
.socials a:hover { border-color: var(--accent); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; }
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.age { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 0.78rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: calc(var(--header-h) + 70px) 0 60px; position: relative; overflow: hidden; }
.page-hero.with-subnav { padding-top: calc(var(--header-h) + 52px + 70px); }
.page-hero .orb { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: 0.35; background: var(--accent); top: -150px; right: -80px; }
.page-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); margin: 18px 0; position: relative; max-width: min(62%, 760px); }
.page-hero p { color: var(--muted); max-width: 560px; font-size: 1.1rem; position: relative; }

/* ---------- Filters (games page) ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 36px 0 8px; }
.filters .search { flex: 1 1 240px; position: relative; }
.filters .search input { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 13px 18px 13px 44px; color: var(--text); font-family: inherit; }
.filters .search input:focus { border-color: var(--accent); outline: none; }
.filters .search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.filters select { background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 13px 18px; color: var(--text); font-family: inherit; cursor: pointer; }
.filters .reset { color: var(--accent-2); font-size: 0.85rem; font-weight: 600; }
.results-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.no-results { text-align: center; padding: 80px 20px; color: var(--muted); display: none; }

/* ---------- Scroll reveal (progressive enhancement: only hides when JS active) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay='1'] { transition-delay: .08s; }
[data-reveal-delay='2'] { transition-delay: .16s; }
[data-reveal-delay='3'] { transition-delay: .24s; }
[data-reveal-delay='4'] { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .divisions { display: none; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual, .hero .hero-reels { display: none; }
  .page-hero .float-scene, .page-hero .hero-reels { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(7,7,12,0.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px; transform: translateY(-130%); transition: transform .35s var(--ease);
    margin-left: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links .mobile-divisions { display: flex; gap: 8px; padding: 16px 0 0; border: none; }
  .nav-links .mobile-divisions a { border: 1px solid var(--line); border-radius: 100px; padding: 10px 16px; flex: 1; text-align: center; }
  .nav-toggle { display: flex; }
}
@media (max-width: 860px) {
  .nav-cta .btn-demo { display: none; }
  .split { grid-template-columns: 1fr; }
  .stat-band .wrap { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 26px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .hero h1 .line > span { transform: none; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
