:root {
  color-scheme: dark;
  --bg: #0b1118;
  --panel: #111a24;
  --panel-2: #172231;
  --panel-3: #202d3d;
  --line: #2d3a4c;
  --text: #eef5ff;
  --muted: #93a4b8;
  --red: #ed1d49;
  --red-dark: #a51230;
  --green: #22c55e;
  --gold: #ffc94a;
  --cyan: #30b7ff;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 100vh;
  overflow-y: auto;
  padding: 14px;
  background: #0f1722;
  border-right: 1px solid #233044;
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
}

.brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand img {
  width: 36px;
  height: 36px;
}

.sidebar-reward {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, #9a6424, #4c2b16);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 151, 52, 0.18);
}

.reward-badge {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
}

.event-tile {
  position: relative;
  width: 100%;
  height: 58px;
  margin-top: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.event-tile-blue {
  background: radial-gradient(120% 180% at 50% -60%, #2283f6 0%, #265b9a 50%, #001834 100%);
}

.event-tile-red {
  background: radial-gradient(120% 180% at 50% -60%, #ed1d49 0%, #9c2a3f 50%, #2e0008 100%);
}

.event-tile span {
  position: relative;
  z-index: 2;
}

.event-bg,
.event-left,
.event-right {
  position: absolute;
  pointer-events: none;
}

.event-bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.event-left {
  left: 4px;
  bottom: -4px;
  height: 58px;
}

.event-right {
  right: 2px;
  bottom: -4px;
  height: 58px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0 12px;
}

.mode-tab-wrap {
  position: relative;
}

.mode-tab,
.nav-list button,
.sidebar-footer button {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: var(--panel);
  font-weight: 700;
}

.mode-tab.active,
.nav-list button.active,
.casino-sidebar-nav button.active {
  color: var(--text);
  background: var(--panel-2);
  border-color: #33445c;
}

.nav-list,
.casino-sidebar-nav {
  display: grid;
  gap: 4px;
}

.nav-list button,
.casino-sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.casino-sidebar-nav {
  display: none;
}

body.casino-mode .casino-sidebar-nav {
  display: grid;
}

body.casino-mode .nav-list,
body.casino-mode .sidebar-footer {
  display: none;
}

.casino-sidebar-nav button {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.casino-sidebar-nav b {
  margin-left: auto;
  color: #9eb0c4;
  font-size: 24px;
  line-height: 1;
}

.sidebar-separator {
  display: block;
  height: 1px;
  margin: 10px 0;
  background: #233044;
}

.nav-list i,
.casino-sidebar-nav i {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.nav-list span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #243247;
  color: #c8d6e8;
  font-size: 12px;
  font-weight: 800;
}

.nav-svg,
.icon-img {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #c9d6e8;
}

.icon-img {
  object-fit: contain;
}

.flyout-menu {
  position: fixed;
  left: 268px;
  top: 142px;
  z-index: 10000;
  width: 276px;
  max-height: min(620px, calc(100vh - 160px));
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #31435b;
  border-radius: 8px;
  background: #111a24;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.mode-tab-wrap:hover .flyout-menu,
.mode-tab-wrap:focus-within .flyout-menu,
.mode-tab-wrap.flyout-open .flyout-menu,
.flyout-menu.flyout-open,
.flyout-menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.flyout-menu.flyout-floating {
  position: fixed;
}

.flyout-group {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid #27364a;
}

.flyout-group:first-child {
  padding-top: 0;
}

.flyout-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.flyout-group button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: #b9c7da;
  text-align: left;
}

.flyout-group button:hover {
  background: #1b2736;
  color: #fff;
}

.flyout-group svg,
.section-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #8ea6c2;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #243145;
}

.pay-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.pay-row img {
  width: 100%;
  height: 28px;
  padding: 6px;
  border-radius: 8px;
  background: var(--panel);
  object-fit: contain;
}

.main-area {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 22px;
  background: rgba(11, 17, 24, 0.9);
  border-bottom: 1px solid #233044;
  backdrop-filter: blur(14px);
}

.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 120px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #2c3a4e;
  border-radius: 8px;
  background: #111923;
  color: var(--muted);
}

.topbar-search-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #7f94ae;
}

.search-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.auth-actions,
.user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-pill,
.avatar-button,
.top-icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--text);
  font-weight: 900;
}

