﻿:root {
  --bg: #0b0f14;
  --panel: #0f141a;
  --panel2: #0b1016;
  --text: #e9f2ff;
  --muted: #9fb3c7;
  --accent: #39d0ff;
  --accent-strong: #7be0ff;
  --accent-deep: #1f7dff;
  --neon: rgba(57,208,255,.4);
  --neon-strong: rgba(70,220,255,.78);
  --danger: #ff5c5c;
  --ok: #35d07f;
  --border: rgba(255,255,255,.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: url('../img/uidetales/fon.png') center top / cover no-repeat fixed, var(--bg);
  color: var(--text);
  position: relative;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(140% 70% at 50% -8%, rgba(70,170,255,.22), transparent 62%),
    radial-gradient(90% 50% at 50% 40%, rgba(55,200,255,.12), transparent 75%);
  z-index: -1;
}

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

.container { max-width: 1040px; margin: 0 auto; padding: 0 14px; }

.topbar { background: transparent; border-bottom: 0; }
.topbar__inner { display:flex; align-items:center; justify-content:space-between; padding: 10px 0; gap: 10px; }
.side-drawer-toggle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 84px;
  border: 1px solid rgba(72,190,255,.42);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background:
    linear-gradient(180deg, rgba(9,22,42,.94), rgba(6,14,28,.94)),
    linear-gradient(135deg, rgba(72,190,255,.14), rgba(0,0,0,0));
  box-shadow: 0 8px 18px rgba(0,0,0,.28), inset 0 0 14px rgba(72,190,255,.12), 0 0 14px rgba(57,208,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 130;
  transition: left .25s ease, background .2s ease, box-shadow .2s ease;
}
.side-drawer-toggle:hover {
  background:
    linear-gradient(180deg, rgba(14,32,58,.98), rgba(8,18,38,.98)),
    linear-gradient(135deg, rgba(72,190,255,.2), rgba(0,0,0,0));
  box-shadow: 0 12px 24px rgba(0,0,0,.38), inset 0 0 18px rgba(72,190,255,.2), 0 0 24px rgba(57,208,255,.22);
}
.side-drawer-toggle__chevron {
  width: 9px;
  height: 9px;
  border-top: 1.5px solid #8fe8ff;
  border-right: 1.5px solid #8fe8ff;
  transform: rotate(45deg);
  margin-left: -3px;
  transition: transform .25s ease, margin .25s ease;
  filter: drop-shadow(0 0 6px rgba(77,210,255,.55));
}
.side-drawer-backdrop {
  display: none !important;
}
.side-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, calc(100vw - 42px));
  transform: translateX(calc(-100% + 10px));
  transition: transform .3s ease;
  z-index: 120;
  pointer-events: none;
}
.side-drawer__panel {
  width: 100%;
  height: 100%;
  padding: 14px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(145% 92% at 0 0, rgba(78,194,255,.24), transparent 56%),
    radial-gradient(120% 100% at 100% 15%, rgba(0,107,255,.12), transparent 62%),
    linear-gradient(180deg, rgba(8,19,38,.96), rgba(6,12,24,.97));
  border-right: 1px solid rgba(72,190,255,.32);
  box-shadow: 14px 0 28px rgba(0,0,0,.48), inset -1px 0 0 rgba(255,255,255,.06), inset 0 0 22px rgba(57,208,255,.12);
  pointer-events: auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(72,190,255,.45) rgba(255,255,255,.04);
}
.side-drawer__brand {
  padding: 12px 12px 13px;
  border: 1px solid rgba(72,190,255,.26);
  border-radius: 16px;
  background:
    radial-gradient(130% 95% at 85% 10%, rgba(57,208,255,.16), transparent 55%),
    linear-gradient(180deg, rgba(14,32,58,.8), rgba(7,17,32,.74));
  display: grid;
  gap: 4px;
  box-shadow: inset 0 0 14px rgba(57,208,255,.08), 0 10px 22px rgba(0,0,0,.24);
}
.side-drawer__brand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.side-drawer__brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.side-drawer__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(145,220,255,.64);
  font-weight: 700;
}
.side-drawer__name {
  font-size: 34px;
  line-height: 1;
  color: #f4fbff;
  text-shadow: 0 0 14px rgba(77,210,255,.24);
  text-decoration: none;
}
.side-drawer__link--mobile {
  display: flex;
}
@media (min-width: 980px) {
  .side-drawer__link--mobile {
    display: none;
  }
}
.side-drawer__meta {
  font-size: 14px;
  line-height: 1.1;
  color: rgba(206,231,252,.74);
}
.side-drawer__status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.side-drawer__status-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid rgba(72,190,255,.2);
  background: linear-gradient(180deg, rgba(12,27,50,.7), rgba(8,17,34,.62));
  color: rgba(205,228,248,.9);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 10px rgba(57,208,255,.06);
  white-space: nowrap;
  min-width: 0;
}
.side-drawer__status-chip[href] {
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.side-drawer__status-chip[href]:hover {
  border-color: rgba(98,224,255,.3);
  box-shadow: inset 0 0 12px rgba(57,208,255,.1), 0 0 10px rgba(57,208,255,.1);
  transform: translateY(-1px);
}
.side-drawer__status-chip img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(77,210,255,.3));
  flex: 0 0 auto;
}
.side-drawer__status-chip span {
  color: rgba(188,216,240,.92);
  letter-spacing: .1px;
  min-width: 0;
}
.side-drawer__status-chip b {
  margin-left: auto;
  color: #f7fcff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .15px;
  flex: 0 0 auto;
}
.side-drawer__status-chip--hot {
  border-color: rgba(104,230,255,.3);
  box-shadow: inset 0 0 10px rgba(57,208,255,.1), 0 0 10px rgba(57,208,255,.05);
}
.side-drawer__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.side-drawer__status-chip--metric {
  border-color: rgba(94,206,255,.3);
}
.side-drawer__summary .side-drawer__status-chip:nth-child(2) {
  border-color: rgba(145,128,255,.34);
}
.side-drawer__summary .side-drawer__status-chip:nth-child(3) {
  border-color: rgba(112,219,255,.34);
}
.side-drawer__summary .side-drawer__status-chip:nth-child(4) {
  border-color: rgba(130,204,255,.34);
}
.side-drawer__nav {
  display: grid;
  gap: 8px;
}
.side-drawer__nav > a[href="messages.php"] {
  display: none;
}
.side-drawer__link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title badge"
    "icon meta badge";
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  min-height: 60px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #eaf6ff;
  border: 1px solid rgba(72,190,255,.12);
  background:
    linear-gradient(90deg, rgba(57,208,255,.08), rgba(255,255,255,.015)),
    linear-gradient(180deg, rgba(12,26,46,.58), rgba(8,17,32,.5));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), inset 0 0 14px rgba(57,208,255,.04);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.side-drawer__link:hover {
  transform: translateX(3px);
  border-color: rgba(72,190,255,.34);
  background:
    linear-gradient(90deg, rgba(57,208,255,.14), rgba(255,255,255,.03)),
    linear-gradient(180deg, rgba(14,32,56,.72), rgba(8,18,34,.66));
}
.side-drawer__link.is-active {
  border-color: rgba(110,232,255,.46);
  background:
    linear-gradient(90deg, rgba(57,208,255,.2), rgba(255,255,255,.04)),
    linear-gradient(180deg, rgba(16,38,64,.82), rgba(9,20,38,.78));
  box-shadow:
    inset 0 0 0 1px rgba(140,230,255,.1),
    inset 0 0 18px rgba(57,208,255,.08),
    0 0 18px rgba(57,208,255,.1);
}
.side-drawer__icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(72,190,255,.12);
  background: linear-gradient(180deg, rgba(14,30,54,.58), rgba(8,18,34,.52));
  box-shadow: inset 0 0 12px rgba(57,208,255,.04);
}
.side-drawer__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.side-drawer__link-title {
  grid-area: title;
  font-size: 15px;
  font-weight: 700;
  color: #f4fbff;
  line-height: 1.1;
}
.side-drawer__link-meta {
  grid-area: meta;
  font-size: 12px;
  color: rgba(184,208,230,.66);
  line-height: 1.15;
}
.side-drawer__badge {
  grid-area: badge;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,212,92,.96), rgba(232,166,48,.94));
  color: #1b1408;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255,212,92,.18);
}
.side-drawer__footer {
  margin-top: auto;
  padding-top: 4px;
}
.side-drawer__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  border-radius: 12px;
  text-decoration: none;
  color: #eef8ff;
  font-weight: 700;
  border: 1px solid rgba(72,190,255,.34);
  background: linear-gradient(180deg, rgba(20,50,86,.9), rgba(10,24,44,.94));
  box-shadow: 0 10px 18px rgba(0,0,0,.28), inset 0 0 14px rgba(57,208,255,.08);
}
.side-drawer__action:hover {
  border-color: rgba(112,232,255,.48);
  background: linear-gradient(180deg, rgba(24,58,96,.92), rgba(10,26,48,.96));
}
body.has-side-drawer-open .side-drawer {
  transform: translateX(0);
}
body.has-side-drawer-open .side-drawer-toggle {
  left: min(320px, calc(100vw - 42px));
}
body.has-side-drawer-open .side-drawer-toggle__chevron {
  transform: rotate(-135deg);
  margin-left: 2px;
}
.right-drawer-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 92px;
  border: 1px solid rgba(72,190,255,.42);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background:
    linear-gradient(180deg, rgba(9,22,42,.94), rgba(6,14,28,.94)),
    linear-gradient(135deg, rgba(72,190,255,.14), rgba(0,0,0,0));
  box-shadow: 0 8px 18px rgba(0,0,0,.28), inset 0 0 14px rgba(72,190,255,.12), 0 0 14px rgba(57,208,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 130;
  transition: right .25s ease, background .2s ease, box-shadow .2s ease;
}
.right-drawer-toggle:hover {
  background:
    linear-gradient(180deg, rgba(14,32,58,.98), rgba(8,18,38,.98)),
    linear-gradient(135deg, rgba(72,190,255,.2), rgba(0,0,0,0));
  box-shadow: 0 12px 24px rgba(0,0,0,.38), inset 0 0 18px rgba(72,190,255,.2), 0 0 24px rgba(57,208,255,.22);
}
.right-drawer-toggle__chevron {
  width: 9px;
  height: 9px;
  border-top: 1.5px solid #8fe8ff;
  border-right: 1.5px solid #8fe8ff;
  transform: rotate(-135deg);
  margin-right: -3px;
  transition: transform .25s ease, margin .25s ease;
  filter: drop-shadow(0 0 6px rgba(77,210,255,.55));
}
.right-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(390px, calc(100vw - 44px));
  transform: translateX(calc(100% - 10px));
  transition: transform .3s ease;
  z-index: 120;
  pointer-events: none;
}
.right-drawer__panel {
  width: 100%;
  height: 100%;
  padding: 10px 12px 12px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  background:
    radial-gradient(140% 90% at 100% 0, rgba(72,190,255,.18), transparent 55%),
    radial-gradient(120% 100% at 0 20%, rgba(31,125,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(8,18,34,.96), rgba(6,12,24,.96));
  border-left: 1px solid rgba(72,190,255,.26);
  box-shadow: -16px 0 32px rgba(0,0,0,.42), inset 1px 0 0 rgba(255,255,255,.04), inset 0 0 20px rgba(57,208,255,.08);
  pointer-events: auto;
  overflow: hidden;
  position: relative;
}
.right-drawer__online {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(72,190,255,.16);
  background:
    radial-gradient(120% 100% at 100% 0, rgba(57,208,255,.08), transparent 58%),
    linear-gradient(180deg, rgba(10,22,40,.92), rgba(7,15,29,.88));
  box-shadow: inset 0 0 18px rgba(57,208,255,.04);
}
.right-drawer__online-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.right-drawer__online-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.right-drawer__online-title {
  color: #f4fbff;
  font-size: 15px;
  font-weight: 700;
}
.right-drawer__online-status {
  color: #7fc8ff;
  font-size: 12px;
}
.drawer-pin {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(72,190,255,.22);
  background: linear-gradient(180deg, rgba(14,30,54,.62), rgba(8,18,34,.58));
  color: rgba(218,238,255,.9);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 0 12px rgba(57,208,255,.04);
}
.drawer-pin:hover {
  border-color: rgba(112,232,255,.42);
  background: linear-gradient(180deg, rgba(18,40,70,.78), rgba(10,22,40,.74));
}
.drawer-pin.is-active {
  border-color: rgba(112,232,255,.5);
  background: linear-gradient(180deg, rgba(22,56,96,.92), rgba(10,26,48,.94));
  color: #f4fbff;
  box-shadow: inset 0 0 14px rgba(57,208,255,.08), 0 0 14px rgba(57,208,255,.08);
}
.right-drawer__online-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 54px;
  overflow-y: auto;
}
.right-drawer__online-list a {
  color: #e7f5ff;
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(72,190,255,.12);
  background: linear-gradient(180deg, rgba(15,32,56,.58), rgba(9,19,35,.52));
  font-size: 12px;
}
.right-drawer__online-list .muted {
  font-size: 12px;
}
.right-drawer__tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(72,190,255,.16);
  background:
    radial-gradient(120% 100% at 50% 0, rgba(57,208,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(10,22,40,.9), rgba(7,15,29,.86));
  box-shadow: inset 0 0 18px rgba(57,208,255,.04);
}
.right-drawer__tab {
  min-height: 40px;
  border: 1px solid rgba(72,190,255,.1);
  border-radius: 10px;
  background: transparent;
  color: rgba(190,218,242,.82);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.right-drawer__tab.is-active {
  border-color: rgba(112,232,255,.4);
  background: linear-gradient(180deg, rgba(20,50,86,.9), rgba(10,24,44,.92));
  color: #f4fbff;
  box-shadow: inset 0 0 14px rgba(57,208,255,.08), 0 0 14px rgba(57,208,255,.08);
}
.right-drawer__tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,212,92,.96), rgba(232,166,48,.94));
  color: #1b1408;
  font-size: 11px;
}
.right-drawer__flash {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .15px;
  border: 1px solid rgba(72,190,255,.16);
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  line-height: 1.25;
  transition: opacity .2s ease, transform .2s ease;
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 5;
}
.right-drawer__flash.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
}
.right-drawer__flash--ok {
  color: #dff8eb;
  background: linear-gradient(180deg, rgba(14,72,58,.7), rgba(9,45,38,.72));
  border-color: rgba(62,198,140,.24);
}
.right-drawer__flash--error {
  color: #ffdfe2;
  background: linear-gradient(180deg, rgba(82,28,42,.7), rgba(46,14,24,.72));
  border-color: rgba(255,102,132,.24);
}
.right-drawer__section {
  display: none;
  min-height: 0;
}
.right-drawer__section.is-active {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}
.right-drawer__feed {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  gap: 7px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(72,190,255,.45) rgba(255,255,255,.04);
}
.right-drawer__feed--pm {
  gap: 10px;
}
.right-drawer__feed[hidden] {
  display: none !important;
}
.right-drawer__empty {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(72,190,255,.18);
  color: rgba(188,212,234,.72);
  text-align: center;
  font-size: 13px;
}
.right-drawer__message {
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(72,190,255,.12);
  background:
    radial-gradient(120% 120% at 100% 0, rgba(57,208,255,.04), transparent 62%),
    linear-gradient(180deg, rgba(14,30,54,.58), rgba(8,18,34,.52)),
    rgba(255,255,255,.02);
  box-shadow: inset 0 0 14px rgba(57,208,255,.025);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "time author"
    ". text";
  row-gap: 2px;
  column-gap: 8px;
}
.right-drawer__message--gold {
  border-color: rgba(255,212,92,.28);
  box-shadow: inset 0 0 14px rgba(255,212,92,.04);
}
.right-drawer__time {
  grid-area: time;
  color: rgba(132,198,232,.7);
  font-size: 10px;
  font-weight: 600;
}
.right-drawer__author {
  grid-area: author;
  color: #ffd672;
  font-size: 12px;
  letter-spacing: .15px;
}
.right-drawer__author--chat {
  color: #56e4a2;
}
.right-drawer__text {
  grid-area: text;
  color: #edf8ff;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
.right-drawer__pm-row {
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(72,190,255,.12);
  background:
    radial-gradient(120% 120% at 100% 0, rgba(57,208,255,.04), transparent 62%),
    linear-gradient(180deg, rgba(14,30,54,.58), rgba(8,18,34,.52));
  text-decoration: none;
  color: inherit;
  position: relative;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  appearance: none;
}
.right-drawer__pm-stage {
  min-height: 0;
  display: grid;
}
.right-drawer__pm-thread-view {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}
.right-drawer__pm-thread-view[hidden] {
  display: none !important;
}
.right-drawer__pm-thread-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.right-drawer__pm-back {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(72,190,255,.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(14,30,54,.66), rgba(8,18,34,.6));
  color: #edf8ff;
  font: inherit;
  cursor: pointer;
}
.right-drawer__pm-thread-title {
  color: #f4fbff;
  font-size: 14px;
  font-weight: 700;
}
.right-drawer__pm-thread-feed {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  scrollbar-width: thin;
  scrollbar-color: rgba(72,190,255,.45) rgba(255,255,255,.04);
}
.right-drawer__online-list,
.right-drawer__feed,
.right-drawer__pm-thread-feed {
  scrollbar-width: thin;
  scrollbar-color: rgba(72,190,255,.45) rgba(255,255,255,.04);
}
.right-drawer__online-list::-webkit-scrollbar,
.right-drawer__feed::-webkit-scrollbar,
.right-drawer__pm-thread-feed::-webkit-scrollbar {
  width: 8px;
}
.right-drawer__online-list::-webkit-scrollbar-track,
.right-drawer__feed::-webkit-scrollbar-track,
.right-drawer__pm-thread-feed::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.right-drawer__online-list::-webkit-scrollbar-thumb,
.right-drawer__feed::-webkit-scrollbar-thumb,
.right-drawer__pm-thread-feed::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 1px solid rgba(72,190,255,.22);
  background: linear-gradient(180deg, rgba(72,190,255,.78), rgba(31,125,255,.68));
  box-shadow: inset 0 0 8px rgba(255,255,255,.08), 0 0 10px rgba(57,208,255,.14);
}
.right-drawer__online-list::-webkit-scrollbar-thumb:hover,
.right-drawer__feed::-webkit-scrollbar-thumb:hover,
.right-drawer__pm-thread-feed::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(112,232,255,.9), rgba(45,145,255,.8));
}
.right-drawer__pm-thread-panel {
  display: grid;
  gap: 8px;
  align-content: start;
}
.right-drawer__pm-thread-panel[hidden] {
  display: none !important;
}
.right-drawer__pm-msg {
  display: grid;
  gap: 4px;
  max-width: 88%;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(72,190,255,.14);
  background: linear-gradient(180deg, rgba(14,30,54,.56), rgba(8,18,34,.52));
}
.right-drawer__pm-msg--me {
  margin-left: auto;
  background: linear-gradient(180deg, rgba(18,48,82,.7), rgba(10,24,44,.72));
  border-color: rgba(110,232,255,.22);
}
.right-drawer__pm-msg-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(180,208,230,.72);
  font-size: 11px;
}
.right-drawer__pm-msg-body {
  color: #edf8ff;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}
.right-drawer__pm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #f4fbff;
  font-size: 11px;
}
.right-drawer__pm-body {
  color: rgba(186,212,234,.82);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 32px;
}
.right-drawer__pm-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,212,92,.96), rgba(232,166,48,.94));
  color: #1b1408;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.right-drawer__composer {
  display: grid;
  gap: 8px;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid rgba(72,190,255,.16);
  background:
    radial-gradient(120% 100% at 50% 0, rgba(57,208,255,.05), transparent 60%),
    linear-gradient(180deg, rgba(10,22,40,.9), rgba(7,15,29,.86));
  box-shadow: inset 0 0 16px rgba(57,208,255,.03);
}
.right-drawer__composer input,
.right-drawer__composer select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(72,190,255,.16);
  background: rgba(6,14,26,.88);
  color: #edf8ff;
  padding: 10px 12px;
  font: inherit;
}
.right-drawer__composer input {
  min-height: 42px;
}
.right-drawer__composer input[name="body"] {
  background: rgba(6,14,26,.88);
  border-color: rgba(72,190,255,.2);
}
.right-drawer__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.right-drawer__actions--single {
  grid-template-columns: 1fr;
}
.right-drawer__actions button {
  min-height: 42px;
  border: 1px solid rgba(72,190,255,.34);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20,50,86,.9), rgba(10,24,44,.94));
  color: #eef8ff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 12px rgba(57,208,255,.06);
}
.right-drawer__actions button:hover {
  border-color: rgba(112,232,255,.48);
  background: linear-gradient(180deg, rgba(24,58,96,.92), rgba(10,26,48,.96));
}
.right-drawer__send-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.right-drawer__send-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(72,190,255,.34);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20,50,86,.9), rgba(10,24,44,.94));
  color: #8fe8ff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 12px rgba(57,208,255,.06);
}
.right-drawer__send-btn:hover {
  border-color: rgba(112,232,255,.48);
  background: linear-gradient(180deg, rgba(24,58,96,.92), rgba(10,26,48,.96));
  color: #b8f4ff;
}
body.has-right-drawer-open .right-drawer {
  transform: translateX(0);
}
body.has-right-drawer-open .right-drawer-toggle {
  right: min(390px, calc(100vw - 44px));
}
body.has-right-drawer-open .right-drawer-toggle__chevron {
  transform: rotate(45deg);
  margin-right: 2px;
}
.top-hero {
  position: relative;
  padding: 6px 0 10px;
  background: transparent;
  overflow: hidden;
}
.top-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}
.top-hero > * {
  position: relative;
  z-index: 1;
}
.top-hero__inner {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 10px 12px 12px;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 65% -5%, rgba(90,170,255,.12), transparent 58%),
    linear-gradient(145deg, rgba(14,20,33,.72), rgba(7,12,22,.78));
  border: 1px solid rgba(75,190,255,.28);
  box-shadow:
    0 12px 28px rgba(0,0,0,.28),
    inset 0 0 22px rgba(57,208,255,.06),
    0 0 20px rgba(57,208,255,.06);
  backdrop-filter: blur(4px);
}
.brand { font-weight: 800; letter-spacing:.4px; text-decoration:none; color: var(--text); }
.brand__sub { color: var(--muted); font-weight:600; margin-left: 8px; font-size: 12px; }

.friends-ticker {
  position: relative;
  border-bottom: 1px solid rgba(92,205,255,.26);
  background: linear-gradient(180deg, rgba(6,12,20,.7), rgba(5,10,18,.78));
}
.friends-ticker__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
}
.friends-ticker__viewport {
  overflow: hidden;
  flex: 1;
}
.friends-ticker__track {
  display: flex;
  width: max-content;
  animation: friendsTickerMove 24s linear infinite;
}
.friends-ticker__content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding-right: 10px;
}
.friends-ticker__label {
  color: #9fc0de;
  font-size: 13px;
  flex: 0 0 auto;
}
.friends-ticker__content a {
  color: #e6f5ff;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid rgba(92,205,255,.34);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(7,17,30,.65);
}
.friends-ticker__content a:hover {
  color: #fff;
  border-color: rgba(132,232,255,.86);
  box-shadow: 0 0 10px rgba(77,210,255,.28);
}

.balances { display:flex; gap: 10px; flex-wrap:wrap; }
.bal { background: rgba(255,255,255,.04); border: 1px solid var(--border); padding: 6px 10px; border-radius: 10px; font-size: 13px; color: var(--muted); }
.bal strong { color: var(--text); }

.menu { display: none; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
.menu__inner { display:flex; gap: 10px; flex-wrap:wrap; padding: 8px 0; }
.menu a { color: var(--muted); text-decoration:none; padding: 6px 10px; border-radius: 10px; border: 1px solid transparent; }
.menu a:hover { color: var(--text); border-color: var(--border); background: rgba(255,255,255,.03); }

.content { padding: 16px 0 30px; }

/* Auth landing */
.auth-landing {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(92,205,255,.34);
  box-shadow: 0 18px 36px rgba(0,0,0,.44), inset 0 0 20px rgba(57,208,255,.08);
  min-height: 620px;
}
.auth-landing__layers {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6,12,24,.86) 0%, rgba(8,14,24,.58) 48%, rgba(7,12,22,.9) 100%),
    url('../img/reg.log/auth-overlay-desktop.png') center / cover no-repeat,
    url('../img/reg.log/auth-bg-desktop.png') center / cover no-repeat;
}
.auth-landing__content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-columns: 1.2fr minmax(320px, 420px);
  align-items: center;
  gap: 16px;
  padding: 28px;
}
.auth-landing--compact .auth-landing__content {
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
}
.auth-hero {
  display: grid;
  gap: 14px;
  align-content: start;
  max-width: 700px;
}
.auth-hero__logo {
  width: min(520px, 92%);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.55));
}
.auth-hero__text {
  margin: 0;
  max-width: 560px;
  color: #c8d7e8;
  font-size: 15px;
  line-height: 1.45;
}
.auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
}
.auth-stat {
  border: 1px solid rgba(92,205,255,.34);
  background: linear-gradient(180deg, rgba(12,26,46,.78), rgba(8,16,31,.84));
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 4px;
}
.auth-stat span {
  color: #9fb3c7;
  font-size: 12px;
}
.auth-stat b {
  color: #ebf6ff;
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(115,220,255,.24);
}
.auth-hero__car {
  width: min(640px, 96%);
  height: auto;
  display: block;
  opacity: .92;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.55));
}
.auth-card {
  background:
    linear-gradient(145deg, rgba(10,18,31,.95), rgba(7,13,24,.96)),
    url('../img/reg.log/auth-panel-texture.png') center / cover no-repeat;
  border-color: rgba(96,210,255,.46);
  box-shadow: 0 14px 26px rgba(0,0,0,.4), inset 0 0 18px rgba(57,208,255,.14);
}
.auth-card--compact {
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
  justify-self: center;
}
.auth-card__links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.auth-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.auth-card__link:hover {
  transform: translateY(-1px);
}
.auth-card__link--ghost {
  color: #dff4ff;
  border: 1px solid rgba(92,205,255,.4);
  background: linear-gradient(180deg, rgba(13,31,53,.72), rgba(8,18,34,.9));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 8px 18px rgba(0,0,0,.22);
}
.auth-card__link--ghost:hover {
  border-color: rgba(126,224,255,.62);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 10px 22px rgba(0,0,0,.28), 0 0 18px rgba(92,205,255,.16);
}
.auth-card__link--accent {
  color: #fff4df;
  border: 1px solid rgba(255,185,88,.4);
  background: linear-gradient(180deg, rgba(60,36,12,.78), rgba(30,18,8,.9));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 8px 18px rgba(0,0,0,.24);
}
.auth-card__link--accent:hover {
  border-color: rgba(255,204,120,.68);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 10px 22px rgba(0,0,0,.28), 0 0 18px rgba(255,185,88,.14);
}

