/* Партия не найдена */
.game-missing-page {
  min-height: 72vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
}
.game-missing-layout {
  width: 100%;
  max-width: 1180px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 22px;
}
.game-missing-layout--single {
  max-width: 1180px;
}
.game-missing-layout--single .game-missing-main {
  flex: 1 1 100%;
  max-width: 100%;
}
.game-missing-main {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.game-missing-card {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 28px 30px;
  text-align: center;
  background: linear-gradient(165deg, rgba(30, 46, 78, 0.55), rgba(14, 22, 38, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}
.game-missing-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.92;
  filter: drop-shadow(0 4px 12px rgba(100, 160, 255, 0.25));
}
.game-missing-card h1 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.game-missing-lead {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
}
.game-missing-hint {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: #9eb0d0;
  text-align: left;
}
.game-missing-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.game-missing-actions .link-button {
  min-width: 200px;
}

.game-missing-lobby {
  width: 100%;
  min-width: 0;
  padding: 18px 20px 20px;
}
.game-missing-lobby-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.game-missing-lobby-head h2 {
  margin: 0;
  font-size: 22px;
}

.game-missing-lobby-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.game-missing-lobby-tab {
  appearance: none;
  margin: 0;
  padding: 10px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #9eb0d0;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}
.game-missing-lobby-tab:hover {
  color: #dbe7ff;
  border-color: rgba(120, 170, 255, 0.28);
}
.game-missing-lobby-tab.is-active {
  color: #eaf2ff;
  border-color: rgba(100, 160, 255, 0.45);
  background: linear-gradient(165deg, rgba(40, 72, 120, 0.45), rgba(22, 38, 72, 0.88));
  box-shadow: 0 0 0 1px rgba(100, 160, 255, 0.12);
}
.game-missing-lobby-tab:focus-visible {
  outline: 2px solid rgba(120, 180, 255, 0.65);
  outline-offset: 2px;
}
.game-missing-lobby-tab-panels {
  min-width: 0;
  width: 100%;
}
.game-missing-lobby-tab-panel[hidden] {
  display: none !important;
}
.game-missing-lobby-coming-soon {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.game-missing-lobby-status {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  min-height: 20px;
}
.game-missing-lobby-status:empty {
  display: none;
  margin: 0;
  min-height: 0;
}
.game-missing-lobby-table-root {
  min-width: 0;
  max-width: 100%;
}
.game-missing-lobby-tables {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.game-missing-lobby-subheading {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #dbe7ff;
}
.game-missing-lobby-sub .game-missing-empty {
  margin: 0;
}
.game-missing-empty--lobby {
  text-align: center;
  padding: 28px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.game-missing-lobby-empty {
  margin: 0;
  padding: 20px 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.game-missing-lobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
}
.game-missing-room-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 34, 58, 0.95), rgba(10, 14, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.game-missing-room-card:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 170, 255, 0.28);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(100, 160, 255, 0.12);
}
.game-missing-room-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #070a12;
  overflow: hidden;
}
.game-missing-room-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Иконка режима времени — поверх обложки, правый нижний угол */
.game-missing-room-card-time-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  z-index: 2;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 20px 0 0 0;
  background: linear-gradient(
    145deg,
    rgba(8, 12, 22, 0.15) 0%,
    rgba(8, 12, 22, 0.78) 42%,
    rgba(10, 16, 28, 0.92) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-right: none;
  border-bottom: none;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.game-missing-room-card-time-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}
@media (min-width: 720px) {
  .game-missing-room-card-time-badge {
    width: 86px;
    height: 86px;
    right: -8px;
    bottom: -8px;
    border-radius: 22px 0 0 0;
  }
  .game-missing-room-card-time-icon {
    width: 64px;
    height: 64px;
  }
}
.game-missing-room-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
  padding: 16px 16px 18px;
  min-width: 0;
}
.game-missing-room-card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #f2f6ff;
}
.game-missing-room-card-time {
  margin: 0;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #9cd1ff;
  letter-spacing: 0.01em;
  text-align: right;
  max-width: 100%;
}
.game-missing-room-card-tagline {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #b8c8e8;
}
.game-missing-room-card-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 2px;
}
.game-missing-room-team-presence {
  position: relative;
  display: inline-block;
  min-width: 0;
}
.game-missing-room-team-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.game-missing-room-team-summary::-webkit-details-marker {
  display: none;
}
.game-missing-room-team-presence[open] .game-missing-room-team-summary {
  border-color: rgba(125, 255, 179, 0.36);
  background: rgba(18, 28, 45, 0.9);
}
.game-missing-room-team-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.game-missing-room-team-dot.is-white {
  background: #e5efff;
  box-shadow: 0 0 0 1px rgba(176, 198, 236, 0.5);
}
.game-missing-room-team-dot.is-black {
  background: #5f6f8f;
  box-shadow: 0 0 0 1px rgba(156, 176, 208, 0.35);
}
.game-missing-room-team-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9eb0d0;
}
.game-missing-room-team-badge {
  min-width: 34px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.game-missing-room-team-badge.is-online {
  color: #0d2b1b;
  background: #7dffb3;
}
.game-missing-room-team-badge.is-offline {
  color: #c8d4ec;
  background: rgba(140, 156, 186, 0.35);
}
.game-missing-room-team-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  min-width: 220px;
  max-width: min(360px, 75vw);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 28, 0.97);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}
