:root {
  --ink: #111214;
  --ink-2: #17181b;
  --ink-3: #202226;
  --paper: #f6f6f4;
  --white: #ffffff;
  --muted: #9c9da1;
  --line: rgba(255, 255, 255, 0.13);
  --line-dark: rgba(17, 18, 20, 0.13);
  --yellow: #f8d83e;
  --yellow-deep: #b99508;
  --gold: #edb84a;
  --gold-bright: #ffe18a;
  --blue: #76c4ff;
  --green: #69ce78;
  --red: #e95a54;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  --max: 1420px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--white);
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.site-shell {
  overflow: hidden;
  background: var(--ink);
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--ink);
}

.header-main {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 26px;
  width: min(var(--max), calc(100% - 44px));
  min-height: 92px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  font-size: clamp(2.25rem, 4vw, 4.35rem);
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: -0.08em;
}

.brand-mark span {
  color: var(--yellow);
}

.brand-tagline {
  margin-top: 12px;
  color: #d8d8d8;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.27em;
}

.header-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 0;
  color: #e9e9e9;
  font-size: 0.76rem;
  white-space: nowrap;
}

.status-time {
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-zone,
.status-item {
  color: var(--muted);
}

.status-divider {
  width: 2px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
}

.locale-chip {
  width: 30px;
  height: 30px;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
}

.locale-chip.is-muted {
  color: #f0f0f0;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.24);
}

.header-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.auth-input-look {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 132px;
  min-height: 37px;
  padding: 0 11px;
  color: #6f7073;
  background: #ececeb;
  font-size: 0.69rem;
  font-weight: 700;
  text-align: left;
}

.auth-input-password {
  width: 124px;
}

.auth-input-password span:last-child {
  color: #17181b;
  font-size: 0.62rem;
}

.text-link {
  padding: 5px 0;
  color: var(--yellow);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--gold-bright);
}

.primary-button,
.secondary-button,
.outline-button,
.auto-spin-button,
.chat-start {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.outline-button:hover,
.auto-spin-button:hover,
.chat-start:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.primary-button {
  color: var(--ink);
  background: var(--yellow);
}

.secondary-button {
  color: var(--ink);
  background: #f2f2f0;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  background: transparent;
}

.compact {
  min-height: 37px;
  padding-inline: 14px;
}

.announcement {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 28px;
  padding: 0 max(22px, calc((100% - var(--max)) / 2));
  color: #d8d8d8;
  background: #303136;
  font-size: 0.7rem;
}

.announcement-icon {
  color: var(--yellow);
}

.announcement-track {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 0 22px;
  overflow-x: auto;
  scrollbar-width: thin;
  background: var(--yellow);
}

.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: max-content;
  padding: 0 15px;
  color: var(--ink);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease;
}

.nav-item:hover,
.nav-item.nav-active {
  color: var(--white);
  background: var(--ink);
}

.nav-item span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}

.nav-home {
  min-width: 58px;
  font-size: 1.75rem;
}

.reward-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 4vw, 60px);
  min-height: 82px;
  padding: 0 24px;
  overflow-x: auto;
  background: var(--white);
  color: #b4b4b5;
  scrollbar-width: thin;
}

.reward-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  min-height: 82px;
  padding: 0;
  color: inherit;
  background: transparent;
  border-bottom: 4px solid transparent;
  font-size: 0.82rem;
  font-weight: 850;
}

.reward-tabs button:hover,
.reward-tabs button.tab-active {
  color: var(--ink);
  border-color: var(--yellow);
}

.reward-tabs button span:first-child {
  font-size: 1.2rem;
}

.spin-page {
  background:
    radial-gradient(circle at 52% 0%, rgba(238, 186, 70, 0.13), transparent 30%),
    #050505;
}

.spin-page-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 68px;
}

.winner-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 30px;
  color: #dedede;
  font-size: 0.76rem;
  text-align: center;
}

.ticker-icon {
  color: var(--yellow);
}

.jackpot-summary {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 14px auto -58px;
}

.lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: min(360px, 72vw);
  min-height: 48px;
  border: 3px solid #7e7e7e;
  border-radius: 99px;
  color: #efefef;
  background: linear-gradient(#484848, #2f2f2f);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 8px 22px rgba(0, 0, 0, 0.4);
  font-size: 1rem;
  font-weight: 950;
}

.jackpot-label {
  margin: -10px 0 9px;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 950;
  text-shadow: 0 2px 2px #000;
}

.jackpot-values {
  display: flex;
  gap: 21px;
}

.jackpot-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
}

.jackpot-value span {
  margin-bottom: -2px;
  font-size: 1.15rem;
  font-weight: 950;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.jackpot-value strong {
  min-width: 124px;
  padding: 5px 12px;
  border: 3px solid;
  border-radius: 99px;
  color: var(--white);
  background: #101114;
  font-size: 0.96rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.42);
}

.jackpot-major span,
.jackpot-major strong {
  color: #72e76d;
  border-color: #72e76d;
}

.jackpot-minor span,
.jackpot-minor strong {
  color: #79d9ff;
  border-color: #79d9ff;
}

.jackpot-mini span,
.jackpot-mini strong {
  color: #ff5ee9;
  border-color: #ff5ee9;
}

.showcase {
  position: relative;
  isolation: isolate;
  min-height: 670px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
  background: #080808;
}

.showcase-image,
.showcase-shade {
  position: absolute;
  inset: 0;
}

.showcase-image {
  z-index: -2;
  background-image: url("assets/reward-showcase.png");
  background-position: center 26%;
  background-size: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.75);
}

.showcase-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 35%, rgba(0, 0, 0, 0.3)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, transparent 26%, rgba(0, 0, 0, 0.22) 75%, rgba(0, 0, 0, 0.55) 100%);
}

.wheel-wrap {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(530px, 45vw);
  transform: translateX(-50%);
}

.wheel-pointer {
  position: absolute;
  z-index: 4;
  top: -12px;
  width: 0;
  height: 0;
  border-right: 18px solid transparent;
  border-left: 18px solid transparent;
  border-top: 30px solid var(--yellow);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}

.wheel {
  position: relative;
  width: min(520px, 45vw);
  aspect-ratio: 1;
  border: clamp(10px, 1.2vw, 18px) solid #ebebeb;
  border-radius: 50%;
  background: #202125;
  box-shadow:
    0 0 0 5px #9d9d9d,
    0 0 0 8px #292929,
    0 12px 38px rgba(0, 0, 0, 0.75),
    inset 0 0 0 6px rgba(255, 255, 255, 0.45);
  animation: wheel-pulse 4.2s ease-in-out infinite;
}

.wheel-ring {
  position: absolute;
  inset: 3.5%;
  border: 3px dotted #c6c6c6;
  border-radius: 50%;
}

