:root {
  --fb-bg: #030611;
  --fb-bg-2: #070a1b;
  --fb-panel: rgba(5, 10, 24, 0.72);
  --fb-panel-strong: rgba(8, 13, 34, 0.9);
  --fb-cyan: #22d3ee;
  --fb-blue: #2563eb;
  --fb-violet: #7c3aed;
  --fb-magenta: #d946ef;
  --fb-gold: #f7d66b;
  --fb-text: #f8fbff;
  --fb-muted: #9ca3af;
  --fb-border: rgba(125, 92, 255, 0.35);
  --fb-border-strong: rgba(34, 211, 238, 0.48);
  --fb-radius: 22px;
  --fb-radius-sm: 14px;
  --fb-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --fb-glow: 0 0 38px rgba(124, 58, 237, 0.38);
  --fb-header: 78px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  min-height: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

html {
  background: var(--fb-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--fb-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(34, 211, 238, 0.16), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(217, 70, 239, 0.16), transparent 30%),
    radial-gradient(circle at 50% 86%, rgba(37, 99, 235, 0.18), transparent 33%),
    linear-gradient(180deg, #02030b 0%, #05071b 48%, #02030a 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--fb-cyan);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.fb-app {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.fb-app::before,
.fb-app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.fb-app::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(34, 211, 238, 0.18), transparent 22%),
    radial-gradient(circle at 74% 12%, rgba(124, 58, 237, 0.22), transparent 24%),
    radial-gradient(circle at 82% 74%, rgba(217, 70, 239, 0.14), transparent 28%),
    linear-gradient(135deg, #01030b 0%, #070a20 52%, #02030d 100%);
}

.fb-app::after {
  opacity: 0.5;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(34, 211, 238, 0.4) 0 1px, transparent 1.6px);
  background-position: 0 0, 42px 74px;
  background-size: 112px 112px, 168px 168px;
  animation: starDrift 38s linear infinite;
}

.fb-app.is-game-open {
  overflow: hidden;
}

.glass-panel {
  border: 1px solid var(--fb-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    var(--fb-panel);
  box-shadow: var(--fb-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.fb-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--fb-border-strong);
  border-radius: 14px;
  padding: 0 18px;
  color: var(--fb-text);
  background: rgba(5, 10, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 22px rgba(34, 211, 238, 0.15);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.fb-button:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 70, 239, 0.72);
  box-shadow: var(--fb-glow);
}

.fb-button.primary {
  color: #ffffff;
  border-color: rgba(217, 70, 239, 0.84);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.98), rgba(124, 58, 237, 0.96) 52%, rgba(217, 70, 239, 0.98));
  box-shadow: 0 0 34px rgba(217, 70, 239, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.fb-button.gold {
  color: #060918;
  border-color: rgba(247, 214, 107, 0.8);
  background: linear-gradient(180deg, #fff0a8, #f0b326);
}

.fb-button.small {
  min-height: 36px;
  padding-inline: 12px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.icon-button {
  width: 46px;
  min-width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 14px;
  color: var(--fb-text);
  background: rgba(5, 10, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.icon-button:hover {
  border-color: rgba(217, 70, 239, 0.66);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.26);
}

.fb-shape {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(124, 58, 237, 0.55));
  pointer-events: none;
}

.fb-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 22% 28%, rgba(34, 211, 238, 0.22), transparent 25%),
    radial-gradient(circle at 78% 18%, rgba(217, 70, 239, 0.22), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(124, 58, 237, 0.26), transparent 32%),
    #01030b;
}

.fb-intro::before,
.fb-intro::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.fb-intro::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(34, 211, 238, 0.52) 0 1px, transparent 1.5px);
  background-size: 90px 90px, 140px 140px;
  animation: starDrift 32s linear infinite;
}

.fb-intro::after {
  background:
    radial-gradient(ellipse at 35% 45%, rgba(34, 211, 238, 0.24), transparent 35%),
    radial-gradient(ellipse at 62% 45%, rgba(217, 70, 239, 0.2), transparent 36%);
  filter: blur(18px);
  animation: nebulaPulse 7s ease-in-out infinite;
}

.intro-panel {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  min-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 64px);
  border-radius: 34px;
  padding: clamp(22px, 5vw, 58px);
}

