/* ==========================================================================
   Разведкорпус — шестое здание Поселения (ТЗ «Разведкорпус», раздел 10).
   Макеты — docs/tz/макеты-разведкорпус/. Макет даёт устройство и вид;
   цвета и шрифты — игры (переменные :root в styles.css). Своё здесь —
   только цвета рангов и долей колеса: в игре их раньше не было.
   ========================================================================== */

:root {
  /* Цвета рангов — с макета «ранги-свечение». */
  --scout-wood: #d9a066;
  --scout-copper: #e8895a;
  --scout-iron: #c9d2dc;
  --scout-silver: #8fc3f0;
  --scout-gold: #f0c95c;
  --scout-platinum: #6fe0cf;
  --scout-legendary: #e07ae8;

  /* Доли колеса: успех — союзный зелёный игры, частичный — золото,
     провал — боевой красный. «Выбили силой» — между зелёным и золотом. */
  --scout-seg-success: var(--pick-ally);
  --scout-seg-forced: #8a9a4a;
  --scout-seg-partial: var(--accent);
  --scout-seg-failure: var(--combat-red);
}


/* --- Поселение: закрытая постройка и метка вернувшегося отряда ---------- */

.settlement-plot--building {
  position: relative;
}

.settlement-plot--locked {
  cursor: default;
  opacity: 0.6;
  border-style: dashed;
}

.settlement-plot--locked:hover {
  border-color: var(--cg-border-soft);
  transform: none;
  box-shadow: none;
}

.settlement-plot__reason {
  font-size: 13px;
}

.settlement-plot__mark {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: #171217;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 12px -2px var(--gold);
}

/* --- Значок ранга и свечение ------------------------------------------- */

.scout-rank {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--rank-size, 40px);
  height: var(--rank-size, 40px);
}

.scout-rank__img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

.scout-rank--missing .scout-rank__img {
  visibility: hidden;
}

.scout-rank--missing::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 30%;
  background: var(--graphite);
  border: 1px solid var(--hairline);
}

.scout-rank--silver { --rank-glow-0: rgba(110, 180, 255, 0.3); --rank-glow-1: rgba(110, 180, 255, 0.85); }
.scout-rank--gold { --rank-glow-0: rgba(255, 200, 80, 0.3); --rank-glow-1: rgba(255, 200, 80, 0.9); }
.scout-rank--platinum { --rank-glow-0: rgba(90, 230, 210, 0.3); --rank-glow-1: rgba(90, 230, 210, 0.9); }
.scout-rank--legendary { --rank-glow-0: rgba(230, 110, 240, 0.35); --rank-glow-1: rgba(230, 110, 240, 0.95); }

.scout-rank__img--breath {
  animation: scout-breath 3.2s ease-in-out infinite;
}

@keyframes scout-breath {
  0%, 100% { filter: drop-shadow(0 0 2px var(--rank-glow-0)); }
  50% { filter: drop-shadow(0 0 calc(var(--rank-size) * 0.12) var(--rank-glow-1)); }
}

.scout-rank__glint {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 45%, rgba(255, 250, 235, 0.5) 50%, transparent 55%) no-repeat;
  background-size: 250% 100%;
  background-position: 100% 0;
  mix-blend-mode: screen;
  animation: scout-glint 4.8s ease-in-out infinite;
}

@keyframes scout-glint {
  0%, 55% { background-position: 100% 0; }
  85%, 100% { background-position: 0% 0; }
}

.scout-rank__spark {
  position: absolute;
  z-index: 4;
  width: 15%;
  height: 15%;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 3px var(--rank-glow-1));
  animation: scout-spark 2.6s ease-in-out infinite;
}

@keyframes scout-spark {
  0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  45% { opacity: 1; transform: scale(1) rotate(25deg); }
  70% { opacity: 0; transform: scale(0.3) rotate(45deg); }
}

.scout-rank__halo,
.scout-rank__halo-glow {
  position: absolute;
  z-index: 1;
  left: -35%;
  top: -35%;
  width: 170%;
  height: 170%;
  border-radius: 50%;
  pointer-events: none;
}

