:root {
  color-scheme: dark;
  --bg: #050705;
  --bg-elevated: #0b0d0c;
  --surface: #131514;
  --surface-2: #1d201f;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #fff8e8;
  --muted: #b9c3bd;
  --green: #00c982;
  --green-dark: #033b2c;
  --gold: #ffb657;
  --gold-2: #ffd079;
  --blue: #48a7ff;
  --rose: #f15476;
  --violet: #8f6fff;
  --danger: #f94168;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --sidebar: 274px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 78px),
    radial-gradient(circle at 72% 16%, rgba(0, 201, 130, 0.13), transparent 30%),
    #000;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

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

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

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

svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  overflow-y: auto;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent),
    var(--bg);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  margin: 0 0 12px 52px;
  text-transform: uppercase;
  font-weight: 950;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: contain;
}

.brand .brand-logo {
  width: 174px;
  height: auto;
  border-radius: 0;
}

.quick-grid,
.menu-grid,
.contact-grid {
  display: grid;
  gap: 7px;
}

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

.quick-card,
.menu-grid a,
.contact-grid a,
.side-link,
.new-raffle,
.exit-link,
.download-card {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  color: var(--text);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.quick-card {
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 66px;
  padding: 9px 6px;
}

.quick-card b {
  position: absolute;
  top: 5px;
  right: 6px;
  color: var(--green);
  font-size: 0.7rem;
}

.quick-card span,
.menu-grid a,
.contact-grid a,
.side-link,
.new-raffle,
.exit-link,
.download-card {
  font-size: 0.82rem;
  font-weight: 760;
}

.side-promos {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.mini-promo {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 20px;
  align-items: center;
  min-height: 58px;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.mini-promo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.mini-promo strong,
.mini-promo span,
.mini-promo small {
  display: block;
}

.mini-promo strong {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.mini-promo span {
  color: var(--gold-2);
  font-size: 0.7rem;
  font-weight: 800;
}

.mini-promo small,
.tournament small {
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.mini-promo-green {
  background: linear-gradient(110deg, rgba(0, 201, 130, 0.72), rgba(0, 70, 48, 0.74));
}

.mini-promo-gold {
  background: linear-gradient(110deg, rgba(205, 126, 40, 0.72), rgba(59, 39, 19, 0.8));
}

.download-card {
  gap: 8px;
  margin-top: 8px;
  padding: 7px 9px;
  background: linear-gradient(90deg, var(--gold), rgba(0, 139, 101, 0.88));
  color: #111;
}

.download-card small {
  color: #113a28;
  font-size: 0.7rem;
  font-weight: 900;
}

.sidebar-section {
  margin-top: 16px;
}

.section-label {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #b8b8b8;
  font-size: 0.74rem;
  font-weight: 850;
}

.section-label::before,
.section-label::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
}

.section-label::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
}

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

.menu-grid a,
.contact-grid a,
.side-link,
.new-raffle,
.exit-link {
  gap: 8px;
  padding: 9px;
}

.side-link {
  width: 100%;
  margin-bottom: 6px;
  border-color: transparent;
  background: transparent;
}

.side-link.is-active,
.chip.is-active,
.segment-control button.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.2);
}

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

.contact-grid a {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
  padding: 8px 6px;
}

.tournament-stack {
  display: grid;
  gap: 7px;
}

.new-raffle {
  width: 100%;
  color: #d7d7d7;
}

.tournament {
  min-height: 48px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
}

.tournament span {
  color: #c9d2ce;
  font-size: 0.75rem;
}

.tournament strong {
  margin-left: 4px;
  font-size: 0.78rem;
}

.tournament-green {
  background: linear-gradient(90deg, rgba(0, 201, 130, 0.35), rgba(0, 60, 43, 0.82));
}

.tournament-gold {
  background: linear-gradient(90deg, rgba(255, 182, 87, 0.32), rgba(66, 39, 18, 0.82));
}

.exit-link {
  width: 100%;
  margin-top: 18px;
  color: var(--danger);
  border-color: transparent;
  background: transparent;
}

.main-panel {
  --top-game-w: clamp(132px, 7.6vw, 184px);
  --featured-game-w: calc(var(--top-game-w) * 1.9);
  --game-grid-gap: 12px;
  --main-panel-x: 20px;
  width: min(100%, calc(var(--featured-game-w) + (var(--top-game-w) * 6) + (var(--game-grid-gap) * 6) + (var(--main-panel-x) * 2)));
  min-width: 0;
  padding: 8px 20px 32px;
  justify-self: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 0 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94) 72%, rgba(0, 0, 0, 0));
}

