/* =========================================================================
   Zeus vs Hades -- shared stylesheet
   Theme: a fight card / match poster. Two territories, one arena: an icy
   storm-blue corner (Zeus) and a blood-crimson corner (Hades) collide along
   a jagged diagonal seam across a warm charcoal-black arena floor. Angular,
   clipped-corner UI stands in for the rounded, gradient-soft look of a
   typical iGaming template.
   ========================================================================= */

:root{
  /* -- palette -------------------------------------------------------- */
  --void:        #0d0b0a;
  --surface:     #1a1512;
  --surface-2:   #221b17;
  --surface-3:   #2b221c;
  --line:        rgba(255,255,255,.11);
  --line-soft:   rgba(255,255,255,.06);

  --text:        #f5f1ea;
  --text-dim:    #b9ada0;
  --text-faint:  #7d7168;

  --zeus:        #3aa9ff;   /* storm-ice blue, Zeus corner */
  --zeus-bright: #a9e6ff;   /* pale ice highlight */
  --hades:       #e23b4d;   /* underworld ember-crimson, Hades corner */
  --hades-deep:  #4a0d14;   /* dried-blood black-red */
  --gold-off:    #d8b46a;   /* muted brass, used only as a hairline accent, never a fill */

  --grad-zeus:    linear-gradient(135deg, var(--zeus) 0%, var(--zeus-bright) 100%);
  --grad-hades:   linear-gradient(135deg, var(--hades) 0%, #ff7a63 100%);
  --grad-page:    radial-gradient(ellipse 70% 55% at 8% 0%, rgba(58,169,255,.22), transparent 60%),
                   radial-gradient(ellipse 60% 50% at 100% 100%, rgba(226,59,77,.28), transparent 60%),
                   linear-gradient(160deg, rgba(58,169,255,.05) 0%, transparent 35%, rgba(226,59,77,.07) 100%),
                   var(--void);

  --cut: 10px;   /* corner-clip amount used across buttons/cards for the angular signature */
  --radius-s: 4px;
  --radius-m: 6px;
  --shadow-ice: 0 10px 34px -14px rgba(58,169,255,.55);
  --shadow-ember: 0 10px 34px -14px rgba(226,59,77,.55);
  --shadow-card: 0 24px 54px -28px rgba(0,0,0,.75);

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --header-h: 74px;
}

*,*::before,*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  min-width: 320px;
  background: var(--grad-page);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; height: auto; display: block; }

a{ color: inherit; text-decoration: none; }

::selection{ background: var(--hades); color: #fff; }

:focus-visible{
  outline: 2px solid var(--zeus-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.container{
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* =====================  HEADER  ========================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #100d0b;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.site-header::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--zeus) 0%, var(--zeus-bright) 48%, var(--hades) 52%, var(--hades) 100%);
}

.site-header .container{
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--text);
  flex-shrink: 0;
}
.logo img{ height: 34px; width: auto; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}
.main-nav a{
  position: relative;
  padding: 10px 15px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-dim);
  transition: color .18s ease;
  white-space: nowrap;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  background: var(--grad-hades);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover{ color: var(--text); }
.main-nav a:hover::after{ transform: scaleX(1); }
.main-nav a[aria-current="page"]{ color: var(--text); }
.main-nav a[aria-current="page"]::after{ transform: scaleX(1); }

.header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* -- language switcher ---------------------------------------------------- */

.lang-switch{ position: relative; }

.lang-switch-btn{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  color: var(--text);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease;
}
.lang-switch-btn:hover{ background: var(--surface-3); }
.lang-switch-btn .flag{ font-size: 1.05rem; line-height: 1; }
.lang-switch-btn .chevron{
  width: 8px; height: 8px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform .18s ease;
  margin-top: -3px;
}
.lang-switch.open .lang-switch-btn .chevron{ transform: rotate(-135deg); margin-top: 3px; }

.lang-switch-list{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--hades);
  box-shadow: var(--shadow-card);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.lang-switch.open .lang-switch-list{ display: flex; }

.lang-switch-list a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: .88rem;
  color: var(--text-dim);
}
.lang-switch-list a:hover{ background: var(--line-soft); color: var(--text); }
.lang-switch-list a[aria-current="true"]{ color: var(--zeus-bright); background: var(--line-soft); }
.lang-switch-list .flag{ font-size: 1.1rem; }

/* -- CTA buttons ------------------------------------------------------ */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .05em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-demo{
  background: transparent;
  border-color: var(--zeus);
  color: var(--zeus-bright);
}
.btn-demo:hover{ background: rgba(58,169,255,.12); box-shadow: var(--shadow-ice); }

.btn-play{
  background: var(--grad-hades);
  color: #170305;
  box-shadow: var(--shadow-ember);
}
.btn-play:hover{ transform: translateY(-1px); box-shadow: 0 14px 40px -12px rgba(226,59,77,.7); }
.btn-play .btn-label-short{ display: none; }

.btn-cta{
  display: flex;
  margin: 48px auto;
  padding: 18px 46px;
  font-size: 1.2rem;
  background: var(--grad-hades);
  color: #170305;
  box-shadow: var(--shadow-ember);
  width: fit-content;
}
.btn-cta:hover{ transform: translateY(-1px); box-shadow: 0 16px 46px -12px rgba(226,59,77,.75); }

/* -- mobile nav toggle -------------------------------------------------- */

.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; background: var(--hades); }