@media (max-width: 980px) {
  .auth-landing {
    min-height: 0;
  }
  .auth-landing__layers {
    background:
      linear-gradient(180deg, rgba(6,12,24,.86), rgba(8,14,24,.8)),
      url('../img/reg.log/auth-overlay-mobile.png') center / cover no-repeat,
      url('../img/reg.log/auth-bg-mobile.png') center / cover no-repeat;
  }
  .auth-landing__content {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .auth-hero {
    display: contents;
  }
  .auth-hero__logo,
  .auth-hero__text,
  .auth-stats,
  .auth-card {
    justify-self: center;
    text-align: center;
  }
  .auth-hero__logo { order: 1; }
  .auth-hero__text { order: 2; }
  .auth-card { order: 3; }
  .auth-stats { order: 4; }
  .auth-hero__logo {
    width: min(480px, 100%);
  }
  .auth-hero__text {
    font-size: 14px;
  }
  .auth-stats {
    width: 100%;
    max-width: 560px;
  }
  .auth-hero__car {
    display: none;
  }
  .auth-card {
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }
  .auth-card--compact {
    max-width: 520px;
  }
  .auth-card__links {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .auth-landing {
    border-radius: 12px;
  }
  .auth-landing__content {
    padding: 12px;
  }
  .auth-stats {
    grid-template-columns: 1fr;
  }
  .auth-stat b {
    font-size: 18px;
  }
  .auth-card h1 {
    margin-top: 2px;
  }
  .auth-card__link {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
  }
}

.race-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.race-tab {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 11px;
  border: 1px solid rgba(80,200,255,.62);
  background: linear-gradient(180deg, rgba(21,39,66,.85), rgba(9,18,34,.92));
  font-size: 13px;
  transition: all 0.15s ease;
  box-shadow: inset 0 0 14px rgba(110,220,255,.14), 0 0 12px rgba(57,208,255,.22);
  clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 11px 100%, 0 50%);
}
.race-tab:hover {
  color: var(--text);
  border-color: var(--neon-strong);
  box-shadow: inset 0 0 16px rgba(122,230,255,.2), 0 0 18px rgba(57,208,255,.35);
  transform: translateY(-1px);
}
.race-tab.is-active {
  color: var(--text);
  border-color: rgba(126,233,255,.92);
  background:
    linear-gradient(120deg, rgba(42,182,255,.35), rgba(41,105,255,.28)),
    linear-gradient(180deg, rgba(22,41,70,.9), rgba(9,19,35,.95));
  box-shadow: inset 0 0 20px rgba(132,232,255,.25), 0 0 26px rgba(57,208,255,.42);
}
.race-result-hero {
  position: relative;
  margin-top: 8px;
  min-height: 470px;
  border-radius: 22px;
  border: 1px solid rgba(57, 208, 255, .42);
  overflow: hidden;
  padding: 16px 18px 14px;
  background:
    linear-gradient(180deg, rgba(6, 14, 28, .16), rgba(5, 12, 24, .46)),
    url('../img/race/rc.png') center center / cover no-repeat;
  box-shadow: inset 0 0 40px rgba(43, 188, 255, .08), 0 18px 28px rgba(0, 0, 0, .34);
}
.race-result-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(90, 215, 255, .16), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.race-result-hero__topline,
.race-result-hero__cars,
.race-result-badge,
.race-result-metrics,
.race-result-reward {
  position: relative;
  z-index: 2;
}
.race-result-hero__title {
  margin: 2px 0 6px;
  font-size: clamp(24px, 3.8vw, 42px);
  line-height: .95;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #eff7ff;
  text-shadow: 0 0 16px rgba(0, 215, 255, .28);
}
.race-result-hero__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.race-result-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(112, 223, 255, .36);
  background: rgba(6, 19, 38, .62);
  color: rgba(230, 246, 255, .94);
  font-size: 12px;
  letter-spacing: .01em;
}
.race-result-hero__smoke {
  position: absolute;
  bottom: 120px;
  width: min(44%, 320px);
  opacity: .42;
  pointer-events: none;
  z-index: 1;
}
.race-result-hero__smoke--left { left: 12px; }
.race-result-hero__smoke--right { right: 12px; }
.race-result-hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}
.race-result-hero__cars {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 2px;
}
.race-result-hero__car {
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}
.race-result-hero__car--left {
  justify-self: end;
  transform: translateX(72px);
}
.race-result-hero__car--right {
  justify-self: start;
  transform: translateX(-72px);
}
.race-result-hero__car::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: min(72%, 220px);
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(6, 18, 34, .62) 0%, rgba(6, 18, 34, .36) 46%, rgba(6, 18, 34, 0) 78%);
  filter: blur(1px);
  pointer-events: none;
}
.race-result-hero__car-img {
  width: min(100%, 320px);
  height: auto;
  max-height: 180px;
  object-fit: contain;
  display: inline-block;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .45));
  transform: translateY(16px);
}
.race-result-hero__vs {
  margin-bottom: 38px;
  font-size: clamp(20px, 3.2vw, 46px);
  font-weight: 900;
  letter-spacing: .03em;
  color: #eef8ff;
  text-shadow: 0 0 22px rgba(0, 218, 255, .36);
}
.race-result-hero__name {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  color: rgba(231, 245, 255, .96);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .44);
}
.race-result-hero__name a {
  color: inherit;
  text-decoration: none;
}
.race-result-hero__name a:hover {
  text-decoration: underline;
}
.race-result-badge {
  margin: 4px auto 0;
  width: min(100%, 680px);
  text-align: center;
  position: relative;
  padding: 12px 12px 10px;
}
.race-result-badge__glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.race-result-badge__title {
  position: relative;
  z-index: 1;
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #4de9ff;
  text-shadow: 0 0 18px rgba(77, 233, 255, .55);
}
.race-result-hero--win .race-result-badge__title {
  background: linear-gradient(90deg, #27d7ff 2%, #53b6ff 48%, #cb55ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.race-result-hero--lose .race-result-badge__title {
  background: linear-gradient(90deg, #ff6b4a 0%, #ff9538 48%, #ffbe5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.race-result-hero--draw .race-result-badge__title {
  background: linear-gradient(90deg, #7bd8ff 0%, #85f0ff 48%, #b2b7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.race-result-badge__sub {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: rgba(232, 246, 255, .92);
  font-size: 12px;
}
.race-result-metrics {
  margin: 2px auto 0;
  width: min(100%, 720px);
  border-radius: 18px;
  border: 1px solid rgba(80, 196, 255, .23);
  background: rgba(3, 12, 30, .72);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}
.race-result-metrics__item {
  padding: 10px 12px 11px;
  text-align: center;
}
.race-result-metrics__item + .race-result-metrics__item {
  border-left: 1px solid rgba(73, 155, 214, .2);
}
.race-result-metrics__item span {
  display: block;
  color: rgba(178, 208, 232, .95);
  font-size: 12px;
  margin-bottom: 3px;
}
.race-result-metrics__item b {
  font-size: clamp(20px, 2.8vw, 36px);
  color: #f0f8ff;
  letter-spacing: .01em;
}
.race-result-metrics__item--accent b {
  color: #ffc53f;
  text-shadow: 0 0 16px rgba(255, 197, 63, .24);
}
.race-result-reward {
  margin-top: 8px;
  text-align: center;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 800;
  color: #4ce9ff;
  text-shadow: 0 0 15px rgba(79, 228, 255, .28);
}
.race-result-reward span {
  display: inline-block;
  margin: 0 12px;
  color: rgba(174, 209, 232, .7);
}
.race-result-hero--win .race-result-reward {
  color: #2ef0ff;
}
.race-result-hero--lose .race-result-reward {
  color: #ff965a;
}
.race-result-hero--draw .race-result-reward {
  color: #9ad9ff;
}
@media (max-width: 900px) {
  .race-result-hero {
    min-height: 420px;
    padding: 12px 12px 12px;
  }
  .race-result-hero__name {
    font-size: 17px;
  }
  .race-result-hero__car--left {
    transform: translateX(42px);
  }
  .race-result-hero__car--right {
    transform: translateX(-42px);
  }
  .race-result-hero__car-img {
    max-height: 132px;
    transform: translateY(12px);
  }
  .race-result-hero__vs {
    margin-bottom: 24px;
  }
  .race-result-metrics__item b {
    font-size: 26px;
  }
}
@media (max-width: 640px) {
  .race-result-hero {
    min-height: 390px;
    background-position: center center, center 60%;
  }
  .race-result-hero__meta span {
    font-size: 10px;
    padding: 4px 8px;
  }
  .race-result-hero__cars {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-items: center;
    align-items: flex-end;
    margin-top: 36px;
    gap: 6px;
  }
  .race-result-hero__vs {
    margin: 0 0 34px;
    font-size: 22px;
    line-height: 1;
  }
  .race-result-hero__car--left,
  .race-result-hero__car--right {
    width: 100%;
    max-width: 100%;
    transform: translateX(0);
  }
  .race-result-hero__car--left {
    transform: translateX(10px);
  }
  .race-result-hero__car--right {
    transform: translateX(-10px);
  }
  .race-result-hero__car {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8px;
    min-height: 168px;
  }
  .race-result-hero__car-img {
    width: min(100%, 238px);
    height: auto;
    max-height: 132px;
    transform: translateY(26px);
  }
  .race-result-hero__name {
    font-size: 13px;
    margin-top: 8px;
    white-space: nowrap;
  }
  .race-result-hero__car::after {
    bottom: -8px;
    height: 24px;
    width: min(82%, 180px);
    background: radial-gradient(ellipse at center, rgba(2, 10, 22, .92) 0%, rgba(2, 10, 22, .64) 52%, rgba(2, 10, 22, 0) 86%);
    filter: blur(2.5px);
  }
  .race-result-hero__smoke {
    bottom: 132px;
    width: 54%;
  }
  .race-result-badge {
    margin-top: 6px;
    padding: 12px 10px 10px;
  }
  .race-result-badge__sub {
    font-size: 12px;
  }
  .race-result-metrics {
    grid-template-columns: 1fr;
    margin-top: 6px;
  }
  .race-result-metrics__item {
    padding: 10px 12px;
  }
  .race-result-metrics__item + .race-result-metrics__item {
    border-left: 0;
    border-top: 1px solid rgba(73, 155, 214, .2);
  }
  .race-result-metrics__item b {
    font-size: 30px;
  }
  .race-result-reward {
    margin-top: 10px;
    font-size: 28px;
  }
}
.race-visual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.race-visual-card {
  padding: 0;
  border-color: rgba(73,190,255,.38);
}
.race-visual-stage {
  position: relative;
  min-height: 430px;
  padding: 18px;
  border-radius: 18px;
  overflow: hidden;
  background: url('../img/fonai/race.png') center center / cover no-repeat;
  border: 1px solid rgba(73,190,255,.28);
  box-shadow: inset 0 0 26px rgba(57,208,255,.06), 0 12px 24px rgba(0,0,0,.28);
}
.race-visual-stage::before {
  content: "";
  position: absolute;
  inset: -24% -28%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      rgba(255,255,255,0) 38%,
      rgba(152,221,255,.08) 48%,
      rgba(255,255,255,.04) 52%,
      rgba(255,255,255,0) 62%
    );
  transform: translate3d(-18%, 12%, 0) rotate(-4deg);
  animation: raceStageShimmer 20s linear infinite;
}
.race-visual-stage::after {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(65% 45% at 18% 76%, rgba(190,228,255,.06), rgba(190,228,255,0) 70%),
    radial-gradient(58% 40% at 78% 24%, rgba(170,218,255,.05), rgba(170,218,255,0) 72%),
    radial-gradient(72% 52% at 54% 54%, rgba(162,210,248,.03), rgba(162,210,248,0) 74%);
  transform: translate3d(-1%, 0, 0);
  animation: raceStageFog 28s ease-in-out infinite alternate;
}
.race-visual-overlay {
  position: absolute;
  z-index: 3;
}
.race-visual-overlay--left {
  top: 20px;
  left: 20px;
  max-width: 280px;
}
.race-visual-overlay--right {
  top: 20px;
  right: 20px;
  width: min(34%, 300px);
}
.race-visual-overlay--bottom {
  left: 20px;
  right: 20px;
  bottom: 10px;
}
.race-car-slot {
  position: absolute;
  z-index: 2;
  align-items: center;
  justify-content: center;
  display: flex;
  width: auto;
  min-height: 0;
  background: transparent;
  border: 0 !important;
  box-shadow: none;
  pointer-events: none;
  overflow: visible;
}
.race-car-slot--opponent {
  left: 3%;
  bottom: 92px;
}
.race-car-slot--player {
  left: 30%;
  bottom: 70px;
}
.race-car-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 315px;
  height: 220px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}
.race-car-wrap > .race-car-img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
}
.race-car-slot--player .race-car-wrap {
  width: 370px;
  height: 255px;
}
.race-car-slot--empty {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.race-opponent-badge {
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(90,170,255,.3);
  background:
    linear-gradient(180deg, rgba(14,20,34,.86), rgba(8,12,22,.9)),
    linear-gradient(135deg, rgba(57,208,255,.08), rgba(0,0,0,0));
  box-shadow: inset 0 0 18px rgba(57,208,255,.06), 0 12px 20px rgba(0,0,0,.2);
}
.race-opponent-badge__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.race-opponent-badge__name,
.race-opponent-badge__name a {
  color: #f3f8ff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
}
.race-opponent-badge__change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(98, 210, 255, .34);
  background: linear-gradient(180deg, rgba(16, 34, 58, .72), rgba(8, 18, 34, .78));
  color: rgba(232, 245, 255, .9);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 12px rgba(86, 210, 255, .08), 0 6px 14px rgba(0, 0, 0, .16);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.race-opponent-badge__change:hover {
  border-color: rgba(136, 232, 255, .72);
  box-shadow: inset 0 0 14px rgba(112, 222, 255, .14), 0 8px 16px rgba(0, 0, 0, .18), 0 0 14px rgba(57, 208, 255, .16);
  transform: translateY(-1px);
}
.race-opponent-badge__meta {
  margin-top: 4px;
  color: rgba(167,198,225,.78);
  font-size: 13px;
}
.race-stats-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,214,120,.18);
  background:
    linear-gradient(180deg, rgba(14,18,26,.88), rgba(9,12,18,.92)),
    linear-gradient(135deg, rgba(255,214,120,.05), rgba(0,0,0,0));
  box-shadow: inset 0 0 18px rgba(255,214,120,.03), 0 14px 24px rgba(0,0,0,.22);
}
.race-stats-card__title {
  margin: 0 0 10px 0;
  color: #f0cb6d;
  font-size: 22px;
  font-weight: 700;
}
.race-stats-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.race-stats-card__head .race-stats-card__title {
  margin: 0;
}
.race-stats-card__close {
  display: none;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,210,255,.34);
  background: linear-gradient(180deg, rgba(16, 34, 58, .68), rgba(8, 18, 34, .74));
  color: #eaf5ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
}
.race-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  color: rgba(214,228,244,.78);
  font-size: 13px;
}
.race-stats-grid b {
  color: #f6fbff;
}
.race-controls-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  width: min(100%, 620px);
  margin: 0 auto;
}
.race-player-info-btn {
  display: none;
}
.race-compact-btn {
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
}
.race-track-launcher {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 6px 10px 4px;
  border-radius: 18px;
  border: 1px solid rgba(87, 198, 255, .14);
  background:
    linear-gradient(180deg, rgba(7, 16, 28, .38), rgba(5, 11, 22, .5)),
    radial-gradient(140% 120% at 50% 0, rgba(57, 208, 255, .04), rgba(0, 0, 0, 0));
  box-shadow:
    inset 0 0 18px rgba(57, 208, 255, .03),
    inset 0 1px 0 rgba(255, 255, 255, .025),
    0 8px 18px rgba(0, 0, 0, .16);
  backdrop-filter: blur(5px);
}
.race-track-form {
  margin: 0;
  flex: 1 1 0;
  max-width: 200px;
}
.race-track-card {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}
.race-track-card:hover:not(:disabled) {
  transform: translateY(-2px);
}
.race-track-card:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.race-track-card__frame {
  display: block;
  height: 66px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.race-track-card:hover:not(:disabled) .race-track-card__frame {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}
.race-track-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .34));
}
.race-track-card__label {
  display: block;
  padding: 0 4px 1px;
  color: rgba(236, 247, 255, .9);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(57, 208, 255, .12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.race-tournaments {
  margin-top: 12px;
  padding: 14px 16px;
}
.race-tournaments__title {
  margin: 0;
  color: #eef7ff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;
}
.race-tournaments__timer {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(198, 216, 236, .82);
}
.race-tournaments__timer b {
  color: #f5fbff;
}
.race-tournaments__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.race-tournament-status {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(92, 205, 255, .24);
  background:
    linear-gradient(180deg, rgba(8, 18, 32, .82), rgba(5, 11, 22, .88)),
    radial-gradient(130% 110% at 12% 0, rgba(57, 208, 255, .08), rgba(0, 0, 0, 0));
  box-shadow:
    inset 0 0 18px rgba(57, 208, 255, .04),
    0 10px 22px rgba(0, 0, 0, .18);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.race-tournament-status--waiting {
  border-color: rgba(255, 214, 96, .24);
  background:
    linear-gradient(180deg, rgba(18, 18, 28, .82), rgba(8, 10, 18, .88)),
    radial-gradient(130% 110% at 12% 0, rgba(255, 205, 82, .08), rgba(0, 0, 0, 0));
}
.race-tournament-status__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(92, 205, 255, .28);
  background: linear-gradient(180deg, rgba(16, 34, 58, .62), rgba(8, 18, 34, .74));
  color: rgba(232, 246, 255, .88);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.race-tournament-status--waiting .race-tournament-status__badge {
  border-color: rgba(255, 214, 96, .28);
  background: linear-gradient(180deg, rgba(64, 42, 10, .56), rgba(26, 18, 8, .7));
}
.race-tournament-status__main {
  min-width: 0;
}
.race-tournament-status__name {
  color: #eef7ff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
}
.race-tournament-status__meta {
  margin-top: 4px;
  color: rgba(192, 211, 233, .74);
  font-size: 12px;
}
.race-tournament-status__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  text-align: right;
}
.race-tournament-status__label {
  color: rgba(176, 198, 223, .7);
  font-size: 11px;
}
.race-tournament-status__time {
  color: #f3fbff;
  font-size: 18px;
  line-height: 1;
}

@keyframes raceStageShimmer {
  0% {
    transform: translate3d(-22%, 14%, 0) rotate(-4deg);
  }
  100% {
    transform: translate3d(20%, -10%, 0) rotate(-4deg);
  }
}

@keyframes raceStageFog {
  0% {
    transform: translate3d(-2%, 0, 0);
    background-position: 0% 0%, 0% 0%, 0% 0%;
  }
  100% {
    transform: translate3d(2%, 1%, 0);
    background-position: 4% 2%, -3% 3%, 2% -2%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .race-visual-stage::before,
  .race-visual-stage::after {
    animation: none;
  }
  .race-visual-stage::before {
    opacity: .04;
    transform: none;
  }
  .race-visual-stage::after {
    opacity: .05;
    transform: none;
  }
}
.tournament-race-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.tournament-report {
  padding: 14px 16px;
}
.tournament-live-hero {
  margin-top: 2px;
}
.tournament-live-hero .race-result-badge__sub b {
  color: #f4fbff;
  font-size: 18px;
  letter-spacing: .03em;
}
.tournament-report__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tournament-report__title {
  margin: 0;
  color: #eef7ff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.02;
}
.tournament-report__subtitle {
  color: rgba(192, 211, 233, .78);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.tournament-race-car {
  text-align: center;
}
.tournament-race-car__media {
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}
.tournament-race-car__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
}
@media (max-width: 760px) {
  .tournament-report__title {
    font-size: 18px;
  }
  .race-tournament-status {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .race-tournament-status__side {
    align-items: flex-start;
    text-align: left;
  }
  .tournament-race-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.panel {
  background:
    radial-gradient(120% 90% at 65% -5%, rgba(90,170,255,.18), transparent 58%),
    linear-gradient(145deg, rgba(14,20,33,.96), rgba(7,12,22,.96));
  border: 1px solid rgba(75,190,255,.42);
  border-radius: 16px;
  padding: 16px;
  box-shadow:
    0 0 0 1px rgba(57,208,255,.18),
    inset 0 0 24px rgba(57,208,255,.1),
    0 14px 28px rgba(0,0,0,.45),
    0 0 24px rgba(57,208,255,.14);
  backdrop-filter: blur(4px);
  position: relative;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(140,220,255,.16);
  pointer-events: none;
}
.panel--narrow { max-width: 520px; margin: 0 auto; }

.report-log {
  background:
    radial-gradient(140% 120% at 90% 0, rgba(108, 170, 255, .18), transparent 56%),
    radial-gradient(100% 80% at 5% 100%, rgba(57, 208, 255, .12), transparent 60%),
    linear-gradient(145deg, rgba(10, 16, 30, .95), rgba(6, 12, 24, .96));
}
.report-log__head h2 {
  margin: 0 0 10px;
  color: #eef6ff;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: .01em;
}
.report-log__wrap {
  border: 1px solid rgba(88, 196, 255, .35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 10, 22, .68);
  box-shadow: inset 0 0 22px rgba(57, 208, 255, .08), 0 10px 22px rgba(0, 0, 0, .24);
}
.report-log__table {
  width: 100%;
  border-collapse: collapse;
}
.report-log__table thead th {
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(22, 38, 68, .66), rgba(10, 18, 34, .75));
  color: #dbeeff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(108, 208, 255, .28);
}
.report-log__table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(87, 151, 223, .18);
  vertical-align: top;
}
.report-log__table tbody tr:nth-child(odd) td {
  background: linear-gradient(90deg, rgba(12, 22, 42, .54), rgba(7, 14, 28, .28));
}
.report-log__table tbody tr:hover td {
  background: linear-gradient(90deg, rgba(18, 34, 62, .62), rgba(12, 20, 40, .5));
}
.report-log__time {
  white-space: nowrap;
  color: rgba(214, 230, 247, .9);
  font-weight: 600;
}
.report-log__data {
  min-width: 340px;
}
.report-log__title {
  color: #e9f5ff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
}
.report-log__details {
  margin-top: 4px;
  color: rgba(196, 215, 238, .86);
  font-size: 18px;
  line-height: 1.25;
}
.report-log__details b {
  color: #f6fcff;
}
.report-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(95, 190, 255, .45);
  color: #d9efff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(180deg, rgba(14, 29, 52, .7), rgba(8, 18, 36, .78));
  text-transform: uppercase;
  white-space: nowrap;
}
.report-type__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #79e2ff;
  box-shadow: 0 0 8px rgba(121, 226, 255, .65);
}
.report-type--race {
  border-color: rgba(86, 215, 255, .65);
}
.report-type--tournament {
  border-color: rgba(255, 214, 96, .75);
  color: #ffefc4;
}
.report-type--tournament .report-type__dot {
  background: #ffd45d;
  box-shadow: 0 0 8px rgba(255, 212, 93, .68);
}
.report-type--market {
  border-color: rgba(135, 236, 172, .62);
  color: #d7ffe6;
}
.report-type--market .report-type__dot {
  background: #8ef0b3;
  box-shadow: 0 0 8px rgba(142, 240, 179, .66);
}
.report-type--agency {
  border-color: rgba(200, 165, 255, .62);
  color: #ecdfff;
}
.report-type--agency .report-type__dot {
  background: #cea5ff;
  box-shadow: 0 0 8px rgba(206, 165, 255, .66);
}
.report-type--club {
  border-color: rgba(255, 166, 122, .62);
  color: #ffe6d8;
}
.report-type--club .report-type__dot {
  background: #ffb18a;
  box-shadow: 0 0 8px rgba(255, 177, 138, .66);
}

@media (max-width: 820px) {
  .report-log__head h2 {
    font-size: 26px;
  }
  .report-log__title {
    font-size: 17px;
  }
  .report-log__details {
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  .report-log__wrap {
    border-radius: 12px;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .report-log__table {
    display: block;
    width: 100%;
  }
  .report-log__table thead {
    display: none;
  }
  .report-log__table tbody {
    display: block;
  }
  .report-log__table tbody tr {
    display: block;
    margin: 0 0 8px;
    border: 1px solid rgba(88, 196, 255, .28);
    border-radius: 10px;
    background:
      radial-gradient(120% 100% at 0% 0%, rgba(76, 176, 236, .13), transparent 58%),
      linear-gradient(180deg, rgba(10, 20, 37, .95), rgba(7, 14, 28, .96));
    box-shadow: inset 0 0 16px rgba(57, 208, 255, .08), 0 8px 16px rgba(0, 0, 0, .24);
    overflow: hidden;
  }
  .report-log__table td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) 1fr;
    column-gap: 10px;
    align-items: start;
    border-bottom: 1px solid rgba(87, 151, 223, .2);
    padding: 7px 10px;
    background: transparent !important;
  }
  .report-log__table td:last-child {
    border-bottom: 0;
  }
  .report-log__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(168, 214, 245, .84);
  }
  .report-log__table td > * {
    margin: 0;
  }
  .report-log__time {
    font-size: 14px;
    white-space: normal;
  }
  .report-log__data {
    min-width: 0;
  }
  .report-log__title {
    font-size: 18px;
    line-height: 1.15;
    word-break: break-word;
  }
  .report-log__details {
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
  }
}

.form { display:flex; flex-direction:column; gap: 12px; }
.form label { display:flex; flex-direction:column; gap: 6px; color: var(--muted); font-size: 13px; }
.form input, .form textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
}

.btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(88,206,255,.65);
  background: linear-gradient(180deg, rgba(18,38,64,.9), rgba(10,20,36,.94));
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 0 14px rgba(118,225,255,.18), 0 0 12px rgba(57,208,255,.24);
  transition: .15s ease;
}
.btn:hover {
  border-color: rgba(132,232,255,.9);
  box-shadow: inset 0 0 18px rgba(120,232,255,.25), 0 0 24px rgba(57,208,255,.36);
  transform: translateY(-1px);
}
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(72,190,255,.16); }

.alert {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10,18,30,.88), rgba(6,12,22,.9));
  color: var(--text);
}
.alert--error {
  border-color: rgba(255,92,92,.34);
  background:
    linear-gradient(180deg, rgba(42, 14, 18, .9), rgba(18, 8, 12, .92)),
    linear-gradient(135deg, rgba(255,92,92,.08), rgba(0,0,0,0));
  box-shadow: inset 0 0 18px rgba(255,92,92,.08), 0 10px 24px rgba(0,0,0,.28);
}
.alert--ok {
  border-color: rgba(53,208,127,.45);
  background:
    linear-gradient(180deg, rgba(8, 28, 24, .92), rgba(6, 18, 20, .94)),
    linear-gradient(135deg, rgba(53,208,127,.08), rgba(0,0,0,0));
  box-shadow: inset 0 0 18px rgba(56,220,150,.1), 0 10px 24px rgba(0,0,0,.28);
}
.alert.js-auto-dismiss {
  overflow: hidden;
  max-height: 180px;
  transition: opacity .26s ease, transform .26s ease, max-height .26s ease, margin .26s ease, padding .26s ease, border-width .26s ease;
}
.alert.js-auto-dismiss.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}
.alert--toast {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 260;
  width: min(560px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 34px rgba(0,0,0,.34);
  opacity: 0;
  transform: translate(-50%, -10px) scale(.98);
  transition: opacity .28s ease, transform .28s ease, filter .35s ease;
}
.alert--toast::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: rgba(123, 224, 255, .9);
  box-shadow: 0 0 14px rgba(57,208,255,.38);
}
.alert--ok.alert--toast::before {
  background: rgba(53,208,127,.92);
  box-shadow: 0 0 14px rgba(53,208,127,.32);
}
.alert--error.alert--toast::before {
  background: rgba(255,92,92,.92);
  box-shadow: 0 0 14px rgba(255,92,92,.28);
}
.alert--toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.alert--toast.is-hiding {
  opacity: 0;
  filter: blur(6px);
  transform: translate(-50%, -8px) scale(.985);
}

.muted { color: var(--muted); }

.footer { border-top: 1px solid var(--border); padding: 14px 0; background: rgba(0,0,0,.25); }

.grid { display:grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background:
    radial-gradient(110% 70% at 20% 0, rgba(82,176,255,.16), transparent 58%),
    linear-gradient(145deg, rgba(10,16,28,.95), rgba(6,10,20,.96));
  border: 1px solid rgba(73,190,255,.34);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,.35), inset 0 0 16px rgba(57,208,255,.08), 0 0 18px rgba(57,208,255,.1);
  backdrop-filter: blur(3px);
}
.cities-page {
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(60% 70% at 84% 7%, rgba(95, 214, 255, .2), transparent 58%),
    radial-gradient(62% 78% at 5% 100%, rgba(255, 190, 86, .08), transparent 62%),
    linear-gradient(145deg, rgba(11, 18, 31, .97), rgba(5, 9, 18, .98));
}
.cities-page::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(87, 224, 255, .75), rgba(255, 207, 111, .38), transparent);
  pointer-events: none;
}
.cities-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.cities-head__title {
  min-width: 0;
}
.cities-head__kicker {
  display: block;
  margin-bottom: 4px;
  color: rgba(148, 220, 255, .88);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cities-head h1 {
  margin: 0;
  color: #f3f8ff;
  font-size: 36px;
  line-height: 1;
}
.cities-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.cities-status__item {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(90, 199, 255, .28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 31, 52, .72), rgba(7, 15, 30, .78));
  box-shadow: inset 0 0 16px rgba(57, 208, 255, .06);
}
.cities-status__item span {
  display: block;
  margin-bottom: 3px;
  color: rgba(174, 201, 224, .86);
  font-size: 12px;
  line-height: 1.2;
}
.cities-status__item b {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #f3f8ff;
  font-size: 16px;
  line-height: 1.15;
}
.cities-status__item small {
  padding: 2px 6px;
  border: 1px solid rgba(255, 211, 101, .48);
  border-radius: 999px;
  color: #ffe5a6;
  font-size: 10px;
  line-height: 1;
}
.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}
.city-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: stretch;
  gap: 10px;
  min-height: 172px;
  overflow: hidden;
  padding: 14px;
  border-radius: 8px;
  border-color: rgba(78, 196, 255, .32);
  background:
    linear-gradient(90deg, rgba(5, 11, 22, .28), rgba(5, 11, 22, .9) 72%),
    radial-gradient(78% 88% at 96% 80%, rgba(58, 186, 255, .2), transparent 60%),
    linear-gradient(145deg, rgba(11, 20, 37, .96), rgba(4, 9, 18, .98));
  box-shadow: 0 13px 26px rgba(0,0,0,.36), inset 0 0 22px rgba(57,208,255,.07);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}