.intro-copy {
  min-width: 0;
}

.intro-logo {
  width: min(460px, 92vw);
  margin-bottom: clamp(20px, 3vw, 34px);
}

.intro-copy h1,
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.45);
}

.intro-copy p,
.hero-copy p {
  margin: 18px 0 0;
  color: rgba(248, 251, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.5;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.intro-progress {
  width: min(420px, 100%);
  margin-top: 30px;
}

.intro-progress span,
.hero-progress span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(248, 251, 255, 0.74);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.22);
}

.progress-track i {
  display: block;
  width: 87%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fb-cyan), var(--fb-violet), var(--fb-magenta));
  box-shadow: 0 0 18px rgba(217, 70, 239, 0.7);
  animation: loadingProgress 2.8s ease-in-out infinite;
}

.intro-visual {
  position: relative;
  min-height: 520px;
}

.intro-station {
  position: absolute;
  inset: 8% 0 auto;
  width: min(760px, 100%);
  margin: auto;
  animation: floatStation 5.5s ease-in-out infinite;
}

.intro-ship {
  position: absolute;
  right: 0;
  bottom: 5%;
  width: min(360px, 52%);
  animation: driftShip 8s ease-in-out infinite;
}

.intro-orbit {
  position: absolute;
  inset: 22% 5% auto;
  aspect-ratio: 1;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(124, 58, 237, 0.12), 0 0 70px rgba(34, 211, 238, 0.16);
  animation: rotateOrbit 18s linear infinite;
}

.fb-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  gap: 18px;
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 18px 18px 104px;
}

.fb-header {
  position: sticky;
  top: 0;
  z-index: 60;
  grid-column: 1 / -1;
  min-height: var(--fb-header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border-radius: 22px;
  padding: 12px 14px;
}

.header-left {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-logo {
  width: clamp(142px, 12vw, 210px);
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.header-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  gap: 5px;
  overflow: hidden;
}

.header-nav button,
.sidebar-nav button,
.drawer-nav button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 11px;
  color: rgba(248, 251, 255, 0.78);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.header-nav button:hover,
.header-nav button.active,
.sidebar-nav button:hover,
.sidebar-nav button.active,
.drawer-nav button.active,
.drawer-nav button:hover {
  color: #fff;
  border-color: rgba(217, 70, 239, 0.5);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.22), rgba(34, 211, 238, 0.08));
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.22);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.search-pill {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.deposit-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.78rem;
}

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

.user-menu {
  position: relative;
}

.casino-account-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(124, 58, 237, 0.62);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(24, 10, 52, 0.96), rgba(7, 12, 32, 0.94));
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.casino-wallet-pill,
.casino-round-btn,
.casino-lang-pill {
  min-height: 44px;
  border: 1px solid rgba(217, 70, 239, 0.48);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 10, 24, 0.74);
  cursor: pointer;
}

.casino-wallet-pill {
  min-width: 162px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  font-weight: 1000;
}

.casino-round-btn {
  position: relative;
  width: 44px;
  display: inline-grid;
  place-items: center;
}

.casino-round-btn small {
  position: absolute;
  right: 4px;
  bottom: 5px;
  min-width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #050713;
  background: var(--fb-cyan);
  font-size: 0.58rem;
  font-weight: 1000;
}

.casino-strip-separator {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.22);
}

.casino-lang-pill {
  min-width: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  font-weight: 900;
}

.casino-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 25%, #ffd6ff, #8b5cf6 48%, #09112b 72%);
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.5);
}

.casino-account-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(92vw, 430px);
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.58);
  border-radius: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(49, 13, 84, 0.98), rgba(24, 8, 58, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72), 0 0 28px rgba(217, 70, 239, 0.18);
  transform: translateY(6px);
}

.user-menu:not(.open) .casino-account-panel {
  display: none;
}

.user-menu.open .casino-account-panel {
  display: block;
}

.casino-account-summary {
  padding: 24px 28px 22px;
  border-bottom: 1px solid rgba(7, 2, 24, 0.74);
  background: rgba(41, 8, 76, 0.72);
}

.casino-account-topline,
.casino-account-summary dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.casino-account-topline {
  color: rgba(248, 251, 255, 0.62);
}

