:root {
  color-scheme: dark;
  --bg: #11161f;
  --bg-deep: #171d28;
  --bg-panel: #1a222f;
  --bg-card: #202938;
  --line: #313b4a;
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: #adb7c6;
  --primary: #f0a225;
  --primary-strong: #ffb32f;
  --accent: #5f5c7a;
  --success: #31c887;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(44, 69, 112, 0.18), transparent 28%),
    linear-gradient(180deg, #141922 0%, #171d27 100%);
  color: var(--text);
}

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

button,
input {
  font: inherit;
}

.site-body {
  padding: 18px;
}

.page-shell {
  max-width: 1420px;
  margin: 0 auto;
}

.top-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 28px;
  color: #eef2f8;
  font-size: 12px;
  border-bottom: 1px solid rgba(240, 162, 37, 0.48);
}

.top-strip p {
  margin: 0;
}

.top-strip-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #0f131a;
  color: var(--primary);
  font-weight: 800;
}

.site-header,
.category-bar,
.hero-banner,
.featured-section,
.featured-card,
.lobby-panel,
.site-footer,
.deposit-focus-card,
.deposit-showcase-card {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.site-header,
.category-bar,
.featured-section,
.site-footer,
.deposit-focus-card,
.deposit-showcase-card {
  border-radius: 18px;
}

.site-header {
  margin-top: 14px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-word {
  color: #fff;
}

.brand-accent {
  color: var(--primary);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1c232f;
  color: var(--primary);
  cursor: pointer;
}

.primary-button {
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #11161f;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.primary-button:hover,
.chip-button:hover,
.header-icon-button:hover {
  transform: translateY(-1px);
}

.primary-button.alt {
  min-width: 92px;
  height: 42px;
}

.category-bar {
  margin-top: 10px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  border-radius: 12px;
  color: var(--muted);
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.category-item span {
  font-size: 20px;
  color: #d7dde7;
}

.category-item p {
  margin: 0;
  font-size: 12px;
}

.hero-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.hero-banner img,
.featured-card img,
.deposit-showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-banner-large {
  min-height: 370px;
}

.hero-banner-side {
  min-height: 370px;
}

.hero-banner-copy,
.hero-side-copy,
.deposit-showcase-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(12, 14, 20, 0.92));
}

.hero-label,
.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-banner-copy h1,
.deposit-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.hero-banner-copy p:last-of-type,
.deposit-copy p:last-of-type,
.site-footer p,
.winner-row p,
.mini-slot-item p,
.category-item p,
.user-chip p,
.form-message {
  color: var(--muted);
}

.hero-banner-copy .primary-button {
  margin-top: 18px;
  min-width: 160px;
  height: 46px;
}

.hero-side-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-side-copy p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f0f5ff;
}

.hero-side-copy strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 16px;
  background: rgba(240, 162, 37, 0.92);
  color: #12161d;
  font-size: 28px;
}

.featured-section {
  margin-top: 26px;
  overflow: hidden;
}

.featured-heading {
  padding: 18px 24px;
  background: linear-gradient(90deg, #da8f18, #f0a225);
}

.featured-heading h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 3vw, 46px);
}

.featured-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.featured-card {
  overflow: hidden;
  border-radius: 14px;
}

.featured-card img {
  aspect-ratio: 1.25 / 1;
}

.featured-content {
  padding: 12px;
  background: #f0f1f5;
  color: #141922;
}

.provider-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ef9620;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.featured-content h3 {
  margin: 12px 0 0;
  font-size: 22px;
}

.lobby-columns {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.lobby-panel {
  border-radius: 18px;
  overflow: hidden;
}

.panel-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  margin: 0;
  font-size: 28px;
}

.winner-list,
.mini-slot-list,
.tournament-list {
  padding: 16px;
}

.winner-row,
.mini-slot-item,
.tournament-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.winner-row + .winner-row,
.mini-slot-item + .mini-slot-item,
.tournament-row + .tournament-row {
  border-top: 1px solid var(--line-soft);
}

.winner-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #313949;
  font-weight: 700;
}

.winner-row p,
.winner-row strong,
.mini-slot-item p,
.tournament-row p,
.tournament-row strong {
  margin: 0;
}

.winner-row strong,
.tournament-row strong {
  color: var(--primary);
}

.winner-row strong {
  margin-left: auto;
}

.mini-slot-item img {
  width: 112px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
}

.tournament-row img {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  object-fit: cover;
}

.site-footer {
  margin-top: 26px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer h4,
.site-footer p {
  margin: 0;
}

.deposit-header {
  margin-top: 14px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #1b2431;
}

.user-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(49, 200, 135, 0.1);
}

.user-chip strong,
.user-chip p {
  display: block;
  margin: 0;
}

.deposit-screen {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: 20px;
}

.deposit-focus-card,
.deposit-showcase-card {
  border-radius: 20px;
}

.deposit-focus-card {
  padding: 28px;
}

.deposit-copy h1 {
  max-width: 12ch;
}

.deposit-form {
  margin-top: 28px;
}

.compact-form {
  max-width: 560px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: #edf2fb;
  font-size: 13px;
  font-weight: 600;
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #151c27;
  color: #fff;
  outline: none;
}

.field input:focus {
  border-color: rgba(240, 162, 37, 0.55);
  box-shadow: 0 0 0 3px rgba(240, 162, 37, 0.12);
}

.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 16px;
}

.chip-button {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1b2431;
  color: #f2f5fb;
  font-weight: 700;
  cursor: pointer;
}

.deposit-submit {
  height: 50px;
}

.form-message {
  min-height: 20px;
  margin: 14px 0 0;
}

.deposit-showcase-card {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.deposit-showcase-copy h3 {
  margin: 10px 0 8px;
  font-size: 32px;
}

.deposit-showcase-copy span {
  color: #dbe5f3;
}

.result-screen {
  margin-top: 18px;
}

.result-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: rgba(49, 200, 135, 0.14);
  border: 1px solid rgba(49, 200, 135, 0.32);
  color: var(--success);
  font-size: 36px;
  font-weight: 800;
}

.result-card h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.result-copy {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.result-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
}

.secondary-result-link {
  color: var(--muted);
  font-weight: 600;
}

.secondary-result-link:hover {
  color: #fff;
}

@media (max-width: 1220px) {
  .hero-grid,
  .deposit-screen,
  .lobby-columns {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .site-body {
    padding: 12px;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
  }

  .featured-grid,
  .category-bar {
    grid-template-columns: 1fr 1fr;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-link,
  .secondary-result-link {
    width: 100%;
    text-align: center;
  }

  .featured-content h3,
  .panel-head h3,
  .deposit-showcase-copy h3 {
    font-size: 20px;
  }

  .hero-banner-copy h1,
  .deposit-copy h1 {
    max-width: 100%;
    font-size: 34px;
  }
}
