:root {
  color-scheme: dark;
  --bg: #111217;
  --bg-soft: #1b1c23;
  --bg-lift: #1f2028;
  --text: #f7f7fb;
  --muted: #a0a3b7;
  --accent: #ff5c8f;
  --accent-strong: #ff8fa4;
  --twitch: #9146ff;
  --instagram: #f56040;
  --discord: #5865f2;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, rgba(12, 13, 19, 0.95), rgba(6, 7, 10, 0.85)), var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

body::before {
      content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
      content: "";
  position: fixed;
  inset: 0;
  background: url("../images/bg.png") center calc(50% + 5cm)/120% auto no-repeat;
  filter: brightness(0.5) blur(6px) opacity(0.3) saturate(1.05);
  transform: none;
  pointer-events: none;
  z-index: 0;
}

.stars {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 60, 150, 0.9), rgba(90, 60, 150, 0));
  opacity: 0.7;
  animation: twinkle linear infinite;
  filter: drop-shadow(0 0 5px rgba(70, 45, 120, 0.8));
  will-change: transform, opacity;
}

@keyframes twinkle {
  0% {
    opacity: 0;
    transform: translate3d(var(--sx, 0px), 0, 0);
  }
  30% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--sx, 0px), -28vh, 0);
  }
}


main {
  position: relative;
  z-index: 2;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 3rem 0 4rem;
  flex: 1;
}

