@font-face {
  font-family: "Exo 2";
  src: url("/assets/exo2.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Tektur;
  src: url("/assets/tektur.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Exo 2", Arial, sans-serif;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  color: #f6f6f7;
  background: #111112;
  --accent: #ffda0b;
  --panel: #17181c;
  --raised: #1d1e22;
  --control: #25262a;
  --line: #333438;
  --muted: #a9a9ac;
  --header-height: 68px;
  --feed-width: 200px;
  --radius: 12px;
  --control-radius: 8px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #111112 url("/assets/bg.webp") center top / cover fixed no-repeat;
}

button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
  padding: 0 24px;
  background: var(--panel);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font: 800 24px/1 Tektur, "Exo 2", sans-serif;
}
.wordmark img { display: block; width: 32px; height: 32px; }
.site-logo { flex: 0 0 auto; }
.site-stats { display: flex; gap: 16px; }
.site-stats > div { display: flex; align-items: center; gap: 8px; }
.site-stats img, .site-stats .icon { width: 16px; height: 16px; object-fit: contain; color: var(--accent); }
.site-stats span { display: grid; gap: 2px; white-space: nowrap; }
.site-stats small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.site-stats strong { font-size: 14px; font-weight: 600; }
.topnav { align-self: stretch; display: flex; gap: 24px; padding-left: 20px; }
.nav-button {
  display: grid;
  place-items: center;
  padding: 0 3px;
  border: 0;
  border-top: 2px solid transparent;
  color: var(--muted);
  background: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}
.nav-button.selected { color: var(--accent); border-top-color: var(--accent); }
.nav-button:hover { color: #fff; }
.account { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wallet {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #554917;
  border-radius: var(--control-radius);
  background: #21211a;
  font-size: 15px;
  font-weight: 700;
}
.wallet .icon { width: 16px; color: var(--accent); }
.account-button, .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--control-radius);
  color: #17140a;
  background: var(--accent);
  transition: background-color 120ms ease-out;
}
.account-button { height: 40px; padding: 0 12px; white-space: nowrap; }
.account-button:hover, .primary:hover:not(:disabled) { background: #ffe64e; }
.icon-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--control-radius);
  color: var(--muted);
  background: var(--control);
}
.icon-button:hover { color: #fff; background: #323337; }
.profile-button { width: 40px; height: 40px; border-radius: 50%; }
.account-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 0 12px;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--control);
}
.account-profile:hover { background: #323337; }
.account-profile span { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

.live-feed {
  position: fixed;
  z-index: 3;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--feed-width);
  padding: 6px;
  overflow-y: auto;
  scrollbar-width: none;
  background: #18191c;
}
.battle-banner {
  position: relative;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid #493f24;
  border-radius: 8px;
  background: #27231a url("/assets/battle-bar.webp") center / cover no-repeat;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}
.battle-banner b { color: #efd053; }
.vs-mark { font: 800 18px/1 Tektur, "Exo 2", sans-serif; }
.battle-banner .vs-mark { color: #f0d154; font-size: 28px; }
.feed-items { display: grid; gap: 3px; margin-top: 6px; }
.feed-card {
  --rarity: #596d9b;
  position: relative;
  display: grid;
  align-content: end;
  height: 78px;
  padding: 8px 8px 9px;
  overflow: hidden;
  border-left: 2px solid var(--rarity);
  border-radius: 3px 8px 8px 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rarity) 36%, #222326), #222326 75%);
}
.feed-card.top-drop {
  height: 86px;
  border-left-color: #c69c06;
  background: linear-gradient(110deg, #2e281a, #594609 76%, #29261d);
}
.feed-card img { position: absolute; inset: 5px 4px auto auto; width: 94px; height: 69px; object-fit: contain; }
.feed-card strong, .feed-card small { position: relative; max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-card strong { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.feed-card small { margin-top: 2px; color: #acacb0; font-size: 9px; }
.feed-chance {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px;
  border-radius: 4px;
  background: #111112a8;
  font-size: 9px;
  font-weight: 700;
}
.feed-chance .icon { width: 12px; height: 12px; color: var(--accent); }
.feed-status { margin: 12px 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.feed-card .feed-winner { color: #cbcbce; }

.page {
  --page-width: min(1160px, 100% - var(--feed-width) - 96px);
  width: var(--page-width);
  margin-left: calc(var(--feed-width) + (100% - var(--feed-width) - var(--page-width)) / 2);
  padding: 40px 0 24px;
}
.game-logo { justify-content: center; margin: 0 0 63px; }
.station {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "source wheel target" "balance upgrade presets";
  align-items: center;
  gap: 24px 20px;
}
.game-tools { position: absolute; top: -27px; left: 0; display: flex; gap: 4px; }
.game-tools .icon-button { width: 22px; height: 22px; background: transparent; }
.game-tools .icon { width: 16px; height: 16px; }
.game-tools [aria-pressed="true"] { color: var(--accent); }
.slot {
  position: relative;
  display: flex;
  justify-content: center;
  height: 348px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #1b1c20;
  border-radius: var(--radius);
  background: var(--panel);
}
.source-slot { grid-area: source; }
.target-slot { grid-area: target; }
.slot-heading {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 23px 12px 0;
  text-align: center;
}
.slot-heading strong { font-size: 13px; font-weight: 700; }
.slot-heading small { color: var(--muted); font-size: 11px; }
.slot-art { position: absolute; inset: 0; }
.slot-art::before, .slot-art::after { content: ""; position: absolute; inset: 0; background: center 55% / min(91%, 310px) auto no-repeat; }
.slot-art::before { background-image: url("/assets/unknown-item-shadow.webp"); }
.slot-art::after { background-size: auto min(55%, 194px); }
.source-slot .slot-art::after { background-image: url("/assets/unknown-item.svg"); }
.target-slot .slot-art::after { background-image: url("/assets/unknown-item-2.svg"); }
.slot.has-items .slot-art, .slot.has-items .slot-heading { display: none; }
.selected-items {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--columns, 1), minmax(0, 1fr));
  align-content: center;
  gap: 6px;
  padding: 12px;
}
.selected-item {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  place-items: center;
  gap: 4px;
  padding: 8px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: #191a1e;
  text-align: center;
}
.selected-item:only-child { height: 100%; background: radial-gradient(ellipse at 50% 56%, color-mix(in srgb, var(--rarity) 28%, #191a1e), #17181c 68%); }
.selected-item img { display: block; width: 100%; height: 100%; max-height: 212px; object-fit: contain; }
.selected-item:not(:only-child) img { max-height: 84px; }
.selected-item strong, .selected-item small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-item strong { font-size: 15px; }
.selected-item small { color: var(--accent); font-size: 13px; }
.selected-item:disabled { opacity: 1; }
.selected-balance {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  height: 100%;
  border: 0;
  border-radius: var(--control-radius);
  color: #f6f6f7;
  background: transparent;
}
.selected-balance .icon { width: 48px; height: 48px; color: var(--accent); }
.selected-balance strong { font-size: 28px; }
.selected-balance span { color: var(--muted); font-size: 13px; }
.selected-item:hover:not(:disabled) { box-shadow: inset 0 0 0 1px #ffffff22; }
.selection-count { position: absolute; top: 12px; right: 12px; color: var(--muted); font-size: 11px; }

.wheel { grid-area: wheel; display: grid; place-items: center; min-width: 0; }
.wheel-face {
  --chance: 50%;
  --needle: 0deg;
  position: relative;
  width: min(100%, 344px);
  aspect-ratio: 1;
  isolation: isolate;
  display: grid;
  place-items: center;
  background: url("/assets/circle.svg") center / contain no-repeat;
}
.wheel-ring, .wheel-outline {
  position: absolute;
  inset: 8.8%;
  border-radius: 50%;
  background: conic-gradient(
    from var(--arc-start, 90deg), #f9e724 0%, #ed5222 calc(var(--chance) / 2),
    #f9e724 var(--chance), transparent var(--chance)
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 28px), #000 calc(100% - 27px));
}
.wheel-outline {
  inset: 4.4%;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}
.wheel-face::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3%;
  background: url("/assets/circle-black.svg") center / contain no-repeat;
}
.wheel-face::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8.8%;
  border: 28px solid #222224;
  border-radius: 50%;
}
.wheel-brand { width: 33%; max-width: 136px; pointer-events: none; }
.wheel-reading {
  position: absolute;
  inset: 31% 20%;
  display: none;
  place-content: center;
  text-align: center;
}
.wheel-reading strong {
  color: #b7df43;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.wheel-reading span { margin-top: 5px; color: #b8cf68; font-size: 14px; }
.has-chance .wheel-reading { display: grid; }
.has-chance .wheel-brand { opacity: .08; filter: grayscale(1); }
.wheel-mark { position: absolute; color: #b0b0b4; font-size: 10px; font-weight: 600; opacity: .66; }
.wheel-mark.north { top: 11.5%; }
.wheel-mark.east { right: 11%; }
.wheel-mark.south { bottom: 11%; }
.wheel-mark.west { left: 11%; }
.wheel-needle {
  position: absolute;
  z-index: 2;
  inset: 0;
  transform: rotate(var(--needle));
  pointer-events: none;
}
.wheel-needle span {
  position: absolute;
  width: 12%;
  height: 14%;
  bottom: 3.5%;
  left: 44%;
  transform: rotate(180deg);
  background: url("/assets/pointer.png") center / contain no-repeat;
}
.wheel-flare {
  position: absolute;
  inset: 8%;
  border: 2px solid #f7e995;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.sponsored .wheel-flare { animation: broadcast-flare 680ms ease-out both; }
.sponsored .wheel-reading strong, .sponsored .wheel-reading span { color: #ffdf54; }
.sponsored .wheel-ring, .sponsored .wheel-outline { filter: brightness(1.2) saturate(.85); }
@keyframes broadcast-flare {
  0% { opacity: .95; transform: scale(.82); }
  100% { opacity: 0; transform: scale(1.19); }
}
.lost:not(.rolling) .wheel-reading strong, .lost:not(.rolling) .wheel-reading span { color: #ed7568; }
.chance-low:not(.sponsored) .wheel-reading strong { color: #ffd760; }
.chance-low:not(.sponsored) .wheel-reading span { color: #dfc365; }
.lost.chance-low:not(.rolling) .wheel-reading strong, .lost.chance-low:not(.rolling) .wheel-reading span { color: #ed7568; }

.balance-control {
  grid-area: balance;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 4px 8px;
  padding: 8px 12px;
  border-radius: var(--control-radius);
  color: var(--muted);
  background: #16171a;
  font-size: 12px;
}
.balance-control > span { display: flex; align-items: center; gap: 3px; color: var(--accent); font-size: 14px; }
.balance-control .icon { width: 12px; height: 12px; }
.balance-control small { font-size: 10px; }
.balance-control input { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--accent); cursor: pointer; }
.balance-control input:disabled { opacity: .45; cursor: default; }
.upgrade-controls { grid-area: upgrade; }
.primary {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 19px;
  font-weight: 700;
}
.primary:disabled { color: #1b170b; background: #806e0e; }
.primary .icon { width: 22px; height: 22px; }
.presets {
  grid-area: presets;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.presets button {
  display: grid;
  place-items: center;
  height: 38px;
  padding: 0;
  border: 1px solid #2b2c30;
  border-radius: 6px;
  color: var(--muted);
  background: #191a1d;
  font-size: 14px;
  font-weight: 600;
}
.presets button:hover:not(:disabled), .presets button[aria-pressed="true"] { color: var(--accent); border-color: #766518; }
.presets button:disabled { opacity: .6; }
.presets button[data-chance="35"] { border-top-color: #784644; }
.presets button[data-chance="55"] { border-top-color: #897322; }
.presets button[data-chance="75"] { border-top-color: #4d6b37; }
.presets .icon { width: 18px; height: 18px; }
.round-message { margin: 12px 0 0; color: #f0ae9f; font-size: 13px; text-align: center; }
.round-message.success { color: #b7df83; }

.skins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 24px; }
.skin-panel { min-width: 0; border-radius: var(--radius); background: #191a1d; }
.panel-top {
  display: flex;
  align-items: center;
  min-height: 62px;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--raised);
}
.panel-top h2 { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; margin: 0; font-size: 16px; font-weight: 600; }
.panel-top h2 .icon { width: 16px; height: 16px; color: var(--accent); }
.panel-tabs { display: flex; align-items: center; gap: 4px; }
.panel-tabs button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: #17181c;
}
.panel-tabs button[aria-pressed="true"] { color: #211c0a; background: var(--accent); }
.panel-tabs .icon { width: 17px; height: 17px; }
.filters { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.filters input {
  min-width: 0;
  width: 24%;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: #f6f6f7;
  background: transparent;
  font-size: 12px;
}
.filters input[type="number"] { appearance: textfield; }
.filters input::-webkit-inner-spin-button { display: none; }
.filters input::placeholder { color: #a7a7ab; opacity: 1; }
.filters .icon-button { flex: 0 0 36px; height: 36px; }
.filters [aria-pressed="true"] { color: var(--accent); }
.skin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(103px, auto);
  gap: 5px;
  min-height: 224px;
  padding: 6px;
}
.skin-card {
  --rarity: #566f9f;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: center;
  min-width: 0;
  padding: 5px 4px 6px;
  border: 1px solid color-mix(in srgb, var(--rarity) 73%, #202124);
  border-radius: 6px;
  color: #fff;
  background: radial-gradient(ellipse at 50% 52%, color-mix(in srgb, var(--rarity) 29%, #1e1e21), #202124 77%);
  font-size: 11px;
  text-align: center;
}
.skin-card:hover:not(:disabled) { border-color: var(--rarity); background-color: #28292d; }
.skin-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px #ffda0b70; }
.skin-card .price {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}
.skin-card .price .icon { width: 11px; height: 11px; }
.skin-card img { display: block; width: 100%; height: 47px; object-fit: contain; }
.skin-card .skin-label, .skin-card strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skin-card .skin-label { color: var(--muted); font-size: 9px; line-height: 1.25; }
.skin-card strong { font-size: 11px; font-weight: 750; }
.shop-card { grid-template-rows: auto 1fr auto auto auto; }
.buy-label {
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #211c0a;
  background: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
.flag-card { --rarity: #c39a48; }
.flag-card .price { font-size: 9px; }
.flag-card img { padding: 2px 8px; }
.flag-card .skin-label { color: #c7b582; }
.shop-card.flag-card .buy-label { color: #d4bf79; background: #39321d; }
.shop-card.flag-card:disabled { cursor: default; opacity: .85; }
.skin-placeholder { min-height: 103px; border: 1px solid #26272b; border-radius: 6px; background: #17181b; }
.grid-message { grid-column: 1 / -1; align-self: start; padding: 16px; color: var(--muted); font-size: 14px; }
.catalog-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; padding: 0 8px 10px; }
.catalog-page { min-width: 32px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--raised); font-size: 12px; }
.catalog-page:hover { border-color: #766518; color: #fff; }
.catalog-page[aria-current="page"] { border-color: var(--accent); color: #211c0a; background: var(--accent); font-weight: 700; }
.inventory-actions { display: flex; justify-content: flex-end; min-height: 34px; padding: 0 12px 8px; }
.inventory-actions button { padding: 5px 8px; font-size: 12px; }
.inventory-actions button:disabled { opacity: .45; cursor: default; }
.inventory-empty {
  grid-column: 1 / -1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 210px;
  padding: 20px 16px;
  color: #cbcbce;
  text-align: center;
}
.inventory-empty p { margin: 0; font-size: 15px; }
.inventory-empty small { color: var(--muted); }
.inventory-empty .primary { width: auto; min-height: 40px; min-width: 100px; font-size: 14px; }
.inventory-empty .text-button { text-align: center; font-size: 12px; }
.rarity-blue { --rarity: #6c8dc5; }
.rarity-purple { --rarity: #8262c6; }
.rarity-pink { --rarity: #ab55a1; }
.rarity-red { --rarity: #b95455; }
.rarity-gold { --rarity: #c39a48; }
.rarity-orange { --rarity: #c39a48; }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 32px 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.footer .wordmark { font-size: 17px; }
.footer .wordmark img { width: 24px; height: 24px; }
.text-button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  text-align: left;
}
.text-button:hover { color: var(--accent); }
.chat-button {
  position: fixed;
  z-index: 4;
  right: 24px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff6cc;
  background: #e6b708;
}
.chat-button .icon { width: 26px; height: 26px; }
.mobile-nav { display: none; }

dialog {
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #f6f6f7;
  background: var(--panel);
}
dialog::backdrop { background: #0009; }
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--raised);
}
.dialog-head h2 { margin: 0; font-size: 17px; }
.close-dialog {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 23px;
}
.close-dialog:hover { color: #fff; background: var(--control); }
.dialog-content { padding: 16px; color: #cbcbce; font-size: 14px; line-height: 1.5; }
.dialog-content > :first-child { margin-top: 0; }
.dialog-content > :last-child { margin-bottom: 0; }
.leaderboard-note { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.leaderboard-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.leaderboard-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 42px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--raised); }
.leaderboard-row:nth-child(-n+3) { border-color: #766518; background: linear-gradient(90deg, #302b18, var(--raised)); }
.leaderboard-rank { color: var(--accent); font-weight: 800; }
.leaderboard-row strong { min-width: 0; overflow: hidden; color: #f6f6f7; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-total { color: var(--accent); font-weight: 700; white-space: nowrap; }
.leaderboard-empty { padding: 14px; color: var(--muted); text-align: center; }
.leaderboard-page { min-height: 100vh; background: radial-gradient(circle at 50% -10%, #35301a, var(--bg) 42%); }
.leaderboard-page .topbar { position: static; max-width: 1180px; margin: 0 auto; }
.leaderboard-main { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0; }
.leaderboard-hero { display: grid; justify-items: center; gap: 12px; padding: 26px 24px 46px; text-align: center; }
.leaderboard-hero h1 { margin: 0; color: #fff; font-size: clamp(36px, 7vw, 64px); line-height: 1; }
.leaderboard-hero p:not(.eyebrow) { max-width: 430px; margin: 0; color: var(--muted); }
.eyebrow { margin: 0; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.leaderboard-refresh { width: auto; min-width: 130px; margin-top: 10px; }
.leaderboard-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #18191c; box-shadow: 0 18px 70px #0005; }
.leaderboard-table-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--raised); }
.leaderboard-table-head h2 { margin: 0; color: #f6f6f7; font-size: 17px; }
.leaderboard-table-head span { color: var(--muted); font-size: 12px; }
.leaderboard-table { gap: 0; }
.leaderboard-table .leaderboard-row { min-height: 52px; padding: 8px 18px; border-width: 0 0 1px; border-radius: 0; background: transparent; }
.leaderboard-table .leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-table .leaderboard-row:nth-child(-n+3) { border-color: var(--line); background: linear-gradient(90deg, #302b18, transparent); }
@media (max-width: 640px) { .leaderboard-main { width: min(100% - 20px, 900px); padding: 32px 0; } .leaderboard-hero { padding-bottom: 30px; } .leaderboard-table .leaderboard-row { padding: 8px 12px; } }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.auth-tabs button {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: var(--raised);
}
.auth-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.registration-credit { margin: 16px 0 0; color: var(--accent); font-size: 14px; }
.auth-form { display: grid; gap: 8px; margin-top: 20px; }
.auth-form label { color: #f6f6f7; font-size: 13px; }
.auth-form input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: #f6f6f7;
  background: var(--raised);
}
.auth-form small { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.auth-form .primary { min-height: 44px; margin-top: 8px; font-size: 15px; }
.auth-message { margin: 4px 0 0; color: #f0ae9f; font-size: 13px; }
.auth-form input:disabled { opacity: .7; }
.purchase-image { display: block; width: 100%; height: 160px; object-fit: contain; }
.purchase-name { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
#purchase-confirm { min-height: 44px; margin-top: 16px; font-size: 15px; }
.profile-actions { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.profile-actions button:disabled { opacity: .5; cursor: default; }
.application-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
}
.application-row strong { color: #f6f6f7; }
#broadcast-pass {
  width: 100%; min-height: 38px; margin: 6px 0; padding: 8px 10px;
  border: 1px solid #393a40; border-radius: 6px; background: #17181c; color: #f6f6f7;
}
.application-row button, .application-row select {
  min-height: 29px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #f6f6f7;
  background: var(--control);
}
.application-row button:hover { border-color: var(--accent); }
.profile-links { display: flex; flex-wrap: wrap; gap: 12px; }
.profile-links a { color: var(--accent); }
.profile-links a:hover { text-decoration: underline; }
#application { min-height: 1em; margin: 8px 0; }
.workflow-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.workflow-actions .text-button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); }
.workflow-actions .text-button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.workflow-actions .text-button:disabled { opacity: .45; cursor: default; }
#workflow-status { min-height: 1.4em; color: var(--muted); font-size: 12px; }
#reward-dialog { width: min(760px, calc(100vw - 32px)); }
#flag-image { display: block; width: 100%; max-height: 65dvh; object-fit: contain; }
#reward-message { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.profile-reward:has(button:not([hidden])) { margin-top: 16px; }

@media (max-width: 1260px) {
  :root { --feed-width: 176px; }
  .page { width: calc(100% - var(--feed-width) - 32px); margin-left: calc(var(--feed-width) + 16px); }
  .station { column-gap: 12px; }
  .slot { height: auto; aspect-ratio: 1.08; }
  .site-logo { font-size: 21px; }
  .topbar { gap: 16px; }
  .topnav { padding-left: 0; gap: 16px; }
  .skin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 970px) {
  :root { --feed-width: 144px; }
  .stat-battles, .topnav { display: none !important; }
  .feed-card img { width: 73px; }
  .feed-card strong { max-width: 90px; }
  .skin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters input[type="number"] { display: none; }
  .filters input { width: 42%; }
  .panel-top h2 { font-size: 14px; }
  .slot-heading { padding-top: 16px; }
  .slot-heading strong { font-size: 12px; }
  .slot-heading small { font-size: 10px; }
  .presets { gap: 2px; }
  .presets button { font-size: 11px; }
}

@media (max-width: 740px) {
  :root { --header-height: 50px; --feed-width: 0px; }
  .topbar { gap: 10px; padding: 0 12px; }
  .site-logo img { width: 24px; height: 24px; }
  .site-logo span { display: none; }
  .site-stats { gap: 0; }
  .site-stats > div { gap: 4px; }
  .site-stats strong { font-size: 12px; }
  .site-stats small, .site-stats .stat-upgrades { display: none; }
  .site-stats img { width: 13px; height: 13px; }
  .wallet { height: 32px; padding: 0 6px; font-size: 12px; }
  .wallet .icon { width: 13px; }
  .profile-button { width: 32px; height: 32px; }
  .account-profile { justify-content: center; padding: 0; border-radius: 50%; }
  .account-profile span { display: none; }
  .account-button { height: 32px; padding: 0 8px; font-size: 11px; }
  .account-button .icon { width: 15px; }
  .live-feed {
    position: relative;
    inset: auto;
    width: auto;
    padding: 5px 6px 0;
    overflow: hidden;
    background: transparent;
  }
  .battle-banner { min-height: 44px; height: 44px; gap: 16px; font-size: 14px; }
  .battle-banner br { display: none; }
  .battle-banner br::after { content: " "; }
  .feed-items { display: flex; gap: 4px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; }
  .feed-card, .feed-card.top-drop { width: 112px; height: 72px; flex: 0 0 auto; }
  .feed-card img { width: 62px; height: 47px; }
  .page { width: calc(100% - 24px); margin: 0 auto; padding: 26px 0 70px; }
  .game-logo { margin-bottom: 12px; font-size: 16px; }
  .game-logo img { width: 24px; height: 24px; }
  .station {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "wheel wheel" "source target" "balance presets" "upgrade upgrade";
    gap: 10px 8px;
  }
  .game-tools { top: -30px; width: 100%; gap: 4px; }
  .game-tools .icon-button { width: 28px; height: 28px; background: var(--control); }
  .tool-settings { margin-left: auto; }
  .wheel-face { width: min(100%, 264px); }
  .wheel-ring { mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #000 calc(100% - 21px)); }
  .wheel-face::after { border-width: 22px; }
  .wheel-reading strong { font-size: 30px; }
  .wheel-reading span { font-size: 12px; }
  .slot { height: auto; min-height: 138px; max-height: 176px; }
  .slot-heading { gap: 4px; padding: 12px 8px 0; }
  .slot-heading strong { font-size: 11px; }
  .slot-art::before { background-size: min(90%, 180px) auto; }
  .slot-art::after { background-size: auto 50%; }
  .selected-items { padding: 6px; }
  .selected-item { gap: 2px; padding: 4px; }
  .selected-item img { max-height: 108px; }
  .selected-item strong { font-size: 11px; }
  .selected-item small { font-size: 10px; }
  .primary { min-height: 44px; font-size: 16px; }
  .balance-control { gap: 2px 4px; padding: 6px; font-size: 10px; }
  .balance-control > span { font-size: 11px; }
  .balance-control small { font-size: 9px; }
  .presets button { min-height: 31px; }
  .presets .icon { width: 12px; }
  .skins { margin-top: 12px; }
  .panel-top { flex-wrap: wrap; gap: 4px; padding: 6px 8px; min-height: 46px; }
  .panel-top h2 { font-size: 13px; }
  .panel-tabs button { width: 26px; height: 26px; }
  .panel-tabs .icon { width: 14px; }
  .filters .icon-button { flex-basis: 26px; height: 26px; }
  .filters .icon { width: 16px; }
  .filters input { width: 56%; height: 26px; padding: 0 4px; }
  .skin-grid { gap: 3px; padding: 4px; grid-auto-rows: minmax(80px, auto); }
  .skin-card { padding: 4px 2px; }
  .skin-card .price, .skin-card strong { font-size: 10px; }
  .skin-card .price .icon { width: 8px; }
  .skin-card img { height: 36px; }
  .skin-placeholder { min-height: 80px; }
  .mobile-nav {
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    height: 50px;
    background: var(--panel);
  }
  .mobile-nav button, .mobile-nav a {
    display: grid;
    place-items: center;
    min-width: 55px;
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 10px;
  }
  .mobile-nav img { width: 27px; height: 20px; object-fit: contain; }
  .mobile-nav a { color: var(--accent); }
  .chat-button { right: 12px; bottom: 58px; width: 38px; height: 38px; }
  .chat-button .icon { width: 21px; height: 21px; }
}

@media (max-width: 430px) {
  .account-button span { display: none; }
  .account-button { width: 32px; }
  .skin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { gap: 3px; }
  .filters .sort-button { display: none; }
  .filters input { width: 100%; }
  .skins { gap: 4px; }
  .presets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .presets .icon-button { display: none; }
}

#sign-in { width: auto; padding-inline: 12px; }

@media (prefers-reduced-motion: reduce) {
  .sponsored .wheel-flare { animation: none; }
}