.casino-account-topline button {
  border: 0;
  background: transparent;
  color: rgba(248, 251, 255, 0.74);
  font-size: 1.44rem;
  cursor: pointer;
}

.casino-account-summary > strong {
  display: block;
  margin-top: 8px;
  font-size: 1.14rem;
}

.casino-account-summary dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 10px;
}

.casino-account-summary dt,
.casino-account-summary dd {
  margin: 0;
  font-weight: 1000;
}

.casino-account-summary dd {
  color: var(--fb-gold);
}

.casino-account-summary small {
  color: rgba(248, 251, 255, 0.58);
}

.casino-account-panel > button {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  border: 0;
  border-top: 1px solid rgba(7, 2, 24, 0.7);
  color: rgba(248, 251, 255, 0.74);
  background: rgba(46, 8, 78, 0.86);
  font-size: 1rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.casino-account-panel > button:hover {
  color: #fff;
  background: rgba(73, 18, 118, 0.92);
}

.casino-account-panel > button span {
  width: 30px;
  color: #fff;
  text-align: center;
}

.casino-account-panel > button.logout-action {
  color: #ffe7f5;
  background: linear-gradient(90deg, rgba(77, 13, 93, 0.92), rgba(30, 8, 58, 0.94));
}

.casino-account-panel > button.logout-action span {
  color: var(--fb-magenta);
}

.fb-sidebar,
.fb-right {
  min-width: 0;
}

.fb-sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  min-height: calc(100vh - 138px);
  border-radius: 24px;
  padding: 16px;
}

.sidebar-logo {
  width: 100%;
  margin: 0 auto 16px;
}

.sidebar-nav,
.drawer-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav button,
.drawer-nav button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.sidebar-vip {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 0%, rgba(217, 70, 239, 0.22), rgba(5, 10, 24, 0.72));
}

.sidebar-vip img {
  width: 86px;
  margin: 0 auto;
}

.sidebar-vip strong {
  display: block;
  margin-top: 12px;
  text-align: center;
}

.fb-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.hero-banner {
  position: relative;
  min-height: clamp(390px, 44vw, 560px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(20px, 4vw, 54px);
}

.hero-banner::before,
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-banner::before {
  background:
    radial-gradient(circle at 60% 35%, rgba(34, 211, 238, 0.26), transparent 22%),
    radial-gradient(circle at 74% 18%, rgba(217, 70, 239, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(1, 3, 10, 0.2), rgba(9, 8, 31, 0.78));
}

.hero-banner::after {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.2px);
  background-size: 82px 82px;
  opacity: 0.42;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-copy .brand-line {
  width: min(430px, 92%);
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-progress {
  width: min(360px, 100%);
  margin-top: 28px;
}

.hero-station {
  width: min(720px, 100%);
  margin: auto;
  animation: floatStation 6s ease-in-out infinite;
}

.hero-ship {
  position: absolute;
  right: -4%;
  bottom: 3%;
  width: min(320px, 45%);
  animation: driftShip 8.5s ease-in-out infinite;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  min-width: 0;
  min-height: 128px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: center;
  justify-items: center;
  gap: 6px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 18px;
  padding: 12px 8px 14px;
  color: var(--fb-text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), rgba(5, 10, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 70, 239, 0.62);
  box-shadow: var(--fb-glow);
}

.category-card img {
  width: min(96px, 78%);
  max-height: 76px;
  object-fit: contain;
}

.category-card strong {
  font-size: 0.86rem;
  text-transform: uppercase;
  text-align: center;
}

.category-card span {
  color: var(--fb-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
}

.section-head span {
  color: var(--fb-cyan);
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-button {
  border: 0;
  color: var(--fb-cyan);
  background: transparent;
  font-weight: 1000;
  cursor: pointer;
}

.featured-grid,
.games-grid {
  display: grid;
  gap: 18px;
}

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

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

.game-card {
  min-width: 0;
  min-height: 286px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 168px auto auto;
  align-content: stretch;
  gap: 10px;
  border: 1px solid rgba(125, 92, 255, 0.28);
  border-radius: 22px;
  padding: 14px;
  color: var(--fb-text);
  background:
    radial-gradient(circle at 70% 18%, var(--card-glow, rgba(217, 70, 239, 0.24)), transparent 36%),
    linear-gradient(145deg, rgba(8, 13, 34, 0.98), rgba(15, 8, 46, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.22);
  text-align: left;
  cursor: pointer;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(255, 255, 255, 0.08) 50%, transparent 65%),
    radial-gradient(circle at 10% 12%, rgba(34, 211, 238, 0.12), transparent 24%);
  transform: translateX(-60%);
  transition: transform 460ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: var(--fb-glow);
}

.game-card:hover::before {
  transform: translateX(60%);
}

.game-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(1, 5, 14, 0.72);
  opacity: 0.98;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.35));
}

.game-card img.fallback-shape {
  object-fit: contain;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.16), transparent 56%),
    rgba(1, 5, 14, 0.72);
}

