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

#logo-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.logo-floater {
  position: absolute;
  width: 36px;
  height: 36px;
  pointer-events: auto;
  opacity: 0.35;
  transition: none;
}

.logo-floater img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
  opacity: 0.8;
}

@keyframes logo-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(var(--dx, 35px), var(--dy, -25px), 0) rotate(5deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(-3deg);
  }
}

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

.site-nav {
  position: relative;
  z-index: 2;
  background: rgba(15, 16, 22, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

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

.site-nav__inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.site-nav__inner::before {
  content: "";
  flex: 0 0 150px;
  height: 1px;
}

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

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

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

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

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(0);
  background: rgba(8, 9, 13, 0.95);
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.9rem;
  display: none;
  width: max-content;
  min-width: auto;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.4);
  flex-direction: column;
  gap: 0.3rem;
  text-transform: none;
  white-space: nowrap;
}

.nav-dropdown__menu a {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.04em;
}

.nav-dropdown__menu a:hover {
  color: var(--text);
}

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

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

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(0);
  background: rgba(8, 9, 13, 0.95);
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.9rem;
  display: none;
  width: max-content;
  min-width: auto;
  gap: 0.3rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.4);
  flex-direction: column;
  white-space: nowrap;
}

.nav-dropdown__menu a {
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav-dropdown__menu a:hover {
  color: var(--text);
}

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

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

.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.5rem;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

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

.twitch-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.twitch-user__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.twitch-user__meta strong {
  font-size: 0.85rem;
}

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

.twitch-logout {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.1rem;
}

.twitch-logout:hover,
.twitch-logout:focus-visible {
  color: #fff;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  padding: 3rem 0 1.5rem;
}

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

.profile-avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  object-fit: cover;
}

.profile-name {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  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: 26px;
  height: 26px;
  fill: currentColor;
}

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

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

.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: 2.6rem 2rem;
  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);
  border: 2px solid var(--deal-color, rgba(255, 255, 255, 0.15));
  text-align: center;
}

.deal-card--betfury {
  --deal-color: #ff4f5e;
}

.deal-card__logo {
  width: clamp(180px, 22vw, 240px);
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: contain;
}

.deal-card__divider {
  display: block;
  width: 65%;
  height: 1px;
  margin: 0 auto 1.6rem;
  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.95rem;
}

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

.deal-card--coming {
  --deal-color: #f0c04a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.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: 1;
  text-align: center;
  color: var(--muted);
  margin-top: auto;
  padding: 2.5rem 0;
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(12px);
}

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

.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: "\2713";
  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;
}

.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) {
  nav {
    justify-content: center;
    gap: 1rem;
  }

  .site-nav__inner {
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-nav__inner::before {
    flex-basis: 0;
  }

  .twitch-login {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .twitch-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.6rem;
  }

  .twitch-user {
    width: 100%;
    justify-content: center;
  }

  .twitch-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.6rem;
  }

  .twitch-user {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 2.2rem 0 1rem;
  }

  .profile-card {
    gap: 0.7rem;
  }

  .social-icons {
    gap: 0.7rem;
  }

  .hero {
    text-align: center;
  }

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

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

  footer {
    padding: 1.8rem 1rem;
  }
}

@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: column;
    text-align: center;
    padding: 0.5rem 0.7rem;
  }

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

  .twitch-logout {
    font-size: 1.6rem;
    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;
}
