
/* ==========================================================
   SCL Hub Game — Neon Koru Social Arcade
   Unique, high-contrast UI with checkerboard bands.
   ========================================================== */

:root{
  --bg0:#070A14;
  --bg1:#0B1020;
  --panelA: rgba(255,255,255,.06);
  --panelB: rgba(255,255,255,.03);
  --line: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);
  --accent1:#7CF5FF;
  --accent2:#B07CFF;
  --accent3:#FF5FD7;
  --warn:#FFBC35;
  --ok:#52FF9B;

  --radius: 18px;
  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --shadowSoft: 0 12px 30px rgba(0,0,0,.35);
  --max: 1120px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 720px at 20% -10%, rgba(124,245,255,.18), transparent 60%),
    radial-gradient(900px 640px at 90% 0%, rgba(255,95,215,.14), transparent 65%),
    radial-gradient(900px 900px at 70% 110%, rgba(176,124,255,.14), transparent 65%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
small{ color: var(--muted2); }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left: 12px; top: 12px;
  width:auto; height:auto;
  padding:10px 12px;
  background:#11173A;
  border:1px solid var(--line);
  border-radius: 12px;
  z-index: 9999;
}

/* Top notice (18+) */
.topbar{
  position: sticky; top:0; z-index: 1000;
  background: rgba(7,10,20,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px;
  padding: 10px 0;
}
.badges{
  display:flex; gap:10px; flex-wrap: wrap; align-items:center;
  font-size: 13px;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
}
.badge strong{ font-weight: 750; letter-spacing:.02em; }
.badge .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 18px rgba(255,188,53,.45);
}
.badge .dot.ok{ background: var(--ok); box-shadow: 0 0 18px rgba(82,255,155,.45); }

.top-actions{ display:flex; gap:10px; align-items:center; }
.top-actions .btn {
  border-color: rgba(124, 245, 255, .45);
  background: radial-gradient(120% 140% at 30% 20%, rgba(124, 245, 255, .35), transparent 50%), radial-gradient(120% 140% at 80% 50%, rgba(176, 124, 255, .26), transparent 50%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
}
.btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.55);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
  box-shadow: var(--shadowSoft);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.28); }
.btn:active{ transform: translateY(0px); }
.btn.primary{
  border-color: rgba(124,245,255,.45);
  background:
    radial-gradient(120% 140% at 30% 20%, rgba(124,245,255,.35), transparent 50%),
    radial-gradient(120% 140% at 80% 50%, rgba(176,124,255,.26), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
.btn.danger{
  border-color: rgba(255,95,215,.5);
  background:
    radial-gradient(120% 140% at 30% 20%, rgba(255,95,215,.22), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
.btn.ghost{ box-shadow:none; background:transparent; }
.btn.small{ padding: 8px 10px; border-radius: 12px; font-size: 13px; }

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
}
.pill code{ font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Header / Nav */
.header{
  padding: 18px 0 0;
}
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  gap: 14px;
  padding: 14px 0 16px;
}
.brand{
  display:flex; align-items:center; gap: 12px;
}
.brand img{
  width: 42px; height: 42px;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.55));
}
.brand .t{
  display:flex; flex-direction:column;
  line-height: 1.05;
}
.brand .t b{
  font-weight: 860;
  letter-spacing: .02em;
}
.brand .t span{
  font-size: 13px;
  color: var(--muted);
}

.nav{
  display:flex; align-items:center; gap: 12px;
}
.nav a{
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  text-decoration:none;
}
.nav a:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  text-decoration:none;
}
.nav a.active{
  color: var(--text);
  border-color: rgba(124,245,255,.30);
  background: rgba(124,245,255,.08);
}

.burger{
  display:none;
  width:44px; height:44px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}

.burger span{
  display:block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: rgba(255,255,255,.82);
  border-radius: 2px;
}

