/* ============================= */
/* RIGHT SIDE CHARACTER LAYOUT */
/* ============================= */

.game-menu-right {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.72rem;
  min-height: 0;
  align-content: stretch;
}

.character-side-top {
  display: flex;
  justify-content: flex-end;
}

.menu-character-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem 0;
  min-height: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 8px 24px rgba(0,0,0,0.16);
  overflow: hidden;
}

.character-card-header {
  display: none;
}

.character-card-header h3 {
  margin: 0;
  font-size: 1.45rem;
  color: #fff;
}

/* ============================= */
/* CHARACTER SHOWCASE */
/* ============================= */

.character-showcase {
  position: relative;
  padding: 0.35rem 0.55rem 0.1rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top center, rgba(168, 85, 247, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(168, 85, 247, 0.12);
  min-height: 300px;
  height: 300px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.character-showcase::before {
  content: '';
  position: absolute;
  inset: auto 18% 10% 18%;
  height: 15%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(104, 225, 255, 0.08), transparent 72%);
  pointer-events: none;
}

.character-stage {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: -6px;
}

.menu-character-canvas {
  display: block;
  width: 360px;
  height: 360px;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

/* ============================= */
/* FEATURE BUTTONS ON RIGHT */
/* ============================= */

.feature-buttons {
  display: grid;
  gap: 0.65rem;
}

.main-menu-feature-buttons {
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  justify-content: stretch;
  align-items: stretch;
  min-height: 0;
}

.boltypass-summary-dock {
  min-width: 0;
  align-self: stretch;
}

.boltypass-summary-dock:empty {
  display: none;
}

.feature-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.95rem;
  min-height: 46px;
  min-width: 128px;
  text-align: center;
  cursor: pointer;
  color: var(--bm-text);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: 12px;
}

.feature-button:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.28);
  background: rgba(255,255,255,0.08);
}

.feature-button-top {
  min-width: 132px;
}

.feature-button-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-screen-mode .character-side-top .feature-button-top,
.shop-screen-mode .main-menu-feature-buttons {
  display: none;
}

.shop-screen-mode .game-menu-right {
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
}

.shop-screen-mode .character-side-top {
  justify-content: center;
  width: 100%;
}

.shop-category-bar {
  width: 100%;
}

.shop-category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.shop-screen-mode .menu-character-card {
  width: 100%;
  max-width: 430px;
  padding: 0.75rem 0.9rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at top center, rgba(255, 210, 92, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.045);
}

.shop-screen-mode .character-showcase {
  min-height: 380px;
  height: 380px;
  align-items: center;
}

.shop-screen-mode .character-stage {
  width: 360px;
  height: 360px;
  margin-top: 0;
}

.shop-nav-arrow {
  appearance: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(9, 7, 18, 0.7);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  align-self: center;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
  z-index: 1;
}

.shop-screen-mode .shop-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.shop-screen-mode #shopPrevItemButton {
  left: 12px;
}

.shop-screen-mode #shopNextItemButton {
  right: 12px;
}

.shop-nav-arrow:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(255, 213, 74, 0.55);
}

.shop-nav-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.shop-character-status {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem 0.2rem 0.1rem;
  text-align: center;
}

.shop-character-pill {
  display: inline-flex;
  align-self: center;
  justify-self: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.84rem;
  font-weight: 800;
}

.shop-character-subcopy {
  color: var(--bm-text-muted);
  font-size: 0.85rem;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1080px) {
  .game-menu-right {
    grid-template-rows: auto auto auto;
  }

  .character-side-top,
  .main-menu-feature-buttons {
    justify-content: start;
  }

  .character-showcase {
    min-height: 290px;
    height: 290px;
  }

  .shop-screen-mode .character-showcase {
    min-height: 330px;
    height: 330px;
  }

  .character-stage {
    width: 340px;
    height: 340px;
  }

  .menu-character-canvas {
    width: 340px;
    height: 340px;
  }
}

@media (max-width: 700px) {
  .main-menu-feature-buttons {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .boltypass-summary-dock {
    grid-column: 1 / -1;
  }

  .feature-button {
    min-width: 0;
    width: 100%;
  }

  .feature-button-top {
    width: auto;
  }
}

@media (max-width: 560px) {
  .character-showcase {
    min-height: 240px;
    height: 240px;
    padding: 0.4rem;
  }

  .character-stage {
    width: 250px;
    height: 250px;
    margin-top: -4px;
  }

  .menu-character-canvas {
    width: 250px;
    height: 250px;
  }

  .main-menu-feature-buttons {
    grid-template-columns: 1fr;
  }

  .boltypass-summary-dock {
    grid-column: auto;
  }

  .shop-screen-mode .character-showcase {
    min-height: 260px;
    height: 260px;
  }

  .shop-nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}