/* =====================  MAIN  ============================================ */

main{
  display: block;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}

main h1{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--text);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
main h1 em{
  font-style: normal;
  background: var(--grad-hades);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

main h2{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 46px 0 16px;
  color: var(--text);
  border-left: 3px solid var(--hades);
  padding-left: 14px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

main h3{
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 32px 0 12px;
  color: var(--zeus-bright);
  text-transform: uppercase;
  letter-spacing: .04em;
}

main p{
  color: var(--text-dim);
  margin: 0 0 18px;
  font-size: 1rem;
}

main p.lede{
  color: var(--text);
  font-size: 1.14rem;
}

main strong{ color: var(--text); }

main a.inline-link{
  color: var(--zeus-bright);
  text-decoration: underline;
  text-decoration-color: rgba(169,230,255,.4);
  text-underline-offset: 3px;
}
main a.inline-link:hover{ text-decoration-color: var(--zeus-bright); }

main ul, main ol{
  color: var(--text-dim);
  margin: 0 0 20px;
  padding-left: 22px;
}
main li{ margin-bottom: 8px; }
main li::marker{ color: var(--hades); }

main blockquote{
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--hades);
  background: var(--surface);
  color: var(--text-dim);
  font-style: italic;
}

hr.divider{
  border: none;
  height: 1px;
  margin: 52px 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* -- content image template --------------------------------------------- */

figure.content-figure{ margin: 32px 0; }
figure.content-figure img{
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
figure.content-figure figcaption{
  margin-top: 10px;
  font-size: .85rem;
  color: var(--text-faint);
  text-align: center;
}

/* -- table template ------------------------------------------------------ */

.table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-top: 2px solid var(--hades);
}
table.data-table{
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: .92rem;
}
table.data-table thead th{
  background: var(--surface-2);
  color: var(--zeus-bright);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .74rem;
  font-weight: 800;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data-table td{
  padding: 13px 16px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
table.data-table tbody tr:nth-child(even){ background: rgba(255,255,255,.025); }
table.data-table tbody tr:hover{ background: rgba(226,59,77,.06); }
table.data-table tbody tr:last-child td{ border-bottom: none; }

/* -- author block --------------------------------------------------------- */

.author-block{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 56px 0 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--zeus);
  position: relative;
}
.author-block img{
  width: 64px; height: 64px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  object-fit: cover;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.author-block .author-name{
  font-family: var(--font-display);
  letter-spacing: .03em;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 2px;
}
.author-block .author-role{
  font-size: .78rem;
  color: var(--text-faint);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.author-block p{ margin: 0; color: var(--text-dim); font-size: .95rem; }

/* -- VS burst (signature element) ------------------------------------------ */

.vs-divider{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 44px 0;
}
.vs-divider .line{
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.vs-divider .line.right{ background: linear-gradient(90deg, var(--line), transparent); }
.vs-divider .mark{
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .08em;
  padding: 6px 14px;
  border: 1px solid var(--line);
  color: var(--text-faint);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.vs-divider .mark span:first-child{ color: var(--zeus-bright); }
.vs-divider .mark span:last-child{ color: var(--hades); }

/* -- 404 -------------------------------------------------------------- */

.error-page{ text-align: center; padding-top: 40px; }
.error-page .error-code{
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: .9;
  letter-spacing: .02em;
  color: var(--text);
  margin: 0;
}
.error-page .error-code span:first-child{ color: var(--zeus); }
.error-page .error-code span:last-child{ color: var(--hades); }
.error-page p{ margin: 14px auto 30px; max-width: 460px; }

/* -- page-template placeholder blocks (bonus / reviews / app) ------------ */

.placeholder-block{
  padding: 26px;
  margin: 24px 0;
  border: 1px dashed var(--line);
  color: var(--text-faint);
  font-size: .9rem;
}

/* =====================  FOOTER  ========================================== */

footer.site-footer{
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: #100d0b;
}

.footer-orgs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 32px 24px 0;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-orgs a{
  padding: 9px 16px;
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-dim);
  transition: border-color .18s ease, color .18s ease;
}
.footer-orgs a:hover{ border-color: var(--hades); color: var(--text); }

.footer-legal{
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}
.footer-legal p{
  color: var(--text-faint);
  font-size: .82rem;
  line-height: 1.7;
  margin: 0 0 14px;
}
.footer-legal .copyright{
  font-size: .78rem;
  color: var(--text-faint);
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

/* =====================  BACK TO TOP  ====================================== */

.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px; height: 46px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--hades);
  color: var(--zeus-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 150;
  box-shadow: var(--shadow-card);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.back-to-top.visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg{ width: 18px; height: 18px; }

/* =====================  RESPONSIVE  ======================================= */

@media (max-width: 900px){
  .main-nav{ display: none; }
  .header-actions .btn-demo{ display: none; }
  .nav-toggle{ display: flex; }

  .site-header.nav-open{ height: auto; align-items: flex-start; }
  .site-header.nav-open .container{ flex-wrap: wrap; }
  .site-header.nav-open .main-nav{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 5;
    padding: 8px 0 18px;
    gap: 2px;
  }
  .site-header.nav-open .main-nav a{ padding: 12px 10px; }
  .site-header.nav-open .header-actions{
    order: 4;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .site-header.nav-open .header-actions .btn-demo{ display: inline-flex; }
}

@media (max-width: 640px){
  .container{ padding-inline: 16px; }
  main{ padding: 40px 16px 16px; }
  .author-block{ flex-direction: column; text-align: left; }
  .back-to-top{ right: 14px; bottom: 16px; width: 42px; height: 42px; }
  table.data-table{ min-width: 420px; }
  .btn-cta{
    white-space: normal;
    max-width: 100%;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    font-size: 1.05rem;
  }

  .site-header .container{ gap: 8px; }
  .logo img{ height: 26px; }
  .logo{ font-size: 1.2rem; }
  .header-actions{ gap: 6px; }
  .lang-switch-btn{ padding: 8px 9px; }
  .btn-play{ padding: 10px 15px; font-size: .85rem; }
  .nav-toggle{ width: 38px; height: 38px; }
}

@media (max-width: 420px){
  .lang-switch-btn .lang-label{ display: none; }
  .lang-switch-btn{ padding: 8px; }
  .btn-play .btn-label-short{ display: inline; }
  .btn-play .btn-label-full{ display: none; }
}

@media (max-width: 360px){
  .logo img{ height: 22px; }
  .site-header .container{ gap: 6px; }
  .header-actions{ gap: 4px; }
  .btn-play{ padding: 8px 11px; font-size: .78rem; }
  .lang-switch-btn{ padding: 7px; }
  .nav-toggle{ width: 34px; height: 34px; }
}
