/* =========================================================
   GREATEST CATCH — global stylesheet
   Theme: deep-water ocean palette (no gold/amber "AI" cliché)
   ========================================================= */

:root{
  --bg-deep:      #071b26;
  --bg-panel:     #0e2733;
  --bg-panel-2:   #133441;
  --bg-panel-3:   #17404f;
  --line:         rgba(234,246,244,.12);
  --line-strong:  rgba(234,246,244,.22);

  --text-main:    #eaf6f4;
  --text-muted:   #9fc4c6;
  --text-faint:   #6f939a;

  --teal:         #2ec4b6;
  --teal-dark:    #1a8f85;
  --coral:        #ff6b4a;
  --coral-dark:   #e14f31;
  --gold-warn:    #e0b84b; /* used only for the disclaimer/age badge, sparingly */

  --radius-s:     8px;
  --radius-m:     16px;
  --radius-l:     28px;

  --shadow-soft:  0 18px 40px rgba(2,10,14,.45);
  --shadow-btn:   0 10px 24px rgba(255,107,74,.35);

  --header-h:     78px;
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  min-width:320px;
  overflow-x:hidden;
  background:var(--bg-deep);
  color:var(--text-main);
  font-family:'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:.2px;
}
p{ margin:0 0 1.2em; color:var(--text-main); }
a{ color:var(--teal); text-decoration:none; }
a:hover{ color:var(--coral); }
img{ max-width:100%; height:auto; display:block; }
button{ font-family:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }

/* subtle fish-scale texture used as a background layer, applied via body::before
   so it never interferes with content stacking */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 0 0, rgba(46,196,182,.05) 0 26px, transparent 27px),
    radial-gradient(circle at 26px 26px, rgba(46,196,182,.05) 0 26px, transparent 27px);
  background-size:52px 52px;
  background-position:0 0, 26px 26px;
  opacity:.5;
}

/* ---------- skip link (a11y) ---------- */
.skip-link{
  position:absolute; left:-999px; top:auto;
  background:var(--teal); color:#04211d; padding:.6em 1em;
  border-radius:var(--radius-s); z-index:999;
}
.skip-link:focus{ left:1rem; top:1rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  height:var(--header-h);
  display:flex; align-items:center;
  background:rgba(7,27,38,.86);
  backdrop-filter:blur(10px) saturate(140%);
  border-bottom:1px solid var(--line);
}
.header-inner{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:0 clamp(16px,4vw,40px);
  display:flex; align-items:center; gap:20px;
}

.brand{
  display:flex; align-items:center; gap:.6em;
  font-family:'Fraunces', serif;
  font-size:1.35rem;
  font-weight:600;
  color:var(--text-main);
  margin-right:auto;
  white-space:nowrap;
}
.brand-mark{
  width:38px; height:38px;
  border-radius:50%;
  display:grid; place-items:center;
  background:linear-gradient(155deg,var(--teal),var(--bg-panel-3));
  box-shadow:inset 0 0 0 1px var(--line-strong);
  font-size:1.1rem;
}
.brand small{
  display:block;
  font-family:'Manrope',sans-serif;
  font-size:.6rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-faint);
}

.main-nav{
  display:flex; align-items:center; gap:6px;
}
.main-nav a{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  font-size:.92rem;
  font-weight:600;
  color:var(--text-muted);
  transition:background .2s,color .2s;
  white-space:nowrap;
}
.main-nav a:hover,
.main-nav a[aria-current="page"]{
  background:var(--bg-panel-2);
  color:var(--text-main);
}

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

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5em;
  padding:10px 20px;
  border-radius:999px;
  font-size:.9rem;
  font-weight:700;
  letter-spacing:.02em;
  border:1px solid transparent;
  white-space:nowrap;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active{ transform:translateY(1px); }

.btn-demo{
  background:transparent;
  border-color:var(--line-strong);
  color:var(--text-main);
}
.btn-demo:hover{ border-color:var(--teal); color:var(--teal); }

