/**
 * The logo dropdown.
 *
 * Deliberately written against the variables both games already define
 * (--ink, --ink-dim, --panel, --line, --radius-sm) rather than against fixed
 * colours, so the menu picks up each game's palette instead of importing one
 * game's look into the other.
 */

.game-switch {
  position: relative;
  display: flex;
  align-items: center;
}

/* The brand is now a trigger, so it needs the affordances of one. */
.game-switch .brand {
  cursor: pointer;
  padding: 4px 6px;
  margin-left: -6px;
  border-radius: var(--radius-sm, 8px);
  transition: background 120ms ease;
}

.game-switch .brand:hover,
.game-switch.is-open .brand {
  background: rgba(255, 255, 255, 0.06);
}

.game-switch .brand:focus-visible {
  outline: 2px solid var(--sonar, #3ce6a6);
  outline-offset: 2px;
}

.brand-chevron {
  width: 12px;
  height: 12px;
  flex: none;
  margin-left: 1px;
  color: var(--ink-dim, #8fa6b5);
  transition: transform 140ms ease;
}

.game-switch.is-open .brand-chevron { transform: rotate(180deg); }

.game-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 286px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--panel, #0e1c26);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  animation: game-switch-in 120ms ease;
}

@keyframes game-switch-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .game-switch-menu { animation: none; }
  .brand-chevron { transition: none; }
}

.game-switch-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink, #e8f2f7);
}

.game-switch-item:hover,
.game-switch-item:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.game-switch-icon svg { width: 26px; height: 26px; display: block; }

.game-switch-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex: 1;
}

.game-switch-text strong { font-size: 14px; font-weight: 650; }

.game-switch-text small {
  font-size: 12px;
  color: var(--ink-dim, #8fa6b5);
  font-weight: 400;
}

.game-switch-tick {
  font-size: 13px;
  color: var(--sonar, #3ce6a6);
}

.game-switch-item.is-current { cursor: default; }

@media (max-width: 480px) {
  .game-switch-menu { min-width: 246px; }
  .game-switch-text small { display: none; }
}
