/* Work-ID 20260925-uv-hud-png-4e2a — residual window pass.
   Additive screen-scoped UV chrome, after the canonical Shutdown layer.
   Sources are the EXISTING 96px physical login PNGs and their 24px UV grid.
   Keep backdrop CSS color underneath the PNG fill; never touch sprite, map,
   preview canvas, semantic status/type colors or gameplay/event handlers. */
#modal:is([data-view="ferry"],[data-view="raids"],[data-view="gm"],
          [data-view="relearner"],[data-view="reminder"],[data-view="surf"],
          [data-view="forecast"],[data-view="mart"]){
  background-image:none!important;
  background-color:#17121a!important;
  color:#f6e7d4!important;
}
#modal:is([data-view="ferry"],[data-view="raids"],[data-view="gm"],
          [data-view="relearner"],[data-view="reminder"],[data-view="surf"],
          [data-view="forecast"],[data-view="mart"]) #modal-body{
  min-width:0;min-height:0;overflow:auto!important;overscroll-behavior:contain;
  background-image:none!important;background-color:#120f17!important;
}
#modal:is([data-view="ferry"],[data-view="raids"],[data-view="gm"],
          [data-view="forecast"],[data-view="mart"])>.modal-header{
  background-image:none!important;background-color:#291b25!important;
}

/* Each authored footprint is independent of selected option and row count.
   The canonical #modal rule applies the viewport-only min() responsiveness. */
#modal[data-view="ferry"]{--shutdown-window-width:790px;--shutdown-window-height:690px}
#modal[data-view="surf"]{--shutdown-window-width:610px;--shutdown-window-height:440px}
#modal[data-view="relearner"],#modal[data-view="reminder"]{
  --shutdown-window-width:960px;--shutdown-window-height:730px;
}
#modal[data-view="raids"]{--shutdown-window-width:1020px;--shutdown-window-height:750px}
#modal[data-view="gm"]{--shutdown-window-width:1120px;--shutdown-window-height:800px}
#modal[data-view="forecast"]{--shutdown-window-width:940px;--shutdown-window-height:740px}
#modal[data-view="mart"]{--shutdown-window-width:1000px;--shutdown-window-height:750px}

/* SEAGALLOP — eliminate the old flat blue browser card. Do not change the
   captain's sprite crop, route availability or green/gold status semantics. */
#modal[data-view="ferry"] .ferry-panel{min-width:0;color:#f5e7d2!important}
#modal[data-view="ferry"] :is(.ferry-greeting,.ferry-bubble,.ferry-row){
  border:7px solid transparent!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  border-radius:0!important;background-color:#201823!important;
  background-image:none!important;box-shadow:none!important;
  color:#f4e5d1!important;
}
#modal[data-view="ferry"] .ferry-greeting{padding:8px 11px!important}
#modal[data-view="ferry"] .ferry-bubble{padding:9px 13px!important;min-width:0}
#modal[data-view="ferry"] .ferry-bubble::before{display:none!important}
#modal[data-view="ferry"] .ferry-divider{
  border:0!important;height:8px;background:url("../login/divider.png?v=cabare-uv-1") center/100% 100% no-repeat!important;
}
#modal[data-view="ferry"] .ferry-divider::before,
#modal[data-view="ferry"] .ferry-divider::after{display:none!important}
#modal[data-view="ferry"] .ferry-list{min-width:0;min-height:0;overflow:auto}
#modal[data-view="ferry"] .ferry-row{
  box-sizing:border-box;min-height:68px;gap:10px;padding:8px 11px!important;
}
#modal[data-view="ferry"] .ferry-row:is(.selected,:focus-visible){
  border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#4a2630!important;
}
#modal[data-view="ferry"] .ferry-row.locked{opacity:.73}
#modal[data-view="ferry"] :is(.ferry-name,.ferry-name strong){color:#fff0d6!important}
#modal[data-view="ferry"] .ferry-hints{color:#d8c4ae!important}
#modal[data-view="ferry"] .ferry-row.legendary .ferry-status{color:#ffe1a4!important}
#modal[data-view="ferry"] :is(.ferry-go,.ferry-exit){
  border:7px solid transparent!important;border-radius:0!important;
  border-image:url("../login/button.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#241a23!important;background-image:none!important;
  box-shadow:none!important;color:#fff0da!important;
}
#modal[data-view="ferry"] .ferry-go:not(:disabled){
  border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;
  color:#ffe8ad!important;
}
#modal[data-view="ferry"] :is(.ferry-go,.ferry-exit):is(:hover:not(:disabled),:focus-visible){
  border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;
}