.btn-play{
  background:linear-gradient(135deg,var(--coral),var(--coral-dark));
  color:#fff5f1;
  box-shadow:var(--shadow-btn);
}
.btn-play:hover{ transform:translateY(-1px); box-shadow:0 14px 30px rgba(255,107,74,.45); color:#fff; }

/* ---------- language switcher ---------- */
.lang-switch{
  position:relative;
}
.lang-current{
  display:flex; align-items:center; gap:8px;
  background:var(--bg-panel-2);
  border:1px solid var(--line);
  color:var(--text-main);
  padding:8px 12px;
  border-radius:999px;
  font-size:.88rem;
  font-weight:600;
}
.lang-current .flag{ font-size:1.05rem; line-height:1; }
.lang-current .chev{
  width:9px; height:9px;
  border-right:2px solid var(--text-muted);
  border-bottom:2px solid var(--text-muted);
  transform:rotate(45deg);
  margin-top:-3px;
  transition:transform .2s;
}
.lang-switch.open .lang-current .chev{ transform:rotate(225deg); margin-top:3px; }

.lang-list{
  position:absolute; right:0; top:calc(100% + 10px);
  min-width:210px;
  background:var(--bg-panel);
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  box-shadow:var(--shadow-soft);
  padding:8px;
  display:none;
  max-height:70vh;
  overflow-y:auto;
}
.lang-switch.open .lang-list{ display:block; }
.lang-list a{
  display:flex; align-items:center; gap:10px;
  padding:9px 10px;
  border-radius:var(--radius-s);
  font-size:.9rem;
  font-weight:600;
  color:var(--text-muted);
}
.lang-list a .flag{ font-size:1.1rem; }
.lang-list a:hover{ background:var(--bg-panel-2); color:var(--text-main); }
.lang-list a[aria-current="true"]{ color:var(--teal); background:var(--bg-panel-2); }

/* ---------- mobile nav toggle ---------- */
.nav-toggle{
  display:none;
  width:40px; height:40px;
  border-radius:var(--radius-s);
  background:var(--bg-panel-2);
  border:1px solid var(--line);
  position:relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content:"";
  position:absolute; left:9px; right:9px;
  height:2px; background:var(--text-main);
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle span{ top:19px; }
.nav-toggle span::before{ top:-7px; }
.nav-toggle span::after{ top:7px; }

/* =========================================================
   MAIN CONTENT
   ========================================================= */
main{
  position:relative;
  z-index:1;
  max-width:900px;
  margin:0 auto;
  padding:clamp(40px,7vw,88px) clamp(18px,5vw,24px) 100px;
}

main .eyebrow{
  display:inline-block;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--teal);
  margin-bottom:14px;
}

main h1{
  font-size:clamp(2.1rem,5vw,3.4rem);
  color:var(--text-main);
  margin-bottom:.4em;
}
main h2{
  font-size:clamp(1.5rem,3.4vw,2.1rem);
  margin-top:2em;
  color:var(--text-main);
  position:relative;
  padding-bottom:.4em;
}
main h2::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:56px; height:3px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--teal),var(--coral));
}
main h3{ font-size:1.25rem; margin-top:1.6em; color:var(--text-main); }

main p{
  font-size:1.05rem;
  color:var(--text-muted);
  max-width:68ch;
}
main strong{ color:var(--text-main); }
main a{ text-decoration:underline; text-underline-offset:3px; }

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

main ul.content-list{ margin:1.2em 0; }
main ul.content-list li{
  position:relative;
  padding-left:1.6em;
  margin-bottom:.6em;
  color:var(--text-muted);
}
main ul.content-list li::before{
  content:"";
  position:absolute; left:0; top:.55em;
  width:8px; height:8px;
  border-radius:50%;
  background:var(--teal);
}

/* ---------- content image template ---------- */
figure.content-image{
  margin:2.4em 0;
}
figure.content-image img{
  width:100%;
  border-radius:var(--radius-m);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}
figure.content-image figcaption{
  margin-top:10px;
  font-size:.85rem;
  color:var(--text-faint);
  text-align:center;
}

/* ---------- centered CTA button template ---------- */
.cta-wrap{
  display:flex;
  justify-content:center;
  margin:3em 0;
}
.cta-button{
  display:inline-flex; align-items:center; gap:.6em;
  padding:18px 44px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--coral),var(--coral-dark));
  color:#fff6f2;
  font-family:'Fraunces',serif;
  font-size:1.15rem;
  font-weight:600;
  letter-spacing:.02em;
  box-shadow:var(--shadow-btn);
  border:1px solid rgba(255,255,255,.14);
  transition:transform .18s ease, box-shadow .18s ease;
}
.cta-button:hover{
  transform:translateY(-2px) scale(1.015);
  box-shadow:0 18px 36px rgba(255,107,74,.5);
  color:#fff;
}