.game-missing-room-team-group + .game-missing-room-team-group {
  margin-top: 8px;
}
.game-missing-room-team-group-title {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.game-missing-room-team-group-title.is-online {
  color: #7dffb3;
}
.game-missing-room-team-group-title.is-offline {
  color: #aebedd;
}
.game-missing-room-team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.game-missing-room-team-member {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.3;
  color: #e8f0ff;
  background: rgba(255, 255, 255, 0.08);
}
.game-missing-room-team-empty {
  font-size: 12px;
  color: #9eb0d0;
}
.game-missing-chess-team.is-active-turn > .game-missing-room-team-summary {
  animation: game-missing-chaturaji-turn-pulse 1.1s ease-in-out infinite alternate;
}
.game-missing-chess-team.is-active-turn--white > .game-missing-room-team-summary {
  border-color: rgba(176, 210, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(160, 195, 255, 0.42),
    0 0 20px rgba(130, 175, 255, 0.48);
}
.game-missing-chess-team.is-active-turn--black > .game-missing-room-team-summary {
  border-color: rgba(150, 168, 205, 0.65);
  box-shadow:
    0 0 0 1px rgba(110, 128, 165, 0.45),
    0 0 18px rgba(90, 110, 150, 0.42);
}
.game-missing-chaturaji-team-dot--black {
  background: #e53935;
  box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.45);
}
.game-missing-chaturaji-team-dot--green {
  background: #43a047;
  box-shadow: 0 0 0 1px rgba(67, 160, 71, 0.45);
}
.game-missing-chaturaji-team-dot--red {
  background: #37474f;
  box-shadow: 0 0 0 1px rgba(120, 144, 156, 0.45);
}
.game-missing-chaturaji-team-dot--yellow {
  background: #fdd835;
  box-shadow: 0 0 0 1px rgba(253, 216, 53, 0.55);
}
.game-missing-chaturaji-team-dot--spectator {
  background: #90a4ae;
  box-shadow: 0 0 0 1px rgba(144, 164, 174, 0.45);
}
.game-missing-chaturaji-team.is-active-turn > .game-missing-room-team-summary {
  animation: game-missing-chaturaji-turn-pulse 1.1s ease-in-out infinite alternate;
}
.game-missing-chaturaji-team.is-active-turn--black > .game-missing-room-team-summary {
  border-color: rgba(239, 83, 80, 0.65);
  box-shadow:
    0 0 0 1px rgba(229, 57, 53, 0.35),
    0 0 18px rgba(229, 57, 53, 0.42);
}
.game-missing-chaturaji-team.is-active-turn--green > .game-missing-room-team-summary {
  border-color: rgba(102, 187, 106, 0.65);
  box-shadow:
    0 0 0 1px rgba(67, 160, 71, 0.35),
    0 0 18px rgba(67, 160, 71, 0.42);
}
.game-missing-chaturaji-team.is-active-turn--red > .game-missing-room-team-summary {
  border-color: rgba(120, 144, 156, 0.65);
  box-shadow:
    0 0 0 1px rgba(84, 110, 122, 0.4),
    0 0 18px rgba(84, 110, 122, 0.45);
}
.game-missing-chaturaji-team.is-active-turn--yellow > .game-missing-room-team-summary {
  border-color: rgba(255, 213, 79, 0.75);
  box-shadow:
    0 0 0 1px rgba(253, 216, 53, 0.45),
    0 0 18px rgba(255, 213, 79, 0.38);
}
@keyframes game-missing-chaturaji-turn-pulse {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.12);
  }
}
.game-missing-room-team-join {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.game-missing-room-team-join-btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.game-missing-room-card-progress {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #e0ecff;
}
.game-missing-room-card-fk-game {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(200, 214, 245, 0.88);
  letter-spacing: 0.02em;
}
.game-missing-room-card-elapsed {
  margin: 0;
  font-size: 12px;
  color: #a9bde1;
}
.game-missing-room-card-scores.game-missing-fk-scores {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #c5d6f5;
  line-height: 1.4;
}
.game-missing-room-card-status {
  margin: 6px 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #e8f0ff;
  line-height: 1.35;
}
.game-missing-room-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.game-missing-room-card-actions--open {
  flex-direction: column;
}
.game-missing-room-cta {
  flex: 1 1 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
@media (min-width: 560px) {
  .game-missing-room-card-actions:not(.game-missing-room-card-actions--open) .game-missing-room-cta {
    flex: 1 1 calc(33.333% - 7px);
  }
}
.game-missing-room-cta--wide {
  flex: 1 1 100%;
}
a.primary.link-button.game-missing-room-cta.game-missing-room-cta--white {
  background: linear-gradient(165deg, #2d4a7c, #1f3358);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}
a.primary.link-button.game-missing-room-cta.game-missing-room-cta--black {
  background: linear-gradient(165deg, #1a2235, #121a2a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.game-missing-room-cta-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.92;
}
.game-missing-room-cta-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.game-missing-room-cta--white .game-missing-room-cta-icon {
  color: #f0f6ff;
}
.game-missing-room-cta--black .game-missing-room-cta-icon {
  color: #aab8d8;
}

/* Завершённые партии — компактный список без обложек */
.game-missing-finished-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}
.game-missing-finished-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.game-missing-finished-row:last-child {
  border-bottom: none;
}
.game-missing-finished-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 200px;
}
.game-missing-finished-mode {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #eef2ff;
}
.game-missing-finished-teams {
  font-size: 13px;
  color: #b4c4e8;
  line-height: 1.35;
}
.game-missing-finished-status {
  font-size: 13px;
  font-weight: 600;
  color: #9eb0d0;
  line-height: 1.35;
}
.game-missing-finished-elapsed {
  font-size: 12px;
  color: #a9bde1;
  line-height: 1.35;
}
.game-missing-finished-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.game-missing-finished-cta {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.game-missing-finished-cta-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}
.game-missing-finished-cta-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.primary.link-button.game-missing-finished-cta.game-missing-finished-cta--white {
  background: linear-gradient(165deg, #2d4a7c, #1f3358);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}
a.primary.link-button.game-missing-finished-cta.game-missing-finished-cta--black {
  background: linear-gradient(165deg, #1a2235, #121a2a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.game-missing-finished-cta--white .game-missing-finished-cta-icon {
  color: #f0f6ff;
}
.game-missing-finished-cta--black .game-missing-finished-cta-icon {
  color: #aab8d8;
}

.game-missing-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.game-missing-table-wrap--empty {
  padding: 14px 16px;
}
.game-missing-empty {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 15px;
}
.game-missing-lobby-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.game-missing-series-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.game-missing-lobby-table th,
.game-missing-lobby-table td,
.game-missing-series-table th,
.game-missing-series-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}
.game-missing-lobby-table th,
.game-missing-series-table th {
  background: rgba(0, 0, 0, 0.22);
  font-weight: 700;
  color: #c8d6f0;
}
.game-missing-status-cell {
  vertical-align: top;
  min-width: 14rem;
}
.game-missing-status-main {
  font-weight: 600;
  margin-bottom: 4px;
}
.game-missing-status-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.game-missing-lobby-table .mono,
.game-missing-series-table .mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  max-width: 140px;
  word-break: break-all;
}
.game-missing-idle-cell {
  white-space: nowrap;
  font-size: 13px;
  color: #b4c4e4;
}
.game-missing-idle-col {
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.game-missing-idle-col--muted {
  color: var(--muted);
}
.game-missing-participants-cell {
  min-width: 240px;
}
.game-missing-participants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.game-missing-participant-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}
.game-missing-participant-role {
  color: #9eb0d0;
  font-weight: 700;
}
.game-missing-participant-name {
  color: #e8f0ff;
  font-weight: 700;
}
.game-missing-participant-status {
  font-weight: 700;
}
.game-missing-participant-status.is-online {
  color: #7dffb3;
}
.game-missing-participant-status.is-offline {
  color: #c9a8bc;
}
.game-missing-participants-empty {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}
.game-missing-mode-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: help;
  border-bottom: 1px dashed rgba(200, 214, 240, 0.45);
}
.game-missing-mode-hint::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(320px, 56vw);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 28, 0.98);
  color: #dbe7ff;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 6;
}
.game-missing-mode-hint:hover::after,
.game-missing-mode-hint:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.game-missing-actions-cell {
  white-space: normal;
  min-width: 190px;
}
.game-missing-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}
.game-missing-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.game-missing-series-cell {
  vertical-align: top;
}
.game-missing-series-played {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e8f0ff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.game-missing-mini-btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
}
.game-missing-mini-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  width: 18px;
  height: 18px;
  opacity: 0.9;
}
.game-missing-mini-btn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.game-missing-mini-btn-icon--white {
  color: #f3f7ff;
}
.game-missing-mini-btn-icon--black {
  color: #7b8cae;
}
a.game-missing-mini-btn {
  text-decoration: none;
}