.scout-rank__halo {
  background: repeating-conic-gradient(from 0deg, rgba(230, 110, 240, 0) 0deg 8deg, rgba(236, 140, 245, 0.55) 12deg, rgba(230, 110, 240, 0) 16deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 22%, transparent 68%);
  mask: radial-gradient(circle, #000 22%, transparent 68%);
  animation: scout-halo 26s linear infinite;
}

@keyframes scout-halo {
  to { transform: rotate(360deg); }
}

.scout-rank__halo-glow {
  background: radial-gradient(circle, rgba(220, 100, 240, 0.35), rgba(220, 100, 240, 0) 65%);
  animation: scout-halo-glow 3.2s ease-in-out infinite;
}

@keyframes scout-halo-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.scout-rank__ember {
  position: absolute;
  z-index: 4;
  top: 78%;
  width: 4%;
  height: 4%;
  min-width: 3px;
  min-height: 3px;
  border-radius: 50%;
  pointer-events: none;
  background: #f3b8ff;
  box-shadow: 0 0 6px 2px rgba(225, 110, 245, 0.8);
  opacity: 0;
  animation: scout-ember 3.4s ease-out infinite;
}

@keyframes scout-ember {
  0% { opacity: 0; transform: translateY(0); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(calc(var(--rank-size) * -0.75)); }
}

/* Кто просит меньше движения — видит значки неподвижными: свечение
   остаётся ровным, без дыхания, блика, искр и огоньков. */
@media (prefers-reduced-motion: reduce) {
  .scout-rank * {
    animation: none !important;
  }
  .scout-rank__img--breath {
    filter: drop-shadow(0 0 calc(var(--rank-size) * 0.08) var(--rank-glow-1));
  }
  .scout-rank__spark,
  .scout-rank__ember {
    display: none;
  }
}

/* --- Экран: общая раскладка ------------------------------------------- */

.scout-screen {
  min-width: 0;
}

.scout-body {
  min-width: 0;
}

.scout-h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-bright);
}

.scout-h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
}

.scout-kicker {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.scout-num {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.scout-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--cg-border-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--parchment);
  background: rgba(201, 163, 92, 0.06);
  white-space: nowrap;
}

.scout-chip--away {
  color: var(--muted);
}

.scout-chip--done {
  color: var(--effect-positive);
  border-color: var(--effect-positive-border);
}

.scout-note {
  padding: 12px 14px;
  border: 1px dashed var(--hairline);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.scout-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--graphite);
  overflow: hidden;
}

.scout-bar--thin {
  height: 4px;
}

.scout-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
}

.scout-bar__fill.is-full,
.scout-bar__fill--trip {
  background: linear-gradient(90deg, #3f8f5a, var(--effect-positive));
}

.scout-layout {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.scout-side,
.scout-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* --- Ранг ---------------------------------------------------------------- */

.scout-rank-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scout-rank-panel__head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.scout-rank-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.scout-xp {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scout-xp__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.scout-xp__row .scout-num {
  color: var(--parchment);
}

/* --- Отряды в пути ------------------------------------------------------ */

.scout-trip {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scout-trip.is-returned {
  border-color: var(--gold-dim);
  box-shadow: 0 0 18px -8px var(--gold);
}

.scout-trip--empty {
  padding: 16px;
  border: 1px dashed var(--hairline);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.scout-trip__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.scout-trip__title {
  min-width: 0;
}

.scout-trip__title strong {
  display: block;
  color: var(--parchment);
  overflow-wrap: anywhere;
}

.scout-trip__heroes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.scout-trip__hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--parchment);
}

.scout-trip__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.scout-trip__status {
  font-size: 14px;
  color: var(--muted);
}

.scout-trip.is-returned .scout-trip__status {
  color: var(--gold-bright);
}

.scout-trip__actions .btn {
  padding: 7px 14px;
}

/* --- Портреты ------------------------------------------------------------ */

.scout-face {
  display: inline-flex;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--hairline);
}

.scout-face--sm {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.scout-face__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.scout-face__chibi {
  width: 100%;
  height: 100%;
}

.scout-face__letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--gold);
}

/* --- Доска --------------------------------------------------------------- */

.scout-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.scout-board__refresh {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.scout-refresh {
  padding: 8px 14px;
}

.scout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.scout-task {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 16px 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--panel);
}

.scout-task--rank-gold { border-color: rgba(240, 201, 92, 0.35); }
.scout-task--rank-platinum { border-color: rgba(111, 224, 207, 0.35); }
.scout-task--rank-legendary { border-color: rgba(224, 122, 232, 0.35); }

.scout-task--away,
.scout-task--done {
  opacity: 0.6;
}

.scout-task__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.scout-task__head .scout-chip {
  margin-left: auto;
}

.scout-task__title {
  margin: 2px 0 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--parchment);
  overflow-wrap: anywhere;
}