.featured-grid .game-card {
  min-height: 236px;
  grid-template-rows: 128px auto auto;
}

.featured-grid .game-card img {
  height: 128px;
  object-fit: contain;
  background: transparent;
}

.game-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--fb-magenta), var(--fb-violet));
  font-size: 0.62rem;
  font-weight: 1000;
}

.game-card strong,
.game-card small {
  position: relative;
  z-index: 2;
}

.game-card strong {
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.12;
  text-transform: uppercase;
}

.game-card small {
  margin-top: 4px;
  color: rgba(248, 251, 255, 0.62);
  font-weight: 800;
}

.content-card {
  border-radius: 22px;
  padding: clamp(16px, 2vw, 24px);
}

.provider-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 16px;
  border: 1px solid rgba(247, 214, 107, 0.36);
  border-radius: 22px;
  padding: clamp(16px, 2vw, 24px);
  background:
    radial-gradient(circle at 12% 20%, rgba(247, 214, 107, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(217, 70, 239, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(36, 24, 5, 0.88), rgba(12, 6, 31, 0.92));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.provider-spotlight-copy span {
  color: var(--fb-gold);
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.provider-spotlight-copy h3 {
  margin: 4px 0;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(247, 214, 107, 0.24);
}

.provider-spotlight-copy p {
  margin: 0;
  color: var(--fb-muted);
  font-weight: 850;
}

.provider-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.provider-spotlight-actions button {
  min-height: 48px;
  border: 1px solid rgba(247, 214, 107, 0.42);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--fb-text);
  background: rgba(2, 8, 24, 0.7);
  font-weight: 1000;
  cursor: pointer;
}

.provider-spotlight-actions button.active {
  color: #07070d;
  background: linear-gradient(180deg, #fff65b, #f7c74a 58%, #bc7509);
  box-shadow: 0 0 26px rgba(247, 214, 107, 0.28);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.75fr));
  gap: 10px;
  margin-bottom: 14px;
}

.filter-bar label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--fb-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 14px;
  color: var(--fb-text);
  background: rgba(1, 5, 14, 0.72);
  padding: 0 13px;
}

.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chips button,
.chips span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid rgba(125, 92, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 251, 255, 0.78);
  font-weight: 900;
}

.chips button {
  cursor: pointer;
}

.chips button.active {
  color: #fff;
  border-color: rgba(217, 70, 239, 0.56);
  background: rgba(124, 58, 237, 0.26);
}

.special-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.special-card {
  position: relative;
  min-height: 116px;
  display: grid;
  align-content: end;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 18px;
  padding: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 24%, rgba(217, 70, 239, 0.22), transparent 40%),
    linear-gradient(135deg, rgba(14, 23, 48, 0.92), rgba(5, 10, 24, 0.74));
  box-shadow: inset 0 0 26px rgba(34, 211, 238, 0.08);
  overflow: hidden;
  cursor: pointer;
}

.special-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -32% 35%;
  height: 78%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.24), transparent 66%);
  pointer-events: none;
}

.special-card img {
  position: absolute;
  right: -8%;
  bottom: -24%;
  z-index: 0;
  width: 58%;
  max-height: 128px;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.32));
  pointer-events: none;
}

.special-card strong {
  position: relative;
  z-index: 1;
  font-size: 1rem;
}

.special-card span {
  position: relative;
  z-index: 1;
  color: rgba(248, 251, 255, 0.72);
  font-size: 0.78rem;
}

