:root {
  color-scheme: dark;
  --bg: #111411;
  --surface: #191d18;
  --surface-raised: #21261f;
  --surface-soft: #151914;
  --ink: #f0f2e9;
  --muted: #a1a89b;
  --subtle: #848e7d;
  --line: #2b3228;
  --line-strong: #5e6a55;
  --accent: #d3f86b;
  --accent-hover: #e0ff8d;
  --accent-ink: #1b2411;
  --accent-soft: #2d3720;
  --danger: #ff9691;
  --rare: #8fc9f3;
  --epic: #c4a6f0;
  --legendary: #edc17a;
  --mythic: #f4a7b3;
  --plate-paper: #eeeee5;
  --plate-ink: #20251f;
  --plate-border: #a4aa9a;
  --radius: 16px;
  --font: "Manrope", sans-serif;
  --plate-font: "Oswald", "Arial Narrow", sans-serif;
  --telegram-safe-top: 0px;
  --telegram-safe-bottom: 0px;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.43;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
h1 {
  font-size: clamp(34px, 3.7vw, 52px);
  font-weight: 700;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
input,
select {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 12px;
  min-width: 0;
  font-size: 16px;
}
input::placeholder {
  color: var(--subtle);
}
select {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1:focus,
main:focus {
  outline: none;
}
button,
a,
input,
select {
  transition:
    background-color 140ms,
    border-color 140ms,
    color 140ms,
    opacity 140ms;
}
button:not(:disabled):active {
  opacity: 0.8;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
.icon {
  width: 21px;
  height: 21px;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 20px;
  top: -80px;
  padding: 14px 20px;
  color: var(--accent-ink);
  background: var(--accent);
}
.skip-link:focus {
  top: 16px;
}
.sidebar {
  width: 228px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 34px 20px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--surface-soft);
  z-index: 10;
}
.brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-logo {
  display: block;
  width: 170px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.mobile-brand .brand-logo {
  width: 128px;
  height: 32px;
}
.brand small {
  font-size: 7px;
  letter-spacing: 0.18em;
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
}
.nav-label {
  color: var(--subtle);
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin: 54px 12px 16px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  position: relative;
}
.nav-item:hover {
  background: var(--surface-raised);
  color: var(--ink);
}
.nav-item.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-item i {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.club-card {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.club-card > .icon {
  width: 72px;
  height: 72px;
  color: var(--line-strong);
  position: absolute;
  right: -17px;
  top: 28px;
  opacity: 0.6;
  stroke-width: 0.6;
}
.club-card .eyebrow {
  font-size: 8px;
}
.club-card strong {
  position: relative;
  display: block;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.025em;
  margin: 14px 0;
}
.club-card .text-button {
  font-size: 11px;
  color: var(--accent);
}
.club-card .text-button .icon {
  width: 15px;
}
.build-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 24px;
  color: var(--subtle);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.build-label i {
  width: 3px;
  height: 3px;
  background: var(--line-strong);
  border-radius: 50%;
}
.workspace {
  margin-left: 228px;
}
.topbar {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb span {
  color: var(--line-strong);
  padding: 0 16px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.demo-tag,
.live-tag {
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 600;
  min-height: 32px;
}
.demo-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.wallet {
  display: flex;
  align-items: center;
  gap: 9px;
}
.wallet strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.wallet-unit {
  font-size: 11px;
  color: var(--muted);
}
.coin-symbol {
  border: 1px solid var(--accent);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  font-size: 13px;
  font-weight: 700;
}
.mobile-brand,
.bottom-nav {
  display: none;
}
main#main {
  max-width: 1320px;
  margin: auto;
  padding: 38px 40px 48px;
  min-height: calc(100vh - 158px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.page-caption {
  color: var(--muted);
  margin-top: 12px;
  font-size: 13px;
}
.season-tag {
  display: flex;
  gap: 12px;
  align-items: center;
  background: none;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  min-width: 196px;
}
.season-tag > .icon:first-child {
  color: var(--accent);
}
.season-tag > .icon:last-child {
  width: 14px;
  color: var(--muted);
  margin-left: auto;
}
.season-tag small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
  font-weight: 400;
}
.season-tag:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}
.button {
  min-height: 48px;
  border-radius: 8px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid transparent;
  text-align: center;
}
.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.button.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.button.secondary {
  background: var(--surface-raised);
  border-color: var(--line);
  color: var(--ink);
}
.button.secondary:hover:not(:disabled) {
  background: var(--line);
  border-color: var(--line-strong);
}
.button.selected {
  border-color: var(--accent);
  color: var(--accent);
}
.button.full {
  width: 100%;
}
.button.compact {
  min-height: 40px;
  padding: 8px 14px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.icon-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  color: var(--accent);
}
.icon-button.subtle {
  background: transparent;
  border: none;
  color: var(--muted);
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  background: none;
  padding: 5px 0;
  min-height: 32px;
  font-size: 11px;
  font-weight: 600;
}
.text-button:hover:not(:disabled) {
  color: var(--accent);
}
.text-button .icon {
  width: 16px;
  height: 16px;
}
.text-button.centered {
  justify-content: center;
  width: 100%;
}
.roll-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(350px, 44%) minmax(0, 1fr);
}
.roll-panel {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  padding: 24px 30px 20px;
  background: var(--surface);
}
.roll-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  margin-bottom: 16px;
}
.roll-top .eyebrow {
  font-size: 8px;
}
.roll-top .icon-button {
  width: 32px;
  height: 32px;
}
.country-trigger {
  background: var(--surface-raised);
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  width: 100%;
  height: 46px;
  font-size: 12px;
  text-align: left;
}
.country-trigger > .country-code {
  margin-left: auto;
}
.country-trigger > .icon {
  width: 14px;
}
.country-trigger:hover {
  border-color: var(--line-strong);
}
.country-code {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.country-code .icon {
  width: 12px;
  height: 12px;
}
.hero-plate {
  padding: 34px 0 24px;
}
.hero-plate > p {
  text-align: center;
  min-height: 24px;
  margin-top: 16px;
}
.plate-hint {
  font-size: 11px;
  color: var(--muted);
}
.plate-hint b {
  color: var(--ink);
  font-weight: 600;
}
.license-plate {
  container-type: inline-size;
  display: flex;
  width: 100%;
  position: relative;
  align-items: stretch;
  background: var(--plate-paper);
  color: var(--plate-ink);
  border: 3px solid var(--plate-border);
  border-radius: 8px;
  outline: 1px solid var(--plate-ink);
  outline-offset: -6px;
  box-shadow: 0 3px 0 #080c07;
  aspect-ratio: 4.7;
  padding: 3px 6px;
  white-space: nowrap;
  font-family: var(--plate-font);
  font-weight: 500;
  line-height: 1;
  isolation: isolate;
}
.license-plate:before,
.license-plate:after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--plate-border);
  position: absolute;
  top: 50%;
  z-index: 1;
}
.license-plate:before {
  left: 4px;
}
.license-plate:after {
  right: 4px;
}
.plate-number {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6cqw;
  min-width: 0;
  padding: 0 1.5cqw;
  font-size: 16cqw;
  letter-spacing: -0.04em;
}
.plate-number .part-letters {
  font-size: 0.78em;
  align-self: center;
}
.plate-region {
  border-left: 1.5px solid var(--plate-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5cqw;
  flex: 0 0 21%;
  min-width: 0;
}
.plate-region b {
  font-size: 10.5cqw;
  font-weight: 500;
}
.plate-region small {
  font-family: Arial, sans-serif;
  display: flex;
  gap: 1cqw;
  align-items: center;
  font-size: 3.8cqw;
  font-weight: 700;
  margin-top: 1cqw;
}
.plate-region .flag {
  width: 5.5cqw;
  height: 3.4cqw;
  border-radius: 0;
}
.license-plate.large {
  border-width: 4px;
  border-radius: 10px;
}
.flag {
  display: inline-block;
  width: 23px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff18;
}
.flag-ru {
  background: linear-gradient(#fff 0 33.3%, #2755a7 33.3% 66.6%, #c83945 66.6%);
}
.flag-by {
  background: linear-gradient(#c83b48 0 65%, #42965c 65%);
  border-left: 5px solid #eee8d9;
}
.flag-kz {
  background: #39b8d4;
}
.flag-kz:after {
  content: "☀";
  color: #f6d35c;
  position: absolute;
  font-size: 13px;
  line-height: 13px;
  left: 5px;
}
.flag-ae {
  background: linear-gradient(#159260 0 33.3%, #fff 33.3% 66.6%, #111 66.6%);
  border-left: 6px solid #d44249;
}
.flag-ua {
  background: linear-gradient(#4282cf 50%, #f5d658 50%);
}
.flag-de {
  background: linear-gradient(#111 0 33.3%, #bd3845 33.3% 66.6%, #e8c248 66.6%);
}
.flag-am {
  background: linear-gradient(
    #c33d48 0 33.3%,
    #4264b0 33.3% 66.6%,
    #eab75b 66.6%
  );
}
.flag-us {
  background: repeating-linear-gradient(#c85159 0 1.2px, #faf5e8 1.2px 2.4px);
}
.flag-us:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 45%;
  height: 54%;
  background: #34508b;
}
.flag-it {
  background: linear-gradient(
    90deg,
    #3f9471 0 33.3%,
    #fff 33.3% 66.6%,
    #c64b52 66.6%
  );
}
.flag-cn {
  background: #bf3440;
}
.flag-cn:before {
  content: "★";
  position: absolute;
  top: 0;
  left: 2px;
  color: #f6dd73;
  font-size: 10px;
  line-height: 12px;
}
.euro-band {
  background: #2d4c96;
  color: white;
  font-size: 6cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: -1px 0 -1px -4px;
  width: 8%;
}
.euro-band span {
  font-size: 5cqw;
  color: #edca65;
  margin-bottom: 2cqw;
}
.euro-region {
  margin: -1px -4px -1px 0;
  font:
    700 4cqw Arial,
    sans-serif;
  flex-shrink: 0;
}
.plate-de .plate-number,
.plate-it .plate-number {
  font-size: 13cqw;
}
.plate-cn {
  background: #2651a7;
  color: #fff;
  border-color: #5881c4;
  outline-color: #d6e1ef;
}
.plate-cn .plate-region {
  border-color: #d6e1ef;
}
.plate-cn .plate-number {
  font-family: var(--font);
  font-size: 14cqw;
}
.plate-us {
  aspect-ratio: 2.8;
}
.plate-us .plate-number {
  font-size: 18cqw;
  color: #304c86;
}
.plate-us:before {
  content: "California";
  background: none;
  width: auto;
  height: auto;
  font-size: 5cqw;
  left: 8%;
  top: 3%;
  color: #b84348;
  font-style: italic;
}
.plate-us .plate-region {
  font-size: 10cqw;
}
.roll-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.segmented {
  display: flex;
  background: var(--bg);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.segmented button {
  min-height: 32px;
  min-width: 50px;
  background: none;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.segmented .selected {
  background: var(--surface-raised);
  color: var(--ink);
}
.ticket-count {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.ticket-count .icon {
  width: 17px;
}
.ticket-count strong {
  color: var(--accent);
  font-weight: 700;
}
.spin-button {
  width: 100%;
  justify-content: flex-start;
  padding: 14px 16px;
  min-height: 52px;
  font-size: 12px;
}
.spin-button > span:not(.loader) {
  margin-left: auto;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.spin-button > span > .icon {
  width: 17px;
}
.roll-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--subtle);
  font-size: 9px;
  margin-top: 12px;
}
.roll-note .icon {
  width: 12px;
  height: 12px;
}
.roll-scene {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: #11120f;
}
.roll-scene img {
  position: absolute;
  width: 145%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 75% 50%;
  right: -7%;
  opacity: 0.92;
}
.roll-scene:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #111411e6, transparent 35%);
}
.scene-caption {
  position: absolute;
  z-index: 1;
  bottom: 26px;
  left: 26px;
}
.scene-caption .eyebrow {
  font-size: 8px;
  color: #b5b9ab;
}
.scene-caption strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.05em;
  margin: 5px 0 7px;
}
.scene-caption a {
  font-size: 10px;
  color: var(--muted);
}
.scene-caption a .icon {
  width: 15px;
  margin-left: 10px;
}
.concept-label {
  position: absolute;
  bottom: 28px;
  right: 18px;
  font-size: 7px;
  letter-spacing: 0.12em;
  color: #a7ad9f;
  z-index: 1;
}
.pity-strip {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 20px 30px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}
.pity-strip > div > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 9px;
}
.pity-strip b {
  margin-left: auto;
  color: var(--ink);
  font-weight: 600;
}
.pity-strip .icon {
  width: 14px;
  height: 14px;
}
.progress-track {
  height: 3px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.progress-track > span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.epic-track > span {
  background: var(--epic);
}
.legendary-track > span {
  background: var(--legendary);
}
.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  margin-top: 30px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
}
.section-heading .eyebrow {
  margin-bottom: 8px;
}
.section-heading > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.count-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 4px;
}
.finds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.plate-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  overflow: hidden;
}
.plate-card:hover {
  border-color: var(--line-strong);
}
.plate-card-main {
  width: 100%;
  display: block;
  padding: 14px;
  background: none;
  text-align: left;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.rarity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600;
}
.rarity i {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.rarity-uncommon {
  color: var(--accent);
}
.rarity-rare {
  color: var(--rare);
}
.rarity-epic {
  color: var(--epic);
}
.rarity-legendary {
  color: var(--legendary);
}
.rarity-mythic {
  color: var(--mythic);
}
.card-plate {
  padding: 25px 2px;
  min-height: 91px;
  display: flex;
  align-items: center;
}
.card-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.card-bottom > span {
  color: var(--muted);
  font-size: 9px;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.card-bottom strong {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.card-bottom .icon {
  width: 12px;
  height: 12px;
  color: var(--subtle);
}
.daily-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--surface);
}
.daily-card h2 {
  font-size: 16px;
}
.daily-card > .section-heading > .icon {
  color: var(--accent);
  width: 22px;
}
.daily-card p {
  font-size: 11px;
  color: var(--muted);
  max-width: 190px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.daily-card > .button {
  font-size: 10px;
  width: 100%;
  min-height: 42px;
  gap: 8px;
  padding: 10px;
}
.daily-card > .button .icon {
  width: 16px;
  height: 16px;
}
.daily-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 9px;
  color: var(--muted);
}
.daily-link .icon {
  width: 13px;
}
.desktop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px 24px;
  max-width: 1320px;
  margin: auto;
  font-size: 10px;
  color: var(--subtle);
}
.desktop-footer .text-button {
  font-size: 10px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.outlined-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 9px 12px;
  color: var(--muted);
  white-space: nowrap;
}
.section-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.section-tabs > button {
  background: none;
  color: var(--muted);
  padding: 12px 0 16px;
  min-height: 48px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-tabs > button .icon {
  width: 16px;
}
.section-tabs > button.selected {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.section-tabs > .muted {
  margin-left: auto;
  font-size: 10px;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.search-field {
  flex: 1;
  position: relative;
  min-width: 150px;
}
.search-field > .icon {
  position: absolute;
  left: 13px;
  top: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.search-field input {
  padding-left: 40px;
  width: 100%;
  font-size: 12px;
}
.select-field select {
  font-size: 12px;
  width: 100%;
}
.filter-bar > .icon-button {
  height: 46px;
}
.collection-grid,
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.collection-grid .plate-card-main,
.market-grid .plate-card-main {
  padding: 20px;
}
.collection-grid .card-plate,
.market-grid .card-plate {
  padding: 32px 6px;
  min-height: 130px;
}
.collection-grid .card-bottom,
.market-grid .card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.collection-grid .rarity,
.market-grid .rarity {
  font-size: 10px;
}
.collection-grid .card-bottom > span,
.market-grid .card-bottom > span {
  font-size: 10px;
}
.collection-grid .card-bottom > strong,
.market-grid .card-bottom > strong {
  font-size: 12px;
}
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.market-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  padding: 0 0 24px;
}
.market-note .icon {
  width: 17px;
  color: var(--accent);
}
.empty-state {
  padding: 44px 24px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.empty-state > .icon {
  width: 40px;
  height: 40px;
  color: var(--line-strong);
  margin-bottom: 18px;
}
.empty-state h2,
.empty-state h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.empty-state p {
  color: var(--muted);
  font-size: 13px;
  max-width: 360px;
  margin: 0 auto 20px;
}
.finds-grid + .empty-state {
  padding: 20px;
}
.garage-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.chip {
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 12px;
}
.chip.selected {
  border-color: var(--accent);
  color: var(--accent);
}
.garage-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.garage-visual {
  min-height: 460px;
  position: relative;
  background: #10130f;
  overflow: hidden;
}
.garage-visual > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.garage-visual .concept-label {
  left: 24px;
  right: auto;
  bottom: 20px;
}
.garage-inspector {
  padding: 28px;
  border-left: 1px solid var(--line);
}
.garage-inspector > h2 {
  font-size: 27px;
  margin: 10px 0;
}
.garage-inspector > .muted {
  font-size: 11px;
}
.inspector-block {
  margin: 24px 0;
}
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}
.color-swatches {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.color-swatch {
  width: 36px;
  height: 36px;
  outline: 1px solid var(--line-strong);
  outline-offset: 3px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--swatch);
  display: grid;
  place-items: center;
}
.color-swatch.selected {
  outline-color: var(--accent);
}
.color-swatch > .icon {
  width: 15px;
  filter: drop-shadow(0 1px 1px #000);
  color: #fff;
}
.inspector-block > .muted {
  margin-top: 10px;
}
.garage-inspector > .button {
  width: 100%;
}
.empty-plate {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.shop-heading {
  margin-top: 36px;
}
.car-shop {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.car-shop-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.car-shop-item:last-child {
  border: 0;
}
.car-index {
  font-family: var(--plate-font);
  font-size: 26px;
  color: var(--line-strong);
}
.car-shop-name h3 {
  margin: 4px 0 8px;
  font-size: 20px;
}
.car-shop-item > .icon {
  width: 64px;
  height: 64px;
  color: var(--line-strong);
  stroke-width: 1;
  margin-left: auto;
}
.car-shop-item > .button {
  min-width: 165px;
}
.car-blueprint {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 50px 50px;
}
.car-blueprint > .icon {
  width: 120px;
  height: 120px;
  stroke-width: 0.6;
}
.car-blueprint strong {
  font-size: 32px;
  letter-spacing: -0.05em;
}
.car-blueprint span {
  font-size: 12px;
}
.profile-intro {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 36px 0;
}
.profile-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--accent);
  font-size: 30px;
  font-weight: 600;
}
.profile-intro h2 {
  font-size: 26px;
  margin: 5px 0;
}
.profile-intro p {
  font-size: 12px;
  color: var(--muted);
}
.profile-stats {
  display: flex;
  gap: 36px;
  margin-left: auto;
}
.profile-stats > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.profile-stats b {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.05em;
}
.profile-stats span {
  font-size: 10px;
  color: var(--muted);
}
.profile-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.surface-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 24px;
}
.profile-columns > .surface-panel {
  margin: 0;
}
.surface-panel > .section-heading {
  margin-bottom: 10px;
}
.bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-raised);
  padding: 14px;
  border-radius: 8px;
  margin: 22px 0 6px;
}
.bonus-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.bonus-row .icon {
  color: var(--accent);
  width: 18px;
}
.bonus-row .button {
  font-size: 10px;
}
.quest-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.quest-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.quest-symbol {
  width: 34px;
  height: 34px;
  background: var(--surface-raised);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}
.quest-symbol > .icon {
  width: 18px;
}
.quest-symbol.done {
  color: var(--accent);
}
.quest-content {
  flex: 1;
  min-width: 0;
}
.quest-content > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  margin-bottom: 10px;
}
.quest-content strong {
  font-weight: 600;
}
.quest-content > div:first-child > span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.quest-content > small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 7px;
}
.quest-row > .icon-button {
  width: 36px;
  height: 36px;
}
.reward-ready {
  border-color: var(--accent);
  color: var(--accent);
}
.season-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 28px;
  overflow: hidden;
}
.season-panel > h2 {
  font-size: 27px;
  margin: 36px 0 15px;
  line-height: 1.3;
}
.season-panel > p {
  font-size: 11px;
  color: var(--muted);
  max-width: 260px;
}
.season-trophy {
  position: absolute;
  right: 26px;
  top: 24px;
  width: 50px;
  height: 50px;
  color: var(--line-strong);
  stroke-width: 1;
}
.season-score {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0;
}
.season-score strong {
  font-size: 40px;
  letter-spacing: -0.06em;
  font-weight: 600;
  color: var(--accent);
}
.season-score span {
  font-size: 11px;
  color: var(--muted);
}
.season-panel > .button {
  width: 100%;
}
.collections-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}
.collections-progress > .quest-row {
  padding: 16px 0;
}
.event-header {
  padding-bottom: 10px;
}
.event-header > h3 {
  margin: 20px 0 10px;
  font-size: 23px;
}
.event-header > p {
  font-size: 12px;
}
.cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cosmetic-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cosmetic-preview {
  height: 100px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border-radius: 8px;
  margin-bottom: 20px;
}
.cosmetic-preview > .icon {
  width: 44px;
  height: 44px;
  color: var(--line-strong);
  stroke-width: 1;
}
.cosmetic-preview > img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.cosmetic-card h3 {
  font-size: 15px;
}
.cosmetic-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 18px;
}
.cosmetic-card > .button {
  width: 100%;
}
.profile-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}
dialog {
  width: min(560px, calc(100% - 40px));
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 24px 90px #0009;
}
dialog::backdrop {
  background: #060906ba;
  backdrop-filter: blur(5px);
}
dialog[open] {
  animation: dialog-enter 0.22s ease-out;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px 12px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.dialog-header h2 {
  font-size: 23px;
  letter-spacing: -0.04em;
}
.dialog-header .icon-button {
  border: none;
  background: none;
  color: var(--muted);
}
.dialog-body {
  padding: 8px 26px 28px;
}
.dialog-body > p {
  margin-bottom: 20px;
}
.dialog-body > .license-plate {
  margin: 14px 0 26px;
}
.modal-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
.notice {
  font-size: 12px;
  color: var(--muted);
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 20px 0;
  line-height: 1.7;
}
.notice .icon {
  width: 17px;
  color: var(--accent);
  margin-right: 6px;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.dialog-actions > .button {
  flex: 1;
}
.country-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.country-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  font-size: 12px;
}
.country-option small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.country-option .icon {
  width: 16px;
  margin-left: auto;
}
.country-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.country-option:hover {
  border-color: var(--line-strong);
}
.country-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
.country-settings label,
.form-field {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.country-settings select {
  font-size: 13px;
  width: 100%;
}
.form-field {
  margin: 20px 0 10px;
}
.form-field > input {
  width: 100%;
}
.odds-table > div {
  display: grid;
  grid-template-columns: 1fr 80px 90px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-align: right;
}
.odds-table > div > *:first-child {
  text-align: left;
}
.odds-table .rarity {
  font-size: 12px;
}
.odds-heading {
  font-size: 10px !important;
  color: var(--muted);
}
.plate-detail {
  text-align: center;
  padding: 14px 0 20px;
}
.plate-detail > .rarity {
  font-size: 11px;
  margin-bottom: 22px;
}
.plate-detail > .license-plate {
  margin-bottom: 24px;
}
.plate-detail h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.plate-detail p {
  font-size: 11px;
}
.detail-flags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.purchase-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  margin: 10px 0;
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.purchase-total strong {
  font-size: 18px;
}
.purchase-total .icon {
  width: 18px;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.result-grid article {
  padding: 16px 0;
}
.result-grid .rarity {
  margin-bottom: 16px;
}
.result-grid h3 {
  font-size: 12px;
  margin: 18px 0 8px;
}
.result-grid p {
  font-size: 10px;
}
.result-grid.single-result {
  display: block;
  text-align: center;
}
.single-result article {
  padding: 18px 0;
}
.single-result .rarity {
  font-size: 12px;
  margin-bottom: 24px;
}
.single-result h3 {
  font-size: 23px;
}
.single-result p {
  font-size: 12px;
}
.picker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.picker-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 14px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  font-size: 12px;
}
.picker-row > .license-plate {
  width: 52%;
  flex-shrink: 0;
}
.picker-row > .icon:last-child {
  margin-left: auto;
  width: 16px;
}
.picker-row > span:not(.license-plate) {
  font-size: 10px;
  color: var(--muted);
}
.picker-row:hover {
  border-color: var(--line-strong);
}
.history-list article {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.history-list article > small {
  display: block;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 10px;
}
.history-plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.history-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.history-row > span {
  flex: 1;
}
.history-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.history-row strong {
  text-align: right;
  font-size: 12px;
}
.help-steps {
  padding: 0 0 0 22px;
}
.help-steps > li {
  padding: 10px 0 14px 5px;
}
.help-steps b {
  font-size: 14px;
}
.help-steps p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.error-symbol > .icon {
  color: var(--danger);
  width: 40px;
  height: 40px;
  margin: 12px 0 20px;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 5px 30px #0006;
  max-width: min(520px, calc(100% - 32px));
  width: max-content;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: turn 0.7s linear infinite;
}
.boot-state {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
  padding: 30px;
  text-align: center;
}
.boot-state h1 {
  font-size: 36px;
}
.boot-state > p {
  max-width: 500px;
  color: var(--muted);
}
.boot-state > .brand-mark {
  width: 88px;
  height: 88px;
}
.boot-state > .loader {
  color: var(--accent);
}
.model-loading {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.rolling .license-plate {
  animation: plate-shuffle 0.15s ease-in-out 5;
}
.garage-visual canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.model-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  padding: 32px;
  font-size: 13px;
  color: var(--muted);
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes plate-shuffle {
  50% {
    transform: translateY(3px);
    opacity: 0.4;
  }
}
@media (min-width: 1600px) {
  .roll-scene {
    min-height: 450px;
  }
  .roll-panel {
    padding: 30px 36px;
  }
  .hero-plate {
    padding: 40px 0 28px;
  }
  .roll-top {
    margin-bottom: 24px;
  }
  .pity-strip {
    padding: 22px 36px;
  }
  .dashboard-lower {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .card-plate {
    padding: 28px 4px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 196px;
    padding-inline: 16px;
  }
  .brand {
    font-size: 15px;
    gap: 9px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 26px;
  }
  .brand small {
    font-size: 6px;
  }
  .workspace {
    margin-left: 196px;
  }
  .topbar {
    padding-inline: 28px;
  }
  main#main {
    padding: 30px 28px 40px;
  }
  .roll-stage {
    grid-template-columns: minmax(320px, 47%) minmax(0, 1fr);
  }
  .roll-panel {
    padding: 22px;
  }
  .pity-strip {
    gap: 24px;
    padding: 20px 22px;
  }
  .pity-strip > .text-button {
    font-size: 10px;
  }
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .daily-card {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 24px;
  }
  .daily-card .section-heading {
    grid-column: 1;
  }
  .daily-card p {
    max-width: none;
    margin: 0;
    grid-column: 1;
  }
  .daily-card > .button {
    grid-column: 2;
    grid-row: 1/3;
    width: 240px;
    align-self: center;
  }
  .daily-link {
    grid-column: 1/-1;
    justify-content: flex-start;
    gap: 8px;
  }
  .plate-card-main {
    padding: 16px;
  }
  .card-plate {
    min-height: 112px;
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .search-field {
    flex-basis: 100%;
  }
  .select-field {
    flex: 1;
  }
  .collection-grid,
  .market-grid {
    gap: 14px;
  }
  .collection-grid .plate-card-main,
  .market-grid .plate-card-main {
    padding: 16px;
  }
  .collection-grid .card-plate,
  .market-grid .card-plate {
    min-height: 110px;
  }
  .garage-stage {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .garage-inspector {
    padding: 24px;
  }
  .profile-stats {
    gap: 22px;
  }
  .profile-columns {
    grid-template-columns: 1fr;
  }
  .season-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }
  .season-panel > h2 {
    grid-column: 1;
    margin: 0;
    font-size: 26px;
  }
  .season-panel > p {
    grid-column: 1;
  }
  .season-score {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin: 0;
  }
  .season-panel > .button {
    grid-column: 2;
    grid-row: 3;
  }
  .season-trophy {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .sidebar {
    width: 80px;
    padding: 26px 12px;
  }
  .brand {
    justify-content: center;
  }
  .brand > span:last-child,
  .nav-label,
  .nav-item span,
  .nav-item i,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    margin-top: 42px;
    gap: 14px;
  }
  .nav-item {
    padding: 16px;
    justify-content: center;
  }
  .workspace {
    margin-left: 80px;
  }
  .topbar-actions {
    gap: 16px;
  }
  .roll-stage {
    grid-template-columns: minmax(320px, 52%) minmax(0, 1fr);
  }
  .roll-scene img {
    width: 175%;
    right: -15%;
  }
  .scene-caption {
    left: 20px;
  }
  .concept-label {
    font-size: 6px;
    bottom: 12px;
    right: 12px;
  }
  .pity-strip {
    grid-template-columns: 1fr 1fr;
  }
  .pity-strip > .text-button {
    display: none;
  }
  .season-tag {
    min-width: 160px;
    padding: 12px;
  }
  .season-tag > .icon:last-child {
    display: none;
  }
  .garage-visual {
    min-height: 420px;
  }
  .garage-stage {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .profile-stats {
    gap: 18px;
  }
  .profile-intro h2 {
    font-size: 22px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 14px;
  }
  .sidebar,
  .breadcrumb,
  .desktop-footer {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: calc(74px + var(--telegram-safe-top));
    padding: var(--telegram-safe-top) 20px 0;
    gap: 12px;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.04em;
  }
  .mobile-brand .brand-mark {
    width: 29px;
    height: 29px;
    font-size: 23px;
    border-radius: 8px;
  }
  .topbar-actions {
    gap: 12px;
  }
  .wallet {
    gap: 7px;
  }
  .wallet strong {
    font-size: 13px;
  }
  .wallet-unit,
  .topbar .avatar {
    display: none;
  }
  .coin-symbol {
    width: 19px;
    height: 19px;
    font-size: 10px;
  }
  .demo-tag {
    font-size: 8px;
    padding: 5px 6px;
    min-height: 30px;
  }
  .live-tag {
    display: none;
  }
  main#main {
    padding: 24px 20px
      calc(
        100px + max(env(safe-area-inset-bottom), var(--telegram-safe-bottom))
      );
    min-height: calc(100dvh - 74px);
  }
  .page-heading {
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
  }
  h1 {
    font-size: 38px;
    letter-spacing: -0.06em;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    margin-bottom: 8px;
  }
  .page-caption {
    font-size: 12px;
    line-height: 1.65;
    max-width: 290px;
    margin-top: 10px;
  }
  .page-heading > .season-tag {
    min-width: 0;
    border: 0;
    padding: 0;
    font-size: 0;
    gap: 0;
    margin-top: 5px;
  }
  .season-tag > span,
  .season-tag > .icon:last-child {
    display: none;
  }
  .season-tag > .icon:first-child {
    width: 24px;
    height: 24px;
  }
  .page-heading > .button {
    font-size: 10px;
    min-height: 40px;
    padding: 9px 12px;
  }
  .page-heading > .button > .icon {
    display: none;
  }
  .page-heading > .outlined-label {
    font-size: 8px;
    padding: 7px;
  }
  .roll-stage {
    grid-template-columns: 1fr;
  }
  .roll-scene {
    grid-column: 1;
    grid-row: 1;
    min-height: 210px;
  }
  .roll-scene img {
    width: 100%;
    height: auto;
    min-height: 100%;
    max-width: none;
    right: 0;
    top: 50%;
    transform: translateY(-48%);
    object-fit: cover;
    opacity: 1;
  }
  .roll-scene:after {
    background: linear-gradient(0deg, #111411ed, transparent 42%);
  }
  .scene-caption {
    left: 20px;
    bottom: 16px;
  }
  .scene-caption .eyebrow {
    font-size: 6px;
  }
  .scene-caption strong {
    font-size: 19px;
    margin: 4px 0 2px;
  }
  .scene-caption a {
    font-size: 8px;
  }
  .scene-caption a .icon {
    width: 12px;
  }
  .concept-label {
    font-size: 6px;
    bottom: 18px;
    right: 14px;
  }
  .roll-panel {
    grid-column: 1;
    grid-row: 2;
    padding: 20px;
  }
  .roll-top {
    display: none;
  }
  .country-trigger {
    height: 44px;
  }
  .hero-plate {
    padding: 28px 0 20px;
  }
  .hero-plate > p {
    margin-top: 14px;
  }
  .plate-hint {
    font-size: 11px;
  }
  .license-plate.large {
    border-radius: 9px;
  }
  .roll-options {
    margin-bottom: 14px;
  }
  .segmented button {
    min-height: 36px;
    min-width: 55px;
  }
  .ticket-count {
    font-size: 11px;
  }
  .spin-button {
    min-height: 54px;
    font-size: 13px;
  }
  .spin-button > span:not(.loader) {
    font-size: 10px;
  }
  .roll-note {
    font-size: 9px;
  }
  .pity-strip {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 18px 20px;
  }
  .pity-strip > div > span {
    font-size: 9px;
    gap: 4px;
  }
  .pity-strip .icon {
    width: 12px;
  }
  .pity-strip > .text-button {
    grid-column: 1/-1;
    justify-content: center;
    min-height: 28px;
    font-size: 10px;
    margin-top: -5px;
  }
  .dashboard-lower {
    gap: 24px;
    margin-top: 28px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading .text-button {
    font-size: 10px;
  }
  .finds-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .finds-grid > .plate-card:last-child {
    display: none;
  }
  .plate-card-main {
    padding: 14px;
  }
  .card-plate {
    padding: 28px 0;
    min-height: 105px;
  }
  .card-meta .country-code {
    font-size: 9px;
  }
  .card-meta .country-code .icon {
    display: none;
  }
  .rarity {
    font-size: 9px;
  }
  .card-bottom {
    gap: 6px;
  }
  .card-bottom > span {
    width: 100%;
    font-size: 9px;
  }
  .card-bottom > strong {
    font-size: 11px;
  }
  .daily-card {
    display: block;
    padding: 22px;
  }
  .daily-card p {
    max-width: none;
    margin-bottom: 20px;
  }
  .daily-card > .button {
    width: 100%;
    font-size: 12px;
    min-height: 48px;
  }
  .daily-link {
    justify-content: space-between;
    font-size: 11px;
    margin-top: 15px;
  }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    z-index: 20;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px
      calc(6px + max(env(safe-area-inset-bottom), var(--telegram-safe-bottom)));
    background: var(--surface-soft);
    border-top: 1px solid var(--line);
  }
  .bottom-nav .nav-item {
    flex-direction: column;
    gap: 6px;
    padding: 8px 2px;
    font-size: 9px;
    min-height: 56px;
    border-radius: 6px;
  }
  .bottom-nav .nav-item .icon {
    width: 21px;
    height: 21px;
  }
  .bottom-nav .nav-item i {
    display: none;
  }
  .bottom-nav .nav-item.active {
    background: transparent;
  }
  .toast {
    bottom: calc(
      82px + max(env(safe-area-inset-bottom), var(--telegram-safe-bottom))
    );
    font-size: 11px;
  }
  .section-tabs {
    gap: 22px;
    margin-bottom: 20px;
  }
  .section-tabs > button {
    font-size: 11px;
  }
  .section-tabs > .muted {
    display: none;
  }
  .filter-bar {
    gap: 10px;
  }
  .filter-bar > .search-field {
    flex-basis: 100%;
  }
  .select-field {
    flex: 1 1 40%;
  }
  .filter-bar > .select-field:last-of-type {
    flex: 1;
  }
  .filter-bar select,
  .filter-bar input {
    font-size: 14px;
    min-height: 46px;
  }
  .collection-grid,
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .collection-grid .plate-card-main,
  .market-grid .plate-card-main {
    padding: 13px;
  }
  .collection-grid .card-plate,
  .market-grid .card-plate {
    padding: 28px 0;
    min-height: 105px;
  }
  .collection-grid .rarity,
  .market-grid .rarity {
    font-size: 8px;
  }
  .collection-grid .card-bottom > span,
  .market-grid .card-bottom > span {
    font-size: 9px;
  }
  .collection-grid .card-bottom > strong,
  .market-grid .card-bottom > strong {
    font-size: 12px;
  }
  .market-note {
    font-size: 10px;
    align-items: flex-start;
    line-height: 1.7;
  }
  .garage-stage {
    grid-template-columns: 1fr;
  }
  .garage-visual {
    min-height: 280px;
    height: 280px;
  }
  .garage-visual > img {
    object-position: 70% 65%;
  }
  .garage-inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px;
  }
  .garage-inspector > h2 {
    font-size: 30px;
  }
  .inspector-block > .license-plate {
    max-width: 380px;
  }
  .color-swatch {
    width: 40px;
    height: 40px;
  }
  .color-swatches {
    gap: 16px;
  }
  .car-shop-item {
    padding: 20px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .car-shop-item > .icon {
    width: 44px;
    height: 44px;
  }
  .car-shop-item > .button {
    width: 100%;
    font-size: 12px;
  }
  .car-index {
    font-size: 22px;
  }
  .car-shop-name h3 {
    font-size: 19px;
  }
  .car-blueprint > strong {
    font-size: 28px;
  }
  .garage-tabs {
    gap: 8px;
  }
  .chip {
    font-size: 11px;
    padding: 10px 12px;
  }
  .profile-intro {
    flex-wrap: wrap;
    gap: 16px;
    margin: 26px 0;
  }
  .profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 26px;
  }
  .profile-intro h2 {
    font-size: 24px;
  }
  .profile-stats {
    width: 100%;
    margin: 8px 0 0;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .profile-stats b {
    font-size: 24px;
  }
  .profile-stats span {
    font-size: 9px;
  }
  .surface-panel {
    padding: 22px;
  }
  .profile-columns {
    gap: 20px;
  }
  .surface-panel > .section-heading > h2 {
    font-size: 16px;
  }
  .surface-panel > .section-heading > .icon {
    width: 18px;
  }
  .bonus-row {
    padding: 12px;
    gap: 8px;
  }
  .bonus-row > div {
    font-size: 10px;
    gap: 6px;
  }
  .bonus-row .button {
    padding: 8px;
    font-size: 9px;
  }
  .quest-row {
    gap: 10px;
  }
  .quest-symbol {
    display: none;
  }
  .quest-content > div:first-child {
    font-size: 11px;
  }
  .quest-content > small {
    font-size: 9px;
  }
  .quest-row > .icon-button {
    width: 44px;
    height: 44px;
  }
  .season-panel {
    display: block;
    padding: 24px;
  }
  .season-panel > h2 {
    margin: 28px 0 14px;
  }
  .season-panel > p {
    max-width: none;
  }
  .season-score {
    margin: 24px 0;
  }
  .season-trophy {
    width: 42px;
    height: 42px;
  }
  .collections-progress {
    display: block;
  }
  .cosmetics-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cosmetic-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 18px;
    padding: 20px;
  }
  .cosmetic-preview {
    grid-row: 1/4;
    height: 100%;
    min-height: 100px;
    margin: 0;
  }
  .cosmetic-preview > .icon {
    width: 34px;
    height: 34px;
  }
  .cosmetic-card h3 {
    font-size: 14px;
  }
  .cosmetic-card p {
    font-size: 11px;
    margin: 8px 0 12px;
  }
  .cosmetic-card > .button {
    grid-column: 2;
    min-height: 40px;
    font-size: 10px;
  }
  .profile-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .profile-links > .text-button {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }
  .profile-links > .text-button > .icon:last-child {
    margin-left: auto;
  }
  .event-header h3 {
    font-size: 20px;
  }
  dialog {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 36px - var(--telegram-safe-top));
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
    padding-bottom: max(
      env(safe-area-inset-bottom),
      var(--telegram-safe-bottom)
    );
  }
  .dialog-header {
    padding: 20px 20px 10px;
  }
  .dialog-header h2 {
    font-size: 22px;
  }
  .dialog-body {
    padding: 10px 20px 28px;
  }
  .country-option {
    gap: 9px;
    padding: 12px 10px;
    font-size: 11px;
    min-height: 66px;
  }
  .country-option > .flag {
    width: 22px;
  }
  .country-option > .icon {
    width: 14px;
  }
  .country-settings select {
    font-size: 14px;
  }
  .dialog-body > .muted {
    font-size: 12px;
  }
  .dialog-actions {
    gap: 10px;
  }
  .dialog-actions > .button {
    font-size: 11px;
    padding: 12px;
  }
  .detail-flags {
    gap: 10px;
  }
  .detail-flags .button {
    font-size: 11px;
    padding: 12px;
  }
  .picker-row {
    gap: 10px;
    padding: 14px 10px;
  }
  .picker-row .rarity {
    font-size: 8px;
  }
  .picker-row > .license-plate {
    width: 55%;
  }
  .odds-table > div {
    grid-template-columns: 1fr 60px 75px;
    gap: 8px;
    font-size: 11px;
  }
  .odds-table .rarity {
    font-size: 10px;
  }
  .result-grid {
    gap: 16px;
  }
  .result-grid article {
    padding: 12px 0;
  }
  .single-result h3 {
    font-size: 22px;
  }
  .modal-lead {
    font-size: 14px;
  }
  .history-row {
    font-size: 11px;
  }
  .empty-state {
    padding: 36px 16px;
  }
  .empty-state h2 {
    font-size: 21px;
  }
  .empty-state p {
    font-size: 12px;
  }
}
@media (max-width: 380px) {
  .topbar {
    padding-inline: 16px;
    gap: 8px;
  }
  .mobile-brand {
    font-size: 12px;
    gap: 6px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .wallet strong {
    font-size: 12px;
  }
  .demo-tag {
    font-size: 7px;
    padding: 4px;
  }
  .wallet {
    gap: 5px;
  }
  main#main {
    padding-inline: 16px;
  }
  h1 {
    font-size: 34px;
  }
  .roll-panel {
    padding: 18px;
  }
  .roll-scene {
    min-height: 180px;
  }
  .spin-button {
    font-size: 11px;
    padding: 14px 12px;
    gap: 8px;
  }
  .spin-button > span:not(.loader) {
    font-size: 9px;
  }
  .pity-strip {
    padding: 16px 18px;
    gap: 16px;
  }
  .pity-strip > div > span {
    font-size: 8px;
  }
  .ticket-count {
    font-size: 10px;
  }
  .card-meta {
    gap: 3px;
  }
  .card-meta .country-code {
    font-size: 8px;
  }
  .rarity {
    font-size: 8px;
  }
  .plate-card-main {
    padding: 12px;
  }
  .collection-grid .plate-card-main,
  .market-grid .plate-card-main {
    padding: 11px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .count-label {
    font-size: 9px;
    padding: 2px 5px;
  }
  .page-heading > .button {
    font-size: 9px;
    padding: 8px;
  }
  .country-grid {
    gap: 8px;
  }
  .country-option {
    font-size: 10px;
    gap: 8px;
  }
}
.plate-country-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4cqw;
  width: 10%;
  padding-left: 1cqw;
  flex-shrink: 0;
}
.plate-country-mark > .flag {
  width: 7cqw;
  height: 4.7cqw;
  border-radius: 0;
}
.plate-country-mark > small {
  font:
    700 4cqw Arial,
    sans-serif;
}
.plate-by .plate-number,
.plate-ua .plate-number {
  font-size: 14cqw;
  gap: 2cqw;
}
.plate-by .part-region {
  font-size: 0.8em;
}
.plate-by .part-region:before {
  content: "-";
}
.plate-de .plate-number {
  font-size: 15cqw;
  gap: 2.2cqw;
}
.plate-de .part-region {
  font-size: 0.85em;
}
.plate-it .plate-number {
  font-size: 15cqw;
  gap: 2cqw;
}
.plate-am .plate-number {
  font-size: 15cqw;
}
.plate-kz .plate-number {
  font-size: 15cqw;
}
.plate-kz .plate-region {
  flex-basis: 16%;
}
.plate-cn .plate-number {
  font-size: 13cqw;
  gap: 1cqw;
}
.plate-cn .part-region {
  font-size: 0.9em;
}
.plate-us .plate-number {
  font-size: 19cqw;
  padding-top: 6cqw;
  letter-spacing: 0;
  gap: 0;
}
.plate-us .part-letters {
  font-size: 1em;
}
.plate-ae .plate-number {
  font-size: 17cqw;
  gap: 5cqw;
  letter-spacing: 0;
}
.dubai-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font:
    700 6cqw Arial,
    sans-serif;
  min-width: 20%;
}
.dubai-mark small {
  font-size: 3.5cqw;
  margin-top: 1cqw;
}
@media (max-width: 760px) {
  .roll-scene {
    min-height: 164px;
  }
  .roll-scene img {
    width: 120%;
    right: -4%;
  }
  .scene-caption {
    bottom: 12px;
  }
  .roll-scene .concept-label {
    bottom: 12px;
    font-size: 5px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .roll-panel {
    padding-top: 18px;
  }
  .hero-plate {
    padding-top: 24px;
    padding-bottom: 18px;
  }
  .page-heading > .season-tag {
    width: 44px;
    height: 44px;
    justify-content: center;
    flex-shrink: 0;
  }
}
.filter-apply-label {
  display: none;
}
@media (max-width: 760px) {
  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-bar > .search-field {
    grid-column: 1/-1;
    min-width: 0;
  }
  .filter-bar > .select-field {
    min-width: 0;
  }
  .filter-bar select {
    padding-inline: 10px;
    font-size: 12px;
  }
  .filter-bar > .icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    font-size: 12px;
  }
  .filter-apply-label {
    display: inline;
  }
  .segmented button {
    min-height: 44px;
  }
  .color-swatch {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 760px) and (max-height: 800px) {
  main#main {
    padding-top: 20px;
  }
  .page-heading {
    margin-bottom: 16px;
  }
  .roll-scene {
    min-height: 140px;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  .roll-scene {
    min-height: 110px;
  }
  .page-heading .page-caption {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .loader {
    border-right-color: currentColor;
    opacity: 0.6;
  }
}
.garage-camera {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.garage-camera .chip {
  background: #10130fe6;
  backdrop-filter: blur(8px);
}
.car-shop-preview {
  width: 160px;
  height: 90px;
  object-fit: contain;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .car-shop-preview {
    width: 90px;
    height: 60px;
  }
}
