/* Job change film stage (女武神). Liquid glass window on the left, the Valkyrie on the right;
   phone: film strip on top, window below. Scoped to .valkyrie-scene. */
.valkyrie-scene { overflow: hidden; background: #dfe7f2; }
.valkyrie-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; pointer-events: none; }
.valkyrie-banner {
  position: absolute; top: 12px; right: 12px; z-index: 4; display: grid; justify-items: end; padding: 6px 14px 7px;
  border-radius: 14px; border: 1px solid rgb(255 255 255 / 70%);
  background: linear-gradient(135deg, rgb(255 255 255 / 55%), rgb(220 232 255 / 34%));
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 6px 20px rgb(30 50 90 / 26%), inset 0 1px 0 rgb(255 255 255 / 85%);
  font-family: var(--glass-font, 'Microsoft JhengHei', sans-serif); pointer-events: none;
}
.valkyrie-role { font-size: 11px; letter-spacing: .12em; color: #3c4c6e; }
.valkyrie-name {
  font-size: 20px; line-height: 1.15; letter-spacing: .08em;
  background: linear-gradient(#fff6d6, #e2b85a 55%, #a8741c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #2c3e66) drop-shadow(0 0 6px rgb(255 230 160 / 80%));
}
.valkyrie-style { font-size: 11px; font-weight: 700; color: rgb(var(--valkyrie-accent, 60 76 110)); }
.valkyrie-scene.valkyrie-quake { animation: forge-quake-strong .6s cubic-bezier(.36, .07, .19, .97); }
/* Liquid glass, same treatment as the card alchemist window. */
#game .valkyrie-scene .window.job-change-service-window {
  border: 1px solid rgb(255 255 255 / 72%) !important; border-radius: 22px;
  background: linear-gradient(160deg, rgb(255 255 255 / 56%), rgb(250 252 255 / 36%) 45%, rgb(235 242 255 / 42%)) !important;
  -webkit-backdrop-filter: blur(26px) saturate(135%) brightness(1.08); backdrop-filter: blur(26px) saturate(135%) brightness(1.08);
  box-shadow: 0 18px 44px rgb(20 30 70 / 26%), inset 0 1px 0 rgb(255 255 255 / 95%), inset 0 0 0 1px rgb(255 255 255 / 22%) !important;
}
#game .valkyrie-scene .window.job-change-service-window > .titlebar {
  margin: 8px 8px 0; min-height: 34px; padding: 0 6px 0 14px; border: 0; border-radius: 14px;
  background: linear-gradient(rgb(var(--valkyrie-accent, 70 110 185) / 62%), rgb(var(--valkyrie-accent, 70 110 185) / 82%)) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%), 0 3px 10px rgb(30 60 120 / 22%);
}
#game .valkyrie-scene .town-service-close {
  width: 26px; height: 26px; border-radius: 50% !important; border: 1px solid rgb(255 255 255 / 70%) !important;
  background: rgb(255 255 255 / 28%) !important; color: #fff !important;
}
#game .valkyrie-scene .job-change-stat {
  border: 1px solid rgb(255 255 255 / 55%); border-radius: 14px;
  background: linear-gradient(rgb(255 255 255 / 55%), rgb(255 255 255 / 34%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 85%);
}
#game .valkyrie-scene .job-change-heading { color: #1c2a3a; }
#game .valkyrie-scene .job-change-choice {
  border: 1px solid rgb(255 255 255 / 75%) !important; border-radius: 14px !important; color: #1c2a3a !important;
  background: linear-gradient(rgb(255 255 255 / 78%), rgb(255 255 255 / 52%)) !important; box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgb(20 30 60 / 12%) !important;
}
#game .valkyrie-scene .job-change-choice[aria-checked="true"] {
  outline: 0; border-color: rgb(var(--valkyrie-accent, 111 154 214) / 90%) !important; color: rgb(var(--valkyrie-accent, 31 79 154)) !important;
  background: linear-gradient(rgb(255 255 255 / 95%), rgb(255 255 255 / 80%)) !important; box-shadow: 0 0 0 2px rgb(var(--valkyrie-accent, 111 154 214) / 45%), inset 0 1px 0 #fff !important;
}
#game .valkyrie-scene .job-change-confirm {
  border: 0 !important; border-radius: 20px !important; color: #fff !important; padding: 0 22px !important;
  background: linear-gradient(rgb(var(--valkyrie-accent, 63 105 168) / 78%), rgb(var(--valkyrie-accent, 63 105 168))) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%), 0 6px 16px rgb(var(--valkyrie-accent, 40 80 150) / 35%) !important;
}
#game .valkyrie-scene .job-change-confirm:disabled { opacity: .5; }
#game .valkyrie-scene .job-change-success { color: rgb(var(--valkyrie-accent, 31 79 154)); }
#game .valkyrie-scene .job-change-gaps li { border-radius: 12px; border-left-width: 0; background: rgb(255 255 255 / 45%); }
/* Confirm dialog in the same glass, accent title bar and pill buttons. */
#game .valkyrie-scene .town-service-quantity { background: rgb(20 25 40 / 28%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#game .valkyrie-scene .window.job-change-confirm-dialog {
  border: 1px solid rgb(255 255 255 / 75%) !important; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, rgb(255 255 255 / 70%), rgb(245 248 255 / 52%)) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 18px 40px rgb(20 30 70 / 30%), inset 0 1px 0 #fff !important;
}
#game .valkyrie-scene .window.job-change-confirm-dialog > .titlebar {
  margin: 6px 6px 0; border: 0; border-radius: 12px; padding-left: 12px;
  background: linear-gradient(rgb(var(--valkyrie-accent, 70 110 185) / 62%), rgb(var(--valkyrie-accent, 70 110 185) / 82%)) !important;
}
#game .valkyrie-scene .job-change-confirm-dialog .town-service-quantity-actions button {
  min-height: 34px; padding: 0 16px !important; border-radius: 17px !important; border: 1px solid rgb(255 255 255 / 75%) !important;
  background: linear-gradient(rgb(255 255 255 / 85%), rgb(255 255 255 / 60%)) !important; color: #1c2a3a !important;
}
#game .valkyrie-scene .job-change-confirm-dialog .town-service-quantity-actions button.primary {
  border: 0 !important; color: #fff !important; background: linear-gradient(rgb(var(--valkyrie-accent, 63 105 168) / 78%), rgb(var(--valkyrie-accent, 63 105 168))) !important;
}
@media (min-width: 721px) {
  #game #job_change .service-entry-host:has(.valkyrie-scene) { height: 560px; }
  #game .valkyrie-scene .town-service-window.job-change-service-window { top: 12px; left: 12px; width: min(420px, 46%); max-width: none; }
}
@media (max-width: 720px) {
  /* The Valkyrie's own poster, softened, behind the glass window below the film strip. */
  #game #job_change .town-service-scene.valkyrie-scene {
    background: linear-gradient(rgb(240 245 255 / 35%), rgb(240 245 255 / 35%)), var(--valkyrie-poster) 70% 40% / cover no-repeat !important;
  }
  /* Tall portrait crop on the Valkyrie (right third of the 16:9 film) so she fills the phone width;
     the glass window overlaps the lower part of the film instead of sitting below a thin strip. */
  #game #job_change .valkyrie-scene .valkyrie-film {
    position: relative; inset: auto; display: block; width: 100%; height: min(62vh, 460px); aspect-ratio: auto;
    object-fit: cover; object-position: 80% 22%;
  }
  #game #job_change .valkyrie-scene .town-service-window.job-change-service-window { margin-top: -96px; }
  #game #job_change .valkyrie-scene .town-service-window.job-change-service-window.town-service-minimized { margin-top: -60px; }
  .valkyrie-banner { top: 8px; right: 8px; padding: 4px 10px 5px; }
  .valkyrie-name { font-size: 17px; }
}