.wheel-segments {
  position: absolute;
  inset: 5%;
  overflow: hidden;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -15deg, #f6f6f6 0 13.8deg, #0f1012 13.8deg 15deg),
    conic-gradient(from -15deg, #f5f5f5, #111);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.wheel-segments::before {
  position: absolute;
  inset: 9%;
  content: "";
  border: 10px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.wheel-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 26%;
  height: 17%;
  place-items: center;
  color: #17181b;
  font-size: clamp(0.55rem, 1.1vw, 0.95rem);
  font-weight: 950;
  text-align: center;
  transform: rotate(var(--angle)) translateY(-185%) rotate(calc(var(--angle) * -1));
  transform-origin: center center;
}

.label-1 { --angle: 0deg; }
.label-2 { --angle: 30deg; }
.label-3 { --angle: 60deg; }
.label-4 { --angle: 90deg; }
.label-5 { --angle: 120deg; }
.label-6 { --angle: 150deg; color: #fff; }
.label-7 { --angle: 180deg; }
.label-8 { --angle: 210deg; color: #fff; }
.label-9 { --angle: 240deg; }
.label-10 { --angle: 270deg; }
.label-11 { --angle: 300deg; }
.label-12 { --angle: 330deg; color: #fff; }

.wheel-center {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 29%;
  aspect-ratio: 1;
  border: 5px solid #f7efef;
  border-radius: 50%;
  color: var(--white);
  background: radial-gradient(circle at 38% 30%, #ea5148, #7c161d 75%);
  box-shadow: 0 0 0 5px #35181b, 0 6px 20px rgba(0, 0, 0, 0.65);
  transform: translate(-50%, -50%);
}

.wheel-center span {
  margin-bottom: 3px;
  font-size: clamp(0.65rem, 1.2vw, 1rem);
}

.wheel-center strong {
  font-size: clamp(0.78rem, 1.5vw, 1.2rem);
  line-height: 1;
}

.wheel-center small {
  margin-top: 2px;
  font-size: clamp(0.48rem, 0.8vw, 0.72rem);
  font-weight: 900;
}

.wheel-caption {
  margin-top: -4px;
  padding: 7px 25px;
  color: #151515;
  background: var(--gold);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 950;
  letter-spacing: 0.02em;
  transform: skewX(-18deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
}

.showcase-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.auto-spin-button {
  min-width: 210px;
  color: #1a1205;
  background: linear-gradient(#ffef7a, #d1a912);
  box-shadow: 0 3px 0 #704e06, 0 7px 18px rgba(0, 0, 0, 0.42);
}

.coin-balance {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-weight: 850;
  text-shadow: 0 2px 4px #000;
}

.coin-icon,
.coin-dot {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #282828;
  background: linear-gradient(145deg, #fff, #9b9fa8 48%, #2e3746);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.coin-icon {
  width: 27px;
  height: 27px;
  font-size: 0.73rem;
}

.unlock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 102px;
  margin-top: 28px;
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: #121316;
}

.unlock-copy {
  display: flex;
  align-items: center;
  gap: 15px;
}

.unlock-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
}

.unlock-copy strong,
.unlock-copy span:last-child {
  display: block;
}

.unlock-copy strong {
  font-size: 0.93rem;
}

.unlock-copy span:last-child {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.77rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.8fr);
  gap: 48px;
  margin-top: 44px;
}

.detail-panel {
  min-width: 0;
  background: #f3f3f1;
  color: var(--ink);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 74px;
  padding: 18px 24px;
  color: var(--white);
  background: #3a3a3d;
}

.panel-heading h2,
.section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.eyebrow {
  color: var(--yellow-deep);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.panel-heading .eyebrow {
  color: var(--yellow);
}

.panel-close {
  color: #f2f2f2;
  font-size: 1.5rem;
  font-weight: 300;
}

.panel-subheading {
  padding: 17px 26px 11px;
  color: #343539;
  font-size: 0.75rem;
  text-align: center;
}

.switcher {
  display: flex;
  gap: 10px;
  padding: 10px 26px 16px;
}

.switcher button {
  flex: 1;
  min-height: 42px;
  border-radius: 22px;
  color: #83858b;
  background: #e2e3e6;
  font-weight: 900;
}

.switcher button.switcher-active {
  color: #363024;
  background: var(--yellow);
}

.winner-table-wrap {
  overflow-x: auto;
}

.winner-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.winner-table th {
  color: #212122;
  background: var(--yellow);
  font-size: 0.68rem;
  text-align: left;
}

.winner-table th,
.winner-table td {
  padding: 12px 13px;
}

.winner-table td {
  border-bottom: 1px solid #d8d8d8;
  color: #44464c;
}

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

.winner-table td:last-child {
  color: #151618;
  font-weight: 950;
}

.coin-dot {
  width: 19px;
  height: 19px;
}

.coin-dot.gold {
  background: linear-gradient(145deg, #fff5a5, #d9a62d 50%, #7b4a00);
}

.tier {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 99px;
  color: #151515;
  font-size: 0.68rem;
  font-weight: 900;
}

.tier.mini {
  background: #d2f2ff;
}

.tier.minor {
  background: #d9e9fd;
}

.tier.major {
  background: #fbe1a3;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 16px 20px;
}

.pagination button {
  min-width: 30px;
  min-height: 29px;
  border-radius: 3px;
  color: #46474b;
  background: #e3e3e3;
  font-size: 0.7rem;
  font-weight: 800;
}

.pagination button.page-current {
  color: var(--ink);
  background: var(--yellow);
}

.pagination span {
  color: #77787c;
}

.prize-panel {
  background: #16171a;
  color: var(--white);
}

.prize-stack {
  display: grid;
  gap: 12px;
  padding: 22px 25px;
}

.prize-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px 15px;
  border: 1px solid;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.prize-card-major {
  border-color: rgba(101, 213, 98, 0.75);
}

.prize-card-minor {
  border-color: rgba(114, 194, 255, 0.75);
}

.prize-card-mini {
  border-color: rgba(247, 96, 226, 0.75);
}

.prize-orb {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--yellow);
  font-size: 1.1rem;
  font-weight: 950;
}

.prize-card-minor .prize-orb {
  color: var(--blue);
}

.prize-card-mini .prize-orb {
  color: #f760e2;
}

.prize-card div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prize-card small {
  color: #b8b8bc;
  font-size: 0.66rem;
  font-weight: 950;
}

.prize-card strong {
  margin: 2px 0;
  font-size: 1.25rem;
}

.prize-card span:not(.prize-orb) {
  color: #c1c2c5;
  font-size: 0.7rem;
}

.reward-note {
  display: flex;
  gap: 12px;
  margin: 0 25px 23px;
  padding: 15px;
  border-left: 3px solid var(--yellow);
  background: rgba(255, 255, 255, 0.065);
}

.reward-note-icon {
  color: var(--yellow);
}

.reward-note strong {
  font-size: 0.8rem;
}

.reward-note p {
  margin: 6px 0 0;
  color: #bbbcc0;
  font-size: 0.72rem;
  line-height: 1.5;
}

.outline-button.wide {
  width: calc(100% - 50px);
  margin: 0 25px 25px;
}

.mission-section {
  margin-top: 52px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading h2 {
  color: var(--white);
}

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

.mission-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 15px;
  border-top: 2px solid var(--yellow);
  background: #1d1e22;
}

.mission-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 950;
}

.mission-item div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mission-item strong {
  color: #f7f7f7;
  font-size: 0.78rem;
}

.mission-item small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
}

.mission-item button {
  margin-left: auto;
  color: var(--yellow);
  background: transparent;
  font-size: 1.2rem;
}

.mission-muted {
  opacity: 0.75;
}

.mission-lock {
  margin-left: auto;
  color: #85868a;
}

.responsible-strip {
  background: #f3f3f1;
  color: var(--ink);
}

.responsible-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(var(--max), calc(100% - 48px));
  min-height: 104px;
  margin: 0 auto;
}

.responsible-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-weight: 950;
}

.responsible-inner div {
  flex: 1;
}

.responsible-inner strong {
  font-size: 0.84rem;
}

.responsible-inner p {
  max-width: 890px;
  margin: 5px 0 0;
  color: #66676b;
  font-size: 0.73rem;
  line-height: 1.45;
}

.responsible-inner .text-link {
  color: #635307;
  white-space: nowrap;
}

.site-footer {
  color: #c7c7c9;
  background: #1a1b1e;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 44px;
  width: min(var(--max), calc(100% - 48px));
  padding: 46px 0 40px;
  margin: 0 auto;
}

.footer-brand .brand-mark {
  font-size: 3.2rem;
}

.footer-brand p {
  max-width: 310px;
  margin: 23px 0 0;
  color: #87888c;
  font-size: 0.76rem;
  line-height: 1.55;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-column h3 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 0.86rem;
}

.footer-column button {
  padding: 0;
  color: #95969a;
  background: transparent;
  font-size: 0.74rem;
  text-align: left;
}

.footer-column button:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 48px));
  min-height: 58px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: #818286;
  font-size: 0.68rem;
}