.balance-pill {
  padding: 0 12px;
}

.balance-pill small {
  color: var(--muted);
  font-size: 12px;
}

.profile-menu {
  position: relative;
}

.avatar-button {
  max-width: 150px;
  padding: 0 10px 0 6px;
}

.avatar-button img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d7e3f2;
}

.avatar-button span {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10020;
  display: grid;
  width: 240px;
  gap: 8px;
  padding: 14px;
  border: 1px solid #31435b;
  border-radius: 8px;
  background: #151f2d;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.profile-popover.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-avatar-large {
  justify-self: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #d7e3f2;
}

.profile-popover strong {
  text-align: center;
  font-size: 18px;
}

.profile-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-progress i {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green) 12%, #34465e 12%);
}

.profile-popover button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: #243247;
  color: #dce8f8;
  text-align: left;
  font-weight: 800;
}

.top-icon-button {
  justify-content: center;
  width: 38px;
  padding: 0;
}

.top-icon-button svg {
  width: 20px;
  height: 20px;
}

.language-menu {
  position: relative;
  z-index: 30;
}

.language-current,
.language-options button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 8px;
  color: #dce8f8;
  font-weight: 900;
}

.language-current {
  min-width: 104px;
  padding: 0 12px;
  border: 1px solid #2c3a4e;
  background: #111923;
}

.language-current img,
.language-options img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 160px;
  padding: 6px;
  border: 1px solid #31435b;
  border-radius: 8px;
  background: #111a24;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.language-menu.open .language-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-options button {
  justify-content: flex-start;
  border: 0;
  padding: 0 10px;
  background: transparent;
}

.language-options button:hover,
.language-options button.active {
  background: #1d2a3b;
  color: #fff;
}

.button,
.wallet-button,
.icon-button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  font-weight: 800;
}