/* Hero */
.hero{
  margin: 10px 0 0;
  overflow:hidden;
  min-height: 70vh;
  display: flex;
}
.hero-inner{
  padding: 34px 26px;
  display:grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 18px;
  align-items: center;
}
.hero h1{
  margin:0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
}
.hero p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.hero .cta{
  display:flex; gap: 10px; flex-wrap:wrap;
}
.hero-card{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.66);
  border-radius: calc(var(--radius) + 10px);
  padding: 18px;
}
.hero-card h3{ margin: 0 0 10px; font-size: 15px; color: var(--muted); font-weight: 700; letter-spacing:.02em; text-transform: uppercase; }
.stat{
  display:flex; 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);
  margin-bottom: 10px;
}
.stat:last-child{ margin-bottom: 0; }
.stat b{ letter-spacing:.02em; }
.stat span{ color: var(--muted); font-family: var(--mono); }

/* Checkerboard bands */
.band{
  padding: 50px 0;
}
.band--a{
  
   background: linear-gradient(180deg, rgb(194 6 6 / 23%), rgb(0 188 212 / 21%));
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.band--b{
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card{
  grid-column: span 6;
  padding: 18px;
}
.card h2, .card h3{ margin: 0 0 10px; }
.card h2{ font-size: 20px; }
.card p{ margin: 0; color: var(--muted); line-height: 1.6; }
.card ul{ margin: 10px 0 0 18px; color: var(--muted); line-height: 1.6; }
.card li{ margin: 6px 0; }

.kicker{
  display:flex; align-items:center; gap: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing:.02em;
  text-transform: uppercase;
  font-size: 12px;
}
.kicker .line{
  height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
}

/* Tables */
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align:left;
}
.table th{ color: var(--muted); font-weight: 750; font-size: 13px; letter-spacing:.02em; text-transform: uppercase; }
.table td{ color: rgba(255,255,255,.86); font-family: var(--mono); font-size: 13px; }
.table tr:last-child td{ border-bottom:none; }

/* Forms */
.field{
  display:flex;
  flex-direction:column;
  gap: 6px;
  margin-bottom: 12px;
}
label{ color: var(--muted); font-size: 13px; }
input, textarea, select{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 12px 12px;
  outline:none;
}
textarea{ min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(124,245,255,.45);
  box-shadow: 0 0 0 4px rgba(124,245,255,.10);
}
.help{ color: var(--muted2); font-size: 13px; line-height: 1.5; }

hr.sep{
  border:0;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 16px 0;
}

/* Footer */
.footer{
  padding: 22px 0 30px;
  color: var(--muted);
  background: #080808;
}
.footer-grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer a{ color: var(--muted); }
.footer a:hover{ color: var(--text); text-decoration:none; }
.footer .tiny{ font-size: 12px; color: var(--muted2); line-height: 1.6; }
.footer .links{
  display:flex; flex-direction:column; gap: 8px;
}
.footer-bottom{
  display:flex; justify-content:space-between; gap: 14px; flex-wrap:wrap;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,.10);
}
.footer-bottom code{ font-family: var(--mono); color: var(--muted2); }