.sidebar-toggle {
  display: none;
}

.search-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.search-control svg {
  position: absolute;
  left: 12px;
  color: #778079;
}

.search-control input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 42px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-control input::placeholder {
  color: #8f9892;
}

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

.button,
.icon-button,
.small-button,
.providers-button,
.chip,
.segment-control button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-weight: 900;
}

.button-dark {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.button-gold {
  color: #1a1306;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: rgba(255, 218, 155, 0.8);
  box-shadow: 0 8px 20px rgba(255, 182, 87, 0.18);
}

.button-ghost {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  padding: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.small-button,
.providers-button,
.chip,
.segment-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(320px, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.bonus-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(236px, 300px);
  align-items: center;
  min-height: 236px;
  overflow: hidden;
  border: 1px solid rgba(0, 201, 130, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, rgba(0, 56, 42, 0.94), rgba(0, 22, 16, 0.9) 58%, rgba(0, 201, 130, 0.22)),
    var(--green-dark);
  box-shadow: var(--shadow);
}

.bonus-copy {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 3vw, 34px);
}

.label {
  display: block;
  margin-bottom: 4px;
  font-size: 1.22rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bonus-copy h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.bonus-copy h1 em {
  color: #fff;
  font-style: normal;
  font-size: 0.45em;
  white-space: nowrap;
}

.bonus-copy p {
  margin: 9px 0 18px;
  color: #e8fff4;
  font-weight: 800;
}

.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 18px;
  color: rgba(228, 255, 241, 0.72);
  font-weight: 900;
}

.bonus-hero img {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(100%, 350px);
  margin: 0 8px -16px auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.52));
}

.bonus-hero .hero-panda {
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.promo-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 112px;
  padding: 18px 18px 18px 45%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #080b14;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: auto 100%;
  color: #fff;
  text-align: left;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 950;
  line-height: 0.94;
  text-transform: uppercase;
}

.promo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.48));
}

.promo-tile > * {
  position: relative;
  z-index: 1;
}

.promo-tile span {
  max-width: 190px;
}

.promo-tile-bonus {
  background-image: url("assets/Bonus Shop.png");
}

.promo-tile-vip {
  background-image: url("assets/VIP Club.png");
}

.promo-tile-tournament {
  background-image: url("assets/Tournament.png");
}

.promo-tile-wheel {
  background-image: url("assets/Wheel of Fortune.png");
}

.ticker {
  margin: 12px 0 16px;
  overflow: hidden;
}

.ticker-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, 1fr);
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.ticker article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 201, 130, 0.1), transparent 72%),
    rgba(255, 255, 255, 0.06);
}

.ticker b,
.ticker small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker b {
  color: #e7f3ed;
  font-size: 0.65rem;
}

.ticker small {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 850;
}

.ticker-thumb {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.34);
}

.library-tools {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.library-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.chip {
  white-space: nowrap;
}

.games-section,
.providers-section {
  margin-top: 12px;
}

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

.section-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  text-transform: uppercase;
}

.section-title h2 svg {
  color: var(--gold);
}

.game-grid {
  --top-game-h: calc(var(--top-game-w) * 1.18);
  display: grid;
  grid-template-columns: var(--featured-game-w) repeat(6, var(--top-game-w));
  grid-template-rows: repeat(2, var(--top-game-h));
  grid-auto-rows: var(--top-game-h);
  gap: var(--game-grid-gap);
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.game-grid[data-collapsed="true"] > .game-card:nth-child(n+14) {
  display: none;
}

.game-card,
.temperature-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  aspect-ratio: 5 / 6;
  background: #171717;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.game-grid .game-card {
  height: 100%;
  aspect-ratio: auto;
}

