.game-panel {
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 56px);
}

.game-alert {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(0, 87, 153, 0.88), rgba(3, 18, 31, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), inset 0 0 32px rgba(0, 174, 255, 0.08);
  padding: clamp(18px, 3vw, 24px);
}

.game-header,
.game-summary,
.board-shell {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(0, 87, 153, 0.88), rgba(3, 18, 31, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), inset 0 0 32px rgba(0, 174, 255, 0.08);
}

.game-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--subpage-header-gap, 18px);
  align-items: center;
  min-height: calc(var(--subpage-header-min-height, 188px) * 0.7);
  padding: var(--subpage-header-padding, clamp(18px, 4vw, 28px));
}

.game-header .lead {
  margin-bottom: 0;
}

.game-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.game-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-summary article {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.game-summary article:last-child {
  border-right: 0;
}

.game-summary span {
  display: block;
  color: var(--muted);
  font-size: 1.23rem;
  font-weight: 800;
}

.game-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--cyan);
  font-size: clamp(1.1rem, 3vw, 1.8rem);
}

.board-shell {
  position: relative;
  min-height: 560px;
  padding: clamp(12px, 2vw, 18px);
  overflow: hidden;
}

.board-viewport {
  position: relative;
  min-height: 520px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 174, 255, 0.7) rgba(255, 255, 255, 0.08);
}

.rpg-map {
  position: absolute;
  inset: 0 auto 0 0;
  width: 15450px;
  min-height: 520px;
  background-image:
    linear-gradient(rgba(3, 18, 31, 0.18), rgba(3, 18, 31, 0.36)),
    url("/pages/game/images/background_trilha.png");
  background-position: center, center;
  background-repeat: no-repeat, repeat-x;
  background-size: auto, auto 100%;
}

.rpg-map::before,
.rpg-map::after {
  content: "";
  position: absolute;
  inset: 0;
}

.rpg-map::before {
  background: linear-gradient(90deg, rgba(3, 18, 31, 0.12), transparent 18%, transparent 82%, rgba(3, 18, 31, 0.12));
}

.rpg-map::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.16));
}

.map-region {
  position: absolute;
  z-index: 1;
  color: rgba(232, 246, 255, 0.72);
  font-size: clamp(0.72rem, 1.5vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.region-one { top: 9%; left: 180px; }
.region-two { top: 15%; left: 2800px; }
.region-three { top: 74%; left: 6100px; }
.region-four { top: 12%; left: 10100px; }

.board {
  position: relative;
  z-index: 2;
  width: 15450px;
  min-height: 520px;
}

.route-layer {
  position: absolute;
  inset: 0;
  width: 15450px;
  height: 520px;
  overflow: visible;
  pointer-events: none;
}

.route-arrow {
  position: absolute;
  color: rgba(255, 214, 120, 0.96);
  font-size: 1.25rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 214, 120, 0.35);
}

 .board-cell {
  position: absolute;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  border: 0;
  background: url("/pages/game/images/icon/bloqueado.png") center / contain no-repeat;
  overflow: visible;
  box-shadow: none;
}

.board-cell::before {
  content: none;
}

.board-cell span:first-child {
  position: absolute;
  inset: auto 0 -18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.board-cell.done {
  background-image: url("/pages/game/images/icon/concluido.png");
}

.board-cell.active {
  background-image: url("/pages/game/images/icon/atual.png");
  filter: drop-shadow(0 0 14px rgba(255, 214, 120, 0.48));
}

.board-cell.locked {
  background-image: url("/pages/game/images/icon/bloqueado.png");
}

.board-cell.active span:first-child {
  color: rgba(255, 255, 255, 0.94);
}

.board-cell.milestone {
  width: 76px;
  height: 76px;
}

.pawn {
  position: absolute;
  right: -12px;
  bottom: -14px;
  display: grid;
  place-items: center;
  width: clamp(34px, 4.8vw, 48px);
  height: clamp(34px, 4.8vw, 48px);
  border-radius: 50%;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(0, 174, 255, 0.22);
}

.pawn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .game-panel {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 28px);
  }

  .game-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .game-header .game-copy,
  .game-header .page-logo,
  .game-header .game-actions {
    grid-column: auto;
    justify-self: center;
  }

  .game-header .game-copy {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .game-summary {
    grid-template-columns: 1fr;
  }

  .game-summary article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .game-summary article:last-child {
    border-bottom: 0;
  }

  .board {
    min-height: 520px;
  }

  .board-shell {
    min-height: 560px;
  }
}

.game-header .game-copy {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

.game-header .page-logo {
  grid-column: var(--subpage-logo-column, 2);
  width: var(--subpage-logo-width, min(270px, 63vw));
  margin-inline: auto;
  justify-self: var(--subpage-logo-alignment, center);
}

.game-header .game-actions {
  grid-column: var(--subpage-actions-column, 3);
  justify-self: end;
}

.game-actions .ghost-link {
  min-height: calc(var(--subpage-button-height, 30px) * 0.85);
  text-decoration: none;
  text-align: center;
  justify-content: center;
  border-color: rgba(0, 87, 153, 0.35);
  box-shadow:
    0 5px 0 rgba(0, 42, 74, 0.95),
    0 10px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transform: translateY(-3px);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.game-actions .ghost-link:hover {
  transform: translateY(-5px);
  box-shadow:
    0 7px 0 rgba(0, 42, 74, 0.95),
    0 14px 24px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.game-actions .ghost-link:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(0, 42, 74, 0.95),
    0 6px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
