/* Блок «Границы на карте» (Pit + правила) */
.hide-seek-zone-map {
  margin: 0 0 1.25rem;
  width: 100%;
}

.hide-seek-zone-map--collapsed {
  margin: 1.25rem 0 0;
}

.hide-seek-zone-map__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted, rgba(255, 255, 255, 0.78));
}

.hide-seek-zone-map__summary {
  cursor: pointer;
  list-style: none;
  margin: 0 0 0.65rem;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted, rgba(255, 255, 255, 0.78));
  user-select: none;
}

.hide-seek-zone-map__summary::-webkit-details-marker {
  display: none;
}

.hide-seek-zone-map__summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
}

.hide-seek-zone-map--collapsed[open] > .hide-seek-zone-map__summary::before {
  content: '▾ ';
}

.hide-seek-zone-map--collapsed:not([open]) > .hide-seek-zone-map__frame,
.hide-seek-zone-map--collapsed:not([open]) > .hide-seek-zone-map__link {
  display: none;
}

.hide-seek-zone-map__frame {
  position: relative;
  width: 100%;
  height: min(520px, 58vh);
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.hide-seek-zone-map .hide-seek-zone-map__iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.hide-seek-zone-map__link {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

/* Pit · Игра → Статусы */
.hide-seek-zone-tag {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.hide-seek-apps-status-table td .hide-seek-zone-tag {
  margin-top: 0;
}

.hide-seek-zone-tag--in {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.hide-seek-zone-tag--out {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.45);
}

.hide-seek-zone-tag--no_gps,
.hide-seek-zone-tag--no_consent,
.hide-seek-zone-tag--warn {
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hide-seek-zone-tag--waiting,
.hide-seek-zone-tag--online {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.hide-seek-apps-status-meta__zone,
.hide-seek-apps-status-meta__tg {
  margin-top: 0.35rem;
  font-size: 0.88rem;
}

.hide-seek-apps-status-meta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.hide-seek-apps-status-meta__tg-text {
  flex: 1 1 12rem;
  min-width: 0;
}

.hide-seek-tg-test-form {
  display: inline-flex;
  flex-shrink: 0;
  margin: 0;
}

.hide-seek-apps-status-cols {
  align-items: stretch;
}

.hide-seek-apps-status-col .table-wrap {
  overflow-x: hidden;
  max-width: 100%;
}

.hide-seek-apps-status-table {
  width: 100%;
  table-layout: fixed;
}

.hide-seek-apps-status-table th,
.hide-seek-apps-status-table td {
  vertical-align: middle;
}

.hide-seek-apps-status-table th:nth-child(1),
.hide-seek-apps-status-table td.hide-seek-apps-status-table__team {
  width: 30%;
  word-break: break-word;
  padding-right: 0.5rem;
}

.hide-seek-apps-status-table th:nth-child(2),
.hide-seek-apps-status-table td.hide-seek-apps-status-table__status {
  width: 70%;
  min-width: 0;
}

.hide-seek-apps-status-table__team-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.hide-seek-apps-status-table__team-name {
  font-weight: 600;
  line-height: 1.3;
}

.hide-seek-apps-status-table__team-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 3px;
}

.hide-seek-apps-status-table__team-link:hover,
.hide-seek-apps-status-table__team-link:focus-visible {
  color: var(--lime, #fff);
  text-decoration-color: currentColor;
}

.hide-seek-apps-status-table__plate {
  font-size: 0.82rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.hide-seek-apps-status-table tr:has(+ .hide-seek-apps-status-table__photos-row) td {
  border-bottom: 0;
  padding-bottom: 0.2rem;
}

.hide-seek-apps-status-table__photos {
  padding-top: 0;
  vertical-align: top;
}

.hide-seek-apps-status-table__photos .hs-spot-grid {
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
}

.hide-seek-apps-status-table__photos .hs-spot-thumb {
  width: auto;
  flex: 1 1 0;
  max-width: 6.5rem;
  min-width: 0;
}

.hide-seek-apps-status-table__photos .hs-spot-thumb img {
  height: 4.4rem;
}

.hide-seek-apps-status-table__photos .hs-spot-thumb figcaption {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hide-seek-apps-status-table__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
  width: 100%;
}

.hide-seek-apps-status-table__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  width: 100%;
}

.hide-seek-apps-status-table__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  flex: 1 1 auto;
  min-width: 0;
}

.hide-seek-apps-status-table__caught {
  flex: 0 0 auto;
  margin-left: auto;
}

.hide-seek-apps-status-table__tg {
  width: 100%;
  line-height: 1.2;
}

.hide-seek-apps-status-table__tags > .status,
.hide-seek-apps-status-table__tags > .hide-seek-zone-tag,
.hide-seek-apps-status-table__tags > .hide-seek-zone-tg-sent {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
}

/* «В игре» и GPS-бейджи в одном стиле */
.hide-seek-apps-status-table__tags > .status,
.hide-seek-apps-status-table__tags > .hide-seek-zone-tag {
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-top: 0 !important;
  white-space: nowrap;
}

.hide-seek-apps-status-table__tags > .hide-seek-zone-tag--online,
.hide-seek-apps-status-table__tags > .hide-seek-zone-tag--waiting,
.hide-seek-apps-status-table__tags > .hide-seek-zone-tag--in {
  background: rgba(255, 0, 128, 0.15);
  color: var(--lime);
  border: 1px solid rgba(255, 0, 128, 0.35);
}

.hide-seek-apps-status-table__tags > .hide-seek-zone-tag--out {
  background: rgba(255, 107, 107, 0.12);
  color: var(--err);
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.hide-seek-apps-status-table__tags > .hide-seek-zone-tag--no_gps,
.hide-seek-apps-status-table__tags > .hide-seek-zone-tag--no_consent {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hide-seek-apps-status-table__caught-form {
  display: inline-flex;
  width: auto;
  margin: 0;
}

.hide-seek-apps-status-table__caught-form button.btn,
.hide-seek-apps-status-table__caught-form button.btn--sm,
.hide-seek-apps-status-table__caught-form button[type='submit'] {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0.16rem 0.42rem !important;
  border-radius: 4px !important;
  font-size: 0.68rem !important;
  font-weight: 700;
  line-height: 1.25 !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: none !important;
  box-shadow: none !important;
}

.hide-seek-apps-status-table .hide-seek-zone-tg-sent {
  display: inline !important;
  margin: 0 !important;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hide-seek-tg-diag--ok {
  color: #86efac;
}

.hide-seek-tg-diag--err {
  color: #fda4af;
}

.hide-seek-zone-tg-sent {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
}

.hide-seek-zone-tg-sent--pending {
  color: #fda4af;
}

/* Быстрая смена этапа игры */
.hide-seek-stage-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  margin: 0 0 1rem;
  padding: 0.95rem 1.1rem;
}

.hide-seek-stage-switch__main {
  min-width: 0;
  flex: 1 1 auto;
}

.hide-seek-stage-switch__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.65rem;
}

.hide-seek-stage-switch__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hide-seek-stage-switch__now {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 10.5rem;
  padding: 0.75rem 1.15rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 150, 50, 0.22), rgba(255, 90, 0, 0.08));
  border: 1px solid rgba(255, 160, 70, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 150, 0.08);
}

.hide-seek-hints-release p {
  margin: 0;
}

.hide-seek-hints-release__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.hide-seek-hints-release__form p {
  flex: 1 1 16rem;
}

.hide-seek-stage-switch__now-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 196, 140, 0.95);
}

.hide-seek-stage-switch__now-value {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
}

.hide-seek-reg-toggle {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hide-seek-reg-toggle__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hide-seek-reg-toggle__hint {
  margin: 0.25rem 0 0;
}

.hide-seek-reg-toggle__form {
  margin: 0;
  flex: 0 0 auto;
}

.hide-seek-stage-switch__primary,
.hide-seek-stage-switch__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.hide-seek-stage-switch__secondary {
  margin-top: 0.55rem;
}

.hide-seek-stage-switch__form {
  margin: 0;
  display: inline-flex;
}

.hide-seek-stage-switch__form.hide-seek-stage-switch__restart {
  margin-left: auto;
}

.hide-seek-past-rounds__round + .hide-seek-past-rounds__round {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hide-seek-past-rounds__list {
  margin: 0.25rem 0 0.6rem;
  padding-left: 1.2rem;
}

.hide-seek-stage-switch__form {
  margin: 0;
  display: inline-flex;
}

.hide-seek-stage-switch__form.hide-seek-stage-switch__restart {
  margin-left: auto;
}

.hide-seek-stage-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.42rem 0.75rem;
  border-radius: 6px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

button.hide-seek-stage-switch__btn[type='submit'] {
  background: rgba(255, 120, 40, 0.08);
  background-image: none;
  border: 1px solid rgba(255, 140, 50, 0.42);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  opacity: 1;
  filter: none;
}

button.hide-seek-stage-switch__btn[type='submit']:hover:not(:disabled) {
  background: rgba(255, 120, 40, 0.2);
  background-image: none;
  border-color: rgba(255, 160, 70, 0.85);
  color: #fff;
  filter: none;
  transform: none;
}

button.hide-seek-stage-switch__btn--ghost[type='submit'] {
  background: rgba(255, 255, 255, 0.04);
  background-image: none;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.68);
  font-weight: 600;
}

button.hide-seek-stage-switch__btn[type='submit'].is-active,
button.hide-seek-stage-switch__btn[type='submit']:disabled.is-active {
  background: var(--accent);
  background-image: none;
  color: #fff;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
  opacity: 1;
  filter: none;
  transform: none;
}

@media (max-width: 720px) {
  .hide-seek-stage-switch {
    flex-direction: column;
    align-items: stretch;
  }

  .hide-seek-stage-switch__now {
    margin-left: 0;
    order: -1;
  }
}

.hide-seek-stage-switch__settings {
  margin-left: 0.25rem;
  font-size: 0.82rem;
}

.hs-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0.55rem 0 0;
  font-family: var(--font, Manrope, sans-serif);
  font-variant-numeric: tabular-nums;
}

.hs-timer__value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.hs-timer.is-over .hs-timer__value {
  opacity: 0.72;
}

.hs-timer.is-paused .hs-timer__value {
  opacity: 0.8;
}

.hs-timer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.hs-timer-controls__form {
  margin: 0;
}

.hs-timer-controls .btn {
  min-width: 5.4rem;
}

.hs-timer-controls__msg {
  flex: 1 0 100%;
  margin: 0.15rem 0 0;
  color: #ffb4b4;
  font-size: 0.88rem;
  font-weight: 700;
}