/* Modals + Toasts */
.backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.62);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 3000;
}
.modal{
  width: min(640px, 100%);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(900px 520px at 10% 10%, rgba(124,245,255,.14), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(255,95,215,.10), transparent 60%),
    rgba(10,14,30,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal header{
  padding: 18px 18px 0;
}
.modal header h2{
  margin:0;
  font-size: 20px;
}
.modal .content{
  padding: 12px 18px 18px;
  color: var(--muted);
  line-height: 1.6;
}
.modal .actions{
  display:flex; gap: 10px; justify-content:flex-end; flex-wrap:wrap;
  padding: 0 18px 18px;
}

.toast-wrap{
  position: fixed;
  right: 16px;
  bottom: 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  z-index: 4000;
}
.toast{
  width: min(380px, calc(100vw - 32px));
  border-radius: 16px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(32, 30, 0, 0.82);
  box-shadow: var(--shadowSoft);
}
.toast b{ display:block; margin-bottom: 4px; }
.toast p{ margin:0; color: var(--muted); line-height:1.4; }

/* Game UI */
.game-wrap{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.game-panel{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  padding: 14px;
}
.game-top{
  display:flex; gap: 10px; align-items:center; justify-content:space-between; flex-wrap:wrap;
}
.game-top .bal{
  display:flex; gap: 8px; align-items:center; color: var(--muted);
}
.game-top .bal b{ color: var(--text); font-family: var(--mono); }
.game-controls{
  display:flex; gap: 10px; flex-wrap:wrap; align-items:center;
}
.range{
  display:flex; align-items:center; gap: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 8px 10px;
  border-radius: 14px;
  color: var(--muted);
}
.range input{ width: 160px; padding: 0; border:0; background: transparent; box-shadow:none; }
.range output{ font-family: var(--mono); color: var(--text); }

.canvas{
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(124,245,255,.10), transparent 58%),
    radial-gradient(900px 520px at 90% 100%, rgba(255,95,215,.08), transparent 58%),
    rgba(255,255,255,.02);
}

.note{
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.6;
}
.note a{ text-decoration: underline; }

/* Accordion */
.accordion{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow:hidden;
}
.accordion details{
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.accordion details:last-child{ border-bottom:none; }
.accordion summary{
  cursor:pointer;
  padding: 14px 14px;
  list-style:none;
  font-weight: 780;
}
.accordion summary::-webkit-details-marker{ display:none; }
.accordion .a{
  padding: 0 14px 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Cookie bar */
.cookiebar{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display:none;
  z-index: 2500;
}
.cookiebar .inner{
  width: min(var(--max), 100%);
  margin: 0 auto;
  display:flex;
  gap: 12px;
  align-items:flex-start;
  justify-content:space-between;
  border-radius: 18px;
  padding: 14px 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,14,30,.86);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadowSoft);
}
.cookiebar p{
  margin:0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}
.cookiebar .actions{ display:flex; gap: 10px; flex-wrap:wrap; }

/* Responsive */
@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .card{ grid-column: span 12; }
}

@media (max-width: 820px){
  .nav{ display:none; }
  .burger{ display:block; }
  .nav.open{
    display:flex;
    position:absolute;
    right: 0;
    top: 74px;
    flex-direction:column;
    gap: 6px;
    padding: 10px;
    width: min(360px, calc(100vw - 24px));
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(10,14,30,.92);
    box-shadow: var(--shadowSoft);
    z-index: 1200;
  }
}



/* ==========================================================
   DOM Games (no canvas) — Mobile-friendly
   ========================================================== */

:root{
  --symSize: 64px;
}

@media (max-width: 520px){
  :root{ --symSize: 56px; }
}

.slots-ui{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.slots-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(124,245,255,.10), transparent 58%),
    radial-gradient(900px 520px at 90% 100%, rgba(255,95,215,.08), transparent 58%),
    rgba(0,0,0,.18);
}

@media (max-width: 520px){
  .slots-grid{ gap: 8px; padding: 10px; }
}

.reel{
  position:relative;
  display:grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 520px){
  .reel{ gap: 8px; }
}

.cell{
  aspect-ratio: 4/3;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,20,.54);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
}
#achievementsRoot .card.glass {
  border: 1px solid #fff2;
  border-radius: 15px;
  background: #0002;
}
.cell::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 20px;
  pointer-events:none;
  background: radial-gradient(180px 120px at 20% 10%, rgba(124,245,255,.12), transparent 60%),
              radial-gradient(180px 120px at 80% 90%, rgba(255,95,215,.10), transparent 60%);
  opacity:.75;
}

.sym{
  width: calc(var(--symSize) * 1);
  height: calc(var(--symSize) * 1);
  display:grid;
  place-items:center;
}

.sym img{
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 18px rgba(124,245,255,.18));
}

.sym .label{
  position:absolute;
  left:-9999px;
}