/* RAID DIRECTORY / GM RAID SELECTOR. Preserve tier, reward and completion
   colors, creature art and actual state from raids.js. */
#modal[data-view="raids"] :is(.raid-row,.raid-gm,.raid-gm-choice,.raid-chip){
  border:7px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#201923!important;background-image:none!important;
  box-shadow:none!important;color:#f1e0cd!important;
}
#modal[data-view="raids"] .raid-row{box-sizing:border-box;min-width:0;min-height:106px}
#modal[data-view="raids"] :is(.raid-row.selected,.raid-gm-choice.selected,.raid-gm-choice.current){
  border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
  background-color:#4a2830!important;
}
#modal[data-view="raids"] :is(.raid-heading,.raids-title,.raid-title){
  color:#ffe4ae!important;text-shadow:1px 1px 0 #000!important;
}
#modal[data-view="raids"] :is(.raids-sub,.raids-week,.raid-desc,.raid-gm-info){
  color:#dbc7b5!important;
}
#modal[data-view="raids"] :is(.raid-start,.raid-gm-toggle,.raid-gm-random,.raid-gm-confirm){
  border:7px solid transparent!important;border-radius:0!important;
  border-image:url("../login/button.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#251b24!important;background-image:none!important;
  box-shadow:none!important;color:#f8e8d1!important;
}
#modal[data-view="raids"] :is(.raid-start,.raid-gm-toggle,.raid-gm-random,.raid-gm-confirm):is(:hover:not(:disabled),:focus-visible),
#modal[data-view="raids"] .raid-gm-confirm:not(:disabled){
  border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;
}
#modal[data-view="raids"] .raid-gm-search{
  border:7px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#120f17!important;color:#f7e7d4!important;
}

/* GM — texture sections, list rows and controls without reskinning the
   in-game Pokémon images or interfering with administrative form state. */
#modal[data-view="gm"] :is(.gm-head,.gm-col,.gm-section,.gm-region,.gm-boxed,
  .gm-mon,.gm-row,.gm-list-row,.gm-log-row,.gm-bag-row,.gm-map-row,.gm-facts,.gm-badge){
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#1f1821!important;background-image:none!important;
  box-shadow:none!important;color:#f3e6d5!important;
}
#modal[data-view="gm"] :is(.gm-head,.gm-section>h3,.gm-section h4,.gm-region h4){
  color:#ffe1a6!important;
}
#modal[data-view="gm"] :is(.gm-tab.selected,.gm-list-row.selected,.gm-mon.selected){
  border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
}
#modal[data-view="gm"] .gm-panel :is(button,.gm-tab){
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/button.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#261d25!important;background-image:none!important;
  box-shadow:none!important;color:#f4e5d2!important;
}
#modal[data-view="gm"] .gm-panel :is(button,.gm-tab):is(.selected,.primary,:hover:not(:disabled),:focus-visible){
  border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;
}
#modal[data-view="gm"] .gm-panel button.danger{color:#ffc5be!important}
#modal[data-view="gm"] .gm-panel :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#130f18!important;background-image:none!important;
  color:#fff0df!important;
}
#modal[data-view="gm"] .gm-panel :is(input,select,textarea):focus-visible{
  outline:2px solid #f0c67f!important;outline-offset:2px!important;
}
.gm-banner:not(.hidden){
  border:8px solid transparent!important;border-radius:0!important;
  border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 8px / 0 stretch!important;
  background-color:#271b24!important;background-image:none!important;
  color:#ffe8c5!important;
}
.gm-banner.private{border-image-source:url("../login/frame.png?v=cabare-uv-1")!important}

/* Move Relearner: old blue repeating-gradient panels now share the game
   chrome. Keep move categories, HP fill and actual follower/party sprites. */
