:root {
  --bg: #000;
  --card: #18181b;
  --card-2: #09090b;
  --line: #3f3f46;
  --text: #fafafa;
  --muted: #a1a1aa;
  --pink: #ec366e;
  --pink-2: #da1c5c;
  --violet: #7a1878;
  --amber: #f5b161;
  --header: 84px;
  --font: "Be Vietnam Pro", "Montserrat", "Segoe UI", sans-serif;
  --display: "Montserrat", "Be Vietnam Pro", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.grad {
  background-image: linear-gradient(90deg, #f5b161 0%, #ec366e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-pink {
  background-image: linear-gradient(90deg, #ff9fe1 0%, #c92796 55%, #7a1878 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 48px; width: auto; display: block; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #da1c5c, #7a1878);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.brand-text small { color: var(--muted); font-size: 11px; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 12px;
}
.nav a {
  color: #e4e4e7;
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 0; background: transparent; color: #fff; padding: 8px;
}
.nav-toggle i { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; }
.nav-auth { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  color: #fff;
  background: transparent;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #f5b161;
  outline-offset: 3px;
}
.btn-gold, .btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #da1c5c, #7a1878, #7a1878, #da1c5c);
  background-size: 220% 100%;
  background-position: 0 0;
}
.btn-gold:hover, .btn-primary:hover { background-position: 100% 0; }
.btn-ghost { color: #fff; border-color: #3f3f46; background: transparent; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.link-pink { color: var(--pink); font-weight: 700; font-size: 14px; }
.link-pink:hover { color: #fb7185; }

.hero { padding: 72px 0 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  margin: 0 0 12px;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1, .page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: clamp(40px, 5vw, 68px);
}
.page-hero h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.12; }
.hero-lead, .lead { color: #d4d4d8; font-size: 18px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.hero-note { color: var(--muted); font-size: 13px; margin-top: 14px; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-logo { width: min(100%, 520px); height: auto; }
.wide-banners, .promo-shots { display: grid; gap: 16px; }
.wide-banners { margin-bottom: 16px; }
.promo-shots { grid-template-columns: 1fr 1fr; }
.wide-banners a, .promo-shots a {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #3f3f46;
}
.wide-banners img, .promo-shots img { width: 100%; height: auto; display: block; }
.wide-banners a:hover, .promo-shots a:hover { border-color: #ec366e; }
.glow {
  position: absolute; inset: 30px;
  background:
    radial-gradient(circle at 40% 40%, rgba(218, 28, 92, 0.35), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(122, 24, 120, 0.45), transparent 50%);
  filter: blur(8px);
}
.playing-card {
  position: absolute;
  width: 118px; height: 164px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f4f4f5);
  color: #18181b;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 10px 12px;
  font-weight: 800;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
}
.playing-card b { font-family: var(--display); font-size: 22px; }
.playing-card.red { color: #da1c5c; }
.card-a { left: 36px; top: 90px; transform: rotate(-16deg); }
.card-b { left: 120px; top: 58px; transform: rotate(8deg); }
.chip {
  position: absolute;
  width: 108px; height: 108px; border-radius: 50%;
  right: 36px; bottom: 70px;
  background: repeating-conic-gradient(#f5b161 0 15deg, #18181b 15deg 30deg);
  box-shadow: inset 0 0 0 12px #da1c5c, inset 0 0 0 20px #fff, 0 16px 30px rgba(0,0,0,.4);
}
.coin {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe7f2, #ec366e 42%, #7a1878);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.35);
}
.coin::after {
  content: "79";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; color: #fff;
}
.c1 { width: 84px; height: 84px; left: 8px; bottom: 48px; }
.c2 { width: 58px; height: 58px; right: 130px; top: 36px; }

.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 20px; }
.lane {
  position: relative;
  min-height: 220px;
  border-radius: 18px;
  padding: 22px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #27272a;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.lane:hover { border-color: #ec366e; }
.lane h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.03em; }
.lane p { margin: 0 0 14px; color: var(--muted); }
.lane-slot, .lane-fish, .lane-live {
  background-position: center;
  background-size: cover;
}
.lane-slot { background-image: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.82)), url("/images/km-ak001.webp?v=2"); }
.lane-fish { background-image: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.8)), url("/images/km-code01.webp?v=2"); }
.lane-live { background-image: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.78)), url("/images/km-vip01.webp?v=2"); }

