/* ===================== TOKENS — PREMIUM GRADIENT THEME ===================== */
:root{
  --yellow: #FFC700;
  --yellow-light: #FFE066;
  --yellow-deep: #D89B00;

  --white: #FFFFFF;
  --grey: #C3C8DA;
  --grey-soft: #8b90a8;
  --danger: #E5484D;
  --success: #34C77B;

  --radius: 10px;
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Deep navy-indigo — premium, no black */
  --grad-dark: linear-gradient(160deg, #232c52 0%, #1a2140 45%, #121631 100%);
  --grad-dark-deep: linear-gradient(160deg, #1c2444 0%, #121631 100%);

  /* Premium gold — softer, richer, less neon */
  --grad-gold: linear-gradient(135deg, #FFE8A3 0%, #FFC700 50%, #D89B00 100%);
  --grad-gold-soft: linear-gradient(135deg, rgba(255,199,0,.18), rgba(255,199,0,.05));

  /* Card glass effect on dark sections */
  --grad-card: linear-gradient(160deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  --card-border: rgba(255,199,0,.22);

  --glow-gold: 0 10px 30px rgba(255, 199, 0, 0.14), 0 4px 14px rgba(18,22,49,.35);
  --glow-gold-soft: 0 4px 16px rgba(255, 199, 0, 0.12);
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--font-body);
  background: var(--white);
  color: #1a1a1a;
  line-height:1.5;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; border:none; }
a{ color:inherit; text-decoration:none; }

/* ===================== TOP BAR — SINGLE LINE, MOBILE FIRST ===================== */
.topbar{
  background: var(--grad-dark);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top:0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.15);
}
.topbar-inner{
  max-width: 1200px;
  margin:0 auto;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap: nowrap;
  gap: 8px;
}
.logo{ display:flex; align-items:center; gap:6px; flex-shrink:0; }
.logo-mark{
  font-family: var(--font-display);
  background: var(--grad-gold);
  color: #1a2140;
  padding: 3px 7px;
  font-size: 15px;
  letter-spacing: -1px;
  transform: skewX(-8deg);
  display:inline-block;
  border-radius: 4px;
  box-shadow: var(--glow-gold-soft);
}
.logo-mark .logo-x{ color:var(--danger); }
.logo-text{
  font-family: var(--font-display);
  color: var(--white);
  font-size: 15px;
  letter-spacing: .5px;
  white-space: nowrap;
}
.logo-text span{ color: var(--yellow); }

.contact-strip{
  display:flex;
  gap: 8px;
  flex-wrap: nowrap;
  min-width:0;
}
.contact-item{
  display:flex;
  align-items:center;
  gap:5px;
  color: var(--white);
  font-size: 11px;
  padding: 6px 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  white-space: nowrap;
  overflow:hidden;
  transition: border-color .15s ease, background .15s ease;
}
.contact-item:hover{ border-color: var(--card-border); background: rgba(255,199,0,.06); }
.contact-item svg{ width:14px; height:14px; flex-shrink:0; color: var(--yellow); }
.contact-item.whatsapp svg{ color:#3ED67A; }
.contact-item strong{ font-weight:700; font-size:11px; overflow:hidden; text-overflow:ellipsis; }

@media (min-width: 480px){
  .contact-item{ font-size:13px; padding:7px 14px; }
  .contact-item strong{ font-size:13px; }
  .contact-item svg{ width:15px; height:15px; }
  .logo-mark{ font-size:18px; padding:4px 8px; }
  .logo-text{ font-size:18px; }
}

/* ===================== SLIDER ===================== */
.slider{
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--grad-dark-deep);
}
@media (min-width:640px){ .slider{ height: 380px; } }

.slides{
  display:flex;
  height:100%;
  transition: transform .6s cubic-bezier(.65,0,.35,1);
}
.slide{
  min-width:100%;
  height:100%;
  position: relative;
}
.slide-img{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
}
.slide::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(18,22,49,.92) 0%, rgba(18,22,49,.25) 50%, rgba(18,22,49,.45) 100%);
}
.slide-content{
  position:absolute;
  left: 16px;
  bottom: 16px;
  z-index:2;
  max-width: 78%;
  color: var(--white);
}
.slide-tag{
  display:inline-block;
  background: var(--grad-gold);
  color: #1a2140;
  font-weight:800;
  font-size:10px;
  letter-spacing: .5px;
  padding: 3px 8px;
  margin-bottom: 6px;
  border-radius: 4px;
  box-shadow: var(--glow-gold-soft);
}
.slide-content h2{
  font-family: var(--font-display);
  font-size: clamp(14px, 3.2vw, 20px);
  line-height:1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.slider-dots{
  position:absolute;
  bottom: 10px;
  right: 14px;
  display:flex;
  gap: 6px;
  z-index: 3;
}
.dot{
  width: 6px; height:6px;
  background: rgba(255,255,255,.3);
  border-radius: 50%;
  cursor:pointer;
  transition: all .2s ease;
}
.dot.active{
  background: var(--yellow);
  width: 16px;
  border-radius: 3px;
}

/* ===================== WHATSAPP CTA ===================== */
.wa-cta{
  background: linear-gradient(120deg, #1e8f57 0%, #167a49 55%, #0f6b3f 100%);
  padding: 18px 16px;
}
.wa-cta-inner{
  max-width: 1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap:wrap;
}
.wa-cta-icon{
  width: 42px; height:42px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.wa-cta-icon svg{ width:22px; height:22px; color:var(--white); }
.wa-cta-text{ flex: 1 1 240px; color: var(--white); }
.wa-cta-text h3{ font-size:15px; margin-bottom:3px; font-weight:800; }
.wa-cta-text p{ font-size:12.5px; opacity:.92; line-height:1.4; }
.wa-cta-btn{
  background: var(--white);
  color: #0f6b3f;
  font-weight:800;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 20px;
  flex-shrink:0;
  white-space:nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transition: transform .12s ease;
}
.wa-cta-btn:hover{ transform: translateY(-1px); }

/* ===================== ANNOUNCEMENT ===================== */
.announcement{
  background: var(--grad-gold);
}
.announcement-inner{
  max-width: 1200px;
  margin:0 auto;
  padding: 18px 20px;
  text-align:center;
}
.announcement-tag{
  display:inline-block;
  background: rgba(28,24,18,.9);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing:.5px;
}
.announcement-inner h3{
  font-family: var(--font-display);
  font-size: clamp(17px,3vw,24px);
  color: #1a2140;
  margin-bottom: 4px;
}
.announcement-inner p{
  font-size: 13px;
  color: #4a3a10;
  font-weight:600;
}
.announcement.hidden{ display:none; }

/* ===================== MODES / SECTIONS ===================== */
.modes{
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px 24px;
}
.section-title{
  font-family: var(--font-display);
  font-size: clamp(22px,4vw,32px);
  text-align:center;
  margin-bottom: 32px;
  position: relative;
  color: #1a1a1a;
}
.section-title::after{
  content:"";
  display:block;
  width: 56px;
  height: 4px;
  background: var(--grad-gold);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title.light{ color: var(--white); }

.sections-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 720px){
  .sections-grid{ grid-template-columns: 1fr 1fr; }
}

.game-section{
  background: var(--grad-dark);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--glow-gold);
  border: 1px solid var(--card-border);
  display:flex;
  flex-direction:column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.game-section:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255,199,0,.16), 0 4px 10px rgba(0,0,0,.3);
}
.section-media{
  position: relative;
  height: 170px;
}
.section-media img{
  width:100%; height:100%; object-fit:cover;
}
.section-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(18,22,49,.1) 0%, rgba(18,22,49,.85) 100%);
}
.entry-tag{
  position:absolute;
  top: 10px; left: 10px;
  z-index:2;
  background: rgba(18,22,49,.72);
  backdrop-filter: blur(4px);
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-size: 11px;
  font-weight:700;
  padding: 5px 10px;
  border-radius: 20px;
}
.players-badge{
  position:absolute;
  top: 10px; right: 10px;
  z-index:2;
  background: var(--grad-gold);
  color: #1a2140;
  font-size: 11px;
  font-weight:800;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: var(--glow-gold-soft);
}

