:root{
  --bg:#0B0F1A;
  --panel:#121829;
  --panel2:#1C2438;
  --border:#2A3552;

  --text:#EAF2FF;
  --text2:#B8C4DA;
  --muted:#7E8AA6;

  --zeus:#1EA7FF;
  --zeusDeep:#0B3D91;
  --lightning:#7DF9FF;

  --hades:#E63B2E;
  --lava:#FF7A18;
  --ember:#FFC247;

  --gold:#F4C542;
  --bronze:#B8892E;

  --radius:18px;
  --radiusSm:12px;

  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadowSoft: 0 14px 30px rgba(0,0,0,.35);

  --headerBg: linear-gradient(90deg, #061A3A 0%, #0B3D91 35%, #2A0E16 65%, #7A0D0D 100%);
  --headerAccent: linear-gradient(90deg, #7DF9FF, #1EA7FF, #F4C542, #FF7A18, #E63B2E);

  --secSplit: linear-gradient(90deg, rgba(6,26,58,1) 0%, rgba(11,61,145,1) 45%, rgba(36,0,10,1) 55%, rgba(122,13,13,1) 100%);
  --secAlt: linear-gradient(180deg, #0B0F1A 0%, #121829 100%);
  --secOlympus: linear-gradient(180deg, #061A3A 0%, #0B3D91 55%, #0B6BD6 100%);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x: hidden; /* FIX: prevent sideways scroll on mobile */
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.container{
  width:min(1240px, calc(100% - 48px));
  margin:0 auto;
}

.page{
  padding-top: 92px; /* header height compensation */
}

/* Header */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  background:var(--headerBg);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.site-header::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:2px;
  background:var(--headerAccent);
  opacity:.95;
}

.header-inner{
  display:flex;
  align-items:center;
  gap:18px;
  padding:10px 0;
}

.brand{ display:flex; align-items:center; }
.brand-logo{
  width:300px; height:90px;
  object-fit:contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

.nav{
  display:flex;
  gap:14px;
  align-items:center;
  margin-left: 6px;
  flex:1;
}

.nav-link{
  padding:10px 10px;
  border-radius:12px;
  color:var(--text2);
  font-weight:600;
  letter-spacing:.2px;
  transition: transform .15s ease, color .15s ease, background .15s ease;
}
.nav-link:hover{
  color:var(--text);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.lang-select{
  appearance:none;
  background: rgba(0,0,0,.25);
  color: var(--text);
  border:1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding:10px 12px;
  font-weight:700;
  cursor:pointer;
  outline:none;
}

.cta-play{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius: 14px;
  font-weight:900;
  letter-spacing:.2px;
  background: linear-gradient(180deg, var(--lava), var(--hades));
  color:#0B0F1A;
  box-shadow: 0 14px 32px rgba(255,122,24,.18);
  border:1px solid rgba(255,255,255,.14);
  transition: transform .15s ease, filter .15s ease;
  white-space: nowrap;
}
.cta-play:hover{ transform: translateY(-1px); filter: brightness(1.05); }

/* Sections */
.section{ padding: 84px 0; }
.section-split{ background: var(--secSplit); }
.section-alt{ background: var(--secAlt); }
.section-olympus{ background: var(--secOlympus); }

.section-head{ margin: 0 0 22px; }
.section-head--tight{ margin-top: 34px; }
.section-head h2{
  margin:0 0 10px;
  font-size: 32px;
  line-height:1.15;
}
.section-head .lead{
  margin:0;
  color:var(--text2);
  max-width: none; /* FIX: no width limitation */
}

/* Intro titles (center + accent underline) */
.intro-head{
  text-align:center;
  margin-bottom: 10px;
}

.intro-head h1{
  margin:0 0 12px;
  font-size: 44px;
  line-height:1.08;
  letter-spacing:-.6px;
  display:inline-block;
  position:relative;
  padding-bottom: 12px;
}

.intro-head h1::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width: min(360px, 82vw);
  height: 3px;
  border-radius: 999px;
  background: var(--headerAccent);
  opacity:.95;
}

.lead{
  margin:0;
  font-size: 18px;
  line-height:1.6;
  color: var(--text2);
  max-width: none; /* FIX: no width limitation */
}

.intro-head .lead{
  margin: 0 auto;
}

/* Intro grid (desktop: 25 / 50 / 25) */
.intro-grid{
  margin-top: 28px;
  display:grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-areas: "zeus center hades";
  gap: 18px;
  align-items: stretch;
}

.intro-center{ grid-area:center; display:flex; }
.intro-sides{ display: contents; } /* desktop: asides flow into grid areas */
.intro-side--zeus{ grid-area:zeus; }
.intro-side--hades{ grid-area:hades; }

.intro-media{
  width:100%;
  border-radius: var(--radius);
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
}
.intro-media img{
  width:500px; height:500px;
  max-width:100%;
  max-height: 70vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,.35));
}

.intro-side{
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  box-shadow: var(--shadowSoft);
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.intro-side--zeus{
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(125,249,255,.10) inset;
}
.intro-side--hades{
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(255,122,24,.10) inset;
}

.intro-banner{
  border-radius: var(--radiusSm);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.intro-banner img{ width:100%; height:auto; }

.stat-cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.stat-card{
  border-radius: 14px;
  padding: 12px 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.stat-k{
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .9px;
  font-weight: 800;
}
.stat-v{
  margin-top: 4px;
  font-size: 22px;
  font-weight: 900;
}

.stat-card--zeus{ box-shadow: 0 0 0 1px rgba(30,167,255,.12) inset; }
.stat-card--hades{ box-shadow: 0 0 0 1px rgba(255,122,24,.12) inset; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing:.2px;
  border:1px solid rgba(255,255,255,.14);
  cursor:pointer;
  transition: transform .15s ease, filter .15s ease;
  user-select:none;
  text-align:center;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }

.btn-zeus{
  background: linear-gradient(180deg, var(--lightning), var(--zeus));
  color:#07101e;
  box-shadow: 0 14px 32px rgba(30,167,255,.18);
}

.btn-hades{
  background: linear-gradient(180deg, var(--lava), var(--hades));
  color:#0B0F1A;
  box-shadow: 0 14px 32px rgba(255,122,24,.18);
}

/* Game frame */
.game-frame{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  box-shadow: var(--shadow);
}

.game-frame-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 12px;
  background: rgba(0,0,0,.35);
  border-bottom:1px solid rgba(255,255,255,.10);
}

.dots{ display:flex; gap:6px; }
.dots span{
  width:10px; height:10px;
  border-radius:999px;
  background: rgba(255,255,255,.18);
}
.dots span:nth-child(1){ background: rgba(230,59,46,.75); }
.dots span:nth-child(2){ background: rgba(255,194,71,.75); }
.dots span:nth-child(3){ background: rgba(46,230,166,.70); }

.frame-title{
  font-weight: 900;
  letter-spacing:.2px;
  color: var(--text);
  opacity: .95;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.frame-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.frame-link{
  color: var(--text2);
  font-weight: 700;
  padding:8px 10px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.frame-link:hover{ color: var(--text); }

.frame-btn{
  padding:8px 10px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(30,167,255,.14);
  color: var(--text);
  font-weight: 900;
  cursor:pointer;
}
.frame-btn:hover{ filter: brightness(1.05); }

.game-frame-body{
  width:100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.25);
}
.game-frame-body iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* Casino cards */
.casino-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.casino-card{
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  box-shadow: var(--shadowSoft);
  padding: 14px;
  display:flex;
  flex-direction:column;
  min-height: 340px;
}

.casino-top{
  display:flex;
  gap:12px;
  align-items:center;
}

.casino-logo{
  width: 46%;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 70px;
}
.casino-logo img{ object-fit:contain; max-height:48px; }

.casino-meta{ width:54%; }
.casino-name{
  font-weight: 900;
  font-size: 18px;
  line-height:1.15;
}
.casino-rating{
  margin-top: 6px;
  display:flex;
  align-items:center;
  gap:8px;
}
.rating-num{
  font-weight: 900;
  color: var(--gold);
}

.stars{ display:flex; gap:4px; }
.star{
  width:14px; height:14px;
  display:inline-block;
  background: rgba(255,255,255,.16);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.star.on{ background: var(--gold); }
.star.off{ background: rgba(255,255,255,.18); }
.star.half{
  background: linear-gradient(90deg, var(--gold) 50%, rgba(255,255,255,.18) 50%);
}

.casino-bonus{
  margin-top: 14px;
  border-radius: 16px;
  padding: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(244,197,66,.18), rgba(255,122,24,.12));
}
.bonus-k{
  font-size: 12px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .9px;
  font-weight: 900;
}
.bonus-v{
  margin-top: 6px;
  font-weight: 900;
  font-size: 18px;
}

.casino-feature{
  margin-top: 12px;
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--text);
  font-weight: 700;
}

.crown{
  width:18px; height:18px;
  display:inline-block;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, var(--gold), var(--bronze));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M6 46V22l14 12 12-20 12 20 14-12v24c0 6-4 10-10 10H16C10 56 6 52 6 46Zm10 0h32v-7H16v7Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-position:center;
  -webkit-mask-size:contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M6 46V22l14 12 12-20 12 20 14-12v24c0 6-4 10-10 10H16C10 56 6 52 6 46Zm10 0h32v-7H16v7Z'/%3E%3C/svg%3E");
  mask-repeat:no-repeat;
  mask-position:center;
  mask-size:contain;
  box-shadow: 0 8px 18px rgba(244,197,66,.18);
}

.casino-cta{
  margin-top:auto;
  padding-top: 14px;
}

/* Info (div-table) */
.info-table{
  display:flex;
  gap: 14px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  box-shadow: var(--shadowSoft);
  padding: 12px;
}

.info-col{
  flex:1;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.info-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.info-k{
  color: var(--text2);
  font-weight: 800;
}
.info-v{
  color: var(--text);
  font-weight: 900;
}

.prose{
  margin-top: 18px;
  color: var(--text2);
  line-height: 1.7;
  max-width: none; /* FIX: no width limitation */
}

/* Footer placeholder */
.site-footer{
  background: linear-gradient(180deg, #0B0F1A 0%, #12061A 60%, #24000A 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 36px 0;
}
.footer-note{ color: var(--muted); }

/* Back to top */
.to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 1200;
}
.to-top.show{
  opacity:1;
  pointer-events:auto;
  transform: translateY(0);
}

/* Sticky CTA bottom */
.sticky-cta{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: min(920px, calc(100% - 28px));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,16,32,.62);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 14px 14px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 1100;
}
.sticky-cta.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.sticky-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: var(--text);
  cursor:pointer;
}
.sticky-close:hover{ filter: brightness(1.05); }

.sticky-inner{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:center;
  padding-right: 44px; /* space for X */
}

.sticky-btn{
  flex: 1;
  min-width: 0;
}
/* FIX: ensure sticky CTA can appear when JS adds .show */
.sticky-cta{
  opacity: 0;
  pointer-events: none;
}

.sticky-cta.show{
  opacity: 1;
  pointer-events: auto;
}


/* When sticky open, lift ToTop above it (desktop) */
body.sticky-open .to-top{
  bottom: 92px;
}

/* =========================
   MOBILE OVERRIDES (REBUILD)
   Put at the VERY END of styles.css
   ========================= */

/* Mobile layout base: full-width content */
@media (max-width: 860px){
  /* full-width container */
  .container{
    width: 100%;
    margin: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* make sure sections backgrounds are truly edge-to-edge */
  .section{
    width: 100%;
    padding: 56px 0;
  }

  /* header: keep inside, avoid overflow */
  .header-inner{
    width: 100%;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-logo{
    width: 180px;
    height: auto;
  }

  /* titles centered, readable */
  .intro-head{
    text-align: center;
  }

  .intro-head h1{
    font-size: 30px;
    line-height: 1.08;
    margin: 0 0 10px;
  }

  .intro-head h1::after{
    width: min(300px, 86vw);
  }

  .intro-head .lead{
    font-size: 16px;
    line-height: 1.6;
  }

  /* INTRO: rebuild grid from scratch */
  .intro-grid{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "sides";
    gap: 14px;
  }

  .intro-center{
    grid-area: center;
    min-width: 0;
  }

  /* main image box should span full width */
  .intro-media{
    width: 100%;
    padding: 12px;
  }

  .intro-media img{
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1 / 1; /* stays square */
    object-fit: contain;
  }

  /* side panels: TWO columns under image */
  .intro-sides{
    grid-area: sides;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    min-width: 0;
  }

  /* IMPORTANT: prevent any grid-area conflicts inside nested grid */
  .intro-side--zeus,
  .intro-side--hades{
    grid-area: auto !important;
    width: 100%;
    min-width: 0;
  }

  /* keep inner elements from forcing overflow */
  .intro-side,
  .stat-card,
  .intro-banner{
    min-width: 0;
  }

  .stat-v{
    font-size: 20px;
  }

  /* Demo section: buttons wrap neatly */
  .game-frame-bar{
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .frame-actions{
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  /* Casino grid already becomes 1 col at <=980,
     but enforce full width cards inside */
  .casino-grid{
    grid-template-columns: 1fr;
  }

  /* Info table: stack columns */
  .info-table{
    flex-direction: column;
  }

  /* Sticky CTA: compact on mobile */
  .sticky-inner{
    flex-direction: column;
    gap: 10px;
  }

  .sticky-btn{
    width: 100%;
  }

  body.sticky-open .to-top{
    bottom: 168px;
  }
}

/* Very small phones: side blocks stack if no space */
@media (max-width: 520px){
  .intro-sides{
    grid-template-columns: 1fr;
  }
}
