/* Redesign slice 4, the competition screens (Work-ID 20261023-redesign-s4-a8d6; zenux: "menus and information jumbled and overlapping", "use the images in the drive, do it exactly as it is there").
   The Arena, Rankings, Battle pass and Adventure journal already follow their pictures (gothic-arena / -ranking / -vip / -journal). What was left:
   1. the Raids window and the trainer-challenge window (no picture in the drive) wear the DIALOG FAMILY frame of the Move Relearner (gothic-relearner.css): the red ornate frame on the dark ground, the pokeball emblem,
      the small gold eyebrow line, the gold title and the red close mark; their sizes stay the ones their own sheets give (uv-window-audit.css, trainer-challenge.css);
   2. inside the Raids window the title row, the chip row and the status line were each drawn as a framed box by the generic uv-main sheet (a red frame around a line of text); they are plain text again, the
      chips stay small framed tiles, the card is a quiet panel;
   3. the Fight menu: the effectiveness badge ("MUITO EFICAZ", "SEM EFEITO") sits in the button's top-right corner and covered the end of a long move name ("Thundershock"); the name is now set a little
      smaller and kept clear of the badge (an ellipsis only as the last resort).
   AGENTS.md "Absolute UI hover geometry": nothing here depends on a pointer, focus or selection state; every control keeps its authored box. The phone keeps its own layout (every rule is under min-width:901px). */
@media screen and (min-width:901px){
 /* ---- 1. the dialog family frame ---- */
 body:not(.mobile-web) #modal#modal[data-npc="challenge"]{border:0!important;border-image:none!important;border-radius:3px!important;overflow:hidden!important;background:var(--sg-gems),#050205!important;
  box-shadow:inset 0 0 0 2px #0d111c,inset 0 0 0 4px #6b3f43,inset 0 0 0 6px #1a2337,inset 0 0 0 7px #5c3639,inset 0 0 24px #6b3f4355,0 0 20px #6b3f4355,0 18px 60px #0d111c!important}
 body:not(.mobile-web) #modal#modal[data-npc="challenge"]>.modal-header{position:relative!important;display:flex!important;align-items:center;height:96px!important;min-height:0!important;margin:14px 14px 0!important;padding:0 20px 0 84px!important;border:0!important;border-image:none!important;border-radius:0!important;
  background:linear-gradient(180deg,#111724,#050205)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #5c3639!important}
 body:not(.mobile-web) #modal#modal[data-npc="challenge"]>.modal-header::before{content:"";position:absolute!important;left:22px!important;top:50%!important;width:44px!important;height:44px!important;margin-top:-22px!important;border-radius:50%!important;clip-path:none!important;
  background:radial-gradient(circle at 50% 50%,#f3f0ea 0 10%,#111724 11% 17%,#0d111c00 18%),linear-gradient(180deg,#c85a4f 0 45%,#111724 45% 55%,#f3f0ea 55%)!important;box-shadow:0 0 0 3px #0d111c,0 0 0 5px #f3f0ea!important}
 body:not(.mobile-web) #modal#modal[data-npc="challenge"]>.modal-header>div:first-child{flex:1 1 auto!important;min-width:0!important;width:auto!important;height:auto!important;min-height:0!important;overflow:visible!important;clip:auto!important;clip-path:none!important;position:static!important;margin:0!important;padding:0!important;display:grid;gap:0}
 body:not(.mobile-web) #modal#modal[data-npc="challenge"] #modal-eyebrow{font:700 16px/20px Arial,sans-serif!important;letter-spacing:.06em!important;color:#f3d9b1!important;text-transform:none!important}
 body:not(.mobile-web) #modal#modal[data-npc="challenge"] #modal-title{margin:0!important;font:900 32px/38px Arial,sans-serif!important;letter-spacing:.02em!important;text-transform:uppercase!important;color:#f6b23a!important;-webkit-text-fill-color:#f6b23a!important;text-shadow:0 2px 0 #0d111c!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body:not(.mobile-web) #modal#modal[data-npc="challenge"] #modal-close{position:absolute!important;right:18px!important;top:50%!important;margin-top:-28px!important;width:56px!important;height:56px!important;min-width:0!important;min-height:0!important;padding:0!important;display:grid!important;place-items:center!important;border:0!important;border-image:none!important;border-radius:2px!important;
  background:#141a2a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #6b3f43,inset 0 0 0 4px #161d2e,0 0 10px #6b3f4366!important;color:transparent!important;font-size:0!important}
 body:not(.mobile-web) #modal#modal[data-npc="challenge"] #modal-close::before{content:""!important;display:block!important;width:22px!important;height:22px!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath d='M5 5l24 24M29 5L5 29' stroke='%23400309' stroke-width='9' stroke-linecap='square'/%3E%3Cpath d='M5 5l24 24M29 5L5 29' stroke='%23ff3347' stroke-width='5' stroke-linecap='square'/%3E%3C/svg%3E") center/contain no-repeat!important}
 body:not(.mobile-web) #modal#modal[data-npc="challenge"] #modal-body{margin:0 14px!important;background:transparent!important}
 /* ---- the Battle pass's VIP box: the VER VIP button took the place of the mockup's fourth line and sat on the frame's bottom edge; it stands one line lower than the list, clear of the frame (the box is 1x mockup px) ---- */
 body:not(.mobile-web) #modal#modal[data-view="pass"]:is([open],[data-view]):is([open],[data-view]) .rw-perks ul{top:37px!important}
 body:not(.mobile-web) #modal#modal[data-view="pass"]:is([open],[data-view]):is([open],[data-view]) .rw-see-vip{top:87px!important;height:16px!important;font:700 11px/16px var(--ss)!important}
 /* ---- 3. the Fight menu: the badge never covers the name ---- */
 #battle-dialog#battle-dialog#battle-dialog.battle-window-solid .battle-menu .move-button>strong{font-size:13px!important;letter-spacing:0!important;max-width:calc(100% - 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #battle-dialog#battle-dialog#battle-dialog.battle-window-solid .battle-menu .move-button:has(>.move-eff)>strong{max-width:calc(100% - 72px)}
}