#modal:is([data-view="relearner"],[data-view="reminder"])
:is(.relearn-chooser,.relearn-textbox,.relearn-hero,.relearn-current,
    .relearn-browser,.relearn-forget-banner,.relearn-forget-foot,
    .reminder-confirmation){
  border:8px solid transparent!important;border-radius:0!important;
  border-image:url("../login/frame.png?v=cabare-uv-1") 24 fill / 8px / 0 stretch!important;
  background-color:#211923!important;background-image:none!important;
  color:#f4e5d1!important;box-shadow:none!important;
}
#modal:is([data-view="relearner"],[data-view="reminder"])
:is(.relearn-chooser-title,.relearn-move-top,.relearn-forget-banner h3){
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#39252c!important;background-image:none!important;
  color:#ffdfab!important;text-shadow:none!important;
}
#modal:is([data-view="relearner"],[data-view="reminder"])
:is(.relearn-party-card,.relearn-current-chip,.relearn-move,.relearn-forget-button,
    .relearn-wallet,.relearn-tab,.reminder-choices .move-button){
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#231b25!important;background-image:none!important;
  box-shadow:none!important;color:#f4e5d1!important;
}
#modal:is([data-view="relearner"],[data-view="reminder"])
:is(.relearn-party-card,.relearn-move,.relearn-forget-button,.relearn-tab,.reminder-choices .move-button)
:is(.selected,.lead,:hover:not(:disabled),:focus-visible){
  border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
  background-color:#4a2930!important;
}
#modal:is([data-view="relearner"],[data-view="reminder"])
:is(.relearn-button,.relearn-cancel,.relearn-back,.relearn-confirm,#modal-close){
  border:7px solid transparent!important;border-radius:0!important;
  border-image:url("../login/button.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#251c24!important;background-image:none!important;
  color:#f9e7d3!important;box-shadow:none!important;
}
#modal:is([data-view="relearner"],[data-view="reminder"])
:is(.relearn-button,.relearn-cancel,.relearn-back,.relearn-confirm,#modal-close)
:is(:hover:not(:disabled),:focus-visible){
  border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;
}
#modal:is([data-view="relearner"],[data-view="reminder"])
:is(.relearn-search,.relearn-tabs input){
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#120f17!important;color:#fff0dd!important;
}
#modal:is([data-view="relearner"],[data-view="reminder"])
:is(.relearn-party-info,.relearn-sub,.relearn-desc,.relearn-wallet-label){color:#e1cebb!important}
#modal:is([data-view="relearner"],[data-view="reminder"]) .relearn-party-info strong{
  color:#fff0d9!important;text-shadow:1px 1px 0 #000!important;
}

/* Surf and fishing use the same physical small window, not a second paper
   theme. Preserve .surf-mon sprite and water-blue semantic accents. */
#modal[data-view="surf"] #modal-body{
  display:grid;place-items:center;padding:12px!important;
}
#modal[data-view="surf"] .surf-dialog{
  box-sizing:border-box;width:100%;max-width:100%;min-width:0;
  border:9px solid transparent!important;border-radius:0!important;
  border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 9px / 0 stretch!important;
  background-color:#1c1720!important;background-image:none!important;
  color:#f8ead8!important;box-shadow:none!important;
}
#modal[data-view="surf"] .surf-tab{
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/button-active.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#47303b!important;background-image:none!important;
  color:#ffe0aa!important;
}
#modal[data-view="surf"] .surf-line{color:#f8ead8!important}
#modal[data-view="surf"] .surf-line strong{color:#a9d9ff!important}
#modal[data-view="surf"] .surf-note{color:#d8c6b6!important}
#modal[data-view="surf"] .surf-warning{
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#382722!important;background-image:none!important;
  color:#ffda9e!important;
}
#modal[data-view="surf"] .surf-actions :is(button,.surf-rod){
  border:7px solid transparent!important;border-radius:0!important;
  border-image:url("../login/button.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#251c26!important;background-image:none!important;
  color:#f7e7d2!important;box-shadow:none!important;
}
#modal[data-view="surf"] .surf-actions :is(button,.surf-rod):is(.chosen,:hover:not(:disabled),:focus-visible){
  border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;
}
#modal[data-view="surf"] .surf-actions .surf-rod .bag-icon{
  background:transparent!important;border:0!important;border-image:none!important;
}

