:root {
  --ink: #11110f;
  --ink-soft: #242420;
  --paper: #f1f2ee;
  --surface: #ffffff;
  --surface-soft: #e5e7e1;
  --text: #171815;
  --text-soft: #666960;
  --text-faint: #8a8d84;
  --line: #d4d7cf;
  --line-dark: #363731;
  --coral: #ff4f3d;
  --coral-dark: #d93628;
  --acid: #d8ff45;
  --cyan: #3ecfe2;
  --positive: #14845a;
  --danger: #d63f34;
  --shadow: 0 14px 34px rgba(17, 17, 15, .12);
  --nav-height: 72px;
  --rail-width: 132px;
  --content-width: 1510px;
  --radius: 6px;
  --fast: 160ms ease;
  --normal: 260ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 18px);
}

html.ip-language-pending body {
  visibility: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body::selection {
  background: var(--acid);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.btn {
  min-height: 40px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 750;
  transition: transform var(--fast), background var(--fast), color var(--fast), border-color var(--fast);
}

.btn:active {
  transform: translateY(1px);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 3px solid var(--acid);
  background: var(--ink);
  color: #fff;
}

.navbar-inner {
  display: flex;
  align-items: center;
  width: min(100%, 1680px);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-lockup {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.logo-img {
  width: 132px;
  height: auto;
}

.brand-edition {
  padding-left: 14px;
  border-left: 1px solid #4b4c46;
  color: var(--acid);
  font-family: Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}

.primary-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 2px;
  margin-left: 18px;
}

.nav-link {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 14px;
  color: #bfc0ba;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-link::after {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
  height: 2px;
  background: var(--coral);
  content: "";
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity var(--fast), transform var(--fast);
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-login,
.btn-register {
  padding: 0 17px;
  white-space: nowrap;
}

.btn-login {
  border: 1px solid #55564f;
  background: transparent;
  color: #fff;
}

.btn-login:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.btn-register {
  background: var(--coral);
  color: #fff;
}

.btn-register:hover,
.btn-play:hover,
.btn-submit:hover,
.retry-btn:hover {
  background: var(--acid);
  color: var(--ink);
}

.language-switcher {
  position: relative;
}

.language-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 108px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #454640;
  border-radius: 3px;
  background: transparent;
  color: #dedfd8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.language-trigger::after {
  margin-left: auto;
  content: "⌄";
  transition: transform var(--fast);
}

.language-switcher.open .language-trigger::after {
  transform: rotate(180deg);
}

.language-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(62, 207, 226, .15);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 150;
  width: 188px;
  padding: 6px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: var(--ink-soft);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #d4d5cf;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.language-option span:last-child {
  color: #777972;
  font-family: Consolas, monospace;
  font-size: 10px;
}

.language-option:hover,
.language-option.is-active {
  background: var(--acid);
  color: var(--ink);
}

.language-option:hover span:last-child,
.language-option.is-active span:last-child {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 40px;
  padding: 10px;
  border: 1px solid #454640;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: #fff;
  transition: transform var(--fast), opacity var(--fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  right: 0;
  left: 0;
  z-index: 120;
  padding: 14px 20px 20px;
  border-bottom: 3px solid var(--acid);
  background: var(--ink);
}

.mobile-menu.active {
  display: grid;
}

.mobile-menu > a {
  padding: 12px 2px;
  border-bottom: 1px solid #33342f;
  color: #e8e9e2;
  font-size: 14px;
  font-weight: 650;
}

.mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.site-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.side-rail {
  position: sticky;
  top: var(--nav-height);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-height));
  min-height: 580px;
  border-right: 1px solid var(--line);
  background: #e6e7e1;
}

.rail-status {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--coral-dark);
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.rail-status span,
.live-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  animation: signal 1.6s ease-in-out infinite;
}

@keyframes signal {
  50% { opacity: .35; transform: scale(.78); }
}

.rail-nav {
  display: grid;
}

.rail-link {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: #5e6159;
  transition: background var(--fast), color var(--fast);
}

.rail-link b {
  color: #989b92;
  font-family: Consolas, monospace;
  font-size: 9px;
}

