/* v0.13.2 封面。載入順序在 style.css 之後；所有選擇器都掛在 body .screen-menu 底下以蓋過舊規則。 */
body .screen-menu:not([hidden]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 72px);
  padding: clamp(14px, 3vh, 36px) clamp(20px, 6vw, 110px);
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(120% 90% at 22% 55%, rgba(60, 20, 110, 0.5), transparent 60%),
    linear-gradient(180deg, rgba(40, 18, 80, 0.38), rgba(26, 10, 54, 0.62));
  isolation: isolate;
}
body .screen-menu .cv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}
body .screen-menu .cv-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
body .screen-menu .cv-hero {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 640px;
}
body .screen-menu .cv-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ff7be8;
}
body .screen-menu .cv-eyebrow i {
  width: 36px;
  height: 2px;
  background: #ff2bd6;
  box-shadow: 0 0 8px #ff2bd6;
}
body .screen-menu .cv-title-wrap {
  position: relative;
}
body .screen-menu .cv-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: 'Arial Black', 'Arial Narrow', 'Segoe UI', sans-serif;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-shadow: none;
}
body .screen-menu .cv-title > span {
  margin: 0;
  display: block;
}
body .screen-menu .cv-last {
  color: #fff;
  text-shadow:
    0 4px 0 #5a2a9a,
    0 8px 22px rgba(20, 0, 50, 0.6);
}
body .screen-menu .cv-lightword {
  background: linear-gradient(180deg, #fffbd0 10%, #ffd166 55%, #ffa63a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 #8a4a12) drop-shadow(0 0 18px rgba(255, 209, 102, 0.55));
}
body .screen-menu .cv-beacon {
  position: absolute;
  right: -2%;
  top: -8%;
  height: 118%;
  width: auto;
  pointer-events: none;
  overflow: visible;
}
body .screen-menu .cv-bglow,
body .screen-menu .cv-rays {
  animation: cv-pulse 3.2s ease-in-out infinite;
  transform-origin: 100px 116px;
}
@keyframes cv-pulse {
  50% {
    opacity: 0.55;
    transform: scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  body .screen-menu .cv-bglow,
  body .screen-menu .cv-rays {
    animation: none;
  }
}
body .screen-menu .cv-subtitle {
  margin: 14px 0 0;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #ffd166;
}
body .screen-menu .cv-lead {
  margin: 6px 0 0;
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e9defa;
}
body .screen-menu .cv-actions {
  margin-top: clamp(14px, 2.4vh, 26px);
}
body .screen-menu .touch-instructions {
  margin: 10px 0 0;
  max-width: 34em;
  font-size: 12px;
  line-height: 1.5;
  color: #cdbbef;
}
body .screen-menu .cv-panel {
  flex: 0 0 clamp(300px, 31vw, 440px);
  max-height: 100%;
  overflow-y: auto;
  padding: 14px 16px 16px;
  border: 1px solid rgba(190, 150, 255, 0.35);
  border-radius: 18px;
  background: rgba(24, 12, 52, 0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(10, 0, 30, 0.45);
  color: #f1e9ff;
}
body .screen-menu .cv-label {
  margin: 12px 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #ff7be8;
}
body .screen-menu .cv-panel > .cv-label:first-child {
  margin-top: 0;
}
body .screen-menu .cv-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
body .screen-menu .cv-map {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 6px 8px;
  text-align: left;
  font: inherit;
  color: #fff;
  cursor: pointer;
  border: 2px solid rgba(190, 150, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
body .screen-menu .cv-map svg {
  width: 100%;
  height: auto;
  border-radius: 7px;
  display: block;
}
body .screen-menu .cv-map b {
  font-size: 15px;
  letter-spacing: 0.06em;
}
body .screen-menu .cv-desc {
  font-size: 11px;
  line-height: 1.35;
  color: #d8c9f5;
}
body .screen-menu .cv-stars {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #8f7bb8;
}
body .screen-menu .cv-stars.has-stars {
  color: #ffd166;
}
body .screen-menu .cv-map[aria-pressed='true'] {
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.16);
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.35);
}
body .screen-menu .cv-map:focus-visible {
  outline: 3px solid #ff7be8;
  outline-offset: 2px;
}
body .screen-menu .cv-route {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body .screen-menu .cv-route li {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 209, 102, 0.18);
  color: #ffe9a8;
}
body .screen-menu .cv-route li + li::before {
  content: '→';
  margin-right: 8px;
  color: #ff7be8;
}
body .screen-menu .cv-note {
  margin: 5px 0 0;
  font-size: 11px;
  color: #c9b8ec;
}
body .screen-menu .cv-foes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #e4d8fa;
}
body .screen-menu .cv-foes b {
  margin-right: 6px;
  color: #ffd166;
}
body .screen-menu .cv-settings {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
body .screen-menu .cv-settings label {
  color: #e4d8fa;
  font-size: 12px;
}
body .screen-menu .cv-settings small {
  grid-column: 1 / -1;
  color: #c9b8ec;
}

/* 直向手機 */
@media (max-width: 760px) and (orientation: portrait) {
  body .screen-menu:not([hidden]) {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 14px 16px 20px;
  }
  body .screen-menu .cv-hero {
    flex: 0 0 auto;
    max-width: none;
  }
  body .screen-menu .cv-title {
    font-size: clamp(60px, 22vw, 110px);
  }
  body .screen-menu .cv-panel {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
  }
}

/* 矮橫向（手機橫放） */
@media (orientation: landscape) and (max-height: 520px) {
  body .screen-menu:not([hidden]) {
    padding: 8px 20px;
    gap: 16px;
  }
  body .screen-menu .cv-eyebrow,
  body .screen-menu .cv-lead,
  body .screen-menu .cv-note,
  body .screen-menu .cv-desc,
  body .screen-menu .touch-instructions {
    display: none;
  }
  body .screen-menu .cv-title {
    flex-direction: row;
    align-items: baseline;
    gap: 0.22em;
    font-size: clamp(42px, 10vw, 64px);
  }
  body .screen-menu .cv-beacon {
    right: auto;
    left: 100%;
    height: 130%;
    top: -15%;
  }
  body .screen-menu .cv-title-wrap {
    max-width: 78%;
  }
  body .screen-menu .cv-subtitle {
    margin-top: 6px;
    font-size: 14px;
  }
  body .screen-menu .cv-actions {
    margin-top: 10px;
  }
  body .screen-menu .cv-panel {
    flex-basis: clamp(280px, 44vw, 400px);
    padding: 10px 12px;
  }
  body .screen-menu .cv-label {
    margin: 8px 0 4px;
  }
  body .screen-menu .cv-map svg {
    height: 36px;
    object-fit: cover;
  }
  body .screen-menu .cv-map b {
    font-size: 13px;
  }
  body .screen-menu .cv-foes {
    font-size: 11px;
    gap: 2px;
  }
  body .screen-menu .cv-settings small {
    display: none;
  }
}

body:not(.touch-mode) .screen-menu .touch-instructions {
  display: none;
}
@media (orientation: landscape) and (max-height: 520px) {
  body .screen-menu .cv-beacon {
    height: 210%;
    top: -55%;
    left: 98%;
  }
}

body .screen-menu .cv-title-wrap {
  width: fit-content;
  max-width: 100%;
}
body .screen-menu .cv-beacon {
  right: -34%;
  top: -10%;
}
@media (max-width: 760px) and (orientation: portrait) {
  body .screen-menu .cv-title-wrap {
    width: 100%;
  }
  body .screen-menu .cv-beacon {
    right: -2%;
    top: -8%;
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  body .screen-menu .cv-title-wrap {
    max-width: none;
  }
  body .screen-menu .cv-beacon {
    right: auto;
    left: 100%;
  }
}