/* Payline overlay */
.slots-lines{
  position: relative;
}
.line-overlay{
  position:absolute;
  inset: 12px;
  pointer-events:none;
  border-radius: 16px;
}
.line-overlay svg{
  width:100%;
  height:100%;
}
.line-overlay path{
  stroke: rgba(124,245,255,.62);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 16px rgba(124,245,255,.20));
  opacity: 0;
  transition: opacity .2s ease;
}
.line-overlay.show path{ opacity: 1; }

/* Spinning animation: slight vertical jitter per reel */
.reel.spinning{
  animation: reelJitter .28s ease-in-out infinite;
}
.reel.spinning:nth-child(2){ animation-delay: .03s; }
.reel.spinning:nth-child(3){ animation-delay: .06s; }
.reel.spinning:nth-child(4){ animation-delay: .09s; }
.reel.spinning:nth-child(5){ animation-delay: .12s; }

@keyframes reelJitter{
  0%{ transform: translateY(0px); }
  50%{ transform: translateY(-3px); }
  100%{ transform: translateY(0px); }
}

/* Wheel */
.wheel-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
}

.wheel{
  width: min(420px, 100%);
  aspect-ratio: 1/1;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    conic-gradient(
      rgba(124,245,255,.54) 0deg 45deg,
      rgba(255,95,215,.50) 45deg 90deg,
      rgba(124,245,255,.52) 90deg 135deg,
      rgba(255,95,215,.58) 135deg 180deg,
      rgba(124,245,255,.52) 180deg 225deg,
      rgba(255,95,215,.58) 225deg 270deg,
      rgba(124,245,255,.52) 270deg 315deg,
      rgba(255,188,53,.50) 315deg 360deg
    );
  position:relative;
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  overflow:hidden;
  transform: rotate(0deg);
  transition: transform 1.4s cubic-bezier(.12,.82,.12,1);
}

.wheel::before{
  content:"";
  position:absolute;
  inset: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: radial-gradient(closest-side, rgba(255,255,255,.08), rgba(0,0,0,.10));
}

.wheel .cap{
  position:absolute;
  inset: 38%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,14,30,.86);
  display:grid;
  place-items:center;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,.82);
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
}

.pointer{
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 22px solid rgba(255, 188, 53, .95);
  filter: drop-shadow(0 0 16px rgba(255, 188, 53, .35));
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%) rotate(90deg);
  z-index: 5;
}

.wheel-labels{
  position:absolute;
  inset: 0;
  display:grid;
  place-items:center;
  pointer-events:none;
}

.wheel-labels .label{
  position:absolute;
  font-family: var(--mono);
  font-size: 18px;
  color: rgba(255,255,255,.86);
  text-shadow: 0 10px 24px rgba(0,0,0,.45);
  letter-spacing:.02em;
}
.pills {
  margin-top: 10px;
}
.header {
  position: relative;
}
.header .background {
  background: url("../img/game.webp");
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  z-index: -1;
  opacity: 0.15;
}

.game-wrap {
  position: relative;
}

.background-game-1 {
  background: url("../img/logo_game.webp");
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  z-index: -1;
  opacity: 0.15;
}
.background-game-2 {
  background: url("../img/logo_game.webp");
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  z-index: -1;
  opacity: 0.15;
}
.bet-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flex-2 {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.flex-2 > div {
  width: calc(50% - 8px)
}
.flex-2 img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 5px 15px #fff2;
}
@media (max-width: 767px) {
  .flex-2 > div {
    width: 100%
  }
  .nomob {
    display: none;
  }
  .hero-inner {
    padding: 34px 0
  }
  .pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .sym{
    width: calc(var(--symSize) * 0.78);
    height: calc(var(--symSize) * 0.78);
    display:grid;
    place-items:center;
  }
}

/* Big touch targets on mobile */
@media (max-width: 520px){
  .btn{ padding: 12px 14px; border-radius: 16px; }
  .btn.small{ padding: 10px 12px; border-radius: 14px; }
  input, textarea, select{ padding: 13px 12px; }
  .range input{ width: 140px; }
}