.footer-security {
  display: flex;
  gap: 8px;
}

.footer-security span {
  padding: 4px 7px;
  border: 1px solid #54565a;
  color: #b7b8bc;
  font-size: 0.6rem;
  font-weight: 850;
}

.chat-widget {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  width: min(332px, calc(100vw - 36px));
}

.chat-card {
  overflow: hidden;
  border-radius: 19px;
  color: var(--ink);
  background: #f1f1f0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  color: var(--white);
  background: #151619;
}

.chat-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 1.3rem;
}

.chat-agent div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-agent strong {
  font-size: 0.81rem;
}

.chat-agent small {
  margin-top: 3px;
  color: #a9aaae;
  font-size: 0.68rem;
}

.chat-minimize {
  margin-left: auto;
  color: #bbbcc0;
  background: transparent;
  font-size: 1.3rem;
}

.chat-copy {
  padding: 21px 20px 8px;
}

.chat-copy h2 {
  max-width: 230px;
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.02;
}

.chat-copy p {
  max-width: 250px;
  margin: 10px 0 0;
  color: #66676c;
  font-size: 0.76rem;
  line-height: 1.5;
}

.chat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 20px 20px;
}

.chat-tags button {
  padding: 8px 10px;
  border-radius: 99px;
  color: #48402a;
  background: var(--yellow);
  font-size: 0.67rem;
  font-weight: 900;
}

