/* Minimal game shell layout.

This file is referenced by `game/templates/game/base_game.html` as `game/css/game.css`.
It exists to prevent a 404 and to provide a stable layout for `game_main` and
(optional) `game_hud` content.
*/

.game-shell__layout {
  position: relative;
  min-height: 100vh;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.game-shell__main {
  width: 100%;
  min-width: 0;
}

/* The HUD in this project is typically `position: fixed` (see `static/css/play.css`).
   Keep the aside from reserving horizontal space while still rendering content. */
.game-shell__hud {
  width: 0;
  min-width: 0;
}

/* ── Aurora Night global topbar ─────────────────────────────── */
body[data-theme="game"] .bq-topbar {
  background: rgba(17, 12, 32, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  color: var(--ink, #f6f2ff);
  position: sticky;
  top: 0;
  z-index: 100;
}

body[data-theme="game"] .bq-topbar__inner {
  padding: 10px 24px;
  gap: 16px;
}

body[data-theme="game"] .bq-topbar__brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

body[data-theme="game"] .bq-topbar__logo {
  height: 36px;
  width: auto;
  max-height: 36px;
  display: block;
}

body[data-theme="game"] .bq-topbar__welcome {
  font-family: var(--font-ui, "Outfit", system-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute, #b6abdd);
  letter-spacing: 0;
}

/* ── Page context strip (breadcrumb + page action) ─────────── */
.bq-page-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 0;
  margin-bottom: 4px;
}

.bq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui, "Outfit", system-ui);
  font-size: 13px;
  margin-right: auto;
}

.bq-breadcrumb__link {
  color: var(--ink-faint, #8a7fb8);
  text-decoration: none;
  transition: color 120ms;
}
.bq-breadcrumb__link:hover { color: var(--ink, #f6f2ff); }

.bq-breadcrumb__sep {
  color: var(--ink-faint, #8a7fb8);
  font-size: 12px;
  opacity: .5;
}

.bq-breadcrumb__current {
  color: var(--ink-mute, #b6abdd);
  font-weight: 600;
}

.bq-btn-ghost--sm {
  font-size: 12px !important;
  padding: 5px 12px !important;
}

body[data-theme="game"] .bq-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

body[data-theme="game"] .bq-icon-btn__icon {
  filter: invert(1);
  opacity: 0.92;
}

body[data-theme="game"] .bq-icon-btn:hover .bq-icon-btn__icon {
  opacity: 1;
}

body[data-theme="game"] .bq-lang__text {
  color: rgba(255, 255, 255, 0.85);
}

body[data-theme="game"] .bq-select {
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
}

body[data-theme="game"] .bq-info-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

body[data-theme="game"] .bq-info-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

body[data-theme="game"] .bq-info-btn:focus-visible {
  outline: 3px solid rgba(0, 220, 255, 0.55);
  outline-offset: 2px;
}

body[data-theme="game"] .bq-stage-info-item__title {
  color: rgba(255, 255, 255, 0.92);
}

body[data-theme="game"] .bq-stage-info-item__desc {
  color: rgba(255, 255, 255, 0.72) !important;
}

.bq-page-transition-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 180ms ease;
  display: grid;
  place-items: center;
}

.bq-page-transition-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.9);
  animation: bq-spin 700ms linear infinite;
  animation-play-state: paused;
}

.bq-is-navigating .bq-page-transition-spinner {
  animation-play-state: running;
}

.bq-is-navigating .bq-page-transition-overlay {
  opacity: 1;
  pointer-events: all;
  cursor: progress;
}

.bq-is-navigating .game-shell__layout {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.bq-page-animate .game-shell__layout {
  animation: bq-page-enter 220ms ease-out both;
}

@keyframes bq-page-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bq-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-shell__layout {
    transition: none !important;
  }
  .bq-page-transition-overlay,
  .bq-is-navigating .game-shell__layout,
  .bq-page-animate .game-shell__layout {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
