/* =========================================================
   SM SOLUTION — 3D Gaming Platform Landing
   ========================================================= */
:root {
  --bg: #06060c;
  --bg-2: #0b0b15;
  --bg-3: #12121f;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f3f3f8;
  --muted: #a0a0b8;
  --dim: #6d6d86;
  --gold: #f5b70a;
  --gold-2: #ffd86b;
  --gold-3: #c98a00;
  --violet: #7c4dff;
  --cyan: #22d3ee;
  --pink: #ff3d81;
  --green: #22c55e;
  --red: #ef4444;
  --acc: var(--gold);
  --acc-2: var(--pink);
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --display: 'Unbounded', var(--font);
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --container: 1240px;
  --gutter: 24px;
}
@media (max-width: 480px) { :root { --gutter: 20px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
svg { width: 1em; height: 1em; }
.ico, .ic svg, .feat svg, .tpl-arrow svg, .h-badge svg, .horse-feats svg, .steps svg, .pv-close svg, .monitor-play svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn .ico { width: 18px; height: 18px; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  color: #1a1200;
  box-shadow: 0 12px 32px -10px rgba(245, 183, 10, .65), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.btn-gold .ico { stroke-width: 2.4; }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(245, 183, 10, .8), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn-gold:active { transform: translateY(0); }
.btn-ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); transform: translateY(-3px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 32px; font-size: 17px; }

/* ---------- Text helpers ---------- */
.grad {
  background: linear-gradient(100deg, var(--gold-2) 0%, var(--gold) 28%, var(--pink) 64%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-acc {
  background: linear-gradient(100deg, var(--acc) 0%, var(--acc-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: .2em; color: var(--acc);
}
.eyebrow i {
  font-style: normal; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: color-mix(in srgb, var(--acc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent);
  font-size: 11px; letter-spacing: 0;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--acc) 60%, transparent);
}
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: #ff5a5a; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255, 59, 59, .6); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); } }

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled, .nav.menu-open { background: rgba(6, 6, 12, .75); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand b { color: var(--gold); font-family: var(--font); font-weight: 800; font-size: 1.08em; letter-spacing: -.02em; margin-left: 6px; }
.logo-mark { width: 32px; height: 32px; filter: drop-shadow(0 4px 12px rgba(245, 183, 10, .45)); transition: transform .6s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-20deg) scale(1.08); }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { position: relative; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.menu a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.menu a.active { color: var(--text); background: rgba(255, 255, 255, .08); }
.menu a.active::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); }
.burger { display: none; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--gold), var(--pink), var(--violet)); }

@media (max-width: 1020px) {
  .menu {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    /* solid: a backdrop-filter nested in the nav's own backdrop-filter lets the page bleed through on mobile */
    background: #08080e; border-bottom: 1px solid var(--line); box-shadow: 0 40px 60px -10px rgba(0, 0, 0, .75);
    transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
  }
  .menu.open { opacity: 1; transform: none; visibility: visible; }
  .menu a { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
  .menu a.active::after { left: auto; right: 18px; bottom: 50%; transform: translateY(50%); width: 6px; height: 6px; }
  .nav-cta { margin-left: auto; }
  .burger { position: relative; display: block; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); }
  .burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
  .burger span:nth-child(1) { top: 17px; }
  .burger span:nth-child(2) { top: 25px; }
  .burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .burger.open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
}
@media (max-width: 480px) {
  .nav-inner { height: 64px; gap: 12px; }
  .menu { top: 64px; }
  .brand { font-size: 16px; }
  .logo-mark { width: 30px; height: 30px; }
  .burger { width: 42px; height: 42px; }
  .burger span:nth-child(1) { top: 16px; }
  .burger span:nth-child(2) { top: 24px; }
  .burger.open span:nth-child(1), .burger.open span:nth-child(2) { top: 20px; }
  html { scroll-padding-top: 64px; }
  .nav-cta { display: none; }
  .burger { margin-left: auto; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 110px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(55% 55% at 74% 46%, rgba(124, 77, 255, .30), transparent 70%),
    radial-gradient(35% 40% at 86% 72%, rgba(245, 183, 10, .20), transparent 70%),
    radial-gradient(45% 55% at 8% 12%, rgba(34, 211, 238, .10), transparent 70%),
    radial-gradient(40% 40% at 50% 110%, rgba(255, 61, 129, .18), transparent 70%);
}
.hero-grid {
  position: absolute; left: -50%; right: -50%; bottom: -12%; height: 58%; z-index: -2;
  background-image: linear-gradient(rgba(140, 100, 255, .32) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 100, 255, .32) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 78%); mask-image: linear-gradient(to top, #000 5%, transparent 78%);
  animation: gridMove 5s linear infinite;
}
@keyframes gridMove { to { background-position: 0 64px; } }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.6s ease; }
#hero-canvas.ready { opacity: 1; }

.hero-inner { position: relative; }
.hero-copy { max-width: 620px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px);
  font-family: var(--display); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; color: var(--gold-2);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.hero h1 { font-size: clamp(42px, 6.4vw, 88px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 26px 0 24px; text-wrap: balance; }
.hero h1 .grad { display: inline-block; padding-bottom: .06em; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 520px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 560px; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.15; }
.stat b em { font-style: normal; color: var(--gold); margin: 0 2px; }
.stat span { font-size: 13px; color: var(--muted); }

.hero-floats { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.float-card {
  position: absolute; min-width: 210px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 30, 48, .72), rgba(14, 14, 24, .62));
  border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8);
  animation: floatY 7s ease-in-out infinite;
}
.fc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fc-top small { color: var(--dim); font-size: 11.5px; }
.fc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; font-weight: 600; }
.fc-row b { font-family: var(--display); font-size: 14px; }
.fc-row .up { color: #4ade80; }
.fc-row .red { color: #ff6b6b; font-size: 12px; }
.mono { font-family: var(--mono) !important; color: var(--gold-2); }
.tag-gold, .tag-pink { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag-gold { background: rgba(245, 183, 10, .16); color: var(--gold-2); }
.tag-pink { background: rgba(255, 61, 129, .16); color: #ff8ab0; font-family: var(--display); letter-spacing: .08em; font-size: 10px; }
.fc-1 { right: 7%; top: 21%; }
.fc-2 { right: 31%; bottom: 17%; animation-delay: -2.5s; }
.fc-3 { right: 4%; bottom: 27%; animation-delay: -4.5s; }
@keyframes floatY { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1deg); } }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--line-2); transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--gold); transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