.scout-task__title--big {
  font-size: 24px;
}

.scout-task__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: var(--muted);
}

.scout-task__line {
  font-size: 14px;
  line-height: 1.35;
  color: var(--parchment);
}

.scout-task__condition {
  color: var(--gold-bright);
}

.scout-task__regalia {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-bright);
  border: 1px solid var(--gold-dim);
  background: rgba(240, 209, 144, 0.08);
}

.scout-task__foot {
  margin-top: auto;
  padding-top: 6px;
}

/* --- Отправка ------------------------------------------------------------ */

.scout-send__top {
  margin-bottom: 10px;
}

.scout-send__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.15fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.scout-send__left,
.scout-send__center,
.scout-send__right {
  min-width: 0;
}

.scout-send__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--parchment);
}

.scout-send__hint {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

.scout-condition {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  font-size: 14px;
}

.scout-condition:empty {
  display: none;
}

.scout-condition.is-met {
  color: var(--effect-positive);
  border-color: var(--effect-positive-border);
  background: rgba(143, 202, 131, 0.06);
}

.scout-condition.is-unmet {
  color: var(--effect-negative);
  border-color: var(--effect-negative-border);
  background: rgba(226, 115, 95, 0.06);
}

.scout-paths {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.scout-path.is-active {
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.16);
  box-shadow: 0 0 12px -4px var(--gold);
}

.scout-paths__note {
  flex-basis: 100%;
}

.scout-squad {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scout-slots {
  display: grid;
  grid-template-columns: repeat(var(--slots, 3), minmax(0, 1fr));
  gap: 8px;
}

.scout-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 104px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--gold-dim);
  background: var(--panel-2);
  color: var(--parchment);
  font: inherit;
  cursor: pointer;
}

.scout-slot--empty {
  justify-content: center;
  border-style: dashed;
  border-color: var(--hairline);
  background: none;
  color: var(--muted);
  font-size: 13px;
  cursor: default;
  text-align: center;
}

.scout-slot__name {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
}

.scout-send__go-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scout-send__reason:empty {
  display: none;
}

.scout-send__reason {
  color: var(--effect-negative);
}

.scout-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scout-picker__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.scout-pick,
.scout-suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--panel);
  color: var(--parchment);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.scout-pick:hover:not(:disabled),
.scout-suggest__item:hover {
  border-color: var(--gold-dim);
}

.scout-pick.is-chosen {
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.12);
}

.scout-pick:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.scout-pick__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.scout-pick__name {
  font-size: 14px;
  font-weight: 600;
}

.scout-pick__stars {
  font-size: 11px;
  color: var(--gold);
}

.scout-pick__stats {
  font-size: 12px;
  color: var(--muted);
}

.scout-pick__busy {
  font-size: 12px;
  color: var(--effect-negative);
}

.scout-suggest__item {
  width: 100%;
}

.scout-suggest__item:first-child {
  border-color: var(--effect-positive-border);
}

.scout-suggest__gain {
  flex: none;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--effect-positive);
  white-space: nowrap;
}

/* --- Фигура -------------------------------------------------------------- */

.scout-figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scout-figure__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.scout-figure__svg.is-dimmed {
  opacity: 0.5;
}

.scout-figure__ring {
  fill: none;
  stroke: var(--hairline);
  stroke-width: 1;
}

.scout-figure__ring.is-outer {
  stroke: var(--graphite);
  stroke-width: 1.5;
  fill: rgba(255, 255, 255, 0.015);
}

.scout-figure__spoke {
  stroke: var(--hairline);
  stroke-width: 1;
}

.scout-figure__need-line {
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.8;
}

