:root {
  --bg: #0a1533;
  --bg-2: #0d1b40;
  --panel: #0f1f47;
  --panel-2: #14285a;
  --blue: #29b6ff;
  --blue-2: #1e9be0;
  --gold: #ffc21c;
  --gold-2: #ffb300;
  --green: #3ddc6a;
  --text: #eaf1ff;
  --muted: #9fb2d8;
  --border: rgba(120, 160, 255, 0.18);
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 15px; letter-spacing: 0.4px;
  border: none; border-radius: 10px; cursor: pointer;
  padding: 13px 26px; text-transform: uppercase; transition: transform .12s ease, filter .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #201400; box-shadow: 0 8px 20px rgba(255,194,28,.25); }
.btn-blue { background: linear-gradient(180deg, var(--blue), var(--blue-2)); color: #04203a; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--border); }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Top offer ticker ---------- */
.ticker {
  background: linear-gradient(90deg, #12245a, #1c3a86, #12245a);
  border-bottom: 1px solid var(--border);
  overflow: hidden; white-space: nowrap;
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 40px;
  padding: 9px 0; animation: ticker 26s linear infinite; font-weight: 800; font-size: 14px;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; }
.ticker img { width: 22px; height: 22px; }
.ticker .hl { color: var(--gold); }
.ticker .hl-g { color: var(--green); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 21, 51, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1180px; margin: 0 auto; }
.nav-logo img { height: 34px; }
.nav-actions { display: flex; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: 60px 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url('/images/01_background-page.webp') center top / cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,21,51,.2), var(--bg) 92%); }
.hero-circle { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 620px; max-width: 120vw; z-index: -1; opacity: .9; pointer-events: none; }
.hero h1 { font-size: clamp(34px, 6vw, 66px); font-weight: 900; line-height: .98; letter-spacing: -1px; text-shadow: 0 4px 30px rgba(41,182,255,.35); }
.hero h1 .b { color: var(--blue); }
.hero h1 .g { color: var(--gold); }
.hero-players { display: flex; justify-content: center; gap: 18px; margin: 34px 0; flex-wrap: wrap; }
.player-card { width: 190px; border-radius: 12px; overflow: hidden; border: 4px solid #fff; background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.35); transform: rotate(-2deg); }
.player-card:nth-child(2) { transform: rotate(1.5deg) translateY(-14px); }
.player-card:nth-child(3) { transform: rotate(2.5deg); }
.player-card img { aspect-ratio: 3/4; object-fit: cover; }

.hero-sub { margin-top: 10px; }
.hero-sub h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; }
.hero-sub h2 .b { color: var(--blue); }
.hero-sub p { color: var(--muted); font-weight: 700; margin: 8px 0 22px; }

/* floating decor */
.decor { position: absolute; z-index: -1; pointer-events: none; animation: float 6s ease-in-out infinite; }
.decor.d1 { width: 90px; top: 120px; left: 6%; }
.decor.d2 { width: 70px; top: 260px; right: 7%; animation-delay: 1s; }
.decor.d3 { width: 60px; top: 440px; left: 10%; animation-delay: 2s; }
.decor.d4 { width: 80px; top: 500px; right: 11%; animation-delay: .5s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(6deg); } }

/* ---------- Coverflow carousel ---------- */
.coverflow { position: relative; height: 340px; margin: 46px auto 0; max-width: 920px; perspective: 1300px; overflow: hidden; }
.cf-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.cf-card {
  position: absolute; top: 50%; left: 50%; width: 200px; height: 270px;
  margin: -135px 0 0 -100px; border-radius: 16px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(120,160,255,.25); background: var(--panel);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  transition: transform .5s cubic-bezier(.25,.8,.3,1), opacity .5s ease, filter .5s ease;
  will-change: transform;
}
.cf-card img { width: 100%; height: 100%; object-fit: cover; }
.cf-card .cf-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 12px;
  font-size: 15px; font-weight: 900; text-align: center; line-height: 1.1;
  background: linear-gradient(180deg, rgba(6,11,30,0), rgba(6,11,30,.92)); text-shadow: 0 2px 6px rgba(0,0,0,.8);
}
.cf-card .cf-prov { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.cf-card.is-center { border-color: var(--gold); box-shadow: 0 26px 60px rgba(0,0,0,.6), 0 0 0 2px var(--gold); }
.cf-card.is-center .cf-lock { display: flex; }
.cf-card .cf-lock {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, rgba(10,21,51,.15), rgba(10,21,51,.55)); opacity: 0; transition: opacity .2s;
}
.cf-card.is-center:hover .cf-lock { opacity: 1; }
.cf-card .cf-lock .cf-cta { background: var(--gold); color: #201400; font-weight: 800; font-size: 12px; text-transform: uppercase; padding: 8px 14px; border-radius: 8px; }
.cf-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(10,21,51,.7); color: #fff; font-size: 22px; cursor: pointer; backdrop-filter: blur(6px);
}
.cf-nav:hover { background: rgba(41,182,255,.3); }
.cf-nav.prev { left: 4px; }
.cf-nav.next { right: 4px; }