/* ---------- tables ---------- */
.table-scroll{
  width:100%;
  overflow-x:auto;
  margin:1.6em 0 2.4em;
  border-radius:var(--radius-m);
  border:1px solid var(--line);
  -webkit-overflow-scrolling:touch;
}
table.data-table{
  width:100%;
  min-width:520px;
  border-collapse:collapse;
  font-size:.94rem;
  background:var(--bg-panel);
}
table.data-table caption{
  text-align:left;
  padding:14px 18px;
  font-family:'Fraunces',serif;
  font-size:1.05rem;
  color:var(--text-main);
  border-bottom:1px solid var(--line);
}
table.data-table th,
table.data-table td{
  padding:13px 18px;
  text-align:left;
  border-bottom:1px solid var(--line);
  color:var(--text-muted);
  white-space:nowrap;
}
table.data-table thead th{
  background:var(--bg-panel-2);
  color:var(--text-main);
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
}
table.data-table tbody tr:last-child td{ border-bottom:none; }
table.data-table tbody tr:hover{ background:var(--bg-panel-2); }

/* ---------- demo block ---------- */
.demo-block{
  margin:3em 0;
  padding:clamp(24px,4vw,40px);
  border-radius:var(--radius-l);
  background:linear-gradient(160deg,var(--bg-panel-3),var(--bg-panel));
  border:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:24px;
  box-shadow:var(--shadow-soft);
}
.demo-block__text{ flex:1 1 320px; }
.demo-block__text .eyebrow{ margin-bottom:8px; }
.demo-block__text h3{ margin-top:0; font-size:1.4rem; }
.demo-block__text p{ margin-bottom:0; }
.demo-block__action{ flex:0 0 auto; }
.btn-demo-play{
  display:inline-flex; align-items:center; gap:.6em;
  padding:15px 30px;
  border-radius:999px;
  background:var(--teal);
  color:#04211d;
  font-weight:700;
  font-size:1rem;
  box-shadow:0 12px 28px rgba(46,196,182,.35);
  transition:transform .18s ease, box-shadow .18s ease;
}
.btn-demo-play:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(46,196,182,.5);
  color:#04211d;
}

/* ---------- author block ---------- */
.author-block{
  margin:3.2em 0 1em;
  padding:24px;
  border-radius:var(--radius-l);
  background:var(--bg-panel);
  border:1px solid var(--line);
  display:flex;
  align-items:flex-start;
  gap:20px;
}
.author-block__avatar{
  flex:0 0 auto;
  width:64px; height:64px;
  border-radius:50%;
  background:linear-gradient(160deg,var(--teal),var(--bg-panel-3));
  display:grid; place-items:center;
  font-family:'Fraunces',serif;
  font-size:1.4rem;
  color:#04211d;
  overflow:hidden;
  border:2px solid var(--line-strong);
}
.author-block__avatar img{ width:100%; height:100%; object-fit:cover; }
.author-block__body{ flex:1 1 auto; min-width:0; }
.author-block__name{
  font-family:'Fraunces',serif;
  font-size:1.05rem;
  color:var(--text-main);
  margin-bottom:2px;
}
.author-block__role{
  font-size:.8rem;
  color:var(--text-faint);
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.author-block__quote{
  color:var(--text-muted);
  font-style:italic;
  margin:0;
}

/* ---------- 404 page ---------- */
.error-page{
  text-align:center;
  padding-top:8vh;
}
.error-page .error-code{
  font-family:'Fraunces',serif;
  font-size:clamp(5rem,18vw,9rem);
  line-height:1;
  background:linear-gradient(135deg,var(--teal),var(--coral));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  margin-bottom:.1em;
}
.error-page p{ margin:0 auto 1.6em; }
.error-page .cta-wrap{ margin-top:1em; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  position:relative; z-index:1;
  border-top:1px solid var(--line);
  background:var(--bg-panel);
  padding:44px clamp(18px,5vw,24px) 32px;
}
.footer-inner{
  max-width:900px;
  margin:0 auto;
}
.footer-disclaimer{
  font-size:.86rem;
  line-height:1.75;
  color:var(--text-faint);
  max-width:none;
  margin-bottom:28px;
}

.responsible-gaming{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 22px;
  padding-top:22px;
  border-top:1px solid var(--line);
}
.responsible-gaming__label{
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--text-faint);
  margin-right:6px;
}
.responsible-gaming a{
  font-size:.86rem;
  font-weight:600;
  color:var(--text-muted);
  border-bottom:1px dashed var(--line-strong);
  padding-bottom:1px;
}
.responsible-gaming a:hover{ color:var(--teal); border-color:var(--teal); }