.city-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 46%);
  pointer-events: none;
}
.city-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 224, 255, .58);
  box-shadow: 0 16px 30px rgba(0,0,0,.42), inset 0 0 26px rgba(57,208,255,.1), 0 0 22px rgba(57,208,255,.12);
}
.city-card__main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.city-card__topline {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.city-card__topline h3 {
  margin: 0;
  color: #f2f7ff;
  font-size: 22px;
  line-height: 1.1;
}
.city-card__badge {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(112, 222, 255, .42);
  border-radius: 999px;
  background: rgba(8, 24, 42, .72);
  color: #dff7ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 0 12px rgba(57, 208, 255, .15);
}
.city-card__badge--route {
  border-color: rgba(255, 213, 117, .42);
  color: #ffedc4;
}
.city-card__badge--locked {
  border-color: rgba(156, 174, 191, .34);
  color: rgba(209, 221, 232, .82);
}
.city-card__desc {
  margin: 0;
  max-width: 25ch;
  color: rgba(196, 215, 236, .9);
  font-size: 15px;
  line-height: 1.32;
}
.city-card form {
  margin: 0;
}
.city-card .btn {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
}
.city-card .btn:disabled {
  opacity: .62;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 0 0 10px rgba(255,255,255,.06);
}
.city-card__art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  margin: -5px -5px -8px 0;
  padding: 8px 0 4px;
  background:
    radial-gradient(72% 42% at 50% 84%, rgba(88, 213, 255, .32), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
}
.city-card__art img {
  display: block;
  width: min(120px, 100%);
  max-height: 104px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)) drop-shadow(0 0 13px rgba(74,194,255,.2));
  opacity: .96;
}
.city-card__timer {
  position: absolute;
  top: 6px;
  right: 2px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(116,225,255,.55);
  border-radius: 999px;
  background: rgba(7,24,44,.92);
  color: #dff6ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 0 14px rgba(57,208,255,.3);
}
.city-card--current {
  border-color: rgba(255, 212, 104, .56);
  background:
    radial-gradient(62% 70% at 92% 80%, rgba(255, 196, 78, .18), transparent 64%),
    radial-gradient(74% 78% at 0% 0%, rgba(83, 199, 255, .16), transparent 60%),
    linear-gradient(145deg, rgba(16, 24, 38, .96), rgba(6, 12, 22, .98));
}
.city-card--traveling {
  border-color: rgba(96, 230, 255, .68);
  box-shadow: 0 15px 32px rgba(0,0,0,.42), inset 0 0 28px rgba(57,208,255,.14), 0 0 30px rgba(57,208,255,.18);
}
.city-card--locked {
  filter: saturate(.72);
}
.city-card--locked .city-card__art img {
  opacity: .62;
}
@media (max-width: 1020px) {
  .cities-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
@media (max-width: 640px) {
  .cities-page {
    padding: 12px;
  }
  .cities-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .cities-head h1 {
    font-size: 30px;
  }
  .cities-status,
  .cities-grid {
    grid-template-columns: 1fr;
  }
  .city-card {
    grid-template-columns: minmax(0, 1fr) 96px;
    min-height: 158px;
    padding: 12px;
  }
  .city-card__topline h3 {
    font-size: 20px;
  }
  .city-card__desc {
    font-size: 14px;
  }
  .city-card__art img {
    width: 104px;
    max-height: 90px;
  }
}

.cities-grid {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 500px;
  padding: 18px;
  border: 1px solid rgba(85, 193, 255, .24);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 12, 18, .08), rgba(3, 12, 18, .22)),
    url("../img/uidetales/cities-map-bg-desktop.png") center center / cover no-repeat,
    linear-gradient(135deg, #132b18, #0d2117 56%, #07131a);
  box-shadow: inset 0 0 42px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255,255,255,.04);
}
.cities-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(55% 70% at 30% 18%, rgba(255,255,255,.08), transparent 62%),
    radial-gradient(72% 85% at 72% 32%, rgba(255,255,255,.055), transparent 66%);
  opacity: .55;
  pointer-events: none;
}
.cities-grid::after {
  content: "";
  display: none;
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 30px;
  z-index: 0;
  height: 74px;
  background:
    linear-gradient(180deg, rgba(238, 236, 218, .78), rgba(228, 231, 210, .54) 23%, rgba(21, 122, 135, .42) 24%, rgba(15, 120, 142, .7) 100%);
  transform: rotate(-1.5deg);
  box-shadow: 0 -6px 18px rgba(245, 241, 214, .16);
  pointer-events: none;
}
.cities-map-detail {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.cities-map-detail--peak-a,
.cities-map-detail--peak-b {
  width: 180px;
  height: 112px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(130deg, rgba(244, 247, 232, .9) 0 20%, rgba(122, 153, 132, .42) 21% 44%, rgba(20, 49, 31, .18) 45% 100%);
  opacity: .42;
  filter: blur(.2px);
}
.cities-map-detail--peak-a {
  left: 24%;
  top: -10px;
}
.cities-map-detail--peak-b {
  right: 5%;
  top: -2px;
  width: 210px;
  height: 130px;
}
.cities-map-detail--road {
  display: none;
}
.cities-map-detail--road-a { left: 8%; top: 31%; }
.cities-map-detail--road-b { left: 32%; top: 24%; }
.cities-map-detail--road-c { left: 48%; top: 61%; }
.cities-map-detail--road-d { left: 78%; top: 53%; }
.cities-route {
  display: none;
  position: absolute;
  z-index: 1;
  height: 8px;
  border-radius: 999px;
  transform-origin: left center;
  background:
    linear-gradient(180deg, rgba(225, 236, 195, .68), rgba(68, 88, 60, .76) 48%, rgba(16, 22, 18, .86) 52%, rgba(144, 160, 110, .62));
  box-shadow: 0 1px 4px rgba(0,0,0,.55), 0 0 8px rgba(220, 235, 170, .12);
  opacity: .72;
  pointer-events: none;
}
.cities-route::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 2px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(235, 241, 205, .72) 0 12px, transparent 12px 24px);
  opacity: .42;
}
.cities-route--available {
  z-index: 2;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(255, 247, 166, .94), rgba(128, 190, 76, .88) 48%, rgba(35, 48, 24, .92) 52%, rgba(245, 229, 117, .84));
  box-shadow:
    0 1px 5px rgba(0,0,0,.6),
    0 0 10px rgba(255, 236, 105, .75),
    0 0 22px rgba(124, 255, 114, .42);
}
.cities-route--available::after {
  background: repeating-linear-gradient(90deg, rgba(255, 255, 225, .95) 0 12px, transparent 12px 24px);
  opacity: .72;
}
.cities-route--teismuciai-dripsiunai {
  display: block;
  left: 21%;
  top: 13%;
  width: 43%;
  transform: rotate(0deg);
}
.cities-route--teismuciai-geramiestis {
  display: block;
  left: 21%;
  top: 13%;
  width: 190px;
  transform: rotate(52deg);
}
.cities-route--teismuciai-bankunai { left: 18%; top: 20%; width: 500px; transform: rotate(34deg); }
.cities-route--geramiestis-bankunai {
  display: block;
  left: 34%;
  top: 40%;
  width: 250px;
  transform: rotate(10deg);
}
.cities-route--geramiestis-bankunai::before {
  content: none;
}
.cities-route--geramiestis-slovenai { left: 31%; top: 51%; width: 250px; transform: rotate(143deg); }
.cities-route--bankunai-dripsiunai {
  display: block;
  left: 60%;
  top: 41%;
  width: 165px;
  transform: rotate(-76deg);
}
.cities-route--bankunai-vamzdeliai { left: 58%; top: 55%; width: 260px; transform: rotate(-37deg); }
.cities-route--bankunai-dragmiestis {
  display: block;
  left: 59%;
  top: 42%;
  width: 286px;
  transform: rotate(31deg);
}
.cities-route--dragmiestis-slovenai {
  display: block;
  left: 15%;
  top: 70%;
  width: 690px;
  transform: rotate(-1deg);
}
.cities-route--dripsiunai-vamzdeliai {
  display: block;
  left: 62%;
  top: 15%;
  width: 270px;
  transform: rotate(19deg);
}
.cities-route--vamzdeliai-dragmiestis {
  display: block;
  left: 82%;
  top: 66%;
  width: 155px;
  transform: rotate(-73deg);
}
.cities-grid .city-card {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "art" "main";
  width: 170px;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.cities-grid .city-card::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 36px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  filter: blur(8px);
}
.cities-grid .city-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
  z-index: 8;
}
.cities-grid .city-card__art {
  grid-area: art;
  z-index: 1;
  width: 100%;
  height: 112px;
  margin: 0;
  padding: 0;
  align-items: flex-end;
  background: none;
}
.cities-grid .city-card__art img {
  width: 132px;
  max-height: 112px;
  filter:
    drop-shadow(0 2px 0 rgba(244, 232, 120, .65))
    drop-shadow(0 0 5px rgba(244, 232, 120, .42))
    drop-shadow(0 13px 14px rgba(0,0,0,.7));
}
.cities-grid .city-card__main {
  grid-area: main;
  z-index: 3;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0;
}
.cities-grid .city-card__topline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.cities-grid .city-card__name-form {
  margin: 0;
}
.cities-grid .city-card__name-button,
.cities-grid .city-card__name-link,
.cities-grid .city-card__name-label {
  appearance: none;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: -4px auto 0;
  padding: 6px 12px 7px;
  border: 1px solid rgba(113, 154, 216, .62);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(19, 42, 82, .98), rgba(9, 23, 50, .98));
  color: #e9f2ff;
  font-family: inherit;
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0,0,0,.75);
  box-shadow: 0 3px 0 rgba(0,0,0,.42), inset 0 0 10px rgba(89, 160, 255, .16);
}
.cities-grid .city-card__name-button,
.cities-grid .city-card__name-link {
  cursor: pointer;
}
.cities-grid .city-card__name-button:hover,
.cities-grid .city-card__name-link:hover,
.cities-grid .city-card:focus-within .city-card__name-button {
  border-color: rgba(139, 232, 255, .9);
  box-shadow: 0 3px 0 rgba(0,0,0,.42), inset 0 0 12px rgba(86, 215, 255, .28), 0 0 18px rgba(74, 218, 255, .25);
}
.cities-grid .city-card__badge {
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(6, 16, 31, .86);
}
.cities-grid .city-card__desc {
  display: none;
  width: 168px;
  max-width: calc(100vw - 56px);
  padding: 7px 9px;
  border: 1px solid rgba(78, 185, 255, .25);
  border-radius: 6px;
  background: rgba(4, 12, 24, .78);
  color: rgba(215, 230, 244, .92);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0,0,0,.28);
}
.cities-grid .city-card form,
.cities-grid .city-card > .city-card__main > .btn {
  display: none;
}
.cities-grid .city-card .city-card__name-form {
  display: block;
}
.cities-grid .city-card:hover > .city-card__main > .btn,
.cities-grid .city-card:focus-within > .city-card__main > .btn {
  display: block;
}
.cities-grid .city-card .btn {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 6px;
}
.city-card--teismuciai { left: 10%; top: 0%; }
.city-card--dripsiunai { left: 55%; top: 0%; }
.city-card--vamzdeliai { left: 78%; top: 22%; }
.city-card--geramiestis { left: 23%; top: 28%; }
.city-card--bankunai { left: 50%; top: 32%; }
.city-card--dragmiestis { left: 74%; top: 56%; }
.city-card--slovenai { left: 6%; top: 56%; }
.cities-grid .city-card--current .city-card__name-link,
.cities-grid .city-card--current .city-card__name-label {
  border-color: rgba(255, 226, 119, .9);
  box-shadow: 0 3px 0 rgba(0,0,0,.42), inset 0 0 12px rgba(255, 209, 83, .22), 0 0 18px rgba(255, 214, 95, .22);
}
.cities-grid .city-card--traveling .city-card__name-label {
  border-color: rgba(118, 235, 255, .9);
  box-shadow: 0 3px 0 rgba(0,0,0,.42), inset 0 0 12px rgba(86, 215, 255, .28), 0 0 22px rgba(74, 218, 255, .32);
}
.city-card--route-unavailable {
  opacity: .58;
}
.city-card--route-unavailable .city-card__art img {
  filter:
    grayscale(.35)
    drop-shadow(0 13px 14px rgba(0,0,0,.7));
}

@media (max-width: 760px) {
  .cities-grid {
    display: block;
    min-height: 640px;
    padding: 8px;
    background:
      linear-gradient(180deg, rgba(3, 12, 18, .08), rgba(3, 12, 18, .22)),
      url("../img/uidetales/cities-map-bg-mobile.png") center center / cover no-repeat,
      linear-gradient(135deg, #132b18, #0d2117 56%, #07131a);
  }
  .cities-grid::before {
    content: "";
    background:
      radial-gradient(70% 55% at 34% 20%, rgba(255,255,255,.07), transparent 62%),
      radial-gradient(88% 68% at 72% 35%, rgba(255,255,255,.045), transparent 68%);
  }
  .cities-grid::after {
    content: "";
    bottom: 18px;
    height: 60px;
  }
  .cities-map-detail {
    display: none;
  }
  .cities-route {
    display: none;
    height: 5px;
    opacity: .66;
  }
  .cities-grid .city-card {
    position: absolute;
    width: 118px;
    grid-template-columns: 1fr;
    grid-template-areas: "art" "main";
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .cities-grid .city-card__art {
    height: 70px;
  }
  .cities-grid .city-card__art img {
    width: 76px;
    max-height: 68px;
  }
  .cities-grid .city-card__main,
  .cities-grid .city-card__topline {
    align-items: center;
  }
  .cities-grid .city-card__name-button,
  .cities-grid .city-card__name-link,
  .cities-grid .city-card__name-label {
    margin: -3px auto 0;
    padding: 5px 8px 6px;
    font-size: 15px;
    max-width: 112px;
    overflow-wrap: anywhere;
  }
  .cities-grid .city-card__desc {
    display: none;
  }
  .cities-grid .city-card__badge {
    padding: 3px 6px;
    font-size: 10px;
  }
  .city-card--teismuciai { left: 28%; top: 0%; }
  .city-card--dripsiunai { left: 58%; top: 10%; }
  .city-card--vamzdeliai { left: 64%; top: 32%; }
  .city-card--geramiestis { left: 15%; top: 23%; }
  .city-card--bankunai { left: 42%; top: 36%; }
  .city-card--dragmiestis { left: 56%; top: 58%; }
  .city-card--slovenai { left: 8%; top: 59%; }
  .cities-route--teismuciai-dripsiunai { display: block; left: 41%; top: 8%; width: 145px; transform: rotate(31deg); }
  .cities-route--teismuciai-geramiestis { display: block; left: 41%; top: 8%; width: 164px; transform: rotate(112deg); }
  .cities-route--teismuciai-bankunai { left: 42%; top: 9%; width: 215px; transform: rotate(68deg); }
  .cities-route--geramiestis-bankunai { display: block; left: 29%; top: 33%; width: 144px; transform: rotate(33deg); }
  .cities-route--geramiestis-bankunai::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 0;
    width: 22px;
    height: 5px;
    border-radius: 999px;
    background: inherit;
    box-shadow: inherit;
  }
  .cities-route--geramiestis-slovenai { left: 29%; top: 34%; width: 165px; transform: rotate(104deg); }
  .cities-route--bankunai-dripsiunai { display: block; left: 51%; top: 48%; width: 202px; transform: rotate(-70deg); clip-path: inset(0 0 0 24px); }
  .cities-route--bankunai-vamzdeliai { left: 51%; top: 48%; width: 135px; transform: rotate(-28deg); }
  .cities-route--bankunai-dragmiestis { display: block; left: 57%; top: 44%; width: 150px; transform: rotate(70deg); }
  .cities-route--dragmiestis-slovenai { display: block; left: 18%; top: 67%; width: 55%; transform: rotate(-2deg); }
  .cities-route--dripsiunai-vamzdeliai { display: block; left: 71%; top: 19%; width: 142px; transform: rotate(78deg); }
  .cities-route--vamzdeliai-dragmiestis { display: block; left: 78%; top: 40%; width: 170px; transform: rotate(101deg); }
}
@media (max-width: 420px) {
  .cities-grid {
    min-height: 610px;
  }
  .cities-grid .city-card {
    width: 106px;
  }
  .cities-grid .city-card__art img {
    width: 68px;
  }
  .cities-grid .city-card__name-button,
  .cities-grid .city-card__name-link,
  .cities-grid .city-card__name-label {
    max-width: 104px;
    font-size: 14px;
  }
  .city-card--teismuciai { left: 27%; top: 0%; }
  .city-card--dripsiunai { left: 56%; top: 10%; }
  .city-card--vamzdeliai { left: 62%; top: 32%; }
  .city-card--geramiestis { left: 13%; top: 23%; }
  .city-card--bankunai { left: 40%; top: 36%; }
  .city-card--dragmiestis { left: 54%; top: 58%; }
  .city-card--slovenai { left: 6%; top: 59%; }
  .cities-route--teismuciai-dripsiunai { display: block; left: 40%; top: 8%; width: 136px; transform: rotate(31deg); }
  .cities-route--teismuciai-geramiestis { display: block; left: 40%; top: 8%; width: 154px; transform: rotate(112deg); }
  .cities-route--teismuciai-bankunai { left: 41%; top: 9%; width: 195px; }
  .cities-route--geramiestis-bankunai { display: block; left: 27%; top: 33%; width: 137px; transform: rotate(33deg); }
  .cities-route--geramiestis-bankunai::before {
    left: -16px;
    width: 20px;
  }
  .cities-route--geramiestis-slovenai { left: 27%; top: 34%; width: 158px; }
  .cities-route--bankunai-dripsiunai { display: block; left: 50%; top: 48%; width: 190px; transform: rotate(-70deg); clip-path: inset(0 0 0 22px); }
  .cities-route--bankunai-vamzdeliai { left: 50%; top: 48%; width: 126px; }
  .cities-route--bankunai-dragmiestis { display: block; left: 55%; top: 44%; width: 142px; transform: rotate(70deg); }
  .cities-route--dragmiestis-slovenai { display: block; left: 16%; top: 67%; width: 56%; transform: rotate(-2deg); }
  .cities-route--dripsiunai-vamzdeliai { display: block; left: 69%; top: 19%; width: 132px; transform: rotate(78deg); }
  .cities-route--vamzdeliai-dragmiestis { display: block; left: 76%; top: 40%; width: 162px; transform: rotate(101deg); }
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(57,208,255,.25);
  background: rgba(8,12,18,.7);
  box-shadow: inset 0 0 10px rgba(57,208,255,.1);
  cursor: pointer;
}
.icon-btn img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}
.icon-btn:hover {
  background: rgba(57,208,255,.12);
}
.icon-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-page {
  display: grid;
  gap: 12px;
}
.profile-alert {
  margin-top: 2px;
}
.profile-section {
  margin-top: 0;
}
.profile-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.profile-section__head h2 {
  margin: 0;
}
.profile-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(104, 216, 255, .36);
  background: linear-gradient(180deg, rgba(17, 32, 56, .72), rgba(9, 18, 34, .8));
  color: rgba(221, 239, 255, .95);
  font-size: 12px;
  letter-spacing: .01em;
}
.profile-pill b {
  color: #fff;
}
.profile-skills-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.profile-skill-card {
  display: grid;
  gap: 10px;
}
.profile-skill-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.profile-skill-card__top h3 {
  margin: 0;
  font-size: 21px;
}
.profile-skill-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(117, 223, 255, .48);
  background: rgba(13, 29, 52, .72);
  color: #ffffff;
  font-weight: 800;
  box-shadow: inset 0 0 10px rgba(80, 208, 255, .2);
}
.profile-skill-card__form {
  margin: 0;
}
.profile-skill-btn {
  width: 100%;
}
.profile-skill-empty {
  margin: 0;
}
.profile-reset-card {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-reset-card h3 {
  margin: 0 0 6px;
}
.profile-reset-card p {
  margin: 0;
  max-width: 620px;
}
.profile-club-card {
  display: grid;
  gap: 10px;
}
.profile-club-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-club-name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
}
.profile-club-name a {
  color: #ecf6ff;
  text-decoration: none;
}
.profile-club-name a:hover {
  text-decoration: underline;
}
.profile-club-cups {
  text-align: right;
}
.profile-club-cups > div:last-child {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}
.profile-club-logo-wrap {
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(17, 31, 54, .64), rgba(9, 16, 29, .8));
}
.profile-club-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}
.profile-club-desc {
  margin: 0;
  max-width: 860px;
}
.profile-stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.profile-stat-card {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 4px;
}
.profile-stat-value {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  line-height: 1;
  color: #f4fbff;
}
.profile-about-card p {
  margin: 0;
}
.profile-rival-hero {
  position: relative;
  overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s ease, opacity .35s ease, filter .35s ease;
  border: 1px solid rgba(118, 220, 255, .44);
  background:
    linear-gradient(160deg, rgba(12, 30, 54, .95), rgba(7, 18, 34, .98)),
    radial-gradient(100% 120% at 100% 0%, rgba(90, 210, 255, .18), transparent 62%);
  box-shadow: inset 0 0 20px rgba(56, 184, 255, .14), 0 12px 24px rgba(0, 0, 0, .28);
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}
.profile-rival-hero__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(191, 228, 249, .95);
}
.profile-rival-hero__top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.profile-rival-hero__identity h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1;
  color: #f2f9ff;
  text-shadow: 0 0 14px rgba(106, 224, 255, .2);
}
.profile-rival-hero__stats-identity h3 {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1;
  color: #f2f9ff;
  text-shadow: 0 0 14px rgba(106, 224, 255, .2);
}
.profile-rival-hero__level {
  margin-top: 4px;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(122, 228, 255, .52);
  background: rgba(8, 22, 40, .88);
  color: rgba(220, 244, 255, .95);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}
.profile-rival-hero__stats {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid rgba(122, 218, 255, .2);
  padding-top: 8px;
}
.profile-rival-hero__stats-identity {
  display: grid;
  align-content: center;
  gap: 4px;
}
.profile-rival-hero__stats > div {
  min-width: 0;
}
.profile-rival-hero__stats span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(167, 211, 236, .88);
}
.profile-rival-hero__stats b {
  display: block;
  margin-top: 2px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
  color: #f4fbff;
}
.profile-rival-hero--rep .profile-rival-hero__stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 0;
  padding-top: 0;
}
.profile-rival-hero--rep .profile-rival-hero__stats b {
  font-size: clamp(20px, 2.2vw, 28px);
}
.profile-rep-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 5px;
}
.profile-rep-vote-form {
  margin-top: 0;
}
.profile-rep-vote-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-rep-vote-row b {
  margin-top: 0 !important;
  flex: 0 0 auto;
}
.profile-rep-vote-btn {
  width: auto;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.profile-rep-vote-btn img {
  display: block;
  width: 140px;
  height: 34px;
  object-fit: fill;
}
.profile-rep-vote-btn--like:hover {
  filter: drop-shadow(0 0 10px rgba(95, 224, 255, .34));
}
.profile-rep-vote-btn--dislike:hover {
  filter: drop-shadow(0 0 10px rgba(255, 130, 152, .28));
}
.profile-car-showcase {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  text-align: center;
}
.profile-car-showcase--rival {
  position: relative;
  overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s ease, opacity .35s ease, filter .35s ease;
  grid-template-columns: minmax(260px, 1.3fr) minmax(230px, 1fr);
  align-items: center;
  gap: 14px;
  text-align: left;
  border: 1px solid rgba(116, 214, 255, .34);
  background:
    linear-gradient(150deg, rgba(7, 18, 34, .4), rgba(6, 14, 26, .55)),
    url("../img/fonai/profile.png") center/cover no-repeat;
}
.profile-car-showcase__img-wrap {
  border-radius: 14px;
  border: 1px solid rgba(116, 214, 255, .24);
  padding: 10px;
  background:
    radial-gradient(90% 70% at 50% 0, rgba(92, 194, 255, .18), transparent 70%),
    linear-gradient(180deg, rgba(10, 21, 39, .85), rgba(7, 14, 28, .92));
}
.profile-car-showcase__img-wrap--rival {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(8, 20, 36, .28), rgba(8, 20, 36, .46)),
    url("../img/fonai/profile.png") center/cover no-repeat;
  border-color: rgba(118, 214, 255, .2);
}
.profile-car-showcase__img {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 190px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .45));
}
.profile-car-showcase--rival .profile-car-showcase__img {
  transform: translateX(-48px) translateY(1px);
  object-position: center center;
}
.profile-car-showcase--rival .profile-car-showcase__img-wrap {
  display: grid;
  place-items: center;
}
.profile-car-showcase__name {
  font-size: 21px;
  font-weight: 700;
  color: #f3fbff;
}
.profile-car-showcase__info {
  display: grid;
  gap: 10px;
}
.profile-car-showcase__info-grid {
  display: grid;
  gap: 8px;
}
.profile-car-showcase__info-item {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(120, 219, 255, .24);
  background: linear-gradient(180deg, rgba(10, 22, 40, .5), rgba(7, 16, 31, .68));
}
.profile-car-showcase__info-item span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(180, 221, 246, .86);
}
.profile-car-showcase__info-item b {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  line-height: 1.08;
  color: #eff9ff;
}

@media (max-width: 720px) {
  .profile-reset-card {
    align-items: stretch;
  }
  .profile-reset-card .btn {
    width: 100%;
  }
  .profile-club-cups {
    text-align: left;
  }
  .profile-club-name {
    font-size: 20px;
  }
}

/* profile v2 - stronger visual identity */
.profile-section--skills {
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(90, 230, 255, .2), transparent 52%),
    radial-gradient(70% 80% at 100% 100%, rgba(54, 108, 255, .16), transparent 64%),
    linear-gradient(140deg, rgba(12, 22, 40, .96), rgba(7, 13, 24, .98));
}
.profile-section--skills::after {
  content: "";
  position: absolute;
  inset: -120% auto auto -20%;
  width: 80%;
  height: 220%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(106, 232, 255, 0), rgba(106, 232, 255, .12), rgba(106, 232, 255, 0));
  pointer-events: none;
}
.profile-section__head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .01em;
}
.profile-skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.8fr) minmax(290px, 1.2fr);
  gap: 12px;
  align-items: start;
}
.profile-skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.profile-skill-card {
  position: relative;
  border-color: rgba(116, 223, 255, .45);
  box-shadow: inset 0 0 22px rgba(59, 191, 255, .12), 0 12px 22px rgba(0, 0, 0, .3);
}
.profile-skill-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, #71f2ff, #2a86ff);
  box-shadow: 0 0 12px rgba(97, 230, 255, .6);
}
.profile-skill-card__top h3 {
  font-size: 17px;
  line-height: 1.05;
}
.profile-skill-value {
  min-width: 36px;
  height: 30px;
  font-size: 16px;
}
.profile-skill-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(8, 20, 38, .85);
  border: 1px solid rgba(108, 208, 255, .26);
  overflow: hidden;
}
.profile-skill-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #35deff, #33a7ff 55%, #5f72ff);
  box-shadow: 0 0 12px rgba(56, 202, 255, .5);
}
.profile-skill-btn {
  font-weight: 800;
  letter-spacing: .01em;
}
.profile-reset-card {
  margin-top: 0;
  min-height: 100%;
  align-content: space-between;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(130, 218, 255, .5);
  background:
    radial-gradient(100% 130% at 100% 0%, rgba(79, 196, 255, .28), transparent 62%),
    linear-gradient(165deg, rgba(17, 34, 58, .95), rgba(8, 18, 34, .98));
}
.profile-reset-card__kicker {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(118, 226, 255, .52);
  background: rgba(10, 24, 44, .8);
  color: rgba(217, 239, 255, .95);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-reset-card h3 {
  font-size: 20px;
}
.profile-control-block {
  display: grid;
  gap: 10px;
}
.profile-control-block--divider {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(130, 218, 255, .28);
}
.profile-reset-card--trigger {
  align-content: start;
}
.profile-control-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.profile-control-modal.is-open {
  display: block;
}
.profile-control-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 9, 18, .72);
  backdrop-filter: blur(2px);
}
.profile-control-modal__panel {
  position: relative;
  z-index: 1;
  max-width: 840px;
  max-height: calc(100vh - 60px);
  overflow: auto;
  margin: 30px auto;
  padding: 14px;
  border: 1px solid rgba(130, 218, 255, .5);
  background:
    radial-gradient(100% 130% at 100% 0%, rgba(79, 196, 255, .28), transparent 62%),
    linear-gradient(165deg, rgba(17, 34, 58, .95), rgba(8, 18, 34, .98));
}
.profile-control-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.profile-control-modal__title {
  margin: 4px 0 10px;
  font-size: 24px;
}
.profile-control-modal__x {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(118, 226, 255, .52);
  background: rgba(7, 22, 42, .82);
  color: rgba(232, 246, 255, .96);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.profile-control-modal__x:hover {
  border-color: rgba(132, 233, 255, .76);
  background: rgba(10, 31, 57, .92);
}
body.is-profile-control-open {
  overflow: hidden;
}
.profile-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.profile-control-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(120, 214, 255, .34);
  background: linear-gradient(180deg, rgba(14, 30, 52, .82), rgba(8, 18, 34, .88));
  display: grid;
  gap: 10px;
}
.profile-control-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.04;
}
.profile-control-card--full {
  grid-column: 1 / -1;
}
.profile-control-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-control-form-row input[type="text"],
.profile-control-form-row input[type="email"] {
  min-width: 220px;
  flex: 1 1 260px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(104, 208, 255, .5);
  background: linear-gradient(180deg, rgba(8, 20, 38, .95), rgba(7, 16, 31, .98));
  color: #e8f6ff;
  font-size: 18px;
  line-height: 1;
  box-shadow: inset 0 0 14px rgba(48, 172, 255, .12), 0 0 0 1px rgba(23, 106, 166, .15);
  outline: none;
}
.profile-control-form-row input[type="text"]::placeholder,
.profile-control-form-row input[type="email"]::placeholder {
  color: rgba(181, 210, 231, .75);
}
.profile-control-form-row input[type="text"]:focus,
.profile-control-form-row input[type="email"]:focus {
  border-color: rgba(128, 229, 255, .9);
  box-shadow: inset 0 0 14px rgba(48, 172, 255, .18), 0 0 0 2px rgba(76, 198, 255, .25);
}
.profile-club-card {
  background:
    radial-gradient(95% 130% at 0% 0%, rgba(66, 193, 255, .2), transparent 64%),
    linear-gradient(160deg, rgba(8, 18, 34, .96), rgba(5, 12, 22, .98));
}
.profile-club-hud {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-club-hud__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.profile-club-hud__identity {
  min-width: 0;
}
.profile-club-hud__badges {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}
.profile-club-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(120, 214, 255, .44);
  background: linear-gradient(180deg, rgba(16, 34, 58, .86), rgba(8, 19, 35, .9));
  color: rgba(221, 238, 252, .94);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.profile-club-badge--active {
  border-color: rgba(101, 238, 180, .52);
  background: linear-gradient(180deg, rgba(18, 64, 52, .88), rgba(10, 31, 28, .92));
  color: #d6ffe8;
}
.profile-club-hud__side {
  margin-left: auto;
  display: grid;
  gap: 8px;
  justify-items: end;
}
.profile-club-cups--hud {
  min-width: 130px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(119, 218, 255, .34);
  background: linear-gradient(180deg, rgba(17, 33, 55, .76), rgba(8, 16, 30, .84));
}
.profile-club-cups__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-club-cups__label img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 224, 118, .48));
}
.profile-club-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-club-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(116, 211, 255, .36);
  background: linear-gradient(180deg, rgba(14, 29, 50, .82), rgba(8, 16, 30, .9));
  color: rgba(217, 236, 250, .95);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.profile-club-meta-chip b {
  margin-left: 4px;
  color: #ffffff;
}
.profile-club-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  margin-left: 0;
  border-radius: 10px;
  border: 1px solid rgba(133, 227, 255, .62);
  background:
    linear-gradient(120deg, rgba(44, 166, 255, .26), rgba(45, 89, 255, .24)),
    linear-gradient(180deg, rgba(19, 40, 67, .92), rgba(10, 21, 38, .95));
  color: #ecf8ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 12px rgba(128, 224, 255, .16), 0 0 14px rgba(57, 208, 255, .18);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.profile-club-open:hover {
  border-color: rgba(162, 236, 255, .94);
  box-shadow: inset 0 0 14px rgba(139, 228, 255, .22), 0 0 18px rgba(57, 208, 255, .28);
  transform: translateY(-1px);
}
.profile-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.profile-stat-card {
  position: relative;
  min-height: 96px;
  border-color: rgba(118, 219, 255, .5);
}
.profile-stat-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(116, 228, 255, .95), rgba(0,0,0,0));
}
.profile-stat-value {
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: .01em;
}