/* Forecast and Poké Mart already reuse the shared grids but their top-level
   styles still carried legacy CSS gradient paints. Keep the weather glyph
   palette and the bag item art; only chrome is replaced. */
#modal[data-view="forecast"] :is(.forecast-detail,.forecast-card,.forecast-table,
  .forecast-row,.forecast-day,.forecast-detail-head){
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#201923!important;background-image:none!important;
  box-shadow:none!important;color:#f3e4d1!important;
}
#modal[data-view="forecast"] :is(.forecast-row.selected,.forecast-row:focus-visible){
  border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
}
#modal[data-view="forecast"] :is(.forecast-section,.forecast-head,.forecast-detail-head){
  color:#ffe0a8!important;
}
#modal[data-view="mart"] :is(.mart-tabs,.mart-row){
  background-image:none!important;background-color:#201923!important;
}
#modal[data-view="mart"] .mart-tabs button:is(.selected,:focus-visible){
  border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;
}

/* Audio/Trade detail cards remain inside existing image-backed dialogs. */
#audio-dialog :is(.audio-status-row,.audio-options){
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#201923!important;background-image:none!important;color:#f5e6d3!important;
}
#modal[data-view] :is(.trade-side,.trade-warning,.trade-picker label){
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#211923!important;background-image:none!important;color:#f6e7d5!important;
}
#modal[data-view] .trade-picker label:has(input:checked){
  border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
}
#modal[data-view] .trade-warning{color:#ffe0a8!important}

/* Real interactive focus, visibility and scroll are never replaced by chrome. */
#modal:is([data-view="ferry"],[data-view="raids"],[data-view="gm"],
  [data-view="relearner"],[data-view="reminder"],[data-view="surf"])
  :is(button,input,select,textarea,[tabindex]):focus-visible{
  outline:2px solid #f7cf8a!important;outline-offset:2px!important;
}
@media (max-width:650px),(max-height:540px){
  #modal[data-view="ferry"] .ferry-row{min-height:60px;padding:5px 7px!important}
  #modal[data-view="raids"] .raid-row{min-height:86px}
  #modal[data-view="surf"] #modal-body{padding:4px!important}
  #modal[data-view="surf"] .surf-dialog{padding:12px!important}
}

/* TRAINER CARD / FRIENDS — social.js shares the `tc-*` building blocks with
   the newly skinned Titles window, but the independently opened trainer card
   still had its original cyan gradient/hexagonal browser-card interior.
   Reuse the same Shutdown art without touching portraits or badge colors. */
#modal[data-view="card"]{
  --shutdown-window-width:960px;--shutdown-window-height:730px;
  --tc-cyan:#f2c77b;--tc-cyan-dim:#84573d;--tc-muted:#d4bea9;
  background-color:#17121a!important;background-image:none!important;
}
#modal[data-view="card"]>.modal-header{
  background-image:none!important;background-color:#291b25!important;
}
#modal[data-view="card"] #modal-body{
  overflow:auto!important;min-width:0;min-height:0;
  background-image:none!important;background-color:#151018!important;
}
#modal[data-view="card"] :is(.tc-card,.tc-hex,.tc-hex-in,.tc-line,.tc-stat,
    .tc-chip,.tcc-round,.tcc-rank-hex){
  clip-path:none!important;transform:none!important;
  border-radius:0!important;box-shadow:none!important;
}
#modal[data-view="card"] :is(.tc-card,.tcc-ranked){
  min-width:0;border:8px solid transparent!important;
  border-image:url("../login/frame.png?v=cabare-uv-1") 24 fill / 8px / 0 stretch!important;
  background-color:#1e1720!important;background-image:none!important;
  color:#f6e7d4!important;
}
#modal[data-view="card"] :is(.tc-head,.tc-heading,.tcc-ranked-head,.tcc-head){
  border:6px solid transparent!important;
  border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#35252c!important;background-image:none!important;
  color:#ffe4af!important;
}
#modal[data-view="card"] :is(.tc-hex,.tc-hex-in,.tc-avatar,.tcc-round,.tcc-rank-hex){
  border:6px solid transparent!important;
  border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#251b25!important;background-image:none!important;
}
#modal[data-view="card"] :is(.tc-line,.tc-stat,.tc-chip,.tc-stars){
  border:6px solid transparent!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#241b24!important;background-image:none!important;
  color:#f8e8d0!important;
}
#modal[data-view="card"] :is(.tc-name,.tc-value,.tc-stat strong){color:#fff1d8!important}
#modal[data-view="card"] :is(.tc-key,.tc-stat small,.tc-public,.tcc-offline){
  color:#d8c5af!important;
}
#modal[data-view="card"] :is(.tc-remove,.tcc-tab){
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/button.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#241b25!important;background-image:none!important;
  color:#f6e8d5!important;
}
#modal[data-view="card"] :is(.tc-remove,.tcc-tab):is(.active,.selected,:hover:not(:disabled),:focus-visible){
  border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;
}
#modal[data-view="card"] .tcc-hall{
  border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
  color:#ffe6b6!important;
}
/* Equal-height title/stat rectangles regardless of label wrapping. */
#modal[data-view="card"] .tc-stats{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;grid-auto-rows:minmax(68px,auto);
}
#modal[data-view="card"] .tc-stat{box-sizing:border-box;min-width:0;min-height:68px}
#modal[data-view="card"] .tc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#modal[data-view="card"] .tc-grid>.tc-title{
  box-sizing:border-box;width:100%;min-width:0;min-height:96px;
  border:7px solid transparent!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#231b25!important;
}
#modal[data-view="card"] .tc-grid>.tc-title:is(.worn,:hover:not(:disabled),:focus-visible){
  border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
}

