/* v05 APEX: difficulty picker, four modes and stronger menu presence. */
.mode-picker {
  flex-wrap: wrap;
  row-gap: 12px;
}
.difficulty-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -6px 0 18px;
}
.difficulty-picker > span {
  color: #8fa6ad;
  font-size: calc(12px * var(--text-scale, 1));
  letter-spacing: 1.5px;
  margin-right: 6px;
}
.difficulty-picker button {
  border: 1px solid rgba(179, 224, 218, 0.22);
  background: rgba(8, 13, 19, 0.72);
  color: #a5b9c1;
  font: 700 calc(12px * var(--text-scale, 1)) / 1 Consolas, monospace;
  letter-spacing: 1px;
  padding: 9px 13px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.difficulty-picker button:hover:not(:disabled),
.difficulty-picker button:focus-visible {
  border-color: var(--mint);
  color: var(--text);
}
.difficulty-picker button.active {
  border-color: var(--mint);
  color: #071015;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(162, 255, 215, 0.35);
}
.difficulty-picker button[data-diff="hard"].active {
  background: #ffa675;
  border-color: #ffa675;
  box-shadow: 0 0 18px rgba(255, 166, 117, 0.4);
}
.difficulty-picker button[data-diff="nightmare"].active {
  background: #ff4d91;
  border-color: #ff4d91;
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 77, 145, 0.5);
}
.difficulty-picker button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.difficulty-picker small {
  flex-basis: 100%;
  color: #91a4aa;
  font-size: calc(13px * var(--text-scale, 1));
  line-height: 1.5;
  margin-top: 2px;
}
#menuTitle {
  text-shadow: 0 0 42px rgba(162, 255, 215, 0.22);
}
#menuTitle span {
  text-shadow: 0 0 36px rgba(162, 255, 215, 0.55), 0 0 2px rgba(255, 255, 255, 0.6);
}
.announcement strong {
  text-shadow: 0 0 28px rgba(162, 255, 215, 0.45);
}
@media (max-width: 760px) {
  .difficulty-picker button {
    flex: 1;
    padding: 10px 6px;
  }
  .difficulty-picker > span {
    flex-basis: 100%;
  }
}
body.reduced-motion .difficulty-picker button {
  transition: none;
}
/* Vignette lives in CSS so the compositor draws it, not the canvas. */
body.gfx-high #app::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
}
/* Sector and boss announcements: a slim banner under the HUD that never covers the arena centre. */
#announcement.announcement {
  top: var(--hud-bottom, 190px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: auto;
  max-width: min(560px, calc(100% - 32px));
  padding: 7px 18px 8px;
  background: rgba(8, 13, 19, 0.5);
  border-left: 2px solid rgba(162, 255, 215, 0.6);
  border-radius: 4px;
  text-align: left;
  opacity: 0.92;
  transition: opacity 0.45s ease;
  animation: announce-banner 0.25s ease-out;
}
#announcement.announcement.leaving { opacity: 0; }
#announcement.announcement > span {
  font-size: calc(11px * var(--text-scale, 1));
  letter-spacing: 3px;
}
#announcement.announcement strong {
  display: inline;
  margin: 0 0 0 10px;
  font-size: calc(18px * var(--text-scale, 1));
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(162, 255, 215, 0.35);
}
#announcement.announcement p {
  margin-top: 3px;
  font-size: calc(13px * var(--text-scale, 1));
  line-height: 1.35;
}
@keyframes announce-banner {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 0.92; transform: translate(-50%, 0); }
}
@media (max-width: 760px) {
  #announcement.announcement { padding: 5px 12px 6px; }
  #announcement.announcement p { display: none; }
  #announcement.announcement strong { display: block; margin: 2px 0 0; font-size: calc(15px * var(--text-scale, 1)); }
}