@media (max-width: 980px) {
  .profile-skills-layout {
    grid-template-columns: 1fr;
  }
  .profile-skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-control-modal__panel {
    margin: 14px;
    max-width: none;
    max-height: calc(100vh - 28px);
  }
  .profile-control-grid {
    grid-template-columns: 1fr;
  }
  .profile-control-card--full {
    grid-column: auto;
  }
}
@media (max-width: 620px) {
  .profile-stat-value {
    font-size: clamp(20px, 2vw, 30px);
  }
  .profile-section__head h2 {
    font-size: 28px;
  }
  .profile-club-hud {
    align-items: flex-start;
  }
  .profile-club-cups--hud {
    width: 100%;
  }
  .profile-club-hud__side {
    width: 100%;
    justify-items: stretch;
  }
  .profile-club-open {
    width: 100%;
    margin-left: 0;
  }
  .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.club-create-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}
.club-create-card__shell {
  position: relative;
  padding: 16px 18px 18px;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(99, 222, 255, .18), transparent 48%),
    radial-gradient(90% 100% at 0% 100%, rgba(46, 121, 255, .16), transparent 52%),
    linear-gradient(145deg, rgba(9, 21, 39, .98), rgba(6, 14, 28, .98));
}
.club-create-card__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(131, 232, 255, .12), transparent 32%),
    repeating-linear-gradient(90deg, rgba(132, 225, 255, .05) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.club-create-card__shell > * {
  position: relative;
  z-index: 1;
}
.club-create-card__header {
  text-align: center;
  margin-bottom: 12px;
}
.club-create-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(113, 213, 255, .36);
  border-radius: 999px;
  background: rgba(11, 29, 52, .72);
  color: #86daff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.club-create-card__header h2 {
  margin: 0;
  color: #f5fbff;
  font-size: clamp(18px, 2.8vw, 24px);
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(88, 204, 255, .16);
}
.club-create-card__header p {
  max-width: 560px;
  margin: 6px auto 0;
  color: rgba(220, 242, 255, .78);
  font-size: 13px;
  line-height: 1.45;
}
.club-create-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.club-create-card__fact {
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid rgba(118, 213, 255, .22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 34, 58, .94), rgba(9, 20, 37, .96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 16px 30px rgba(1, 7, 18, .22);
}
.club-create-card__label {
  display: block;
  margin-bottom: 6px;
  color: #86daff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.club-create-card__fact strong,
.club-create-card__fact span:last-child {
  display: block;
  color: #f5fbff;
  font-size: 14px;
  line-height: 1.35;
}
.club-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(121, 218, 255, .24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 18, 33, .9), rgba(9, 22, 41, .92));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 18px 30px rgba(2, 6, 16, .24);
}
.club-create-form__field {
  display: block;
}
.club-create-form__field > span {
  display: block;
  margin-bottom: 6px;
  color: rgba(214, 238, 252, .88);
  font-size: 12px;
  font-weight: 700;
}
.club-create-form__field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(112, 203, 255, .34);
  border-radius: 12px;
  background: rgba(242, 248, 252, .98);
  color: #102134;
  font-size: 14px;
  box-shadow: inset 0 2px 10px rgba(8, 24, 40, .08), 0 0 0 3px rgba(79, 197, 255, 0);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.club-create-form__field input:focus {
  outline: none;
  border-color: rgba(89, 203, 255, .78);
  box-shadow: inset 0 2px 10px rgba(8, 24, 40, .08), 0 0 0 4px rgba(68, 191, 255, .18);
  transform: translateY(-1px);
}
.club-create-form__field input::placeholder {
  color: #607489;
}
.club-create-form__submit {
  min-width: 150px;
  min-height: 42px;
  padding-inline: 16px;
}
.club-create-card .table-wrap {
  max-width: 620px !important;
  margin: 0 auto;
}
.club-create-card .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(112, 208, 255, .18);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(97, 223, 255, .08), transparent 50%),
    linear-gradient(180deg, rgba(9, 20, 36, .94), rgba(7, 16, 30, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 34px rgba(2, 6, 16, .22);
}
.club-create-card .table thead th {
  padding: 14px 14px 8px;
  border: 0;
  background: transparent;
  color: #f5fbff;
  font-size: clamp(18px, 2.8vw, 24px);
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 0 12px rgba(88, 204, 255, .16);
}
.club-create-card .table tbody tr {
  background: transparent;
}
.club-create-card .table tbody td {
  padding: 10px 14px;
  border-top: 1px solid rgba(109, 204, 255, .12);
  background: transparent;
  color: #f4fbff;
  font-size: 14px;
  vertical-align: middle;
}
.club-create-card .table tbody td:first-child {
  width: 150px;
  color: #86daff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.club-create-card .table form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.club-create-card .table input[type="text"] {
  width: 100%;
  min-width: 0 !important;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(112, 203, 255, .34);
  border-radius: 12px;
  background: rgba(242, 248, 252, .98);
  color: #102134;
  font-size: 14px;
  box-shadow: inset 0 2px 10px rgba(8, 24, 40, .08), 0 0 0 3px rgba(79, 197, 255, 0);
}
.club-create-card .table input[type="text"]:focus {
  outline: none;
  border-color: rgba(89, 203, 255, .78);
  box-shadow: inset 0 2px 10px rgba(8, 24, 40, .08), 0 0 0 4px rgba(68, 191, 255, .18);
}
.club-create-card .table .btn {
  min-width: 138px;
  min-height: 42px;
}
@media (max-width: 720px) {
  .club-create-card__shell {
    padding: 18px;
  }
  .club-create-card__facts {
    grid-template-columns: 1fr;
  }
  .club-create-form {
    grid-template-columns: 1fr;
  }
  .club-create-form__submit {
    width: 100%;
    min-width: 0;
  }
  .club-create-card .table tbody td:first-child {
    width: 120px;
  }
  .club-create-card .table form {
    grid-template-columns: 1fr;
  }
  .club-create-card .table .btn {
    width: 100%;
    min-width: 0;
  }
}

/* profile v3 - game cockpit */
.profile-cockpit {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 12px;
  background:
    linear-gradient(120deg, rgba(18, 44, 74, .96), rgba(6, 16, 30, .98)),
    radial-gradient(100% 130% at 100% 0%, rgba(94, 213, 255, .2), transparent 60%);
}
.profile-cockpit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(130, 235, 255, .1) 0%, rgba(130, 235, 255, 0) 32%),
    repeating-linear-gradient(90deg, rgba(130, 220, 255, .06) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.profile-cockpit::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 80%;
  height: 220%;
  transform: rotate(24deg);
  background: linear-gradient(180deg, rgba(116, 233, 255, 0), rgba(116, 233, 255, .2), rgba(116, 233, 255, 0));
  animation: profileScan 9s linear infinite;
  pointer-events: none;
  opacity: .45;
}
@keyframes profileScan {
  0% { transform: translateX(0) rotate(24deg); }
  100% { transform: translateX(220%) rotate(24deg); }
}
.profile-cockpit__identity {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-cockpit__emblem {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(128, 223, 255, .5);
  background: linear-gradient(180deg, rgba(16, 33, 56, .88), rgba(8, 18, 36, .9));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 14px rgba(88, 203, 255, .18), 0 0 18px rgba(60, 188, 255, .24);
}
.profile-cockpit__emblem img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.profile-cockpit__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(176, 223, 247, .88);
}
.profile-cockpit__name {
  margin: 2px 0 0;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.02;
  color: #f4fbff;
  text-shadow: 0 0 18px rgba(115, 226, 255, .2);
}
.profile-cockpit__stats {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.profile-cockpit-stat {
  min-height: 74px;
  border: 1px solid rgba(113, 213, 255, .46);
  border-radius: 12px;
  padding: 8px 10px 9px;
  background: linear-gradient(180deg, rgba(12, 28, 49, .88), rgba(8, 16, 30, .94));
  box-shadow: inset 0 0 14px rgba(80, 195, 255, .14);
}
.profile-cockpit-stat span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(170, 219, 245, .86);
}
.profile-cockpit-stat strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  color: #f7fdff;
}
.profile-cockpit-stat--xp small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(176, 221, 246, .9);
}
.profile-cockpit-progress {
  margin-top: 6px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(112, 209, 255, .28);
  background: rgba(8, 17, 33, .9);
  overflow: hidden;
}
.profile-cockpit-progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4cf0ff, #2ea0ff);
}
.profile-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  line-height: 1;
}
.profile-title img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(93, 214, 255, .48));
}
.profile-title span {
  display: inline-block;
}

/* stronger shape language for profile cards */
.profile-section .card {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.profile-skill-card {
  padding-left: 14px;
}
.profile-skill-card__top h3 {
  text-transform: uppercase;
  letter-spacing: .02em;
}
.profile-skill-btn {
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
}
.profile-club-card,
.profile-stat-card {
  border-color: rgba(124, 219, 255, .56);
}
.profile-stat-card {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(96, 217, 255, .16), transparent 62%),
    linear-gradient(160deg, rgba(8, 19, 34, .96), rgba(5, 11, 21, .98));
}

@media (max-width: 980px) {
  .profile-skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-club-hud__badges {
    flex-wrap: wrap;
  }
  .profile-cockpit__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .profile-rival-hero__identity h3 {
    font-size: 40px;
  }
  .profile-rival-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .profile-rival-hero--rep .profile-rival-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-rival-hero__stats-identity {
    grid-column: 1 / -1;
  }
  .profile-rival-hero__stats-identity h3 {
    font-size: 34px;
  }
  .profile-rival-hero__stats b {
    font-size: 28px;
  }
  .profile-car-showcase--rival {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .profile-car-showcase--rival .profile-car-showcase__img {
    transform: translateX(0) translateY(1px);
  }
  .profile-car-showcase__info-item b {
    font-size: 22px;
  }
  .profile-cockpit {
    padding: 12px;
  }
  .profile-cockpit__emblem {
    width: 54px;
    height: 54px;
  }
  .profile-cockpit__name {
    font-size: 29px;
  }
  .profile-cockpit__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-skills-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .profile-skills-grid {
    display: contents;
  }
  .profile-reset-card--trigger {
    min-height: 74px;
    padding: 8px 10px 9px;
    gap: 8px;
  }
  .profile-reset-card--trigger h3,
  .profile-reset-card--trigger p {
    display: none;
  }
  .profile-reset-card--trigger .btn {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
  }
  .profile-control-grid {
    grid-template-columns: 1fr;
  }
  .profile-control-card--full {
    grid-column: auto;
  }
  .profile-control-card h4 {
    font-size: 16px;
    line-height: 1.12;
  }
  .profile-control-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .profile-control-form-row input[type="text"],
  .profile-control-form-row input[type="email"] {
    min-width: 0;
    width: 100%;
    height: 40px;
    font-size: 14px;
  }
  .profile-control-form-row .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-rival-hero,
  .profile-car-showcase--rival {
    transition: none;
  }
}
.pm-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-msg {
  max-width: 72%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(8,12,18,.85);
  border: 1px solid rgba(57,208,255,.12);
}
.pm-msg--me {
  align-self: flex-end;
  background: rgba(10,20,26,.9);
  border-color: rgba(57,208,255,.3);
  box-shadow: 0 0 10px rgba(57,208,255,.08);
}
.pm-msg--them {
  align-self: flex-start;
}
.pm-msg__meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.pm-msg__body {
  white-space: pre-wrap;
}

/* Skelbimu lenta */
.slots-shell {
  position: relative;
  width: min(980px, 100%);
  aspect-ratio: 1437 / 220;
  margin: -10px auto 8px;
  background: url('../img/uidetales/slotai.png') center / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.42)) drop-shadow(0 0 18px rgba(50,170,255,.12));
}
.slots-shell__row {
  position: absolute;
  left: 5.8%;
  right: 5.8%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slots-shell__row--menu {
  top: 6.5%;
  height: 32%;
}
.slots-shell__row--ticker {
  bottom: 9%;
  height: 32%;
}
.board-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 20px;
  margin: 0;
  max-width: none;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.board-ticker__label {
  font-size: 13px;
  color: rgba(190,223,248,.72);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  white-space: nowrap;
}
.board-ticker__line {
  position: relative;
  overflow: hidden;
  height: 18px;
  flex: 1;
}
.board-ticker__item {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.board-ticker__item--gold {
  color: #f6d05f;
  text-shadow: 0 0 10px rgba(246,208,95,.35);
}
.board-ticker__item.is-out {
  transform: translateY(-6px);
  opacity: 0;
}
.board-ticker.is-empty .board-ticker__label {
  opacity: 0.65;
}

@keyframes friendsTickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.board {
  display: grid;
  gap: 8px;
}
.board-line {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(8,12,18,.75);
  border: 1px solid rgba(57,208,255,.12);
}
.board-line--gold {
  color: #f6d05f;
  border-color: rgba(246,208,95,.45);
  box-shadow: 0 0 10px rgba(246,208,95,.12);
}
.board-line--gold .board-name,
.board-line--gold .board-text,
.board-line--gold .board-time {
  color: #f6d05f;
}
.board-name {
  font-weight: 700;
  color: #e7f4ff;
}
.board-text {
  color: var(--text);
}
.board-time {
  color: var(--muted);
  font-size: 12px;
  margin-left: 6px;
}

/* Race track thumbnails */
#trackModal img {
  object-fit: contain !important;
  object-position: center;
  background: radial-gradient(120% 100% at 50% 100%, rgba(57,208,255,.08), rgba(7,13,23,.92));
  padding: 8px;
}

/* Race page visual polish without PHP markup changes */
body .panel > div[style*="grid-template-columns:1.2fr 0.8fr"] {
  gap: 14px !important;
}

.race-parts-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.race-parts-col {
  border: 1px solid rgba(73,190,255,.28);
  border-radius: 12px;
  padding: 10px;
  background:
    radial-gradient(130% 80% at 50% 0, rgba(75,186,255,.12), transparent 58%),
    linear-gradient(170deg, rgba(8,16,31,.9), rgba(5,11,22,.96));
  box-shadow: inset 0 0 16px rgba(57,208,255,.08), 0 8px 18px rgba(0,0,0,.32);
}
.race-parts-col__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #e8f6ff;
  text-shadow: 0 0 12px rgba(105,220,255,.24);
}
.race-parts-col__line {
  height: 2px;
  margin: 7px 0 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(105,220,255,.92), rgba(55,150,255,.32), rgba(105,220,255,0));
}
.race-parts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.race-part-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(57,208,255,.08), rgba(7,13,23,.88)),
    linear-gradient(180deg, rgba(8,16,30,.68), rgba(6,11,21,.84));
  box-shadow: inset 0 0 16px rgba(57,208,255,.08), 0 6px 10px rgba(0,0,0,.28);
}
.race-part-tile__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% 0, rgba(134,225,255,.16), rgba(0,0,0,0));
}
.race-part-tile__img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 100% at 50% 100%, rgba(57,208,255,.08), rgba(7,13,23,.92));
  padding: 8px;
}
.race-part-tile__meta {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  display: grid;
  gap: 2px;
}
.race-part-tile__slot {
  display: inline-flex;
  align-items: center;
  max-width: max-content;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(90,204,255,.48);
  background: rgba(7,23,44,.62);
  color: #cbecff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.race-part-tile__name {
  color: #e7f5ff;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.race-part-tile--empty .race-part-tile__name {
  color: rgba(184,215,237,.72);
}
.race-part-tile__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  background:
    radial-gradient(120% 100% at 50% 100%, rgba(57,208,255,.04), rgba(7,13,23,.92));
}
.race-result-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 6px;
  max-width: 100%;
  white-space: nowrap;
}

body .panel img[alt="Varzovo auto"],
body .panel [id="tournamentTimer"] {
  color: #dff0ff;
  text-shadow: 0 0 12px rgba(112,220,255,.55);
}

body .panel form button.btn.btn--ghost[style*="text-align:left"] {
  border-radius: 12px !important;
  border-color: rgba(90,204,255,.5) !important;
  background: linear-gradient(120deg, rgba(20,36,58,.9), rgba(8,18,35,.95)) !important;
  box-shadow: inset 0 0 16px rgba(80,190,255,.14), 0 0 12px rgba(57,208,255,.16);
}

body .panel form button.btn.btn--ghost[style*="text-align:left"]:hover {
  border-color: rgba(136,232,255,.9) !important;
  box-shadow: inset 0 0 18px rgba(120,228,255,.22), 0 0 22px rgba(57,208,255,.32);
}

body .panel form button.tournament-btn {
  position: relative;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left !important;
  gap: 4px;
  min-height: 74px;
  padding: 12px 14px 11px !important;
  border-radius: 14px !important;
  border-width: 1px !important;
}

body .panel form button.tournament-btn::after {
  content: "";
  position: absolute;
  top: -35%;
  left: 58%;
  width: 2px;
  height: 170%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.6), transparent);
  transform: rotate(20deg);
  opacity: .45;
  pointer-events: none;
}

body .panel form button.tournament-btn > div:first-child {
  font-size: 24px;
  line-height: 1.05;
  margin-bottom: 0;
  letter-spacing: .01em;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255,255,255,.14);
}

body .panel form button.tournament-btn > div:last-child {
  color: rgba(235,245,255,.86) !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.2;
}

body .panel form button.tournament-btn.tournament-btn--bronze,
body .panel form button.tournament-btn.tournament-btn--bronzinis {
  border-color: rgba(255,176,102,.72) !important;
  background:
    radial-gradient(130% 95% at 10% 0, rgba(255,146,66,.18), transparent 60%),
    linear-gradient(120deg, rgba(66,28,18,.9), rgba(24,12,10,.92)) !important;
  box-shadow: inset 0 0 16px rgba(255,146,66,.12), 0 0 14px rgba(255,140,70,.14) !important;
}

body .panel form button.tournament-btn.tournament-btn--silver,
body .panel form button.tournament-btn.tournament-btn--sidabrinis {
  border-color: rgba(118,227,255,.78) !important;
  background:
    radial-gradient(130% 95% at 10% 0, rgba(110,211,255,.2), transparent 60%),
    linear-gradient(120deg, rgba(16,50,84,.9), rgba(8,22,44,.92)) !important;
  box-shadow: inset 0 0 16px rgba(100,214,255,.14), 0 0 14px rgba(64,188,255,.16) !important;
}

body .panel form button.tournament-btn.tournament-btn--gold,
body .panel form button.tournament-btn.tournament-btn--auksinis {
  border-color: rgba(255,214,96,.86) !important;
  background:
    radial-gradient(130% 95% at 10% 0, rgba(255,205,82,.22), transparent 60%),
    linear-gradient(120deg, rgba(86,58,10,.9), rgba(36,24,8,.92)) !important;
  box-shadow: inset 0 0 16px rgba(255,208,86,.14), 0 0 14px rgba(255,186,53,.18) !important;
}

