/* The Gacha's result screens, laid out (Work-ID 20261023-hotfix-layout-bbf5; zenux, 2026-10-23: "the gacha and other screens whose menus and information are jumbled and overlapping, including the x10 result").
   What was wrong, found with Tests/check_ui_sweep_browser.py's gacha steps (x1, x10, pool) and Tests/geo_dump.py:
   * the x10 Summary and the machine's stage were both on screen: mx/gacha.css gives the stage `display:block!important`, which beats its `hidden` attribute, so the summary (an ordinary grid at the top of the
     panel, with a 76 px padding) was drawn over the header and over the machine, under the ticket badge and the last ball's card;
   * "Sortear de novo ×10" is cut to "SORTEAR D…" in the main button (34 px letters in a 260 px label);
   * the draw's cost note ("Cada sorteio custa 1 ticket.") sat on the window's top edge while a ball was open (the button already says the cost).
   Desktop only (the phone has its own rules in gacha.css). Positions are in the sheet's own 1586 x 992 px, inside the `zoom` the window already has, exactly like mx/gacha.css's stage. Colours stay the palette's. */
@media screen and (min-width:901px){
 /* what is hidden stays hidden */
 body:not(.mobile-web) #modal#modal#modal[data-view="gacha"][data-view][data-view] :is(.gacha-stage,.gacha-summary)[hidden]{display:none!important}
 /* the summary takes the stage's place: below the header, the ticket badge above its first row */
 body:not(.mobile-web) #modal#modal#modal[data-view="gacha"][data-view][data-view] .gacha-summary:not([hidden]){position:absolute!important;left:0!important;top:92px!important;z-index:2;display:grid!important;box-sizing:border-box!important;
  width:1586px!important;max-width:none!important;height:500px!important;margin:0!important;padding:112px 28px 20px!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-rows:minmax(0,1fr)!important;
  gap:12px!important;align-content:stretch!important;overflow:hidden!important;border-radius:0!important}
 body:not(.mobile-web) #modal#modal#modal[data-view="gacha"][data-view][data-view] .gacha-summary .gacha-cell{height:auto!important;min-height:0!important;padding:8px 8px 6px!important;gap:3px!important;align-content:center!important;overflow:hidden}
 body:not(.mobile-web) #modal#modal#modal[data-view="gacha"][data-view][data-view] .gacha-summary .gacha-cell img:not(.gacha-cell-spark){width:64px!important;height:64px!important}
 body:not(.mobile-web) #modal#modal#modal[data-view="gacha"][data-view][data-view] .gacha-summary .gacha-cell-blank{width:64px!important;height:64px!important}
 body:not(.mobile-web) #modal#modal#modal[data-view="gacha"][data-view][data-view] .gacha-summary .gacha-cell-name{font-size:18px!important;line-height:22px!important}
 body:not(.mobile-web) #modal#modal#modal[data-view="gacha"][data-view][data-view] .gacha-summary .gacha-cell small{font-size:14px!important;line-height:18px!important}
 /* the main button's label: a longer one ("Sortear de novo ×10") gets smaller letters inside the same label box */
 body:not(.mobile-web) #modal#modal#modal[data-view="gacha"][data-view][data-view] .gacha-main[data-long]>.gx-main-label{font-size:23px!important;letter-spacing:.02em!important;width:280px!important}
 body:not(.mobile-web) #modal#modal#modal[data-view="gacha"][data-view][data-view] .gx-bottom .gacha-main[data-long] .gx-main-label{font-size:23px!important;line-height:30px!important}
 /* the cost is on the main button: the note stays off the window's edge */
 body:not(.mobile-web) #modal#modal#modal[data-view="gacha"][data-view][data-view] .gacha-note{display:none!important}
}
/* phone: the longer label ("Sortear de novo ×10") is smaller in the same box instead of "SORTE…" */
body.mobile-web #modal#modal#modal[data-view="gacha"] .gacha-main[data-long] .gx-main-label{font-size:9px!important;letter-spacing:0!important}