.chat-tags button:first-child {
  color: #fff;
  background: #d34e34;
}

.chat-tags button:last-child {
  background: #dedac4;
}

.chat-start {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  color: #3f3510;
  background: var(--yellow);
}

.chat-fab {
  display: none;
  width: 54px;
  height: 54px;
  margin-left: auto;
  border: 3px solid #151619;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  font-size: 1.45rem;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid rgba(248, 216, 62, 0.45);
  color: var(--white);
  background: #1f2024;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  color: #cbcbcd;
  background: transparent;
  font-size: 1.5rem;
}

.modal-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 1.3rem;
}

.modal-dialog h2 {
  max-width: 315px;
  margin: 10px 0 12px;
  color: var(--white);
  font-size: 1.65rem;
  line-height: 1.13;
}

.modal-dialog p {
  margin: 0;
  color: #b5b6ba;
  font-size: 0.82rem;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.modal-actions > * {
  flex: 1;
}

.modal-dialog small {
  display: block;
  margin-top: 18px;
  color: #7d7e83;
  font-size: 0.68rem;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100vw - 44px));
  padding: 12px 16px;
  border-left: 3px solid var(--yellow);
  color: var(--white);
  background: #242529;
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wheel-pulse {
  0%,
  100% {
    transform: rotate(-1deg) scale(1);
  }
  50% {
    transform: rotate(1deg) scale(1.015);
  }
}

@media (max-width: 1180px) {
  .header-main {
    grid-template-columns: 220px 1fr;
  }

  .header-auth {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-bottom: 14px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .prize-panel {
    max-width: none;
  }
}

@media (max-width: 840px) {
  .header-main {
    grid-template-columns: 1fr auto;
    width: min(var(--max), calc(100% - 28px));
    gap: 14px;
    padding: 14px 0;
  }

  .brand-mark {
    font-size: 3rem;
  }

  .brand-tagline {
    margin-top: 9px;
    font-size: 0.52rem;
  }

  .header-status {
    justify-content: flex-end;
    font-size: 0.68rem;
  }

  .header-status .status-item,
  .header-status .status-divider:first-of-type,
  .header-status .status-time,
  .header-status .status-zone {
    display: none;
  }

  .header-auth {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    padding-bottom: 0;
  }

  .auth-input-look {
    width: 100%;
  }

  .header-auth .text-link {
    display: none;
  }

  .header-auth .compact {
    padding-inline: 10px;
  }

  .reward-tabs {
    justify-content: flex-start;
    gap: 28px;
  }

  .spin-page-inner,
  .responsible-inner,
  .footer-main,
  .footer-bottom {
    width: min(var(--max), calc(100% - 28px));
  }

  .showcase {
    min-height: 570px;
  }

  .showcase-image {
    background-position: 53% center;
  }

  .wheel-wrap {
    width: min(460px, 76vw);
    bottom: 48px;
  }

  .wheel {
    width: min(460px, 76vw);
  }

  .showcase-controls {
    bottom: 17px;
  }

  .unlock-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .unlock-row .outline-button {
    width: 100%;
  }

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

  .responsible-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 22px 0;
  }

  .responsible-inner .text-link {
    margin-left: 56px;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 22px;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }
}

