[hidden] {
  display: none !important;
}

:root {
  --bg: #0b0b10;
  --bg2: #111219;
  --card: rgba(22, 23, 33, 0.82);
  --line: rgba(255, 255, 255, 0.09);
  --red: #fc0f0f;
  --red2: #ff4d4d;
  --text: #f3f2f8;
  --muted: #9a98ad;
  --common: #8d8fa3;
  --uncommon: #4ade80;
  --rare: #38bdf8;
  --epic: #a855f7;
  --legendary: #f59e0b;
  --free: #fc0f0f;
  --disp: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-image: radial-gradient(ellipse 900px 460px at 50% -10%, rgba(252, 15, 15, 0.16), transparent 70%);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--red2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- top bar */

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand b {
  color: var(--red);
  font-weight: 900;
}

.wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.wallet__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.wallet__label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.wallet__item strong {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.avatar {
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #1a1b25;
  color: #cfd0dc;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------------ earn */

.earn {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  margin-top: -6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 70%);
}

.earn__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
}

.earn__item b {
  font-family: var(--disp);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: #ff6b6b;
}

.earn__item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.earn__item--link {
  align-items: center;
  justify-content: flex-end;
}

.earn__cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border: 1px solid rgba(252, 15, 15, 0.5);
  border-radius: 10px;
  background: rgba(252, 15, 15, 0.1);
  color: #ff8f8f;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.earn__cta:hover {
  background: #fc0f0f;
  color: #fff;
}

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

  .earn__item--link {
    justify-content: stretch;
  }

  .earn__cta {
    width: 100%;
    justify-content: center;
  }
}

/* ------------------------------------------------------------------ hero */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.hero {
  padding: 56px 0 34px;
  text-align: center;
}

.kicker {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #bdbacf;
}

.kicker::before {
  content: "//";
  margin-right: 7px;
  color: var(--red);
}

