/* The party window "Sua equipe" in the gothic theme (mockup 14-sua-equipe; Work-ID 20261018-reskin-a-theme-hud-6e52). Desktop only (the phone keeps ui/mobile/mobile.css). Same content, same buttons, same
   handlers as before: the six cards with Inspect / Make lead, the party count, the PC button and its note; only the look changes. The two buttons of a card keep their DOM order (Inspect first); the
   gold "Tornar lider" is drawn first with `order`, which paints only. Every control has one authored height and width in every state (AGENTS.md): hover, focus and pressed repaint (a colour, an inset
   shadow) and nothing else. The leader is marked with the gold frame and the LIDER tab; the disabled "Seguindo" button of the leader is hidden (the tab says it). */
@media screen and (min-width:901px){
 /* ---- the body: the information bar, the count, the cards, the PC button ------------------------------------------------------------------------------------ */
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;gap:14px 16px!important;padding:16px 18px 14px!important;
  background:radial-gradient(ellipse at 50% 100%,#1f2942 0,#131928 46%,#060205 100%)!important;overflow:hidden!important;
 }
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.modal-description{
  grid-column:1!important;grid-row:1!important;position:relative!important;display:flex!important;align-items:center!important;min-height:52px!important;padding:0 16px 0 62px!important;margin:0!important;border-radius:3px!important;
  background:var(--sg-surface)!important;box-shadow:var(--sg-frame-soft)!important;color:var(--sg-text)!important;font:400 13px/18px Arial,sans-serif!important;
 }
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.modal-description::before{
  content:"";position:absolute;left:16px;top:50%;width:30px;height:20px;margin-top:-10px;
  background:radial-gradient(circle at 8px 6px,#d9c9c4 0 4px,transparent 4.5px),radial-gradient(circle at 22px 6px,#d9c9c4 0 4px,transparent 4.5px),radial-gradient(circle at 15px 8px,#f3f0ea 0 5px,transparent 5.5px),
  radial-gradient(ellipse at 8px 20px,#d9c9c4 0 7px,transparent 7.5px),radial-gradient(ellipse at 22px 20px,#d9c9c4 0 7px,transparent 7.5px),radial-gradient(ellipse at 15px 22px,#f3f0ea 0 8px,transparent 8.5px);
 }
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.mini-note[role="status"]{
  grid-column:2!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:150px!important;min-height:52px!important;padding:0 20px!important;margin:0!important;border-radius:3px!important;
  background:var(--sg-surface)!important;box-shadow:var(--sg-frame-card)!important;color:var(--sg-gold-hi)!important;font:700 17px/22px Arial,sans-serif!important;letter-spacing:.1em!important;text-transform:uppercase!important;
 }
 body:not(.mobile-web) #modal[data-view="collection"] .collection-grid{
  grid-column:1 / 3!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important;align-content:start!important;padding:16px 4px 4px!important;
  overflow:visible!important;background:transparent!important;
 }
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card{
  position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:6px!important;min-width:0!important;padding:16px 10px 12px!important;border:0!important;border-image:none!important;border-radius:4px!important;
  background:var(--sg-gems-quiet),radial-gradient(ellipse at 50% 0,#222e49 0,#141b2b 58%),var(--sg-surface)!important;box-shadow:var(--sg-frame-card)!important;
 }
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card.lead{background:var(--sg-gems),radial-gradient(ellipse at 50% 0,#222b3f 0,#161d2e 58%),var(--sg-surface)!important;box-shadow:var(--sg-frame-gold)!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card.fainted .collection-pokemon-art{filter:grayscale(.8) brightness(.7)}
 body:not(.mobile-web) #modal[data-view="collection"] .party-lead-tag{
  position:absolute;left:12px;top:-13px;display:flex;align-items:center;gap:6px;height:26px;padding:0 14px 0 10px;border-radius:3px 3px 0 0;background:linear-gradient(180deg,#1b243a,#131928);
  box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo);color:var(--sg-gold-hi);font:700 13px/16px Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;
 }
 body:not(.mobile-web) #modal[data-view="collection"] .party-lead-tag::before{content:"\265B";color:var(--sg-gold);font-size:16px}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card .collection-pokemon-art{
  display:block!important;width:104px!important;height:104px!important;max-width:100%!important;padding:8px!important;border-radius:50%!important;object-fit:contain!important;
  background:radial-gradient(circle,#1c263c 0,#141a2a 72%)!important;box-shadow:0 0 0 1px #0d111c,0 0 0 2px #242d43,0 0 20px #673c4055!important;
 }
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card.lead .collection-pokemon-art{box-shadow:0 0 0 1px #0d111c,0 0 0 2px var(--sg-gold-lo),0 0 22px #f3c96b55!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card>strong{max-width:100%!important;color:#fff!important;font:700 18px/22px Arial,sans-serif!important;text-align:center!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card>.party-level{color:var(--sg-text)!important;font:700 13px/16px Arial,sans-serif!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card>.hp-track{width:100%!important;height:9px!important;border:0!important;border-radius:5px!important;background:#141a2a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #202b44!important;overflow:hidden}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card>.hp-track>.hp-fill{border-radius:5px!important;background:linear-gradient(90deg,#12a653,#27e27c)!important;box-shadow:0 0 8px #27e27c88!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card>.hp-track>.hp-fill.low{background:linear-gradient(90deg,#b8890f,#ffcf3a)!important;box-shadow:0 0 8px #ffcf3a88!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card>.hp-track>.hp-fill.critical{background:linear-gradient(90deg,#ac363a,#cf7666)!important;box-shadow:0 0 8px #74444888!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card>.party-hp{color:var(--sg-text)!important;font:700 12px/16px Arial,sans-serif!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card>.party-slot{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:7px;width:100%;height:30px;padding:0 6px;border-radius:3px;background:#111724!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #242d43;
  color:var(--sg-muted)!important;font:700 10px/14px Arial,sans-serif!important;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;overflow:hidden;
 }
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card>.party-slot::before{content:"";flex:0 0 14px;width:14px;height:14px;border-radius:50%;background:linear-gradient(180deg,#c85a4f 0 42%,#141b2b 42% 58%,#f3f0ea 58% 100%);box-shadow:0 0 0 1px #0d111c}
 /* Work-ID 20261022-ui-sweep: the card has no room for a line of text above its buttons (it sat on TORNAR LIDER): the pending growth choices are a gold star on the card's edge, the sentence is its tooltip. */
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card>.growth-tag{position:absolute!important;left:7px!important;top:44px!important;width:20px!important;height:20px!important;margin:0!important;padding:0!important;overflow:hidden!important;font-size:0!important;line-height:0!important;color:var(--sg-gold-hi)!important;z-index:2}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card>.growth-tag::before{content:"\2605";display:block;font:700 17px/20px Arial,sans-serif;text-align:center;color:#ffd24a;text-shadow:0 1px 0 #0d111c}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card .row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;width:100%!important;margin-top:auto!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card .row button{
  width:100%!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0 8px!important;border:0!important;border-image:none!important;border-radius:3px!important;
  background:linear-gradient(180deg,#171f32,#111724)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #af373a!important;color:var(--sg-text)!important;font:700 12px/16px Arial,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase!important;
 }
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card .row button:nth-child(2){order:-1;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo)!important;color:var(--sg-gold-hi)!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card .row button:nth-child(2):disabled{display:none!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card .row button:is(:hover:not(:disabled),:focus-visible){background:linear-gradient(180deg,#212c46,#141b2a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold),0 0 10px #f3c96b44!important;color:#fff!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card .row button:active:not(:disabled){background:linear-gradient(180deg,#141b2a,#212c46)!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card.lead .row button:first-child{box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold)!important;color:var(--sg-gold-hi)!important}
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.modal-actions{grid-column:1 / 3!important;grid-row:3!important;justify-content:center!important;padding:0!important}
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.modal-actions button{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:16px!important;width:440px!important;min-width:440px!important;max-width:100%!important;height:56px!important;min-height:56px!important;padding:0 24px!important;border:0!important;border-image:none!important;border-radius:3px!important;
  background:linear-gradient(180deg,#bc3d3b 0,#28324a 52%,#1f2a42 100%)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #d28071,inset 0 0 0 3px #222e48,0 0 16px #c44c4566!important;
  color:#fff!important;font:700 16px/20px Arial,sans-serif!important;letter-spacing:.1em!important;text-transform:uppercase!important;
 }
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.modal-actions button::before{content:"";flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:linear-gradient(180deg,#c85a4f 0 42%,#141b2b 42% 58%,#f3f0ea 58% 100%);box-shadow:0 0 0 2px #0d111c,0 0 0 3px #ffffff40}
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.modal-actions button::after{content:"";flex:0 0 10px;width:10px;height:16px;background:var(--sg-chevron) center/contain no-repeat}
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.modal-actions button:is(:hover:not(:disabled),:focus-visible){background:linear-gradient(180deg,#c44c45 0,#ac363a 52%,#222e49 100%)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-hi),inset 0 0 0 3px #222e48,0 0 20px #cf766699!important}
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.modal-actions button:disabled{opacity:.62!important;filter:saturate(.7)}
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.modal-actions+.mini-note{grid-column:1 / 3!important;grid-row:4!important;text-align:center!important;color:var(--sg-muted)!important;font:400 13px/18px Arial,sans-serif!important}
}
@media screen and (min-width:901px) and (max-width:1250px){
 body:not(.mobile-web) #modal[data-view="collection"] .collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media screen and (min-width:901px) and (max-height:760px){
 body:not(.mobile-web) #modal[data-view="collection"] .modal-header{min-height:72px!important}
 body:not(.mobile-web) #modal[data-view="collection"] #modal-title{font-size:30px!important;line-height:34px!important}
 body:not(.mobile-web) #modal[data-view="collection"] .collection-card .collection-pokemon-art{width:76px!important;height:76px!important}
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body{gap:10px 12px!important;padding:10px 14px 10px!important}
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.modal-actions button{height:46px!important;min-height:46px!important}
 /* the counter badge ("EQUIPE · 3 / 6") takes the width its text needs and the sentence beside it shrinks, instead of the badge being cut by the window */
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body{grid-template-columns:minmax(0,1fr) max-content!important}
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.modal-description{min-width:0!important}
 body:not(.mobile-web) #modal[data-view="collection"] #modal-body>.mini-note[role="status"]{white-space:nowrap!important;letter-spacing:.06em!important;font-size:15px!important;padding:0 16px!important}
}