.game-missing-results {
  flex: 0 1 380px;
  min-width: 280px;
  max-width: 100%;
  position: sticky;
  top: 16px;
  align-self: flex-start;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(22, 36, 62, 0.92), rgba(10, 16, 28, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.game-missing-results.hidden {
  display: none;
}
.game-missing-results-inner {
  position: relative;
  padding: 20px 18px 22px;
}
.game-missing-results-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  border-radius: 10px;
}
.game-missing-results h2 {
  margin: 0 0 12px;
  font-size: 20px;
  padding-right: 44px;
}
.game-missing-score-line {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.45;
  color: #e8f0ff;
}
.game-missing-score-num {
  font-weight: 800;
  color: #ffd95f;
}
.game-missing-newgame-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #9cd1ff;
}
.game-missing-newgame-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.game-missing-newgame-links a.link-button {
  min-height: 38px;
}
.game-missing-board-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 18px;
  color: #9eb0d0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}
.game-missing-board-flip {
  transform: rotate(180deg);
  color: #c8e0ff;
}

@media (max-width: 900px) {
  .game-missing-results {
    position: relative;
    top: 0;
    flex: 1 1 100%;
  }
}

/* Чатураджи — карточка в лобби (четыре цвета + наблюдатель, не как у шахмат) */
.game-missing-chaturaji-card-media {
  background: #0a0e18;
}

