/* ==========================================================================
   Byte Tale Coders — site styles
   Palette and shapes are pulled straight from Brawl Dinos: purple frames,
   blue/red VS splits, chunky outlined type, white sticker borders.
   ========================================================================== */

:root {
  --bg: #1b0a44;
  --bg-2: #24105a;
  --panel: #2e1470;
  --panel-2: #1f0c52;
  --ink: #12062e;
  --line: rgba(255, 255, 255, .12);
  --text: #ffffff;
  --muted: #cfc3f5;

  --purple: #8b3dff;
  --blue: #1e8fff;
  --blue-2: #0c5bd6;
  --red: #ff3355;
  --red-2: #c3123a;
  --orange: #ff8a1c;
  --yellow: #ffd23f;
  --yellow-2: #f2b200;
  --green: #3fe06b;
  --green-2: #1fa848;

  --radius: 26px;
  --shadow: 0 10px 0 var(--ink);
  --font-display: 'Lilita One', 'Arial Black', Impact, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M28 14l4.1 8.4 9.2 1.3-6.7 6.5 1.6 9.2L28 35l-8.2 4.4 1.6-9.2-6.7-6.5 9.2-1.3z'/%3E%3Cg transform='rotate(-30 110 40)'%3E%3Crect x='96' y='37' width='28' height='6' rx='3'/%3E%3Ccircle cx='96' cy='36' r='4'/%3E%3Ccircle cx='96' cy='44' r='4'/%3E%3Ccircle cx='124' cy='36' r='4'/%3E%3Ccircle cx='124' cy='44' r='4'/%3E%3C/g%3E%3Cpath d='M54 92l-14 20h10l-6 18 16-22h-10l6-16z'/%3E%3Cpath d='M128 108c2 9 5 12 14 14-9 2-12 5-14 14-2-9-5-12-14-14 9-2 12-5 14-14z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Firefox doesn't clip body overflow once it propagates to the viewport, so clip at the root too */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    var(--pattern),
    radial-gradient(700px 480px at 85% -5%, rgba(255, 51, 85, .22), transparent 60%),
    radial-gradient(700px 520px at 5% 10%, rgba(30, 143, 255, .2), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(139, 61, 255, .35), transparent 60%),
    linear-gradient(180deg, #1d0a4a, #170838 70%, #12062e);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 800; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* Outlined game type */
.display, .hero-title, .sec-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .5px;
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--yellow);
  --fg-btn: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px 12px;
  font-family: var(--font-display); font-size: 19px; letter-spacing: .6px; line-height: 1.1;
  color: var(--fg-btn); background: var(--bg-btn);
  border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 0 5px 0 var(--ink), inset 0 -4px 0 rgba(0, 0, 0, .14), inset 0 3px 0 rgba(255, 255, 255, .35);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink), inset 0 -4px 0 rgba(0, 0, 0, .14), inset 0 3px 0 rgba(255, 255, 255, .35); filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink), inset 0 -2px 0 rgba(0, 0, 0, .14); }
.btn-yellow { --bg-btn: linear-gradient(180deg, #ffe46b, var(--yellow-2)); }
.btn-green { --bg-btn: linear-gradient(180deg, #6ef08f, var(--green-2)); --fg-btn: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.btn-ghost {
  --bg-btn: rgba(255, 255, 255, .08); --fg-btn: #fff;
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .35);
}
.btn-ghost:hover { box-shadow: 0 7px 0 rgba(0, 0, 0, .35); background: rgba(255, 255, 255, .14); }
.btn-sm { font-size: 16px; padding: 9px 16px 8px; border-radius: 13px; }
.btn svg { width: 1em; height: 1em; flex: none; }

.play-badge { display: inline-block; border-radius: 12px; transition: transform .15s ease; }
.play-badge:hover { transform: translateY(-2px) scale(1.02); }
.play-badge img { height: 58px; width: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(24, 9, 60, .84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand {
  display: flex; align-items: center; gap: 12px; flex: none;
  font-family: var(--font-display); font-size: 22px; letter-spacing: .5px; text-decoration: none;
}
.brand img {
  width: 42px; height: 42px; border-radius: 12px;
  border: 3px solid #fff; box-shadow: 0 3px 0 var(--ink); transform: rotate(-6deg);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.brand:hover img { transform: rotate(6deg) scale(1.08); }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 800; font-size: 15px; text-decoration: none; transition: color .15s; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links .only-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; width: 46px; height: 46px; place-items: center;
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .2); border-radius: 13px;
  color: #fff; cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 3px; border-radius: 3px; background: currentColor; position: relative; transition: transform .2s, opacity .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.nav-open .menu-btn span { background: transparent; }
.nav-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .menu-btn { display: grid; }
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px clamp(16px, 4vw, 40px) 22px;
    background: #1d0b4b; border-bottom: 4px solid var(--ink);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 2px; font-size: 18px; color: #fff; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .brand { font-size: 19px; }
  .brand img { width: 38px; height: 38px; }
  .nav-actions .btn { display: none; }
  .nav-links .only-mobile { display: inline-flex; margin-top: 16px; }
}

/* ---------- Shared bits ---------- */
.section { padding: clamp(60px, 7.5vw, 96px) 0; position: relative; }
.section-alt {
  background: rgba(10, 3, 30, .35);
  clip-path: polygon(0 clamp(20px, 3vw, 48px), 100% 0, 100% calc(100% - clamp(20px, 3vw, 48px)), 0 100%);
  padding-block: clamp(84px, 9.5vw, 124px);
}
.sec-head { text-align: center; max-width: 780px; margin: 0 auto clamp(36px, 5vw, 56px); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink); background: var(--yellow);
  padding: 6px 15px 5px; border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink); transform: rotate(-2deg);
}
.sec-title { font-size: clamp(38px, 5.4vw, 64px); line-height: 1; margin: 20px 0 16px; }
.sec-lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); margin: 0 auto; max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, .24); border: 2px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: 5px 13px; font-size: 14px; font-weight: 800; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 84px) 0 clamp(150px, 15vw, 190px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .16);
  color: var(--muted); font-size: 14px; font-weight: 800;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(63, 224, 107, .22); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(63, 224, 107, 0); } }
