.player-banner {
  min-height: 360px;
}
.player-banner img {
  object-position: center 53%;
}
.player-pass {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: calc(100% - 36px);
  padding: 13px 16px;
  border: 1px solid #a5bf7d75;
  border-radius: 12px;
  background: #122117ed;
}
.player-pass-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--lime);
  color: #1c2b12;
  font: 600 20px Oswald, sans-serif;
}
.player-pass strong, .player-pass small { display: block; overflow-wrap: anywhere; }
.player-pass .ops-kicker { font-size: 8px; }
.player-road { margin-bottom: 16px; }
.road-track { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.road-node { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; padding: 12px 5px; border: 1px solid var(--line); border-radius: 10px; background: #132019; }
.road-current { background: #293e23; border-color: #8faf60; }
.road-emblem { color: var(--lime); font-size: 23px; line-height: 1.1; }
.player-home-grid .progress-line { background: #31493b; }
.player-home-grid .progress-line i { background: var(--lime); }
.player-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.player-tile { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 152px; padding: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #17261e; color: var(--ink); text-align: left; }
.player-tile:hover { border-color: var(--lime); }
.player-tile img, .player-tile::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.player-tile img { object-fit: cover; }
.player-tile::after { content: ''; background: linear-gradient(0deg,#0b1510 4%,#0b1510b0 45%,#0b151019); }
.player-tile strong { display: block; font-size: 17px; }
.player-tile small { color: #d6e4d6; }
.player-tile > span:last-child { color: var(--lime); }
.player-journey { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; padding: 0; margin: 0 0 18px; list-style: none; }
.player-journey li { display: grid; gap: 3px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #16241c; color: var(--muted); }
.player-journey li span { font-size: 10px; font-weight: 800; }
.player-journey .journey-reached { color: #c6e2bb; }
.player-journey li[aria-current="step"] { color: #17270e; background: var(--lime); border-color: var(--lime); font-weight: 800; }
[data-dashboard="player"] .league-card { border-top: 3px solid #a77951; }
[data-dashboard="player"] .league-silver { border-top-color: #a7c4de; }
[data-dashboard="player"] .league-gold { border-top-color: #e3b966; }
[data-dashboard="player"] .league-elite { border-top-color: var(--lime); }
[data-dashboard="player"] .league-my-row { background: #283c2a; }
[data-dashboard="player"] .queue-state .queue-orbit { background: #283c29; color: var(--lime); }
@media (max-width: 760px) {
  .player-pass { position: relative; right: auto; bottom: auto; width: fit-content; margin: 0 16px 16px; }
  .player-banner { padding-bottom: 0; }
  .player-tiles { grid-template-columns: 1fr; }
  .player-tile { min-height: 114px; }
}
@media (max-width: 420px) {
  .road-track { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .player-journey { gap: 4px; }
  .player-journey li { padding: 7px 5px; font-size: 11px; }
}

.player-quickbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 19px;
  padding: 10px 12px;
  border: 1px solid #6b8152;
  border-radius: 13px;
  background: #14231cf5;
  box-shadow: 0 8px 22px #080e0ba8;
}
.quick-wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
}
.quick-coin {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #f3ce75;
  background: #584219;
  color: #ffe7a0;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px #805b23;
}
.quick-wallet strong {
  display: block;
  color: #ffe7a0;
  font-size: 22px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.quick-wallet small { display: block; }
.arena-console .quick-topup {
  border-color: #947a45;
  background: #493b22;
  color: #ffe7a0;
}
.arena-console .quick-topup:hover { border-color: #ffe7a0; }
.player-quickbar .btn[aria-current="page"] { box-shadow: inset 0 0 0 1px currentColor; }
@media (max-width: 540px) {
  .player-quickbar { gap: 6px; padding: 8px; }
  .player-quickbar .btn { gap: 4px; padding: 9px 7px; min-height: 42px; font-size: 11px; text-align: center; }
  .quick-wallet { gap: 5px; }
  .quick-wallet strong { font-size: 17px; }
  .quick-wallet small { font-size: 9px; line-height: 1.15; }
  .quick-coin { flex-basis: 24px; height: 24px; font-size: 11px; }
  .player-quickbar .btn span { display: none; }
}

/* ===== Player HUD: деньги, лига, уровень, место, онлайн ===== */
.player-hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  margin: 0 0 20px;
  padding: 12px;
  border: 1px solid #6b8152;
  border-radius: 16px;
  background: linear-gradient(180deg, #172a20f5, #111c16f5);
  box-shadow: 0 10px 26px #080e0ba8;
}
.player-hud > .hud-wallet { grid-column: 1 / span 3; }
.player-hud > .hud-play { grid-column: 4; grid-row: 1; }
.hud-wallet {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 12px;
  background: radial-gradient(120% 140% at 0% 0%, #5a4419 0%, #2b2412 55%, #1a1a10 100%);
  border: 1px solid #947a45;
}
.hud-coin {
  display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 50%;
  border: 3px solid #f3ce75; background: radial-gradient(circle at 35% 30%, #b8862f, #584219);
  color: #fff3c9; font: 800 22px/1 Oswald, Manrope, sans-serif; box-shadow: 0 0 22px #f3ce7555, inset 0 0 0 2px #805b23;
}
.hud-money small { display: block; color: #e8d7a6; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hud-money strong { display: block; color: #ffe7a0; font: 700 38px/1.05 Oswald, Manrope, sans-serif; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px #f3ce7540; }
.hud-money-actions { display: flex; gap: 8px; margin-left: auto; }
.arena-console .hud-topup, .arena-console .hud-withdraw { min-height: 52px; padding: 12px 20px; font-size: 15px; font-weight: 800; border-radius: 12px; }
.arena-console .hud-topup { background: #ffd66b; border-color: #ffd66b; color: #2a1f05; box-shadow: 0 6px 18px #f3ce7540; }
.arena-console .hud-topup:hover { background: #ffe7a0; }
.arena-console .hud-withdraw { background: transparent; border: 2px solid #ffd66b; color: #ffe7a0; }
.arena-console .hud-withdraw:hover { background: #ffd66b1f; }
.hud-chip {
  display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left;
  padding: 10px 12px; border-radius: 12px; border: 1px solid #34483a; background: #0f1913; color: inherit; font: inherit;
}
button.hud-chip { cursor: pointer; }
button.hud-chip:hover { border-color: #c8f34a; }
.hud-chip > span:last-child { display: grid; gap: 2px; min-width: 0; }
.hud-chip small { color: #9fb2a4; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-chip b { color: #f4f8ef; font-size: 18px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hud-chip em { color: #c3d0c5; font-size: 11px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-bar { display: block; height: 6px; margin-top: 4px; border-radius: 6px; background: #ffffff1a; overflow: hidden; }
.hud-bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8fd12c, #c8f34a); }
.hud-emblem { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; font-size: 22px; color: #10150d; }
.league-bronze { --league: #d08a4e; } .league-silver { --league: #cfd6dc; } .league-gold { --league: #f3c94d; } .league-elite { --league: #b48cff; }
.hud-emblem { background: var(--league, #c8f34a); box-shadow: 0 0 18px color-mix(in srgb, var(--league, #c8f34a) 45%, transparent); }
.hud-level-num { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 50%; border: 3px solid #c8f34a; color: #c8f34a; font: 700 20px/1 Oswald, Manrope, sans-serif; }
.hud-rank { flex: 0 0 auto; color: #c8f34a; font: 700 30px/1 Oswald, Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.hud-pulse { position: relative; flex: 0 0 14px; height: 14px; border-radius: 50%; background: #5cff8a; box-shadow: 0 0 12px #5cff8a; }
.hud-pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #5cff8a; animation: hud-ping 1.8s ease-out infinite; }
@keyframes hud-ping { from { transform: scale(.5); opacity: .9 } to { transform: scale(1.6); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .hud-pulse::after { animation: none; } }
.hud-play { align-self: stretch; min-height: 52px; padding: 12px 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 1100px) {
  .player-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-hud > .hud-wallet { grid-column: 1 / -1; }
  .player-hud > .hud-play { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 760px) {
  .player-hud { padding: 10px; gap: 8px; }
  .hud-money strong { font-size: 32px; }
  .hud-money-actions { width: 100%; margin-left: 0; }
  .hud-money-actions .btn { flex: 1; }
  .hud-chip b { font-size: 16px; }
}

/* Баланс: большие кнопки */
.arena-console .btn-xl { min-height: 56px; padding: 14px 26px; font-size: 16px; font-weight: 800; border-radius: 12px; }
.arena-console .btn-withdraw { border: 2px solid #ffd66b; color: #ffe7a0; background: transparent; }

/* Таблица: моё место и лиги */
.my-place { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-bottom: 14px; border-color: #c8f34a88; }
.my-place-rank small { display: block; color: #9fb2a4; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.my-place-rank strong { display: block; color: #c8f34a; font: 700 64px/1 Oswald, Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.my-place-rank span { color: #c3d0c5; font-size: 13px; }
.my-place-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.my-place-facts small { display: block; color: #9fb2a4; font-size: 11px; }
.my-place-facts b { font-size: 15px; }
.league-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.league-count { padding: 7px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--league) 60%, transparent); color: var(--league); font-size: 13px; }
.league-count b { font-size: 15px; }
.league-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #10150d; background: var(--league, #c8f34a); }
.elo { color: #c8f34a; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .my-place { grid-template-columns: 1fr; } .my-place-facts { grid-template-columns: 1fr; } .my-place-rank strong { font-size: 48px; } }
.arena-console .locked-balance { color: #ffe7a0; font-family: Oswald, Manrope, sans-serif; font-weight: 700; text-shadow: 0 0 18px #f3ce7540; }