.site-nav {
  position: relative;
  z-index: 30;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.site-nav__inner {
  width: min(1400px, 98vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  position: relative;
}

.site-nav__inner::before {
      content: "";
  display: none;
}

nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0 1rem;
  grid-column: 2;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-nav__header,
.mobile-nav__close {
  display: none;
}

nav a,
.nav-dropdown__trigger {
  text-decoration: none;
  color: var(--muted);
  transition: color 120ms ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown__trigger::after {
      content: "";
  font-size: 0.75em;
  opacity: 0.8;
}

nav a:hover,
nav a:focus,
nav a.is-active,
.nav-dropdown__trigger:hover,
.nav-dropdown__trigger:focus,
.nav-dropdown:hover .nav-dropdown__trigger,
.nav-dropdown:focus-within .nav-dropdown__trigger {
  color: var(--text);
}

.twitch-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
  padding-right: 1.25rem;
  grid-column: 3;
  justify-self: end;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown.is-active .nav-dropdown__trigger {
  color: var(--text);
}

.nav-dropdown {
  z-index: 35;
}

.nav-dropdown__menu {
  z-index: 40;
  margin-top: 0.3rem;
}

/* --- Dropdown restyle (leaderboard style) --- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 50;
}

.nav-dropdown__trigger::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid currentColor;
  margin-left: 4px;
  opacity: 0.85;
}

.nav-dropdown__menu {
  position: absolute;
  top: 70%;
  left: -10%;
  background: rgba(10, 9, 16, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.75rem;
  display: none;
  min-width: 112%; width: 112%;
  width: 100%;
  flex-direction: column;
  gap: 0rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  pointer-events: auto;
  z-index: 60;
}

.nav-dropdown__menu::before {
  display: none;
}

.nav-dropdown__menu a {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f5f5f7;
  display: block;
  padding: 0.2rem 0rem;
  font-weight: 700;
  font-size: 0.8rem;
}

.nav-dropdown__menu a:hover {
  color: #ffffff;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown:has(.nav-dropdown__menu:hover) .nav-dropdown__menu {
  display: flex;
  pointer-events: auto;
}

.btn,
.twitch-login {
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover,
.twitch-login:hover {
  transform: translateY(-1px);
}

.btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.twitch-login {
  background: var(--twitch);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(145, 70, 255, 0.35);
  font-size: 0.9rem;
  margin-left: auto;
  padding-right: 1.4rem;
  cursor: pointer;
}

.twitch-login svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.twitch-login span {
  letter-spacing: 0.06em;
}

.twitch-login[hidden] {
  display: none !important;
}

.twitch-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.75rem 0.4rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 93, 255, 0.5);
  background: #0d0a13;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  width: auto;
  min-width: 0;
}

.twitch-user[hidden] {
  display: none !important;
}

.twitch-user img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #7e5dff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.twitch-user__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.1;
  min-width: 0;
}

.twitch-user__meta strong {
  display: none;
}

.twitch-user__meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.twitch-logout {
  border: 1px solid rgba(126, 93, 255, 0.5);
  background: rgba(126, 93, 255, 0.12);
  color: #d8ceff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.twitch-logout:hover,
.twitch-logout:focus-visible {
  color: #fff;
  background: rgba(126, 93, 255, 0.2);
  border-color: rgba(126, 93, 255, 0.7);
}

#twitch-points,
#sePoints,
#mPoints {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.38rem 0.98rem;
  border-radius: 999px;
  background: #3a2a6b;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  position: relative;
  top: 0;
  box-shadow: 0 0 0 1px rgba(126, 93, 255, 0.5), 0 6px 16px rgba(0, 0, 0, 0.35);
  min-width: 0;
  justify-content: center;
  flex: 0 0 auto;
}

#twitch-points::before,
#sePoints::before,
#mPoints::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("../images/louizseton.png") center/contain no-repeat;
  display: block;
  position: relative;
  top: 0;
  flex-shrink: 0;
  margin-right: 0.05rem;
}

#twitch-points .points-value,
#sePoints .points-value,
#mPoints .points-value,
#twitch-points-value,
#sePoints-value,
#mPoints-value {
  position: relative; /* move only the number */
  top: 0.5px;
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

@keyframes user-glow {
  0% {
    color: #f7f7fb;
    text-shadow: 0 0 6px rgba(160, 110, 255, 0.45);
  }
  50% {
    color: #d5c3ff;
    text-shadow: 0 0 14px rgba(200, 170, 255, 0.65);
  }
  100% {
    color: #f7f7fb;
    text-shadow: 0 0 6px rgba(160, 110, 255, 0.45);
  }
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.6rem 0 0.3rem;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.profile-avatar {
  width: 200px;
  height: 200px;
  box-shadow: none;
  object-fit: contain;
  display: block;
  margin-bottom: 0.4rem;
}

.profile-name {
  margin: 0.6rem 0 0.2rem;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3e2f73;
  text-shadow: 0 0 10px rgba(62, 47, 115, 0.65), 0 0 18px rgba(45, 32, 85, 0.35);
  position: relative;
  display: flex;
  animation: name-color 6.4s ease-in-out infinite;
}

@keyframes name-color {
  0% {
    color: #3e2f73;
    text-shadow: 0 0 10px rgba(62, 47, 115, 0.65), 0 0 18px rgba(45, 32, 85, 0.35);
  }
  50% {
    color: #6a55b5;
    text-shadow: 0 0 12px rgba(106, 85, 181, 0.75), 0 0 22px rgba(75, 55, 145, 0.45);
  }
  100% {
    color: #3e2f73;
    text-shadow: 0 0 10px rgba(62, 47, 115, 0.65), 0 0 18px rgba(45, 32, 85, 0.35);
  }
}

.neon-logo {
  width: clamp(300px, 60vw, 700px);
  display: flex;
  justify-content: center;
  margin: -14.5rem 0 -3.5rem;
}

.macskaszino-svg {
  width: 100%;
  height: auto;
}

.neon-letter {
  fill: #6a52c9;
  fill-opacity: 1;
  stroke: #ffffff;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400 200;
  filter: none;
  paint-order: stroke fill;
}

.neon-letter-top {
  animation: neon-run-top 6s linear infinite;
}

.neon-letter-bottom {
  display: none;
}

@keyframes neon-run-top {
  0%   { stroke-dashoffset: 0; opacity: 0.9; }
  100% { stroke-dashoffset: -1200; opacity: 1; }
}


.social-icons {
  display: inline-flex;
  gap: 0.8rem;
}

.social-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.social-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.social-icon--discord {
  background: var(--discord);
}

.social-icon--twitch {
  background: linear-gradient(135deg, #7e5dff, #9d7cff);
  box-shadow: 0 12px 30px rgba(126, 93, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
}

.social-icon--instagram {
  background: radial-gradient(circle at 30% 30%, #fdf497, #f56040 55%, #c13584);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.section-heading {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.top-deals h2 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: 0.25em;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #f5d366;
}

.wheel-section {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.wheel-section h1 {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wheel-countdown {
  font-family: "Space Grotesk", "Roboto Mono", monospace;
  color: #fff;
  font-weight: 700;
  margin-top: -0.2rem;
  margin-bottom: 1cm;
}

.wheel-board {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-items: center;
  gap: 1cm;
  margin: 0 auto;
}

.wheel-stage {
  position: relative;
  width: 420px;
  height: 420px;
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0d0a13;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(126, 93, 255, 0.3);
}

.wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 16px solid #f5d366;
  border-bottom: none;
  filter: drop-shadow(0 0 6px rgba(245, 211, 102, 0.8));
}

.wheel-actions {
  display: grid;
  gap: 0.4rem;
  width: auto;
  justify-items: stretch;
}

.wheel-result {
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.wheel-buttons {
  display: grid;
  gap: 0.55rem;
  width: auto;
}

.wheel-buttons button {
  width: 200px;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  border: 1px solid rgba(126, 93, 255, 0.5);
  background: rgba(126, 93, 255, 0.12);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.wheel-buttons button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.wheel-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wheel-locked {
  padding: 1rem 1.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: #fff;
  max-width: 520px;
  margin: 0 auto;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.deal-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding: 1.6rem 1.3rem;
  border-radius: 1.8rem;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 65%), var(--bg-soft);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--deal-color, rgba(255, 255, 255, 0.15));
  text-align: center;
}

.deal-card--amon {
  --deal-color: #f4c542;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 24px rgba(244, 197, 66, 0.45);
}

.deal-card--billionaire {
  --deal-color: #1fdc7d;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 24px rgba(31, 220, 125, 0.45);
}

.deal-card--7signs {
  --deal-color: #d95cff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 24px rgba(217, 92, 255, 0.45);
}

.deal-card__logo {
  width: auto;
  height: 140px;
  max-width: 220px;
  margin: 0 auto 0.9rem;
  display: block;
  object-fit: contain;
}

.deal-card__divider {
  display: block;
  width: 65%;
  height: 1px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.deal-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.deal-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deal-card li {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.deal-card__features {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.deal-card--coming {
  --deal-color: #fcd94d;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 22px rgba(252, 217, 77, 0.7);
  text-shadow: 0 0 14px rgba(252, 217, 77, 0.65);
}

.why {
  margin-top: 4rem;
}

.why h2 {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: var(--bg-soft);
  border-radius: 1.6rem;
  padding: 1.8rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.why-card::before {
      content: "";
  position: absolute;
  inset: -30% auto auto -30%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 65%);
  opacity: 0.25;
}

.why-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--muted);
  margin-top: auto;
  padding: 0.8rem 0.6rem;
  line-height: 1.25;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  font-size: 0.82rem;
  overflow: hidden;
}

footer::before {
      content: "";
  position: absolute;
  inset: 0;
  background: #000;
  z-index: -1;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

.faq-section {
  margin-top: 3rem;
}

.faq-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faq-heading p {
  margin: 0.5rem 0 1.5rem;
  color: var(--muted);
}

.accordion details {
  background: var(--bg-soft);
  border-radius: 1.2rem;
  padding: 1rem 1.4rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 150ms ease;
}

.accordion summary {
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.accordion p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.blackjack-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  background: var(--bg-soft);
  border-radius: 1.6rem;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.bj-panel {
  background: #0d101b;
  border-radius: 1.4rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.bj-panel__title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bj-panel__bet {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 150ms ease;
}

.bj-panel__bet:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
}

 .bj-panel__bet input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  appearance: textfield;
  padding: 0.4rem 0;
  min-width: 0;
}

.bj-panel__bet input:focus-visible {
  outline: none;
}

.bj-panel__bet input::-webkit-inner-spin-button,
.bj-panel__bet input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bj-panel__chip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.bj-panel__bet input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bj-panel__quick {
  display: flex;
  gap: 0.5rem;
}

.bj-panel__quick button {
  flex: 1;
  border-radius: 0.7rem;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.5rem 0;
  cursor: pointer;
}
.bj-panel__quick button:disabled,
.bj-panel__bet-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bj-panel__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.bj-panel__actions button {
  border-radius: 0.9rem;
  border: none;
  padding: 0.75rem 0.6rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: opacity 120ms ease;
}

.bj-panel__actions button:disabled,
.bj-panel__quick button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bj-panel__actions .hit {
  background: rgba(31, 179, 135, 0.2);
}

.bj-panel__actions .stand {
  background: rgba(255, 92, 143, 0.2);
}

.bj-panel__actions .double {
  background: rgba(255, 200, 88, 0.2);
}

.bj-panel__actions .split {
  background: rgba(255, 255, 255, 0.08);
}

.bj-panel__actions .insurance {
  background: transparent;
  border: 1px dashed rgba(156, 202, 255, 0.45);
  color: #9ccaff;
}

.bj-panel__bet-btn {
  border-radius: 0.9rem;
  border: none;
  padding: 0.9rem 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: linear-gradient(120deg, #1f9bff, #0c8fbe);
  color: var(--text);
  cursor: pointer;
}

.bj-panel__secondary {
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.7rem 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.bj-hand-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding-top: 0.8rem;
}

.bj-hand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.4rem;
  border-radius: 1rem;
  position: relative;
}

.bj-hand {
  min-height: 110px;
}

.bj-hand-wrap.is-active::before {
      content: "";
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid #35d1ff;
  position: absolute;
  top: -10px;
}

.bj-hand-wrap.is-active .bj-hand {
  border-color: #35d1ff;
  box-shadow: 0 0 0 2px rgba(53, 209, 255, 0.35);
}

.bj-hand-wrap.is-win .bj-hand {
  border-color: #29d47a;
  box-shadow: 0 0 0 2px rgba(41, 212, 122, 0.35);
}

.bj-hand-wrap.is-lose .bj-hand {
  border-color: #ff5c8f;
  box-shadow: 0 0 0 2px rgba(255, 92, 143, 0.35);
}

.bj-hand-wrap.is-push .bj-hand {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.bj-hand-score {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.1rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.bj-hand-wrap.is-active .bj-hand-score {
  background: #35d1ff;
  color: #04121c;
}

.bj-hand-score.is-win {
  background: #29d47a;
  color: #03140f;
}

.bj-hand-score.is-lose {
  background: #ff5c8f;
  color: #2a050f;
}

.bj-hand-score.is-push {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.bj-insurance {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: center;
}

.bj-insurance[hidden] {
  display: none;
}

.bj-insurance p {
  margin: 0;
  font-weight: 600;
}

.bj-insurance__actions {
  display: grid;
  gap: 0.6rem;
}

.bj-insurance__actions button {
  border-radius: 0.9rem;
  border: 1px solid transparent;
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.bj-insurance__accept {
  background: linear-gradient(120deg, #8d5bfd, #7c22ff);
  color: var(--text);
}

.bj-insurance__decline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}
.bj-table {
  position: relative;
  background: #131724;
  border-radius: 1.3rem;
  padding: 2.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 520px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.bj-deck {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 70px;
  height: 100px;
}

.bj-deck span {
  position: absolute;
  inset: 0;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #1f3c8e, #0c1c4f);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
}

.bj-deck span:nth-child(1) {
  transform: translate(0, 0);
}

.bj-deck span:nth-child(2) {
  transform: translate(4px, -4px);
}

.bj-deck span:nth-child(3) {
  transform: translate(8px, -8px);
}

.bj-deck span img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.bj-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  border: 4px solid transparent;
  border-radius: 1.4rem;
  padding: 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  width: min(520px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  min-height: 220px;
  box-sizing: border-box;
}

.bj-row--dealer,
.bj-row--player {
  margin: 0.4rem auto;
  max-width: 520px;
  width: 100%;
}

.bj-row.win {
  border-color: #2fd07a;
  box-shadow: 0 0 20px rgba(47, 208, 122, 0.25);
}

.bj-row.lose {
  border-color: #f0475d;
  box-shadow: 0 0 20px rgba(240, 71, 93, 0.25);
}

.bj-row.push {
  border-color: #f5c854;
  box-shadow: 0 0 20px rgba(245, 200, 84, 0.25);
}

.bj-hand {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  padding: 0.5rem 0.8rem;
  min-height: 150px;
  min-width: min(300px, 100%);
  box-sizing: border-box;
}

.bj-hand.is-empty {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.bj-card {
  width: 88px;
  height: 125px;
  border-radius: 1rem;
  background: #f7f7fb;
  color: #121520;
  font-weight: 700;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
  will-change: transform;
}

.bj-card.is-dealing {
  animation: bjDeal 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.bj-card.black {
  color: #121520;
}

.bj-card.red {
  color: #d65467;
}

.bj-card.back {
  background: #1f3c8e;
  color: transparent;
  position: relative;
}

.bj-card.back::after {
      content: "";
  color: #fff;
  font-size: 1.2rem;
}

.bj-score {
  min-width: 44px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
  opacity: 1;
}

.bj-score.is-hidden {
  opacity: 0;
  border-color: transparent !important;
}

.bj-row.win .bj-score {
  border-color: #2fd07a;
  color: #2fd07a;
}

.bj-row.lose .bj-score {
  border-color: #f0475d;
  color: #f0475d;
}

.bj-row.push .bj-score {
  border-color: #f5c854;
  color: #f5c854;
}

.bj-hand-wrap--dealer {
  align-items: center;
}

.bj-hand-wrap--dealer .bj-score {
  margin-top: 0.4rem;
}

.bj-banner {
  width: min(520px, 100%);
  padding: 0.9rem 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.bj-signature {
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  width: calc(100% - 2rem);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-align: right;
  pointer-events: none;
}

.keno-layout {
  display: grid;
  grid-template-columns: minmax(0, 331px) minmax(0, 1fr);
  gap: 2.8rem;
  background: var(--bg-soft);
  border-radius: 1.6rem;
  padding: 3.2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.keno-panel {
  background: #0d101b;
  border-radius: 1.4rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.keno-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.2rem;
}

.keno-tabs button {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}

.keno-tabs button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.keno-tabs button:disabled {
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

.keno-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.keno-field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: none;
}

.keno-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.keno-controls[hidden] {
  display: none;
}

.keno-fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.keno-fieldset label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
}

.keno-risk-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.keno-risk-options button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  padding: 0.6rem 0.4rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.72rem;
}

.keno-risk-options button.is-active {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.keno-risk-options button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.keno-bet__input {
  display: flex;
  align-items: stretch;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color 150ms ease;
}

.keno-bet__input:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
}

.keno-bet__input input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0.7rem 1.6rem 0.7rem 0.8rem;
  font-size: 1rem;
  appearance: textfield;
  min-width: 0;
}

.keno-bet__input input:focus-visible {
  outline: none;
}

.keno-bet__input span,
.keno-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.keno-chip {
  width: 46px;
  padding: 0.3rem;
  border-left: none;
}

.keno-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.keno-bet__quick {
  display: flex;
  gap: 0.5rem;
}

.keno-bet__quick button {
  flex: 1;
  border-radius: 0.8rem;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.5rem 0;
  cursor: pointer;
}

.keno-bet__quick button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.keno-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.keno-tools {
  margin-top: 0.4rem;
}

.keno-input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--text);
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  appearance: textfield;
}

.keno-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
}

.keno-bet__input input::-webkit-inner-spin-button,
.keno-bet__input input::-webkit-outer-spin-button,
.keno-input::-webkit-inner-spin-button,
.keno-input::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.keno-bet__input input,
.keno-input,
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.keno-bet__input input::-webkit-outer-spin-button,
.keno-bet__input input::-webkit-inner-spin-button,
.keno-input::-webkit-outer-spin-button,
.keno-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.keno-bet__input input,
.keno-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.keno-auto-count {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.keno-btn--wide {
  width: 100%;
}

.keno-auto-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.keno-auto-actions .keno-btn {
  width: 100%;
}

.fair-trigger {
  border: none;
  background: transparent;
  color: #9ccaff;
  text-transform: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0;
}

.fair-trigger::after {
      content: "";
  font-size: 0.85rem;
  color: #9ccaff;
  transform: skewX(-10deg);
}

.fair-trigger--board {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
}

.keno-fair {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  gap: 0.8rem;
}

.keno-fair__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.keno-fair__label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.keno-fair code {
  font-family: "Space Grotesk", "Roboto Mono", monospace;
  font-size: 0.78rem;
  color: var(--text);
  word-break: break-all;
}

.keno-fair__meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
}

.is-muted {
  color: var(--muted);
}

.fair-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease;
  z-index: 40;
}

.fair-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.fair-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 41;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

.fair-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.fair-modal__body {
  width: min(420px, 92vw);
  background: #0f121f;
  border-radius: 1.4rem;
  padding: 1.8rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
  position: relative;
}

.fair-modal__body h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.fair-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.fair-trigger--board {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
}

.keno-btn {
  border-radius: 0.9rem;
  border: none;
  padding: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.keno-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.keno-btn--primary {
  background: #1f9b55;
  color: #fff;
}

.keno-board {
  background: #111521;
  border-radius: 1.4rem;
  padding: 2.4rem 2.8rem 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.keno-signature {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.keno-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(78px, 1fr));
  gap: 0.9rem;
  justify-content: center;
}

.keno-grid.is-locked {
  pointer-events: none;
  opacity: 0.85;
}

.keno-cell {
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  padding: 1.2rem 0;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.keno-cell.is-picked {
  background: rgba(122, 90, 255, 0.4);
  border-color: #7a5aff;
}

.keno-cell.is-hit {
  background: #040a04;
  border-color: #29d479;
  color: #29d479;
  position: relative;
}

.keno-cell.is-hit::after {
      content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  border: 2px solid rgba(41, 212, 121, 0.6);
  pointer-events: none;
}

.keno-cell.is-miss {
  background: #050608;
  color: #f04a63;
}

.keno-cell.is-drawn:not(.is-hit):not(.is-miss) {
  background: #050608;
  color: #fff;
}
.keno-status {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.8rem;
}

.keno-payouts {
  --keno-payout-font: 0.95rem;
  --keno-hit-font: 0.75rem;
  display: flex;
  width: 100%;
  gap: 0.6rem;
  align-items: stretch;
  flex-wrap: nowrap;
}

.keno-payout-col {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.9rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  flex: 1 1 auto;
}

.keno-payout {
  text-align: center;
  padding: 0.55rem 0.35rem;
  font-weight: 600;
}

.keno-payout--mult {
  font-size: var(--keno-payout-font);
}

.keno-payout--hits {
  font-size: var(--keno-hit-font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.keno-payout--hits::before {
      content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #78ffbd, #22a760 60%, #0c5a33);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
  flex: 0 0 auto;
}

.keno-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #ff934d;
  color: #0b0d13;
  padding: 0.8rem 1.4rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  transition: opacity 200ms ease, transform 200ms ease;
  opacity: 0;
  pointer-events: none;
}

.keno-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.keno-toast--win {
  background: #1cdd87;
  color: #03140a;
}

.keno-toast strong {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.3rem;
}

.keno-toast-meta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  font-weight: 600;
}

.keno-toast-amount::before {
      content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 0.35rem;
  background: url("images/logo.png") center/cover no-repeat;
  vertical-align: middle;
}

.token-inline {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 6px;
}

.keno-toast-hits::before {
      content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
  background: radial-gradient(circle at 30% 30%, #78ffbd, #22a760 60%, #0c5a33);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

@keyframes bjDeal {
  0% {
    opacity: 0;
    transform: translate3d(120px, -140px, 0) scale(0.5);
  }
  70% {
    opacity: 1;
    transform: translate3d(-10px, 5px, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
body.blocked header,
body.blocked main,
body.blocked footer {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 10, 0.92);
  backdrop-filter: blur(8px);
}

.gate-overlay.is-hidden {
  display: none;
}

.gate {
  width: min(460px, 92vw);
  background: #0f121f;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.gate__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(145, 70, 255, 0.15);
  color: var(--twitch);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
}

.gate h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.gate p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.gate__checks {
  text-align: left;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.gate__checks label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.gate__checks input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--twitch);
}

.gate__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.gate__btn {
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.gate__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gate__btn--exit {
  background: #3a1827;
  color: #f7f7fb;
}

.gate__btn--enter {
  background: linear-gradient(120deg, #1fb387, #0c8fbe);
  color: #fff;
}

.gate__note {
  font-size: 0.85rem;
  color: var(--muted);
}

.keno-stage {
  width: min(1400px, 96vw);
}

@media (max-width: 720px) {
  /* hide Originals in mobile menu to reduce clutter */
  nav a[href^="/originals"],
  nav .nav-dropdown__trigger {
    display: none !important;
  }

  .site-nav nav .nav-dropdown {
    display: none !important;
  }

  .site-nav__inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 30%, #3f2e6b, #1a1329 70%);
    border: 1px solid rgba(155, 130, 255, 0.45);
    color: #c7b5ff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
  }

  .mobile-menu-toggle span,
  .mobile-menu-toggle::before,
  .mobile-menu-toggle::after {
    width: 18px;
    height: 3px;
    background: currentColor;
    border-radius: 999px;
    position: absolute;
    left: 50%;
    content: "";
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .mobile-menu-toggle span {
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .mobile-menu-toggle::before {
    top: 50%;
    transform: translate(-50%, -50%) translateY(-8px);
  }

  .mobile-menu-toggle::after {
    top: 50%;
    transform: translate(-50%, -50%) translateY(8px);
  }

  body.nav-open .mobile-menu-toggle::before {
    transform: translateY(0) rotate(45deg);
  }

  body.nav-open .mobile-menu-toggle::after {
    transform: translateY(0) rotate(-45deg);
  }

  body.nav-open .mobile-menu-toggle span {
    opacity: 0;
  }

  body.nav-open {
    overflow: hidden;
  }

  nav {
    display: none;
    position: fixed;
    inset: 0;
    padding: 1.2rem 1.1rem 2rem;
    background: rgba(7, 6, 10, 0.94);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0.65rem;
    align-items: flex-start;
    z-index: 120;
    overflow-y: auto;
  }

  body.nav-open nav {
    display: flex;
  }

  .nav-dropdown__menu {
    position: static;
    display: none;
    padding: 0.25rem 0 0.25rem 0.75rem;
    width: 100%;
    background: none;
    border: none;
    box-shadow: none;
  }

  .nav-dropdown.is-active .nav-dropdown__menu,
  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    display: flex;
  }

  .mobile-nav__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c7b5ff;
    gap: 1rem;
  }

  .mobile-nav__close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    transition: background 150ms ease, transform 150ms ease;
    flex-shrink: 0;
  }

  .mobile-nav__close:hover,
  .mobile-nav__close:focus-visible {
    background: rgba(199, 181, 255, 0.12);
    outline: none;
    transform: scale(0.97);
  }

  .mobile-nav__close:active {
    transform: scale(0.94);
  }

  nav a,
  .nav-dropdown__trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .twitch-actions {
    order: 2;
    width: auto;
    flex: 1 1 auto;
    flex-direction: row;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
  }

  .twitch-login {
    margin-left: 0;
    width: auto;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
  }

  .twitch-user {
    width: auto;
    max-width: 70vw;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.45rem 0.6rem;
    padding: 0.35rem 0.55rem 0.35rem 0.45rem;
    border-width: 1px;
    background: rgba(13, 10, 19, 0.92);
  }

  .twitch-user img {
    width: 34px;
    height: 34px;
  }

  .twitch-user__meta {
    flex: 1;
    min-width: 0;
    gap: 0.45rem;
  }

  .twitch-user__meta strong {
    display: none;
  }

  .twitch-user__meta span,
  #twitch-points {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    min-width: 0;
  }

  #twitch-points::before {
    width: 16px;
    height: 16px;
    margin-right: 0.04rem;
  }

  .twitch-logout {
    margin-left: auto;
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .wheel-board {
    grid-template-columns: 1fr;
    gap: 0.6cm;
    justify-items: center;
    margin: 0 auto;
    transform: none;
    max-width: 100vw;
  }

  .wheel-stage {
    width: 300px;
    height: 300px;
    max-width: 90vw;
    max-height: 90vw;
  }

  .hero {
    padding: 1.2rem 0 0.9rem;
  }

  .profile-card {
    gap: 0.45rem;
    padding: 0.4rem 0 0.3rem;
    min-height: auto;
  }

  .profile-avatar {
    width: 140px;
    height: 140px;
    margin-bottom: 0.45rem !important;
    position: relative;
    z-index: 1;
  }

  .profile-name {
    margin: 0 0 0.25rem !important;
    position: relative;
    z-index: 2;
  }

  .social-icons {
    gap: 0.6rem;
    margin-top: -1.6rem !important;
    margin-bottom: 0.1rem !important;
    position: relative;
    z-index: 2;
  }

  .neon-logo {
    margin-top: 0.2rem !important;
    margin-bottom: 0.35rem !important;
    position: relative;
    z-index: 2;
  }

  .social-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .social-icon svg {
    width: 24px;
    height: 24px;
  }

  .hero {
    text-align: center;
  }

  .profile-card {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
    margin: 0.5rem auto 0.2rem;
  }

  .cta-group {
    justify-content: center;
  }

  .deal-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .deal-card {
    padding: 2rem 1.4rem;
  }

  .deal-card__logo {
    width: clamp(140px, 60vw, 200px);
  }

  .blackjack-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .keno-layout {
    grid-template-columns: 1fr;
    padding: 1.2rem;
    gap: 1.2rem;
  }

  .keno-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .keno-auto-actions {
    flex-direction: column;
  }

  .keno-auto-actions .keno-btn {
    width: 100%;
  }

  .fair-trigger--board {
    left: 0.8rem;
    bottom: 0.8rem;
    font-size: 0.82rem;
  }

  .keno-fair__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .keno-fair__meta {
    text-align: left;
  }

  .nav-dropdown__menu {
    position: static;
    transform: none;
    margin-top: 0.4rem;
    width: 100%;
    display: none;
    z-index: 40;
  }

  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    display: flex;
  }

  footer {
    padding: 1rem 0.6rem;
  }
}

@media (max-width: 540px) {
  main {
    width: 100%;
    padding: 1.6rem 0 2.4rem;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
    border-width: 4px;
  }

  .profile-name {
    font-size: clamp(1.7rem, 10vw, 2.4rem);
  }

  .twitch-user {
    flex-direction: row;
    text-align: left;
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: calc(100% - 70px);
    padding: 0.4rem 0.6rem;
  }

  .twitch-user__meta {
    align-items: center;
  }

  .twitch-logout {
    font-size: 1rem;
    padding: 0;
  }

  .deal-card {
    padding: 1.6rem 1.2rem;
    text-align: center;
  }

  .deal-card__logo {
    width: clamp(160px, 70vw, 220px);
  }

  .deal-card__features {
    align-items: center;
  }

  .deal-card__features li {
    font-size: 0.95rem;
  }

  .why h2 {
    font-size: clamp(1.6rem, 12vw, 2.2rem);
  }

  .why-card {
    padding: 1.4rem;
    text-align: center;
  }

  .why-card h3 {
    font-size: 1rem;
  }

  .why-card p {
    font-size: 0.9rem;
  }

  .blackjack-layout {
    padding: 1rem;
  }

  .bj-panel {
    padding: 1rem;
  }

  .bj-panel__bet {
    gap: 0.4rem;
  }

  .bj-panel__bet input {
    text-align: center;
  }

  .bj-card {
    width: 60px;
    height: 90px;
  }

  .keno-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fair-trigger--board {
    left: 0.6rem;
    bottom: 0.6rem;
    font-size: 0.78rem;
  }

  .bj-banner {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .bj-signature {
    font-size: 0.75rem;
  }

  footer {
    padding: 1.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .gate {
    padding: 1.8rem;
  }

  .gate__checks label {
    font-size: 0.9rem;
  }
}
:root {
  color-scheme: dark;
  --bg: #111217;
  --bg-soft: #1b1c23;
  --bg-lift: #1f2028;
  --text: #f7f7fb;
  --muted: #a0a3b7;
  --accent: #ff5c8f;
  --accent-strong: #ff8fa4;
  --twitch: #9146ff;
  --instagram: #f56040;
  --discord: #5865f2;
}

.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;
}