.fb-right {
  position: sticky;
  top: 112px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.jackpot-panel,
.winners-panel,
.crash-panel,
.vip-panel {
  border-radius: 22px;
  padding: 16px;
}

.jackpot-panel header,
.winners-panel header,
.crash-panel header,
.vip-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.jackpot-panel h3,
.winners-panel h3,
.crash-panel h3,
.vip-panel h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.jackpot-total {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.jackpot-total img {
  width: 74px;
}

.jackpot-total strong {
  color: var(--fb-cyan);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.jackpot-list,
.winner-list {
  display: grid;
  gap: 8px;
}

.jackpot-row,
.winner-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 14px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.045);
}

.jackpot-row img,
.winner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: radial-gradient(circle at 50% 28%, rgba(34, 211, 238, 0.9), rgba(124, 58, 237, 0.7) 52%, rgba(5, 10, 24, 0.9));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
}

.jackpot-row strong,
.winner-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.jackpot-row small,
.winner-row small {
  color: var(--fb-muted);
  font-size: 0.68rem;
}

.jackpot-row em,
.winner-row em {
  color: var(--fb-cyan);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 1000;
}

.crash-display {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(5, 10, 24, 0.4), rgba(5, 10, 24, 0.88)),
    radial-gradient(circle at 80% 30%, rgba(217, 70, 239, 0.34), transparent 42%);
}

.crash-display img {
  position: absolute;
  right: -2%;
  top: 10%;
  width: 46%;
  transform: rotate(-14deg);
}

.crash-display strong {
  display: block;
  color: #c084fc;
  font-size: 2.8rem;
}

.crash-graph {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 52px;
  border-left: 1px solid rgba(34, 211, 238, 0.28);
  border-bottom: 1px solid rgba(34, 211, 238, 0.28);
}

.crash-graph::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70%;
  height: 86%;
  border-bottom: 3px solid var(--fb-magenta);
  border-right: 3px solid var(--fb-cyan);
  border-radius: 0 100% 0 0;
  filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.72));
}

.vip-grid {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.vip-grid img {
  width: 95px;
}

.xp-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.xp-track i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fb-cyan), var(--fb-magenta));
}

.empty-state {
  min-height: 80px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(34, 211, 238, 0.22);
  border-radius: 18px;
  color: var(--fb-muted);
  font-weight: 900;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  border: 0;
  background: rgba(0, 0, 0, 0.58);
}