.rail-link span {
  font-size: 12px;
  font-weight: 750;
}

.rail-link:hover,
.rail-link.is-active {
  background: var(--ink);
  color: #fff;
}

.rail-link.is-active b {
  color: var(--acid);
}

.rail-foot {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 18px 16px;
  border-top: 1px solid var(--line);
}

.rail-foot span {
  font-size: 23px;
  font-weight: 850;
}

.rail-foot small {
  color: var(--text-faint);
  font-family: Consolas, monospace;
  font-size: 8px;
}

.main-content {
  min-width: 0;
  padding: 24px 30px 64px;
}

.hero-banner {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background-image: url('/assets/hero-banner.png');
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(13, 11, 10, .68);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(750px, 72%);
  min-height: 386px;
  padding: 42px 48px 78px;
}

.hero-kicker,
.section-eyebrow,
.category-number,
.score-label,
.modal-kicker,
.bottom-promo > div > span {
  color: var(--acid);
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.hero-title {
  max-width: 720px;
  margin: 0;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.highlight,
.text-green {
  color: var(--acid);
}

.hero-subtitle {
  margin: 18px 0 2px;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
}

.hero-note {
  max-width: 580px;
  margin: 0;
  color: #c6c7c0;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 174px;
  min-height: 48px;
  padding: 0 18px;
  background: var(--coral);
  color: #fff;
  font-size: 13px;
}

.btn-play span:last-child {
  font-size: 20px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-socials img {
  width: 30px;
  height: 30px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(17, 17, 15, .72);
  object-fit: contain;
}

.hero-score {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 18px;
  min-width: 330px;
  padding: 14px 18px 13px;
  border-left: 4px solid var(--acid);
  background: var(--ink);
}

.hero-score strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 13px;
}

.score-ticker {
  color: var(--cyan);
  font-family: Consolas, monospace;
  font-size: 9px;
}

.discovery-bar {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(300px, 1.25fr) auto;
  align-items: center;
  gap: 20px;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line);
}

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

.discovery-heading h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.discovery-heading .text-green {
  color: var(--coral);
}

.section-index {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--acid);
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 10px 0 16px;
  border: 1px solid #bbbeb5;
  border-radius: 3px;
  background: var(--surface);
  transition: border-color var(--fast), box-shadow var(--fast);
}

.search-box:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 79, 61, .13);
}

.search-mark {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.search-mark::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: var(--ink);
  content: "";
  transform: rotate(45deg);
}

.search-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.search-input::placeholder {
  color: var(--text-faint);
}

.search-box kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--text-faint);
  font-family: Consolas, monospace;
  font-size: 9px;
}

.filter-chips {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.filter-chip {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.filter-chip:last-child {
  border-right: 0;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--ink);
  color: #fff;
}

.category-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0 50px;
}

.category-card {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  outline: 0;
  box-shadow: 0 0 0 1px rgba(17, 17, 15, .08);
}

.category-card:focus-visible {
  box-shadow: 0 0 0 3px var(--cyan);
}

.category-image,
.category-tint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-image {
  object-fit: cover;
  transition: transform 500ms ease;
}

.category-tint {
  background: rgba(17, 17, 15, .52);
}

.category-card:hover .category-image {
  transform: scale(1.035);
}

.category-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 64%;
  min-height: 292px;
  padding: 28px;
}

.category-number {
  color: var(--acid);
}

.category-copy h2 {
  margin: 5px 0 2px;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 34px;
  line-height: 1.1;
}

.category-copy p {
  margin: 0 0 18px;
  color: #d6d7d1;
  font-size: 12px;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  min-width: 150px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(17, 17, 15, .78);
  color: #fff;
  font-size: 11px;
}

.btn-card:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.game-section {
  margin: 0 0 52px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.section-heading .section-index {
  background: transparent;
  color: var(--ink);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--coral-dark);
}

.section-title {
  margin: 2px 0 0;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 23px;
  line-height: 1.1;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-view-all {
  min-height: 34px;
  padding: 0 10px;
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;
}

.btn-view-all:hover {
  color: var(--coral-dark);
}

.btn-nav,
.btn-expand {
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 17px;
}

.btn-nav:hover,
.btn-expand:hover {
  background: var(--ink);
  color: var(--acid);
}

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

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 2px 0 rgba(17, 17, 15, .05);
  transition: transform var(--normal), border-color var(--normal), box-shadow var(--normal);
}