/* Club view */
.club-view {
  display: grid;
  gap: 12px;
}
.club-frame {
  border: 1px solid rgba(84, 186, 255, .34);
  border-radius: 14px;
  background:
    radial-gradient(120% 85% at 50% -12%, rgba(83, 178, 255, .14), transparent 58%),
    linear-gradient(160deg, rgba(11,18,31,.94), rgba(7,12,24,.96));
  overflow: hidden;
  box-shadow:
    0 10px 22px rgba(0,0,0,.34),
    inset 0 0 16px rgba(57,208,255,.08),
    0 0 18px rgba(57,208,255,.12);
}
.club-header {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 160px) minmax(140px, 180px);
  border-bottom: 1px solid rgba(110, 198, 255, .32);
}
.club-header__cell {
  padding: 10px 12px;
  border-right: 1px solid rgba(110, 198, 255, .24);
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(64, 142, 214, .14), rgba(255,255,255,.03));
  font-weight: 700;
}
.club-topwin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 140, .45);
  background: linear-gradient(180deg, rgba(56, 40, 16, .75), rgba(24, 16, 6, .8));
  color: #ffe7b1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: inset 0 0 8px rgba(255, 210, 120, .12), 0 4px 10px rgba(0,0,0,.2);
}
.club-topwin__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255, 215, 120, .4));
}
.club-topwin__count {
  line-height: 1;
}
.club-header__cell--title {
  text-transform: uppercase;
  letter-spacing: 0.4px;
  justify-content: space-between;
}
.club-header__cell--title a,
.club-header__cell--title a:visited {
  color: #eef8ff;
  text-decoration: none;
}
.club-header__cell--title a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(126, 218, 255, .35);
}
.club-title-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.club-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.club-cp-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(118, 214, 255, .45);
  background: linear-gradient(180deg, rgba(22, 54, 90, .86), rgba(10, 24, 44, .9));
  color: #dff4ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: inset 0 0 12px rgba(107, 214, 255, .16), 0 0 10px rgba(57,208,255,.14);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.club-cp-mini:hover {
  border-color: rgba(150, 232, 255, .8);
  box-shadow: inset 0 0 14px rgba(122, 224, 255, .2), 0 0 14px rgba(57,208,255,.26);
  transform: translateY(-1px);
}
.club-leave-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 132, 132, .4);
  background: linear-gradient(180deg, rgba(60, 20, 26, .84), rgba(32, 10, 16, .9));
  color: #ffd6d6;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 10px rgba(255, 120, 120, .1);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.club-leave-mini:hover {
  border-color: rgba(255, 166, 166, .75);
  box-shadow: inset 0 0 12px rgba(255, 145, 145, .15), 0 0 10px rgba(255, 95, 95, .2);
  transform: translateY(-1px);
}
.club-confirm {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
}
.club-confirm[hidden] {
  display: none !important;
}
.club-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, .6);
  backdrop-filter: blur(3px);
}
.club-confirm__card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 28px));
  border-radius: 14px;
  border: 1px solid rgba(98, 204, 255, .3);
  background: linear-gradient(160deg, rgba(11, 19, 33, .96), rgba(7, 13, 24, .98));
  box-shadow: 0 14px 28px rgba(0,0,0,.42), inset 0 0 16px rgba(57,208,255,.08);
  padding: 14px;
}
.club-confirm__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.club-header__cell:last-child { border-right: 0; }
.club-banner {
  min-height: 56px;
  border-bottom: 1px solid rgba(110, 198, 255, .3);
  background: linear-gradient(180deg, rgba(69, 162, 245, .06), rgba(5, 11, 22, .14));
}
.club-notice {
  padding: 10px 12px;
  line-height: 1.4;
  color: var(--text);
  white-space: pre-wrap;
}
.club-logo-inline {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.2);
}
.club-level-inline {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 10px;
  border: 1px solid rgba(116, 212, 255, .34);
  background: linear-gradient(180deg, rgba(41, 93, 150, .26), rgba(10, 24, 44, .36));
  color: var(--text);
}
.club-zone__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
}
.club-zone__sidebar {
  background: rgba(6,10,14,.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 280px;
}
.club-zone__main {
  display: grid;
  gap: 10px;
}
.club-zone__hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.club-zone__hero img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: radial-gradient(120% 100% at 50% 100%, rgba(57,208,255,.08), rgba(7,13,23,.92));
  padding: 8px;
}
.club-zone__hero-title {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
@media (max-width: 820px) {
  .club-zone__layout {
    grid-template-columns: 1fr;
  }
  .club-zone__hero img {
    height: 180px;
  }
}
.club-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid rgba(110, 198, 255, .3);
  background: linear-gradient(180deg, rgba(58, 146, 224, .06), rgba(9, 17, 31, .08));
}
.club-tab {
  background: linear-gradient(180deg, rgba(17, 34, 58, .82), rgba(10, 21, 38, .9));
  border: 1px solid rgba(112, 202, 255, .26);
  border-right: 1px solid rgba(112, 202, 255, .26);
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.club-tab:last-child { border-right: 0; }
.club-tab.is-active {
  background:
    linear-gradient(120deg, rgba(55,176,255,.3), rgba(32,104,182,.28)),
    linear-gradient(180deg, rgba(19, 40, 66, .9), rgba(10, 20, 37, .94));
  border-color: rgba(138, 229, 255, .6);
  box-shadow: inset 0 0 16px rgba(126, 218, 255, .18), 0 0 14px rgba(57,208,255,.18);
}
.club-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}
.club-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.9fr) minmax(150px, 1.1fr) minmax(130px, .9fr) minmax(130px, .9fr) minmax(170px, 1fr);
  border: 1px solid rgba(96, 184, 255, .22);
  border-radius: 12px;
  min-width: 760px;
  background: linear-gradient(180deg, rgba(10, 21, 40, .82), rgba(7, 16, 30, .9));
  box-shadow: inset 0 0 12px rgba(115, 212, 255, .06), 0 4px 12px rgba(0,0,0,.18);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.club-row--head {
  background: linear-gradient(180deg, rgba(84, 178, 255, .16), rgba(255,255,255,.06));
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
}
.club-row--empty {
  text-align: center;
}
.club-row:not(.club-row--head):not(.club-row--donate):not(.club-row--empty):nth-child(odd) {
  background: linear-gradient(180deg, rgba(11, 24, 45, .84), rgba(8, 17, 31, .92));
}
.club-row:not(.club-row--head):not(.club-row--donate):not(.club-row--empty):hover {
  border-color: rgba(126, 220, 255, .45);
  box-shadow: inset 0 0 14px rgba(118, 218, 255, .1), 0 6px 16px rgba(0,0,0,.26), 0 0 14px rgba(57,208,255,.14);
  transform: translateY(-1px);
}
.club-row--donate {
  border: 1px solid rgba(95, 173, 240, .26);
  background: linear-gradient(180deg, rgba(69, 162, 245, .07), rgba(255,255,255,.03));
}
.club-cell {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid rgba(130, 198, 255, .2);
  min-height: 40px;
}
.club-cell:last-child { border-right: 0; }
.club-row > .club-cell:nth-child(3),
.club-row > .club-cell:nth-child(4) {
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}
.club-row--head > .club-cell:nth-child(3),
.club-row--head > .club-cell:nth-child(4),
.club-row--head > .club-cell:nth-child(5) {
  justify-content: center;
}
.club-row > .club-cell:nth-child(5) {
  justify-content: center;
}
.club-cell--full {
  grid-column: 1 / -1;
  justify-content: center;
  border-right: 0;
}
.club-member {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.club-member a {
  font-weight: 600;
  color: #d8ecff;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.club-member a:hover {
  color: #f3fbff;
  text-shadow: 0 0 8px rgba(133, 225, 255, .35);
}
.club-help-inline {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 170px;
  justify-content: flex-end;
}
.club-help-inline__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.club-help-inline__count {
  font-size: 11px;
  color: rgba(204, 230, 250, .86);
  min-width: 34px;
  text-align: right;
}
.club-help-inline__bar {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(118, 205, 255, .2);
  overflow: hidden;
}
.club-help-inline__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(72, 190, 255, .9), rgba(120, 232, 255, .95));
}
.club-help-inline__form {
  margin: 0;
  display: inline-flex;
}
.club-help-btn {
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(118, 214, 255, .4);
  background: linear-gradient(180deg, rgba(20, 50, 86, .86), rgba(10, 24, 44, .92));
  color: #e2f6ff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.club-help-btn:hover {
  border-color: rgba(148, 232, 255, .78);
}
.club-help-inline__done,
.club-help-inline__cooldown {
  font-size: 11px;
  color: rgba(170, 206, 232, .86);
  white-space: nowrap;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  box-shadow: inset 0 0 4px rgba(0,0,0,.6);
}
.status-dot--green { background: #35d07f; box-shadow: 0 0 6px rgba(53,208,127,.6); }
.status-dot--orange { background: #ffb347; box-shadow: 0 0 6px rgba(255,179,71,.5); }
.status-dot--red { background: #ff5c5c; box-shadow: 0 0 6px rgba(255,92,92,.5); }
.status-dot--unknown { background: rgba(255,255,255,.25); }
.club-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}
.club-donate-cell {
  justify-content: flex-start;
}
.club-donate-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 10px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
}
.club-donate-pill:hover { background: rgba(255,255,255,.14); }
.club-donate-input {
  width: 100%;
  min-width: 120px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: var(--text);
}
.club-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}
.club-role-badge--owner {
  background: rgba(255, 214, 102, .16);
  border-color: rgba(255, 214, 102, .4);
  color: #ffe39a;
}
.club-role-badge--deputy {
  background: rgba(116, 212, 255, .14);
  border-color: rgba(116, 212, 255, .35);
  color: #c8f1ff;
}
.club-role-badge--member {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: rgba(235,245,255,.9);
}
.club-remove-form {
  display: inline-flex;
  margin: 0;
}
.club-remove-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 115, 115, .45);
  background: linear-gradient(180deg, rgba(70, 22, 28, .78), rgba(38, 12, 18, .86));
  color: #ffd7d7;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(255, 120, 120, .12);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.club-remove-btn:hover {
  border-color: rgba(255, 148, 148, .8);
  box-shadow: inset 0 0 12px rgba(255, 145, 145, .18), 0 0 10px rgba(255, 95, 95, .22);
  transform: translateY(-1px);
}
.club-meta {
  text-align: center;
  padding: 8px 10px;
  border: 1px solid rgba(107, 195, 255, .24);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(50, 132, 204, .08), rgba(9, 18, 32, .16));
  box-shadow: inset 0 0 10px rgba(110, 209, 255, .08);
}
.club-garage {
  padding: 12px;
}
.club-garage__forms {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 10px;
}
.club-garage__form {
  display: grid;
  gap: 8px;
}
.club-garage__form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.club-garage__form select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
}
.club-cp-pending {
  margin-top: 6px;
  overflow-x: auto;
}
.club-cp-pending .table {
  min-width: 420px;
}
.club-cp-pending .table th,
.club-cp-pending .table td {
  white-space: nowrap;
}
.club-cp {
  display: grid;
  gap: 10px;
}
.club-cp > h1 {
  margin: 0 0 2px;
}
.club-cp .alert {
  margin: 0;
}
.club-cp .club-cp-card {
  margin-top: 0 !important;
  padding: 10px 12px;
}
.club-cp .club-cp-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.club-cp .club-cp__club-name {
  font-size: 18px;
  font-weight: 700;
}
.club-cp .muted {
  font-size: 12px;
}
.club-cp .club-cp-card .muted[style*="margin-bottom"] {
  margin-bottom: 6px !important;
}
.club-cp .club-cp-card p[style*="margin:6px 0"] {
  margin: 4px 0 !important;
}
.club-cp form {
  margin: 0;
}
.club-cp .form {
  gap: 8px;
}
.club-cp .form label {
  gap: 4px;
  font-size: 12px;
}
.club-cp input,
.club-cp textarea,
.club-cp select {
  padding: 8px 10px;
  border-radius: 10px;
}
.club-cp input[type="text"],
.club-cp input[type="number"],
.club-cp input[type="email"],
.club-cp input[type="search"],
.club-cp textarea,
.club-cp select {
  background: rgba(4, 10, 20, .88) !important;
  color: #e9f2ff !important;
  border: 1px solid rgba(73, 190, 255, .3) !important;
  box-shadow: inset 0 0 10px rgba(57, 208, 255, .06);
}
.club-cp input[type="text"]::placeholder,
.club-cp input[type="number"]::placeholder,
.club-cp input[type="email"]::placeholder,
.club-cp input[type="search"]::placeholder,
.club-cp textarea::placeholder {
  color: rgba(170, 205, 232, .7);
}
.club-cp input[type="file"] {
  background: rgba(4, 10, 20, .88) !important;
  color: #e9f2ff !important;
  border: 1px solid rgba(73, 190, 255, .3) !important;
  border-radius: 10px;
  padding: 6px 8px;
}
.club-cp input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(88, 206, 255, .55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 38, 64, .92), rgba(10, 20, 36, .95));
  color: #e9f2ff;
  padding: 6px 10px;
  cursor: pointer;
}
.club-cp input[type="file"]::-webkit-file-upload-button {
  margin-right: 10px;
  border: 1px solid rgba(88, 206, 255, .55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 38, 64, .92), rgba(10, 20, 36, .95));
  color: #e9f2ff;
  padding: 6px 10px;
  cursor: pointer;
}
.club-cp .btn {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.15;
}
.club-cp .form .btn {
  width: auto;
  align-self: flex-start;
  min-width: 128px;
}
.club-cp .grid {
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.club-cp .grid > .card {
  padding: 8px 10px;
}
.club-cp .grid > .card p {
  margin: 4px 0 6px !important;
}
.club-cp .grid > .card > div[style*="display:flex"] {
  gap: 6px !important;
}
.club-cp .club-cp-card--invite form[style*="max-width:360px"] {
  max-width: none !important;
}
@media (min-width: 980px) {
  .club-cp {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    grid-template-rows: auto auto auto auto auto auto auto;
    align-items: start;
  }
  .club-cp > h1 {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .club-cp > .alert {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .club-cp-card--club {
    grid-column: 1;
    grid-row: 3;
  }
  .club-cp-card--level {
    grid-column: 2;
    grid-row: 3;
  }
  .club-cp-card--notice {
    grid-column: 1;
    grid-row: 4;
  }
  .club-cp-card--tech {
    grid-column: 1;
    grid-row: 5 / span 2;
  }
  .club-cp-card--rename {
    grid-column: 2;
    grid-row: 4;
  }
  .club-cp-card--desc {
    grid-column: 2;
    grid-row: 5;
  }
  .club-cp-card--logo {
    grid-column: 2;
    grid-row: 6;
  }
  .club-cp-card--invite {
    grid-column: 2;
    grid-row: 7;
  }
  .club-cp .club-cp-card--tech .grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
  .club-cp .club-cp-card--tech .grid .btn {
    min-width: 96px;
  }
}

@media (min-width: 1240px) {
  .club-cp .club-cp-card--tech .grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }
}
.warehouse-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.warehouse-card {
  flex: 0 0 116px;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: relative;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.warehouse-card.is-open {
  z-index: 24;
}
.warehouse-card .meta,
.warehouse-card p.muted,
.warehouse-card > div[style*="display:flex"],
.warehouse-card > div:last-child a.btn {
  display: none;
}
.warehouse-card .icon-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 92px;
  max-height: 116px;
  border-radius: 16px;
  border: 1px solid rgba(110, 170, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(10, 18, 30, .86), rgba(6, 12, 22, .88)),
    linear-gradient(135deg, rgba(60, 140, 255, .08), rgba(0, 0, 0, 0));
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.warehouse-card .icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.warehouse-card .tooltip {
  position: absolute;
  z-index: 14;
  top: 50%;
  left: calc(100% + 14px);
  width: 220px;
  max-width: 220px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(80, 148, 255, .16);
  background:
    linear-gradient(180deg, rgba(8, 14, 24, .96), rgba(4, 9, 16, .96)),
    linear-gradient(135deg, rgba(60, 140, 255, .08), rgba(0, 0, 0, 0));
  color: #eef5ff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .36);
}
.warehouse-card.is-open .tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
.warehouse-card:hover .tooltip { opacity: inherit; }
.warehouse-card .tooltip .garage-pop__title {
  margin: 0 0 10px;
  color: #f3c86a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}
.warehouse-card .tooltip .garage-pop__rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.warehouse-card .tooltip .garage-pop__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  color: rgba(227, 235, 248, .8);
}
.warehouse-card .tooltip .garage-pop__row b {
  color: #eef5ff;
  text-align: right;
}
.warehouse-card .tooltip .garage-pop__value--ok {
  color: #42df7d;
}
.warehouse-card .tooltip .garage-pop__action {
  margin-top: 12px;
}
.warehouse-card .tooltip .garage-pop__action .btn {
  width: 100%;
}

/* Car page */
.car-page { max-width: 1040px; margin: 0 auto; padding: 10px; }
.car-top { display: flex; flex-direction: column; gap: 10px; }
.car-top__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(110, 170, 255, .14);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 72%, rgba(8, 16, 28, .08), rgba(8, 16, 28, .28) 62%, rgba(5, 10, 20, .44) 100%),
    linear-gradient(rgba(6, 12, 24, .14), rgba(6, 12, 24, .26)),
    url('../img/fonai/garazas.png') center center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02), 0 16px 28px rgba(0, 0, 0, .24);
}
.slot-box {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 112px;
}
.car-top .slot-box { padding: 0; gap: 8px; min-height: 112px; }
.slot-box .icon-wrap {
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 14px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}
.car-top .slot-box .icon-wrap { min-height: 0; }
.car-top .left-slots .slot-box { min-height: 112px; padding: 0; gap: 8px; }
.car-top .left-slots .slot-box .icon-wrap {
  width: 100%;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
}
.car-top .left-slots .slot-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.slot-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.slot-label {
  font-weight: 600;
  margin-bottom: 0;
  display: block;
  font-size: 12px;
  line-height: 1.1;
  color: rgba(226, 235, 248, .76);
  letter-spacing: .02em;
}
.slot-hit {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.slot-media {
  width: 100%;
  height: 76px;
}
.bottom-slots,
.left-slots {
  position: absolute;
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
  overflow: visible;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}
.bottom-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  left: 132px;
  right: 24px;
  bottom: 16px;
  z-index: 4;
}
.left-slots {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  left: 18px;
  top: 50%;
  transform: translateY(-58%);
  width: 96px;
  align-content: center;
  z-index: 6;
}
.slot-box--empty .slot-label {
  color: rgba(195, 204, 220, .52);
}
.slot-media--empty {
  border: 1px solid rgba(190, 204, 224, .12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(112, 124, 146, .16), rgba(74, 84, 104, .08)),
    linear-gradient(135deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}
.slot-empty-window {
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border-radius: 12px;
  border: 1px dashed rgba(198, 208, 222, .18);
  background: linear-gradient(180deg, rgba(165, 174, 188, .06), rgba(88, 96, 108, .02));
}
.slot-pop {
  position: absolute;
  z-index: 12;
  width: 220px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(80, 148, 255, .16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(8, 14, 24, .96), rgba(4, 9, 16, .96)),
    linear-gradient(135deg, rgba(60, 140, 255, .08), rgba(0, 0, 0, 0));
  box-shadow: 0 16px 30px rgba(0, 0, 0, .36);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.left-slots .slot-pop {
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
}
.bottom-slots .slot-pop {
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(8px);
}
.bottom-slots .slot-box:first-child .slot-pop,
.bottom-slots .slot-box:nth-child(2) .slot-pop {
  left: 0;
  transform: translateX(0) translateY(8px);
}
.bottom-slots .slot-box:nth-last-child(-n+2) .slot-pop {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(8px);
}
.bottom-slots .slot-box:first-child.is-open .slot-pop,
.bottom-slots .slot-box:nth-child(2).is-open .slot-pop,
.bottom-slots .slot-box:nth-last-child(-n+2).is-open .slot-pop {
  transform: translateX(0) translateY(0);
}
.slot-box.is-open .slot-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.slot-box.is-open {
  z-index: 20;
}
.left-slots .slot-box.is-open {
  z-index: 30;
}
.bottom-slots .slot-box.is-open {
  z-index: 20;
}
.left-slots .slot-box.is-open .slot-pop {
  transform: translateY(-50%) translateX(0);
}
.bottom-slots .slot-box.is-open .slot-pop {
  transform: translateX(-50%) translateY(0);
}
.slot-pop__title {
  margin: 0 0 10px;
  color: #f3c86a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}
.slot-pop__rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.slot-pop__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  color: rgba(227, 235, 248, .8);
}
.slot-pop__row b {
  color: #eef5ff;
  text-align: right;
}
.condition--ok {
  color: #42df7d !important;
}
.condition--warn {
  color: #f3c86a !important;
}
.condition--bad {
  color: #ff5b5b !important;
}
.slot-pop__value--ok {
  color: #42df7d !important;
}
.slot-pop__action {
  margin: 12px 0 0;
}
.slot-pop__action .btn {
  width: 100%;
}
.car-display {
  grid-column: 1;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
}
.stats-panel {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  height: fit-content;
  min-height: 0;
  margin: 12px;
  padding: 12px;
  border: 1px solid rgba(88, 186, 242, .34);
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(82, 186, 244, .16), rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg, rgba(6, 18, 32, .38), rgba(6, 16, 28, .42));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .32);
}
.stats-panel__title {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.05;
  color: #f3c86a;
  text-align: center;
  font-weight: 700;
  letter-spacing: .02em;
}
.stats-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.stats-panel__head .stats-panel__title {
  margin: 0;
  text-align: left;
}
.car-info-btn {
  display: none;
}
.car-slots-btn {
  display: none;
}
.car-stats-close {
  display: none;
}
.car-stats-backdrop {
  display: none;
}
.car-slots-backdrop {
  display: none;
}
.car-slots-modal {
  display: none;
}
.car-mobile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.car-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.car-specs__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
}
.car-specs__label {
  color: rgba(227, 235, 248, .82);
  font-size: 15px;
  line-height: 1.2;
}
.car-specs__value {
  color: #eef5ff;
  font-size: 15px;
  line-height: 1.2;
  text-align: right;
  font-weight: 600;
}
.car-specs__value--ok {
  color: #42df7d;
}
.car-display__head {
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, rgba(6, 12, 24, .86), rgba(6, 12, 24, .54));
  border-right: 1px solid rgba(255, 255, 255, .04);
}
.car-img-wrap {
  width: 100%;
  height: 470px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}
.car-img-wrap::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 116px;
  width: min(54%, 420px);
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .52) 0%, rgba(0, 0, 0, .3) 42%, rgba(0, 0, 0, 0) 78%);
  filter: blur(8px);
  pointer-events: none;
}
.car-top .car-img-wrap { height: 470px; }
.car-top .car-img-wrap > .car-img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 74%;
  max-height: 58%;
  object-fit: contain;
  display: block;
  margin-bottom: 112px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
}
.car-display .car-display__body { display: none; }
.car-img-wrap > .car-img { width: auto; height: auto; object-fit: contain; display: block; }
.car-top .stats-panel { padding: 26px 18px 20px; }

.garage-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.garage-hero,
.garage-fleet {
  overflow: hidden;
}
.garage-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.garage-section-head--tight {
  margin-bottom: 14px;
}
.garage-section-head h1,
.garage-section-head h2 {
  margin: 0;
}
.garage-section-head__eyebrow {
  margin-bottom: 6px;
  color: #7fc8ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.garage-active-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
  gap: 16px;
  align-items: start;
}
.garage-active-stage {
  position: relative;
  min-height: 440px;
  padding: 22px;
  border: 1px solid rgba(88, 186, 242, .26);
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(82, 186, 244, .16), rgba(0, 0, 0, 0) 55%),
    linear-gradient(180deg, rgba(6, 12, 24, .26), rgba(6, 12, 24, .44)),
    url("../img/fonai/garazas.png") center center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02), 0 16px 28px rgba(0, 0, 0, .24);
  overflow: hidden;
}
.garage-active-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, .82) 0%, rgba(5, 10, 18, .4) 44%, rgba(5, 10, 18, .6) 100%),
    radial-gradient(60% 70% at 70% 55%, rgba(94, 164, 255, .12), rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}
.garage-active-stage > * {
  position: relative;
  z-index: 1;
}
.garage-active-stage__meta {
  max-width: 340px;
}
.garage-active-stage__kicker {
  color: rgba(127, 200, 255, .92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.garage-active-stage__name {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: .96;
  color: #f4f8ff;
}
.garage-active-stage__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.garage-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(122, 203, 255, .22);
  border-radius: 999px;
  background: rgba(5, 14, 24, .56);
  color: #e8f4ff;
  font-size: 12px;
  font-weight: 600;
}
.garage-active-stage__visual {
  position: absolute;
  right: 18px;
  left: 270px;
  bottom: 18px;
  top: 74px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.garage-active-stage__visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: min(62%, 420px);
  height: 38px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .28) 46%, rgba(0, 0, 0, 0) 78%);
  filter: blur(9px);
}
.garage-active-stage__car {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .3));
}
.garage-active-stage__actions {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.garage-stats-toggle {
  display: none;
}
.garage-stats-panel {
  margin: 0;
  min-height: 440px;
}
.garage-fleet__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.garage-fleet-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 190, 255, .45) rgba(8, 16, 28, .35);
}
.garage-fleet-rail::-webkit-scrollbar {
  height: 10px;
}
.garage-fleet-rail::-webkit-scrollbar-track {
  background: rgba(8, 16, 28, .35);
  border-radius: 999px;
}
.garage-fleet-rail::-webkit-scrollbar-thumb {
  background: rgba(110, 190, 255, .45);
  border-radius: 999px;
}
.garage-car-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  scroll-snap-align: start;
}
.garage-car-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(76, 149, 233, .08), rgba(0, 0, 0, 0) 58%),
    linear-gradient(180deg, rgba(7, 13, 24, .08), rgba(7, 13, 24, .22));
  pointer-events: none;
}
.garage-car-card > * {
  position: relative;
  z-index: 1;
}
.garage-car-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.garage-car-card__name {
  margin: 0;
  color: #f4f8ff;
  font-size: 20px;
  line-height: 1.05;
}
.garage-car-card__sub {
  margin-top: 5px;
  color: rgba(224, 235, 248, .6);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.garage-car-card__level {
  color: rgba(234, 243, 255, .82);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.garage-car-card__art {
  position: relative;
  min-height: 190px;
  border: 1px solid rgba(110, 186, 255, .16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(8, 14, 24, .2), rgba(5, 10, 18, .42)),
    url("../img/fonai/garazas.png") center center / cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 20px 10px;
}
.garage-car-card__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 18, .22), rgba(5, 10, 18, .58));
}
.garage-car-card__art::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: min(64%, 240px);
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .52) 0%, rgba(0, 0, 0, .24) 50%, rgba(0, 0, 0, 0) 78%);
  filter: blur(8px);
}
.garage-car-card__img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 144px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .28));
}
.garage-car-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}
.garage-car-card__stat {
  display: grid;
  gap: 4px;
}
.garage-car-card__stat span {
  color: rgba(227, 235, 248, .72);
  font-size: 12px;
  line-height: 1.15;
}
.garage-car-card__stat b {
  color: #eef5ff;
  font-size: 15px;
  line-height: 1.15;
}
.garage-car-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.garage-car-card__actions form {
  margin: 0;
}
.garage-car-card__actions .btn {
  min-width: 150px;
}

.mechanic-station {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mechanic-bay {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 12, 22, .88), rgba(7, 13, 24, .94)),
    radial-gradient(120% 140% at 0% 0%, rgba(255, 170, 64, .14), rgba(0, 0, 0, 0) 44%),
    radial-gradient(90% 90% at 100% 0%, rgba(88, 186, 242, .12), rgba(0, 0, 0, 0) 54%),
    url("../img/fonai/garazas.jpg") center center / cover no-repeat;
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 6px;
    vertical-align: -5px;
    filter: drop-shadow(0 0 7px rgba(56, 213, 255, .45));
}
.vip-badge img { width: 100%; height: 100%; display: block; }
.vip-badge--inline { width: 18px; height: 18px; margin-left: 4px; vertical-align: -4px; }
.vip-badge--hud { width: 22px; height: 22px; margin: 0 5px 0 0; }
.vip-badge--profile { width: 30px; height: 30px; vertical-align: -6px; }
.vip-badge--hero { width: 42px; height: 42px; margin: 0; }