.image-game {
  cursor: pointer;
}

.image-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.image-game:hover img,
.image-game:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08) brightness(1.04);
}

.featured-game {
  grid-row: 1 / span 2;
  aspect-ratio: auto;
  border-color: rgba(0, 201, 130, 0.44);
  border-radius: var(--radius);
  background: #07392f;
  box-shadow: 0 18px 44px rgba(0, 201, 130, 0.14), 0 16px 36px rgba(0, 0, 0, 0.36);
}

.featured-game img {
  object-position: center top;
}

.image-game::before,
.image-game::after {
  display: none;
}

.game-card::before,
.temperature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.45), transparent 20%),
    linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.82));
}

.game-card::after,
.temperature-card::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  translate: -50% 0;
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    -34px 22px 0 rgba(255, 255, 255, 0.16),
    34px 20px 0 rgba(255, 255, 255, 0.18);
}

.game-card h3,
.temperature-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 10px 18px;
  color: #fff;
  font-size: clamp(1.03rem, 1.35vw, 1.36rem);
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.68);
}

.game-card span {
  position: relative;
  z-index: 1;
  margin: 0 10px 5px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 760;
  text-align: center;
}

.featured-game-info {
  position: absolute;
  inset: auto 9px 9px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
  margin: 0;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--radius) - 3px);
  background: linear-gradient(180deg, rgba(36, 39, 38, 0.9), rgba(19, 23, 22, 0.96));
  color: #fff;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.featured-stats {
  display: grid;
  gap: 3px;
}

.featured-stats strong {
  font-size: clamp(1.05rem, 1.55vw, 1.34rem);
  line-height: 0.95;
}

.featured-stats span {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: left;
}

.featured-game-info em {
  color: var(--green);
  font-style: normal;
}

.featured-game-info .featured-play {
  grid-column: 2;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border-radius: calc(var(--radius) - 3px);
  border-color: rgba(255, 218, 155, 0.9);
  color: #1a1306;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  font-size: 0.86rem;
  font-weight: 950;
  text-align: center;
  box-shadow: 0 8px 20px rgba(255, 182, 87, 0.2);
}

.empty-state {
  min-height: 96px;
  margin: 12px 0 0;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.missions {
  display: grid;
  grid-template-columns: 260px minmax(180px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 174px;
  margin: 24px 0;
  padding: 12px 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 201, 130, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(0, 58, 43, 0.92), rgba(0, 20, 15, 0.94)),
    var(--green-dark);
}

.missions > img {
  width: 230px;
  margin: -18px auto -18px;
  object-fit: contain;
}

.mission-copy h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.mission-copy strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 1.45em;
}

.mission-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  gap: 8px;
}

.mission-card {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-height: 120px;
  padding: 10px;
  border: 1px solid rgba(0, 201, 130, 0.38);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.mission-card svg {
  color: var(--gold);
}

.mission-card span {
  font-size: 0.84rem;
  font-weight: 850;
}

.mission-card small {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 8px;
  border-radius: var(--radius);
  color: #1d1505;
  background: #fff0cf;
  font-size: 0.68rem;
  font-weight: 950;
}

.mission-card .button {
  width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  font-size: 0.78rem;
}

.mission-card.is-done {
  opacity: 0.75;
}

.cold-hot-section {
  position: relative;
  overflow: hidden;
  margin: 24px 0 18px;
  padding: 24px 0 20px;
  border: 1px solid rgba(72, 167, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(10, 117, 220, 0.8), rgba(69, 164, 255, 0.9) 46%, rgba(19, 115, 199, 0.82)),
    #1278cc;
}

.segment-control {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 18px;
}

.segment-control button {
  min-height: 36px;
  padding: 6px 18px;
  background: rgba(0, 0, 0, 0.62);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.wide-game-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(126px, 154px);
  gap: 12px;
  overflow-x: auto;
  padding: 0 24px 4px;
  scrollbar-width: thin;
}

.temperature-card {
  aspect-ratio: 5 / 6;
}

.temperature-card span {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: block;
  padding: 4px 7px;
  border-radius: 6px;
  color: #eef8ff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.temperature-card.is-dimmed {
  opacity: 0.42;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(128px, 1fr));
  gap: 10px;
}