@media (max-width: 1100px) {
  .fc-2 { display: none; }
}
@media (max-width: 900px) {
  /* 3D objects get their own band under the copy instead of sitting behind it */
  .hero { padding: 110px 0 400px; align-items: flex-start; }
  #hero-canvas { inset: auto 0 20px 0; height: 400px; }
  .hero-floats, .scroll-hint { display: none; }
  .hero-copy { max-width: none; }
  .hero-stats { margin-top: 44px; }
}
@media (max-width: 480px) {
  .pill { font-size: 10px; letter-spacing: .1em; padding: 8px 12px; }
  .hero { padding: 96px 0 330px; }
  #hero-canvas { height: 330px; }
  .hero h1 { font-size: clamp(36px, 11vw, 44px); margin: 22px 0 18px; }
  .lead { font-size: 15.5px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 22px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 11.5px; white-space: nowrap; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(245, 183, 10, .05), rgba(124, 77, 255, .07), rgba(255, 61, 129, .05)); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { display: flex; align-items: center; font-family: var(--display); font-weight: 700; font-size: clamp(16px, 2vw, 22px); letter-spacing: .05em; color: rgba(255, 255, 255, .82); white-space: nowrap; }
.marquee-track span::after { content: '✦'; margin: 0 36px; color: var(--gold); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: 140px 0; overflow-x: clip; }
.sec-head { max-width: 780px; margin-bottom: 60px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head h2, .h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin: 20px 0 18px; text-wrap: balance; }
.sec-head p, .sub { color: var(--muted); font-size: 17px; text-wrap: pretty; }
.sub { max-width: 520px; }
.br-pc { display: inline; }
@media (max-width: 1020px) { .section { padding: 110px 0; } }
@media (max-width: 720px) {
  .br-pc { display: none; }
  .section { padding: 84px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-head h2, .h2 { font-size: clamp(27px, 7.6vw, 34px); margin: 16px 0 14px; }
  .sec-head p, .sub { font-size: 15.5px; }
}
@media (max-width: 480px) {
  .section { padding: 68px 0; }
  .btn-lg { height: 56px; padding: 0 26px; font-size: 16px; }
}

/* =========================================================
   TEMPLATES — 3D coverflow
   ========================================================= */
.templates { background: radial-gradient(60% 50% at 50% 55%, color-mix(in srgb, var(--tpl-acc, #f5b70a) 12%, transparent), transparent 70%); transition: background 1s; }
.tpl-tabs { position: relative; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.tpl-tab {
  --acc: #f5b70a;
  display: flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); font-weight: 600; font-size: 14.5px; color: var(--muted);
  transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease);
}
.tpl-tab:hover { color: var(--text); transform: translateY(-2px); }
.tpl-tab b { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-family: var(--display); font-size: 11.5px; color: var(--text); transition: .3s; }
.tpl-tab.active { color: var(--text); border-color: color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.tpl-tab.active b { background: var(--acc); color: #0a0a0a; box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--acc) 70%, transparent); }
.tpl-tab sup { font-family: var(--display); font-size: 8.5px; letter-spacing: .08em; padding: 2px 5px; margin-left: -2px; border-radius: 5px; background: color-mix(in srgb, var(--acc) 22%, transparent); color: var(--acc); vertical-align: 2px; }

.tpl-stage { --cw: min(760px, 70vw); position: relative; height: calc(var(--cw) * .72 + 40px); perspective: 2200px; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.coverflow { position: absolute; inset: 0; transform-style: preserve-3d; }
.cf-card {
  --acc: #f5b70a;
  position: absolute; left: 50%; top: 46%; width: var(--cw);
  transform-style: preserve-3d; cursor: pointer;
  transition: transform 1s var(--ease), filter 1s var(--ease), opacity 1s var(--ease);
}
.cf-glow { position: absolute; inset: 0 -6% -12%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 55%, transparent), transparent); filter: blur(50px); opacity: 0; transform: translateZ(-120px); transition: opacity 1s; pointer-events: none; }
.cf-card.active .cf-glow { opacity: .55; }
.cf-browser { position: relative; border-radius: 16px; overflow: hidden; background: #0e0e18; border: 1px solid var(--line-2); box-shadow: 0 60px 100px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .04) inset; }
.cf-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: linear-gradient(180deg, #1c1c2a, #14141f); border-bottom: 1px solid var(--line); }
.cf-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; flex: none; }
.cf-bar i:nth-child(2) { background: #febc2e; }
.cf-bar i:nth-child(3) { background: #28c840; }
.cf-bar span { margin-left: 10px; flex: 1; max-width: 360px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .06); font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cf-bar span::before { content: ''; width: 8px; height: 8px; flex: none; border-radius: 2px; border: 1.5px solid #4ade80; }
.cf-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0a12; }
.cf-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 6s ease; }
.cf-card.active:hover .cf-shot img { transform: scale(1.04); }
.cf-hover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 6, 12, .45); opacity: 0; transition: opacity .35s; }
.cf-hover span { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--acc); color: #0a0a0a; font-weight: 800; box-shadow: 0 16px 40px -10px var(--acc); transform: translateY(10px) scale(.95); transition: transform .35s var(--ease); }
.cf-hover svg { fill: none; stroke: currentColor; stroke-width: 2.2; width: 18px; height: 18px; }
.cf-card.active:hover .cf-hover, .cf-card.active:focus-visible .cf-hover { opacity: 1; }
.cf-card.active:hover .cf-hover span { transform: none; }
.cf-phone {
  position: absolute; right: -5%; bottom: -9%; width: 19%; aspect-ratio: 390 / 844; border-radius: 24px; padding: 5px;
  background: linear-gradient(145deg, #2a2a3a, #0a0a12); border: 1px solid var(--line-2);
  box-shadow: 0 40px 60px -16px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .05) inset;
  transform: translateZ(90px); transition: transform 1s var(--ease);
}
.cf-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 19px; }
.cf-card.active:hover .cf-phone { transform: translateZ(130px) translateY(-8px); }
.cf-tag { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(6, 6, 12, .75); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font-weight: 700; font-size: 14px; transform: translateZ(40px); }
.cf-tag b { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--acc); color: #0a0a0a; font-family: var(--display); font-size: 11px; }
.cf-card.side { filter: brightness(.42) saturate(.6); }
.cf-ph { display: grid; place-items: center; background:
  radial-gradient(60% 70% at 50% 40%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 70%),
  linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 36px 36px,
  linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 36px 36px,
  #0b0b14; }
.ph-in { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 20px; }
.ph-new { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .2em; padding: 5px 12px; border-radius: 999px; background: var(--acc); color: #0a0a0a; }
.ph-in b {
  font-family: var(--display); font-weight: 900; font-size: clamp(48px, 9vw, 104px); line-height: 1; letter-spacing: -.04em; color: #fff;
  text-shadow: 1px 1px 0 color-mix(in srgb, var(--acc) 80%, #000), 2px 2px 0 color-mix(in srgb, var(--acc) 70%, #000), 3px 3px 0 color-mix(in srgb, var(--acc) 60%, #000), 4px 4px 0 color-mix(in srgb, var(--acc) 50%, #000), 5px 5px 0 color-mix(in srgb, var(--acc) 40%, #000), 8px 10px 24px rgba(0, 0, 0, .7);
}
.ph-in p { font-weight: 700; font-size: clamp(14px, 1.6vw, 19px); }
.ph-in em { font-style: normal; font-size: clamp(11px, 1.1vw, 13.5px); color: var(--muted); }
.cf-card.side .cf-hover { display: none; }

.tpl-arrow { position: absolute; top: 46%; z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 14, 24, .7); border: 1px solid var(--line-2); backdrop-filter: blur(10px); transform: translateY(-50%); transition: background .25s, transform .25s var(--ease), border-color .25s; }
.tpl-arrow svg { width: 22px; height: 22px; }
.tpl-arrow:hover { background: var(--gold); color: #111; border-color: var(--gold); transform: translateY(-50%) scale(1.08); }
.tpl-arrow.prev { left: 0; }
.tpl-arrow.next { right: 0; }

.tpl-info { --acc: #f5b70a; position: relative; margin-top: 36px; padding: 36px 40px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 48px; overflow: hidden; }
.tpl-info::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--acc), transparent); }
.tpl-info::after { content: ''; position: absolute; right: -10%; top: -60%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 22%, transparent), transparent); pointer-events: none; }
.tpl-info.swap > * { animation: swapIn .7s var(--ease) both; }
.tpl-info.swap > *:nth-child(2) { animation-delay: .08s; }
@keyframes swapIn { from { opacity: 0; transform: translateY(14px); } }
.ti-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.ti-code {
  flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px;
  font-family: var(--display); font-weight: 900; font-size: 22px; color: #0a0a0a;
  background: linear-gradient(145deg, color-mix(in srgb, var(--acc) 65%, #fff), var(--acc) 50%, color-mix(in srgb, var(--acc) 70%, #000));
  box-shadow: 0 16px 30px -10px color-mix(in srgb, var(--acc) 75%, transparent), inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 rgba(0, 0, 0, .2);
  transform: perspective(300px) rotateX(10deg) rotateY(-14deg);
}
.ti-head h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.ti-head p { color: var(--acc); font-weight: 600; font-size: 14.5px; }
.ti-desc { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.ti-feats { display: flex; flex-wrap: wrap; gap: 8px; }
.ti-feats li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.ti-feats li svg { width: 14px; height: 14px; fill: none; stroke: var(--acc); stroke-width: 3; }
.ti-side { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.ti-meta { display: grid; gap: 1px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.ti-meta div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; background: rgba(10, 10, 18, .85); font-size: 14px; }
.ti-meta span { color: var(--dim); flex: none; }
.ti-meta b { font-weight: 600; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatches { display: inline-flex; gap: 6px; }
.swatches i { width: 22px; height: 22px; border-radius: 7px; background: var(--c); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 4px 10px -2px var(--c); }
.ti-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.ti-actions .btn { width: 100%; padding: 0 16px; }
.ti-actions .btn:only-child { grid-column: 1 / -1; }
.ti-actions .btn-gold { background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 55%, #fff), var(--acc) 55%, color-mix(in srgb, var(--acc) 75%, #000)); box-shadow: 0 12px 30px -10px var(--acc), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(0, 0, 0, .2); }

@media (max-width: 900px) {
  .tpl-info { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
}
@media (max-width: 700px) {
  .tpl-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 28px; padding: 4px var(--gutter); scrollbar-width: none; scroll-snap-type: x mandatory; }
  .tpl-tabs::-webkit-scrollbar { display: none; }
  .tpl-tab { flex: none; scroll-snap-align: center; white-space: nowrap; }
  .tpl-stage { --cw: 84vw; height: calc(var(--cw) * .72 + 50px); }
  .tpl-arrow { width: 44px; height: 44px; top: auto; bottom: -18px; transform: none; }
  .tpl-arrow:hover { transform: scale(1.05); }
  .tpl-arrow.prev { left: calc(50% - 52px); }
  .tpl-arrow.next { right: calc(50% - 52px); }
  .cf-phone { width: 22%; border-radius: 14px; padding: 3px; right: -2%; }
  .cf-phone img { border-radius: 11px; }
  .cf-tag { left: 10px; bottom: 10px; font-size: 12px; transform: translateZ(30px) scale(.9); transform-origin: left bottom; }
  .cf-bar { height: 26px; padding: 0 10px; gap: 5px; }
  .cf-bar i { width: 7px; height: 7px; }
  .cf-bar span { height: 17px; font-size: 9.5px; }
  .tpl-info { margin-top: 56px; }
  .ti-head { gap: 14px; margin-bottom: 14px; }
  .ti-head h3 { font-size: 22px; }
  .ti-code { width: 56px; height: 56px; font-size: 18px; border-radius: 16px; }
  .ti-desc { font-size: 15px; margin-bottom: 18px; }
  .ti-meta b { white-space: normal; }
  .ti-actions { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tpl-info { padding: 24px 18px 20px; gap: 24px; border-radius: 22px; }
  .ti-feats { gap: 6px; }
  .ti-feats li { padding: 6px 10px; font-size: 12.5px; }
  .ti-meta div { padding: 12px 14px; font-size: 13.5px; }
}

/* =========================================================
   PRODUCT SPLITS
   ========================================================= */
.product::before { content: ''; position: absolute; inset: 10% -10% auto auto; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 14%, transparent), transparent); pointer-events: none; z-index: -1; }
.product:nth-of-type(even)::before { inset: 10% auto auto -10%; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.feat-list { display: grid; gap: 12px; margin-top: 36px; }
.feat { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: transform .35s var(--ease), background .3s, border-color .3s; }
.feat:hover { transform: translateX(8px); background: var(--panel-2); border-color: color-mix(in srgb, var(--acc) 35%, transparent); }
.ic {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #0a0a0a;
  background: linear-gradient(145deg, color-mix(in srgb, var(--acc) 60%, #fff), var(--acc) 55%, color-mix(in srgb, var(--acc) 70%, #000));
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--acc) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.ic svg { width: 22px; height: 22px; stroke-width: 2.2; }
.feat h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 2px; }
.feat p { font-size: 14.5px; color: var(--muted); }

/* generic 3D tilt container */
.td-wrap { perspective: 1600px; }
.td {
  position: relative; transform-style: preserve-3d;
  transform: rotateX(calc(var(--bx, 0deg) + var(--rx, 0deg))) rotateY(calc(var(--by, 0deg) + var(--ry, 0deg)));
  transition: transform .6s var(--ease);
}

@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .split.reverse .split-copy { order: 0; }
  .sub { max-width: none; }
  /* single column: centre the tilted board and keep the slip's 3D projection inside the screen */
  .split-visual { width: 100%; max-width: 620px; margin: 0 auto; }
  .split-visual .sb { --by: -11deg !important; }
  .sb-slip { left: 6%; }
}

/* ---------- Sportsbook mockup ---------- */
.sb { padding: 0 0 60px 0; }
.sb-board { border-radius: 22px; padding: 18px; background: linear-gradient(180deg, #121224, #0a0a14); border: 1px solid var(--line-2); box-shadow: 0 60px 100px -30px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(34, 211, 238, .35); }
.sb-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sb-sports { display: flex; gap: 6px; overflow: hidden; }
.sb-sports b { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .04); white-space: nowrap; }
.sb-sports b.on { background: var(--cyan); color: #04202a; }
.sb-head { display: grid; grid-template-columns: 1fr repeat(3, 64px); gap: 6px; padding: 0 10px 8px; font-size: 11.5px; color: var(--dim); }
.sb-head span:not(:first-child) { text-align: center; }
.sb-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 10px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .05); margin-top: 6px; }
.sb-match small { display: block; font-size: 11px; color: var(--dim); margin-bottom: 4px; }
.sb-match small em { font-style: normal; color: #ff6b6b; font-weight: 700; }
.sb-match div { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.5; max-width: 170px; }
.sb-match div i { font-style: normal; font-family: var(--display); font-size: 12px; color: var(--gold-2); }
.sb-odds { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; }
.sb-odds button { height: 44px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); font-family: var(--display); font-size: 13px; font-weight: 500; transition: background .2s, border-color .2s, transform .2s; }
.sb-odds button:hover { background: rgba(34, 211, 238, .14); border-color: rgba(34, 211, 238, .5); }
.sb-odds button.sel { background: var(--cyan); color: #04202a; border-color: var(--cyan); box-shadow: 0 8px 20px -6px var(--cyan); }
.sb-odds button.up { animation: oddUp 1s ease; }
.sb-odds button.down { animation: oddDown 1s ease; }
@keyframes oddUp { 0% { background: rgba(34, 197, 94, .55); color: #fff; } }
@keyframes oddDown { 0% { background: rgba(239, 68, 68, .55); color: #fff; } }
.sb-slip {
  position: absolute; left: -36px; bottom: -6px; width: 250px; padding: 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(36, 36, 60, .9), rgba(16, 16, 30, .92)); border: 1px solid rgba(34, 211, 238, .35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .9), 0 0 40px -10px rgba(34, 211, 238, .3);
  transform: translateZ(90px);
}
.slip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.slip-head b { font-family: var(--display); font-size: 12px; letter-spacing: .1em; color: var(--cyan); }
.slip-head span { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(34, 211, 238, .15); color: var(--cyan); }
.sb-slip ul { display: grid; gap: 4px; margin-bottom: 10px; max-height: 104px; overflow: hidden; }
.sb-slip li { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.sb-slip li b { font-family: var(--display); font-size: 11.5px; color: var(--cyan); }
.sb-slip li.empty { color: var(--dim); justify-content: center; }
.slip-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--muted); padding-top: 6px; }
.slip-sum small { color: var(--dim); font-size: 11px; }
.slip-sum b { font-family: var(--display); font-size: 14px; color: var(--text); }
.slip-sum b.gold { color: var(--gold-2); font-size: 15px; }

@media (max-width: 560px) {
  .split { gap: 44px; }
  .feat-list { gap: 10px; margin-top: 28px; }
  .feat { gap: 14px; padding: 16px; }
  .feat .ic { width: 42px; height: 42px; border-radius: 13px; }
  .feat h4 { font-size: 15.5px; }
  .feat p { font-size: 13.5px; }
  .split-visual .sb { --bx: 6deg !important; --by: -9deg !important; }
  .sb-board { padding: 12px; }
  .sb-sports { min-width: 0; }
  .sb-head { grid-template-columns: 1fr repeat(3, 46px); padding: 0 8px 6px; }
  .sb-odds { grid-template-columns: repeat(3, 46px); gap: 4px; }
  .sb-odds button { height: 38px; font-size: 11.5px; }
  .sb-match { min-width: 0; }
  .sb-match div { font-size: 12.5px; }
  .sb-match div span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* bet slip sits under the board instead of covering the last match */
  .sb { padding-bottom: 0; }
  .sb-slip { position: relative; left: auto; bottom: auto; width: min(270px, 88%); margin: -18px auto 0; }
}

/* =========================================================
   CASINO & SLOT — provider grid
   ========================================================= */
.casino { background: radial-gradient(55% 45% at 50% 58%, rgba(255, 61, 129, .09), transparent 70%), radial-gradient(35% 35% at 85% 20%, rgba(245, 183, 10, .06), transparent 70%); }
.cs-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; }
.cs-tab {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel); font-weight: 700; font-size: 15.5px; color: var(--muted); transition: color .25s, background .25s, box-shadow .25s, transform .25s var(--ease);
}
.cs-tab .ico { width: 18px; height: 18px; }
.cs-tab b { font-family: var(--display); font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text); }
.cs-tab:hover { color: var(--text); transform: translateY(-2px); }
.cs-tab.on {
  color: #1f0611; border-color: transparent; background: linear-gradient(180deg, #ff9fbf, var(--acc) 55%, #c0185a);
  box-shadow: 0 12px 30px -10px var(--acc), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.cs-tab.on b { background: rgba(0, 0, 0, .22); color: #fff; }
.cs-board { perspective: 1800px; }
/* flex rather than grid so a short last row stays centered */
.cs-grid { --cols: 5; --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); max-width: 1080px; margin: 0 auto; }
.cs-card { position: relative; flex: none; width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); perspective: 900px; transform-origin: 50% 0; }
.cs-grid.flip .cs-card { animation: csIn .75s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes csIn { from { opacity: 0; transform: rotateX(-70deg) translateY(24px); } }
.cs-in {
  position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; transform-style: preserve-3d; background: #101018;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .9);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .4s;
}
.cs-card:hover .cs-in { box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 44px -12px var(--acc); }
.cs-in .art { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cs-card:hover .cs-in .art { transform: scale(1.06); }
.cs-in::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .2), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.cs-card:hover .cs-in::after { opacity: 1; }
.cs-in .shade { position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(6, 6, 12, .94)); pointer-events: none; }
.cs-in .logo { position: absolute; left: 14%; right: 14%; bottom: 36px; height: 24%; transform: translateZ(40px); pointer-events: none; }
.cs-in .logo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .7)); }
.cs-in .logo b { display: grid; place-items: center; height: 100%; font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: .08em; text-shadow: 0 4px 14px rgba(0, 0, 0, .8); }
.cs-in .label { position: absolute; left: 0; right: 0; bottom: 11px; text-align: center; font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, .9); transform: translateZ(30px); }
.cs-in .badge {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px;
  font-family: var(--display); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; color: #fff; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transform: translateZ(30px);
}
.cs-in .badge i { width: 6px; height: 6px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; }
.cs-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 1080px; margin: 56px auto 0; }
.cs-feats .feat:hover { transform: translateY(-4px); }

@media (max-width: 1020px) {
  .cs-grid { --gap: 12px; }
  .cs-feats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cs-tabs { margin-bottom: 24px; }
  .cs-tab { flex: 1; justify-content: center; gap: 8px; height: 48px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .cs-feats { margin-top: 36px; gap: 10px; }
  .cs-grid { --cols: 2; --gap: 10px; }
  .cs-grid[data-kind="slot"] { --cols: 3; --gap: 8px; }
  .cs-in { border-radius: 16px; }
  .cs-in .logo { bottom: 30px; }
  .cs-in .logo b { font-size: 18px; }
  .cs-in .label { font-size: 12.5px; bottom: 9px; }
  .cs-grid[data-kind="slot"] .cs-in { border-radius: 12px; }
  .cs-grid[data-kind="slot"] .badge { display: none; }
}
@media (max-width: 480px) {
  .cs-tab .ico { display: none; }
  .cs-in .label { font-size: 12px; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   MINI GAME (SPO GAME)
   ========================================================= */
.minigame { background: radial-gradient(55% 45% at 60% 45%, rgba(45, 212, 191, .08), transparent 70%), radial-gradient(40% 40% at 15% 70%, rgba(167, 139, 250, .08), transparent 70%); }
.mg { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
.mg-list { position: relative; display: grid; gap: 8px; }
.mg-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 16px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.mg-item:hover { background: var(--panel-2); transform: translateX(4px); }
.mg-item img { flex: none; width: 76px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.mg-item b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.mg-item small { font-size: 12px; color: var(--muted); }
.mg-item.on { background: color-mix(in srgb, var(--acc) 11%, transparent); border-color: color-mix(in srgb, var(--acc) 55%, transparent); box-shadow: inset 3px 0 0 var(--acc); }
.mg-item i { margin-left: auto; flex: none; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--muted); }

.mg-scene { perspective: 1800px; padding: 0 36px 40px 0; }
.mg-screen { border-radius: 18px; overflow: hidden; background: #0b0b14; border: 1px solid var(--line-2); box-shadow: 0 60px 100px -30px rgba(0, 0, 0, .95), 0 0 110px -40px var(--acc); }
.mg-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #070b16; }
.mg-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .35s ease, transform .6s var(--ease); }
.mg-shot.swap img { opacity: 0; transform: scale(1.02); }
.mg-soon { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 13px; font-weight: 800; padding: 7px 14px; border-radius: 999px; background: rgba(10, 10, 16, .82); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.mg-phone {
  position: absolute; right: -30px; bottom: -32px; width: 21%; aspect-ratio: 390 / 844; padding: 5px; border-radius: 26px;
  background: linear-gradient(145deg, #34344a, #0b0b12); border: 1px solid var(--line-2);
  box-shadow: 0 40px 70px -16px rgba(0, 0, 0, .95); transform: translateZ(90px); transition: opacity .35s;
}
.mg-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 21px; }
.mg-phone[hidden] { display: block; opacity: 0; pointer-events: none; }
.mg-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; border-radius: 22px; }
.mg-cap-text { min-width: 0; }
.mg-cat { font-family: var(--display); font-size: 11.5px; letter-spacing: .14em; color: var(--acc); }
.mg-caption h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 4px; }
.mg-caption p { font-size: 15px; color: var(--muted); }
.mg-caption .btn { flex: none; }
.minigame .btn-gold { background: linear-gradient(180deg, #99f6e4, var(--acc) 55%, #0d9488); color: #032620; box-shadow: 0 12px 30px -10px rgba(45, 212, 191, .6), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.mg-caption .btn[aria-disabled="true"] { background: rgba(255, 255, 255, .06); color: var(--muted); box-shadow: none; pointer-events: none; }
.mg-caption .btn[aria-disabled="true"] .ico { display: none; }

.slots { margin-top: 96px; }
.slots-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.slots-head h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.slots-head b { color: var(--acc); }
.slot-rail {
  perspective: 1400px; overflow: hidden; padding: 34px 0 44px; margin: 0 -24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.slot-track { display: flex; gap: 18px; width: max-content; padding: 0 9px; transform-style: preserve-3d; animation: marquee 70s linear infinite; }
.slot-rail:hover .slot-track, .slot-rail:focus-within .slot-track { animation-play-state: paused; }
.slot-card {
  position: relative; flex: none; display: block; width: 190px; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2); background: #0b0b14; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9);
  transform: rotateY(-16deg); transition: transform .45s var(--ease), box-shadow .45s;
}
.slot-card:hover { transform: rotateY(0) translateY(-10px) scale(1.05); box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .95), 0 0 40px -10px var(--acc); }
.slot-card img { width: 100%; height: 100%; object-fit: cover; }
.slot-card::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(5, 5, 12, .92)); }
.slot-card b { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-size: 15px; font-weight: 800; line-height: 1.3; }
.slot-card em { position: absolute; top: 10px; left: 10px; z-index: 1; font-style: normal; font-family: var(--display); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; padding: 4px 8px; border-radius: 6px; background: var(--acc); color: #032620; }
.slot-card em.soon { background: rgba(10, 10, 16, .78); color: var(--muted); font-family: var(--font); font-size: 11px; letter-spacing: 0; }

@media (max-width: 1020px) {
  .mg { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mg-list { grid-auto-flow: column; grid-auto-columns: 220px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; scroll-snap-type: x mandatory; }
  .mg-list::-webkit-scrollbar { display: none; }
  .mg-item { scroll-snap-align: start; }
  .mg-item:hover { transform: none; }
}
@media (max-width: 640px) {
  .mg-list { grid-auto-columns: 200px; }
  .mg-scene { padding: 0 18px 26px 0; }
  .mg-phone { width: 24%; padding: 3px; border-radius: 14px; right: -14px; bottom: -18px; }
  .mg-phone img { border-radius: 11px; }
  .mg-caption { flex-direction: column; align-items: stretch; padding: 18px; }
  .mg-caption h3 { font-size: 20px; }
  .slots { margin-top: 64px; }
  .slots-head { flex-wrap: wrap; align-items: center; gap: 10px; }
  .slots-head .btn { padding: 0 14px; font-size: 13px; gap: 6px; }
  .slot-rail { margin: 0 calc(-1 * var(--gutter)); padding: 26px 0 34px; }
  .slot-card { width: 150px; }
}

/* =========================================================
   VIRTUAL HORSE RACING
   ========================================================= */
.horse { background: linear-gradient(180deg, transparent, rgba(245, 183, 10, .04) 30%, rgba(255, 122, 24, .04) 70%, transparent); }
.horse-glow { position: absolute; left: 50%; top: 18%; width: 90%; max-width: 1100px; aspect-ratio: 2 / 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 183, 10, .16), transparent); pointer-events: none; z-index: -1; }
.horse-stage {
  --p: 0;
  position: relative; max-width: 1000px; margin: 0 auto 90px; perspective: 1800px;
}
.monitor {
  transform-style: preserve-3d;
  transform: rotateX(calc((1 - var(--p)) * 32deg)) scale(calc(.86 + var(--p) * .14));
  transform-origin: 50% 100%;
  transition: transform .1s linear;
}
.monitor-screen { position: relative; padding: 14px; border-radius: 24px; background: linear-gradient(180deg, #23232f, #0d0d14); border: 1px solid var(--line-2); box-shadow: 0 80px 120px -40px rgba(0, 0, 0, .95), 0 0 120px -40px rgba(245, 183, 10, .45); }
.monitor-screen img { border-radius: 12px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.monitor-screen::after { content: ''; position: absolute; inset: 14px; border-radius: 12px; background: linear-gradient(115deg, rgba(255, 255, 255, .1), transparent 40%); pointer-events: none; }
.monitor-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 14px; padding: 10px 26px 10px 10px; border-radius: 999px;
  background: rgba(10, 10, 16, .72); border: 1px solid rgba(245, 183, 10, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-weight: 800; font-size: 17px; transform: translate(-50%, -50%); transition: transform .3s var(--ease), background .3s; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8);
}
.monitor-play span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: #1a1200; box-shadow: 0 0 0 0 rgba(245, 183, 10, .6); animation: playPulse 2s infinite; }
.monitor-play svg { width: 20px; height: 20px; fill: currentColor; stroke-width: 0; margin-left: 3px; }
.monitor-play:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(10, 10, 16, .88); }
@keyframes playPulse { 0% { box-shadow: 0 0 0 0 rgba(245, 183, 10, .6); } 80%, 100% { box-shadow: 0 0 0 18px rgba(245, 183, 10, 0); } }
.monitor-neck { width: 16%; height: 46px; margin: 0 auto; background: linear-gradient(90deg, #15151e, #2c2c3a, #15151e); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.monitor-base { width: 34%; height: 12px; margin: 0 auto; border-radius: 6px 6px 14px 14px; background: linear-gradient(180deg, #34344a, #15151e); box-shadow: 0 20px 30px -6px rgba(0, 0, 0, .9); }
.horse-phone {
  position: absolute; right: -2%; bottom: 4%; width: 21%; aspect-ratio: 390 / 844; padding: 6px; border-radius: 28px;
  background: linear-gradient(145deg, #34344a, #0b0b12); border: 1px solid var(--line-2);
  box-shadow: 0 50px 80px -20px rgba(0, 0, 0, .95);
  transform: translateY(calc((1 - var(--p)) * 120px)) rotate(calc((1 - var(--p)) * 8deg));
  opacity: calc(var(--p) * 1.4);
  transition: transform .1s linear;
}
.horse-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px; }
.h-badge {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px;
  background: rgba(18, 18, 30, .82); border: 1px solid rgba(245, 183, 10, .35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-weight: 700; font-size: 14.5px; box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .9);
  opacity: calc(var(--p) * 1.3); animation: floatY 6s ease-in-out infinite;
}
.h-badge svg { width: 20px; height: 20px; color: var(--gold); }
.hb-1 { left: -3%; top: 16%; }
.hb-2 { left: 6%; bottom: 20%; animation-delay: -3s; }

.horse-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.race { padding: 24px; }
.race-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.race-head b { font-size: 16px; font-weight: 800; }
.race-head b span { color: var(--gold-2); margin: 0 2px; }
.race-head em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(245, 183, 10, .14); color: var(--gold-2); }
.race-head em.run { background: rgba(34, 197, 94, .16); color: #4ade80; }
.track {
  position: relative; display: grid; gap: 4px; padding: 10px 46px 10px 10px; border-radius: 16px;
  background: linear-gradient(180deg, #5b3a1e, #4a2f18); box-shadow: inset 0 0 0 3px #2e7d32, inset 0 0 0 6px #fff, inset 0 10px 30px rgba(0, 0, 0, .4);
}
.track::after { content: ''; position: absolute; right: 30px; top: 8px; bottom: 8px; width: 8px; background: repeating-linear-gradient(0deg, #fff 0 8px, #111 8px 16px); border-radius: 2px; }
.lane { position: relative; height: 30px; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.lane:last-child { border-bottom: 0; }
.runner { --p: 0; position: absolute; top: 50%; left: calc(var(--p) * (100% - 30px)); display: flex; align-items: center; transform: translateY(-50%); }
.runner::before { content: ''; position: absolute; right: 22px; width: calc(var(--trail, 0) * 1px); height: 6px; border-radius: 4px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 80%, transparent)); }
.runner i { position: relative; display: grid; place-items: center; width: 30px; height: 24px; border-radius: 7px; font-style: normal; font-family: var(--display); font-size: 12px; font-weight: 700; color: var(--t, #fff); background: var(--c); box-shadow: 0 4px 8px rgba(0, 0, 0, .5), inset 0 -2px 0 rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .4); }
.runner.win i { box-shadow: 0 0 0 3px var(--gold-2), 0 0 18px var(--gold); }
.race-result { display: flex; align-items: center; gap: 10px; min-height: 40px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.race-result .rank { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-weight: 700; color: var(--text); animation: swapIn .5s var(--ease) both; }
.race-result .rank i { display: grid; place-items: center; width: 26px; height: 22px; border-radius: 6px; font-style: normal; font-family: var(--display); font-size: 11px; background: var(--c); color: var(--t, #fff); }
.race-result .rank small { color: var(--gold-2); font-size: 12px; }

.bet-types { padding: 24px; }
.bet-types h3 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.bet-types ul { display: grid; gap: 8px; }
.bet-types li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.bet-types li:hover { transform: translateX(6px); border-color: rgba(245, 183, 10, .4); }
.bet-types li b { flex: none; display: grid; place-items: center; min-width: 58px; height: 32px; border-radius: 9px; font-size: 13.5px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1200; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.bet-types li:nth-child(2) b { background: linear-gradient(180deg, #4ade80, #16a34a); color: #052e16; }
.bet-types li:nth-child(3) b { background: linear-gradient(180deg, #f472b6, #db2777); color: #fff; }
.bet-types li:nth-child(4) b { background: linear-gradient(180deg, #60a5fa, #2563eb); color: #fff; }
.bet-types li:nth-child(5) b { background: linear-gradient(180deg, #c4b5fd, #7c3aed); color: #fff; }
.bet-types li span { font-size: 14px; color: var(--muted); }

.horse-feats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.horse-feats div { display: flex; flex-direction: column; gap: 4px; padding: 20px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s; }
.horse-feats div:hover { transform: translateY(-6px); border-color: rgba(245, 183, 10, .4); }
.horse-feats svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 8px; }
.horse-feats b { font-size: 15px; }
.horse-feats span { font-size: 12.5px; color: var(--muted); }
.horse-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 56px; }

@media (max-width: 1020px) {
  .horse-feats { grid-template-columns: repeat(3, 1fr); }
  .horse-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .horse-stage { margin-bottom: 52px; }
  .horse-feats { gap: 10px; }
  .horse-feats div { padding: 16px 14px; }
  .horse-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 40px; }
  .race-head { gap: 10px; }
  .race-head .live, .race-head b, .race-head em { white-space: nowrap; }
  .race-head b { font-size: 15px; }
  .race-head em { padding: 5px 10px; font-size: 12px; }
  .bet-types li { gap: 12px; padding: 10px 12px; }
  .bet-types li span { font-size: 13.5px; }
  .monitor-screen { padding: 7px; border-radius: 14px; }
  .monitor-screen img { border-radius: 8px; }
  .monitor-screen::after { inset: 7px; }
  .monitor-neck { height: 24px; }
  .monitor-play { font-size: 14px; padding: 6px 18px 6px 6px; gap: 10px; }
  .monitor-play span { width: 38px; height: 38px; }
  .horse-phone { width: 26%; border-radius: 16px; padding: 3px; right: -1%; bottom: -6%; }
  .horse-phone img { border-radius: 13px; }
  .h-badge { display: none; }
  .horse-feats { grid-template-columns: repeat(2, 1fr); }
  .race, .bet-types { padding: 18px; }
  .track { padding-right: 38px; }
  .track::after { right: 24px; }
}

/* =========================================================
   PLATFORM
   ========================================================= */
.platform { --acc: var(--violet); }
.platform .eyebrow { color: #b69cff; }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; perspective: 1400px; }
.pf {
  position: relative; padding: 28px 24px; border-radius: 22px; overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .3s, opacity 1s var(--ease);
  --acc: #8b5cf6;
}
.pf:nth-child(4n+2) { --acc: #22d3ee; }
.pf:nth-child(4n+3) { --acc: #f5b70a; }
.pf:nth-child(4n+4) { --acc: #ff3d81; }
.pf[data-reveal]:not(.in) { transform: translateY(40px); }
.pf[data-reveal].in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.pf::after { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 60% at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.pf:hover { border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.pf:hover::after { opacity: 1; }
.pf .ic { margin-bottom: 18px; }
.pf h4 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.pf p { font-size: 14px; color: var(--muted); }
@media (max-width: 1020px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pf-grid { gap: 10px; } .pf { padding: 20px 16px; } .pf h4 { font-size: 15.5px; } .pf p { font-size: 13px; } }

/* =========================================================
   PROCESS
   ========================================================= */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps::before { content: ''; position: absolute; left: 6%; right: 6%; top: 58px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--pink), var(--violet), var(--cyan)); opacity: .4; }
.steps li { position: relative; padding: 0 8px; text-align: center; }
.steps li:nth-child(2) { transition-delay: .1s; }
.steps li:nth-child(3) { transition-delay: .2s; }
.steps li:nth-child(4) { transition-delay: .3s; }
.num {
  display: block; font-family: var(--display); font-weight: 900; font-size: 84px; line-height: 1.2; letter-spacing: -.04em;
  color: #1b1b2b;
  text-shadow: 1px 1px 0 #26263a, 2px 2px 0 #222235, 3px 3px 0 #1e1e30, 4px 4px 0 #1a1a2a, 5px 5px 0 #161624, 6px 6px 14px rgba(0, 0, 0, .7);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .12);
  transition: color .4s, transform .5s var(--ease);
}
.steps li:hover .num { color: var(--gold); transform: translateY(-6px) rotateX(10deg); }
.steps svg { display: block; width: 26px; height: 26px; margin: 10px auto 12px; color: var(--gold); }
.steps h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.steps p { font-size: 14.5px; color: var(--muted); max-width: 240px; margin: 0 auto; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 480px) {
  .steps { row-gap: 32px; gap: 12px; }
  .steps li { padding: 0; }
  .num { font-size: 58px; }
  .steps svg { margin: 6px auto 10px; }
  .steps h4 { font-size: 16.5px; }
  .steps p { font-size: 13.5px; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.cta {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 40px;
  padding: 72px 64px; border-radius: 36px; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 0% 50%, rgba(124, 77, 255, .3), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgba(245, 183, 10, .18), transparent 70%), linear-gradient(180deg, #13132a, #0b0b18);
  border: 1px solid var(--line-2);
}
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.cta-orb { position: relative; aspect-ratio: 1; max-width: 340px; width: 100%; margin: 0 auto; transform-style: preserve-3d; perspective: 800px; }
.orb { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff7d6 0%, var(--gold-2) 12%, var(--gold) 30%, #b45309 58%, #3b1d00 85%); box-shadow: 0 40px 80px -20px rgba(245, 183, 10, .55), inset -20px -30px 60px rgba(0, 0, 0, .5); animation: orbFloat 6s ease-in-out infinite; }
.orb::after { content: ''; position: absolute; inset: 8% 30% 60% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .7), transparent); filter: blur(4px); }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(167, 139, 250, .55); transform: rotateX(72deg); animation: ringSpin 10s linear infinite; box-shadow: 0 0 30px rgba(124, 77, 255, .4); }
.ring.r2 { inset: 6%; border-color: rgba(34, 211, 238, .45); transform: rotateX(72deg) rotateY(30deg); animation-duration: 14s; animation-direction: reverse; }
@keyframes ringSpin { to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes orbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.cta-copy h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin: 18px 0 16px; text-wrap: balance; }
.cta-copy p { color: var(--muted); font-size: 17px; text-wrap: pretty; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 900px) {
  .cta { grid-template-columns: minmax(0, 1fr); padding: 48px 24px; text-align: center; }
  .cta-orb { max-width: 220px; }
  .cta-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .cta { gap: 24px; padding: 36px 20px 28px; border-radius: 28px; }
  .cta-orb { max-width: 170px; }
  .cta-copy h2 { font-size: clamp(27px, 8vw, 32px); }
  .cta-copy p { font-size: 15px; }
  .cta-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 26px; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; font-size: 14px; color: var(--muted); }
.footer-menu a:hover { color: var(--text); }
.copy { width: 100%; font-size: 13px; color: var(--dim); }
@media (max-width: 700px) {
  .footer { padding: 36px 0 calc(32px + env(safe-area-inset-bottom)); }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-menu { margin-left: 0; justify-content: center; gap: 6px 18px; }
}

/* =========================================================
   PREVIEW MODAL
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 8, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; }
.modal-panel {
  position: relative; display: flex; flex-direction: column; width: min(1400px, 100%); height: min(900px, 100%);
  border-radius: 24px; overflow: hidden; background: #0c0c16; border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .95);
  opacity: 0; transform: perspective(1200px) rotateX(8deg) translateY(30px) scale(.96); transition: opacity .35s, transform .5s var(--ease);
}
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-panel { opacity: 1; transform: none; }
.modal-bar { display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line); background: #11111d; }
.pv-title { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pv-title b { font-size: 15.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-title span { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-controls { display: flex; gap: 10px; margin: 0 auto; }
.pv-seg { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.pv-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: .2s; }
.pv-seg button:hover { color: var(--text); }
.pv-seg button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-seg button.on { background: var(--gold); color: #1a1200; }
.pv-seg button[hidden] { display: none; }
.pv-actions { display: flex; align-items: center; gap: 8px; }
.pv-close { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .06); transition: background .2s; }
.pv-close:hover { background: rgba(255, 255, 255, .14); }
.pv-close svg { width: 20px; height: 20px; }
.pv-viewport { position: relative; flex: 1; overflow: hidden; background: radial-gradient(60% 60% at 50% 40%, #1a1a2e, #08080f); }
.pv-wrap { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; background: #000; }
.pv-wrap[hidden], .pv-shot[hidden] { display: none; }
.pv-shot { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; outline: none; }
.pv-shot img { display: block; width: 100%; height: auto; }
.pv-viewport[data-device="mo"] .pv-shot {
  inset: 20px auto 20px 50%; width: min(390px, calc(100% - 32px)); transform: translateX(-50%);
  border: 10px solid #15151f; border-radius: 44px; background: #000; scrollbar-width: none;
  box-shadow: 0 0 0 2px #2c2c3c, 0 50px 90px -20px rgba(0, 0, 0, .9);
}
.pv-viewport[data-device="mo"] .pv-shot::-webkit-scrollbar { display: none; }
.pv-hint {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(10, 10, 16, .82); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; transform: translateX(-50%); transition: opacity .4s, transform .4s var(--ease);
}
.pv-hint .ico { width: 15px; height: 15px; transform: rotate(90deg); color: var(--gold); animation: hintBob 1.4s ease-in-out infinite; }
@keyframes hintBob { 50% { translate: 3px 0; } }
.pv-hint.off, .pv-viewport:not([data-view="main"]) .pv-hint { opacity: 0; transform: translateX(-50%) translateY(10px); }
.pv-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.pv-viewport[data-device="mo"] .pv-wrap { box-sizing: content-box; border: 12px solid #15151f; border-radius: 52px; overflow: hidden; box-shadow: 0 0 0 2px #2c2c3c, 0 50px 90px -20px rgba(0, 0, 0, .9); }
.pv-loader { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 14px; pointer-events: none; }
.pv-loader[hidden] { display: none; }
.pv-loader i { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .1); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@media (max-width: 700px) {
  .modal { padding: 0; }
  .modal-panel { border-radius: 0; height: 100%; }
  .modal-bar { flex-wrap: wrap; padding: 10px 12px; gap: 10px; }
  .pv-title { flex: 1; }
  .pv-controls { order: 3; width: 100%; }
  .pv-seg { flex: 1; }
  .pv-seg button { flex: 1; padding: 0 8px; font-size: 12.5px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