.section-info{
  padding: 18px 20px 20px;
  color: var(--white);
  flex:1;
  display:flex;
  flex-direction:column;
}
.section-info h3{
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 14px;
}
.stats-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.stat{
  background: var(--grad-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 9px 10px;
}
.stat span{
  display:block;
  font-size: 11px;
  color: var(--grey);
  margin-bottom: 3px;
}
.stat strong{
  font-size: 15px;
  font-family: var(--font-display);
  color: var(--white);
}
.stat.highlight strong{ color: var(--yellow-light); }
.stat.special{
  grid-column: span 2;
  background: var(--grad-gold-soft);
  border-color: rgba(255,199,0,.28);
}
.stat.special strong{ color: var(--yellow-light); font-size:14px; }

.prize-table{
  width:100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 13.5px;
}
.prize-table td{
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--white);
}
.prize-table td:first-child{ color: var(--yellow-light); font-weight:700; }
.prize-table td:last-child{ text-align:right; font-weight:700; }

.withdraw-note{
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 14px;
}
.withdraw-note em{ color:var(--grey-soft); font-style:normal; }
.withdraw-note.strong{
  background: var(--grad-gold-soft);
  color: var(--yellow-light);
  font-weight:700;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,199,0,.2);
}

.register-btn{
  margin-top:auto;
  width:100%;
  background: var(--grad-gold);
  color: #1a2140;
  font-family: var(--font-display);
  font-size: 15px;
  padding: 14px;
  border-radius: 8px;
  letter-spacing: .5px;
  box-shadow: var(--glow-gold-soft);
  transition: transform .12s ease, filter .12s ease;
}
.register-btn:hover{ filter:brightness(1.06); transform: translateY(-1px); }
.register-btn.closed{
  background: rgba(255,255,255,.06);
  color: var(--grey);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* ===================== HOW IT WORKS ===================== */
.how-it-works{
  background: var(--grad-dark-deep);
  padding: 48px 16px 54px;
}
.steps-flow{
  max-width: 1100px;
  margin: 0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:center;
  gap: 0;
}
.step-item{
  flex: 1 1 160px;
  max-width: 200px;
  text-align:center;
  color: var(--white);
  padding: 0 10px;
}
.step-num{
  width: 40px; height:40px;
  background: var(--grad-gold);
  color: #1a2140;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 auto 12px;
  box-shadow: var(--glow-gold-soft);
}
.step-item h4{ font-size: 14px; margin-bottom:6px; }
.step-item p{ font-size: 12px; color: var(--grey); line-height:1.4; }
.step-connector{
  flex: 0 0 30px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,199,0,.5), transparent);
  margin-top: 20px;
  display:none;
}
@media (min-width: 860px){
  .step-connector{ display:block; }
}

