/* Storm Social Online Casino — "Charged Sky" design system.
   Own conventions: .shell wrapper, .topbar nav, .deck lobby, .tile cards,
   .rig slot machine, diagonal clip accents, bolt + rain motifs. */

:root {
  --navy: #131A33;
  --navy-deep: #0C1124;
  --navy-panel: #1B2444;
  --navy-raise: #222C52;
  --violet: #7B4DFF;
  --violet-soft: #9B7BFF;
  --cyan: #2BD9FF;
  --cyan-deep: #13A6CC;
  --yellow: #FFE34D;
  --ink: #070B18;
  --text: #E8ECFB;
  --text-dim: rgba(232, 236, 251, 0.62);
  --hair: rgba(123, 77, 255, 0.24);
  --hair-cyan: rgba(43, 217, 255, 0.22);
  --display: "Russo One", "Arial Black", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --r: 16px;
  --shell-w: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 88% -8%, rgba(43, 217, 255, 0.12), transparent 62%),
    radial-gradient(900px 560px at 6% 4%, rgba(123, 77, 255, 0.16), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 70%, var(--navy) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: var(--cyan); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--yellow); }
img { max-width: 100%; display: block; }

.shell { width: 100%; max-width: var(--shell-w); margin-inline: auto; padding-inline: 22px; }

/* diagonal rain-streak texture, opt-in via .charged */
.charged { position: relative; isolation: isolate; }
.charged::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    72deg,
    transparent 0 26px,
    rgba(43, 217, 255, 0.045) 26px 27px,
    transparent 27px 60px,
    rgba(123, 77, 255, 0.05) 60px 61px
  );
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
}

/* ---------------- topbar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12, 17, 36, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}
.topbar .shell { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo svg { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 0 7px rgba(43, 217, 255, 0.55)); }
.logo .word { font-family: var(--display); font-size: 1.28rem; letter-spacing: 1.5px; line-height: 1; }
.logo .tag {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 3px;
}
.menu { margin-left: auto; display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 0.92rem; }
.menu a { color: var(--text-dim); }
.menu a:hover { color: var(--text); }

.purse {
  display: flex; align-items: center; gap: 9px;
  background: linear-gradient(180deg, var(--navy-raise), var(--navy-panel));
  border: 1px solid var(--hair-cyan);
  border-radius: 999px;
  padding: 6px 15px 6px 9px;
  font-weight: 800; font-size: 0.95rem; color: var(--yellow);
  white-space: nowrap;
}
.token {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 36% 30%, #d8f7ff, var(--cyan) 52%, var(--cyan-deep));
  box-shadow: inset 0 0 0 2px rgba(19, 166, 204, 0.6), 0 0 9px rgba(43, 217, 255, 0.6);
}
.adult {
  flex: none;
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  border: 2px solid var(--yellow); color: var(--yellow);
  font-weight: 800; font-size: 0.74rem; font-family: var(--display);
  transform: rotate(-4deg);
}

/* ---------------- buttons ---------------- */
.bolt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); letter-spacing: 1px; text-transform: uppercase;
  border: none; cursor: pointer; color: var(--ink);
  background: linear-gradient(110deg, var(--cyan) 0%, var(--violet-soft) 100%);
  border-radius: 12px;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0% 100%);
  box-shadow: 0 8px 24px rgba(43, 217, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.bolt-btn:hover { filter: brightness(1.08); box-shadow: 0 10px 32px rgba(123, 77, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.bolt-btn:active { transform: translateY(2px) scale(0.985); }
.bolt-btn[disabled] { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.3); box-shadow: none; }
.bolt-btn.big { font-size: 1.32rem; padding: 16px 40px; }
.bolt-btn.mid { font-size: 1rem; padding: 11px 24px; }
.bolt-btn.yellow { background: linear-gradient(110deg, var(--yellow), #ffcf3d); box-shadow: 0 8px 24px rgba(255, 227, 77, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hair); }
.hero-sky {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero .shell {
  position: relative;
  display: grid; grid-template-columns: 1.18fr 0.82fr;
  align-items: center; gap: 30px;
  padding-block: 70px 80px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 38px rgba(43, 217, 255, 0.28);
  transform: skewX(-3deg);
  transform-origin: left;
}
.hero h1 .spark { color: var(--cyan); text-shadow: 0 0 26px rgba(43, 217, 255, 0.7); }
.hero h1 .charge { color: var(--yellow); text-shadow: 0 0 26px rgba(255, 227, 77, 0.55); }
.hero .lede { margin-top: 18px; font-size: 1.18rem; font-weight: 500; color: var(--text); max-width: 34ch; }
.hero .lede b { color: var(--yellow); font-weight: 800; }
.hero .row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .fineprint { margin-top: 20px; font-size: 0.82rem; font-weight: 600; color: var(--text-dim); }
.hero figure { justify-self: center; position: relative; }
.hero figure img {
  width: min(370px, 82%);
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 32px rgba(123, 77, 255, 0.35));
  animation: hover 5.5s ease-in-out infinite;
}
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* drifting bolt sparks */
.sparks span {
  position: absolute; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  filter: blur(0.5px) drop-shadow(0 0 6px var(--cyan));
  opacity: 0; animation: fall 7s linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-30px) scaleY(0.6); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.7; }
  100% { transform: translateY(220px) scaleY(1.4); opacity: 0; }
}

/* ---------------- bands & headings ---------------- */
.band { padding-block: 62px; }
.band-head { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.band-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.band-head .zag {
  flex: 1; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 60%, transparent);
  clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%);
}

/* lobby deck */
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(305px, 1fr)); gap: 22px; }
.tile {
  position: relative; display: block;
  border-radius: var(--r); overflow: hidden;
  background: var(--navy-panel);
  border: 1px solid var(--hair);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.tile:hover {
  transform: translateY(-7px);
  border-color: var(--cyan);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.55), 0 0 28px rgba(43, 217, 255, 0.28);
}
.tile .art { aspect-ratio: 3 / 2; background-size: cover; background-position: center; background-color: var(--navy-raise); }
.tile .strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 16px; }
.tile h3 { font-family: var(--display); font-size: 1.08rem; letter-spacing: 0.5px; text-transform: uppercase; }
.tile .kind { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); margin-top: 3px; }