.hero h1 {
  margin: 14px 0 0;
  font-family: var(--disp);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero h1 span {
  color: transparent;
  background-image: linear-gradient(92deg, var(--red), var(--red2));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero__sub {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.hero__timer {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.oddsnote {
  margin: 18px auto 0;
  max-width: 520px;
  color: #7f7d92;
  font-size: 12.5px;
  line-height: 1.55;
}

.oddsnote a {
  color: #ffb0b9;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn--sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12.5px;
}

.btn--primary {
  background-image: linear-gradient(180deg, #ff2a2a, #c40a0a);
  color: #fff;
  box-shadow: 0 8px 22px rgba(252, 15, 15, 0.28);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(252, 15, 15, 0.4);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #e9e8f2;
}

.btn--ghost:hover:not(:disabled) {
  border-color: rgba(252, 15, 15, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ----------------------------------------------------------------- cases */

.section {
  margin-top: 58px;
}

.section__head {
  margin-bottom: 24px;
  text-align: center;
}

.section__head h2 {
  margin: 0;
  font-family: var(--disp);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.section__head p {
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.case {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 52%), var(--card);
}

.case::before {
  content: "";
  position: absolute;
  inset: -40% 40% auto -30%;
  height: 260px;
  background: radial-gradient(closest-side, rgba(252, 15, 15, 0.22), transparent 70%);
  pointer-events: none;
}

.case h3 {
  position: relative;
  margin: 0;
  font-family: var(--disp);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
}

.case__cost {
  position: relative;
  margin: 4px 0 0;
  color: #ff8f8f;
  font-size: 13px;
  font-weight: 650;
}

.case__desc {
  position: relative;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.case__odds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.case__odds li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cfd0dc;
}

.case__odds li[data-tier="uncommon"] {
  color: var(--uncommon);
  border-color: rgba(74, 222, 128, 0.3);
}
.case__odds li[data-tier="rare"] {
  color: var(--rare);
  border-color: rgba(56, 189, 248, 0.3);
}
.case__odds li[data-tier="epic"] {
  color: var(--epic);
  border-color: rgba(168, 85, 247, 0.3);
}
.case__odds li[data-tier="legendary"] {
  color: var(--legendary);
  border-color: rgba(245, 158, 11, 0.3);
}
.case__odds li[data-tier="free_product"] {
  color: var(--free);
  border-color: rgba(252, 15, 15, 0.35);
}

.case__actions {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.case__actions .btn {
  flex: 1;
}

/* ------------------------------------------------------------------ reel */

.reel {
  position: relative;
  overflow: hidden;
  height: 132px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0e0f15;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.reel__strip {
  display: flex;
  gap: 8px;
  height: 100%;
  padding: 11px;
  will-change: transform;
}

.reel__item {
  display: flex;
  width: 108px;
  flex: 0 0 108px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #14151d;
  color: #cfd0dc;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
}

.reel__item b {
  font-family: var(--disp);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.reel__item[data-tier="uncommon"] {
  border-color: rgba(74, 222, 128, 0.4);
  color: var(--uncommon);
}
.reel__item[data-tier="rare"] {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--rare);
}
.reel__item[data-tier="epic"] {
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--epic);
}
.reel__item[data-tier="legendary"] {
  border-color: rgba(245, 158, 11, 0.55);
  color: var(--legendary);
}
.reel__item[data-tier="free_product"] {
  border-color: rgba(252, 15, 15, 0.6);
  color: #ff6b6b;
}

.reel__marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--red), transparent);
  box-shadow: 0 0 14px rgba(252, 15, 15, 0.8);
  pointer-events: none;
}

/* ---------------------------------------------------------------- drops */

.drops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drops li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
}

.drops li[data-tier="epic"] {
  border-left-color: var(--epic);
}
.drops li[data-tier="legendary"] {
  border-left-color: var(--legendary);
}

.drops b {
  font-weight: 650;
}

.drops span {
  color: var(--muted);
  font-size: 11.5px;
}

/* -------------------------------------------------------------- history */

.history {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.history li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.history li:last-child {
  border-bottom: 0;
}

.history .tier {
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
}

.history .when {
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
}

/* ----------------------------------------------------------------- odds */

.oddsTable {
  display: grid;
  gap: 18px;
}

.oddsTable section {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.oddsTable h3 {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.oddsTable table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.oddsTable th,
.oddsTable td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.oddsTable tr:last-child td {
  border-bottom: 0;
}

.oddsTable td:last-child,
.oddsTable th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.modal__card--form {
  text-align: left;
}

.loginForm {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.field input:focus {
  outline: none;
  border-color: rgba(252, 15, 15, 0.55);
  box-shadow: 0 0 0 3px rgba(252, 15, 15, 0.14);
}

.field input::placeholder {
  color: #6f6d81;
}

.field__hint {
  margin: 0;
  color: #7f7d92;
  font-size: 11.5px;
  line-height: 1.5;
}

.field__hint--error {
  color: #ff8f8f;
}

.loginAlt {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.loginAlt a {
  color: #ffb0b9;
}

/* ---------------------------------------------------------------- modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 5, 9, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal[hidden] {
  display: none;
}

.modal__card {
  width: 100%;
  max-width: 400px;
  padding: 30px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 55%), #14151d;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal__kicker {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal__card h2 {
  margin: 10px 0 0;
  font-family: var(--disp);
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
}

.modal__prize {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.modal__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.modal__actions .btn {
  flex: 1;
}

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: 340px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  background: #17181f;
  color: #e6e6ee;
  font-size: 13px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.toast[hidden] {
  display: none;
}

/* --------------------------------------------------------------- footer */

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 20px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.footer a {
  color: #cfd0dc;
  text-decoration: none;
}

.footer p {
  margin: 0 0 8px;
}

.footer__fine {
  color: #6f6d81;
  font-size: 11.5px;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .wallet {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .wallet__item {
    flex: 1;
  }

  .hero {
    padding-top: 34px;
  }

  .reel {
    height: 112px;
  }

  .reel__item {
    width: 92px;
    flex-basis: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