.bank-page { overflow: hidden; }
.bank-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    padding: 8px 0 18px;
}
.bank-eyebrow {
    color: #7fdcff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.bank-hero h1 { margin: 4px 0 6px; }
.bank-hero p { margin: 0; color: var(--muted); }
.bank-hero__vip {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
    color: #dcecff;
    font-size: 13px;
}
.bank-packages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.bank-package {
    position: relative;
    border: 1px solid rgba(88, 178, 255, .24);
    border-radius: 8px;
    padding: 18px;
    background:
        linear-gradient(145deg, rgba(16, 44, 72, .94), rgba(7, 17, 29, .98)),
        radial-gradient(circle at 20% 0%, rgba(255, 189, 65, .18), transparent 34%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 34px rgba(0,0,0,.24);
}
.bank-package--featured {
    border-color: rgba(255, 197, 77, .58);
}
.bank-package__top,
.bank-package__rewards,
.bank-order,
.admin-bank__order,
.admin-bank__side {
    display: flex;
    align-items: center;
}
.bank-package__top { justify-content: space-between; gap: 10px; }
.bank-package__no,
.bank-package__price {
    border: 1px solid rgba(127, 220, 255, .25);
    border-radius: 999px;
    padding: 5px 9px;
    color: #bfefff;
    font-weight: 800;
    font-size: 12px;
}
.bank-package__price {
    color: #ffd979;
    border-color: rgba(255, 207, 96, .38);
}
.bank-package h2 { margin: 14px 0; }
.bank-package__rewards {
    gap: 10px;
    margin-bottom: 12px;
}
.bank-package__rewards div {
    flex: 1;
    border-radius: 8px;
    padding: 12px;
    background: rgba(5, 14, 24, .45);
    border: 1px solid rgba(255,255,255,.07);
}
.bank-package__rewards b { display: block; font-size: 28px; color: #fff; }
.bank-package__rewards span { color: var(--muted); font-size: 12px; }
.bank-package__bonus {
    display: inline-block;
    margin-left: 4px;
    color: #ffd979;
    font-style: normal;
    font-weight: 800;
}
.bank-promo-alert {
    border-color: rgba(255, 207, 96, .45);
    box-shadow: inset 0 0 18px rgba(255, 190, 68, .08);
}
.bank-package__benefits {
    margin: 0 0 16px;
    padding-left: 18px;
    color: #c9d8e8;
}
.bank-package__order { width: 100%; }
.bank-orders,
.admin-bank__list {
    display: grid;
    gap: 10px;
}
.bank-order,
.admin-bank__order {
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(88, 178, 255, .2);
    border-radius: 8px;
    padding: 12px;
    background: rgba(7, 18, 30, .72);
}
.bank-order span,
.admin-bank__order p { display: block; margin: 4px 0 0; color: var(--muted); }
.bank-order__status {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid rgba(127, 220, 255, .24);
}
.bank-order__status--pending { color: #ffe08a; border-color: rgba(255, 224, 138, .45); }
.bank-order__status--approved { color: #9ff2ba; border-color: rgba(159, 242, 186, .45); }
.bank-order__status--rejected { color: #ff9f9f; border-color: rgba(255, 159, 159, .45); }
.bank-order__status--expired { color: #b8c4d6; border-color: rgba(184, 196, 214, .34); }
.bank-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
}
.bank-modal[hidden] { display: none; }
.bank-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 8, 15, .78);
    backdrop-filter: blur(6px);
}
.bank-modal__card {
    position: relative;
    width: min(560px, 100%);
    border: 1px solid rgba(127, 220, 255, .32);
    border-radius: 8px;
    padding: 22px;
    background: linear-gradient(145deg, #102b45, #07111d 72%);
    box-shadow: 0 28px 70px rgba(0,0,0,.55);
}
.bank-modal__x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    color: #dcecff;
    cursor: pointer;
}
.bank-modal__summary,
.bank-payment {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}
.bank-modal__summary div,
.bank-payment div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding-bottom: 8px;
}
.bank-modal__summary span,
.bank-payment span { color: var(--muted); }
.bank-modal__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.bank-vip-dm,
.bank-info {
    border: 1px solid rgba(127, 220, 255, .22);
    border-radius: 8px;
    padding: 18px;
    background:
        radial-gradient(80% 90% at 100% 0, rgba(255, 207, 96, .13), transparent 52%),
        linear-gradient(145deg, rgba(9, 25, 42, .82), rgba(4, 12, 22, .88));
}
.bank-vip-dm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.bank-vip-dm h2,
.bank-info h2 {
    margin: 4px 0 8px;
}
.bank-vip-dm p,
.bank-info p {
    margin: 0;
    line-height: 1.55;
}
.bank-info p + p {
    margin-top: 10px;
}
.bank-vip-dm__buy {
    display: grid;
    grid-template-columns: repeat(2, minmax(96px, 1fr));
    gap: 10px;
    min-width: min(360px, 100%);
}
.bank-vip-dm__buy div {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 12px;
    background: rgba(5, 14, 24, .45);
}
.bank-vip-dm__buy b {
    display: block;
    font-size: 28px;
    color: #fff;
}
.bank-vip-dm__buy span {
    color: var(--muted);
    font-size: 12px;
}
.bank-vip-dm__buy form {
    grid-column: 1 / -1;
    margin: 0;
}
.bank-vip-dm__buy .btn {
    width: 100%;
}
.admin-bank__side {
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-bank__order h3 { margin: 0; }
.admin-bank__promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 207, 96, .28);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    background: linear-gradient(135deg, rgba(255, 188, 60, .12), rgba(5, 16, 28, .62));
}
.admin-bank__promo b,
.admin-bank__promo span {
    display: block;
}

@media (max-width: 820px) {
    .bank-hero { display: block; }
    .bank-hero__vip { margin-top: 12px; }
    .bank-packages { grid-template-columns: 1fr; }
    .bank-vip-dm { align-items: flex-start; flex-direction: column; }
    .bank-order,
    .admin-bank__order,
    .admin-bank__promo { align-items: flex-start; flex-direction: column; }
}
.mechanic-bay::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(8, 16, 28, .72), rgba(8, 16, 28, .48)),
    radial-gradient(90% 70% at 20% 20%, rgba(92, 215, 216, .1), rgba(0, 0, 0, 0) 52%),
    radial-gradient(90% 70% at 80% 80%, rgba(255, 179, 71, .07), rgba(0, 0, 0, 0) 48%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 10px, rgba(0,0,0,0) 10px 20px);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.mechanic-bay__main,
.mechanic-bay__side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1;
}
.mechanic-bay__identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.mechanic-bay__emblem {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  border: 1px solid rgba(255, 176, 76, .22);
  background:
    radial-gradient(100% 100% at 30% 20%, rgba(255, 170, 64, .26), rgba(0, 0, 0, 0) 54%),
    linear-gradient(180deg, rgba(18, 24, 36, .96), rgba(8, 14, 24, .98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 18px 26px rgba(0, 0, 0, .28);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mechanic-bay__emblem img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3));
}
.mechanic-bay__copy {
  max-width: 560px;
}
.mechanic-bay__eyebrow,
.mechanic-zone__eyebrow,
.mechanic-panel__kicker {
  color: #ffbf69;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mechanic-bay__title {
  margin: 8px 0 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: .94;
  color: #f6f9ff;
}
.mechanic-bay__lead {
  margin: 12px 0 0;
  max-width: 640px;
  color: rgba(229, 236, 246, .78);
  font-size: 15px;
  line-height: 1.6;
}
.mechanic-bay__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mechanic-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mechanic-overview__card {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(92, 215, 216, .12);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(92, 215, 216, .12), rgba(0, 0, 0, 0) 52%),
    linear-gradient(180deg, rgba(8, 16, 28, .94), rgba(7, 11, 20, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 14px 28px rgba(0, 0, 0, .18);
}
.mechanic-overview__card::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 179, 71, .85), rgba(92, 215, 216, 0));
}
.mechanic-overview__label {
  display: block;
  color: rgba(227, 235, 248, .62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mechanic-overview__card strong {
  display: block;
  margin-top: 10px;
  color: #f6fbff;
  font-size: clamp(26px, 3vw, 34px);
  line-height: .95;
}
.mechanic-overview__card small {
  display: block;
  margin-top: 8px;
  color: rgba(229, 236, 246, .72);
  font-size: 12px;
  line-height: 1.45;
}
.mechanic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 176, 76, .18);
  border-radius: 999px;
  background: rgba(20, 26, 38, .72);
  color: #eef5ff;
  font-size: 12px;
  font-weight: 600;
}
.mechanic-chip--xp {
  border-color: rgba(90, 201, 255, .18);
}
.mechanic-chip--level {
  background: linear-gradient(180deg, rgba(42, 26, 10, .82), rgba(18, 20, 28, .82));
}
.mechanic-bay__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mechanic-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 176, 76, .16);
  border-radius: 18px;
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(255, 170, 64, .1), rgba(0, 0, 0, 0) 48%),
    linear-gradient(180deg, rgba(12, 18, 28, .96), rgba(7, 12, 20, .98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 16px 30px rgba(0, 0, 0, .22);
}
.mechanic-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 28px), rgba(255, 176, 76, .07) calc(100% - 28px), rgba(255, 176, 76, .07) calc(100% - 26px), transparent calc(100% - 26px)),
    linear-gradient(180deg, transparent 0, transparent calc(100% - 28px), rgba(88, 186, 242, .06) calc(100% - 28px), rgba(88, 186, 242, .06) calc(100% - 26px), transparent calc(100% - 26px));
  pointer-events: none;
}
.mechanic-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("../img/uidetales/mechanic_panel_bg.png") center center / cover no-repeat;
  opacity: .12;
  mix-blend-mode: screen;
  pointer-events: none;
}
.mechanic-panel--profile::after,
.mechanic-panel--job::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 14, 24, .28), rgba(6, 14, 24, .12)),
    radial-gradient(120% 100% at 100% 0%, rgba(92, 215, 216, .12), rgba(0, 0, 0, 0) 45%),
    url("../img/uidetales/mechanic_panel_bg.png") center center / cover no-repeat;
  opacity: .28;
  mix-blend-mode: normal;
}
.mechanic-panel--profile {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 179, 71, .12), rgba(0, 0, 0, 0) 38%),
    linear-gradient(180deg, rgba(13, 19, 29, .965), rgba(8, 12, 20, .985));
}
.mechanic-panel--job {
  background:
    radial-gradient(120% 140% at 0% 100%, rgba(92, 215, 216, .12), rgba(0, 0, 0, 0) 36%),
    linear-gradient(180deg, rgba(13, 19, 29, .965), rgba(8, 12, 20, .985));
}
.mechanic-panel--profile::before,
.mechanic-panel--job::before {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 28px), rgba(255, 176, 76, .08) calc(100% - 28px), rgba(255, 176, 76, .08) calc(100% - 26px), transparent calc(100% - 26px)),
    linear-gradient(180deg, transparent 0, transparent calc(100% - 28px), rgba(88, 186, 242, .08) calc(100% - 28px), rgba(88, 186, 242, .08) calc(100% - 26px), transparent calc(100% - 26px)),
    linear-gradient(135deg, rgba(255,255,255,.02), rgba(255,255,255,0) 30%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 8px, rgba(0,0,0,0) 8px 16px);
}
.mechanic-panel > * {
  position: relative;
  z-index: 1;
}
.mechanic-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.mechanic-metric {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255,255,255,.04);
  display: grid;
  gap: 4px;
}
.mechanic-metric span {
  color: rgba(229, 236, 246, .62);
  font-size: 12px;
}
.mechanic-metric strong {
  color: #f3f8ff;
  font-size: 18px;
  font-weight: 700;
}
.mechanic-progress {
  position: relative;
  margin-top: 16px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.mechanic-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb347, #5cd7d8);
  box-shadow: 0 0 18px rgba(92, 215, 216, .28);
}
.mechanic-panel--job.is-active {
  border-color: rgba(92, 215, 216, .22);
}
.mechanic-job__title {
  margin: 10px 0 0;
  color: #f3f8ff;
  font-size: 28px;
  line-height: 1;
}
.mechanic-job__phase {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(92, 215, 216, .16);
  background: rgba(92, 215, 216, .08);
}
.mechanic-job__phase span {
  color: rgba(229, 236, 246, .68);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.mechanic-job__phase strong {
  color: #f8fbff;
  font-size: 13px;
}
.mechanic-job__countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
  color: #ffbf69;
}
.mechanic-job__countdown b {
  font-size: 42px;
  line-height: .88;
}
.mechanic-job__countdown span {
  font-size: 18px;
  font-weight: 700;
}
.mechanic-job__track {
  position: relative;
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.mechanic-job__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb347, #5cd7d8);
  box-shadow: 0 0 18px rgba(92, 215, 216, .35);
}
.mechanic-panel--job[data-urgency="mid"] .mechanic-job__countdown {
  color: #ffd16e;
}
.mechanic-panel--job[data-urgency="high"] .mechanic-job__countdown {
  color: #ff8d67;
}
.mechanic-panel--job[data-urgency="high"] .mechanic-job__track i {
  background: linear-gradient(90deg, #ff6f61, #ffb347);
}
.mechanic-job__text {
  margin: 12px 0 0;
  color: rgba(229, 236, 246, .76);
  line-height: 1.55;
}
.mechanic-job__idle {
  margin-top: 18px;
  color: #5cd7d8;
  font-size: 18px;
  font-weight: 700;
}
.mechanic-panel .btn {
  margin-top: 16px;
}
.mechanic-zone {
  overflow: hidden;
}
.mechanic-zone__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.mechanic-zone__head h2 {
  margin: 0;
}
.mechanic-zone__meta {
  color: rgba(229, 236, 246, .62);
  font-size: 13px;
}
.mechanic-body-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 176, 76, .42) rgba(8, 16, 28, .35);
}
.mechanic-body-rail::-webkit-scrollbar,
.mechanic-parts__rail::-webkit-scrollbar {
  height: 10px;
}
.mechanic-body-rail::-webkit-scrollbar-track,
.mechanic-parts__rail::-webkit-scrollbar-track {
  background: rgba(8, 16, 28, .35);
  border-radius: 999px;
}
.mechanic-body-rail::-webkit-scrollbar-thumb,
.mechanic-parts__rail::-webkit-scrollbar-thumb {
  background: rgba(255, 176, 76, .42);
  border-radius: 999px;
}
.mechanic-body-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  scroll-snap-align: start;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.mechanic-body-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 215, 216, .2);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .26);
}
.mechanic-body-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(255, 170, 64, .08), rgba(0, 0, 0, 0) 58%),
    linear-gradient(180deg, rgba(7, 13, 24, .08), rgba(7, 13, 24, .22));
  pointer-events: none;
}
.mechanic-body-card > * {
  position: relative;
  z-index: 1;
}
.mechanic-body-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.mechanic-body-card__name {
  margin: 0;
  color: #f4f8ff;
  font-size: 20px;
  line-height: 1.05;
}
.mechanic-body-card__sub {
  margin-top: 5px;
  color: rgba(255, 191, 105, .74);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.mechanic-body-card__level {
  color: rgba(234, 243, 255, .82);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.mechanic-body-card__art {
  position: relative;
  min-height: 188px;
  border: 1px solid rgba(255, 176, 76, .12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(24, 18, 10, .16), rgba(5, 10, 18, .52)),
    url("../img/fonai/garazas.jpg") center center / cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 20px 10px;
}
.mechanic-body-card__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 18, .2), rgba(5, 10, 18, .6));
}
.mechanic-body-card__art::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: min(64%, 240px);
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .54) 0%, rgba(0, 0, 0, .24) 50%, rgba(0, 0, 0, 0) 78%);
  filter: blur(8px);
}
.mechanic-body-card__img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 146px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .28));
}
.mechanic-body-card__badges,
.mechanic-part-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mechanic-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #edf5ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.mechanic-badge--condition.condition--ok {
  border-color: rgba(54, 211, 153, .24);
  background: rgba(54, 211, 153, .12);
}
.mechanic-badge--condition.condition--warn {
  border-color: rgba(255, 191, 105, .24);
  background: rgba(255, 191, 105, .12);
}
.mechanic-badge--condition.condition--bad {
  border-color: rgba(255, 107, 107, .24);
  background: rgba(255, 107, 107, .12);
}
.mechanic-health {
  display: grid;
  gap: 8px;
}
.mechanic-health--compact {
  gap: 0;
}
.mechanic-health__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(229, 236, 246, .72);
  font-size: 12px;
}
.mechanic-health__row b {
  color: #f6fbff;
  font-size: 14px;
}
.mechanic-health__bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.mechanic-health__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb347, #5cd7d8);
  box-shadow: 0 0 18px rgba(92, 215, 216, .28);
}
.mechanic-body-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.mechanic-body-card__stat {
  display: grid;
  gap: 4px;
}
.mechanic-body-card__stat span {
  color: rgba(227, 235, 248, .68);
  font-size: 12px;
}
.mechanic-body-card__stat b {
  color: #eef5ff;
  font-size: 15px;
}
.mechanic-body-card__detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mechanic-detail-pill {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  display: grid;
  gap: 4px;
}
.mechanic-detail-pill span {
  color: rgba(227, 235, 248, .64);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mechanic-detail-pill b {
  color: #f3f8ff;
  font-size: 14px;
}
.mechanic-body-card__actions {
  margin-top: auto;
}
.mechanic-body-card__actions .btn {
  width: 100%;
}
.mechanic-parts .warehouse-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 240px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  flex-wrap: nowrap;
  align-items: stretch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 176, 76, .42) rgba(8, 16, 28, .35);
}
.mechanic-part-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 176, 76, .12);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 170, 64, .08), rgba(0, 0, 0, 0) 56%),
    linear-gradient(180deg, rgba(10, 18, 30, .94), rgba(6, 12, 22, .98));
  gap: 12px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.mechanic-part-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 215, 216, .18);
  box-shadow: 0 16px 24px rgba(0, 0, 0, .24);
}
.mechanic-parts .warehouse-card .meta {
  display: grid !important;
  gap: 4px;
}
.mechanic-parts .warehouse-card .meta b {
  color: #f2f7ff;
  font-size: 16px;
}
.mechanic-parts .warehouse-card .meta .muted {
  color: rgba(227, 235, 248, .62) !important;
  font-size: 12px;
}
.mechanic-parts .warehouse-card .icon-wrap {
  max-height: none;
  min-height: 120px;
  aspect-ratio: auto;
  border-radius: 16px;
  border-color: rgba(255, 176, 76, .14);
  background:
    linear-gradient(180deg, rgba(26, 18, 10, .2), rgba(6, 12, 22, .92)),
    linear-gradient(135deg, rgba(255, 170, 64, .08), rgba(0, 0, 0, 0));
}
.mechanic-spark {
  position: absolute;
  z-index: 2;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,.95) 0%, rgba(92, 215, 216, .9) 35%, rgba(92, 215, 216, 0) 72%);
  box-shadow: 0 0 12px rgba(92, 215, 216, .55);
  pointer-events: none;
  animation: mechanicSparkFloat 3.6s ease-in-out infinite;
}
@keyframes mechanicSparkFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(.85);
    opacity: .35;
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.15);
    opacity: 1;
  }
}
.mechanic-part-card__summary {
  display: grid;
  gap: 6px;
}
.mechanic-part-card__summary span {
  color: rgba(227, 235, 248, .76);
  font-size: 12px;
  line-height: 1.2;
}
.mechanic-parts .warehouse-card .tooltip {
  border-color: rgba(255, 176, 76, .18);
  background:
    linear-gradient(180deg, rgba(18, 14, 10, .96), rgba(6, 10, 16, .98)),
    linear-gradient(135deg, rgba(255, 170, 64, .08), rgba(0, 0, 0, 0));
}
.mechanic-parts .warehouse-card .tooltip .garage-pop__title {
  color: #ffbf69;
}
.mechanic-parts .warehouse-card .tooltip .garage-pop__action .btn {
  width: 100%;
}
.warehouse { margin-top: 16px; }
.warehouse-card .btn-sell { background: transparent; border: 1px dashed var(--border); color: var(--muted); cursor: not-allowed; }
.tooltip { max-width: 220px; }
.warehouse-card:hover .tooltip { opacity: inherit; }
.mobile-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 999; }
.mobile-modal__body { background: #181818; color: #fff; max-width: 320px; margin: 60px auto; padding: 16px; border-radius: 12px; }

@media (max-width: 820px) {
  .mechanic-bay {
    grid-template-columns: 1fr;
  }
  .mechanic-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mechanic-bay__identity {
    flex-direction: column;
  }
  .mechanic-bay__emblem {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
  }
  .mechanic-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mechanic-body-rail {
    grid-auto-columns: minmax(280px, 84vw);
  }
  .mechanic-parts .warehouse-row {
    grid-auto-columns: minmax(220px, 78vw);
  }
  .mechanic-body-card__detail-grid {
    grid-template-columns: 1fr;
  }
  .garage-active-shell {
    grid-template-columns: 1fr;
  }
  .garage-active-stage,
  .garage-stats-panel {
    min-height: 0;
  }
  .garage-active-stage {
    padding: 18px;
  }
  .garage-active-stage__visual {
    position: relative;
    inset: auto;
    min-height: 240px;
    margin-top: 18px;
  }
  .garage-active-stage__visual::after {
    bottom: 18px;
  }
  .garage-active-stage__car {
    max-height: 190px;
  }
  .garage-active-stage__actions {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 18px;
  }
  .garage-active-stage__actions .btn,
  .garage-active-stage__actions .garage-stats-toggle {
    width: 100%;
  }
  .garage-stats-toggle {
    display: inline-flex;
  }
  .garage-stats-panel {
    display: none;
  }
  .garage-active-shell.is-garage-stats-open .garage-stats-panel {
    display: flex;
  }
  .garage-fleet-rail {
    grid-auto-columns: minmax(280px, 84vw);
  }
  .warehouse-card.is-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(2, 8, 16, .58);
    backdrop-filter: blur(2px);
  }
  .warehouse-card .tooltip {
    position: fixed;
    z-index: 1301;
    top: 50%;
    left: 50%;
    right: auto;
    width: min(340px, calc(100vw - 24px));
    max-width: none;
    max-height: 78vh;
    overflow: auto;
    transform: translate(-50%, -50%) scale(.98);
  }
  .warehouse-card.is-open .tooltip {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* HUD monitor */
.balances { display: none; }
.hud-wrap { display:flex; justify-content:center; align-items:center; padding: 6px 0 10px; }
.hud-monitor {
  position: relative;
  width: min(776px, 100%);
  aspect-ratio: 776 / 216;
  height: auto;
  max-height: 216px;
  margin: 0 auto;
  background: url('../img/uidetales/monitorius.png') center / contain no-repeat;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.58)) drop-shadow(0 0 20px rgba(52,170,255,.22));
  overflow: hidden;
}

.hud-content {
  position: absolute;
  left: 7%;
  right: 9%;
  top: 18%;
  bottom: 18%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.hud-monitor img { object-fit: contain; }
.hud-icon {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  object-fit: contain;
}
.hud-monitor::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow:
    inset 0 0 56px rgba(60,130,200,.14),
    inset 0 0 120px rgba(20,60,120,.18);
  opacity: 0.42;
  pointer-events: none;
}
.hud-gauge {
  position: relative;
  width: 26%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
}
.hud-gauge-content {
  position: absolute;
  inset: 18%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap: 2px;
  color: #d7e7f8;
  text-shadow: 0 0 6px rgba(77,163,255,.35);
  font-size: 12px;
}
.hud-indicators { display:flex; gap: 6px; }
.hud-indicator img { width: 18px; height: 18px; opacity: 0.35; }
.hud-indicator--off img {
  opacity: 0.25;
  filter: blur(0.4px);
}
.hud-indicator--on img {
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(57,208,255,.6));
}
.hud-level { font-size: 30px; font-weight: 700; color: #ff6b6b; }
.hud-vip { display:flex; align-items:center; gap: 6px; }
.hud-vip img { width: 18px; height: 18px; opacity: 0.25; }
.hud-name { font-weight: 600; }
.hud-xp { display:flex; gap: 3px; }
.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 2px rgba(0,0,0,.6);
}
.hud-dot--on {
  background: rgba(77,163,255,.65);
  box-shadow: 0 0 4px rgba(77,163,255,.6);
}
.hud-xp-text { font-size: 12px; color: var(--muted); }
.hud-divider { width: 60%; height: 1px; background: rgba(255,255,255,.12); margin: 3px 0; }
.hud-energy { display:flex; align-items:center; gap: 4px; font-size: 12px; color: var(--muted); }
.hud-energy img { width: 16px; height: 16px; opacity: 0.4; }
.hud-skill img { width: 18px; height: 18px; opacity: 0.4; }
.hud-skill-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.hud-skill-link:hover img {
  opacity: 0.95;
  filter: drop-shadow(0 0 8px rgba(57,208,255,.5));
}

.hud-panel {
  position: relative;
  width: 60%;
  height: 100%;
  padding: 6% 6% 8% 6%;
}
.hud-corner-icons {
  position: absolute;
  top: 6%;
  right: 3%;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hud-corner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 42px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.hud-corner-icon .hud-icon {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
}
.hud-menu {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
  font-size: 13px;
  color: #d5e3f2;
}
.hud-panel .hud-menu {
  display: none;
}
.hud-menu-standalone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
  padding: 0 18px;
}
.hud-menu-standalone a,
.hud-menu-standalone button {
  color: #f1fbff;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(12,27,50,.72), rgba(8,17,34,.64));
  border: 1px solid rgba(72,190,255,.24);
  border-radius: 14px;
  padding: 6px 10px;
  font-size: 10px;
  cursor: pointer;
  box-shadow: inset 0 0 10px rgba(57,208,255,.08), 0 0 10px rgba(57,208,255,.08);
  min-width: 0;
  flex: 1 1 0;
  max-width: 112px;
  text-align: center;
  font-weight: 600;
  text-shadow: none;
  transition: .15s ease;
  line-height: 1.1;
  min-height: 32px;
}
.hud-menu-standalone a:hover,
.hud-menu-standalone button:hover {
  border-color: rgba(104,230,255,.36);
  box-shadow: inset 0 0 12px rgba(57,208,255,.12), 0 0 12px rgba(57,208,255,.12);
  transform: translateY(-1px);
}
.hud-menu-standalone .hud-menu__dropdown {
  top: 120%;
}
.hud-menu a,
.hud-menu button {
  color: #e1f3ff;
  text-decoration: none;
  background: rgba(6,10,14,.6);
  border: 1px solid rgba(57,208,255,.22);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: inset 0 0 8px rgba(57,208,255,.08);
}
.hud-menu a:hover,
.hud-menu button:hover {
  background: rgba(57,208,255,.16);
}
.hud-menu__more { position: relative; }
.hud-menu__dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background:
    radial-gradient(130% 120% at 20% 0, rgba(77,170,255,.16), transparent 65%),
    rgba(10,15,24,.96);
  border: 1px solid rgba(75,190,255,.45);
  border-radius: 10px;
  padding: 8px;
  display: none;
  min-width: 160px;
  z-index: 20;
  box-shadow: inset 0 0 18px rgba(57,208,255,.12), 0 12px 20px rgba(0,0,0,.42);
}
.hud-menu__dropdown a {
  display:block;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.hud-menu__dropdown a:hover {
  border-color: var(--border);
  background: rgba(255,255,255,.04);
}
.hud-menu__more:hover .hud-menu__dropdown {
  display: block;
}
.hud-menu__more.is-open .hud-menu__dropdown {
  display: block;
}
.hud-resources {
  position: absolute;
  top: 20%;
  left: 0;
  right: auto;
  display: grid;
  gap: 4px;
  align-items: start;
}
.hud-resource {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #d5e3f2;
  font-size: 16px;
}
.hud-resource img { width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(86,210,255,.5)); }
.hud-race-tools {
  position: absolute;
  top: 59%;
  right: 2.2%;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hud-race-cooldown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d5e3f2;
  font-size: 14px;
  line-height: 1;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,210,255,.18);
  background: linear-gradient(180deg, rgba(10,22,38,.28), rgba(7,15,28,.18));
  box-shadow: inset 0 0 12px rgba(57,208,255,.04);
}
.hud-race-cooldown img {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 8px rgba(86,210,255,.5));
}
.hud-engine-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,210,255,.18);
  background: linear-gradient(180deg, rgba(10,22,38,.28), rgba(7,15,28,.18));
  box-shadow: inset 0 0 12px rgba(57,208,255,.04);
  color: #d5e3f2;
  text-decoration: none;
  transition: transform .15s ease, filter .2s ease;
}
.hud-engine-check img {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 5px rgba(255, 200, 0, .25));
}
.hud-engine-check__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(120,210,255,.32);
  background: rgba(16,34,52,.35);
  color: #f3f9ff;
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 1;
}
.hud-engine-check.is-ok {
  filter: saturate(.82);
}
.hud-engine-check.is-ok img {
  opacity: .58;
}
.hud-engine-check.is-alert {
  filter: saturate(1.08);
}
.hud-engine-check.is-alert img {
  opacity: 1;
}
.hud-engine-check.is-alert .hud-engine-check__value {
  border-color: rgba(255,214,96,.58);
  background: rgba(56,42,8,.42);
  color: #ffd95a;
  box-shadow: 0 0 14px rgba(255,214,96,.16), inset 0 0 10px rgba(255,214,96,.08);
}
.hud-engine-check.is-ok .hud-engine-check__value {
  border-color: rgba(158,176,194,.22);
  background: rgba(28,35,44,.28);
  color: rgba(164,177,191,.9);
}
.hud-engine-check:hover {
  transform: translateY(-1px) scale(1.04);
}
.hud-race-cooldown__timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(120,210,255,.32);
  background: rgba(16,34,52,.35);
  color: #f3f9ff;
  font-size: 13px;
  letter-spacing: .04em;
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.hud-race-cooldown.is-active .hud-race-cooldown__timer {
  border-color: rgba(255,214,96,.58);
  background: rgba(56,42,8,.42);
  color: #ffd95a;
  box-shadow: 0 0 14px rgba(255,214,96,.16), inset 0 0 10px rgba(255,214,96,.08);
  animation: hudTimerPulse 1s ease-in-out infinite;
}
.hud-race-cooldown.is-idle .hud-race-cooldown__timer {
  border-color: rgba(158,176,194,.22);
  background: rgba(28,35,44,.28);
  color: rgba(164,177,191,.86);
  box-shadow: none;
}
.hud-city {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  font-size: 14px;
  color: #c6d7eb;
  border-top: 1px solid rgba(120,210,255,.32);
  padding-top: 6px;
  text-shadow: 0 0 8px rgba(84,194,255,.2);
  line-height: 1.15;
}
.hud-city__line,
.hud-city__travel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}
.hud-city__line {
  font-weight: 500;
  flex-wrap: wrap;
}
.hud-city__label {
  color: rgba(198,215,235,.86);
}
.hud-city__value {
  color: #eef7ff;
}
.hud-city__travel {
  display: inline-flex;
  color: rgba(214,232,247,.92);
}
.hud-city__travel-text {
  min-width: 0;
}
.hud-city__timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(120,210,255,.32);
  background: rgba(16,34,52,.35);
  color: #f3f9ff;
  font-size: .92em;
  line-height: 1.2;
  white-space: nowrap;
}
.hud-daily-goal {
  position: absolute;
  top: 10%;
  left: 30.5%;
  right: 1.8%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(94,210,255,.2);
  background: linear-gradient(180deg, rgba(8,20,36,.5), rgba(8,18,30,.4));
  box-shadow: inset 0 0 14px rgba(57,208,255,.07);
}
.hud-daily-goal.is-complete {
  border-color: rgba(127,229,171,.42);
  box-shadow: inset 0 0 16px rgba(80,216,160,.12), 0 0 12px rgba(80,216,160,.08);
}
.hud-daily-goal.is-claimed {
  border-color: rgba(146,184,212,.32);
}
.hud-daily-goal__icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,20,34,.5);
  border: 1px solid rgba(88,210,255,.22);
}
.hud-daily-goal__icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(70,206,255,.32));
}
.hud-daily-goal__body {
  min-width: 0;
}
.hud-daily-goal__label {
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: rgba(171,205,232,.75);
}
.hud-daily-goal__task {
  font-size: 12px;
  line-height: 1.2;
  color: #e9f6ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-daily-goal__progress {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(165,232,255,.92);
}
.hud-daily-goal__reward {
  margin-top: 1px;
  font-size: 11px;
  color: rgba(193,216,236,.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-daily-goal__notice {
  margin-top: 2px;
  font-size: 10px;
}
.hud-daily-goal__notice--ok {
  color: #8fe9b7;
}
.hud-daily-goal__notice--error {
  color: #ff9b9b;
}
.hud-daily-goal__action {
  display: inline-flex;
  align-items: center;
}
.hud-daily-goal__btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(125,232,184,.56);
  background: linear-gradient(180deg, rgba(38,124,86,.55), rgba(20,86,58,.45));
  color: #eafff2;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.hud-daily-goal__btn:hover {
  border-color: rgba(150,244,202,.72);
  box-shadow: 0 0 12px rgba(92,218,163,.2);
}
.hud-daily-goal__claimed,
.hud-daily-goal__pending {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
}
.hud-daily-goal__claimed {
  color: #9debc0;
}
.hud-daily-goal__pending {
  color: rgba(188,210,229,.84);
}

@keyframes hudGlow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}
@keyframes hudBlink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}
@keyframes hudTimerPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@media (max-width: 820px) {
  .hud-monitor { max-height: 260px; }
  .hud-content { left: 12%; right: 9%; top: 18%; bottom: 20%; gap: 14px; }
  .hud-gauge { width: 32%; }
  .hud-panel { width: 62%; }
  .hud-level { font-size: 26px; }
  .city-card {
    min-height: 132px;
  }
  .city-card__art {
    flex-basis: 92px;
    width: 92px;
    min-width: 92px;
  }
  .city-card__art img {
    max-width: 78px;
    max-height: 60px;
  }
  .car-top__grid { grid-template-columns: 1fr; grid-template-areas: none; }
  .car-display {
    grid-column: 1;
  }
  .stats-panel {
    grid-column: 1;
  }
  .left-slots,
  .bottom-slots {
    position: static;
    transform: none;
    width: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
  .bottom-slots { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .car-img-wrap {
    height: 164px;
    align-items: center;
    padding: 0 8px 2px;
  }
  .car-img-wrap::after {
    bottom: 8px;
    width: min(52%, 250px);
    height: 16px;
  }
  .car-top .car-img-wrap > .car-img {
    width: min(100%, 300px);
    max-width: 300px;
    max-height: 174px;
    margin-bottom: 3px;
    margin-top: 0;
  }
  .car-top__grid {
    background:
      radial-gradient(82% 62% at 50% 74%, rgba(8, 16, 28, .08), rgba(5, 10, 20, .24) 100%),
      linear-gradient(180deg, rgba(6, 12, 24, .28), rgba(5, 10, 20, .38)),
      url('../img/fonai/garazas.png') center center / cover no-repeat;
  }

  .car-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(120,210,255,.42);
    background: linear-gradient(180deg, rgba(14,32,52,.76), rgba(8,20,36,.84));
    color: #eaf6ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: inset 0 0 12px rgba(90,200,255,.12), 0 8px 16px rgba(0,0,0,.26);
    cursor: pointer;
  }
  .car-slots-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(120,210,255,.42);
    background: linear-gradient(180deg, rgba(14,32,52,.76), rgba(8,20,36,.84));
    color: #eaf6ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: inset 0 0 12px rgba(90,200,255,.12), 0 8px 16px rgba(0,0,0,.26);
    cursor: pointer;
  }
  .car-top__grid .left-slots,
  .car-top__grid .bottom-slots {
    display: none !important;
  }
  .car-top__grid:not(.is-car-slots-open) .car-img-wrap {
    display: flex !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    justify-content: center;
  }
  .car-top__grid:not(.is-car-slots-open) .car-img-wrap > .car-img {
    grid-area: auto !important;
    justify-self: auto !important;
    align-self: center !important;
  }
  .car-top__grid.is-car-slots-open .car-img-wrap {
    position: relative !important;
    z-index: 2;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    max-height: none;
    margin-top: 8px;
    padding: 14px !important;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border-radius: 16px;
    border: 1px solid rgba(88,186,242,.34);
    background:
      radial-gradient(120% 120% at 0% 0%, rgba(82, 186, 244, .2), rgba(0, 0, 0, 0) 62%),
      linear-gradient(180deg, rgba(6, 18, 32, .78), rgba(6, 16, 28, .72));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 22px rgba(0,0,0,.28);
    overflow: visible;
  }
  .car-top__grid.is-car-slots-open {
    overflow: hidden;
    position: relative;
    z-index: auto;
  }
  .car-top__grid.is-car-slots-open .left-slots,
  .car-top__grid.is-car-slots-open .bottom-slots {
    display: contents !important;
    position: static !important;
    width: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0;
  }
  .car-top__grid.is-car-slots-open .car-img-wrap > .car-img,
  .car-top__grid.is-car-slots-open .car-img-wrap::after {
    display: none !important;
  }
  .car-top__grid.is-car-slots-open .slot-box {
    width: 100%;
    min-height: 0;
  }
  .car-top__grid.is-car-slots-open .slot-box .icon-wrap {
    width: 100%;
    height: auto;
    min-height: 74px;
    max-height: none;
  }
  .car-top__grid.is-car-slots-open .slot-label {
    margin-bottom: 2px;
  }
  .car-slots-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10020;
    background: rgba(2, 8, 16, .66);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  .car-top__grid.is-car-slots-open .car-slots-backdrop {
    display: none;
  }
  body.is-car-slots-open {
    overflow: hidden;
  }
  body.is-car-slots-open .car-slots-backdrop {
    display: block !important;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.is-car-slots-open .car-slots-modal {
    --slot-cell-size: 104px;
    display: grid;
    position: fixed;
    z-index: 10021;
    top: 86px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 360px);
    grid-template-columns: repeat(2, var(--slot-cell-size));
    grid-template-areas:
      "engine suspension"
      "wheels brakes"
      "turbo nitro"
      "spoiler spoiler";
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(88, 186, 242, .34);
    background:
      radial-gradient(120% 120% at 0% 0%, rgba(82, 186, 244, .16), rgba(0, 0, 0, 0) 62%),
      linear-gradient(180deg, rgba(6, 18, 32, .38), rgba(6, 16, 28, .42));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .32);
  }
  body.is-car-slots-open .car-slots-modal .slot-box--engine { grid-area: engine; }
  body.is-car-slots-open .car-slots-modal .slot-box--suspension { grid-area: suspension; }
  body.is-car-slots-open .car-slots-modal .slot-box--wheels { grid-area: wheels; }
  body.is-car-slots-open .car-slots-modal .slot-box--brakes { grid-area: brakes; }
  body.is-car-slots-open .car-slots-modal .slot-box--turbo { grid-area: turbo; }
  body.is-car-slots-open .car-slots-modal .slot-box--nitro { grid-area: nitro; }
  body.is-car-slots-open .car-slots-modal .slot-box--spoiler {
    grid-area: spoiler;
    width: var(--slot-cell-size);
    justify-self: center;
  }
  body.is-car-slots-open .car-slots-modal .slot-box {
    width: var(--slot-cell-size);
    min-height: 0;
    gap: 6px;
  }
  body.is-car-slots-open .car-slots-modal .slot-box .icon-wrap {
    width: var(--slot-cell-size);
    height: var(--slot-cell-size);
    min-height: var(--slot-cell-size);
    max-height: var(--slot-cell-size);
  }
  body.is-car-slots-open .car-slots-modal .slot-label {
    font-size: 12px;
    margin-bottom: 0;
  }
  .car-top__grid.is-car-slots-open .car-img-wrap {
    display: flex !important;
    position: relative !important;
    transform: none !important;
    width: 100%;
    margin-top: 0;
    padding: 0 8px 2px !important;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .car-top__grid.is-car-slots-open .left-slots,
  .car-top__grid.is-car-slots-open .bottom-slots {
    display: none !important;
  }
  .car-top__grid.is-car-slots-open .car-img-wrap > .car-img {
    display: block !important;
  }
  .car-top__grid.is-car-slots-open .car-img-wrap::after {
    display: block !important;
  }
  .car-top__grid .stats-panel {
    display: none;
    position: fixed;
    margin: 0;
    left: 50%;
    top: 86px;
    bottom: auto;
    transform: translateX(-50%);
    width: min(92vw, 360px);
    max-height: calc(100vh - 110px);
    min-height: 0;
    height: auto;
    overflow: auto;
    z-index: 10021;
    border: 1px solid rgba(88, 186, 242, .34);
    border-radius: 14px;
    padding: 12px;
    background:
      radial-gradient(120% 120% at 0% 0%, rgba(82, 186, 244, .16), rgba(0, 0, 0, 0) 62%),
      linear-gradient(180deg, rgba(6, 18, 32, .38), rgba(6, 16, 28, .42));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px rgba(0,0,0,.32);
  }
  .car-top__grid.is-car-stats-open .stats-panel {
    display: flex;
    align-items: stretch;
    align-self: flex-start;
  }
  .car-stats-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(120,210,255,.34);
    background: linear-gradient(180deg, rgba(16, 34, 58, .68), rgba(8, 18, 34, .74));
    color: #eaf5ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .car-stats-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10020;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .car-top__grid.is-car-stats-open .car-stats-backdrop {
    display: block;
  }
}