.provider-grid article {
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 18px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--surface);
  color: #f7fbff;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.info-section {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
}

.info-content {
  min-height: 180px;
}

.site-footer {
  display: grid;
  gap: 22px;
  margin-top: 30px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 201, 130, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #080a09;
  color: var(--muted);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(120px, 0.7fr));
  gap: 22px;
}

.footer-brand-block {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-brand .footer-brand-logo {
  width: 176px;
  height: auto;
}

.footer-brand-block p {
  max-width: 390px;
  margin: 0;
  color: rgba(233, 241, 236, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-badges,
.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span,
.footer-payments span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 248, 232, 0.88);
  font-size: 0.78rem;
  font-weight: 950;
}

.footer-badges span:first-child {
  color: #1a1306;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: rgba(255, 218, 155, 0.72);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 950;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: rgba(233, 241, 236, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
  margin: 0;
}

.auth-modal {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.auth-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.auth-card h2,
.auth-subtitle {
  margin: 0;
}

.auth-subtitle {
  color: var(--muted);
}

.auth-card label {
  display: grid;
  gap: 6px;
  color: #dce5df;
  font-weight: 800;
}

.auth-card input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  color: var(--text);
  background: #090b0a;
}

.auth-card input:focus-visible,
.search-control:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 182, 87, 0.16);
}

button:hover,
a:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

button:where(:not(:disabled)):hover,
a:hover {
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

@media (max-width: 1180px) {
  .main-panel {
    --top-game-w: clamp(126px, 10vw, 148px);
  }

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

  .bonus-hero {
    grid-template-columns: minmax(0, 1fr) minmax(236px, 300px);
  }

  .mission-list {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .missions > img {
    display: none;
  }
  .provider-grid {
    grid-template-columns: repeat(3, minmax(128px, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(var(--sidebar), calc(100vw - 44px));
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

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

  body.sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.58);
  }

  .main-panel {
    --top-game-w: 118px;
    --main-panel-x: 14px;
    padding: 8px 14px 28px;
  }

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

  .sidebar-toggle {
    display: inline-grid;
  }

  .top-search {
    min-width: 0;
  }

  .auth-actions .button {
    padding-inline: 12px;
  }

  .auth-actions .button-dark {
    display: none;
  }

  .bonus-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bonus-hero img {
    width: min(72%, 300px);
    margin: -22px auto -14px;
  }

  .bonus-hero .hero-panda {
    width: min(72%, 300px);
    margin: -22px auto -14px;
  }

  .promo-grid,
  .library-search-row {
    grid-template-columns: 1fr;
  }

  .game-grid {
    --top-game-w: 118px;
    gap: 9px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .main-panel {
    --main-panel-x: 10px;
    padding-inline: 10px;
  }

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

  .auth-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .auth-actions .button {
    flex: 1;
  }

  .bonus-copy {
    padding: 18px;
  }

  .payment-row {
    gap: 8px;
    font-size: 0.84rem;
  }

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

  .promo-tile {
    min-height: 86px;
    padding: 14px 14px 14px 44%;
    font-size: 0.86rem;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    overflow-x: visible;
  }

  .game-grid .game-card {
    height: auto;
    aspect-ratio: 5 / 6;
  }

  .featured-game {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 5 / 6;
  }

  .featured-game-info {
    inset: auto 8px 8px;
  }

  .mission-copy h2 {
    text-align: center;
  }

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

  .site-footer {
    padding: 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .game-card h3,
  .temperature-card h3 {
    font-size: 0.96rem;
  }
}