.game-card:hover {
  z-index: 2;
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.game-card.is-filtered-out {
  display: none;
}

.game-card:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.game-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: .78;
  background: var(--ink-soft);
}

.game-card-img,
.game-card-placeholder {
  width: 100%;
  height: 100%;
}

.game-card-img {
  object-fit: cover;
  transition: transform 420ms ease;
}

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

.game-card-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 18px;
  color: #fff;
  text-align: center;
}

.game-emoji {
  font-size: 34px;
}

.game-name {
  margin-top: 8px;
  font-weight: 800;
}

.game-provider {
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
}

.game-card-badge,
.game-card-live,
.game-card-exclusive {
  position: absolute;
  z-index: 3;
  top: 8px;
  min-height: 23px;
  padding: 4px 7px;
  border-radius: 2px;
  font-family: Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  line-height: 15px;
}

.game-card-badge {
  right: 8px;
  background: rgba(17, 17, 15, .82);
  color: #fff;
}

.game-card-badge .heart {
  color: var(--coral);
}

.game-card-live,
.game-card-exclusive {
  left: 8px;
  background: var(--coral);
  color: #fff;
}

.game-card-exclusive {
  background: var(--acid);
  color: var(--ink);
}

.game-card-play {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity var(--fast), transform var(--fast);
}

.game-card:hover .game-card-play,
.game-card:focus-within .game-card-play {
  opacity: 1;
  transform: translateY(0);
}

.game-card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 10px;
}

.game-card-copy {
  min-width: 0;
}

.game-card-copy strong,
.game-card-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card-copy strong {
  font-size: 10px;
  line-height: 1.25;
}

.game-card-copy span {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 9px;
}

.game-card-code {
  color: var(--text-faint);
  font-family: Consolas, monospace;
  font-size: 9px;
}

.live-bets-section {
  overflow: hidden;
  margin: 8px 0 34px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
}

.live-bets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 15px 18px;
  background: var(--ink);
  color: #fff;
}

.live-bets-header h2 {
  margin: 2px 0 0;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 22px;
}