.hero-title { font-size: clamp(50px, 7.4vw, 96px); line-height: .95; margin: 24px 0; -webkit-text-stroke-width: 11px; text-shadow: 0 8px 0 var(--ink); }
.roar { display: inline-block; color: var(--yellow); transform-origin: 40% 60%; animation: roar 3.6s ease-in-out infinite; }
@keyframes roar {
  0%, 80%, 100% { transform: rotate(-4deg) scale(1); }
  84% { transform: rotate(-8deg) scale(1.1); }
  88% { transform: rotate(0deg) scale(1.06); }
  92% { transform: rotate(-6deg) scale(1.08); }
}
.hero-lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.hero-lead strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 44px; max-width: 600px; }
.stat {
  text-align: center; padding: 14px 8px 12px;
  background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 255, 255, .14); border-radius: 18px;
}
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; }
.stat span { display: block; margin-top: 2px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }

.hero-art { position: relative; width: 100%; max-width: 480px; aspect-ratio: 4 / 5; margin-inline: auto; }
.hero-split {
  position: absolute; inset: 9% 2% 5% 6%;
  border: 5px solid var(--ink); border-radius: 36px;
  background: linear-gradient(118deg, var(--blue) 0 46%, var(--ink) 46% 54%, var(--red) 54% 100%);
  box-shadow: 0 12px 0 var(--ink);
  transform: rotate(-6deg); overflow: hidden;
}
.hero-split::after { content: ""; position: absolute; inset: 0; background: var(--pattern); background-size: 120px; opacity: 1.6; }
.hero-phone {
  position: absolute; left: 50%; top: 50%; width: 56%;
  border: 6px solid #fff; border-radius: 28px;
  box-shadow: 0 0 0 4px var(--ink), 0 16px 0 4px var(--ink), 0 40px 70px rgba(0, 0, 0, .5);
  transform: translate(-50%, -50%) rotate(5deg);
}
.hero-icon {
  position: absolute; top: 1%; left: -3%; width: 31%;
  border: 5px solid #fff; border-radius: 24%;
  box-shadow: 0 0 0 4px var(--ink), 0 9px 0 4px var(--ink);
  animation: bob 5s ease-in-out infinite;
}
.burst-wrap { position: absolute; right: -4%; bottom: 7%; width: 34%; filter: drop-shadow(0 6px 0 var(--ink)); animation: bob 5s ease-in-out -2.5s infinite; }
.burst {
  aspect-ratio: 1; display: grid; place-items: center; text-align: center;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-display); font-size: clamp(17px, 2.1vw, 24px); line-height: 1;
  clip-path: polygon(50% 0%, 58% 9.8%, 69.1% 3.8%, 72.8% 15.9%, 85.4% 14.6%, 84.1% 27.2%, 96.2% 30.9%, 90.2% 42%, 100% 50%, 90.2% 58%, 96.2% 69.1%, 84.1% 72.8%, 85.4% 85.4%, 72.8% 84.1%, 69.1% 96.2%, 58% 90.2%, 50% 100%, 42% 90.2%, 30.9% 96.2%, 27.2% 84.1%, 14.6% 85.4%, 15.9% 72.8%, 3.8% 69.1%, 9.8% 58%, 0% 50%, 9.8% 42%, 3.8% 30.9%, 15.9% 27.2%, 14.6% 14.6%, 27.2% 15.9%, 30.9% 3.8%, 42% 9.8%);
  transform: rotate(10deg);
}
.burst span { display: block; padding: 18%; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -10deg; } 50% { translate: 0 -14px; rotate: -4deg; } }

