/* The arcade is intentionally isolated from journey menus, battle styles and map CSS. */
body.royaleActive{overflow:hidden}
#pokeRoyale{position:fixed;inset:0;z-index:1600;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 40%,#264c52 0,#122833 48%,#0b1b26 100%);color:#eef7f5;font:14px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;overflow:hidden;isolation:isolate;color-scheme:dark}
#pokeRoyale *{box-sizing:border-box}
#pokeRoyale [hidden]{display:none!important}
#pokeRoyale button{font:inherit;color:inherit;cursor:pointer;border:1px solid #647c84;background:#243f4c;border-radius:10px;min-height:44px;padding:10px 16px;transition:background .12s,transform .12s;box-shadow:none}
#pokeRoyale button:hover:not(:disabled){background:#365966}
#pokeRoyale button:active:not(:disabled){transform:translateY(1px)}
#pokeRoyale button:focus-visible,#pokeRoyale canvas:focus-visible{outline:3px solid #f8e6ad;outline-offset:3px}
#pokeRoyale button:disabled{cursor:default;opacity:.5}
#pokeRoyale h1,#pokeRoyale h2,#pokeRoyale p{margin:0}
#pokeRoyale .pr-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px max(20px,env(safe-area-inset-right)) 14px max(20px,env(safe-area-inset-left));background:#0b1f2be6;border-bottom:1px solid #56707870;flex-shrink:0}
#pokeRoyale .pr-kicker{display:block;font-size:10px;letter-spacing:.19em;font-weight:750;color:#9ac3c7}
#pokeRoyale h1{font-size:30px;line-height:1.05;font-weight:900;letter-spacing:-.04em;margin-top:3px}
#pokeRoyale h1 span{color:#f4d991;margin-left:3px}
#pokeRoyale .pr-session{display:flex;align-items:center;gap:8px;color:#c6dedf;font-size:12px}
#pokeRoyale .pr-dot{width:7px;height:7px;background:#7fe2bc;border-radius:50%;box-shadow:0 0 13px #7fe2bc80}
#pokeRoyale #prReturn{font-size:12px;min-height:42px;background:#16333f}
#pokeRoyale #prReturn span{margin-left:15px;padding:2px 5px;border:1px solid #56737c;border-radius:3px;color:#9fb8c0;font-size:10px}
#pokeRoyale .pr-layout{display:grid;grid-template-columns:minmax(190px,260px) minmax(300px,600px) minmax(160px,220px);justify-content:center;gap:clamp(18px,3vw,50px);padding:18px 24px 20px;flex:1;min-height:0;overflow:auto}
#pokeRoyale .pr-guide{align-self:center;max-width:250px}
#pokeRoyale .pr-guide h2{font-size:clamp(24px,2.6vw,36px);line-height:1.1;letter-spacing:-.04em;margin:12px 0}
#pokeRoyale .pr-guide>p{color:#adc6cb;margin-bottom:28px}
#pokeRoyale .pr-rule{display:flex;gap:14px;margin:22px 0}
#pokeRoyale .pr-rule>b{font-size:11px;color:#edd79f;padding-top:2px;letter-spacing:.08em}
#pokeRoyale .pr-rule strong{display:block;font-size:14px;margin-bottom:5px}
#pokeRoyale .pr-rule small{display:block;font-size:12px;color:#a8c1c7;line-height:1.55}
#pokeRoyale .pr-tip{border-top:1px solid #55758066;margin-top:27px;padding-top:19px}
#pokeRoyale .pr-tip>span{font-size:10px;font-weight:750;letter-spacing:.16em;color:#f4d991}
#pokeRoyale .pr-tip p{margin:10px 0;color:#e2eeec;font-size:13px}
#pokeRoyale .pr-tip small{font-size:11px;line-height:1.5;color:#95b5bd;display:block}
#pokeRoyale .pr-no-rewards{font-size:10px!important;line-height:1.6;margin-top:22px!important;color:#8eabb2!important}
#pokeRoyale .pr-game{background:transparent!important;max-width:none!important;padding:0!important;border:0!important;margin:0!important;box-shadow:none!important;display:flex;flex-direction:column;align-items:center;min-height:0;min-width:0;gap:8px;overflow:visible!important;width:100%}
#pokeRoyale .pr-scoreboard{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:440px;gap:10px;min-height:48px;flex-shrink:0}
#pokeRoyale .pr-scoreboard strong{font-size:13px;display:block;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pokeRoyale .pr-scoreboard .pr-kicker{font-size:9px;color:#a1bcc1;margin-bottom:2px}
#pokeRoyale .pr-you{text-align:right}
#pokeRoyale .pr-match-clock{min-width:100px;text-align:center}
#pokeRoyale .pr-match-clock strong{font-size:23px;letter-spacing:.02em;font-variant-numeric:tabular-nums}
#pokeRoyale .pr-match-clock small{display:block;font-size:8px;font-weight:800;letter-spacing:.16em;color:#f5d38d}
#pokeRoyale .pr-arena-wrap{position:relative;min-height:150px;flex:1;aspect-ratio:600/840;max-width:100%;max-height:calc(100dvh - 318px);filter:drop-shadow(0 10px 25px #0005);align-self:center}
#pokeRoyale #prCanvas{display:block;height:100%;width:100%;max-width:none;max-height:none;border:2px solid #8faca2;border-radius:16px;background:#4c7953;image-rendering:pixelated;touch-action:none}
#pokeRoyale .pr-banner{position:absolute;left:5%;right:5%;top:37%;padding:20px 16px;text-align:center;background:#102a38ee;border:1px solid #d9c68c;box-shadow:0 5px 24px #0006;border-radius:12px;pointer-events:none}
#pokeRoyale .pr-banner span{font-size:9px;letter-spacing:.17em;font-weight:850;color:#f4d991}
#pokeRoyale .pr-banner strong{display:block;font-size:25px;font-weight:850;margin:5px 0;line-height:1.12}
#pokeRoyale .pr-banner small{display:block;font-size:11px;color:#c5dcde;line-height:1.5}
#pokeRoyale .pr-controls{width:100%;max-width:520px;flex-shrink:0}
#pokeRoyale .pr-energy-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
#pokeRoyale .pr-meter{height:12px;border-radius:10px;background:#0d1b28;overflow:hidden;border:1px solid #546371;flex:1}
#pokeRoyale #prEnergyFill{display:block;height:100%;width:50%;background:linear-gradient(90deg,#8076e6,#c7acff);box-shadow:0 0 15px #9789ff}
#pokeRoyale #prEnergy{font-size:11px;min-width:41px;font-variant-numeric:tabular-nums}
#pokeRoyale #prEvolve{font-size:11px;min-height:38px;padding:6px 11px;background:#3d3852;border-color:#8b79a6}
#pokeRoyale #prEvolve b{color:#f6dda1;margin-left:7px;font-size:10px}
#pokeRoyale #prEvolve[aria-pressed=true]{background:#76633c;border-color:#f6dda1}
#pokeRoyale .pr-hand{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#pokeRoyale .pr-card{position:relative;display:flex;flex-direction:column;align-items:center;padding:5px 3px 7px!important;background:linear-gradient(#294a57,#193441)!important;border-color:#54717b!important;min-height:98px;border-radius:10px!important;overflow:hidden}
#pokeRoyale .pr-card img{height:48px;width:58px;object-fit:contain;image-rendering:pixelated;margin-bottom:2px}
#pokeRoyale .pr-card strong{font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#pokeRoyale .pr-card small{font-size:8px;color:#b6ced0;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#pokeRoyale .pr-card kbd{position:absolute;right:5px;top:5px;font:9px system-ui;color:#cbdde0;border:0;padding:0;background:none}
#pokeRoyale .pr-cost{position:absolute;left:5px;top:5px;width:20px;height:22px;display:grid;place-items:center;background:#7961ac;border:1px solid #ccb1f8;border-radius:6px;color:#fff;font-weight:850;font-size:12px}
#pokeRoyale .pr-card.is-selected{border-color:#f5dfa4!important;box-shadow:0 0 0 2px #f5dfa460!important;background:linear-gradient(#456568,#2d4b50)!important}
#pokeRoyale .pr-card.is-unaffordable img{filter:saturate(.3);opacity:.65}
#pokeRoyale .pr-card.is-unaffordable .pr-cost{background:#3c4052;border-color:#7b829b}
#pokeRoyale .pr-bottomline{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#a4bec4;margin-top:6px;min-height:28px}
#pokeRoyale #prHint{color:#e7d49e;text-align:right;max-width:70%}
#pokeRoyale .pr-match-info{align-self:center;display:flex;flex-direction:column;gap:15px}
#pokeRoyale .pr-status-card{padding:20px 17px;background:#15313fbb;border:1px solid #4f707855;border-radius:13px}
#pokeRoyale .pr-status-card>strong{font-size:24px;display:block;color:#e8eddd;margin:8px 0 12px}
#pokeRoyale .pr-status-card p{font-size:12px;color:#b7cdd0;margin:10px 0;line-height:1.55}
#pokeRoyale .pr-status-card hr{border:0;border-top:1px solid #5a768455;margin:16px 0}
#pokeRoyale .pr-stat{display:flex;justify-content:space-between;gap:5px;margin-top:13px;font-size:11px;color:#b7cdd0}
#pokeRoyale .pr-stat strong{color:#f7e1a5;font-variant-numeric:tabular-nums}
#pokeRoyale .pr-keyhelp{font-size:10px;color:#86a5af;line-height:1.8;padding-left:12px}
#pokeRoyale #prRestart{background:#5f6742;border-color:#c5ce91;color:#f4f8e7;font-weight:750}
#pokeRoyale .pr-leave{position:absolute;inset:0;z-index:4;display:grid;place-items:center;background:#06111ee6;padding:20px}
#pokeRoyale .pr-leave>div{max-width:410px;border:1px solid #70878c;background:#173543;border-radius:18px;padding:28px;text-align:center}
#pokeRoyale .pr-leave h2{font-size:24px;margin-bottom:15px}
#pokeRoyale .pr-leave p{color:#b9cdd0;margin-bottom:22px}
#pokeRoyale .pr-leave button{margin:4px}
@media(max-width:1050px){#pokeRoyale .pr-layout{grid-template-columns:minmax(280px,550px) 180px;gap:25px}#pokeRoyale .pr-guide{display:none}}
@media(max-width:720px){#pokeRoyale .pr-header{padding:10px 12px;gap:10px;min-height:62px}#pokeRoyale h1{font-size:23px}#pokeRoyale .pr-header .pr-kicker{font-size:7px}#pokeRoyale .pr-session{display:none}#pokeRoyale #prReturn{font-size:10px;padding:8px 10px;min-height:40px}#pokeRoyale #prReturn span{display:none}#pokeRoyale .pr-layout{display:flex;flex-direction:column;padding:5px 10px max(6px,env(safe-area-inset-bottom));gap:0;overflow:auto}#pokeRoyale .pr-game{flex:1;gap:4px;min-height:330px}#pokeRoyale .pr-scoreboard{min-height:42px;max-width:500px}#pokeRoyale .pr-scoreboard strong{font-size:11px}#pokeRoyale .pr-match-clock strong{font-size:20px}#pokeRoyale .pr-match-clock small{font-size:7px}#pokeRoyale .pr-arena-wrap{max-height:calc(100dvh - 280px);min-height:120px}#pokeRoyale .pr-controls{max-width:500px}#pokeRoyale .pr-energy-row{margin:5px 0;gap:8px}#pokeRoyale .pr-hand{gap:6px}#pokeRoyale .pr-card{min-height:78px;padding-top:3px!important}#pokeRoyale .pr-card img{height:37px;width:48px}#pokeRoyale .pr-card strong{font-size:10px}#pokeRoyale .pr-card small{font-size:7px}#pokeRoyale .pr-card kbd{display:none}#pokeRoyale .pr-cost{width:17px;height:19px;font-size:10px;top:4px;left:4px}#pokeRoyale .pr-bottomline{font-size:9px;min-height:25px;margin-top:4px}#pokeRoyale .pr-match-info{display:contents}#pokeRoyale .pr-match-info .pr-status-card,#pokeRoyale .pr-keyhelp{display:none}#pokeRoyale #prRestart,#pokeRoyale #prCancelQueue{padding:6px 14px;min-height:38px;position:absolute;top:111px;left:50%;transform:translateX(-50%);z-index:3;font-size:11px}#pokeRoyale .pr-banner{padding:13px 10px}#pokeRoyale .pr-banner strong{font-size:20px}#pokeRoyale .pr-banner small{font-size:10px}}
@media(max-height:580px) and (min-width:721px){#pokeRoyale .pr-header{padding:7px 18px}#pokeRoyale h1{font-size:24px}#pokeRoyale .pr-layout{padding:6px 18px;grid-template-columns:minmax(440px,750px) 170px;gap:15px}#pokeRoyale .pr-guide{display:none}#pokeRoyale .pr-game{display:grid;grid-template-columns:minmax(170px,1fr) 240px;grid-template-rows:40px 1fr;align-items:center;gap:8px 16px}#pokeRoyale .pr-scoreboard{grid-column:1 / -1;max-width:none}#pokeRoyale .pr-arena-wrap{height:calc(100dvh - 118px);max-height:none;width:auto;justify-self:center;grid-column:1;grid-row:2}#pokeRoyale .pr-controls{grid-column:2;grid-row:2}#pokeRoyale .pr-hand{grid-template-columns:1fr 1fr}#pokeRoyale .pr-match-info .pr-status-card:first-child{display:none}#pokeRoyale .pr-bottomline{flex-direction:column}#pokeRoyale #prHint{max-width:100%;text-align:left}}
@media(prefers-reduced-motion:reduce){#pokeRoyale button{transition:none}}
#pokeRoyale #prSound{font-size:11px;min-height:38px;padding:7px 12px;margin-left:auto;background:#15333e}
@media(max-width:720px){#pokeRoyale #prSound{font-size:9px;padding:5px 7px;min-height:36px}#pokeRoyale .pr-header{gap:7px}}