/* feature row — zig-zag two-column, not 3-card */
.perks { display: grid; gap: 16px; }
.perk {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  background: linear-gradient(120deg, rgba(27, 36, 68, 0.85), rgba(18, 26, 51, 0.6));
  border: 1px solid var(--hair);
  border-left: 3px solid var(--cyan);
  border-radius: 14px;
  padding: 22px 24px;
}
.perk:nth-child(even) { border-left-color: var(--violet); }
.perk .glyph { width: 56px; height: 56px; }
.perk h3 { font-family: var(--display); font-size: 1.06rem; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.perk p { font-size: 0.95rem; color: var(--text-dim); font-weight: 500; }
@media (min-width: 760px) { .perks { grid-template-columns: 1fr 1fr; } .perks .perk:first-child { grid-column: 1 / -1; } }

/* daily bonus slab */
.daily {
  display: grid; grid-template-columns: 0.58fr 1.42fr; gap: 28px; align-items: center;
  background:
    radial-gradient(560px 280px at 8% 50%, rgba(123, 77, 255, 0.2), transparent 64%),
    linear-gradient(180deg, var(--navy-panel), var(--navy-deep));
  border: 1px solid var(--hair-cyan);
  border-radius: 22px;
  padding: 32px;
  overflow: hidden;
  position: relative;
}
.daily img { width: min(230px, 100%); justify-self: center; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5)); }
.daily h2 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; }
.daily p { margin: 12px 0 20px; color: var(--text-dim); font-weight: 500; max-width: 52ch; }
.daily .state { margin-top: 14px; font-size: 0.9rem; font-weight: 700; color: var(--cyan); }

/* ---------------- compliance footer ---------------- */
.foot { background: var(--navy-deep); border-top: 1px solid var(--hair); padding: 40px 0 26px; font-size: 0.88rem; }
.foot .warn {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 227, 77, 0.08);
  border: 1px solid rgba(255, 227, 77, 0.32);
  border-radius: 14px;
  padding: 14px 18px; margin-bottom: 28px;
  font-weight: 700; color: var(--text);
}
.foot .warn .adult { transform: none; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.foot h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 12px; color: var(--cyan); font-size: 1rem; }
.foot p { color: var(--text-dim); line-height: 1.6; font-weight: 500; }
.foot ul { list-style: none; display: grid; gap: 9px; font-weight: 600; }
.foot .copyright {
  margin-top: 28px; padding-top: 16px;
  border-top: 1px solid rgba(232, 236, 251, 0.1);
  color: var(--text-dim); font-weight: 500; opacity: 0.85;
}

/* ---------------- slot page ---------------- */
.play { padding-block: 34px 72px; }
.play-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.play-head .back { font-weight: 700; font-size: 0.92rem; color: var(--text-dim); }
.play-head .back:hover { color: var(--cyan); }
.play-head h1 { font-family: var(--display); font-size: clamp(1.6rem, 3.8vw, 2.5rem); text-transform: uppercase; letter-spacing: 0.6px; }