.ticker {
  position: absolute; left: -3%; right: -3%; bottom: clamp(30px, 4vw, 48px);
  background: var(--yellow); border-block: 5px solid var(--ink);
  transform: rotate(-2.2deg); overflow: hidden;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .28);
}
.ticker-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker-track span {
  display: flex; align-items: center; gap: 26px; padding: 11px 13px 9px;
  font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 26px); letter-spacing: .6px;
  color: var(--ink); white-space: nowrap;
}
.ticker-track span::after { content: "★"; color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-cta { justify-content: center; }
  .hero-art { max-width: 380px; }
  .stats { margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-badge img { height: 52px; }
}

/* ---------- Flagship game card ---------- */
.game-card {
  position: relative; overflow: hidden;
  padding: clamp(20px, 4vw, 44px);
  background: linear-gradient(160deg, #3b1a8c, #230d5c 70%);
  border: 4px solid var(--ink); border-radius: 34px; box-shadow: var(--shadow);
}
.game-card::before { content: ""; position: absolute; inset: 0; background: var(--pattern); pointer-events: none; }
.game-head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 32px); align-items: center; }
.game-icon {
  width: clamp(96px, 11vw, 136px); border-radius: 28%;
  border: 5px solid #fff; box-shadow: 0 0 0 4px var(--ink), 0 8px 0 4px var(--ink);
  transform: rotate(-5deg);
}
.game-title { font-size: clamp(34px, 4.4vw, 54px); line-height: 1; margin: 0; }
.game-sub { margin: 10px 0 0; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); max-width: 560px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 13px; font-weight: 800; letter-spacing: .3px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .18);
}
.tag.live { background: var(--green); color: var(--ink); border-color: var(--ink); }
.game-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.game-intro { position: relative; margin: clamp(24px, 3vw, 32px) 0 0; font-size: clamp(16px, 1.6vw, 19px); color: #ece6ff; max-width: 860px; }
.game-intro strong { color: var(--yellow); font-weight: 800; }

.rail-wrap { position: relative; margin-top: 28px; }
.rail {
  display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 4px;
  padding: 8px 4px 26px; margin: 0 -4px;
  scrollbar-width: thin; scrollbar-color: var(--purple) transparent;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 8px; }
.shot {
  flex: 0 0 min(520px, 82%); scroll-snap-align: start;
  padding: 0; background: #000; cursor: zoom-in;
  border: 4px solid #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 3px var(--ink), 0 8px 0 3px var(--ink);
  transition: transform .2s ease;
}
.shot:hover { transform: translateY(-4px) rotate(-.8deg); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rail-bar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rail-hint { color: var(--muted); font-size: 14px; font-weight: 800; }
.rail-btns { display: flex; gap: 10px; }
.icon-btn {
  width: 50px; height: 50px; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); background: linear-gradient(180deg, #ffe46b, var(--yellow-2));
  border: 3px solid var(--ink); border-radius: 15px; box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .game-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .game-sub { margin-inline: auto; }
  .tags { justify-content: center; }
  .game-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .game-intro { text-align: center; }
}

/* ---------- Modes ---------- */
.modes { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 44px); }
.mode {
  position: relative; overflow: hidden;
  padding: clamp(18px, 2.6vw, 28px);
  border: 4px solid var(--ink); border-radius: 32px; box-shadow: var(--shadow);
}
.mode::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: 1.5; pointer-events: none; }
.mode > * { position: relative; }
.mode.blue { background: linear-gradient(155deg, #3aa8ff, var(--blue-2)); transform: rotate(-.8deg); }
.mode.red { background: linear-gradient(155deg, #ff5a78, var(--red-2)); transform: rotate(.8deg); }
.mode img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 4px solid #fff; border-radius: 20px; box-shadow: 0 0 0 3px var(--ink), 0 7px 0 3px var(--ink); }
.mode-kicker { display: inline-block; margin-top: 22px; font-family: var(--font-display); font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; background: var(--ink); padding: 4px 12px 3px; border-radius: 8px; }
.mode h3 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1; margin: 12px 0 10px; -webkit-text-stroke-width: 7px; text-shadow: 0 5px 0 var(--ink); }
.mode p { margin: 0 0 18px; color: rgba(255, 255, 255, .94); }
.mode .chip { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .3); }
.vs-badge {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: clamp(84px, 9vw, 108px); aspect-ratio: 1; display: grid; place-items: center;
  font-family: var(--font-display); font-size: clamp(34px, 3.8vw, 46px); color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #fff3b0, var(--yellow) 45%, var(--yellow-2));
  border: 5px solid var(--ink); border-radius: 50%; box-shadow: 0 7px 0 var(--ink);
  transform: translate(-50%, -50%) rotate(-10deg);
}
@media (max-width: 860px) {
  .modes { grid-template-columns: 1fr; gap: 64px; }
  .mode.blue, .mode.red { transform: none; }
}

/* ---------- Dinos ---------- */
.dinos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.dino {
  --c: var(--orange);
  background: var(--c); overflow: hidden;
  border: 4px solid #fff; border-radius: 28px;
  box-shadow: 0 0 0 4px var(--ink), 0 10px 0 4px var(--ink);
  transform: rotate(var(--r, 0deg));
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.dino:hover { transform: rotate(0deg) translateY(-8px) scale(1.03); }
.dino img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 4px solid #fff; }
.dino-body { padding: 14px 18px 20px; }
.dino h3 { font-size: clamp(22px, 2.5vw, 32px); line-height: 1; margin: 0; -webkit-text-stroke-width: 6px; text-shadow: 0 4px 0 var(--ink); }
.dino p { margin: 8px 0 0; font-size: 15px; font-weight: 800; line-height: 1.4; color: rgba(255, 255, 255, .95); }
.dino.trex { --c: linear-gradient(170deg, #ff9c33, #e2620a); --r: -2deg; }
.dino.trike { --c: linear-gradient(170deg, #a066ff, #6a2ad6); --r: 1.5deg; }
.dino.steggo { --c: linear-gradient(170deg, #36a2ff, #0b5ed7); --r: -1deg; }
.dino.spino { --c: linear-gradient(170deg, #ff5268, #cc1636); --r: 2deg; }
.dino-meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px;
  margin-top: clamp(36px, 4vw, 48px); text-align: center; color: var(--muted);
}
.dino-meta .chips { justify-content: center; }
.rarity { border-color: var(--ink); color: var(--ink); }
.rarity.common { background: #d8dcea; }
.rarity.rare { background: #59b4ff; }
.rarity.epic { background: #c08bff; }
@media (max-width: 980px) { .dinos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) {
  .dino { border-radius: 22px; }
  .dino-body { padding: 10px 12px 14px; }
  .dino p { font-size: 13.5px; }
}

/* ---------- Progression ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
.panel {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px);
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel-kicker { font-family: var(--font-display); font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--yellow); }
.panel h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.05; margin: 6px 0 10px; }
.panel > p { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.panel .foot { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 14px; font-weight: 700; }

.evolve { background: rgba(0, 0, 0, .25); border: 2px solid var(--line); border-radius: 18px; padding: 16px; }
.evolve-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.meter { height: 22px; margin-top: 8px; border: 3px solid var(--ink); border-radius: 999px; background: rgba(0, 0, 0, .4); overflow: hidden; }
.meter i {
  display: block; height: 100%; width: 12%;
  background: repeating-linear-gradient(-45deg, var(--green) 0 10px, #33c75c 10px 20px);
  border-radius: inherit; transition: width 1.8s cubic-bezier(.4, 0, .2, 1) .3s;
}
.in .meter i, .no-js .meter i { width: 100%; }
.evolve-stamp {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-display); font-size: 22px; letter-spacing: 1px; color: var(--ink);
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 12px; padding: 4px 14px 2px;
  box-shadow: 0 4px 0 var(--ink); transform: rotate(-4deg) scale(0); transition: transform .4s cubic-bezier(.3, 1.8, .5, 1) 2s;
}
.in .evolve-stamp, .no-js .evolve-stamp { transform: rotate(-4deg) scale(1); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 700; }
.ticks li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; color: var(--ink); background: var(--green); border: 2px solid var(--ink); border-radius: 7px;
}

.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pack {
  position: relative; overflow: hidden; color: var(--ink);
  padding: 12px 14px 12px; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink);
}
.pack::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; left: -60%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: rotate(20deg); transition: left .6s ease;
}
.pack:hover::after { left: 130%; }
.pack b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1; }
.pack .name { display: block; font-size: 13px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.pack small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; line-height: 1.3; opacity: .85; }
.pack.bronze { background: linear-gradient(150deg, #f6b07a, #b9652c); }
.pack.silver { background: linear-gradient(150deg, #ffffff, #a9b4c8); }
.pack.gold { background: linear-gradient(150deg, #fff08a, #f2b200); }
.pack.legendary { background: linear-gradient(150deg, #ff8ae6, #8b3dff 55%, #3a17a6); color: #fff; }
.pack.legendary b { text-shadow: 0 3px 0 var(--ink); }

.ranks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 9px; }
.rank {
  display: flex; align-items: center; gap: 14px;
  margin-left: calc(var(--i) * 9%);
  padding: 8px 14px; border-radius: 14px;
  background: rgba(0, 0, 0, .25); border: 2px solid var(--line);
  font-family: var(--font-display); font-size: 19px; letter-spacing: .4px;
}
.gem { width: 24px; height: 24px; flex: none; border: 3px solid var(--ink); border-radius: 6px; background: var(--g); transform: rotate(45deg); box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .45); }
.rank.top { background: linear-gradient(90deg, rgba(138, 180, 255, .3), rgba(0, 0, 0, .25)); border-color: rgba(138, 180, 255, .6); }

@media (max-width: 980px) {
  .prog-grid { grid-template-columns: 1fr 1fr; }
  .prog-grid .panel:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .prog-grid { grid-template-columns: 1fr; }
}

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.tile {
  position: relative; padding: 22px;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink);
}
.tile.span-2 { grid-column: span 2; }
.tile.media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tile.media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 4px solid var(--ink); }
.tile-body { padding: 18px 22px 22px; }
.tile .ic {
  width: 54px; height: 54px; margin-bottom: 14px; display: grid; place-items: center;
  font-size: 27px; background: var(--c, var(--purple));
  border: 3px solid var(--ink); border-radius: 15px; box-shadow: 0 4px 0 var(--ink); transform: rotate(-6deg);
}
.tile h3 { font-family: var(--font-display); font-weight: 400; font-size: 23px; line-height: 1.1; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tile .big-num { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--yellow); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }

.streak { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; text-align: center; line-height: 1.2; color: var(--muted);
}
.day i {
  width: 100%; max-width: 46px; aspect-ratio: 1; display: grid; place-items: center;
  font-style: normal; font-family: var(--font-display); font-size: 17px; color: #fff;
  background: rgba(0, 0, 0, .3); border: 3px solid rgba(255, 255, 255, .18); border-radius: 12px;
}
.day.hit i { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.day.hit { color: #fff; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile.span-2 { grid-column: auto; }
}

/* ---------- Studio ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.roster-head { margin-top: clamp(56px, 7vw, 80px); }
.roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.roster-card {
  display: flex; align-items: center; gap: 16px; padding: 18px;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink);
  text-decoration: none; transition: transform .2s ease;
}
a.roster-card:hover { transform: translateY(-4px) rotate(-1deg); }
.roster-card img, .mystery {
  width: 76px; height: 76px; flex: none; border-radius: 22px;
  border: 4px solid #fff; box-shadow: 0 0 0 3px var(--ink);
}
.roster-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.1; margin: 0 0 6px; }
.roster-card .tag { font-size: 12px; }
.roster-card.soon { background: rgba(255, 255, 255, .04); border: 3px dashed rgba(255, 255, 255, .28); box-shadow: none; }
.mystery {
  display: grid; place-items: center; overflow: hidden; position: relative;
  font-family: var(--font-display); font-size: 40px; color: rgba(255, 255, 255, .9);
  background: linear-gradient(135deg, #4b2a9a, #241060); border-color: rgba(255, 255, 255, .5);
}
.mystery::after {
  content: ""; position: absolute; inset: -50%;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%);
  animation: shimmer 3.2s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
.roster-card p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 980px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(118deg, var(--blue-2), var(--blue) 49%, var(--ink) 49% 52%, var(--red) 52%, var(--red-2));
  border: 5px solid var(--ink); border-radius: 40px; box-shadow: 0 12px 0 var(--ink);
}
.cta::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: 1.6; pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(42px, 6vw, 76px); line-height: .95; margin: 0 0 16px; -webkit-text-stroke-width: 10px; text-shadow: 0 7px 0 var(--ink); }
.cta p { font-size: clamp(17px, 1.8vw, 21px); font-weight: 800; margin: 0 0 28px; max-width: 480px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-art img {
  border: 5px solid #fff; border-radius: 26px;
  box-shadow: 0 0 0 4px var(--ink), 0 12px 0 4px var(--ink);
  transform: rotate(4deg);
}
@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; text-align: center; background: linear-gradient(160deg, var(--blue-2), var(--blue) 45%, var(--ink) 45% 48%, var(--red) 48%, var(--red-2)); }
  .cta p { margin-inline: auto; }
  .cta-actions { justify-content: center; }
  .cta-art { max-width: 460px; margin: 8px auto 0; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.contact-list { display: grid; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink);
  text-decoration: none; transition: transform .2s ease;
}
a.contact-card:hover { transform: translateY(-3px); }
.contact-card .ic {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; font-size: 25px;
  background: var(--c, var(--yellow)); border: 3px solid var(--ink); border-radius: 15px; box-shadow: 0 4px 0 var(--ink);
}
.contact-card .lbl { display: block; font-size: 12.5px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); }
.contact-card .val { display: block; font-family: var(--font-display); font-size: clamp(17px, 1.8vw, 20px); letter-spacing: .3px; line-height: 1.25; word-break: break-word; }

.form-card {
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(165deg, #35178a, var(--panel-2));
  border: 4px solid var(--ink); border-radius: 30px; box-shadow: var(--shadow);
}
.form-card h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); margin: 0 0 4px; line-height: 1.1; }
.form-card > p { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, .3); border: 3px solid rgba(255, 255, 255, .16); border-radius: 14px;
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%23ffd23f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select option { color: #111; }
.field input::placeholder, .field textarea::placeholder { color: rgba(207, 195, 245, .55); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 63, .22); }
.form-card .btn { width: 100%; margin-top: 4px; font-size: 21px; padding-block: 15px 13px; }
.form-note { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.form-note a { color: var(--yellow); }
.hp { position: absolute; left: -9999px; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 72px); padding: 56px 0 28px; background: #12062e; border-top: 4px solid var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-about p { margin: 14px 0 0; color: var(--muted); font-size: 15px; max-width: 320px; }
.foot-col h4 { margin: 4px 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .5px; color: var(--yellow); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  color: rgba(207, 195, 245, .7); font-size: 13px; font-weight: 600;
}
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; width: min(1200px, 94vw); max-width: none; max-height: 94vh; overflow: visible; color: #fff; }
.lightbox::backdrop { background: rgba(10, 3, 28, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; background: #000; border: 4px solid #fff; border-radius: 20px; box-shadow: 0 0 0 4px var(--ink); }
.lb-bar { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }
.lb-count { min-width: 64px; text-align: center; font-family: var(--font-display); font-size: 18px; }

/* ---------- Simple pages (privacy, 404, thanks) ---------- */
.page-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.page-hero .sec-title { margin-bottom: 10px; }
.page-hero .meta { color: var(--muted); font-weight: 800; }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: 40px; }
.toc {
  position: sticky; top: 96px; padding: 20px;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink);
}
.toc h2 { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .5px; margin: 0 0 10px; color: var(--yellow); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.toc a { color: var(--muted); text-decoration: none; font-weight: 700; }
.toc a:hover { color: #fff; }
.prose {
  padding: clamp(22px, 4vw, 44px);
  background: rgba(10, 3, 30, .45); border: 2px solid var(--line); border-radius: 28px;
  color: #e9e3ff; font-weight: 500; font-size: 16.5px; line-height: 1.75;
}
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: .3px; line-height: 1.15; margin: 40px 0 12px; color: #fff; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 900; margin: 22px 0 6px; color: #fff; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--yellow); font-weight: 700; }
.prose strong { color: #fff; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}

.center-page { min-height: calc(100vh - 74px - 200px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.center-page .big-emoji { font-size: clamp(72px, 12vw, 120px); line-height: 1; display: inline-block; animation: bob 4s ease-in-out infinite; }
.center-page .sec-lead { margin-bottom: 30px; }
.center-page .hero-cta { justify-content: center; }

/* ---------- Studio brand mark ---------- */
.brand-mark {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 19px; letter-spacing: .5px; color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink);
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  transform: rotate(-6deg); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.brand:hover .brand-mark { transform: rotate(6deg) scale(1.08); }
.nav-links a[aria-current="page"] { color: #fff; text-decoration: underline 3px var(--yellow); text-underline-offset: 8px; }
@media (max-width: 520px) { .brand-mark { width: 38px; height: 38px; font-size: 17px; } }

/* ---------- Home hero: two games ---------- */
.hero-duo { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1.02; margin-inline: auto; }
.hero-duo .hero-split { inset: 9% 3% 5% 5%; }
.duo-phone {
  position: absolute; top: 50%; width: 46%;
  border: 6px solid #fff; border-radius: 26px;
  box-shadow: 0 0 0 4px var(--ink), 0 14px 0 4px var(--ink), 0 36px 60px rgba(0, 0, 0, .45);
}
.duo-phone.left { left: 6%; transform: translateY(-53%) rotate(-7deg); z-index: 1; }
.duo-phone.right { right: 6%; transform: translateY(-45%) rotate(6deg); z-index: 2; }
.duo-icon {
  position: absolute; z-index: 3; width: 23%;
  border: 5px solid #fff; border-radius: 24%;
  box-shadow: 0 0 0 4px var(--ink), 0 8px 0 4px var(--ink);
  animation: bob 5s ease-in-out infinite;
}
.duo-icon.a { top: 1%; left: -3%; }
.duo-icon.b { bottom: 0; right: -3%; animation-delay: -2.5s; }
.hero-duo .burst-wrap { top: -4%; right: 6%; bottom: auto; width: 29%; z-index: 4; }

/* ---------- Status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .6px; text-transform: uppercase; line-height: 1.2;
  padding: 5px 12px 4px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink);
  color: var(--ink);
}
.pill.live { background: var(--green); }
.pill.soon { background: var(--yellow); }

/* ---------- Game lineup ---------- */
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.game-tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 4px solid var(--ink); border-radius: 30px; box-shadow: var(--shadow);
}
.game-tile .banner { position: relative; aspect-ratio: 2.05 / 1; overflow: hidden; border-bottom: 4px solid var(--ink); background: #000; }
.game-tile .banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-tile:hover .banner img { transform: scale(1.04); }
.game-tile .pill { position: absolute; top: 16px; right: 16px; z-index: 2; }
.tile-head { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 16px; padding: 0 24px; margin-top: -46px; }
.tile-icon {
  width: 96px; height: 96px; flex: none; border-radius: 26px;
  border: 4px solid #fff; box-shadow: 0 0 0 4px var(--ink), 0 6px 0 4px var(--ink); transform: rotate(-5deg);
}
.tile-head h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1; margin: 0; -webkit-text-stroke-width: 7px; text-shadow: 0 4px 0 var(--ink); }
.tile-tagline { margin: 6px 0 0; font-weight: 900; font-size: 15px; color: var(--yellow); }
.tile-body { display: flex; flex-direction: column; gap: 16px; flex: 1; padding: 18px 24px 26px; }
.tile-body > p { margin: 0; color: var(--muted); }
.tile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; }
.tile-actions .play-badge img { height: 50px; }
.lab-tile {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 22px;
  padding: 22px 26px; border: 3px dashed rgba(255, 255, 255, .28); border-radius: 26px; background: rgba(255, 255, 255, .04);
}
.lab-tile h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0 0 4px; }
.lab-tile p { margin: 0; color: var(--muted); }
.lab-tile .btn { margin-left: auto; }
@media (max-width: 860px) {
  .games-grid { grid-template-columns: 1fr; }
  .lab-tile { flex-wrap: wrap; }
  .lab-tile .btn { margin-left: 0; }
}
@media (max-width: 420px) {
  .tile-head { padding: 0 16px; gap: 12px; }
  .tile-icon { width: 78px; height: 78px; border-radius: 22px; }
  .tile-body { padding: 16px 16px 22px; }
}

/* ---------- Game spotlights ---------- */
.section.tight { padding-block: clamp(22px, 3.5vw, 44px); }
.spot {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(26px, 4.5vw, 56px);
  border: 5px solid var(--ink); border-radius: 40px; box-shadow: 0 12px 0 var(--ink);
}
.spot::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: 1.6; pointer-events: none; }
.spot > * { position: relative; }
.spot.bd { background: linear-gradient(112deg, var(--blue-2), var(--blue) 52%, var(--ink) 52% 55%, var(--red) 55%, var(--red-2)); }
.spot.bh { --ink: #2b0f45; background: linear-gradient(180deg, #3aa9f2 0%, #1c7fd6 64%, #4cc46c 64.2%, #268c45 100%); }
.spot.bh .lead { text-shadow: 0 2px 0 rgba(43, 15, 69, .7); }
.spot h2 { font-size: clamp(42px, 5.6vw, 70px); line-height: .95; margin: 16px 0; -webkit-text-stroke-width: 10px; text-shadow: 0 7px 0 var(--ink); }
.spot.bh h2 { color: #fff4c7; }
.spot .lead { margin: 0 0 22px; font-size: clamp(16px, 1.6vw, 19px); font-weight: 800; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.spot .chip { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .35); }
.spot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.spot-actions .play-badge img { height: 54px; }
.spot.flip .spot-art { order: -1; }
.spot-art { position: relative; }
.spot-shot {
  border: 5px solid #fff; border-radius: 24px;
  box-shadow: 0 0 0 4px var(--ink), 0 12px 0 4px var(--ink); transform: rotate(3deg);
}
.spot-phone {
  width: min(250px, 58%); margin-inline: auto;
  border: 6px solid #fff; border-radius: 26px;
  box-shadow: 0 0 0 4px var(--ink), 0 12px 0 4px var(--ink); transform: rotate(5deg);
}
.spot-sticker {
  position: absolute; top: -8%; left: -2%; width: 24%; z-index: 2;
  border: 5px solid #fff; border-radius: 24%;
  box-shadow: 0 0 0 4px var(--ink), 0 8px 0 4px var(--ink);
  animation: bob 5s ease-in-out infinite;
}
.spot-pal { position: absolute; left: 0; bottom: -6%; width: 44%; z-index: 2; filter: drop-shadow(0 8px 0 rgba(43, 15, 69, .55)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
@media (max-width: 860px) {
  .spot { grid-template-columns: 1fr; text-align: center; }
  .spot .chips, .spot-actions { justify-content: center; }
  .spot.flip .spot-art { order: 0; }
  .spot.bd { background: linear-gradient(160deg, var(--blue-2), var(--blue) 55%, var(--ink) 55% 57.5%, var(--red) 57.5%, var(--red-2)); }
  .spot.bh { background: linear-gradient(180deg, #3aa9f2 0%, #1c7fd6 72%, #4cc46c 72.2%, #268c45 100%); }
  .spot-art { max-width: 440px; margin-inline: auto; width: 100%; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 800; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 470px; }

/* ---------- Cross-promo ---------- */
.xpromo {
  display: flex; align-items: center; gap: 18px; max-width: 760px; margin-inline: auto;
  padding: 18px 22px; text-decoration: none;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink);
  transition: transform .2s ease;
}
.xpromo:hover { transform: translateY(-4px) rotate(-.6deg); }
.xpromo img { width: 84px; height: 84px; flex: none; border-radius: 22px; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--ink); }
.xpromo .lbl { display: block; font-size: 12.5px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); }
.xpromo b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; }
.xpromo .desc { display: block; color: var(--muted); font-size: 15px; }
.xpromo .arrow { margin-left: auto; flex: none; font-family: var(--font-display); font-size: 30px; color: var(--yellow); }

/* ---------- Ball Heroes theme ---------- */
body.theme-bh {
  --bg: #0a2c63; --panel: #1b5bb5; --panel-2: #0f3b84;
  --ink: #2b0f45; --muted: #d6e8ff; --line: rgba(255, 255, 255, .16);
}
body.theme-bh::before {
  background:
    var(--pattern),
    radial-gradient(720px 480px at 88% -6%, rgba(255, 214, 74, .35), transparent 60%),
    radial-gradient(800px 560px at 0% 18%, rgba(111, 208, 255, .35), transparent 60%),
    radial-gradient(900px 620px at 50% 110%, rgba(91, 210, 122, .32), transparent 60%),
    linear-gradient(180deg, #1667c4, #0e4799 45%, #0a2c63);
}
.theme-bh .site-header { background: rgba(9, 40, 94, .86); }
.theme-bh .site-footer { background: #08224d; }
.theme-bh .hero-title, .theme-bh .sec-title, .theme-bh .display { color: #fff4c7; }
.theme-bh .section-alt { background: rgba(4, 22, 64, .38); }
@media (max-width: 1040px) { .theme-bh .nav-links { background: #0b3270; } }

.bh-art { position: relative; width: 100%; max-width: 480px; aspect-ratio: 4 / 5; margin-inline: auto; }
.bh-sky {
  position: absolute; inset: 9% 2% 5% 6%; overflow: hidden;
  border: 5px solid var(--ink); border-radius: 36px; box-shadow: 0 12px 0 var(--ink);
  background: linear-gradient(180deg, #8fdcff, #3aa7f0 62%, #5fd07a 62.4%, #2f9e4f);
  transform: rotate(-5deg);
}
.bh-sky::after { content: ""; position: absolute; inset: 0; background: var(--pattern); background-size: 120px; }
.bh-art .hero-icon { left: auto; right: -4%; top: 0; }
.bh-art .knight { position: absolute; left: -8%; bottom: -3%; width: 48%; z-index: 3; filter: drop-shadow(0 10px 0 rgba(43, 15, 69, .5)); animation: float 4s ease-in-out infinite; }
.bh-art .burst-wrap { top: 3%; left: -4%; right: auto; bottom: auto; width: 31%; }

/* Trailers */
.trailers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); max-width: 940px; margin-inline: auto; }
.trailer {
  padding: 12px 12px 20px;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 4px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow);
  transform: rotate(var(--r, 0deg));
}
.trailer video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border: 4px solid #fff; border-radius: 18px; }
.trailer h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.1; margin: 14px 6px 4px; }
.trailer p { margin: 0 6px; color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) {
  .trailers {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(270px, 74%);
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 26px; margin: 0 -4px;
  }
  .trailer { scroll-snap-align: center; }
}

/* How it plays */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 24px); padding-top: 22px; }
.step {
  position: relative; padding: 34px 22px 24px;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink);
}
.step-num {
  position: absolute; top: -24px; left: 18px; width: 50px; height: 50px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 26px; color: var(--ink);
  background: var(--yellow); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); transform: rotate(-8deg);
}
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; margin: 0 0 8px; color: #fff4c7; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.fuse { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-display); font-size: 24px; color: #fff4c7; }
.fuse img { width: 46px; height: 46px; filter: drop-shadow(0 3px 0 rgba(43, 15, 69, .5)); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Heroes */
.heroes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.hero-card {
  --c1: #8fd0ff; --c2: #2f7fe0;
  overflow: hidden; background: linear-gradient(170deg, var(--c1), var(--c2));
  border: 4px solid #fff; border-radius: 26px;
  box-shadow: 0 0 0 4px var(--ink), 0 10px 0 4px var(--ink);
  transform: rotate(var(--r, 0deg)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.hero-card:hover { transform: rotate(0deg) translateY(-8px); }
.hero-card .portrait {
  height: 210px; display: flex; align-items: flex-end; justify-content: center; padding-top: 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 72%, rgba(255, 255, 255, .55), transparent 62%), var(--pattern);
}
.hero-card .portrait img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 6px 0 rgba(43, 15, 69, .35)); }
.hero-card .info { padding: 12px 16px 18px; background: rgba(43, 15, 69, .28); border-top: 4px solid #fff; }
.hero-card h3 { font-size: clamp(22px, 2.3vw, 28px); line-height: 1; margin: 0; -webkit-text-stroke-width: 6px; text-shadow: 0 4px 0 var(--ink); }
.role { display: inline-block; margin-top: 8px; padding: 2px 9px; font-size: 11.5px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; color: #fff; background: var(--ink); border-radius: 7px; }
.perk { margin: 8px 0 0; font-size: 14px; font-weight: 700; line-height: 1.4; color: #fff; }
.perk b { color: #fff4c7; }
.hero-card.knight { --c1: #9ad6ff; --c2: #2f78d8; --r: -1.5deg; }
.hero-card.ranger { --c1: #a6e88f; --c2: #2f9a4c; --r: 1deg; }
.hero-card.wizard { --c1: #cfa8ff; --c2: #7440d8; --r: -1deg; }
.hero-card.engineer { --c1: #ffcc73; --c2: #e8841a; --r: 1.5deg; }
.hero-card.ninjacat { --c1: #ffa3b0; --c2: #d8364f; --r: 1deg; }
.hero-card.runner { --c1: #86eedd; --c2: #17a092; --r: -1.5deg; }
.hero-card.mortar { --c1: #cfdf92; --c2: #6c8c2c; --r: 1.5deg; }
.hero-card.twins { --c1: #ffbde5; --c2: #d8549f; --r: -1deg; }
@media (max-width: 980px) { .heroes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) {
  .hero-card .portrait { height: 160px; }
  .hero-card .info { padding: 10px 12px 14px; }
  .perk { font-size: 13px; }
}

/* Worlds */
.worlds {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 8px 4px 26px; margin: 0 -4px;
  scrollbar-width: thin; scrollbar-color: var(--yellow) transparent;
}
.worlds::-webkit-scrollbar { height: 8px; }
.worlds::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 8px; }
.world {
  position: relative; flex: 0 0 196px; aspect-ratio: 9 / 15; overflow: hidden; scroll-snap-align: start;
  background: #000; border: 4px solid #fff; border-radius: 22px;
  box-shadow: 0 0 0 3px var(--ink), 0 8px 0 3px var(--ink);
}
.world .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world .boss {
  position: absolute; left: 18%; bottom: 25%; width: 64%;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .3)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.world:hover .boss { transform: translateY(-8px) scale(1.06); }
.world .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 12px; text-align: center; background: linear-gradient(transparent, rgba(24, 8, 44, .88) 45%); }
.world .num { display: block; font-size: 11px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; color: #fff4c7; }
.world h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.05; margin: 2px 0; }
.world .bossname { display: block; font-size: 12.5px; font-weight: 800; color: rgba(255, 255, 255, .85); }

/* Boss faces row */
.faces { display: flex; margin: 4px 0 6px; }
.faces img {
  width: 58px; height: 58px; object-fit: contain; margin-right: -12px; padding: 4px;
  background: rgba(255, 255, 255, .9); border: 3px solid var(--ink); border-radius: 50%;
}

/* Launch sign-up */
.notify {
  max-width: 780px; margin-inline: auto; text-align: center;
  padding: clamp(26px, 4.5vw, 52px);
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 5px solid var(--ink); border-radius: 38px; box-shadow: 0 12px 0 var(--ink);
}
.notify .tile-icon { display: block; width: 104px; height: 104px; margin: 0 auto 6px; }
.notify h2 { font-size: clamp(38px, 5vw, 58px); line-height: 1; margin: 18px 0 12px; }
.notify > p { color: var(--muted); max-width: 540px; margin: 0 auto; }
.notify-form { display: flex; gap: 12px; max-width: 540px; margin: 26px auto 0; }
.notify-form input {
  flex: 1; min-width: 0; font: inherit; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, .3); border: 3px solid rgba(255, 255, 255, .2); border-radius: 16px; padding: 13px 16px;
}
.notify-form input::placeholder { color: rgba(214, 232, 255, .6); }
.notify-form input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 63, .25); }
.notify .form-note { margin-top: 16px; }
@media (max-width: 520px) { .notify-form { flex-direction: column; } }

/* ---------- Catdoku ---------- */
.spot.cat { --ink: #3a2414; background: linear-gradient(160deg, #f8cf63, #eaa93a); }
.spot.cat h2 { color: #fff6e0; }
.spot.cat .lead { color: #3a2414; text-shadow: none; }
.spot.cat .chip { background: rgba(58, 36, 20, .12); border-color: rgba(58, 36, 20, .3); color: #3a2414; }
.spot.cat .btn-ghost { --fg-btn: #3a2414; border-color: rgba(58, 36, 20, .45); }
.cat-trio { display: flex; align-items: flex-end; justify-content: center; gap: 2%; }
.cat-trio img { width: 30%; height: auto; filter: drop-shadow(0 6px 0 rgba(58, 36, 20, .3)); }
.cat-trio img.big { width: 40%; }

body.theme-cat {
  --bg: #10393f; --panel: #1b5960; --panel-2: #12454b;
  --ink: #2e1d12; --muted: #d7ece8; --line: rgba(255, 255, 255, .14);
}
body.theme-cat::before {
  background:
    var(--pattern),
    radial-gradient(720px 480px at 88% -6%, rgba(248, 207, 99, .3), transparent 60%),
    radial-gradient(800px 560px at 0% 20%, rgba(255, 150, 120, .18), transparent 60%),
    linear-gradient(180deg, #17525a, #10393f 50%, #0c2d32);
}
.theme-cat .site-header { background: rgba(12, 48, 54, .88); }
.theme-cat .site-footer { background: #0b2a2e; }
.theme-cat .hero-title, .theme-cat .sec-title, .theme-cat .display { color: #fff4dc; }
.theme-cat .section-alt { background: rgba(4, 26, 30, .35); }
@media (max-width: 1040px) { .theme-cat .nav-links { background: #0f3a40; } }

.cat-art { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin-inline: auto; }
.cat-felt {
  position: absolute; inset: 7% 4% 7% 6%;
  display: grid; place-items: center;
  background: #2f8a85; border: 5px solid var(--ink); border-radius: 36px; box-shadow: 0 12px 0 var(--ink);
  transform: rotate(-3deg);
}
.cat-felt::before { content: ""; position: absolute; inset: 12px; border: 3px dashed rgba(255, 255, 255, .45); border-radius: 26px; }
.demo-board {
  position: relative; width: 74%; aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 8px;
  background: #fff6e3; border: 4px solid var(--ink); border-radius: 18px; transform: rotate(3deg);
}
.demo-board span { display: grid; place-items: center; border-radius: 7px; font-family: var(--font-display); font-size: clamp(14px, 2vw, 20px); color: rgba(58, 36, 20, .45); }
.demo-board .ra { background: #f6b884; }
.demo-board .rb { background: #a9d8b8; }
.demo-board .rc { background: #f5c6d6; }
.demo-board .rd { background: #b7c6f2; }
.demo-board .re { background: #f3e09a; }
.demo-board img { width: 88%; height: auto; filter: drop-shadow(0 2px 0 rgba(58, 36, 20, .35)); }
.cat-art .mochi { position: absolute; left: -6%; bottom: -2%; width: 40%; z-index: 3; filter: drop-shadow(0 8px 0 rgba(46, 29, 18, .45)); animation: float 4s ease-in-out infinite; }
.cat-art .hero-icon { left: auto; right: -3%; top: -2%; width: 26%; }
.cat-art .burst-wrap { top: auto; bottom: 4%; right: -4%; width: 28%; }

.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.cat-card {
  padding: 14px 10px 12px; text-align: center;
  background: linear-gradient(170deg, #fff6e3, #f1dcae);
  border: 4px solid #fff; border-radius: 24px;
  box-shadow: 0 0 0 4px var(--ink), 0 8px 0 4px var(--ink);
  transform: rotate(var(--r, 0deg)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.cat-card:hover { transform: rotate(0deg) translateY(-6px); }
.cat-card img { height: 130px; width: auto; max-width: 100%; margin: 0 auto 8px; object-fit: contain; }
.cat-card b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.1; color: #3a2414; }
.cat-card small { display: block; font-size: 12px; font-weight: 800; color: #8a5a2b; }
.cat-card:nth-child(odd) { --r: -1.5deg; }
.cat-card:nth-child(3n) { --r: 1.5deg; }
@media (max-width: 1040px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-card img { height: 90px; }
  .cat-card b { font-size: 16px; }
}
.games-grid.three { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .6s ease var(--d, 0s), translate .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; translate: none; }
  .ticker-track { animation: none; }
}
