/* The Gacha screen in the mockup's scenic blue / teal theme (03-gacha; Work-ID 20261018-reskin-gacha-c7e2; zenux, Trello "Mudancas", 2026-10-18: "restyle the screen to the mockup, keep the new
   ball-by-ball reveal and every function"). Unlike the other windows of the reskin this one has its own palette (night blue, teal, gold, a green draw button), as in the mockup. Desktop only: the
   phone keeps ui/mobile/mobile.css and gacha.css. The scene (ui/gacha/scene.webp) is a crop of the mockup with its middle rebuilt, so the real machine sits in front of it.
   Same elements, same handlers: the region, the ticket badge, the machine and its reveal (ball, tray, card, summary), the strip of what a draw rolls, the pity line (now with its bar), the three
   quantities, the draw button (with its cost), the list of possible Pokemon, the animation switch, Skip / Show all and Close. AGENTS.md "Absolute UI hover geometry": every control has one authored
   box in every state; hover, focus, pressed and selected repaint (a colour, an inset shadow) and never change a size, padding, border width, gap, font metric or transform. The ball, the embers,
   the rings and the card animate; the buttons never do. */
@media screen and (min-width:901px){
 body:not(.mobile-web) #modal#modal[data-view="gacha"]{
  --gg-navy:#050f22;--gg-navy2:#0a1d3c;--gg-teal:#2fd6c8;--gg-line:#1f6f8f;--gg-gold:#f3c96b;--gg-text:#eaf6ff;--gg-muted:#8fb3c9;--gg-green:#2fe27a;
  width:min(74rem,96vw)!important;max-width:96vw!important;border:0!important;border-image:none!important;border-radius:6px!important;background:var(--gg-navy)!important;
  box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-line),inset 0 0 0 3px #04101f,0 0 26px #2fd6c833,0 18px 60px #0d111c!important;overflow:hidden!important;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .modal-header{
  position:relative!important;justify-content:flex-start!important;min-height:64px!important;padding:0 72px 0 78px!important;border:0!important;border-image:none!important;border-radius:0!important;
  background:linear-gradient(180deg,#0b2447,#061327)!important;box-shadow:0 2px 0 var(--gg-line),0 3px 0 #0d111c!important;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .modal-header::before{
  content:"";position:absolute;left:24px;top:50%;width:40px;height:40px;margin-top:-20px;border-radius:50%;background:linear-gradient(180deg,#c85a4f 0 43%,#192135 43% 57%,#f6f8fa 57% 100%);
  box-shadow:0 0 0 2px #0d111c,0 0 0 3px #fff6,0 0 14px #2fd6c866;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] #modal-eyebrow{display:none!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] #modal-title{margin:0!important;color:#fff!important;font:700 30px/36px Arial,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase!important;text-shadow:0 2px 0 #0d111c!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] #modal-close{
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-image:none!important;border-radius:50%!important;
  background-color:#08162c!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #7aa6c0!important;color:transparent!important;font-size:0!important;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] #modal-close:is(:hover,:focus-visible){background-color:#12304f!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-teal),0 0 12px #2fd6c866!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] #modal-body{padding:0!important;background:var(--gg-navy)!important;overflow:hidden!important}

 /* ---- the scene: the machine in front of the scenery, the region and the tickets over it ------------------------------------------------------------------ */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px 0!important;padding:0 0 14px!important;justify-items:stretch!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pool-panel{padding:14px 18px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] :is(.gx-machine-panel,.gx-pool-panel)[hidden]{display:none!important}   /* the display set above must not undo hidden: only one panel shows */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel>*:not(.gx-options):not(.gacha-footer){grid-column:1 / -1}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel>.gx-options{order:20}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel>.gacha-footer{order:21;grid-column:2!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel>.gacha-note{order:22}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel>.gx-top{position:absolute!important;z-index:7;top:12px;left:16px;right:16px;width:auto!important;max-width:none!important;min-height:0!important;pointer-events:none}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-region{
  display:flex;align-items:center;gap:10px;height:44px;padding:0 20px 0 14px;border-radius:22px;background:linear-gradient(180deg,#0e3a46,#082630);box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-teal);
  color:var(--gg-text)!important;font:700 17px/22px Arial,sans-serif!important;letter-spacing:.06em!important;text-transform:uppercase!important;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-region::before{content:"";width:24px;height:24px;border-radius:5px;background:linear-gradient(135deg,#2fd6c8,#1b8f9a);box-shadow:0 0 0 1px #0d111c,inset 0 0 0 3px #0a4a54}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-wallet{
  display:flex;align-items:center;gap:14px;height:62px;padding:0 26px 0 16px;border-radius:31px;background:linear-gradient(180deg,#0a1d3c,#050f22)!important;
  box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-gold),0 0 18px #f3c96b30!important;color:#fff!important;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-ticket{width:calc(28px*2);height:calc(16px*2)}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-left{color:var(--gg-gold)!important;font:700 28px/30px Arial,sans-serif!important;text-shadow:0 2px 0 #0d111c}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-wallet-label{color:var(--gg-text)!important;letter-spacing:.2em!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-stage{
  width:100%!important;max-width:none!important;height:clamp(16rem,38vh,25rem)!important;margin:0!important;
  background:radial-gradient(ellipse 20rem 2.6rem at 50% 90%,#f3d27a66 0,#f3d27a22 55%,#0d111c00 72%),linear-gradient(180deg,#0d111c00 55%,#050f22cc 100%),url("scene.webp?v=gg-1") center bottom/cover no-repeat,#071a36!important;
  border:0!important;border-radius:0!important;box-shadow:inset 0 -2px 0 #04101f!important;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine{filter:none!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-stage[data-phase="reveal"] .gx-machine{opacity:.18}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-card{inset:0 calc(50% - 15rem)!important;border-radius:6px!important;background:linear-gradient(180deg,#0a1d3cf0,#050f22f2)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-teal),0 0 24px #2fd6c844!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-stage[data-rarity="epic"] .gacha-card,body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-stage[data-rarity="legendary"] .gacha-card{box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gacha-color),inset 0 0 2.6rem -.6rem var(--gacha-color)!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-name{color:#fff!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-tray{top:10px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pip{border-color:#050f22}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-summary{
  width:calc(100% - 36px)!important;max-width:none!important;margin:0 18px!important;padding:76px 12px 12px!important;border-radius:6px!important;background:linear-gradient(180deg,#0a1d3c,#050f22)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-line)!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;height:clamp(16rem,38vh,25rem)!important;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-cell{background:#08162c!important}

 /* ---- what a draw can roll, and the guarantee ------------------------------------------------------------------------------------------------------------- */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-rolls{
  justify-self:center;margin:0!important;padding:10px 28px!important;border-radius:26px;background:linear-gradient(180deg,#0a1d3c,#061327);box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-line);
  color:var(--gg-text)!important;font:400 14px/20px Arial,sans-serif!important;letter-spacing:.02em!important;text-align:center;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity{position:relative;justify-self:center;display:grid;align-items:center;width:min(34rem,92%);height:44px;margin:0 auto}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity-bar{grid-area:1/1;display:block;height:30px;border-radius:15px;background:#08162c;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #8a6a1c;overflow:hidden}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity-fill{display:block;height:100%;border-radius:15px;background:linear-gradient(90deg,#8a5a10,#f3c96b);box-shadow:0 0 12px #f3c96b88}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-pity{grid-area:1/1;align-self:center;text-align:center;margin:0!important;color:#fff!important;font:700 15px/20px Arial,sans-serif!important;letter-spacing:.03em!important;text-shadow:0 1px 0 #0d111c,0 0 6px #0d111c}

 /* ---- the controls ------------------------------------------------------------------------------------------------------------------------------------------- */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-actions{
  display:grid!important;grid-template-columns:minmax(0,19rem) minmax(0,1fr) minmax(0,19rem)!important;align-items:center!important;gap:18px!important;margin:0 18px!important;padding:16px 18px!important;
  border-radius:8px;background:linear-gradient(180deg,#0a1d3c,#061327);box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-line)!important;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-qty{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;justify-items:stretch!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-qty-title{grid-column:1 / 4;text-align:center;color:var(--gg-text);font:700 13px/18px Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-btn{
  box-sizing:border-box!important;border:0!important;border-image:none!important;border-radius:4px!important;background:linear-gradient(180deg,#0e2a4c,#07162b)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-line)!important;
  color:var(--gg-text)!important;font-weight:700!important;letter-spacing:.06em!important;text-transform:uppercase!important;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-btn:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#14406b,#0a2140)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-teal),0 0 12px #2fd6c855!important;color:#fff!important;filter:none!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-btn:disabled{opacity:.5!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-qty{width:100%!important;height:3.2rem!important;font-size:1.05rem!important;padding:0!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-qty[aria-pressed="true"]{background:linear-gradient(180deg,#0f4a3a,#07261f)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-green),0 0 12px #2fe27a55!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-main{
  display:grid!important;grid-template-columns:3.2rem minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:12px!important;align-content:center!important;justify-items:start!important;
  width:100%!important;max-width:30rem!important;height:4.6rem!important;margin:0 auto!important;padding:0 24px!important;border-radius:6px!important;
  background:linear-gradient(180deg,#22b868 0,#0f7a40 55%,#0a5a2e 100%)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-gold),inset 0 0 0 3px #04301a,0 0 18px #2fe27a55!important;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-main .gx-main-ticket{grid-column:1;grid-row:1 / 3;order:-1;width:calc(28px*1.6)!important;height:calc(16px*1.6)!important;justify-self:center;align-self:center}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-main .gx-main-label{grid-column:2;grid-row:1;align-self:end;color:#fff!important;font:700 20px/26px Arial,sans-serif!important;letter-spacing:.05em!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;text-shadow:0 2px 0 #04301a}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-main .gx-main-cost{grid-column:2;grid-row:2;align-self:start;color:#d8ffe8;font:700 12px/16px Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-main:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#2fe27a 0,#14934f 55%,#0c6b37 100%)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #fff0b8,inset 0 0 0 3px #04301a,0 0 22px #2fe27a88!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-pool{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;width:100%!important;height:4.2rem!important;padding:0 14px!important;font-size:.9rem!important;border-radius:6px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-pool::before{content:"";flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:linear-gradient(180deg,#c85a4f 0 42%,#192135 42% 58%,#f6f8fa 58% 100%);box-shadow:0 0 0 2px #0d111c,0 0 0 3px #fff5}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel .gx-options{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:14px!important;margin:0 14px 0 18px!important;padding:0!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-skip-toggle{width:14rem!important;height:2.6rem!important;border-radius:20px!important;font-size:.78rem!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-skip-toggle[aria-checked="true"]{background:linear-gradient(180deg,#0f4a3a,#07261f)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-green)!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-skip{width:9rem!important;height:2.6rem!important;border-radius:20px!important;font-size:.78rem!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-note{margin:0 18px!important;min-height:0!important;color:var(--gg-muted)!important;font:400 13px/18px Arial,sans-serif!important;text-align:center}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel .gacha-footer{margin:0 18px!important;justify-content:center!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-close,body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-back{width:9rem!important;height:2.6rem!important;border-radius:20px!important;font-size:.82rem!important}

 /* ---- the list of possible Pokemon ---------------------------------------------------------------------------------------------------------------------------- */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-pool-list{background:#06142a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-line)!important;border-radius:6px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-pool-cell{background:#0a1d3c!important;box-shadow:inset 0 0 0 1px #2c3752!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-region-label{color:var(--gg-teal)!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-region-select{border:0!important;border-image:none!important;border-radius:4px!important;background-color:#0a1d3c!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-line)!important;color:var(--gg-text)!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-pool-head{color:var(--gg-text)!important}
}
@media screen and (min-width:901px) and (max-height:820px){
 body:not(.mobile-web) #modal#modal[data-view="gacha"]{--s:2}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .modal-header{min-height:52px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] #modal-title{font-size:22px!important;line-height:28px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel{gap:8px!important;padding-bottom:8px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-stage,body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-summary{height:clamp(13rem,34vh,20rem)!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-wallet{height:48px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-region{height:36px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-actions{padding:10px 14px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-main{height:3.8rem!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-pool{height:3.4rem!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-qty{height:2.6rem!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-rolls{padding:6px 22px!important}
}

/* ===== v2 (Work-ID 20261018-gacha-v2-8a7b; zenux: "EXATAMENTE como a imagem", with his own machine, 17-gacha-machine.png) ============================================================================
   The machine is his picture (ui/gacha/pixel/machine.png, 560x724, transparent corners) centred on the scene with the gold ring under it. While a draw is on (waiting for the world, or the ball
   dropping) little Poke Balls tumble over the ones in the globe (.gx-gball, CSS only); the drawn ball, already in its rarity colour, comes OUT of the dispenser at the bottom (gx-exit), pops forward,
   shakes and opens. The ball, the globe's balls and every effect are pictures that may move; the buttons never do (AGENTS.md "Absolute UI hover geometry"). Reduced motion: no tumbling, no exit
   flight, the card fades in. */
@media screen and (min-width:901px){
 body:not(.mobile-web) #modal#modal[data-view="gacha"]{--gx-stage-h:clamp(15rem,calc(100vh - 36.6rem),37rem);--gx-mh:calc(var(--gx-stage-h)*.975);--gx-mw:calc(var(--gx-mh)*.7735);width:min(98rem,98vw)!important;height:fit-content!important;max-height:calc(100dvh - 24px)!important}   /* uv-shutdown.css gives every window one height: this one takes what its content needs */
 /* the header carries the region pill (the mockup's HOENN), the panel carries the ticket badge */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel>.gx-top{position:static!important;height:0!important;min-height:0!important;pointer-events:none}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-region{position:absolute;z-index:8;top:14px;left:18px;pointer-events:auto}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-wallet{position:absolute;z-index:8;top:14px;right:22px;height:70px;padding:0 34px 0 18px;gap:16px;
  background:linear-gradient(180deg,#0b1b36,#050d1c)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px #f3c96b,inset 0 0 0 4px #222b40,0 0 22px #f3c96b44!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-left{font-size:34px!important;line-height:36px!important}
 /* the stage: the scene all across, the machine in the middle */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-stage,body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-summary{height:var(--gx-stage-h)!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-wrap{position:absolute;z-index:0;left:50%;bottom:1.5%;width:var(--gx-mw);height:var(--gx-mh);margin-left:calc(var(--gx-mw)/-2);pointer-events:none}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine{display:block;position:static;width:100%!important;height:100%!important;image-rendering:auto!important;filter:none!important;animation:none!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-stage[data-phase="reveal"] .gx-machine{opacity:1}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-stage[data-phase="reveal"][data-step="open"] .gx-machine{opacity:.2}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-stage:is([data-phase="waiting"],[data-phase="reveal"][data-step="churn"]) .gx-machine-wrap{animation:gx-rumble2 .22s linear infinite}
 /* the ball that was drawn comes out of the dispenser (the black door at 87-92% of the machine); it lives inside the machine wrap so it follows the machine's size */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-wrap .gacha-ball{left:50%!important;top:91%!important;width:14%!important;height:auto!important;aspect-ratio:1;margin:-7% 0 0 -7%!important;z-index:2}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-stage[data-phase="reveal"][data-step="drop"] .gx-machine-wrap .gacha-ball{animation:gx-exit3 var(--gx-drop-ms,2600ms) cubic-bezier(.25,.6,.35,1) both!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-burst{top:82%!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-rings{inset:0!important;padding-top:74%;box-sizing:border-box}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-spark{top:88%!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-card{z-index:3}
 /* the strip of what a draw can roll: four items with a round icon each */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-rolls{display:flex;align-items:center;justify-content:center;gap:0;padding:8px 26px!important;border-radius:30px;font-size:15px!important;color:var(--gg-text)!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-sep{display:block;width:1px;height:30px;margin:0 22px;background:#1f6f8f;font-size:0}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-roll{display:flex;align-items:center;gap:12px;white-space:nowrap;font-weight:700}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-roll::before{content:"";flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font:700 18px/1 Arial,sans-serif;box-shadow:0 0 0 1px #0d111c,0 0 0 2px #1f6f8f}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-roll-0::before{background:linear-gradient(180deg,#c85a4f 0 42%,#192135 42% 58%,#f6f8fa 58% 100%)}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-roll-1::before{content:"\2605";background:#0b1b36;color:#f3c96b}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-roll-2::before{content:"\25C6";background:#0b1b36;color:#6fe8ff}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-roll-3::before{content:"\265B";background:#0b1b36;color:#f3c96b}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] :is(.gx-roll-1,.gx-roll-2,.gx-roll-3){color:#f3e6b8!important}
 /* the guarantee: a banner with chevrons and the gold bar */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity{width:min(52rem,92%);height:52px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity::before,body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity::after{position:absolute;top:50%;margin-top:-14px;color:#f3c96b;font:700 26px/28px Arial,sans-serif;text-shadow:0 0 8px #f3c96b88;pointer-events:none}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity::before{content:"\00AB";left:2px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity::after{content:"\00BB";right:2px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity-bar{margin:0 40px;height:34px;border-radius:6px;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #f3c96b,inset 0 0 0 3px #222e49!important;background:#07142a}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity-fill{border-radius:3px;margin:3px;height:calc(100% - 6px)}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-pity{padding:0 48px;font-size:17px!important}
 /* the controls: the switch, Pular, the divider and Fechar share one row */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel>.gx-options{grid-column:1!important;justify-content:flex-end!important;margin:0 8px 0 18px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel>.gacha-footer{grid-column:2!important;justify-content:flex-start!important;margin:0 18px 0 8px!important;position:relative;padding-left:20px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel>.gacha-footer::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:1px;background:#1f6f8f}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-note{display:none!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-panel:has(.gacha-stage[data-phase="reveal"]) .gacha-note{display:block!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-skip-toggle{
  position:relative;justify-content:flex-start!important;gap:0!important;padding:0 0 0 58px!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;text-transform:none!important;letter-spacing:.02em!important;font-size:.9rem!important;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-skip-toggle .gx-glyph{font-size:0}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-skip-toggle::before{
  content:"";position:absolute;left:0;top:50%;width:48px;height:26px;margin-top:-13px;border-radius:13px;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #1f6f8f;
  background:radial-gradient(circle at 13px 13px,#fff 0 9px,#0d111c00 10px) no-repeat 0 0/26px 26px,linear-gradient(180deg,#0e2a4c,#07162b);
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-skip-toggle[aria-checked="true"]::before{
  background:radial-gradient(circle at 13px 13px,#fff 0 9px,#0d111c00 10px) no-repeat 22px 0/26px 26px,linear-gradient(180deg,#2fe27a,#0f7a40);box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #7dffb0;
 }
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-skip-toggle:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:transparent!important;box-shadow:none!important;color:#fff!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-skip-toggle[aria-checked="true"]{background:transparent!important;box-shadow:none!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-skip{width:11rem!important;gap:10px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-skip::before{content:"\00BB\00BB";color:#7aa6c0;font-size:1.1rem}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-close{width:11rem!important;gap:10px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-close::before{content:"\2715";flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;box-shadow:inset 0 0 0 1px #7aa6c0;font-size:.8rem}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-main{box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--gg-gold),inset 0 0 0 4px #04301a,0 0 22px #2fe27a66!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-actions{margin:0 18px!important}
}
@media screen and (min-width:901px) and (max-height:820px){
 body:not(.mobile-web) #modal#modal[data-view="gacha"]{--gx-stage-h:clamp(11rem,calc(100vh - 28.5rem),30rem)}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-wallet{height:52px;top:8px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-left{font-size:26px!important;line-height:28px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-roll::before{flex-basis:26px;width:26px;height:26px;font-size:14px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-rolls{padding:4px 22px!important;font-size:13px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity{height:40px}
}
/* ===== polish (Work-ID 20261018-gacha-polish-2e5a; zenux checks every screen against the image): the region pill in the header, the framed bottom panel with the big quantity buttons, the ornate
   gold-framed SORTEAR, the framed "Ver Pokemon possiveis", the chevron pity banner with its crowns and knob, the gold ring on the floor, the gold ticket in the mockup's shape. Pictures and paint only:
   every control keeps its authored box in every state (AGENTS.md). ========================================================================================================================== */
@media screen and (min-width:901px){
 body:not(.mobile-web) #modal#modal[data-view="gacha"]{--gq-b:56px;--gq-m:98px;--gq-r:46px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] #modal-body{overflow:visible!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] #modal-title{color:#f6ecd0!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] #modal-close{position:absolute!important;right:22px;top:50%;margin-top:-22px!important;margin-left:0!important}
 /* the region pill sits in the header, to the right of the title (the panel starts under the header: a negative top) */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-region{top:-55px!important;left:410px!important;height:46px!important;padding:0 28px 0 8px!important;gap:12px!important;border-radius:23px!important;background:linear-gradient(180deg,#0b2d3a,#071a28)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #1fb8aa!important;color:#2fe0b4!important;font:700 21px/26px Arial,sans-serif!important;letter-spacing:.05em!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-region::before{width:32px!important;height:32px!important;border-radius:50%!important;background:linear-gradient(120deg,#0d111c00 30%,#0b5b5b 30% 36%,#0d111c00 36% 62%,#0b5b5b 62% 68%,#0d111c00 68%),linear-gradient(135deg,#43e6c8,#17908e)!important;box-shadow:0 0 0 1px #0d111c,inset 0 0 0 2px #0a4a54!important}
 /* the gold ring on the floor under the machine */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-ring{display:block;position:absolute;z-index:0;left:50%;bottom:2px;width:calc(var(--gx-mw)*1.46);height:calc(var(--gx-mw)*.25);margin-left:calc(var(--gx-mw)*-.73);border-radius:50%;pointer-events:none;
  background:radial-gradient(ellipse at 50% 50%,#f3c96b3a 0,#f3c96b18 55%,#0d111c00 72%);box-shadow:inset 0 0 0 3px #f3c96bd0,inset 0 0 0 5px #222b4099}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-ring::after{content:"";position:absolute;inset:-22% -16%;border-radius:50%;border:2px solid #2fd6c855}
 /* the ticket: the mockup's shape in gold, tilted */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-ticket,body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-main .gx-main-ticket{width:72px!important;height:44px!important;transform:rotate(-16deg);image-rendering:pixelated}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-wallet{padding:0 40px 0 22px!important;height:72px!important;border-radius:36px!important}
 /* the framed bottom panel */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom{position:relative;isolation:isolate;display:grid;gap:12px;margin:2px 18px 0;padding:16px 26px 14px;background:#1f8aa8;
  clip-path:polygon(0 24px,24px 0,calc(100% - 24px) 0,100% 24px,100% calc(100% - 24px),calc(100% - 24px) 100%,24px 100%,0 calc(100% - 24px))}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom::before{content:"";position:absolute;inset:2px;z-index:-1;background:linear-gradient(180deg,#071a33,#04101f);clip-path:polygon(0 23px,23px 0,calc(100% - 23px) 0,100% 23px,100% calc(100% - 23px),calc(100% - 23px) 100%,23px 100%,0 calc(100% - 23px))}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gx-actions{display:grid!important;grid-template-columns:minmax(0,29%) minmax(0,1fr) minmax(0,30%)!important;gap:26px!important;align-items:stretch!important;margin:0!important;padding:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom :is(.gx-qty,.gx-pool-group){display:grid;border-radius:20px;background:linear-gradient(180deg,#0a2140,#06142a);box-shadow:inset 0 0 0 1px #1f6f8f77}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gx-qty{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px 14px!important;align-content:center;padding:12px 24px 16px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gx-qty-title{font:700 13px/18px Arial,sans-serif!important;letter-spacing:.06em!important;color:#e6f4ff!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-qty{height:var(--gq-b)!important;border-radius:7px!important;font:700 24px/28px Arial,sans-serif!important;letter-spacing:0!important;background:linear-gradient(180deg,#0a2c3c,#06202e)!important;box-shadow:inset 0 0 0 2px #159a94!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-qty:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#0f3d4e,#082a38)!important;box-shadow:inset 0 0 0 2px #35d8c8!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-qty[aria-pressed="true"]{background:linear-gradient(180deg,#0e4a3c,#07281f)!important;box-shadow:inset 0 0 0 2px #8affc0,inset 0 0 14px #2fe27a66,0 0 14px #2fe27a66!important}
 /* SORTEAR: the gold frame with pointed ends and a diamond at each tip, green inside, the ticket and the big gold label */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-main{--cut:36px;position:relative;isolation:isolate;display:grid!important;grid-template-columns:auto auto!important;grid-template-rows:auto auto!important;justify-content:center!important;align-content:center!important;column-gap:18px!important;
  width:100%!important;max-width:none!important;height:var(--gq-m)!important;margin:0!important;padding:0 64px!important;border-radius:0!important;clip-path:polygon(0 50%,var(--cut) 0,calc(100% - var(--cut)) 0,100% 50%,calc(100% - var(--cut)) 100%,var(--cut) 100%);
  background:linear-gradient(180deg,#ffe58f,#c98a1f 50%,#ffe58f)!important;box-shadow:none!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-main::before{content:"";position:absolute;inset:5px;z-index:-1;--cut:32px;clip-path:polygon(0 50%,var(--cut) 0,calc(100% - var(--cut)) 0,100% 50%,calc(100% - var(--cut)) 100%,var(--cut) 100%);background:linear-gradient(180deg,#2cc27a 0,#12804a 52%,#0b5a34 100%)}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-main:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#fff0b0,#e0a030 50%,#fff0b0)!important;box-shadow:none!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-main:is(:hover:not(:disabled),:focus-visible,.pad-focus)::before{background:linear-gradient(180deg,#3de28e 0,#17a05c 52%,#0d6e40 100%)}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-main .gx-main-ticket{grid-column:1;grid-row:1 / 3;order:0;align-self:center;justify-self:center}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-main .gx-main-label{grid-column:2;grid-row:1;align-self:end;color:#ffd95e!important;font:900 35px/38px Arial,sans-serif!important;letter-spacing:.03em!important;text-shadow:2px 0 #1f273a,-2px 0 #1f273a,0 2px #1f273a,0 -2px #1f273a,2px 2px #1f273a,-2px -2px #1f273a,2px -2px #1f273a,-2px 2px #1f273a,0 4px 0 #1d273d!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-main .gx-main-cost{grid-column:2;grid-row:2;align-self:start;color:#ffe36e!important;font:700 15px/20px Arial,sans-serif!important;letter-spacing:.08em!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-gem{display:block;position:absolute;top:50%;width:15px;height:15px;margin-top:-8px;transform:rotate(45deg);background:linear-gradient(135deg,#a8f5cb,#1f9a62);box-shadow:0 0 0 2px #e6b33c}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-gem.l{left:10px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-gem.r{right:10px}
 /* Ver Pokemon possiveis: the framed group and the big rounded button with the Poke Ball */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gx-pool-group{align-content:center;padding:14px 20px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-pool{height:calc(var(--gq-m) - 24px)!important;border-radius:999px!important;padding:0 18px 0 12px!important;gap:16px!important;justify-content:flex-start!important;background:linear-gradient(180deg,#0a2444,#061428)!important;box-shadow:inset 0 0 0 2px #7fb4d0!important;font:700 17px/22px Arial,sans-serif!important;letter-spacing:0!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-pool{position:relative}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-pool::before{flex:0 0 54px!important;width:54px!important;height:54px!important;background:#08162c!important;box-shadow:inset 0 0 0 2px #9ec4da!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-pool::after{content:"";position:absolute;left:24px;top:50%;width:30px;height:30px;margin-top:-15px;border-radius:50%;background:radial-gradient(circle,#f6f8fa 0 14%,#192135 15% 22%,#0d111c00 23%),linear-gradient(180deg,#c85a4f 0 46%,#192135 46% 54%,#f6f8fa 54% 100%);box-shadow:0 0 0 1px #0d111c}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-pool:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#123a66,#0a2244)!important;box-shadow:inset 0 0 0 2px #bfe6ff!important}
 /* the lower row: switch, Pular, a divider, Fechar */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gx-lower{display:flex;align-items:center;justify-content:center;gap:0;padding-top:10px;border-top:1px solid #1f6f8f55}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gx-lower>.gx-options{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:22px!important;margin:0 24px 0 0!important;padding:0!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gx-lower>.gacha-footer{position:relative;display:flex;justify-content:flex-start!important;margin:0!important;padding-left:36px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gx-lower>.gacha-footer::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:1px;background:#4f86a5}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-skip-toggle{width:auto!important;height:var(--gq-r)!important;padding:0 0 0 70px!important;font:700 14px/18px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-skip-toggle::before{width:56px!important;height:30px!important;margin-top:-15px!important;border-radius:15px!important;background:radial-gradient(circle at 15px 15px,#fff 0 11px,#0d111c00 12px) no-repeat 0 0/30px 30px,linear-gradient(180deg,#0e2a4c,#07162b)!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-skip-toggle[aria-checked="true"]::before{background:radial-gradient(circle at 15px 15px,#fff 0 11px,#0d111c00 12px) no-repeat 26px 0/30px 30px,linear-gradient(180deg,#2fe27a,#0f7a40)!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom :is(.gacha-skip,.gacha-close){width:200px!important;height:var(--gq-r)!important;border-radius:999px!important;font:700 17px/22px Arial,sans-serif!important;background:linear-gradient(180deg,#0d2a4a,#07162b)!important;box-shadow:inset 0 0 0 2px #5d89a6!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-skip{background:linear-gradient(180deg,#0a1f3a,#06132a)!important;box-shadow:inset 0 0 0 2px #29334c!important;color:#5a7a96!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-close::before{flex:0 0 32px!important;width:32px!important;height:32px!important;font-size:1rem!important;box-shadow:inset 0 0 0 1px #7aa6c0!important}
 /* the guarantee: a gold hexagonal banner with its crowns, the gold bar with its knob, chevrons at both ends */
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity{display:grid;width:min(55rem,92%);height:56px;margin:18px auto 2px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity-bar{--cut:36px;position:relative;isolation:isolate;grid-area:1/1;display:block;align-self:stretch;height:auto!important;margin:0!important;border-radius:0!important;overflow:hidden;clip-path:polygon(0 50%,var(--cut) 0,calc(100% - var(--cut)) 0,100% 50%,calc(100% - var(--cut)) 100%,var(--cut) 100%);background:linear-gradient(180deg,#ffe08a,#b9801c)!important;box-shadow:none!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity-bar::before{content:"";position:absolute;inset:2px;z-index:-1;--cut:35px;clip-path:polygon(0 50%,var(--cut) 0,calc(100% - var(--cut)) 0,100% 50%,calc(100% - var(--cut)) 100%,var(--cut) 100%);background:linear-gradient(180deg,#0a1a33,#050f22)}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity-fill{position:relative;display:block;height:calc(100% - 24px)!important;margin:12px 0 12px 62px!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity-fill::before{content:"";position:absolute;inset:0;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%);background:linear-gradient(180deg,#ffe28a,#d99a2a)}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity-fill::after{content:"";position:absolute;left:100%;top:0;width:46px;height:100%;margin-left:10px;clip-path:polygon(0 0,72% 0,100% 50%,72% 100%,0 100%,24% 50%);background:linear-gradient(180deg,#ffe28a,#c98a1f)}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-pity{position:relative;z-index:3;color:#f6e1a0!important;font:700 19px/24px Arial,sans-serif!important;padding:0 80px 0 calc(var(--pity,0%) + 150px)!important;text-shadow:0 2px 0 #0d111c!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity::before{content:"\00AB"!important;left:46px!important;margin-top:-16px!important;color:#9d7b31!important;text-shadow:none!important;z-index:2}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity::after{content:"\00BB"!important;right:44px!important;margin-top:-16px!important;color:#f3c96b!important;z-index:2}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-crowns{display:block;position:absolute;left:0;right:0;top:-20px;height:22px;pointer-events:none;background:linear-gradient(#f3c96b,#f3c96b) 11% 60%/12% 2px no-repeat}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-crowns::before,body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-crowns::after{content:"\265B";position:absolute;top:-3px;color:#f3c96b;font:700 22px/22px Arial,sans-serif;text-shadow:0 0 6px #f3c96b66}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-crowns::before{left:9%}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-crowns::after{left:23%}
}
@media screen and (min-width:901px) and (max-height:820px){
 body:not(.mobile-web) #modal#modal[data-view="gacha"]{--gq-b:42px;--gq-m:76px;--gq-r:38px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-region{top:-49px!important;left:330px!important;height:38px!important;font-size:17px!important;padding:0 22px 0 6px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-region::before{width:26px!important;height:26px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-wallet{height:54px!important;padding:0 30px 0 16px!important;border-radius:27px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-ticket,body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-main .gx-main-ticket{width:54px!important;height:33px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom{gap:8px;padding:10px 22px 8px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gx-qty{padding:8px 18px 10px;gap:8px 10px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gx-qty-title{font-size:11px!important;line-height:14px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-qty{font-size:19px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-main{--cut:28px;padding:0 48px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-main .gx-main-label{font-size:27px!important;line-height:30px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-main .gx-main-cost{font-size:12px!important;line-height:16px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gx-pool-group{padding:10px 16px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-pool{height:calc(var(--gq-m) - 18px)!important;font-size:15px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-pool::before{flex-basis:40px!important;width:40px!important;height:40px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gacha-pool::after{left:21px;width:22px;height:22px;margin-top:-11px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom .gx-lower{padding-top:6px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-bottom :is(.gacha-skip,.gacha-close){width:170px!important;font-size:14px!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity{height:44px;margin-top:14px}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-pity-fill{margin:9px 0 9px 56px!important;height:calc(100% - 18px)!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-pity{font-size:16px!important}
}
@keyframes gx-rumble2{0%,100%{transform:translate(0,0)}25%{transform:translate(2px,1px)}50%{transform:translate(-2px,0)}75%{transform:translate(1px,-1px)}}
@media (prefers-reduced-motion:reduce){
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gx-machine-wrap{animation:none!important}
 body:not(.mobile-web) #modal#modal[data-view="gacha"] .gacha-stage[data-phase="reveal"][data-step="drop"] .gx-machine-wrap .gacha-ball{animation:none!important}
}