/* Friends: the outer modal and basic rows are already textured, but the
   add-friend block and headers were still flat, independent CSS cards. */
#modal[data-view="friends"]{--shutdown-window-width:920px;--shutdown-window-height:700px}
#modal[data-view="friends"] :is(.friends-head,.friends-section){
  min-width:0;border:7px solid transparent!important;
  border-image:url("../login/frame.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#211922!important;background-image:none!important;
}
#modal[data-view="friends"] :is(.friends-heading,.friends-row){
  border:6px solid transparent!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#251d25!important;background-image:none!important;
  color:#f2e5d3!important;
}
#modal[data-view="friends"] :is(.friends-input,.friends-add input){
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#100e16!important;color:#fff0d9!important;
}
#modal[data-view="friends"] :is(.friends-add button,.friends-actions button,.friends-mine){
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/button.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#251b25!important;color:#fff0d6!important;
}
#modal[data-view="friends"] :is(.friends-add button,.friends-actions button,.friends-mine):is(:hover:not(:disabled),:focus-visible){
  border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;
}
@media(max-width:650px){
  #modal[data-view="card"] .tc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  #modal[data-view="card"] .tc-grid{grid-template-columns:minmax(0,1fr)}
  #modal[data-view="card"] .tc-grid>.tc-title{min-height:96px}
}

/* Rare windows found in the same literal openModal inventory:
   elevator, Hall of Fame, AI/rivals, trainer-result and NPC gift. These
   were not covered by the final title/battle/wardrobe stylesheet. */
#modal[data-view="elevator"]{--shutdown-window-width:720px;--shutdown-window-height:620px}
#modal[data-view="hall-of-fame"]{--shutdown-window-width:870px;--shutdown-window-height:660px}
#modal[data-view="ai"]{--shutdown-window-width:1010px;--shutdown-window-height:750px}
#modal[data-view="trainer-result"]{
  --shutdown-window-width:750px;--shutdown-window-height:610px;
}
#modal[data-view="npc"]{--shutdown-window-width:740px;--shutdown-window-height:560px}
#modal[data-view="elevator"] :is(.elevator-display,.elevator-row){
  min-width:0;border:7px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#241b23!important;background-image:none!important;
  color:#f6e7d2!important;box-shadow:none!important;
}
#modal[data-view="elevator"] .elevator-display{
  border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
  background-color:#302329!important;
}
#modal[data-view="elevator"] .elevator-row{
  box-sizing:border-box;min-height:64px;
}
#modal[data-view="elevator"] .elevator-row:is(.selected,:focus-visible){
  border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
  background-color:#422b32!important;
}
#modal[data-view="elevator"] .elevator-row .elevator-button{
  border:5px solid transparent!important;border-radius:0!important;
  border-image:url("../login/button.png?v=cabare-uv-1") 24 fill / 5px / 0 stretch!important;
  background-color:#30242c!important;background-image:none!important;
}
#modal[data-view="elevator"] .elevator-row:is(.selected,.current) .elevator-button{
  border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;
  color:#ffe3a6!important;
}
#modal[data-view="elevator"] .elevator-question,
#modal[data-view="elevator"] .elevator-name strong{color:#f9ead3!important}
#modal[data-view="elevator"] :is(.elevator-name small,.elevator-status,.elevator-hints){
  color:#dbc5b1!important;
}
#modal[data-view="elevator"] .elevator-display .elevator-floor{
  font-family:Arial,sans-serif!important;color:#ffcf79!important;
  text-shadow:1px 1px 0 #000!important;
}
#modal[data-view="elevator"] .elevator-row.locked{opacity:.55}