.total-bets {
  color: var(--acid);
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.live-bets-tabs {
  display: flex;
  min-height: 45px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.tab-btn {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid #c7cac1;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.tab-btn:last-child {
  border-right: 0;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--surface);
  color: var(--coral-dark);
}

.bets-table-wrapper {
  overflow-x: auto;
}

.bets-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.bets-table th,
.bets-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.bets-table th {
  color: var(--text-faint);
  font-family: Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.bets-table td {
  font-size: 11px;
}

.bets-table tbody tr:nth-child(even) {
  background: #f7f8f5;
}

.bets-table tbody tr:hover {
  background: #f0ffd0;
}

.bet-game,
.bet-user {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bet-game-icon,
.user-avatar {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  overflow: hidden;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
}

.user-avatar {
  background: var(--surface-soft);
  color: var(--text-soft);
}

.user-name.hidden {
  color: var(--text-faint);
}

.bet-amount {
  font-weight: 750;
}

.currency {
  color: var(--text-faint);
  font-size: 9px;
}

.multiplier-badge {
  padding: 4px 7px;
  border-radius: 2px;
  background: var(--surface-soft);
  font-family: Consolas, monospace;
  font-size: 9px;
  font-weight: 750;
}

.multiplier-badge.win,
.payout-positive {
  color: var(--positive);
}

.multiplier-badge.loss,
.payout-zero {
  color: var(--text-faint);
}

.bottom-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 16px 18px;
  border-top: 3px solid var(--coral);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.bottom-promo p {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.bottom-promo > div > span {
  color: var(--coral-dark);
}

.footer {
  padding: 38px max(30px, calc((100vw - var(--content-width)) / 2 + 30px)) 28px;
  border-top: 4px solid var(--acid);
  background: var(--ink);
  color: #fff;
}

.footer-lead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #373832;
}

.footer-brand p {
  margin: 12px 0 0;
  color: #8f9189;
  font-size: 11px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #43443e;
  border-radius: 3px;
  transition: background var(--fast), border-color var(--fast);
}

.social-link:hover {
  border-color: var(--acid);
  background: var(--acid);
}

.social-link img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.social-link:hover img {
  filter: brightness(0);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid #373832;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-col h3 {
  margin: 0 0 5px;
  color: var(--acid);
  font-family: Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.footer-col a {
  width: fit-content;
  color: #aeb0a8;
  font-size: 11px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px 0;
}

.footer-certifications,
.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-certifications span,
.footer-payments span {
  min-height: 25px;
  padding: 5px 7px;
  border: 1px solid #40413b;
  border-radius: 2px;
  color: #8f9189;
  font-family: Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
}

.footer-payments span {
  color: var(--cyan);
}

.footer-language .language-menu {
  top: auto;
  bottom: calc(100% + 9px);
}

.footer-legal {
  max-width: 1180px;
  margin: 0;
  color: #6e7069;
  font-size: 9px;
  line-height: 1.65;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 6px;
}

.float-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(17, 17, 15, .12);
}

.float-btn:hover {
  background: var(--ink);
  color: var(--acid);
}

.float-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 9, .78);
}

.modal-overlay.active {
  display: flex;
}

.modal-container,
.loading-content {
  position: relative;
  width: min(100%, 510px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--ink);
  border-top: 5px solid var(--coral);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 18px 18px 0 rgba(216, 255, 69, .9);
}

.modal-container {
  padding: 30px;
}

.modal-close,
.loading-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover,
.loading-close-btn:hover {
  background: var(--ink);
  color: #fff;
}

.modal-kicker {
  color: var(--coral-dark);
}

.modal-header {
  padding-right: 42px;
}

.modal-header h2,
.loading-title {
  margin: 5px 0 6px;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 28px;
  line-height: 1.15;
}

.modal-header p,
.loading-subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.modal-form {
  display: grid;
  gap: 15px;
  margin-top: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.form-group label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #bfc2b9;
  border-radius: 3px;
  outline: 0;
  background: #f8f9f6;
  font-size: 13px;
}

.form-group input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 79, 61, .12);
}

.form-options {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 11px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-label input {
  accent-color: var(--coral);
}

.forgot-link,
.checkbox-label a,
.modal-footer-text a {
  color: var(--coral-dark);
  font-weight: 750;
}

.btn-submit,
.retry-btn {
  min-height: 48px;
  border: 0;
  border-radius: 3px;
  background: var(--coral);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 10px;
}

.modal-divider::before,
.modal-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-social {
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.btn-social b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
}

.btn-social:hover {
  background: var(--ink);
  color: #fff;
}

.modal-footer-text {
  margin: 0;
  text-align: center;
  font-size: 11px;
}

.loading-content {
  padding: 34px;
  overflow: hidden;
}

.loading-signal {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 42px;
  margin-bottom: 20px;
}

.loading-signal span {
  width: 8px;
  background: var(--coral);
  animation: levels 900ms ease-in-out infinite alternate;
}

.loading-signal span:nth-child(1) { height: 35%; }
.loading-signal span:nth-child(2) { height: 70%; animation-delay: 150ms; }
.loading-signal span:nth-child(3) { height: 100%; animation-delay: 300ms; }
.loading-signal span:nth-child(4) { height: 55%; animation-delay: 450ms; }

@keyframes levels {
  to { height: 25%; background: var(--cyan); }
}

.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
  color: var(--text-soft);
  font-family: Consolas, monospace;
  font-size: 10px;
}

.progress-container {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--surface-soft);
}

.progress-bar {
  width: 0;
  height: 100%;
  background: var(--coral);
  transition: width 120ms linear;
}

.error-icon,
.retry-btn,
.loading-close-btn {
  display: none;
}

.loading-content.error .loading-signal,
.loading-content.error .progress-container {
  display: none;
}

.loading-content.error .error-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 2px solid var(--danger);
  border-radius: 50%;
  color: var(--danger);
  font-size: 22px;
  font-weight: 900;
}

.loading-content.error .retry-btn {
  display: block;
  width: 100%;
  margin-top: 22px;
}