@media (max-width: 620px) {
  .hud-monitor { max-height: 200px; }
  .hud-content { left: 10%; right: 7%; top: 20%; bottom: 20%; }
  .hud-gauge { width: 34%; }
  .hud-panel { width: 64%; }
  .hud-resources { gap: 8px; }
  .hud-resource img { width: 18px; height: 18px; }
  .hud-level { font-size: 22px; }
  .hud-city { font-size: 12px; }
  .hud-city__timer {
    min-width: 38px;
    padding: 1px 5px;
  }
}

@media (max-width: 520px) {
  .mechanic-overview {
    grid-template-columns: 1fr;
  }
  .mechanic-bay__actions .btn {
    width: 100%;
  }
  .mechanic-metrics {
    grid-template-columns: 1fr;
  }
  .mechanic-job__title {
    font-size: 24px;
  }
  .mechanic-job__countdown b {
    font-size: 34px;
  }
  .mechanic-body-card__stats {
    grid-template-columns: 1fr;
  }
  .garage-section-head {
    align-items: stretch;
  }
  .garage-section-head .btn {
    width: 100%;
  }
  .garage-active-stage__name {
    font-size: 28px;
  }
  .garage-active-stage__chips {
    display: grid;
    grid-template-columns: 1fr;
  }
  .garage-chip {
    justify-content: center;
  }
  .garage-car-card__actions .btn,
  .garage-car-card__actions form,
  .garage-car-card__actions form .btn {
    width: 100%;
  }
  .city-card {
    min-height: 0;
    align-items: center;
  }
  .city-card__art {
    flex-basis: 76px;
    width: 76px;
    min-width: 76px;
    padding-top: 8px;
  }
  .city-card__art img {
    max-width: 64px;
    max-height: 50px;
  }
  .hud-monitor {
    max-height: none;
    height: auto;
    aspect-ratio: auto;
    background-size: 100% 100%;
    padding: 12px 16px;
  }
  .hud-content {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }
  .hud-gauge { width: 48%; max-width: 160px; }
  .hud-panel { width: 100%; height: auto; padding: 4% 4% 2% 4%; }
  .hud-menu,
  .hud-resources,
  .hud-city {
    position: static;
  }
  .hud-menu { justify-content: center; }
  .hud-resources { justify-content: center; font-size: 13px; gap: 8px; }
  .hud-resource { font-size: 13px; }
  .hud-city { text-align: center; border-top: none; padding-top: 0; }
  .hud-city__line,
  .hud-city__travel {
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .hud-monitor { max-height: 210px; }
  .hud-gauge { width: 55%; }
  .hud-level { font-size: 20px; }
  .hud-xp-text { font-size: 11px; }
  .hud-resource img { width: 16px; height: 16px; }
  .hud-resource { font-size: 12px; }
.hud-menu a,
.hud-menu button {
    padding: 3px 8px;
    font-size: 11px;
  }
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.online-widget {
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 50;
  color: #d7ecff;
  font-size: 12px;
}
.online-widget details {
  background: linear-gradient(180deg, rgba(14,26,40,.95), rgba(8,18,30,.95));
  border: 1px solid rgba(90,160,220,.5);
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 6px 14px rgba(0,0,0,.35), inset 0 0 12px rgba(90,160,220,.12);
}
.online-widget summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
}
.online-widget summary::-webkit-details-marker {
  display: none;
}
.online-title {
  font-weight: 600;
  letter-spacing: .2px;
}
.online-status {
  color: #7fc8ff;
  font-size: 12px;
}
.online-list {
  border-top: 1px solid rgba(90,160,220,.35);
  padding: 8px 10px 10px;
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}
.online-list a {
  color: #e7f5ff;
  text-decoration: none;
}
.online-list a:hover {
  color: var(--accent-strong);
}

@media (max-width: 640px) {
  .online-widget {
    left: 10px;
    bottom: 10px;
  }
}

@media (max-width: 720px) {
  .club-header {
    grid-template-columns: 1fr;
  }
  .club-header__cell {
    border-right: 0;
    border-bottom: 1px solid rgba(110, 198, 255, .28);
  }
  .club-header__cell:last-child {
    border-bottom: 0;
  }
  .club-tabs {
    grid-template-columns: 1fr;
  }
  .club-tab {
    border-right: 1px solid rgba(112, 202, 255, .26);
    border-bottom: 1px solid rgba(112, 202, 255, .26);
  }
  .club-tab:last-child { border-bottom: 0; }
  .club-row {
    min-width: 680px;
  }
  .club-member a {
    max-width: 160px;
  }
  .club-help-inline {
    min-width: 150px;
  }
}

/* Mobile-first HUD refinements */
@media (max-width: 900px) {
  .hud-daily-goal {
    display: none !important;
  }
  .container {
    padding: 0 10px;
  }
  .panel {
    padding: 12px;
    border-radius: 14px;
  }
  .btn,
  .race-tab {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hud-menu-standalone {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0 14px;
    overflow: visible;
  }
  .hud-menu-standalone a,
  .hud-menu-standalone button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 13px;
  }
  .race-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .race-tabs::-webkit-scrollbar {
    display: none;
  }
  .race-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .side-drawer-toggle {
    width: 20px;
    height: 68px;
    border-radius: 0 12px 12px 0;
  }
  .right-drawer-toggle {
    width: 20px;
    height: 72px;
    border-radius: 12px 0 0 12px;
  }
  .side-drawer {
    width: min(280px, calc(100vw - 30px));
    transform: translateX(calc(-100% + 8px));
  }
  .right-drawer {
    width: min(320px, calc(100vw - 30px));
    transform: translateX(calc(100% - 8px));
  }
  body.has-side-drawer-open .side-drawer-toggle {
    left: min(280px, calc(100vw - 30px));
  }
  body.has-right-drawer-open .right-drawer-toggle {
    right: min(320px, calc(100vw - 30px));
  }
  .side-drawer__panel {
    padding: 16px 10px 12px;
    gap: 10px;
  }
  .right-drawer__panel {
    padding: 8px 8px 10px;
    gap: 8px;
  }
  .right-drawer__online {
    padding: 8px 10px;
    gap: 5px;
  }
  .right-drawer__online-title {
    font-size: 14px;
  }
  .right-drawer__online-list {
    max-height: 48px;
  }
  .right-drawer__tab {
    min-height: 36px;
    font-size: 11px;
  }
  .right-drawer__message,
  .right-drawer__pm-row {
    padding: 9px 10px;
    border-radius: 12px;
  }
  .right-drawer__pm-msg {
    max-width: 92%;
    padding: 8px 9px;
    border-radius: 12px;
  }
  .right-drawer__text,
  .right-drawer__pm-body {
    font-size: 13px;
  }
  .right-drawer__composer {
    padding: 8px;
  }
  .right-drawer__composer input,
  .right-drawer__composer select {
    padding: 9px 10px;
    border-radius: 10px;
  }
  .right-drawer__actions button {
    min-height: 38px;
    border-radius: 10px;
  }
  .right-drawer__send-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .side-drawer__name {
    font-size: 18px;
  }
  .side-drawer__status {
    gap: 6px;
  }
  .side-drawer__status-chip {
    min-height: 32px;
    padding: 7px 8px;
    font-size: 10px;
  }
  .side-drawer__status-chip b {
    font-size: 11px;
  }
  .side-drawer__summary {
    gap: 6px;
  }
  .side-drawer__summary .side-drawer__status-chip {
    min-height: 32px;
    padding: 6px 8px;
  }
  .side-drawer__summary .side-drawer__status-chip img {
    width: 12px;
    height: 12px;
  }
  .side-drawer__link {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 9px 10px;
    border-radius: 14px;
  }
  .side-drawer__icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  .side-drawer__icon img {
    width: 16px;
    height: 16px;
  }
  .side-drawer__link-title {
    font-size: 14px;
  }
  .side-drawer__link-meta {
    font-size: 11px;
  }
  .top-hero {
    padding: 4px 0 8px;
  }
  .top-hero__inner {
    width: calc(100% - 12px);
    padding: 6px 6px 8px;
    border-radius: 12px;
  }
  .slots-shell {
    aspect-ratio: 1437 / 440;
  }
  .menu-link--mobile-hide {
    display: none !important;
  }
  .slots-shell__row--menu {
    left: 6.5%;
    right: 6.5%;
  }
  .hud-menu-standalone {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0 8px;
  }
  .hud-menu-standalone a,
  .hud-menu-standalone button {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    min-height: 30px;
    padding: 5px 8px;
    font-size: 9px;
    border-radius: 12px;
  }
  .topbar__inner {
    padding: 4px 0 2px;
    gap: 6px;
    align-items: center;
  }
  .authlinks {
    gap: 6px;
    font-size: 11px;
  }
  .authlinks .muted {
    font-size: 11px;
  }
  .link {
    font-size: 11px;
  }
  .brand a {
    font-size: 13px;
  }
  .hud-wrap {
    width: calc(100% + 12px);
    margin-left: -6px;
    padding: 2px 0 8px;
  }
  .hud-monitor {
    width: 100%;
    margin-left: 0;
    max-height: none;
    aspect-ratio: 1353 / 430;
    background: url('../img/uidetales/hudmobile.png') center / 100% 100% no-repeat;
    padding: 0;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.55));
  }
  .hud-content {
    position: absolute;
    left: 3.5%;
    right: 3.5%;
    top: 10%;
    bottom: 10%;
    display: block;
  }
  .hud-gauge {
    position: absolute;
    left: 50%;
    top: 53%;
    transform: translate(-50%, -50%);
    width: 27%;
    max-width: 96px;
    aspect-ratio: 1 / 1;
  }
  .hud-gauge-content {
    position: absolute;
    top: 18%;
    right: 18%;
    bottom: 22%;
    left: 18%;
    gap: 2px;
    text-align: center;
    padding: 0;
    justify-content: center;
  }
  .hud-level {
    font-size: 18px;
    line-height: 1;
  }
  .hud-vip { min-width: 0; gap: 4px; }
  .hud-vip img { width: 9px; height: 9px; }
  .hud-name {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 7px;
  }
  .hud-indicator img { width: 8px; height: 8px; }
  .hud-xp {
    justify-content: center;
    gap: 2px;
  }
  .hud-xp-text { font-size: 6px; }
  .hud-dot { width: 4px; height: 4px; }
  .hud-divider { width: 56%; margin: 2px 0; }
  .hud-energy {
    justify-content: center;
    gap: 2px;
    font-size: 6px;
  }
  .hud-energy img { width: 6px; height: 6px; }
  .hud-skill img { width: 9px; height: 9px; }
  .hud-panel {
    width: 100%;
    height: 100%;
    padding: 0;
  }
  .hud-corner-icons {
    display: none;
  }
  .hud-resources {
    position: absolute;
    top: 24%;
    left: 1.5%;
    right: auto;
    width: 20%;
    gap: 5px;
    align-items: start;
  }
  .hud-resource {
    min-width: 0;
    gap: 3px;
    padding: 0;
    font-size: 7px;
    border-radius: 0;
    line-height: 1.05;
    justify-content: flex-start;
  }
  .hud-resource img {
    width: 6px;
    height: 6px;
  }
  .hud-race-tools {
    top: 24%;
    left: 24%;
    gap: 3px;
  }
  .hud-race-cooldown {
    padding: 1px 4px;
    gap: 3px;
    border-color: rgba(120,210,255,.12);
  }
  .hud-race-cooldown img {
    width: 6px;
    height: 6px;
  }
  .hud-race-cooldown__timer {
    min-width: 30px;
    padding: 1px 4px;
    font-size: 7px;
  }
  .hud-city {
    position: absolute;
    left: auto;
    right: 3.5%;
    top: 28%;
    width: 26%;
    bottom: auto;
    font-size: 8px;
    border-top: none;
    padding-top: 0;
    line-height: 1.2;
    text-align: center;
  }
  .hud-city__line,
  .hud-city__travel {
    gap: 2px;
    justify-content: center;
  }
  .hud-city__line {
    align-items: center;
    flex-direction: column;
    gap: 1px;
  }
  .hud-city__travel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3px;
  }
  .hud-city__label {
    font-size: 7px;
    line-height: 1;
    opacity: .8;
  }
  .hud-city__value,
  .hud-city__travel-text {
    font-size: 10px;
    line-height: 1.15;
  }
  .hud-city__travel-text {
    max-width: 100%;
  }
  .hud-city__timer {
    min-width: 36px;
    margin-top: 2px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 7px;
    align-self: center;
  }
  .hud-monitor::after {
    opacity: .18;
  }
  body .panel > div[style*="grid-template-columns:1.2fr 0.8fr"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  body .panel > div[style*="grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px;"] {
    grid-template-columns: 1fr !important;
  }
  body .panel img[alt="Varzovo auto"]:not(.race-result-hero__car-img),
  body .panel img[alt="Tavo auto"]:not(.race-result-hero__car-img) {
    height: 180px !important;
    max-height: 180px !important;
    padding: 6px;
  }
  body .panel form button.tournament-btn > div:first-child {
    font-size: 20px;
    line-height: 1.05;
  }
  body .panel form button.tournament-btn {
    min-height: 74px;
    padding: 10px 12px !important;
    border-radius: 14px;
    gap: 3px;
  }
  body .panel form button.tournament-btn > div:last-child {
    font-size: 11px !important;
    margin-top: 0;
  }
  .race-parts-compare {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .online-widget {
    display: none;
  }
}

@media (max-width: 420px) {
  .side-drawer__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .container {
    padding: 0 8px;
  }
  .panel {
    padding: 10px;
    border-radius: 12px;
  }
  .hud-gauge-content {
    top: 19%;
    right: 17%;
    bottom: 23%;
    left: 17%;
    gap: 1px;
  }
  .hud-name {
    max-width: 56px;
  }
  .hud-level {
    font-size: 15px;
  }
  .hud-resources {
    width: 20%;
    left: 1.5%;
  }
  .hud-resource {
    font-size: 6px;
    gap: 3px;
  }
  .hud-resource img {
    width: 5px;
    height: 5px;
  }
  .hud-race-tools {
    left: 23%;
  }
  .hud-race-cooldown__timer {
    min-width: 28px;
    font-size: 6px;
  }
  .hud-city {
    right: 3%;
    top: 27%;
    width: 27%;
    font-size: 7px;
  }
  .hud-city__value,
  .hud-city__travel-text,
  .hud-city__timer {
    font-size: 8px;
  }
  .hud-indicators {
    gap: 4px;
  }
  .hud-indicator img { width: 7px; height: 7px; }
  .hud-menu-standalone a,
  .hud-menu-standalone button {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 10px;
    border-radius: 12px;
  }
  body .panel form button.tournament-btn > div:first-child {
    font-size: 18px;
  }
  body .panel form button.tournament-btn {
    min-height: 64px;
    padding: 8px 10px !important;
    gap: 2px;
  }
  body .panel form button.tournament-btn > div:last-child {
    font-size: 10px !important;
    line-height: 1.15;
  }
  .race-parts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
}

/* Race + car mobile fixes */
@media (max-width: 900px) {
  .race-visual-stage {
    min-height: 520px;
    padding: 12px;
  }
  .race-visual-overlay--left {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
  }
  .race-visual-overlay--right {
    top: 12px;
    right: 12px;
    width: min(46%, 260px);
  }
  .race-visual-overlay--bottom {
    left: 12px;
    right: 12px;
    bottom: 8px;
  }
  .race-stats-card {
    padding: 12px;
  }
  .race-stats-card__title {
    font-size: 18px;
  }
  .race-stats-grid {
    gap: 6px 10px;
    font-size: 12px;
  }
  .race-car-slot--opponent {
    left: 3%;
    bottom: 106px;
  }
  .race-car-slot--player {
    left: 32%;
    bottom: 106px;
  }
  .race-car-wrap {
    width: 266px;
    height: 182px;
  }
  .race-car-slot--player .race-car-wrap {
    width: 266px;
    height: 182px;
  }
  .race-car-slot--opponent .race-car-wrap > .race-car-img,
  .race-car-slot--player .race-car-wrap > .race-car-img {
    display: block;
    transform-origin: center bottom;
  }
  .race-car-slot--opponent .race-car-wrap > .race-car-img {
    transform: translateY(0) scale(1.22) !important;
  }
  .race-car-slot--player .race-car-wrap > .race-car-img {
    transform: translateY(24px) scale(1.22) !important;
  }
  .race-track-launcher {
    gap: 6px;
    padding: 6px 8px 4px;
  }
  .race-track-card__frame {
    height: 58px;
  }
  .race-tournament-status {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .race-tournament-status__side {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .race-visual-stage {
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .race-visual-overlay,
  .race-car-slot {
    position: static;
    width: 100%;
    max-width: 100%;
  }
  .race-visual-overlay--left,
  .race-visual-overlay--right,
  .race-visual-overlay--bottom {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
  .race-visual-overlay--left {
    order: 1;
    width: 100%;
  }
  .race-car-slot--opponent,
  .race-car-slot--player {
    order: 2;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: calc(50% - 5px);
    max-width: calc(50% - 5px);
  }
  .race-visual-overlay--right {
    order: 3;
    width: min(92vw, 430px);
    display: none;
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 14px !important;
    transform: translateX(-50%);
    z-index: 1400;
    max-width: calc(100vw - 20px);
  }
  .race-visual-stage.is-player-stats-open .race-visual-overlay--right {
    display: block;
  }
  .race-player-stats-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(2, 8, 16, .62);
    backdrop-filter: blur(2px);
  }
  .race-visual-stage.is-player-stats-open .race-player-stats-backdrop {
    display: block;
  }
  .race-visual-overlay--bottom {
    order: 4;
    width: 100%;
  }
  .race-player-info-btn {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(92vw, 430px);
    min-height: 34px;
    margin: 2px auto 0;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(120,210,255,.42);
    background: linear-gradient(180deg, rgba(14,32,52,.76), rgba(8,20,36,.84));
    color: #eaf6ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: inset 0 0 12px rgba(90,200,255,.12), 0 8px 16px rgba(0,0,0,.26);
    position: relative;
    z-index: 1200;
    pointer-events: auto;
    touch-action: manipulation;
  }
  .race-player-info-btn:active {
    transform: translateY(1px);
  }
  .race-opponent-badge {
    min-width: 0;
    width: 100%;
  }
  .race-opponent-badge__name,
  .race-opponent-badge__name a {
    font-size: 20px;
  }
  .race-stats-card {
    width: 100%;
    padding: 14px 14px 12px;
    border-radius: 14px;
    max-height: min(70vh, 420px);
    overflow: auto;
    box-shadow: 0 16px 36px rgba(0,0,0,.42), inset 0 0 18px rgba(255,214,120,.04);
  }
  .race-stats-card__title {
    margin-bottom: 8px;
    font-size: 19px;
  }
  .race-stats-card__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .race-stats-grid {
    gap: 8px 12px;
    font-size: 13px;
  }
  .race-car-slot {
    position: relative;
    justify-content: center;
    align-items: flex-end;
    min-height: 198px;
    padding: 30px 4px 4px;
    border-radius: 0;
    background: transparent;
    border: 0 !important;
    overflow: visible;
  }
  .race-car-slot::after {
    content: none;
  }
  .race-car-wrap,
  .race-car-slot--player .race-car-wrap {
    width: min(100%, 268px);
    height: 176px;
  }
  .race-car-wrap > .race-car-img {
    max-height: 164px;
    transform: translateY(34px) scale(1.36) !important;
    transform-origin: center bottom;
  }
  .race-car-slot--player .race-car-wrap > .race-car-img {
    transform: translateY(62px) scale(1.36) !important;
  }
  .race-car-slot--player {
    pointer-events: auto !important;
    cursor: default;
  }
  .race-car-slot--empty {
    min-height: 90px;
    font-size: 12px;
  }
  .race-controls-row {
    width: 100%;
  }
  .race-track-launcher {
    width: 100%;
  }
  .race-track-card__label {
    font-size: 9px;
  }

  .car-page {
    padding: 2px;
  }
  .car-img-wrap {
    height: auto;
    padding: 6px 8px 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
  }
  .car-img-wrap {
    --car-slot-size: 82px;
    display: grid;
    grid-template-columns: var(--car-slot-size) minmax(170px, 1fr) var(--car-slot-size);
    grid-template-areas:
      "engine suspension wheels"
      "brakes car spoiler"
      "turbo car nitro";
    justify-content: center;
    align-items: start;
    column-gap: 10px;
    row-gap: 6px;
  }
  .left-slots,
  .bottom-slots {
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
    align-items: initial;
    align-content: initial;
    justify-content: initial;
    display: contents;
  }
  .car-top .slot-box,
  .car-top .left-slots .slot-box {
    width: var(--car-slot-size);
    min-height: 78px;
    gap: 4px;
    justify-content: flex-start;
  }
  .car-top .slot-box .icon-wrap,
  .car-top .left-slots .slot-box .icon-wrap {
    width: var(--car-slot-size);
    height: var(--car-slot-size);
    min-height: var(--car-slot-size);
    max-height: var(--car-slot-size);
  }
  .car-top .slot-label {
    font-size: 10px;
    line-height: 1.05;
    min-height: 12px;
    text-align: center;
  }
  .left-slots {
    order: initial;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 0;
  }
  .bottom-slots {
    order: initial;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 0;
    margin-top: 0 !important;
  }
  .car-top .slot-box {
    justify-self: center;
  }
  .car-top .slot-box--engine { grid-area: engine; }
  .car-top .slot-box--suspension { grid-area: suspension; }
  .car-top .slot-box--wheels { grid-area: wheels; }
  .car-top .slot-box--brakes { grid-area: brakes; }
  .car-top .slot-box--spoiler { grid-area: spoiler; }
  .car-top .slot-box--turbo { grid-area: turbo; }
  .car-top .slot-box--nitro { grid-area: nitro; }
  .car-top .car-img-wrap > .car-img {
    grid-area: car;
    align-self: center;
    justify-self: center;
    width: min(100%, 300px);
    max-width: 300px;
    max-height: 220px;
    margin-bottom: 0;
    margin-top: 0;
  }
  .slot-media--empty {
    border-radius: 12px;
  }
  .car-img-wrap::after {
    bottom: 8px;
  }
  .car-display__head {
    padding: 12px;
  }
  .car-top .stats-panel {
    padding: 12px;
  }
  .car-specs__label,
  .car-specs__value {
    font-size: 13px;
  }
  .slot-pop,
  .left-slots .slot-pop,
  .bottom-slots .slot-pop,
  .bottom-slots .slot-box:first-child .slot-pop,
  .bottom-slots .slot-box:nth-child(2) .slot-pop,
  .bottom-slots .slot-box:nth-last-child(-n+2) .slot-pop {
    position: fixed;
    z-index: 1200;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(320px, calc(100vw - 24px));
    max-height: 80vh;
    overflow: auto;
    transform: translate(-50%, -50%) scale(.98);
  }
  .slot-box.is-open .slot-pop,
  .left-slots .slot-box.is-open .slot-pop,
  .bottom-slots .slot-box.is-open .slot-pop,
  .bottom-slots .slot-box:first-child.is-open .slot-pop,
  .bottom-slots .slot-box:nth-child(2).is-open .slot-pop,
  .bottom-slots .slot-box:nth-last-child(-n+2).is-open .slot-pop {
    transform: translate(-50%, -50%) scale(1);
  }
}



/* PC HUD + menu redesign */
@media (min-width: 901px) {
  .drawer-pin {
    display: inline-flex;
  }
  .topbar__inner {
    padding: 8px 0 6px;
  }
  .hud-wrap {
    padding: 8px 0 0;
  }
  .hud-monitor {
    width: min(980px, 100%);
    max-height: 260px;
    aspect-ratio: 980 / 255;
    filter: drop-shadow(0 16px 34px rgba(0,0,0,.58)) drop-shadow(0 0 26px rgba(52,170,255,.24));
  }
  .hud-monitor::before {
    content: "";
    position: absolute;
    left: 7%;
    right: 6%;
    bottom: 9%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(86,215,255,.85), transparent);
    box-shadow: 0 0 12px rgba(80,210,255,.65), 0 0 24px rgba(80,210,255,.35);
    pointer-events: none;
  }
  .hud-content {
    left: 6.5%;
    right: 7%;
    top: 16%;
    bottom: 16%;
    gap: 16px;
  }
  .hud-gauge {
    width: 28%;
    max-width: 250px;
  }
  .hud-gauge-content {
    top: 17%;
    right: 17%;
    bottom: 21%;
    left: 21%;
  }
  .hud-level {
    font-size: 34px;
    line-height: 1;
  }
  .hud-name {
    font-size: 16px;
  }
  .hud-xp-text,
  .hud-energy {
    font-size: 12px;
  }
  .hud-panel {
    width: 63%;
    padding: 5% 6% 8% 6%;
  }
  .hud-corner-icons {
    top: 8%;
    right: 4%;
    gap: 10px;
  }
  .hud-corner-icon {
    width: 58px;
    height: 46px;
  }
  .hud-corner-icon .hud-icon {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
  }
  .hud-resources {
    top: 14%;
    gap: 8px;
  }
  .hud-resource {
    min-width: 0;
    font-size: 18px;
    letter-spacing: .2px;
  }
  .hud-resource img {
    width: 30px;
    height: 30px;
  }
  .hud-city {
    left: 3%;
    right: 6%;
    bottom: 7%;
    font-size: 18px;
    border-top-color: rgba(120,210,255,.45);
    padding-top: 8px;
  }
  .hud-daily-goal {
    top: 9%;
    left: 31%;
    right: 2%;
    padding: 8px 12px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }
  .hud-race-tools {
    top: 56%;
    right: 2.4%;
    left: auto;
  }
  .hud-daily-goal__icon-wrap {
    width: 44px;
    height: 44px;
  }
  .hud-daily-goal__icon {
    width: 34px;
    height: 34px;
  }
  .hud-daily-goal__task {
    font-size: 13px;
  }
  .hud-daily-goal__progress,
  .hud-daily-goal__reward {
    font-size: 12px;
  }
  .hud-daily-goal__btn {
    height: 28px;
    font-size: 12px;
  }
  .hud-city__travel {
    display: inline-flex;
  }
  .hud-city__timer {
    min-width: 52px;
    padding: 2px 8px;
  }

  .hud-menu-standalone {
    gap: 8px;
    padding: 0 26px;
    width: 100%;
    margin: 0;
    justify-content: center;
    border-bottom: 0;
  }
  .hud-menu-standalone a,
  .hud-menu-standalone button {
    min-width: 0;
    flex: 1 1 0;
    max-width: 112px;
    min-height: 32px;
    padding: 6px 9px;
    font-size: 10px;
    border-radius: 12px;
  }
  .hud-menu-standalone a:hover,
  .hud-menu-standalone button:hover {
    transform: translateY(-1px);
    border-color: rgba(144,234,255,.72);
    box-shadow: inset 0 0 16px rgba(118,229,255,.16), 0 0 16px rgba(57,208,255,.18);
  }
  .hud-menu-standalone .hud-menu__dropdown {
    top: calc(100% + 6px);
    right: 0;
    min-width: 230px;
  }
  .hud-menu__dropdown a {
    font-size: 16px;
  }

  .slots-shell {
    width: min(980px, 100%);
    margin: -12px auto 8px;
  }
  .slots-shell__row {
    left: 5.6%;
    right: 5.6%;
  }
  .slots-shell__row--menu {
    top: 6.5%;
    height: 31%;
  }
  .slots-shell__row--ticker {
    bottom: 9%;
    height: 31%;
  }
  .board-ticker {
    padding: 0 18px;
  }
  .board-ticker__label {
    font-size: 13px;
  }
  .board-ticker__line {
    height: 20px;
  }
  .board-ticker__item {
    font-size: 15px;
  }
}

@keyframes hudLedPulse {
  0%, 100% { opacity: .45; }
  50% { opacity: .95; }
}

.mobile-status-bar {
  display: none;
}

.mobile-daily-goal {
  display: none;
}

.mobile-hud-secondary {
  display: none;
}

.mobile-engine-pill {
  display: none;
}

@media (max-width: 900px) {
  .hud-wrap {
    display: none !important;
  }
  .mobile-status-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 8px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(88, 186, 242, .34);
    background:
      radial-gradient(125% 120% at 0% 0%, rgba(88, 192, 248, .16), rgba(0, 0, 0, 0) 60%),
      linear-gradient(180deg, rgba(9, 20, 34, .94), rgba(6, 14, 24, .96));
    box-shadow: inset 0 0 18px rgba(88, 184, 238, .12), 0 10px 20px rgba(0, 0, 0, .3);
  }
  .mobile-status-bar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 14px;
    border: 1px solid rgba(72,190,255,.2);
    background: linear-gradient(180deg, rgba(12,27,50,.7), rgba(8,17,34,.62));
    color: rgba(205,228,248,.9);
    box-shadow: inset 0 0 10px rgba(57,208,255,.06);
  }
  .mobile-status-bar__item img {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(77,210,255,.3));
    opacity: .95;
  }
  .mobile-engine-check {
    display: none;
  }
  .mobile-hud-secondary {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 8px;
  }
  .mobile-engine-pill {
    flex: 0 0 auto;
    min-width: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 8px;
    border-radius: 12px;
    border: 1px solid rgba(88, 186, 242, .28);
    background:
      radial-gradient(130% 120% at 0% 0%, rgba(88, 192, 248, .14), rgba(0, 0, 0, 0) 62%),
      linear-gradient(180deg, rgba(9, 20, 34, .94), rgba(6, 14, 24, .96));
    box-shadow: inset 0 0 14px rgba(88, 184, 238, .1), 0 6px 12px rgba(0, 0, 0, .22);
    text-decoration: none;
    color: rgba(190, 212, 230, .92);
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .mobile-engine-pill img {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 4px rgba(255, 200, 0, .25));
  }
  .mobile-engine-pill.is-ok img {
    opacity: .58;
  }
  .mobile-engine-pill.is-alert {
    filter: saturate(1.08);
    color: #ffd95a;
  }
  .mobile-engine-pill.is-alert span {
    text-shadow: 0 0 8px rgba(255, 214, 96, .24);
  }
  .mobile-engine-pill:hover {
    transform: translateY(-1px);
  }
  .mobile-status-bar__label {
    display: block;
    color: rgba(188,216,240,.9);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .mobile-status-bar__value {
    margin-left: auto;
    color: #f4fbff;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    max-width: 64%;
    font-variant-numeric: tabular-nums;
  }
  .mobile-status-bar__value--timer {
    font-variant-numeric: tabular-nums;
    letter-spacing: .03em;
    font-size: 11px;
  }
  .mobile-status-bar__value--idle {
    color: rgba(176, 194, 208, .78);
  }
  .mobile-status-bar__item--city .mobile-status-bar__value {
    max-width: 82%;
  }
  .mobile-status-bar__item[data-js="race-cooldown-holder"].is-active .mobile-status-bar__value {
    color: #ffd75f;
    text-shadow: 0 0 10px rgba(255, 215, 95, .2);
  }
  .mobile-status-bar__item[data-js="race-cooldown-holder"].is-idle .mobile-status-bar__value {
    color: rgba(176, 194, 208, .84);
  }
  .slots-shell {
    margin: 2px auto 8px;
  }
  .mobile-daily-goal {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex: 1 1 auto;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(88, 186, 242, .28);
    background:
      radial-gradient(130% 120% at 0% 0%, rgba(88, 192, 248, .14), rgba(0, 0, 0, 0) 62%),
      linear-gradient(180deg, rgba(9, 20, 34, .94), rgba(6, 14, 24, .96));
    box-shadow: inset 0 0 14px rgba(88, 184, 238, .1), 0 6px 12px rgba(0, 0, 0, .22);
    color: #d8ebfb;
  }
  .mobile-daily-goal.is-complete {
    border-color: rgba(103, 228, 157, .45);
  }
  .mobile-daily-goal.is-claimed {
    border-color: rgba(255, 207, 92, .5);
  }
  .mobile-daily-goal__head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    min-width: 0;
  }
  .mobile-daily-goal__title-wrap {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
  }
  .mobile-daily-goal__title {
    font-weight: 700;
    color: #f4fbff;
    letter-spacing: .01em;
    font-size: 12px;
    white-space: nowrap;
  }
  .mobile-daily-goal__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(212, 233, 247, .92);
    font-size: 11px;
    font-weight: 600;
  }
  .mobile-daily-goal__progress {
    font-weight: 800;
    color: #8fe3ff;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    margin-left: auto;
  }
  .mobile-daily-goal__task {
    display: none;
  }
  .mobile-daily-goal__reward {
    display: none;
  }
  .mobile-daily-goal__notice {
    grid-column: 1 / -1;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.3;
  }
  .mobile-daily-goal__notice--ok {
    color: #9df6bf;
  }
  .mobile-daily-goal__notice--error {
    color: #ff9da7;
  }
  .mobile-daily-goal__action {
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
  }
  .mobile-daily-goal__btn {
    border: 1px solid rgba(120, 233, 182, .55);
    border-radius: 999px;
    padding: 4px 10px;
    background: linear-gradient(180deg, rgba(44, 143, 101, .95), rgba(29, 100, 71, .96));
    color: #eafff3;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.1;
  }
  .mobile-daily-goal__state {
    font-size: 11px;
    font-weight: 700;
    color: #cbe6ff;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .mobile-status-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 7px;
    gap: 6px;
  }
  .mobile-status-bar__item {
    min-height: 30px;
    padding: 5px 7px;
  }
  .mobile-status-bar__label {
    font-size: 9px;
  }
  .mobile-status-bar__value {
    font-size: 10px;
  }
