/* The Arena (mockup 01-arena), rebuilt exactly like the PC storage and batch C (Work-ID 20261018-scale-shiny-arena-8c3a; zenux: "Esta faltando a arena"; the batch B version was only recoloured). Desktop only, and only in
   the arena mode of the "ai" window (data-ai-mode="arena"): the window's own header is hidden and the sheet draws the mockup's: emblem + ARENA, the season pill, the two purses (PvP coins with a + that opens the shop step,
   gacha tickets), the close button; the five tiles; the five tabs with their icons; the team as three cards with TIME PRONTO and EDITAR EQUIPE (the selectors that were always there open under it); the opponents as a table;
   the banner with the attempts left and the next reset. Same handlers and selectors; every node added for the mockup carries `hidden` (the phone never shows it). The sheet is drawn at --sgz (a zoom by the window's height,
   like the other dense windows). AGENTS.md "Absolute UI hover geometry": states repaint; box, padding, border and font stay. */
@media screen and (min-width:901px){
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"]{--sgz:.85;--ic-crown:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 18h18l1-11-5 4-5-8-5 8-5-4z' fill='%23000'/%3E%3C/svg%3E");
  --ic-swords:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20L16 8M14 5h5v5M20 20L8 8M10 5H5v5M3 21l2-2M21 21l-2-2'/%3E%3C/svg%3E");
  --ic-target:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='13' r='8'/%3E%3Ccircle cx='11' cy='13' r='4'/%3E%3Cpath d='M11 13l9-9M16 4h4v4'/%3E%3C/svg%3E");
  --ic-clock:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --ic-star:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 7 7 .6-5.3 4.7 1.6 7.2L12 17.8 5.7 21.5l1.6-7.2L2 9.6 9 9z' fill='%23000'/%3E%3C/svg%3E");
  --ic-shield:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-4 8-8 9-4-1-8-4-8-9V6z'/%3E%3C/svg%3E");
  --ic-book:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M2 5c4-1 7 0 10 2 3-2 6-3 10-2v14c-4-1-7 0-10 2-3-2-6-3-10-2zM12 7v14'/%3E%3C/svg%3E");
  --ic-shop:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 9l2-5h14l2 5zM4 9v11h16V9M9 20v-6h6v6'/%3E%3C/svg%3E");
  --ic-gift:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 8h18v4H3zM5 12v9h14v-9M12 8v13M12 8C9 8 7 4 10 4s2 4 2 4zM12 8c3 0 5-4 2-4s-2 4-2 4z'/%3E%3C/svg%3E");
  --ic-ticket:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 7h18v3a2 2 0 0 0 0 4v3H3v-3a2 2 0 0 0 0-4zM14 7v10' stroke-dasharray='2 2'/%3E%3C/svg%3E");
  --ic-refresh:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-3-6.2M20 4v5h-5'/%3E%3C/svg%3E");
  --ic-ok:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000'/%3E%3C/svg%3E");
  --ic-pencil:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-5L16 4l4 4L9 19zM14 6l4 4'/%3E%3C/svg%3E");
  width:min(1660px,98vw)!important;height:min(940px,calc(100dvh - 14px))!important;max-height:none!important;--shutdown-window-width:min(1660px,98vw);--shutdown-window-height:min(940px,calc(100dvh - 14px))}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"]>.modal-header{display:none!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] #modal-body{height:100%!important;max-height:none!important;padding:0!important;overflow:hidden!important;background:radial-gradient(ellipse at 50% 100%,#1a2337 0,#111724 52%,#040104 100%)!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-panel{position:relative;zoom:var(--sgz);display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:112px 86px 64px minmax(0,1fr) 54px!important;gap:14px!important;height:calc((min(940px,100dvh - 14px) - 10px) / var(--sgz))!important;padding:0 36px 12px!important;box-sizing:border-box;color:var(--sg-text);overflow:hidden}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-panel>.sgx-head{grid-column:1;grid-row:1;margin:0 -36px;padding-left:36px;position:relative;z-index:1}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-panel>.sgx-title{letter-spacing:.1em}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-panel>.arena-head{grid-column:1;grid-row:2}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-panel>.arena-flow{display:none!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-panel>.arena-nav{grid-column:1;grid-row:3}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-panel>.arena-step{grid-column:1;grid-row:4}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-panel>.arena-banner{grid-column:1;grid-row:5}
 /* the top row: the season pill, the purses, close */
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-season{position:absolute;z-index:3;left:50%;top:26px;display:flex!important;align-items:center;gap:16px;height:60px;margin-left:-190px;width:380px;justify-content:center;padding:0 24px;color:#f6e3b4;font:700 26px/30px Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;background:linear-gradient(180deg,#1b2439,#121927);clip-path:polygon(0 50%,24px 0,calc(100% - 24px) 0,100% 50%,calc(100% - 24px) 100%,24px 100%)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-season::before{content:"";position:absolute;inset:3px;z-index:-1;background:linear-gradient(180deg,#161d2f,#111724);clip-path:polygon(0 50%,22px 0,calc(100% - 22px) 0,100% 50%,calc(100% - 22px) 100%,22px 100%)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-season{box-shadow:none;background:linear-gradient(180deg,#ffe08a,#b9801c)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-crown{width:34px;height:34px;background:#f3c96b;-webkit-mask:var(--ic-crown) center/contain no-repeat;mask:var(--ic-crown) center/contain no-repeat}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-purses{position:absolute;z-index:3;right:150px;top:30px;display:flex!important;gap:18px}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-purse{position:relative;display:flex;align-items:center;gap:14px;height:56px;min-width:170px;padding:0 54px 0 14px;border-radius:5px;background:linear-gradient(180deg,#161d2e,#08040a);box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #5c3639,0 0 12px #673c4033}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-purse-ic{flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:radial-gradient(circle at 38% 34%,#fff2b0 0,#f1b92e 45%,#2e3a56 100%);box-shadow:0 0 0 2px #0d111c,0 0 0 3px #c8901f}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-purse.ticket .arena-purse-ic{border-radius:6px;background:#ce7363;box-shadow:none;-webkit-mask:var(--ic-ticket) center/contain no-repeat;mask:var(--ic-ticket) center/contain no-repeat}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-purse>strong{color:#fff;font:700 22px/26px Arial,sans-serif}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-purse .arena-plus{display:grid!important;place-items:center;position:absolute;right:8px;top:50%;width:36px;height:36px;margin-top:-18px;padding:0!important;border:0!important;border-radius:4px!important;background:linear-gradient(180deg,#1a2338,#111724)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #6c3f43!important;color:#ce7363!important;font:900 24px/1 Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-purse .arena-plus:is(:hover,:focus-visible,.pad-focus){background:linear-gradient(180deg,#232e4a,#141a2a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold)!important;color:#fff!important}
 /* the five tiles */
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-head{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:16px!important;margin:0!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-kpi{position:relative;display:grid!important;align-content:center;gap:2px;height:100%;padding:0 12px 0 96px!important;border:0!important;border-radius:5px!important;background:var(--sg-gems-quiet),linear-gradient(180deg,#161d2e,#08040a)!important;box-shadow:var(--sg-frame-card)!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-kpi::before{content:""!important;position:absolute;left:26px;top:50%;width:48px;height:48px;margin-top:-24px;border-radius:0;background:#e8c47a!important;-webkit-mask:var(--ki) center/contain no-repeat;mask:var(--ki) center/contain no-repeat;box-shadow:none!important;color:transparent!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-head>:nth-child(1){--ki:var(--ic-crown)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-head>:nth-child(2){--ki:var(--ic-swords)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-head>:nth-child(3){--ki:var(--ic-target)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-head>:nth-child(4){--ki:var(--ic-clock)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-head>:nth-child(5){--ki:var(--ic-star)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-head>:nth-child(2)::before,body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-head>:nth-child(3)::before,body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-head>:nth-child(4)::before{background:#ce7363!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-kpi>span{color:#ece9e3!important;font:700 17px/20px Arial,sans-serif!important;letter-spacing:.04em!important;text-transform:uppercase}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-kpi>strong{color:#fff!important;font:700 36px/42px Arial,sans-serif!important;white-space:nowrap}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-kpi.empty>strong{color:#ffb0b8!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-head>:nth-child(1)>strong{color:#ffd982!important}
 /* the five tabs */
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;align-items:stretch}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-nav>button{position:relative;display:flex!important;align-items:center;justify-content:center;gap:16px;height:100%!important;min-width:0;padding:0 12px!important;border:0!important;border-image:none!important;border-radius:5px!important;background:linear-gradient(180deg,#171f32,#111724)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #29344d!important;color:#fff!important;font:700 24px/28px Arial,sans-serif!important;letter-spacing:.04em!important;text-transform:uppercase!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-nav>button::before{content:"";flex:0 0 36px;width:36px;height:36px;background:#ece9e3;-webkit-mask:var(--ti) center/contain no-repeat;mask:var(--ti) center/contain no-repeat}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-nav>:nth-child(1){--ti:var(--ic-shield)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-nav>:nth-child(2){--ti:var(--ic-swords)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-nav>:nth-child(3){--ti:var(--ic-book)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-nav>:nth-child(4){--ti:var(--ic-shop)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-nav>:nth-child(5){--ti:var(--ic-gift)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-nav>button:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#212c46,#141b2a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #d28071!important;color:#fff!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-nav>button.selected{background:linear-gradient(180deg,#ac363a,#1f2a42)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #d28071,inset 0 -5px 0 #f3a43a,0 0 16px #c44c4566!important;color:#fff!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-nav>button.selected::before{background:#fff}
 /* the step: sections as framed panels */
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-step{display:flex!important;flex-direction:column;gap:14px;min-height:0;padding:0!important;border:0!important;border-image:none!important;background:none!important;box-shadow:none!important;overflow:hidden}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-section{flex:none;margin:0!important;min-height:0;padding:16px 22px!important;border:0!important;border-image:none!important;border-radius:6px!important;background:var(--sg-gems-quiet),linear-gradient(180deg,#151c2c,#07040a)!important;box-shadow:var(--sg-frame-card)!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-section>h4{display:flex;align-items:center;gap:16px;margin:0 0 2px!important;color:#f6e3b4!important;font:700 26px/30px Arial,sans-serif!important;letter-spacing:.04em!important;text-transform:uppercase!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-h-ic{flex:0 0 34px;width:34px;height:34px;background:#e8c47a;-webkit-mask:var(--ic-swords) center/contain no-repeat;mask:var(--ic-swords) center/contain no-repeat}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-section[data-part="defense"] .arena-h-ic{-webkit-mask-image:var(--ic-shield);mask-image:var(--ic-shield)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-section>.modal-description{margin:0 0 12px 50px!important;color:#e1ded8!important;font:400 17px/22px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-gm-badge{display:inline-grid!important;place-items:center;height:30px;padding:0 16px;border-radius:5px;background:#1b2439;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #d9a233;color:#ffd982;font:700 18px/22px Arial,sans-serif;font-style:normal}
 /* the team */
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-deck{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr)) 330px;gap:20px;align-items:stretch}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-cards{display:contents!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-card{position:relative;display:grid;grid-template-columns:42% minmax(0,1fr);align-items:center;gap:6px;height:150px;padding:6px 18px 6px 6px;border-radius:5px;background:radial-gradient(circle at 24% 55%,#202a43 0,#141b2b 62%),linear-gradient(180deg,#161d2e,#08040a);box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #5c3639,0 0 14px #673c4033}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-card.empty{display:grid;place-items:center;grid-template-columns:1fr;opacity:.6}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-card-plus{color:#ce7363;font:700 48px/1 Arial,sans-serif}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-card-art{width:100%;height:138px;object-fit:contain;image-rendering:pixelated}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-card-info{display:grid;gap:5px;min-width:0}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-card-info strong{display:block;color:#fff;font:700 24px/28px Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-star{color:#f3a43a;font-style:normal}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-card-info small{color:#d8c4c8;font:400 18px/22px Arial,sans-serif}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-card-types{display:flex;gap:8px;flex-wrap:wrap}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-pill{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:16px;color:#fff;font:700 15px/18px Arial,sans-serif;text-transform:uppercase;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #ffffff55}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-card-bar{display:block;height:9px;border-radius:5px;background:#131928;box-shadow:inset 0 0 0 1px #0d111c;overflow:hidden}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-card-bar>i{display:block;height:100%;background:linear-gradient(90deg,#c43aa8,#ff7ad8)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-ready{display:grid!important;grid-template-rows:1fr auto;gap:12px;padding:10px 0}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-ready-mark{display:flex;align-items:center;justify-content:center;gap:14px;color:#33e883;font:700 20px/24px Arial,sans-serif;letter-spacing:.02em;text-transform:uppercase}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-ready-mark::before{content:"";width:34px;height:34px;border-radius:50%;background:#1fa860;box-shadow:inset 0 0 0 3px #1fa860,inset 0 0 0 5px #fff0}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-ready-mark.no{color:#ffb13a}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-ready-mark.no::before{background:#d9a233}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-edit{display:flex!important;align-items:center;justify-content:center;gap:14px;height:62px!important;min-height:62px!important;padding:0 12px!important;border:0!important;border-image:none!important;border-radius:5px!important;background:linear-gradient(180deg,#1c253c,#111725)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px #f3a43a,0 0 14px #f3a43a55!important;color:#fff!important;font:700 20px/24px Arial,sans-serif!important;letter-spacing:.03em!important;text-transform:uppercase!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-edit::before{content:"";width:28px;height:28px;background:#f3a43a;-webkit-mask:var(--ic-pencil) center/contain no-repeat;mask:var(--ic-pencil) center/contain no-repeat}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-edit:is(:hover,:focus-visible,.pad-focus){background:linear-gradient(180deg,#1f273a,#141a2a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px var(--sg-gold-hi),0 0 16px #f3c96b66!important}
 /* the selectors that were always there: shown under the cards while editing */
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-section:not(.editing)>.arena-slots,body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-section:not(.editing)>.arena-actions{display:none!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-section.editing>.arena-slots{margin:14px 0 8px!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-slots>*{height:48px;font:400 17px/22px Arial,sans-serif!important}
 /* the opponents */
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-step>.arena-section[data-part="opponents"]{flex:1 1 auto;display:flex;flex-direction:column}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-bots-note{margin:0 0 8px 0!important;color:#cbbbb4!important;font:400 15px/20px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-list{flex:1 1 auto;min-height:0;display:flex!important;flex-direction:column;gap:0!important;overflow:auto;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-table-head,body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-row{display:grid!important;grid-template-columns:90px minmax(0,1.5fr) minmax(0,1.5fr) 190px 250px;grid-template-areas:"rank opp lead diff fight";align-items:center;gap:0 14px}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-table-head{flex:none;height:44px;padding:0 16px;color:#d8c4c8;font:700 16px/20px Arial,sans-serif;letter-spacing:.05em;text-transform:uppercase;text-align:center;border-bottom:1px solid #202b44}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-table-head>:nth-child(2){text-align:left}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-row{flex:none;height:92px;padding:0 16px!important;border:0!important;border-image:none!important;border-radius:0!important;background:none!important;box-shadow:none!important;border-bottom:1px solid #1b243a!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-row:first-of-type{background:none!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-row .rank-number{grid-area:rank;color:#ffd982!important;font:700 40px/44px Arial,sans-serif!important;text-align:center}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-opp{grid-area:opp;display:flex;align-items:center;gap:16px;min-width:0}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-avatar{flex:0 0 66px!important;width:66px!important;height:66px!important;box-shadow:0 0 0 2px #0d111c,0 0 0 4px #c8901f!important;background:#141a2a!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-avatar canvas{width:66px!important;height:66px!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-opp strong{display:flex;align-items:center;gap:10px;color:#fff!important;font:700 24px/28px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-opp small{color:#d8c4c8!important;font:400 17px/22px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-bot-tag{display:inline-grid!important;place-items:center;height:28px;padding:0 12px;border-radius:5px;background:#1b2439!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #d9a233;color:#ffd982!important;font:700 15px/18px Arial,sans-serif!important;font-style:normal!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-row .rating-number{display:none!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-lead{grid-area:lead;display:flex!important;flex-direction:column;align-items:center;gap:2px}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-lead-art{width:62px;height:62px;object-fit:contain;image-rendering:pixelated}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-lead small{color:#e1ded8!important;font:400 16px/20px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-diff{grid-area:diff;display:block!important;text-align:center;font:700 24px/28px Arial,sans-serif;font-style:normal}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-diff.up{color:#33e883}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-diff.down{color:#d38375}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-row .arena-fight{grid-area:fight;display:flex!important;align-items:center;justify-content:center;gap:14px;height:62px!important;min-height:62px!important;padding:0 10px!important;border:0!important;border-image:none!important;border-radius:5px!important;background:linear-gradient(180deg,#1b243a,#111725)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px #673c40,0 0 12px #673c4055!important;color:#fff!important;font:700 22px/26px Arial,sans-serif!important;letter-spacing:.04em!important;text-transform:uppercase!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-row .arena-fight::before{content:"";width:30px;height:30px;background:#d17e6f;-webkit-mask:var(--ic-swords) center/contain no-repeat;mask:var(--ic-swords) center/contain no-repeat}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-row .arena-fight:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#1f273a,#141b2b)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px var(--sg-gold-hi),0 0 16px #f3c96b66!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-row .arena-fight:disabled{opacity:.5}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-step .empty-state{padding:30px;color:var(--sg-muted)}
 /* the other steps: log, shop, prizes in the same panel */
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-step>.arena-section[data-part="log"],body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-step>.arena-section[data-part="shop"],body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-step>.arena-section[data-part="prizes"]{flex:1 1 auto;overflow:auto}
 /* the log, the shop and the prizes at the same scale as the rest */
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-shop{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(420px,1fr))!important;gap:14px!important;margin-top:12px}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-shop-row{display:flex!important;align-items:center;justify-content:space-between;gap:16px;height:84px;padding:0 18px!important;border-radius:5px!important;background:linear-gradient(180deg,#161d2e,#08040a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #1f273a!important;color:#fff;font:700 22px/26px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-shop-row .arena-buy{height:54px!important;min-height:54px!important;min-width:190px;padding:0 18px!important;border:0!important;border-image:none!important;border-radius:5px!important;background:linear-gradient(180deg,#123a6a,#08172f)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #5aa8f2!important;color:#fff!important;font:700 19px/22px Arial,sans-serif!important;text-transform:uppercase!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-shop-row .arena-buy:disabled{opacity:.5}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-log{display:grid;gap:8px!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-log-row{display:flex;justify-content:space-between;gap:20px;padding:14px 20px!important;border-radius:5px!important;background:linear-gradient(180deg,#161d2e,#08040a);font:400 20px/26px Arial,sans-serif!important;color:#fff}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-log-row small{color:#cbbbb4!important;font:400 17px/22px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .season-prizes-list{display:grid;gap:8px!important;margin:8px 0 0!important;padding:0;list-style:none}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .season-prizes-list li{display:grid!important;grid-template-columns:260px 1fr!important;gap:20px!important;padding:14px 20px;border-radius:5px;background:linear-gradient(180deg,#161d2e,#08040a);font:400 20px/26px Arial,sans-serif!important;color:#fff}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .season-prizes-list li strong{color:#ffd982!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .season-prizes-list li span{color:#e1ded8!important}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-section[data-part="log"] .arena-h-ic,body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-section[data-part="shop"] .arena-h-ic,body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-section[data-part="prizes"] .arena-h-ic{display:none}
 /* the banner */
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-banner{display:flex!important;align-items:center;justify-content:center;gap:16px;justify-self:center;width:720px;height:100%;white-space:nowrap;color:#ece9e3;font:700 19px/22px Arial,sans-serif;letter-spacing:.03em;text-transform:uppercase;background:linear-gradient(180deg,#ffe08a,#b9801c);clip-path:polygon(0 50%,26px 0,calc(100% - 26px) 0,100% 50%,calc(100% - 26px) 100%,26px 100%);position:relative;isolation:isolate}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-banner::before{content:"";position:absolute;inset:3px;z-index:-1;background:linear-gradient(180deg,#151c2d,#08040a);clip-path:polygon(0 50%,24px 0,calc(100% - 24px) 0,100% 50%,calc(100% - 24px) 100%,24px 100%)}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-banner b{font-size:22px}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-banner i{color:#8e8082;font-style:normal;font-weight:400}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-banner-ic{width:34px;height:34px;background:#ce7363;-webkit-mask:var(--ic-ticket) center/contain no-repeat;mask:var(--ic-ticket) center/contain no-repeat}
 body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"] .arena-banner-ic.reset{background:#ece9e3;-webkit-mask-image:var(--ic-refresh);mask-image:var(--ic-refresh)}
}
@media screen and (min-width:901px) and (max-height:953px){ body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"]{--sgz:.8} }
@media screen and (min-width:901px) and (max-height:889px){ body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"]{--sgz:.75} }
@media screen and (min-width:901px) and (max-height:829px){ body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"]{--sgz:.7} }
@media screen and (min-width:901px) and (max-height:769px){ body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"]{--sgz:.66} }
@media screen and (min-width:901px) and (max-height:719px){ body:not(.mobile-web) #modal#modal[data-view="ai"][data-ai-mode="arena"]{--sgz:.6} }