.game-missing-chaturaji-id {
  margin: 0;
  font-size: 12px;
  font-family: ui-monospace, monospace;
  color: #8fa6cc;
  word-break: break-all;
}
.game-missing-chaturaji-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.game-missing-chaturaji-actions .game-missing-room-cta {
  flex: 1 1 calc(50% - 8px);
  min-width: 120px;
  justify-content: center;
}
.game-missing-chaturaji-cta--black {
  border-color: rgba(239, 83, 80, 0.45);
  background: linear-gradient(165deg, rgba(198, 40, 40, 0.5), rgba(183, 28, 28, 0.92));
}
.game-missing-chaturaji-cta--green {
  border-color: rgba(102, 187, 106, 0.45);
  background: linear-gradient(165deg, rgba(56, 142, 60, 0.45), rgba(27, 94, 32, 0.92));
}
.game-missing-chaturaji-cta--red {
  border-color: rgba(120, 144, 156, 0.45);
  background: linear-gradient(165deg, rgba(55, 71, 79, 0.55), rgba(38, 50, 56, 0.95));
}
.game-missing-chaturaji-cta--yellow {
  border-color: rgba(255, 213, 79, 0.5);
  color: #1a1208;
  background: linear-gradient(165deg, rgba(255, 241, 118, 0.95), rgba(255, 179, 0, 0.98));
}
.game-missing-chaturaji-cta--spectator {
  flex-basis: 100%;
  background: rgba(30, 46, 78, 0.55);
}
.game-missing-chaturaji-actions-ext {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.game-missing-chaturaji-actions-ext .game-missing-room-cta {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  padding: 8px 10px;
}