/* Retain the champion's Pokémon screenshots/sprite images; only original
   blue radial-gradient frame and team-card surfaces become image-backed. */
#modal[data-view="hall-of-fame"] .hall-of-fame{
  border:9px solid transparent!important;border-radius:0!important;
  border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 9px / 0 stretch!important;
  background-color:#241b25!important;background-image:none!important;
  color:#f5e9d5!important;box-shadow:none!important;
}
#modal[data-view="hall-of-fame"] .hall-mon{
  box-sizing:border-box;min-width:0;min-height:126px;
  border:6px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  background-color:#1c1721!important;background-image:none!important;
  color:#fff0d8!important;box-shadow:none!important;
}
#modal[data-view="hall-of-fame"] :is(.hall-ribbon,.hall-title,.hall-meta,.hall-mon-level){
  color:#ffe0a1!important;
}
#modal[data-view="hall-of-fame"] :is(.hall-message,.hall-when){
  color:#d9c7b3!important;
}

/* AI/rivals scoreboards and NPC reward boxes are UI chrome, not the values
   or game images they contain. */
#modal[data-view="ai"] :is(.ai-kpis>div,.ai-row,.ai-human-pill),
#modal[data-view="npc"] .npc-gift{
  min-width:0;border:7px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#231a23!important;background-image:none!important;
  color:#f4e4d1!important;box-shadow:none!important;
}
#modal[data-view="ai"] .ai-row:is(.selected,:focus-within){
  border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
}
#modal[data-view="ai"] .ai-kpis strong{color:#ffdc9e!important}
#modal[data-view="ai"] :is(.ai-kpis span,.ai-row p,.ai-row small),
#modal[data-view="npc"] .npc-gift p{color:#d9c4b0!important}
#modal[data-view="npc"] .npc-gift strong{color:#ffe3ac!important}

/* The trainer victory result was a light HTML cream card. The game sprite
   remains the same pixel art; all its explanatory text now has dark-panel
   contrast, not the leftover dark-on-dark light-card palette. */
#modal[data-view="trainer-result"] :is(.trainer-result,.trainer-result-who,
    .trainer-result-team li,.trainer-result-prize){
  min-width:0;border:7px solid transparent!important;border-radius:0!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#211821!important;background-image:none!important;
  box-shadow:none!important;color:#f9e9d4!important;
}
#modal[data-view="trainer-result"] .trainer-result{
  border-image-source:url("../login/frame-active.png?v=cabare-uv-1")!important;
}
#modal[data-view="trainer-result"] :is(.trainer-result-team h3,.trainer-result-prize strong){
  color:#ffdd9d!important;
}
#modal[data-view="trainer-result"] .trainer-result .mini-note{
  color:#d8c5b2!important;
}
#modal[data-view="trainer-result"] .trainer-result-actions button{
  min-width:8rem;border:7px solid transparent!important;border-radius:0!important;
  border-image:url("../login/button.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
  background-color:#271e26!important;background-image:none!important;
  color:#f5e8d5!important;box-shadow:none!important;
}
#modal[data-view="trainer-result"] .trainer-result-actions button:is(:hover:not(:disabled),:focus-visible,.pad-focus){
  border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;
}
#modal[data-view="trainer-result"] .trainer-result-rematch:not(:disabled){
  color:#b7f6c3!important;
}
@media(max-width:650px){
  #modal[data-view="hall-of-fame"] .hall-mon{min-height:110px}
  #modal[data-view="elevator"] .elevator-row{min-height:56px}
}