.footer-bottom{
  margin-top:26px;
  font-size:.78rem;
  color:var(--text-faint);
}
.footer-bottom .age-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px; height:26px;
  border-radius:50%;
  border:1.5px solid var(--gold-warn);
  color:var(--gold-warn);
  font-size:.72rem;
  font-weight:800;
  margin-right:8px;
  vertical-align:middle;
}

/* =========================================================
   BACK-TO-TOP BUTTON
   ========================================================= */
.back-to-top{
  position:fixed;
  right:20px; bottom:24px;
  z-index:200;
  width:48px; height:48px;
  border-radius:50%;
  background:var(--bg-panel-3);
  border:1px solid var(--line-strong);
  color:var(--text-main);
  display:grid; place-items:center;
  box-shadow:var(--shadow-soft);
  opacity:0; visibility:hidden;
  transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease, background .2s ease, visibility .25s;
}
.back-to-top.visible{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background:var(--teal); color:#04211d; }
.back-to-top svg{ width:18px; height:18px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:900px){
  .main-nav{ display:none; }
  .nav-toggle{ display:inline-block; }

  .header-inner{ position:relative; }
  .mobile-panel{
    position:absolute; top:calc(100% + 1px); left:0; right:0;
    background:var(--bg-panel);
    border-bottom:1px solid var(--line);
    padding:14px clamp(16px,4vw,40px) 20px;
    display:none;
    flex-direction:column;
    gap:6px;
    box-shadow:var(--shadow-soft);
  }
  .mobile-panel.open{ display:flex; }
  .mobile-panel a{
    padding:12px 6px;
    border-bottom:1px solid var(--line);
    color:var(--text-muted);
    font-weight:600;
  }
  .mobile-panel a:last-child{ border-bottom:none; }
}

@media (max-width:640px){
  .header-actions .btn-demo span.label,
  .header-actions .btn-play span.label{ display:inline; }
  .btn{ padding:9px 14px; font-size:.82rem; }
  .brand span.brand-text{ display:none; }

  .demo-block{ flex-direction:column; align-items:stretch; text-align:left; }
  .demo-block__action{ width:100%; }
  .btn-demo-play{ width:100%; }

  .author-block{ flex-direction:column; align-items:flex-start; }

  .responsible-gaming{ flex-direction:column; align-items:flex-start; gap:10px; }
}

@media (max-width:400px){
  .lang-current .lang-code{ display:none; }
}

/* respect reduced motion */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
.go-cta-wrap{
  display:flex;
  justify-content:center;
  margin:3em 0;
}

.go-cta{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:14px;
  padding:19px 46px;
  border-radius:999px;
  font-family:'Fraunces', Georgia, serif;
  font-size:1.15rem;
  font-weight:600;
  letter-spacing:.02em;
  color:#fff7f3;
  background:linear-gradient(135deg, var(--coral, #ff6b4a), var(--coral-dark, #e14f31));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 10px 24px rgba(255,107,74,.35);
  overflow:hidden;
  isolation:isolate;
  transition:transform .2s ease, box-shadow .2s ease, color .2s ease;
}

/* мягкий "блик", который проходит по кнопке при наведении */
.go-cta::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform:translateX(-120%);
  transition:transform .6s ease;
}

.go-cta:hover{
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 18px 36px rgba(255,107,74,.5);
  color:#fff;
}
.go-cta:hover::before{ transform:translateX(120%); }
.go-cta:active{ transform:translateY(-1px) scale(1.0); }

.go-cta__icon{
  display:inline-flex;
  width:20px; height:20px;
  transition:transform .25s ease;
}
.go-cta:hover .go-cta__icon{ transform:translateX(4px); }

.go-cta:focus-visible{
  outline:2px solid var(--teal, #2ec4b6);
  outline-offset:4px;
}

@media (max-width:480px){
  .go-cta{
    width:100%;
    justify-content:center;
    padding:17px 24px;
    font-size:1.05rem;
  }
}