.scout-figure__squad {
  fill: rgba(94, 143, 79, 0.35);
  stroke: var(--effect-positive);
  stroke-width: 2;
  stroke-linejoin: round;
}

.scout-figure__short {
  stroke: var(--effect-negative);
  stroke-width: 5;
  stroke-linecap: round;
}

.scout-figure__need {
  fill: var(--gold-bright);
  stroke: #171217;
  stroke-width: 1.5;
}

.scout-figure__label {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  fill: var(--muted);
}

.scout-figure__label.is-needed {
  fill: var(--gold-bright);
}

.scout-figure__sub {
  font-family: var(--font-ui);
  font-size: 14px;
  fill: var(--muted);
}

.scout-figure__caption {
  margin-top: 4px;
}

.scout-figure__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--muted);
}

.scout-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.scout-legend::before {
  content: "";
  flex: none;
  display: inline-block;
}

.scout-legend--need::before {
  width: 9px;
  height: 9px;
  background: var(--gold-bright);
  transform: rotate(45deg);
}

.scout-legend--short::before {
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: var(--effect-negative);
}

.scout-legend--squad::before {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(94, 143, 79, 0.45);
  border: 1px solid var(--effect-positive);
}

.scout-legend--seg::before {
  display: none;
}

/* Полоса Харизмы. */
.scout-charisma {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scout-charisma.is-dimmed {
  opacity: 0.5;
}

.scout-charisma__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.scout-charisma__name {
  font-weight: 700;
  color: var(--gold-bright);
}

.scout-charisma__nums {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
}

.scout-charisma__track {
  position: relative;
  height: 16px;
  border-radius: 8px;
  background: var(--graphite);
  border: 1px solid var(--hairline);
}

.scout-charisma__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 8px 0 0 8px;
  background: rgba(94, 143, 79, 0.55);
  border-right: 2px solid var(--effect-positive);
}

.scout-charisma__short {
  position: absolute;
  top: 5px;
  bottom: 5px;
  background: var(--effect-negative);
  border-radius: 3px;
}

.scout-charisma__need {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--gold-bright);
  border: 1.5px solid #171217;
  transform: rotate(45deg);
}

/* --- Покрытие и шансы ---------------------------------------------------- */

.scout-cover {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scout-cover + .scout-cover {
  margin-top: 8px;
}

.scout-cover__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.scout-cover__total {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-bright);
}

.scout-cover__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scout-cover__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 48px;
  gap: 8px;
  align-items: baseline;
  font-size: 14px;
}

.scout-cover__pct {
  text-align: right;
  font-weight: 700;
  color: var(--gold);
}

.scout-cover__pct.is-full {
  color: var(--effect-positive);
}

.scout-chances {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scout-chance {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  line-height: 1.35;
}

.scout-chance__pct {
  font-weight: 700;
}

.scout-chance--success .scout-chance__pct,
.scout-chance--agreed .scout-chance__pct { color: var(--effect-positive); }
.scout-chance--forced .scout-chance__pct { color: #b5c46a; }
.scout-chance--partial .scout-chance__pct { color: var(--accent); }
.scout-chance--failure .scout-chance__pct { color: var(--effect-negative); }

.scout-error {
  color: var(--effect-negative);
  font-size: 14px;
}

/* --- Встреча: колесо ------------------------------------------------------ */

.scout-meet {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 26px 28px;
}

.scout-meet__wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scout-wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.scout-wheel {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 1;
}

.scout-wheel.is-spinning {
  cursor: pointer;
}

.scout-wheel__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--panel-2), 0 0 0 8px rgba(201, 163, 92, 0.55), 0 0 40px rgba(201, 163, 92, 0.18);
  will-change: transform;
}