.mobile-drawer {
  position: fixed;
  z-index: 210;
  inset: 0 auto 0 0;
  width: min(340px, calc(100vw - 36px));
  transform: translateX(-105%);
  transition: transform 220ms ease;
  border-radius: 0 24px 24px 0;
  padding: 18px;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.drawer-head img {
  width: 190px;
}

.bottom-nav {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 80;
  min-height: 74px;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  border: 1px solid rgba(125, 92, 255, 0.32);
  border-radius: 22px;
  padding: 7px;
  background: rgba(3, 7, 18, 0.9);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  color: rgba(248, 251, 255, 0.68);
  background: transparent;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bottom-nav button span {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 1.08rem;
}

.bottom-nav button.active,
.bottom-nav button.launch {
  color: #fff;
  background: radial-gradient(circle at 50% 35%, rgba(217, 70, 239, 0.62), rgba(124, 58, 237, 0.24));
  box-shadow: 0 0 22px rgba(217, 70, 239, 0.38);
}

.modal-layer,
.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.modal-card {
  width: min(100%, 520px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 24px;
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.modal-head h2 {
  margin: 0;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.mode-tabs button {
  min-height: 48px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
  cursor: pointer;
}

.mode-tabs button.active {
  background: linear-gradient(135deg, var(--fb-cyan), var(--fb-violet));
}

.form-grid {
  display: grid;
  gap: 13px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: rgba(248, 251, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 14px;
  color: #fff;
  background: rgba(1, 5, 14, 0.76);
  padding: 0 14px;
}

.form-grid textarea {
  min-height: 90px;
  padding-block: 12px;
  resize: vertical;
}

.form-message {
  margin: 2px 0 0;
  min-height: 22px;
  color: var(--fb-muted);
  font-weight: 800;
}

.form-message[data-tone="ok"] {
  color: #67e8f9;
}

.form-message[data-tone="error"] {
  color: #fb7185;
}

.promo-banner {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  border-radius: 18px;
  padding: 12px;
  background: rgba(34, 211, 238, 0.08);
}

.promo-banner img {
  width: 92px;
  max-height: 74px;
  object-fit: contain;
}

.promo-banner strong {
  display: block;
}

.promo-banner span {
  color: var(--fb-gold);
  font-weight: 1000;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.history-item span,
.history-item em {
  color: var(--fb-muted);
  font-style: normal;
}

.history-item strong {
  min-width: 0;
}

.checkout-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 14px;
}

.checkout-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--fb-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.checkout-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.support-widget {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 820;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.is-game-open .support-widget {
  display: none;
}

.support-fab {
  pointer-events: auto;
  min-width: 156px;
  min-height: 56px;
  border: 1px solid rgba(34, 211, 238, 0.48);
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.92), rgba(217, 70, 239, 0.74)),
    rgba(3, 6, 17, 0.94);
  box-shadow: 0 0 36px rgba(124, 58, 237, 0.42), 0 12px 34px rgba(0, 0, 0, 0.44);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 1000;
  cursor: pointer;
}

.support-fab span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #030611;
  background: linear-gradient(135deg, var(--fb-gold), var(--fb-cyan));
}

.support-panel {
  pointer-events: auto;
  width: min(420px, calc(100vw - 24px));
  max-height: min(720px, calc(100vh - 120px));
  display: none;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  border-radius: 24px;
  padding: 14px;
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.52), var(--fb-glow);
}

.support-widget.open .support-panel {
  display: grid;
}

.support-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-panel header strong,
.support-panel header span {
  display: block;
}

.support-panel header span {
  color: var(--fb-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.support-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.support-tabs button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 1000;
  cursor: pointer;
}

.support-tabs button.active {
  color: #030611;
  background: linear-gradient(135deg, var(--fb-cyan), var(--fb-gold));
}

.support-thread {
  min-height: 210px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 4px;
}

.support-message {
  max-width: 88%;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(1, 5, 14, 0.72);
}

.support-message.player {
  justify-self: end;
  border-color: rgba(217, 70, 239, 0.32);
  background: rgba(76, 29, 149, 0.42);
}

.support-message strong,
.support-message p,
.support-message small {
  display: block;
}

.support-message p {
  margin: 4px 0 0;
  color: rgba(248, 251, 255, 0.84);
}

.support-message small {
  margin-top: 6px;
  color: var(--fb-cyan);
  overflow-wrap: anywhere;
}

.support-form {
  display: grid;
  gap: 9px;
}

.support-form textarea {
  width: 100%;
  min-height: 84px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 16px;
  color: #fff;
  background: rgba(1, 5, 14, 0.8);
  padding: 12px;
  resize: vertical;
}

.support-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px dashed rgba(34, 211, 238, 0.34);
  border-radius: 14px;
  color: var(--fb-cyan);
  font-weight: 1000;
  cursor: pointer;
}

.support-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.game-overlay {
  z-index: 900;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
}

.game-toolbar {
  width: min(1600px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 10px;
}

.game-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.game-brand img {
  width: 180px;
}

.game-brand strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.game-shell {
  position: relative;
  width: min(1600px, 100%);
  height: min(900px, calc(100vh - 104px));
  overflow: hidden;
  border-radius: 22px;
}

.game-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #02030a;
}

.frame-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 32%, rgba(124, 58, 237, 0.28), transparent 38%),
    rgba(1, 3, 10, 0.86);
}

.frame-status-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  border-radius: 24px;
  padding: 24px;
}