.loading-content.error .loading-close-btn {
  display: grid;
}

html[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .bets-table th,
html[dir="rtl"] .bets-table td {
  text-align: right;
}

html[dir="rtl"] .category-copy,
html[dir="rtl"] .hero-content {
  text-align: right;
}

@media (max-width: 1320px) {
  .primary-nav { display: none; }
  .menu-toggle { display: block; }
  .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
  .site-shell { grid-template-columns: 1fr; }
  .side-rail { display: none; }
  .main-content { padding: 22px 24px 58px; }
  .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .discovery-bar { grid-template-columns: 1fr 1.4fr; }
  .filter-chips { grid-column: 1 / -1; width: fit-content; }
  .category-copy { width: 78%; }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-meta { grid-template-columns: 1fr 1fr; }
  .footer-language { grid-column: 1 / -1; width: fit-content; }
}

@media (max-width: 720px) {
  :root { --nav-height: 64px; }
  .navbar-inner { padding: 0 14px; }
  .brand-lockup { min-width: 0; }
  .brand-edition { display: none; }
  .logo-img { width: 112px; }
  .navbar-right > .btn { display: none; }
  .main-content { padding: 16px 14px 48px; }
  .hero-banner { min-height: 448px; }
  .hero-content { width: 100%; min-height: 444px; padding: 32px 24px 96px; }
  .hero-title { font-size: 34px; }
  .hero-note { max-width: 92%; }
  .hero-score { right: 0; left: 0; min-width: 0; border-left: 0; border-top: 3px solid var(--acid); }
  .discovery-bar { grid-template-columns: 1fr; gap: 14px; }
  .filter-chips { grid-column: auto; max-width: 100%; overflow-x: auto; }
  .category-cards { grid-template-columns: 1fr; }
  .category-card,
  .category-copy { min-height: 276px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer { padding: 32px 18px 24px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .footer-meta { grid-template-columns: 1fr; }
  .footer-language { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .language-trigger { min-width: 42px; width: 42px; padding: 0 10px; }
  .navbar .language-trigger #languageCurrent { display: none; }
  .navbar .language-trigger::after { display: none; }
  .navbar .language-menu { position: fixed; top: var(--nav-height); right: 10px; left: auto; }
  .hero-banner { min-height: 472px; background-position: 64% center; }
  .hero-content { min-height: 468px; padding: 28px 18px 100px; }
  .hero-title { font-size: 29px; line-height: 1.1; }
  .hero-subtitle { font-size: 15px; }
  .hero-note { font-size: 12px; }
  .hero-actions { gap: 10px; }
  .btn-play { min-width: 156px; gap: 22px; }
  .hero-score { grid-template-columns: 1fr; gap: 2px; padding: 11px 14px; }
  .hero-score strong { grid-row: auto; grid-column: auto; }
  .score-ticker { display: none; }
  .discovery-heading h2 { font-size: 17px; }
  .search-box kbd { display: none; }
  .category-copy { width: 88%; padding: 22px; }
  .category-copy h2 { font-size: 29px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .game-card-meta { min-height: 57px; padding: 8px; }
  .section-header { align-items: flex-end; }
  .section-eyebrow { font-size: 8px; }
  .section-title { font-size: 18px; }
  .section-actions { gap: 4px; }
  .btn-view-all { display: none; }
  .btn-nav { width: 32px; min-width: 32px; min-height: 32px; }
  .live-bets-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .total-bets { text-align: left; }
  .live-bets-tabs { overflow-x: auto; }
  .tab-btn { flex: 0 0 auto; padding: 0 11px; }
  .bottom-promo p { font-size: 12px; }
  .footer-lead { align-items: flex-start; flex-direction: column; }
  .floating-actions { right: 10px; bottom: 10px; }
  .float-btn { width: 38px; height: 38px; }
  .modal-overlay { padding: 12px; }
  .modal-container,
  .loading-content { box-shadow: 8px 8px 0 rgba(216, 255, 69, .9); }
  .modal-container,
  .loading-content { padding: 24px 20px; }
  .modal-header h2,
  .loading-title { font-size: 24px; }
}

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