.scout-wheel__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28%;
  height: 28%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid rgba(201, 163, 92, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scout-wheel__hub .scout-rank {
  width: 76%;
  height: 76%;
}

.scout-wheel__pointer {
  position: absolute;
  left: 50%;
  top: -16px;
  width: 0;
  height: 0;
  margin-left: -13px;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 26px solid var(--gold-bright);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
  z-index: 3;
}

/* Пасхалка: колесо вспыхивает золотом. */
.scout-wheel.is-special .scout-wheel__disc {
  animation: scout-flash 1.4s ease-out 2;
}

@keyframes scout-flash {
  0% { box-shadow: 0 0 0 6px var(--panel-2), 0 0 0 8px rgba(240, 201, 92, 0.9), 0 0 10px rgba(240, 201, 92, 0.3); filter: brightness(1); }
  30% { box-shadow: 0 0 0 6px var(--panel-2), 0 0 0 8px rgba(240, 201, 92, 1), 0 0 70px rgba(240, 201, 92, 0.85); filter: brightness(1.35); }
  100% { box-shadow: 0 0 0 6px var(--panel-2), 0 0 0 8px rgba(201, 163, 92, 0.55), 0 0 40px rgba(201, 163, 92, 0.18); filter: brightness(1); }
}

.scout-wheel__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--parchment);
}

.scout-swatch {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  flex: none;
}

.scout-swatch--success { background: var(--scout-seg-success); }
.scout-swatch--forced { background: var(--scout-seg-forced); }
.scout-swatch--partial { background: var(--scout-seg-partial); }
.scout-swatch--failure { background: var(--scout-seg-failure); }

.scout-meet__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.scout-meet__wait {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--muted);
}

.scout-meet__title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--parchment);
}

.scout-meet__title--success { color: var(--effect-positive); }
.scout-meet__title--partial { color: var(--accent); }
.scout-meet__title--failure { color: var(--effect-negative); }

.scout-special {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(240, 201, 92, 0.6);
  background: rgba(240, 201, 92, 0.08);
  color: var(--scout-gold);
  font-weight: 600;
  animation: scout-special 1.4s ease-out 2;
}

@keyframes scout-special {
  0% { box-shadow: 0 0 0 rgba(240, 201, 92, 0); }
  30% { box-shadow: 0 0 26px rgba(240, 201, 92, 0.7); }
  100% { box-shadow: 0 0 0 rgba(240, 201, 92, 0); }
}

.scout-rankup {
  font-weight: 700;
  color: var(--gold-bright);
}

.scout-rewards {
  gap: 8px;
}

.scout-reward {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.scout-reward .scout-num {
  color: var(--parchment);
}

.scout-meet__heroes {
  gap: 8px;
}

.scout-meet__hero {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.scout-meet__hero-name {
  flex: 1;
  min-width: 0;
}

.scout-meet__fine {
  color: var(--effect-positive);
  font-size: 13px;
  text-align: right;
}

.scout-meet__hurt {
  color: var(--effect-negative);
  font-size: 13px;
  text-align: right;
}

.scout-meet__back {
  align-self: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  .scout-wheel.is-special .scout-wheel__disc,
  .scout-special {
    animation: none;
  }
  .scout-wheel.is-special .scout-wheel__disc {
    box-shadow: 0 0 0 6px var(--panel-2), 0 0 0 8px rgba(240, 201, 92, 1), 0 0 50px rgba(240, 201, 92, 0.6);
  }
}

/* Цвет ранга — после .scout-kicker: подпись ранга красится им. */
.scout-tone--wood { color: var(--scout-wood); }
.scout-tone--copper { color: var(--scout-copper); }
.scout-tone--iron { color: var(--scout-iron); }
.scout-tone--silver { color: var(--scout-silver); }
.scout-tone--gold { color: var(--scout-gold); }
.scout-tone--platinum { color: var(--scout-platinum); }
.scout-tone--legendary { color: var(--scout-legendary); }

/* --- Ширина ------------------------------------------------------------- */

@media (max-width: 1180px) {
  .scout-send__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .scout-send__left {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .scout-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .scout-meet {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 18px 16px;
  }
}

@media (max-width: 720px) {
  /* На телефоне фигура и покрытие встают сразу под отрядом, а длинный
     список героев — в конец: иначе до пентаграммы листать весь список. */
  .scout-send__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .scout-send__left {
    display: contents;
  }
  .scout-send__center { order: 4; }
  .scout-send__right { order: 5; }
  .scout-send__go-row { order: 6; }
  .scout-send__reason { order: 6; }
  .scout-picker { order: 7; }
  .scout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .scout-picker__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .scout-rank-name {
    font-size: 24px;
  }
  .scout-meet__title {
    font-size: 28px;
  }
}