/* ===================== MODAL ===================== */
.modal-overlay{
  display:none;
  position: fixed; inset:0;
  background: rgba(15,12,8,.78);
  backdrop-filter: blur(3px);
  z-index: 200;
  align-items:center;
  justify-content:center;
  padding: 16px;
}
.modal-overlay.active{ display:flex; }
.modal-box{
  background: var(--white);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y:auto;
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  border-top: 4px solid var(--yellow);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-close{
  position:absolute;
  top: 12px; right: 14px;
  background:none;
  font-size: 26px;
  line-height:1;
  color: var(--grey-soft);
}
.modal-box h3{
  font-family: var(--font-display);
  margin-bottom: 18px;
  font-size: 19px;
  color: #1a1a1a;
}
#joinForm label{
  display:block;
  font-size: 13px;
  font-weight:600;
  margin-bottom: 14px;
  color: #333;
}
#joinForm input{
  width:100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1.5px solid #e2e2e2;
  border-radius: 7px;
  font-size: 14px;
}
#joinForm input:focus{
  outline:none;
  border-color: var(--yellow-deep);
}
.info-note{
  background: #fff9e8;
  border: 1px solid var(--yellow);
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  margin-bottom: 16px;
}
.scanner-box{
  text-align:center;
  background: var(--grad-dark);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.scanner-box p{
  color: var(--yellow);
  font-weight:700;
  font-size: 13px;
  margin-bottom: 10px;
}
.scanner-box img{
  margin: 0 auto;
  border-radius: 5px;
}
.warning-box{
  background: #fdecea;
  border: 1.5px solid var(--danger);
  color: #8f1d1d;
  padding: 12px;
  border-radius: 7px;
  font-size: 12.5px;
  margin-bottom: 18px;
  font-weight: 600;
}
.submit-btn{
  width:100%;
  background: var(--grad-dark);
  color: var(--yellow);
  font-family: var(--font-display);
  padding: 15px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: var(--glow-gold-soft);
}
.confirm-note{
  font-size: 12px;
  color: var(--grey-soft);
  text-align:center;
  margin-top: 12px;
}
.success-box{ display:none; text-align:center; padding: 20px 0; }
.success-box.active{ display:block; }
.success-icon{
  width: 56px; height:56px;
  background: var(--success);
  color:var(--white);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 28px;
  margin: 0 auto 16px;
}
.success-box h4{ font-family: var(--font-display); margin-bottom:8px; color:#1a1a1a; }
.success-box p{ font-size:13px; color:var(--grey-soft); }

/* ===================== FOOTER ===================== */
.site-footer{
  background: var(--grad-dark-deep);
  color: var(--grey);
  text-align:center;
  padding: 20px;
  font-size: 13px;
  border-top: 1px solid var(--card-border);
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}