@media (max-width: 700px) {
  .coverflow { height: 300px; max-width: 100%; }
  .cf-card { width: 160px; height: 216px; margin: -108px 0 0 -80px; }
  .cf-nav { width: 40px; height: 40px; font-size: 20px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-title { text-align: center; font-size: clamp(26px, 4vw, 44px); font-weight: 900; margin-bottom: 8px; }
.section-title .b { color: var(--blue); }
.section-title .g { color: var(--gold); }
.section-sub { text-align: center; color: var(--muted); font-weight: 700; margin-bottom: 30px; }

/* ---------- Games grid ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.game {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--panel);
  cursor: pointer; aspect-ratio: 3/4; transition: transform .15s ease, box-shadow .15s ease;
}
.game:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0,0,0,.4); }
.game img { width: 100%; height: 100%; object-fit: cover; }
.game .lock {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, rgba(10,21,51,.05), rgba(10,21,51,.78));
  opacity: 0; transition: opacity .18s ease;
}
.game:hover .lock { opacity: 1; }
.game .lock .lock-icon { font-size: 26px; }
.game .lock .lock-cta { font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; background: var(--gold); color: #201400; padding: 8px 14px; border-radius: 8px; }
.game .badge-lock { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px; }

/* ---------- Providers ---------- */
.providers { text-align: center; padding: 30px 0; }
.providers img { margin: 0 auto; opacity: .85; max-width: 100%; }

/* ---------- Play within minutes ---------- */
.playmin { position: relative; text-align: center; padding: 40px 0 0; }
.playmin .chars { width: 100%; max-width: 720px; margin: 20px auto 0; }
.playmin p { color: var(--muted); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #060d24; border: 1px solid var(--border); border-radius: 10px; padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 800; color: var(--blue); display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 20px; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); padding: 0 0 16px; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: #05091c; border-top: 1px solid var(--border); padding: 40px 0 26px; margin-top: 40px; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo img { height: 30px; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials img { width: 22px; height: 22px; opacity: .8; }
.footer-cols { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; margin: 28px 0; text-align: center; }
.footer-cols h4 { font-size: 13px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; letter-spacing: .5px; }
.footer-cols a, .footer-cols span { display: block; color: var(--muted); font-size: 14px; margin: 6px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-legal { max-width: 900px; margin: 0 auto; text-align: center; color: #6b7ba6; font-size: 12px; line-height: 1.6; }
.footer-badge { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.footer-badge img { width: 34px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(4, 9, 25, 0.86); backdrop-filter: blur(6px);
  overflow-y: auto; padding: 30px 16px;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.modal {
  position: relative; width: 100%; max-width: 460px; margin: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: 18px; padding: 38px 34px 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,.05);
  color: var(--text); font-size: 20px; cursor: pointer; line-height: 1; transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,.14); }
.modal-logo { height: 34px; margin: 0 auto 6px; }
.modal h2 { text-align: center; font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.modal .modal-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.field input {
  width: 100%; padding: 13px 14px; border-radius: 10px; font-size: 15px;
  background: #071031; border: 1px solid var(--border); color: var(--text); outline: none; transition: border-color .15s;
}
.field input:focus { border-color: var(--blue); }
.field.phone-field { display: flex; gap: 8px; }
.field-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.field input[type="date"] { color-scheme: dark; }
.field.phone-field .phone-cc {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  padding: 13px 16px; border-radius: 10px; background: #071031;
  border: 1px solid var(--border); color: var(--text); font-size: 15px; font-weight: 700;
}
.field.phone-field input { flex: 1; }

.agree { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; }
.agree input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--gold); }
.agree label { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.agree a { color: var(--blue); }

.form-error { background: rgba(255,80,80,.12); border: 1px solid rgba(255,80,80,.4); color: #ffb3b3; font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; display: none; }
.form-error.show { display: block; }
.form-success { background: rgba(61,220,106,.12); border: 1px solid rgba(61,220,106,.4); color: #b6f7c9; font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; display: none; }
.form-success.show { display: block; }

.modal-switch { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.modal-switch a { color: var(--blue); font-weight: 700; cursor: pointer; }

/* Hard scroll/interaction lock while the auth modal is open (position:fixed stops mobile scroll) */
body.modal-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

@media (max-width: 640px) {
  .modal-overlay { padding: 16px 12px; align-items: flex-start; }
  .modal { padding: 34px 20px 26px; max-width: 100%; }
  .modal h2 { font-size: 23px; }
  .nav-logo img { height: 26px; }

  .nav-inner { padding: 12px 14px; }
  .nav-actions { gap: 8px; }
  .btn { padding: 10px 16px; font-size: 13px; }
  .btn-lg { padding: 14px 26px; font-size: 15px; }

  /* Hero: tighter, no overlap */
  .hero { padding: 28px 0 20px; }
  .hero h1 { font-size: 32px; margin-bottom: 6px; }
  .hero-circle { width: 420px; top: 10px; opacity: .8; }
  .hero-players { gap: 6px; margin: 18px 0 6px; }
  .player-card { width: 116px; border-width: 3px; }
  .player-card:nth-child(2) { transform: rotate(1.5deg) translateY(-6px); }
  .hero-sub h2 { font-size: 26px; }
  .hero-sub p { font-size: 14px; margin: 8px 0 18px; }

  /* Tame the floating decor so it doesn't crowd text on small screens */
  .decor.d1 { width: 50px; left: 1%; top: 90px; }
  .decor.d2 { width: 42px; right: 1%; top: 200px; }
  .decor.d3, .decor.d4 { display: none; }

  .section { padding: 34px 0; }
  .section-title { font-size: 26px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
  .providers { padding: 18px 0; }

  .footer-cols { gap: 26px; }
  .playmin .chars { margin-top: 10px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .hero-circle { width: 360px; }
  .player-card { width: 104px; }
  .nav-actions .btn { padding: 9px 12px; font-size: 12px; }
}