@media (max-width: 580px) {
  .header-main {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .brand-mark {
    font-size: 2.55rem;
  }

  .header-status {
    gap: 6px;
  }

  .header-auth {
    grid-template-columns: 1fr 1fr;
  }

  .header-auth .primary-button,
  .header-auth .secondary-button {
    width: 100%;
  }

  .announcement {
    min-height: 34px;
    padding-inline: 14px;
  }

  .announcement-icon {
    flex: 0 0 auto;
  }

  .primary-nav {
    justify-content: flex-start;
    min-height: 54px;
    padding: 0 12px;
  }

  .nav-item {
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .nav-item span:first-child {
    font-size: 1.05rem;
  }

  .nav-home {
    min-width: 42px;
  }

  .reward-tabs {
    min-height: 66px;
  }

  .reward-tabs button {
    min-height: 66px;
    font-size: 0.7rem;
  }

  .spin-page-inner {
    padding-top: 20px;
  }

  .winner-ticker {
    justify-content: flex-start;
    font-size: 0.68rem;
    text-align: left;
  }

  .jackpot-values {
    gap: 6px;
  }

  .jackpot-value {
    min-width: 0;
  }

  .jackpot-value span {
    font-size: 0.76rem;
  }

  .jackpot-value strong {
    min-width: 95px;
    padding-inline: 5px;
    border-width: 2px;
    font-size: 0.68rem;
  }

  .showcase {
    min-height: 455px;
  }

  .showcase-image {
    background-position: 53% 27%;
    background-size: auto 100%;
  }

  .showcase-shade {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 55%, rgba(0, 0, 0, 0.6) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 50%, rgba(0, 0, 0, 0.52));
  }

  .wheel-wrap {
    bottom: 51px;
  }

  .wheel-pointer {
    border-right-width: 13px;
    border-left-width: 13px;
    border-top-width: 24px;
  }

  .wheel {
    border-width: 9px;
  }

  .wheel-caption {
    padding: 5px 16px;
  }

  .showcase-controls {
    width: 100%;
    bottom: 12px;
  }

  .auto-spin-button {
    min-width: 174px;
    min-height: 36px;
    font-size: 0.7rem;
  }

  .coin-balance {
    font-size: 0.68rem;
  }

  .unlock-row {
    margin-top: 18px;
    padding: 17px;
  }

  .unlock-copy strong {
    font-size: 0.78rem;
  }

  .unlock-copy span:last-child {
    font-size: 0.68rem;
  }

  .panel-heading {
    padding: 16px;
  }

  .panel-subheading,
  .switcher {
    padding-right: 16px;
    padding-left: 16px;
  }

  .prize-stack {
    padding-inline: 16px;
  }

  .reward-note {
    margin-inline: 16px;
  }

  .outline-button.wide {
    width: calc(100% - 32px);
    margin-inline: 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .responsible-inner .text-link {
    margin-left: 0;
  }

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

  .footer-column h3 {
    font-size: 0.78rem;
  }

  .footer-column button {
    font-size: 0.68rem;
  }

  .chat-widget {
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .chat-card {
    display: none;
  }

  .chat-fab {
    display: grid;
    place-items: center;
  }

  .modal-dialog {
    padding: 30px 24px 24px;
  }

  .modal-dialog h2 {
    font-size: 1.35rem;
  }

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