:root {
  --bg: #090611;
  --bg-soft: #10091d;
  --panel: rgba(25, 13, 47, 0.92);
  --panel-2: rgba(17, 10, 32, 0.92);
  --purple: #7918d4;
  --purple-bright: #c327ff;
  --pink: #f014a5;
  --gold: #f8c84c;
  --gold-2: #fff09a;
  --text: #f7f4ff;
  --muted: #aea5bd;
  --line: rgba(170, 94, 255, 0.28);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  --radius: 16px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 18%, rgba(130, 0, 224, 0.18), transparent 32%),
    linear-gradient(180deg, #0c0716 0%, #08050f 45%, #10091c 100%);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .13;
  pointer-events: none;
}
.ambient-one { top: 320px; left: -180px; background: #8217ff; }
.ambient-two { top: 800px; right: -220px; background: #ff0a94; }

.utility-bar {
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: #080611;
  color: #c9c1d5;
  font-size: 10px;
}
.utility-inner { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-inner strong { color: var(--gold); }
.utility-links { display: flex; align-items: center; gap: 22px; }
.utility-links a:hover { color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 7, 26, .9);
  border-bottom: 1px solid rgba(232, 182, 55, .2);
  backdrop-filter: blur(15px);
}
.header-inner { min-height: 76px; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 28px; }
.brand {
  width: 190px;
  min-width: 190px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}
.brand img {
  width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  image-rendering: auto;
}
.desktop-nav { display: flex; justify-content: center; align-items: center; gap: 24px; text-transform: uppercase; font-size: 10px; font-weight: 700; }
.desktop-nav a { position: relative; color: #d7cfdf; padding: 28px 0 24px; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 17px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: .25s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--gold-2); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; gap: 10px; }
.btn { min-width: 96px; padding: 10px 18px; border-radius: 10px; text-align: center; text-transform: uppercase; font-size: 10px; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--gold); background: rgba(255,255,255,.02); }
.btn-primary { color: #1b1027; background: linear-gradient(180deg, #fff4a5, #e7a919); box-shadow: 0 8px 24px rgba(237, 177, 29, .24); }

.hero-section {
  padding: 0 0 4px;
  background: #120720;
}
.hero-section > .container {
  width: 100%;
  max-width: none;
}
.hero-frame, .media-frame {
  overflow: hidden;
  border: 1px solid rgba(240, 191, 56, .75);
  border-radius: 18px;
  background: #190b31;
  box-shadow: 0 0 0 4px rgba(102, 20, 170, .2), var(--shadow);
}
.hero-frame {
  width: 100%;
  max-width: 2048px;
  margin-inline: auto;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 16px 54px rgba(0, 0, 0, .42), 0 0 42px rgba(122, 24, 212, .18);
}
.hero-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #1b0734;
}
.hero-dots { height: 24px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.hero-dots button { width: 24px; height: 4px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.18); }
.hero-dots button.active { background: linear-gradient(90deg, var(--gold), var(--pink)); }

.ticker { border-block: 1px solid rgba(255,255,255,.05); background: rgba(21, 9, 39, .9); }
.ticker-inner { min-height: 38px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px; }
.ticker-label { color: var(--gold); font-weight: 800; }
.ticker-copy { color: #cfc7d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-value { color: var(--gold); font-weight: 800; }
.ticker-side { color: #e5dded; }

.jackpot-section { padding: 22px 0 16px; }
.jackpot-card { position: relative; overflow: hidden; border-radius: 20px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.45)); }
.jackpot-card > img { width: 100%; height: auto; }
.jackpot-counter-wrap {
  position: absolute;
  left: 56.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 34%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  color: #f9d6ff;
  text-shadow: 0 0 9px #d817ff, 0 0 22px rgba(216, 23, 255, .85);
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
}
.jackpot-counter-wrap .currency { font-size: clamp(13px, 1.3vw, 22px); font-weight: 800; }
.jackpot-counter { font-size: clamp(17px, 2vw, 34px); font-weight: 700; font-variant-numeric: tabular-nums; }

.quick-menu { padding: 3px 0 20px; }
.quick-menu-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.quick-item { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(39, 17, 70, .86), rgba(19, 10, 34, .95)); font-weight: 800; text-transform: uppercase; transition: .22s; }
.quick-item:hover { border-color: rgba(248,200,76,.65); transform: translateY(-2px); background: linear-gradient(180deg, rgba(70, 20, 115, .92), rgba(29, 12, 51, .98)); }
.quick-icon { font-size: 22px; filter: drop-shadow(0 0 10px rgba(174,50,255,.55)); }

.games-section { padding: 2px 0 20px; }
.game-panel { margin-bottom: 14px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(32, 15, 57, .84), rgba(14, 8, 26, .94)); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.section-heading { min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.section-heading h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .2px; }
.section-heading h2 span { margin-right: 6px; }
.text-btn { border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 7px 12px; color: #e9e2f2; background: rgba(255,255,255,.04); cursor: pointer; font-size: 10px; }
.text-btn:hover { color: var(--gold); border-color: rgba(248,200,76,.4); }
.game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.game-card { position: relative; overflow: hidden; min-width: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: #100a1d; transition: transform .24s, border-color .24s, box-shadow .24s; }
.game-card:hover { transform: translateY(-5px); border-color: rgba(248,200,76,.65); box-shadow: 0 14px 26px rgba(0,0,0,.38), 0 0 22px rgba(157,34,244,.18); }
.game-card img { width: 100%; aspect-ratio: 173/200; object-fit: cover; }
.game-card .play-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,5,18,.5); opacity: 0; transition: opacity .22s; }
.game-card:hover .play-overlay { opacity: 1; }
.play-overlay span { padding: 8px 13px; border-radius: 999px; background: linear-gradient(180deg, #f6d977, #cf8f10); color: #1b1027; font-size: 9px; font-weight: 900; text-transform: uppercase; }

.apk-banner { padding: 4px 0 26px; }
.media-frame {
  display: block;
  width: 100%;
  height: auto;
  border-color: rgba(170, 86, 255, .65);
}
.media-frame img,
.media-frame .apk-banner-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.media-frame:hover img { transform: scale(1.01); }
.media-frame img { transition: transform .45s; }

.articles-section { padding: 10px 0 24px; }
.center-heading { max-width: 720px; margin: 0 auto 20px; text-align: center; }
.center-heading > span { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }
.center-heading h2 { margin: 4px 0 6px; font-size: 24px; line-height: 1.2; }
.center-heading p { margin: 0; color: var(--muted); }
.center-heading.compact { margin-bottom: 14px; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.article-card { display: grid; grid-template-columns: 64px 1fr; gap: 16px; min-height: 140px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(36,17,65,.86), rgba(16,9,30,.98)); }
.article-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(248,200,76,.55); border-radius: 50%; background: radial-gradient(circle, rgba(248,200,76,.22), transparent 60%), #1a0f2e; color: var(--gold); font-size: 20px; font-weight: 900; }
.article-card h3 { margin: 0 0 6px; font-size: 13px; }
.article-card p { margin: 0 0 7px; color: var(--muted); font-size: 10px; }
.article-card a { color: var(--gold); font-size: 10px; font-weight: 700; }
.long-article { margin-top: 14px; padding: 22px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(17,10,31,.75); color: #b7aec3; }
.long-article h1 { margin: 0 0 10px; color: #f8f4ff; font-size: 17px; }
.long-article h2 { margin: 16px 0 6px; color: #eee6f8; font-size: 13px; }
.long-article p { margin: 0 0 8px; font-size: 10px; }

.trust-section { padding: 0 0 18px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(24,13,43,.85); }
.trust-item { display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 12px 18px; border-right: 1px solid rgba(255,255,255,.07); }
.trust-item:last-child { border-right: 0; }
.trust-item > span { font-size: 25px; }
.trust-item strong, .trust-item small { display: block; }
.trust-item strong { font-size: 11px; text-transform: uppercase; }
.trust-item small { margin-top: 1px; color: var(--muted); font-size: 9px; }

.payment-section { padding-bottom: 18px; }
.payment-section .container { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(20,11,37,.88); }
.panel-title { margin-bottom: 10px; text-align: center; color: #c9bfd5; font-size: 9px; letter-spacing: 1px; }
.payment-list { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.payment-list span { min-height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: rgba(255,255,255,.025); color: #dcd4e6; font-size: 9px; font-weight: 800; }

.providers-section { padding: 6px 0 30px; }
.provider-panel { margin-bottom: 10px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(18,10,33,.92); }
.provider-label { margin-bottom: 4px; color: var(--gold); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.provider-panel img { width: 100%; max-height: 190px; object-fit: contain; object-position: left center; }

.site-footer { border-top: 1px solid rgba(248,200,76,.18); background: #090612; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 36px; padding: 34px 0 28px; }
.footer-brand img { width: 180px; height: 50px; object-fit: contain; margin-bottom: 9px; }
.footer-brand p { color: var(--muted); font-size: 9px; }
.footer-grid h3 { margin: 4px 0 12px; color: #f3edf9; font-size: 10px; text-transform: uppercase; }
.footer-grid > div > a:not(.social-row a) { display: block; margin: 6px 0; color: #aaa0b7; font-size: 9px; }
.footer-grid a:hover { color: var(--gold); }
.social-row { display: flex; gap: 8px; margin-top: 12px; }
.social-row a { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.03); }
.download-button { padding: 8px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.03); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-top: 1px solid rgba(255,255,255,.06); color: #867c91; font-size: 9px; }

.mobile-bottom-nav { display: none; }

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: 160px 1fr auto; gap: 16px; }
  .desktop-nav { gap: 13px; font-size: 9px; }
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .payment-list { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr repeat(2, 1fr); }
}

@media (max-width: 780px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .utility-bar, .desktop-nav { display: none; }
  .site-header { position: relative; }
  .header-inner { min-height: 64px; grid-template-columns: 1fr auto; }
  .brand { width: 150px; min-width: 150px; height: 48px; }
  .brand img { max-height: 48px; }
  .header-actions .btn { min-width: 76px; padding: 8px 11px; }
  .hero-section { padding-top: 0; }
  .hero-frame { border-radius: 0 0 12px 12px; }
  .hero-frame img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; background: #16082b; }
  .apk-banner { padding: 4px 0 18px; }
  .apk-banner .media-frame {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  .apk-banner .media-frame img,
  .apk-banner .media-frame .apk-banner-image {
    width: 100%;
    height: auto !important;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
  .ticker-inner { grid-template-columns: auto 1fr; gap: 10px; }
  .ticker-value, .ticker-side { display: none; }
  .jackpot-section { padding-top: 12px; }
  .jackpot-counter-wrap { left: 54%; width: 37%; gap: 5px; letter-spacing: 0; }
  .quick-menu-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .quick-item { min-height: 64px; flex-direction: column; gap: 2px; font-size: 8px; }
  .quick-icon { font-size: 20px; }
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .article-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .payment-list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; justify-content: center; gap: 2px; padding: 8px 0; }
  .mobile-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding: 5px 8px env(safe-area-inset-bottom);
    border-top: 1px solid rgba(192, 53, 255, .35);
    background: rgba(10, 7, 20, .96);
    backdrop-filter: blur(18px);
  }
  .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #a99fb4; font-size: 8px; font-weight: 700; }
  .mobile-bottom-nav a > span { font-size: 20px; line-height: 1; }
  .mobile-bottom-nav a:first-child { color: var(--pink); }
  .mobile-bottom-nav .register-orb { width: 66px; height: 66px; margin: -21px auto 0; border: 4px solid #170c29; border-radius: 50%; color: white; background: linear-gradient(180deg, #f21baf, #8b168f); box-shadow: 0 0 24px rgba(242, 27, 175, .5); }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 18px), var(--container)); }
  .header-inner { gap: 8px; }
  .header-actions { gap: 5px; }
  .header-actions .btn { min-width: 65px; font-size: 8px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item span:last-child { font-size: 7px; }
  .article-card { grid-template-columns: 48px 1fr; padding: 14px; }
  .article-icon { width: 44px; height: 44px; font-size: 16px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .payment-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}


/* V4 URL/CTA update */
.footer-logo-link { display: inline-flex; }
.footer-seo-link { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.social-row span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.05); color: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.08); cursor: default; }