.frame-status-card img {
  width: 260px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 98px;
  z-index: 1200;
  max-width: min(460px, calc(100vw - 28px));
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 16px;
  padding: 13px 16px;
  color: #fff;
  background: rgba(2, 6, 18, 0.94);
  box-shadow: var(--fb-glow);
  font-weight: 900;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast[data-tone="error"] {
  border-color: rgba(251, 113, 133, 0.55);
}

@media (max-width: 1279px) {
  .fb-shell {
    grid-template-columns: 86px minmax(0, 1fr) 280px;
  }

  .fb-sidebar {
    padding: 10px;
  }

  .sidebar-logo {
    display: none;
  }

  .sidebar-nav button {
    justify-content: center;
    padding-inline: 6px;
    font-size: 0.68rem;
  }

  .sidebar-vip {
    padding: 10px;
  }

  .sidebar-vip img {
    width: 58px;
  }

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

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

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

@media (max-width: 1023px) {
  .intro-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .intro-visual {
    min-height: 420px;
    order: -1;
  }

  .fb-shell {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 14px;
  }

  .fb-sidebar {
    display: none;
  }

  .fb-right {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fb-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .header-nav {
    display: none;
  }

  .hero-banner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 340px;
  }

  .hero-station {
    max-height: 360px;
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 767px) {
  .fb-shell {
    padding: 10px 10px 104px;
  }

  .fb-header {
    min-height: 66px;
    border-radius: 18px;
    gap: 8px;
  }

  .header-logo {
    width: min(182px, 42vw);
  }

  .search-pill,
  .deposit-btn,
  .visitor-actions .fb-button:not(.primary),
  .casino-round-btn:not(.profile-btn),
  .casino-lang-pill,
  .casino-strip-separator {
    display: none;
  }

  .visitor-actions {
    gap: 7px;
  }

  .visitor-actions .fb-button.primary {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .casino-account-strip {
    padding: 5px;
    gap: 5px;
  }

  .casino-wallet-pill {
    min-width: 118px;
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .casino-round-btn {
    width: 40px;
    min-height: 40px;
  }

  .casino-account-panel {
    position: fixed;
    top: 76px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .hero-banner {
    min-height: auto;
    padding: 18px;
  }

  .hero-copy .brand-line {
    width: min(320px, 100%);
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 12vw, 4.2rem);
  }

  .hero-visual {
    min-height: 260px;
  }

  .hero-ship {
    width: 46%;
    bottom: 10%;
  }

  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card {
    min-height: 116px;
  }

  .category-card img {
    max-height: 70px;
  }

  .fb-right {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-spotlight {
    grid-template-columns: 1fr;
  }

  .provider-spotlight-actions {
    justify-content: flex-start;
  }

  .special-row {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    display: grid;
  }

  .support-widget {
    right: 10px;
    bottom: 94px;
  }

  .support-fab {
    min-width: 126px;
    min-height: 48px;
  }

  .support-panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 128px);
  }

  .support-thread {
    min-height: 170px;
  }

  .game-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-brand img {
    width: 150px;
  }

  .game-shell {
    height: calc(100vh - 154px);
  }

  .modal-card {
    padding: 18px;
  }

  .history-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .fb-shell {
    padding-inline: 8px;
  }

  .fb-header {
    padding: 8px;
  }

  .header-logo {
    width: 148px;
  }

  .icon-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .casino-wallet-pill {
    min-width: 96px;
  }

  .casino-wallet-pill .wallet-icon {
    display: none;
  }

  .hero-visual {
    min-height: 220px;
  }

  .category-card {
    padding-inline: 6px;
  }

  .featured-grid,
  .games-grid {
    gap: 9px;
  }

  .game-card {
    min-height: 228px;
    grid-template-rows: 128px auto auto;
    padding: 10px;
    border-radius: 18px;
  }

  .game-card img {
    height: 128px;
    border-radius: 13px;
  }

  .featured-grid .game-card {
    min-height: 210px;
    grid-template-rows: 112px auto auto;
  }

  .featured-grid .game-card img {
    height: 112px;
  }

  .bottom-nav {
    left: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@keyframes floatStation {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

@keyframes driftShip {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  50% {
    transform: translate3d(-18px, -12px, 0) rotate(-2deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 28px rgba(217, 70, 239, 0.4);
  }
  50% {
    box-shadow: 0 0 52px rgba(34, 211, 238, 0.5);
  }
}

@keyframes shimmerBorder {
  0% {
    border-color: rgba(34, 211, 238, 0.28);
  }
  50% {
    border-color: rgba(217, 70, 239, 0.62);
  }
  100% {
    border-color: rgba(34, 211, 238, 0.28);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loadingProgress {
  0% {
    transform: translateX(-28%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(8%);
  }
}

@keyframes rotateOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes starDrift {
  to {
    transform: translate3d(-90px, 90px, 0);
  }
}

@keyframes nebulaPulse {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