.section { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2, .block-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-head p { margin: 0; color: #d4d4d8; }

.promo-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card, .offer-card, .panel, .link-card, .faq details {
  background: var(--card);
  border: 1px solid #27272a;
  border-radius: 16px;
}
.card, .offer-card { padding: 22px; }
.card:hover, .offer-card:hover { border-color: #a1a1aa; }
.card h3, .offer-card h3 { margin: 8px 0; font-size: 20px; }
.card p, .offer-card p { margin: 0 0 16px; color: var(--muted); }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.stats {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.stat {
  padding: 8px 8px 8px 0;
  border-top: 1px solid #27272a;
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat span, .stat p { color: var(--muted); }
.stat h3 { margin: 10px 0 6px; font-size: 18px; }

.trust { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.chat {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 18px;
  padding: 22px;
}
.bubble {
  max-width: 80%;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #27272a;
}
.bubble.me { margin-left: auto; background: linear-gradient(90deg, #da1c5c, #7a1878); }
.trust-side { display: grid; gap: 16px; }
.mini { padding: 22px; }

.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.link-card { padding: 22px; }
.link-card strong { display: block; font-size: 26px; margin-bottom: 6px; }
.link-card p { color: var(--muted); margin: 0 0 14px; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid #27272a; }
.feature { padding: 28px 28px 28px 0; border-bottom: 1px solid #27272a; }
.feature:nth-child(odd) { padding-right: 40px; border-right: 1px solid #27272a; }
.feature:nth-child(even) { padding-left: 40px; }
.feature h3 { margin: 0 0 8px; font-size: 22px; }
.feature p { margin: 0; color: var(--muted); }

.app-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 36px;
  border-radius: 20px;
  background:
    radial-gradient(500px 180px at 90% 50%, rgba(218, 28, 92, 0.35), transparent 60%),
    #18181b;
  border: 1px solid #27272a;
}
.app-band h2 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.app-band p { margin: 0; color: #d4d4d8; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pills span {
  border: 1px solid #3f3f46;
  border-radius: 999px;
  padding: 6px 12px;
  color: #e4e4e7;
  font-size: 13px;
}

.faq details { padding: 16px 18px; margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.prose { margin-top: 28px; overflow-x: auto; }
.prose h2, .faq h2, .panel h2 { letter-spacing: -0.03em; }
.prose h2 { margin: 1.35em 0 0.45em; font-size: 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #e4e4e7; }
.prose a { color: #f5b161; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; }
.prose th, .prose td { border-bottom: 1px solid rgba(255,255,255,.12); text-align: left; padding: 8px 10px; vertical-align: top; }
.prose th { color: #f5b161; font-weight: 700; }
.prose td { color: #e4e4e7; }

.page-hero { padding: 48px 0 10px; }
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.breadcrumb a { color: #f5b161; }
.split { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 16px; }
.panel { padding: 24px; }
.panel li { margin: 8px 0; }
.panel a { color: #f5b161; }

.footer { border-top: 1px solid #27272a; padding-top: 8px; margin-top: 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 36px 0 10px;
}
.footer h2 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.footer p, .footer a { color: var(--muted); }
.footer .stack a { display: block; padding: 4px 0; }
.footer .stack a:hover { color: #fff; }
.footer-base {
  border-top: 1px solid #27272a;
  padding: 16px 0 28px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: #71717a; font-size: 13px;
}

.modal-root { position: fixed; inset: 0; z-index: 60; display: none; }
.modal-root.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.modal {
  position: relative;
  width: min(440px, calc(100% - 28px));
  margin: 12vh auto 0;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid #3f3f46;
  background: #18181b;
}
.modal h2 { margin: 0 0 6px; }
.modal p { color: var(--muted); margin-top: 0; }
.modal label { display: block; font-size: 13px; margin: 12px 0 6px; }
.modal input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #3f3f46;
  background: #09090b;
  color: #fff;
  padding: 12px;
}
.modal .btn { width: 100%; margin-top: 16px; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #3f3f46; background: transparent; color: #fff; cursor: pointer;
}
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(12px);
  background: #18181b; color: #fff;
  border: 1px solid #3f3f46; border-radius: 999px;
  padding: 12px 18px; z-index: 70; opacity: 0; pointer-events: none;
  transition: 0.25s ease; max-width: min(560px, calc(100% - 24px)); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: var(--header); left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    padding: 8px 18px 18px;
    background: #18181b;
    border-bottom: 1px solid #27272a;
    z-index: 50;
  }
  .nav.open { display: flex; }
  .header-actions { display: none; }
  .nav.open .nav-auth { display: flex; gap: 10px; padding-top: 8px; }
}
@media (max-width: 980px) {
  .hero-grid, .lanes, .promo-grid, .feature-grid, .stats, .trust, .link-grid, .split, .footer-grid, .offer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid, .stats, .trust, .split, .footer-grid, .app-band { grid-template-columns: 1fr; }
  .app-band { display: grid; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(odd), .feature:nth-child(even) {
    border-right: 0; padding: 22px 0;
  }
}
@media (max-width: 680px) {
  .lanes, .promo-grid, .feature-grid, .link-grid, .offer-grid, .stats, .promo-shots { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .footer-base { flex-direction: column; }
}
@media (min-width: 1101px) {
  :root { --header: 96px; }
  .container { width: min(1440px, calc(100% - 80px)); }
  .header { background: rgba(0, 0, 0, 0.72); }
  .header-inner { gap: 48px; }
  .brand img { height: 58px; }
  .nav {
    flex: 1;
    justify-content: center;
    gap: 40px;
    margin: 0;
  }
  .nav > a {
    font-size: 15px;
    font-weight: 500;
    color: #d4d4d8;
  }
  .header-actions { gap: 22px; }
  .header-actions .btn-ghost {
    border: 0;
    padding: 0;
    background: none;
    color: #fff;
    font-weight: 600;
  }
  .header-actions .btn-ghost:hover { color: #ec366e; transform: none; filter: none; }
  .header-actions .btn-gold { padding: 10px 22px; font-size: 14px; }

  .hero {
    padding: 72px 0 28px;
    background:
      radial-gradient(700px 320px at 78% 30%, rgba(218, 28, 92, 0.28), transparent 70%),
      radial-gradient(520px 280px at 88% 70%, rgba(122, 24, 120, 0.35), transparent 70%);
  }
  .hero h1 { font-size: 78px; max-width: 760px; }
  .hero-lead { font-size: 18px; max-width: 560px; color: #e4e4e7; }
  .hero-logo { width: min(100%, 620px); filter: drop-shadow(0 30px 40px rgba(218, 28, 92, 0.25)); }

  .lanes { gap: 22px; margin-top: 18px; }
  .lane { min-height: 340px; padding: 28px; border-radius: 22px; }
  .lane h2 { font-size: 40px; }
  .lane p { max-width: 280px; }

  .section { padding: 88px 0; }
  .section-head { max-width: 820px; margin-bottom: 36px; }
  .section-head h2 { font-size: 56px; }
  .wide-banners { grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
  .promo-shots { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .wide-banners a, .promo-shots a { border-radius: 22px; transition: transform 0.2s ease, border-color 0.2s ease; }
  .wide-banners a:hover, .promo-shots a:hover { transform: translateY(-4px); }

  .stats { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .stat { border: 0; padding: 0 12px 0 0; }
  .stat strong {
    font-size: 68px;
    background: linear-gradient(90deg, #fff 0%, #f5b161 45%, #ec366e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .feature { padding-top: 36px; padding-bottom: 36px; }
  .app-band { padding: 48px 56px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