.rig {
  background:
    radial-gradient(700px 260px at 50% -10%, rgba(43, 217, 255, 0.16), transparent 68%),
    linear-gradient(180deg, var(--navy-panel), var(--navy-deep));
  border: 1px solid var(--hair-cyan);
  border-radius: 24px;
  padding: clamp(14px, 3vw, 28px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}
.window {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(6px, 1.2vw, 12px);
  background: var(--ink);
  border-radius: 16px;
  padding: clamp(8px, 1.6vw, 15px);
  border: 1px solid var(--hair);
}
.col {
  position: relative; overflow: hidden;
  border-radius: 11px;
  aspect-ratio: 1 / 3;
  background: linear-gradient(180deg, var(--navy-raise), var(--navy-deep) 50%, var(--navy-raise));
}
.col .band-strip { position: absolute; left: 0; right: 0; top: 0; display: grid; will-change: transform; }
.cube { display: grid; place-items: center; padding: 9%; }
.cube img { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 4px 11px rgba(0, 0, 0, 0.55)); }
.col.lit { animation: zap 0.85s ease 2; }
@keyframes zap {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: inset 0 0 0 3px var(--cyan), 0 0 26px rgba(43, 217, 255, 0.55); }
}

.console { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.stake {
  display: flex; align-items: center; gap: 10px;
  background: rgba(7, 11, 24, 0.7);
  border: 1px solid var(--hair);
  border-radius: 13px; padding: 8px 12px;
}
.stake .lbl { font-size: 0.7rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-dim); }
.stake button {
  width: 34px; height: 34px; border-radius: 9px; border: none; cursor: pointer;
  background: var(--navy-raise); color: var(--text); font-weight: 800; font-size: 1.1rem;
  transition: background 0.16s ease;
}
.stake button:hover { background: var(--violet); }
.stake .amt { font-weight: 800; min-width: 78px; text-align: center; color: var(--cyan); font-size: 1.05rem; }
.payout {
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--yellow);
  min-height: 1.6em;
}
.payout.flash { animation: surge 0.5s ease; }
@keyframes surge {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.16); }
  100% { transform: scale(1); opacity: 1; }
}

/* paytable */
.pays { margin-top: 32px; background: var(--navy-panel); border: 1px solid var(--hair); border-radius: 16px; padding: 22px 24px; }
.pays h2 { font-family: var(--display); text-transform: uppercase; font-size: 1.18rem; margin-bottom: 14px; letter-spacing: 0.5px; }
.pays table { width: 100%; border-collapse: collapse; font-weight: 600; }
.pays td, .pays th { padding: 9px 10px; border-bottom: 1px solid rgba(232, 236, 251, 0.08); text-align: left; font-size: 0.92rem; }
.pays th { color: var(--cyan); font-size: 0.74rem; letter-spacing: 1.4px; text-transform: uppercase; }
.pays img { width: 42px; height: 42px; object-fit: contain; }
.pays .note { margin-top: 14px; font-size: 0.82rem; color: var(--text-dim); font-weight: 500; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px;
  transform: translateX(-50%) translateY(150%);
  background: linear-gradient(110deg, var(--cyan), var(--violet-soft));
  color: var(--ink); font-weight: 800;
  border-radius: 999px; padding: 12px 26px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.3, 1.25);
  z-index: 90; max-width: 88vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* legal pages */
.legal { max-width: 820px; padding-block: 48px 80px; }
.legal h1 { font-family: var(--display); font-size: 2rem; text-transform: uppercase; margin-bottom: 6px; }
.legal .stamp { color: var(--text-dim); font-weight: 600; font-size: 0.85rem; margin-bottom: 28px; }
.legal h2 { font-family: var(--display); font-size: 1.12rem; margin: 26px 0 8px; letter-spacing: 0.4px; color: var(--cyan); }
.legal p, .legal li { line-height: 1.66; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

/* language switcher (locale fan-out target) */
.langs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; }
.langs a, .langs .here { display: inline-block; padding: 8px 10px; }
.langs a { color: var(--text-dim); }
.langs a:hover { color: var(--cyan); }
.langs .here { color: var(--yellow); border-bottom: 2px solid var(--cyan); }

/* ---------------- responsive ---------------- */
@media (max-width: 840px) {
  .hero .shell { grid-template-columns: 1fr; text-align: center; padding-block: 44px 56px; }
  .hero figure { order: -1; }
  .hero figure img { width: min(260px, 68%); margin-inline: auto; }
  .hero .lede { max-width: none; margin-inline: auto; }
  .hero .row { justify-content: center; }
  .hero h1 { transform: none; }
  .menu { gap: 13px; font-size: 0.84rem; }
  .menu .ext { display: none; }
  .daily { grid-template-columns: 1fr; text-align: center; }
  .foot .cols { grid-template-columns: 1fr; }
  .console { grid-template-columns: 1fr; justify-items: center; }
}

/* language switcher (injected) */
.lang-switch { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; }
.lang-switch a, .lang-switch .current { display: inline-block; padding: 8px 10px; color: inherit; opacity: 0.65; text-decoration: none; }
.lang-switch a:hover { opacity: 1; }
.lang-switch .current { opacity: 1; font-weight: 900; border-bottom: 2px solid currentColor; }