.button-primary {
  background: linear-gradient(#ff315d, var(--red));
  box-shadow: 0 3px 0 var(--red-dark);
}

.button-muted,
.icon-button {
  background: var(--panel-3);
}

.wallet-button {
  background: #1f7a46;
  box-shadow: 0 3px 0 #12512e;
}

.button-wide {
  width: 100%;
}

.button,
.wallet-button,
.icon-button,
.mode-tab,
.nav-list button,
.sidebar-footer button,
.casino-categories button,
.banner-card,
.bonus-card,
.provider-card,
.sport-row,
.activity-row,
.feature-panel {
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.button:hover,
.wallet-button:hover,
.icon-button:hover,
.mode-tab:hover,
.nav-list button:hover,
.sidebar-footer button:hover,
.casino-categories button:hover,
.banner-card:hover,
.bonus-card:hover,
.provider-card:hover,
.sport-row:hover,
.activity-row:hover,
.feature-panel:hover {
  transform: translateY(-1px);
}

.user-pill {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--panel);
  color: #cdd9ea;
}

.content {
  min-height: calc(100vh - 64px);
  padding: 22px;
}

.casino-page {
  display: grid;
  gap: 20px;
}

.category-hero {
  display: grid;
  gap: 8px;
  min-height: 170px;
  align-content: center;
  border: 1px solid #26364d;
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(135deg, #172231, #101820 55%, #321426);
}

.category-hero span {
  color: var(--gold);
  font-weight: 900;
}

.category-hero h1 {
  margin-bottom: 0;
}

.rewards-page {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.rewards-hero b {
  color: var(--green);
}

.promo-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  border: 1px solid #26364d;
  border-radius: 8px;
  padding: 10px;
  background: #111a24;
}

.promo-code-row input {
  min-height: 42px;
  border: 1px solid #304158;
  border-radius: 8px;
  padding: 0 12px;
  outline: 0;
  background: #0d141e;
  color: var(--text);
}

.promo-code-row button,
.reward-card button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(#ff315d, var(--red));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 3px 0 var(--red-dark);
}

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

.reward-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  border: 1px solid #2d3d54;
  border-radius: 8px;
  padding: 14px;
  background: #172231;
}

.reward-card strong,
.reward-card span {
  display: block;
}

.reward-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.reward-card button {
  min-width: 104px;
  min-height: 40px;
}

.game-detail-page {
  display: grid;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.game-toolbar,
.game-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.game-toolbar {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.game-toolbar b {
  color: var(--gold);
}

.game-toolbar span {
  margin-left: 12px;
}

.game-tools {
  display: flex;
  gap: 8px;
}

.game-tools button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #2d3d54;
  border-radius: 8px;
  background: #121c28;
  color: #9eb0c4;
  font-weight: 900;
}

.game-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: clamp(420px, 58vh, 760px);
  border: 1px solid #2c3a4e;
  border-radius: 8px;
  background: radial-gradient(60% 80% at 50% 20%, #253650, #090f16 70%);
}

.game-stage img {
  width: min(420px, 54%);
  max-height: 78%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.game-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(237, 29, 73, 0.22), transparent 28%), radial-gradient(circle at 82% 80%, rgba(48, 183, 255, 0.18), transparent 30%);
  pointer-events: none;
}

.game-stage-overlay {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
  max-width: 420px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(12, 18, 27, 0.82);
  backdrop-filter: blur(12px);
}

.game-stage-overlay span {
  color: var(--gold);
  font-weight: 900;
}

.game-stage-overlay h1,
.game-stage-overlay p {
  margin: 0;
}

.game-stage-overlay p {
  color: var(--muted);
}

.game-info-bar {
  border: 1px solid #26364d;
  border-radius: 8px;
  padding: 16px 18px;
  background: #111a24;
}

.game-info-bar h2 {
  margin: 0 0 4px;
}

.game-info-bar span,
.game-battle em {
  color: var(--muted);
  font-style: normal;
}

.game-battle {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 12px;
  align-items: center;
  text-align: right;
}

.game-battle strong {
  color: var(--gold);
  font-size: 24px;
}

.casino-banners {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.banner-card {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid #2d3e56;
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  text-align: left;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.banner-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.banner-card span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 300px;
  color: #dce9fb;
  font-weight: 800;
}

.banner-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  font-size: 30px;
}

.banner-red {
  background: linear-gradient(135deg, #43182a, #d91748);
}

.banner-blue {
  background: linear-gradient(135deg, #082141, #2368cc);
}

.banner-green {
  background: linear-gradient(135deg, #102b27, #199061);
}

.casino-categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 6px;
}

.casino-categories button,
.lobby-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #2d3d54;
  border-radius: 8px;
  padding: 0 14px;
  background: #141e2b;
  color: #c5d3e4;
  white-space: nowrap;
  font-weight: 800;
}

.casino-categories button:hover,
.casino-categories button.active {
  border-color: #ed1d49;
  background: #231d2b;
  color: #fff;
}

.lobby-search {
  width: min(520px, 100%);
  color: #8ea6c2;
}

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

.operation-card {
  min-height: 94px;
  border: 1px solid #2b3a50;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #152032, #101820);
}

.operation-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.operation-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 26px;
}

.operation-card.green {
  border-color: rgba(34, 197, 94, 0.38);
}

.operation-card.gold {
  border-color: rgba(255, 201, 74, 0.42);
}

.operation-card.red {
  border-color: rgba(237, 29, 73, 0.42);
}

.operation-card.cyan {
  border-color: rgba(48, 183, 255, 0.42);
}

.live-board,
.market-news,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.board-panel,
.market-news article,
.insight-panel {
  border: 1px solid #26364d;
  border-radius: 8px;
  padding: 18px;
  background: #111a24;
}

.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.board-heading h2 {
  margin: 0;
}

.board-heading span,
.market-news span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.campaign-row,
.winner-row,
.insight-line {
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-top: 1px solid #243247;
}

.campaign-row,
.winner-row {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.campaign-row {
  grid-template-columns: minmax(0, 1fr) 96px 54px;
}

.winner-row {
  grid-template-columns: 86px minmax(0, 1fr) 82px;
}

.campaign-row strong,
.winner-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-row span,
.winner-row em,
.insight-line strong {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.campaign-row em,
.winner-row span,
.insight-line span,
.market-news p {
  color: var(--muted);
  font-style: normal;
}

.market-news article {
  display: grid;
  gap: 8px;
}

.market-news strong {
  color: #fff;
  font-size: 18px;
}

.market-news p {
  margin: 0;
}

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

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

.lobby-section {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.section-heading h2 {
  margin: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: #1d2d1f;
  color: #cfe8cf;
  font-size: 13px;
  font-weight: 800;
}

.section-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.welcome-bonus {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(180px, 0.75fr) minmax(0, 1.5fr);
  gap: 18px;
  overflow: hidden;
  border: 1px solid #35445b;
  border-radius: 8px;
  padding: 22px;
  background: radial-gradient(80% 140% at 0% 50%, rgba(237, 29, 73, 0.34), transparent 60%), linear-gradient(135deg, #182334, #101820);
}

.welcome-fury {
  align-self: end;
  max-width: 210px;
  width: 100%;
}

.welcome-copy {
  align-self: center;
}

.welcome-copy h2 {
  margin-bottom: 8px;
  color: #fff;
}

.welcome-copy strong {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 26px;
}

.welcome-copy a {
  color: #a9d9ff;
  font-weight: 900;
  text-decoration: none;
}

.bonus-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bonus-card {
  display: grid;
  gap: 7px;
  min-height: 180px;
  border: 1px solid #3a4a60;
  border-radius: 8px;
  padding: 14px;
  background: #111a24;
  color: #d9e6f5;
  text-align: left;
}

.bonus-card strong {
  color: var(--gold);
  font-size: 25px;
}

.bonus-card small {
  color: var(--muted);
  font-size: 13px;
}

.bonus-card em {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-style: normal;
  font-weight: 800;
}

.bonus-card em img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.bonus-card b {
  color: #ff7e99;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 12px;
}

.provider-card {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 118px;
  border: 1px solid #2d3d54;
  border-radius: 8px;
  padding: 14px;
  background: #121c28;
  color: #dce8f8;
}

.provider-card img {
  max-width: 110px;
  max-height: 46px;
  object-fit: contain;
}

.provider-card span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.provider-card small {
  color: var(--muted);
}

.recent-wins {
  border: 1px solid #28384f;
  border-radius: 8px;
  padding: 16px;
  background: #101820;
}

.recent-wins > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.recent-wins button {
  min-height: 76px;
  border: 1px solid #2b3a50;
  border-radius: 8px;
  background: #172231;
  color: #9fb1c6;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-main,
.hero-side,
.feature-panel,
.info-tile,
.promo-tile,
.sport-row,
.setting-row,
.buy-panel {
  border: 1px solid #26364d;
  border-radius: 8px;
  background: linear-gradient(180deg, #152032, #101820);
}

.hero-main {
  min-height: 250px;
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(237, 29, 73, 0.35), transparent 65%);
  pointer-events: none;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: 40px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.hero-main p,
.hero-side p,
.feature-panel p,
.info-tile p,
.promo-tile p,
.sport-row p,
.setting-row p,
.buy-panel p,
.game-meta {
  color: var(--muted);
}

.hero-actions,
.section-title,
.filter-row,
.stats-grid,
.cards-grid,
.sports-list,
.settings-list,
.promo-grid {
  margin-top: 18px;
}

.hero-actions,
.filter-row,
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-side {
  padding: 20px;
  background: linear-gradient(160deg, #182c29, #101820 58%);
}

.mini-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #2d3b4e;
}

.mini-stat:last-child {
  border-bottom: 0;
}

.mini-stat strong {
  color: var(--green);
}

.section-title {
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title a,
.text-link {
  color: #a9d9ff;
  text-decoration: none;
  font-weight: 800;
}

.game-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.game-card {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.game-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 131 / 175;
  border-radius: 8px;
  background: #1b2635;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 160ms ease;
}

.game-card:hover .game-thumb img {
  transform: scale(1.04);
}

.game-card.is-missing .game-thumb::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  color: #c8d6e8;
  text-align: center;
  background: linear-gradient(135deg, #243247, #111923);
}

.game-title {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.game-meta {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.cards-grid,
.promo-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.page-dashboard {
  display: grid;
  gap: 18px;
}

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

.metric-card,
.activity-panel {
  border: 1px solid #26364d;
  border-radius: 8px;
  background: #111a24;
}

.metric-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px;
}

.metric-card span,
.activity-panel p,
.activity-row span,
.activity-row em {
  color: var(--muted);
}

.metric-card strong {
  color: #fff;
  font-size: 26px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.showcase-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
}

.showcase-card .button {
  justify-self: start;
  margin-top: auto;
}

.activity-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.activity-list {
  display: grid;
  gap: 8px;
}

.activity-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border: 1px solid #2d3d54;
  border-radius: 8px;
  padding: 0 12px;
  background: #151f2d;
  color: var(--text);
  text-align: left;
}

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

.feature-panel,
.info-tile,
.promo-tile,
.buy-panel {
  padding: 18px;
}

.feature-panel strong,
.info-tile strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

.sports-list,
.settings-list {
  display: grid;
  gap: 10px;
}

.sport-row,
.setting-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.sport-hot {
  color: var(--red);
  font-weight: 900;
}

.toggle {
  width: 46px;
  height: 26px;
  border-radius: 99px;
  background: #304155;
  position: relative;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.toggle.on {
  background: var(--green);
}

.toggle.on::after {
  left: 24px;
}

.shade {
  position: fixed;
  inset: 0;
  z-index: 10900;
  background: rgba(2, 7, 13, 0.74);
}

.modal {
  position: fixed;
  z-index: 11000;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  padding: 54px 24px 24px;
  border: 1px solid #34465e;
  border-radius: 8px;
  background: #121c28;
  box-shadow: var(--shadow);
  animation: modal-pop 170ms ease both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #223044;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.modal h2 {
  margin-right: 42px;
}

.modal-copy {
  margin: -4px 0 16px;
  color: var(--muted);
}

.modal-tabs,
.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

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

.modal-tabs button,
.connect-grid button {
  min-height: 38px;
  border: 1px solid #2d3d54;
  border-radius: 8px;
  background: #182334;
  color: var(--muted);
  font-weight: 800;
}

.modal-tabs button.active {
  color: var(--text);
  border-color: #ff5473;
  background: #2a2030;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  color: #c9d6e7;
  font-weight: 700;
}

.form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #304158;
  border-radius: 8px;
  padding: 0 12px;
  outline: 0;
  background: #0d141e;
  color: var(--text);
}

.form input:focus {
  border-color: #ff5473;
  box-shadow: 0 0 0 3px rgba(237, 29, 73, 0.16);
}

.password-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.password-rules span {
  min-height: 30px;
  border: 1px solid #2d3d54;
  border-radius: 8px;
  padding: 6px 8px;
  background: #0d141e;
  color: #9eb0c4;
  font-size: 12px;
  font-weight: 800;
}

.password-rules span.valid {
  border-color: rgba(34, 197, 94, 0.58);
  background: rgba(34, 197, 94, 0.1);
  color: #8cf0b4;
}

.form-error {
  margin: 0;
  color: #ff849b;
  font-weight: 700;
}

.wallet-modal {
  width: min(460px, calc(100vw - 28px));
  background:
    radial-gradient(90% 120% at 20% 0%, rgba(34, 197, 94, 0.12), transparent 48%),
    radial-gradient(70% 90% at 100% 15%, rgba(237, 29, 73, 0.16), transparent 48%),
    #121c28;
}

.wallet-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0 0 14px;
  border: 1px solid rgba(237, 29, 73, 0.42);
  border-radius: 8px;
  padding: 0 12px;
  background: linear-gradient(90deg, rgba(237, 29, 73, 0.18), rgba(255, 201, 74, 0.08));
  color: #fff;
  font-weight: 900;
}

.wallet-alert::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

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

.wallet-overview > div {
  display: grid;
  gap: 6px;
  min-height: 78px;
  border: 1px solid #2d3d54;
  border-radius: 8px;
  padding: 12px;
  background: rgba(13, 20, 30, 0.76);
}

.wallet-overview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wallet-overview strong {
  align-self: end;
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

.wallet-overview small {
  color: var(--muted);
  font-size: 12px;
}

.deposit-form {
  display: grid;
  margin-top: 18px;
  gap: 16px;
}

.amount-picker {
  display: grid;
  gap: 8px;
}

.amount-picker > span {
  color: #c9d6e7;
  font-weight: 800;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-amounts button {
  min-height: 44px;
  border: 1px solid #32435a;
  border-radius: 8px;
  background: #172231;
  color: #dce8f8;
  font-weight: 900;
}

.quick-amounts button:hover {
  border-color: #22c55e;
  background: #172c25;
}

.quick-amounts button.selected {
  border-color: #22c55e;
  background: linear-gradient(180deg, #1f7a46, #155d35);
  color: #fff;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.18);
}

.custom-amount input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #304158;
  border-radius: 8px;
  padding: 0 12px;
  outline: 0;
  background: #0d141e;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.custom-amount {
  display: grid;
  gap: 8px;
  color: #c9d6e7;
  font-weight: 800;
}

.custom-amount input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.casino-page > *,
.game-detail-page > *,
.hero,
.page-dashboard > * {
  animation: fade-up 220ms ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 10950;
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-only {
    display: inline-grid;
    place-items: center;
  }

  .topbar {
    padding: 10px 14px;
  }

  .auth-actions,
  .user-actions {
    gap: 6px;
  }

  .user-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .balance-pill {
    display: none;
  }

  .language-options {
    right: auto;
    left: 0;
  }

  .button,
  .wallet-button {
    padding: 0 10px;
  }

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

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

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

  .live-board,
  .market-news,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .activity-panel {
    grid-template-columns: 1fr;
  }

  .game-stage {
    min-height: 430px;
  }

  .game-stage img {
    width: min(320px, 72%);
  }

  .game-stage-overlay {
    right: 14px;
    left: 14px;
    bottom: 14px;
    max-width: none;
  }

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

  .casino-banners,
  .welcome-bonus {
    grid-template-columns: 1fr;
  }

  .bonus-cards {
    grid-template-columns: 1fr;
  }

  .flyout-menu {
    position: static;
    display: none;
    width: 100%;
    max-height: 52vh;
    overflow-y: auto;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .mode-tab-wrap.flyout-open {
    grid-column: 1 / -1;
  }

  .mode-tab-wrap.flyout-open .mode-tab {
    width: calc((100% - 8px) / 2);
  }

  .mode-tab-wrap:hover .flyout-menu,
  .mode-tab-wrap:focus-within .flyout-menu,
  .mode-tab-wrap.flyout-open .flyout-menu {
    display: block;
  }

  h1 {
    font-size: 31px;
  }

  .modal {
    max-height: calc(100vh - 28px);
    overflow-y: auto;
  }
}

@media (max-width: 620px) {
  .content {
    padding: 16px 12px;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .search-wrap {
    order: 3;
    flex-basis: 100%;
  }

  .avatar-button span,
  .top-icon-button {
    display: none;
  }

  .game-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hero-main {
    padding: 22px 18px;
  }

  .sport-row,
  .setting-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .password-rules,
  .quick-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-overview {
    grid-template-columns: 1fr;
  }

  .language-current {
    min-width: 84px;
    padding: 0 9px;
  }

  .language-current span {
    display: none;
  }
}