.mobile-status-bar__value--timer {
    font-size: 10px;
  }
  .mobile-daily-goal {
    padding: 7px 9px;
    gap: 6px;
  }
  .mobile-hud-secondary {
    gap: 6px;
  }
  .mobile-engine-pill {
    min-width: 66px;
    padding: 7px 7px;
    font-size: 10px;
  }
  .mobile-engine-pill img {
    width: 14px;
    height: 14px;
  }
  .mobile-daily-goal__title,
  .mobile-daily-goal__progress,
  .mobile-daily-goal__state { font-size: 11px; }
  .mobile-daily-goal__name { font-size: 10px; }
  .mobile-daily-goal__btn {
    font-size: 10px;
    padding: 3px 8px;
  }
  .car-img-wrap {
    --car-slot-size: 72px;
  }
  .car-top__grid.is-car-slots-open .car-img-wrap {
    width: 100%;
    padding: 0 8px 2px !important;
    gap: 0;
    max-height: none;
  }
  body.is-car-slots-open .car-slots-modal {
    --slot-cell-size: 92px;
    top: 74px;
    width: min(94vw, 336px);
    gap: 8px;
    padding: 10px;
  }
  body.is-car-slots-open .car-slots-modal .slot-box .icon-wrap {
    height: 74px;
    min-height: 74px;
    max-height: 74px;
  }
  .car-top__grid .stats-panel {
    top: 74px;
    bottom: auto;
    width: min(94vw, 336px);
    max-height: calc(100vh - 94px);
    min-height: 0;
    height: auto;
    padding: 10px;
  }
}

/* Turgus page */
.shop-tabs {display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 12px;}
.shop-tabs .btn {font-size:12px; padding:6px 10px;}
.shop-tabs .btn.is-active {border:1px solid var(--border); box-shadow:0 0 0 1px var(--border);}
.market-mode-tabs {gap:10px; margin:12px 0 10px;}
.market-mode-tabs .btn {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
}
.market-mode-tabs .btn.is-active {
  border-color: rgba(112,232,255,.6);
  box-shadow: inset 0 0 14px rgba(57,208,255,.14), 0 0 18px rgba(57,208,255,.2);
}
.shop-filters {display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;}
.shop-level-filter {display:flex; align-items:center; gap:8px;}
.shop-level-filter label {font-size:12px; color:var(--muted);}
.shop-level-filter select {
  min-height:34px;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(120,210,255,.35);
  background:rgba(8,18,32,.65);
  color:#eaf6ff;
}
.market-list .warehouse-card p.muted,
.market-list .warehouse-card .market-buy,
.market-list .warehouse-card .market-buy .btn { display: revert; }
.market-list .warehouse-card .meta { display: none !important; }
.market-list .warehouse-row {display:flex; gap:10px; flex-wrap:wrap;}
.market-list .warehouse-card {
  flex: 0 0 162px;
  border: 1px solid rgba(120,210,255,.16);
  border-radius: 14px;
  padding: 9px;
  position: relative;
  background:
    radial-gradient(140% 90% at 0% 0%, rgba(82,176,255,.10), transparent 62%),
    linear-gradient(180deg, rgba(8,18,32,.42), rgba(6,14,26,.48));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.market-list .warehouse-card .icon-wrap {
  width:100%;
  aspect-ratio:1/1;
  min-height:124px;
  max-height:124px;
  border-radius:12px;
  border:1px solid rgba(120,210,255,.16);
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, rgba(9, 20, 34, .42), rgba(7, 16, 28, .50));
  overflow:hidden;
}
.market-list .warehouse-card .icon-wrap img {width:100%; height:100%; object-fit:contain; display:block;}
.market-list .warehouse-card .tooltip {width:min(320px, calc(100vw - 28px));}
.market-list .warehouse-card .market-buy {margin-top:4px;}
.market-list .warehouse-card .market-buy .btn {width:100%;}
.market-list .warehouse-card .market-buy input[type="number"] {
  width: 100%;
  margin: 0 0 6px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(120,210,255,.34);
  background: linear-gradient(180deg, rgba(8, 18, 32, .92), rgba(6, 14, 26, .94));
  color: #eaf6ff;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  box-shadow: inset 0 0 10px rgba(70, 180, 255, .08);
}
.market-list .warehouse-card .market-buy input[type="number"]:focus {
  border-color: rgba(120,210,255,.68);
  box-shadow: 0 0 0 2px rgba(88,186,242,.22), inset 0 0 12px rgba(70, 180, 255, .1);
}

@media (max-width: 1024px) {
  .market-list .warehouse-card.is-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(2, 8, 16, .58);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .market-list .warehouse-card .tooltip {
    position: fixed;
    z-index: 1301;
    top: 50%;
    left: 50%;
    right: auto;
    width: min(340px, calc(100vw - 20px));
    max-width: none;
    max-height: 78vh;
    overflow: auto;
    transform: translate(-50%, -50%) scale(.98);
  }
  .market-list .warehouse-card.is-open .tooltip {
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 600px) {
  .market-list .warehouse-card .tooltip {
    position: absolute !important;
    top: 50% !important;
    width: min(170px, calc(100vw - 40px)) !important;
    max-height: 62vh !important;
    padding: 8px !important;
    transform: translateY(-50%) scale(.98) !important;
  }
  .market-list .warehouse-row > .warehouse-card:nth-child(odd) .tooltip {
    left: calc(100% + 8px) !important;
    right: auto !important;
  }
  .market-list .warehouse-row > .warehouse-card:nth-child(even) .tooltip {
    left: auto !important;
    right: calc(100% + 8px) !important;
  }
  .market-list .warehouse-card.is-open .tooltip {
    transform: translateY(-50%) scale(1) !important;
  }
  .market-list .warehouse-card .tooltip .garage-pop__title {
    font-size: 13px;
    margin-bottom: 6px;
  }
  .market-list .warehouse-card .tooltip .garage-pop__row {
    font-size: 11px;
    gap: 6px;
  }
}



/* topai.php (migrated inline styles) */
.topai-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.club-top {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(96, 198, 255, .38);
    border-radius: 16px;
    padding: 12px;
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(66, 160, 255, .16), rgba(5, 12, 26, .94) 58%),
        linear-gradient(180deg, rgba(8, 18, 36, .96), rgba(4, 10, 20, .98));
    box-shadow: inset 0 0 22px rgba(63, 178, 255, .12), 0 10px 24px rgba(0,0,0,.36);
}
.club-top::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(117, 209, 255, .24);
    border-radius: 12px;
    pointer-events: none;
}
.club-top::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/reg.log/auth-overlay-mobile.png') center/100% 100% no-repeat;
    opacity: .38;
    pointer-events: none;
}
.club-top__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(114, 204, 255, .28);
    background: linear-gradient(180deg, rgba(18, 36, 66, .7), rgba(8, 18, 35, .78));
    margin-bottom: 10px;
}
.club-top__head img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.club-top__head h3 {
    margin: 0;
    font-size: 16px;
}
.club-top__podium {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}
.club-top__podium-card {
    position: relative;
    min-height: 160px;
    padding: 10px 8px 58px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    overflow: hidden;
}
.club-top__podium-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .98;
    pointer-events: none;
}
.club-top__podium-car {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(2, 10, 22, .35);
    border: 1px solid rgba(120, 210, 255, .45);
    box-shadow: 0 0 12px rgba(76, 196, 255, .28);
    z-index: 1;
}
.club-top__podium-card.rank1::before { background-image: url('../img/city/Top1.png'); }
.club-top__podium-card.rank2::before { background-image: url('../img/city/top2.png'); }
.club-top__podium-card.rank3::before { background-image: url('../img/city/top3.png'); }
.topai-grid > .panel:first-child .club-top__podium-card {
    padding-bottom: 34px;
}
.club-top__podium-card > * {
    position: relative;
    z-index: 1;
}
.club-top__place {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    background: rgba(2,10,22,.78);
    border: 1px solid rgba(145, 225, 255, .45);
}
.club-top__name {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.1;
    color: #f3f8ff;
    text-shadow: 0 0 12px rgba(0,0,0,.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.club-top__name {
    display: block;
    color: #f3f8ff;
    text-decoration: none;
}
a.club-top__name:hover {
    color: #ffffff;
    text-decoration: underline;
}
.club-top__score {
    margin-top: 2px;
    font-weight: 900;
    font-size: 14px;
    color: #ffe998;
    text-shadow: 0 0 10px rgba(255,198,88,.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.club-top__list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
}
.club-top__row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(101, 193, 255, .24);
    background: linear-gradient(180deg, rgba(6, 16, 31, .84), rgba(4, 10, 22, .92));
}
.club-top__rank {
    font-size: 22px;
    font-weight: 800;
    color: #91ddff;
}
.club-top__club {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: #edf7ff;
    overflow-wrap: anywhere;
}
.club-top__club a {
    color: #edf7ff;
    text-decoration: none;
}
.club-top__club a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.club-top__row-score {
    font-size: 20px;
    font-weight: 800;
    color: #e6f3ff;
    white-space: nowrap;
}
.club-top__score--compact {
    font-size: 12px;
}
.club-top__row-score--compact {
    font-size: 16px;
    letter-spacing: 0;
}
.club-top__score--clubs-lifetime {
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.club-top__score-line {
    display: block;
}
.club-top__podium-logo {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 215, 90, .55);
    box-shadow: 0 0 10px rgba(255, 190, 70, .32);
    background: rgba(2, 10, 22, .35);
}
.club-top__club--with-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
    min-width: 0;
}
.club-top__club--with-logo a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.club-top__row-score--clubs-lifetime {
    font-size: 16px;
    letter-spacing: 0;
}
.topai-player-link {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.05;
    color: #edf7ff;
    text-decoration: none;
}
.topai-player-link:hover {
    color: #ffffff;
    text-decoration: underline;
}
.topai-club {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.topai-club__logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(130, 210, 255, .42);
    box-shadow: 0 0 8px rgba(52, 167, 255, .2);
}
.topai-club__name {
    font-size: 16px;
    font-weight: 700;
    color: #e6f3ff;
    text-decoration: none;
}
.topai-club__name:hover {
    color: #ffffff;
    text-decoration: underline;
}
.topai-city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #d7eeff;
    white-space: nowrap;
}
.topai-city--empty {
    color: #9ab8cc;
}
.topai-row--me td {
    background: linear-gradient(180deg, rgba(26, 64, 112, .58), rgba(10, 34, 66, .62)) !important;
    box-shadow: inset 0 0 0 1px rgba(130, 218, 255, .45);
}
.topai-row--me .topai-player-link,
.topai-row--me .report-log__title,
.topai-row--me .topai-city,
.topai-row--me .topai-club__name {
    color: #ffffff !important;
}
.report-log__table tr.topai-row--myclub td {
    background: linear-gradient(180deg, rgba(26, 64, 112, .58), rgba(10, 34, 66, .62)) !important;
    box-shadow: inset 0 0 0 1px rgba(130, 218, 255, .45);
}
.report-log__table tr.topai-row--myclub .topai-club__name {
    color: #ffffff !important;
}
.club-top__row--myclub {
    background: linear-gradient(180deg, rgba(26, 64, 112, .58), rgba(10, 34, 66, .62));
    box-shadow: inset 0 0 0 1px rgba(130, 218, 255, .45);
}
.club-top__podium-card--myclub {
    box-shadow: inset 0 0 0 1px rgba(130, 218, 255, .45);
}
.topai-pagination {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.topai-page-form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.topai-page-input {
    width: 86px;
}
@media (max-width: 980px) {
    .topai-grid {
        grid-template-columns: 1fr;
    }
    .club-top__podium-card {
        min-height: 120px;
        padding-bottom: 44px;
    }
    .club-top__name {
        font-size: 14px;
    }
    .club-top__score {
        font-size: 12px;
    }
    .club-top__club {
        font-size: 18px;
    }
    .club-top__row-score {
        font-size: 18px;
    }
    .club-top__score--compact {
        font-size: 11px;
    }
    .club-top__row-score--compact {
        font-size: 14px;
    }
    .topai-player-link {
        font-size: 22px;
    }
    .topai-club__name {
        font-size: 14px;
    }
    .topai-city {
        font-size: 13px;
    }
    .topai-pagination {
        gap: 6px;
    }
    .topai-page-input {
        width: 74px;
    }
    .club-top__club--with-logo {
        gap: 8px;
    }
    .club-top__club--with-logo .topai-club__logo {
        width: 20px;
        height: 20px;
    }
    .club-top__score--clubs-lifetime {
        font-size: 11px;
    }
    .club-top__row-score--clubs-lifetime {
        font-size: 14px;
    }
    .club-top__podium-logo {
        width: 32px;
        height: 32px;
        top: 15px;
    }
}
/* end topai.php migrated styles */

/* HUD menu readability refresh */
.hud-menu-standalone {
  position: relative;
  isolation: isolate;
}
.hud-menu-standalone form {
  margin: 0;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}
.hud-menu-standalone::before {
  content: "";
  position: absolute;
  inset: -4px 0;
  border-radius: 16px;
  background:
    radial-gradient(120% 180% at 50% 0, rgba(86, 210, 255, .12), rgba(0, 0, 0, 0) 58%),
    linear-gradient(180deg, rgba(6, 16, 30, .35), rgba(4, 10, 18, .2));
  border: 1px solid rgba(86, 210, 255, .16);
  pointer-events: none;
  z-index: -1;
}
.hud-menu-standalone a,
.hud-menu-standalone button {
  color: #f2fbff;
  font-weight: 700;
  letter-spacing: .1px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 0 8px rgba(88, 210, 255, .22);
  background:
    radial-gradient(140% 140% at 18% 0, rgba(88, 214, 255, .2), rgba(0, 0, 0, 0) 45%),
    linear-gradient(180deg, rgba(16, 38, 68, .96), rgba(8, 19, 38, .94));
  border-color: rgba(104, 226, 255, .36);
  box-shadow: inset 0 1px 0 rgba(196, 245, 255, .16), inset 0 0 16px rgba(64, 198, 255, .12), 0 0 14px rgba(40, 170, 255, .15);
}
.hud-menu-standalone a:hover,
.hud-menu-standalone button:hover {
  color: #ffffff;
  border-color: rgba(138, 236, 255, .62);
  background:
    radial-gradient(140% 140% at 18% 0, rgba(102, 224, 255, .26), rgba(0, 0, 0, 0) 46%),
    linear-gradient(180deg, rgba(20, 48, 84, .98), rgba(10, 24, 46, .96));
  box-shadow: inset 0 1px 0 rgba(225, 251, 255, .24), inset 0 0 18px rgba(84, 212, 255, .18), 0 0 18px rgba(58, 188, 255, .22);
}
.hud-menu-standalone a.is-active {
  color: #ffffff;
  border-color: rgba(158, 245, 255, .8);
  background:
    radial-gradient(145% 145% at 20% 0, rgba(128, 236, 255, .34), rgba(0, 0, 0, 0) 48%),
    linear-gradient(180deg, rgba(28, 66, 112, .98), rgba(12, 30, 58, .96));
  box-shadow: inset 0 1px 0 rgba(236, 253, 255, .32), inset 0 0 18px rgba(110, 222, 255, .26), 0 0 22px rgba(82, 210, 255, .28);
}
.hud-menu-standalone a:focus-visible,
.hud-menu-standalone button:focus-visible {
  outline: 0;
  border-color: rgba(168, 250, 255, .92);
  box-shadow: inset 0 1px 0 rgba(236, 253, 255, .3), inset 0 0 18px rgba(110, 222, 255, .24), 0 0 0 2px rgba(68, 200, 255, .26), 0 0 20px rgba(82, 210, 255, .26);
}
@media (min-width: 901px) {
  .hud-menu-standalone a,
  .hud-menu-standalone button {
    font-size: 12px;
    min-height: 34px;
  }
}

/* Daily slot modal */
.daily-slot-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.daily-slot-modal.is-open {
  display: flex;
}
.daily-slot-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 10, .78);
  backdrop-filter: blur(8px);
}
.daily-slot-modal__panel {
  position: relative;
  width: min(920px, calc(100vw - 24px));
  min-height: min(620px, calc(100vh - 24px));
  border: 1px solid rgba(92, 220, 255, .34);
  border-radius: 18px;
  overflow: hidden;
  background: #050b12;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .72), 0 0 42px rgba(48, 194, 255, .18);
}
.daily-slot-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(130, 232, 255, .38);
  background: rgba(2, 10, 18, .84);
  color: #e8fbff;
  cursor: pointer;
}
.daily-slot-machine {
  position: relative;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(250px, .72fr);
  align-items: center;
  gap: 8px;
  padding: 34px;
}
.daily-slot-machine__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  filter: saturate(1.1) contrast(1.04);
}
.daily-slot-machine::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 80% at 36% 43%, rgba(74, 216, 255, .14), rgba(0, 0, 0, 0) 56%),
    linear-gradient(90deg, rgba(2, 8, 14, .14), rgba(2, 8, 14, .76));
  pointer-events: none;
}
.daily-slot-machine__stage,
.daily-slot-machine__content {
  position: relative;
  z-index: 2;
}
.daily-slot-machine__stage {
  width: min(520px, 100%);
  aspect-ratio: 720 / 760;
  margin: 0 auto;
}
.daily-slot-machine__body,
.daily-slot-machine__lights {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.daily-slot-machine__lights {
  animation: dailySlotPulse 1.15s ease-in-out infinite alternate;
  pointer-events: none;
}
.daily-slot-machine__reels {
  position: absolute;
  left: 21.5%;
  top: 17.5%;
  width: 57%;
  height: 24%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4.5%;
  z-index: 1;
}
.daily-slot-machine__reel {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,.08), rgba(0,0,0,.28) 60%);
  overflow: hidden;
}
.daily-slot-machine__reel img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(94, 225, 255, .38));
}
.daily-slot-machine__content {
  max-width: 330px;
  padding: 22px;
  border: 1px solid rgba(96, 224, 255, .22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(5, 14, 24, .84), rgba(3, 8, 14, .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.daily-slot-machine__kicker {
  margin: 0 0 6px;
  color: #78e8ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.daily-slot-machine__content h2 {
  margin: 0;
  color: #f3fbff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  text-shadow: 0 0 18px rgba(70, 205, 255, .32);
}
.daily-slot-machine__result {
  min-height: 48px;
  margin: 14px 0 18px;
  color: rgba(231, 247, 255, .86);
  font-weight: 700;
}
.daily-slot-machine__spin {
  position: relative;
  width: min(240px, 100%);
  min-height: 72px;
  border: 0;
  background: transparent url("../img/daily_slot/daily_slot_button_spin.png") center / contain no-repeat;
  color: #edfbff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,.75), 0 0 10px rgba(117, 234, 255, .65);
}
.daily-slot-machine__spin:disabled {
  cursor: default;
  opacity: .78;
}
@keyframes dailySlotPulse {
  from { opacity: .58; filter: saturate(.95); }
  to { opacity: 1; filter: saturate(1.3); }
}
@media (max-width: 720px) {
  .daily-slot-modal {
    padding: 10px;
  }
  .daily-slot-modal__panel {
    min-height: calc(100vh - 20px);
    border-radius: 14px;
  }
  .daily-slot-machine {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 42px 14px 20px;
  }
  .daily-slot-machine::after {
    background: linear-gradient(180deg, rgba(2, 8, 14, .12), rgba(2, 8, 14, .82));
  }
  .daily-slot-machine__stage {
    width: min(440px, 96vw);
  }
  .daily-slot-machine__content {
    max-width: none;
    width: min(440px, 96vw);
    margin: 0 auto;
    text-align: center;
  }
  .daily-slot-machine__spin {
    margin: 0 auto;
  }
}

