/* Arcade is opt-in; the academic page keeps its existing typography and width. */
.arcade-launch{font-size:13px!important;color:#526c50;margin-right:5px}
#arcade-dialog{width:min(890px,calc(100% - 28px));max-height:92vh;max-height:92dvh;overflow:auto;overscroll-behavior:contain;padding:25px;border:1px solid #d8ddd1;border-radius:12px;background:#fcfcf9;color:#253128;font:400 15px/1.45 Lato,Arial,sans-serif;box-shadow:0 20px 90px #0003}
#arcade-dialog::backdrop{background:#1c261d80}
#arcade-dialog [hidden]{display:none!important}
#arcade-dialog button,#arcade-dialog select{font:inherit}
#arcade-dialog button{cursor:pointer}
#arcade-dialog button:disabled{cursor:default;opacity:.48}
.arcade-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:21px}
.arcade-header h2{font:400 27px/1.25 Inter,Arial,sans-serif;letter-spacing:-.5px;margin:0 0 5px}
#arcade-count{font-size:12px;color:#7b8377}
.arcade-header-actions{display:flex;align-items:center;gap:14px}
#arcade-shelf{border:0;background:none;color:#5e7557;font-size:13px}
#close-arcade{width:36px;height:36px;border:0;background:none;font-size:27px!important;color:#7a8275}
.arcade-nav{display:flex;gap:4px;padding:4px;background:#ecefe7;border-radius:7px;margin-bottom:24px}
.arcade-nav button{flex:1;min-height:38px;padding:7px 10px;border:0;border-radius:5px;background:none;color:#6b7566;font-size:13px!important}
.arcade-nav button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #27332315;color:#2f4932}
.arcade-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.arcade-choices>button{text-align:left;border:1px solid #dfe3d6;border-radius:8px;background:#fff;padding:15px;transition:border-color .15s,transform .15s}
.arcade-choices>button:hover{border-color:#92a78b;transform:translateY(-3px)}
.choice-art{height:145px;background:#f2f0e6;border-radius:5px;display:flex;justify-content:center;align-items:center;position:relative;overflow:hidden;margin-bottom:18px}
.choice-art img{width:96px;height:96px;object-fit:contain}
.claw-choice{background:linear-gradient(#eaf0e7 75%,#d8e3d0 75%,#f1e9d6 80%)}
.claw-choice::before{content:'⌁';position:absolute;top:-23px;left:40%;font-size:65px;color:#91a588;transform:rotate(90deg)}
.battle-choice{background:#eff0e8;gap:0}
.battle-choice>span{font-size:11px;color:#96a18e}
.battle-choice img{width:85px;height:85px}
.arm-choice{background:repeating-linear-gradient(0deg,transparent 0,transparent 27px,#dfe6dc 28px),repeating-linear-gradient(90deg,#f0f3ed 0,#f0f3ed 27px,#dfe6dc 28px)}
.arm-symbol{font-size:86px;line-height:1;color:#8ba184;transform:rotate(-35deg)}
.choice-number{font-size:10px;letter-spacing:1px;color:#7f8c73}
.arcade-choices h3{font-size:19px;font-weight:700;margin:8px 0}
.arcade-choices p{font-size:13px;line-height:1.6;color:#77816e;min-height:64px}
.choice-play{display:block;margin-top:16px;font-size:13px;color:#4f7048}
.arcade-footnote{font-size:12px;color:#8a9184;text-align:center;margin:23px 8px 0}
.game-heading{margin-bottom:17px}
.game-heading h3{font-size:22px;font-weight:400;margin:0 0 5px}
.game-heading p{font-size:13px;color:#78816f}
.game-sprite{display:block;object-fit:contain;image-rendering:auto}
.game-primary,.game-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border-radius:5px;padding:8px 14px;font:400 13px/1.3 Lato,Arial,sans-serif;cursor:pointer}
.game-primary{border:1px solid #54734c;background:#587852;color:#fff}
.game-primary:hover{background:#46643f}
.game-secondary{border:1px solid #d5dccb;background:#fff;color:#607354}
.game-secondary:hover{border-color:#91a187;background:#f5f7f1}
.game-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.game-status{margin:16px 0 0;min-height:42px;font-size:13px;line-height:1.6;color:#506247;background:#edf2e7;border-radius:5px;padding:10px 13px}
.game-result{display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:#f2edce;border:1px solid #e0d9ac;border-radius:7px;padding:12px;margin-top:15px}
.game-result img{width:64px;height:64px}
.game-result>div{flex:1;min-width:130px}
.game-result strong{display:block;font-size:15px}
.game-result span{display:block;font-size:12px;color:#89815e;margin-top:4px}
.claw-machine{border:9px solid #b5c6a7;border-radius:12px;background:#dee9d9;box-shadow:inset 0 0 0 2px #f9fbf5;overflow:hidden;max-width:580px;margin:0 auto 18px}
.machine-marquee{display:flex;justify-content:space-between;align-items:center;background:#b5c6a7;padding:3px 12px 10px;font-size:11px;color:#42563b;letter-spacing:1.7px}
.machine-marquee span:last-child{letter-spacing:0;color:#627b57;font-size:11px}
.machine-window{height:255px;position:relative;overflow:hidden;background:linear-gradient(115deg,#fff8,#fff2 40%,#e7efdf 41%,#f3f5e9)}
.machine-rail{position:absolute;left:0;right:0;top:13%;height:6px;background:#b9c9b3;border-block:1px solid #91a58a}
.claw-assembly{position:absolute;width:54px;height:44px;transform:translateX(-50%);z-index:4;pointer-events:none}
.claw-cord{height:300px;position:absolute;bottom:28px;width:2px;background:#8a9d82;left:50%}
.claw-assembly svg{width:54px;height:44px;position:relative;fill:#d7dfce;stroke:#738d67;stroke-width:4;stroke-linejoin:round;stroke-linecap:round}
.claw-assembly.closed svg{transform:scaleX(.78)}
.carried-plush{position:absolute;left:50%;top:18px;transform:translateX(-50%)}
.carried-plush img{width:86px;height:86px}
.machine-plushes{position:absolute;inset:0}
.machine-plushes button{position:absolute;bottom:25px;transform:translateX(-50%);width:105px;padding:0 0 5px;border:1px solid transparent;background:none;border-radius:6px;z-index:2}
.machine-plushes button[aria-pressed=true]{background:#fff7;border-color:#88a376}
.machine-plushes button img{width:92px;height:92px;margin:auto}
.machine-plushes button span{display:block;font-size:11px;color:#637655}
.machine-plushes button:disabled{opacity:1!important}
.machine-floor{position:absolute;bottom:0;left:0;right:0;height:23px;background:#c4d3b8;border-top:5px solid #b8cba9}
.prize-chute{position:absolute;left:5px;bottom:2px;z-index:3;font-size:9px;color:#526a44;letter-spacing:1px}
.claw-controls{max-width:580px;margin:auto}
.aim-control{display:flex;align-items:center;gap:12px;color:#67785d;font-size:12px;margin-bottom:14px}
.aim-control input{flex:1;min-width:0;accent-color:#64865b;height:24px;cursor:pointer}
.aim-control output{width:25px;text-align:right;font-variant-numeric:tabular-nums}
.grip-label{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#7a846c;margin-bottom:5px}
.grip-meter{height:20px;border:1px solid #d5dcca;background:#e9ebdf;position:relative;border-radius:4px;overflow:hidden;margin-bottom:14px}
.grip-zone{position:absolute;top:0;bottom:0;background:#a1bc87;border-inline:1px solid #7b9c5d}
.grip-needle{position:absolute;top:0;bottom:0;width:3px;background:#314b30;left:0;transform:translateX(-50%)}
.keyboard-note{font-size:10px;color:#8c9482;margin-left:auto}
.level-select{display:flex;align-items:center;gap:10px;font-size:12px;color:#7b8470;margin-bottom:14px}
.level-select select{min-width:0;max-width:100%;border:1px solid #d7ddce;background:white;border-radius:5px;padding:8px;font-size:13px!important;color:#4b6044}
.battle-arena{display:grid;grid-template-columns:minmax(0,1fr) 50px minmax(0,1fr);align-items:center;background:linear-gradient(#f1f3eb 75%,#e7eddc 75%);border:1px solid #dee4d3;border-radius:8px;padding:12px 20px 20px}
.fighter{display:flex;align-items:center;flex-direction:column;gap:4px;text-align:center}
.fighter>img,.enemy-art>img{width:105px;height:105px}
.enemy-art{position:relative}
.enemy-art .support-sprite{position:absolute;width:60px;height:60px;right:-38px;bottom:-4px}
.fighter strong{font-size:15px;font-weight:700}
.fighter small{font-size:11px;color:#7a866d}
.battle-vs{font-size:11px;color:#8d9981;text-align:center}
.hp-bar{height:7px;border-radius:5px;background:#d3dac9;width:90%;max-width:170px;overflow:hidden;margin-top:5px}
.hp-bar span{display:block;height:100%;background:#819d61;transition:width .2s}
.type-label{font-size:10px;color:#77886b}
.battle-plan{display:grid;grid-template-columns:repeat(var(--turns,3),minmax(0,1fr));gap:6px;margin:12px 0}
.battle-plan>div{border:1px solid #e2e5da;padding:9px 10px;border-radius:5px;font-size:12px;background:#fff;color:#859179}
.battle-plan .current{border-color:#8ca775;background:#f2f6eb;color:#476436}
.battle-plan .past{opacity:.5}
.battle-plan small,.battle-plan span,.battle-plan strong{display:block}
.battle-plan small{font-size:9px;letter-spacing:1px;margin-bottom:4px}
.battle-plan strong{font-size:10px;font-weight:400;margin-top:3px}
.battle-team{display:flex;gap:7px;margin:12px 0}
.battle-team button{display:flex;align-items:center;gap:4px;text-align:left;flex:1;background:#fff;border:1px solid #d9e0cf;border-radius:5px;padding:5px 8px;font-size:12px!important;color:#576b4b}
.battle-team button img{width:45px;height:45px}
.battle-team small{display:block;font-size:10px;color:#8a957d;margin-top:3px}
.battle-actions{margin-top:14px}
.battle-rules{font-size:11px;color:#8b9381;line-height:1.6;margin-top:11px}
.game-hint{font-size:12px;color:#7f8c71;margin-top:12px}
.game-hint summary{cursor:pointer}
.game-hint p{margin:8px 0;color:#647d55}
.robot-workspace{max-width:590px;margin:auto;padding:10px;border-radius:8px;background:#e0e6d8;border:1px solid #d1dac7}
.robot-board{position:relative;display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(0,1fr));aspect-ratio:7/5;background:#f6f7f2;overflow:hidden;border:1px solid #c4cebb}
.board-cell{border-right:1px solid #e1e6d9;border-bottom:1px solid #e1e6d9}
.board-cell.blocked{background:repeating-linear-gradient(135deg,#bdc7b4 0,#bdc7b4 4px,#c8d0c2 4px,#c8d0c2 8px);box-shadow:inset 0 0 0 3px #a9b79c}
.board-cell.goal-cell{background:#e6efd8;border:2px dashed #91a979;position:relative}
.robot-toy{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2;border:2px solid #c1ad80;border-radius:6px;background:#f7eed9a8}
.robot-toy img{width:100%;height:100%;object-fit:contain}
.robot-toy.held{border-color:#91a779;background:#f4f8dfb0;box-shadow:0 4px 6px #5c775222}
.toy-anchor{position:absolute;top:5px;left:5px;width:8px;height:8px;border:1px solid #a5915c;border-radius:50%;background:#fff8}
.robot-linkage{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;overflow:visible;fill:#d8dfce;stroke:#8d9f7e;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
.robot-linkage path{fill:none}
.robot-gripper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px;border:3px solid #5e7952;border-top:0;display:flex;justify-content:center;align-items:center;border-radius:0 0 10px 10px;z-index:4;font-size:22px;color:#526f45;background:#f9fbf0b0}
.robot-gripper.holding{background:#b7cb8fa0;border-color:#557e3a}
.board-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:8px 0 15px;font-size:10px;color:#7f8972}
.goal-key{color:#6c8d51}
.arm-program{display:grid;grid-template-columns:175px minmax(0,1fr);gap:16px}
.command-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;align-content:start}
.command-pad button{min-height:37px;border:1px solid #d4ddc8;border-radius:5px;background:#fff;color:#617b4d;font-size:12px!important}
.command-pad button:hover{background:#eaf1df}
.command-pad [data-command=up]{grid-column:2;grid-row:1}
.command-pad [data-command=left]{grid-column:1;grid-row:2}
.command-pad [data-command=down]{grid-column:2;grid-row:2}
.command-pad [data-command=right]{grid-column:3;grid-row:2}
.command-pad [data-command=grab]{grid-column:1;grid-row:3}
.command-pad [data-command=rotate]{grid-column:2;grid-row:3}
.command-pad [data-command=release]{grid-column:3;grid-row:3}
.program-label{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.8px;color:#819171}
.program-queue{list-style:none;display:flex;flex-wrap:wrap;gap:4px;min-height:48px;max-height:110px;overflow:auto;background:#f0f3ea;border:1px solid #e2e7da;border-radius:5px;padding:8px;margin:5px 0 10px}
.program-queue li{display:flex;align-items:center;gap:4px;font-size:12px;background:#fff;border-radius:3px;padding:3px 6px;height:25px;color:#5c724e}
.program-queue li small{font-size:8px;color:#a5ae98}
.program-queue li.executing{background:#6d8c55;color:white;outline:1px solid #425e31}
.program-queue li.empty-program{background:none;font-size:11px;color:#98a18c}
.dex-bottom{flex-wrap:wrap}
@media(max-width:600px){
 #arcade-dialog{padding:16px;width:calc(100% - 20px);max-height:94dvh}
 .arcade-header{margin-bottom:16px}.arcade-header h2{font-size:23px}.arcade-header-actions{gap:6px}#arcade-shelf{font-size:11px!important}
 .arcade-nav{margin-bottom:18px;gap:2px}.arcade-nav button{font-size:11px!important;padding:6px 4px}
 .arcade-choices{grid-template-columns:minmax(0,1fr);gap:10px}
 .arcade-choices>button{display:grid;grid-template-columns:105px minmax(0,1fr);column-gap:14px;padding:12px;align-items:center}
 .choice-art{grid-column:1;grid-row:1/5;width:105px;height:125px;margin:0}.choice-art img{width:57px;height:70px}.choice-art .arm-symbol{font-size:45px}.battle-choice>span{display:none}
 .choice-number,.arcade-choices h3,.arcade-choices p,.choice-play{grid-column:2}.choice-number{font-size:8px}.arcade-choices h3{font-size:18px;margin:4px 0}.arcade-choices p{min-height:0;font-size:12px}.choice-play{margin-top:7px;font-size:11px}
 .game-heading h3{font-size:20px}.game-heading p{font-size:12px}
 .machine-window{height:225px}.machine-plushes button{width:80px}.machine-plushes button img{width:73px;height:82px}.machine-plushes button span{font-size:9px}.machine-marquee{font-size:9px;padding-inline:5px}
 .keyboard-note{display:none}.grip-label{font-size:10px}.game-primary,.game-secondary{font-size:12px!important;padding:8px 11px}
 .battle-arena{padding:8px 9px 12px;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr)}
 .fighter>img,.enemy-art>img{width:85px;height:85px}.fighter strong{font-size:13px}.type-label{font-size:9px}.enemy-art .support-sprite{width:40px;height:40px;right:-18px}
 .battle-plan>div{padding:7px;font-size:10px}.battle-plan strong{font-size:9px}.battle-team button{font-size:10px!important;padding:4px}.battle-team button img{width:36px;height:36px}.battle-team small{font-size:9px}
 .arm-program{grid-template-columns:120px minmax(0,1fr);gap:10px}.command-pad{gap:3px}.command-pad button{font-size:10px!important;min-height:35px}.program-queue{max-height:90px;padding:5px}.program-side .game-actions{gap:4px}.program-side .game-actions button{font-size:10px!important;min-height:32px;padding:5px 7px}
 .robot-gripper{width:22px;height:22px;border-width:2px;font-size:16px}.robot-workspace{padding:6px}.board-legend{font-size:8px;gap:8px}
 .game-result{gap:8px}.game-result img{width:45px;height:45px}.game-result strong{font-size:13px}.game-result span{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.arcade-choices>button,.hp-bar span{transition:none}}

.arcade-header{position:sticky;top:-25px;background:#fcfcf9;z-index:10;padding-block:8px;margin-top:-8px}
.robot-workspace{max-width:470px}
.robot-gripper,.robot-gripper.holding{background:transparent}
.robot-toy.placed{border-color:#7e9c61;background:#e5efcfb8}
.claw-choice::before{content:none}
.choice-claw{position:absolute;left:34%;top:0;width:50px;height:55px;stroke:#80966f;stroke-width:4;fill:#d9e3cc;stroke-linejoin:round;stroke-linecap:round}
.choice-arm{width:85px;height:100px;stroke:#8ca37b;stroke-width:7;fill:#e2ead8;stroke-linecap:round;stroke-linejoin:round}.choice-arm path{fill:none}
@media(max-width:600px){.arcade-header{top:-16px}.choice-claw{width:37px;height:44px;left:25%}.choice-arm{width:49px;height:80px}.robot-workspace{max-width:100%}}

/* Scale transparent sprite padding, preserving each plush’s proportions. */
.robot-toy img[src$="/eevee.png"]{transform:scale(1.634)}
.robot-toy img[src$="/rowlet.png"]{transform:scale(2.194)}
.robot-toy img[src$="/spheal.png"]{transform:scale(1.969)}
.robot-toy img[src$="/fuecoco.png"]{transform:scale(1.567)}
.robot-toy img[src$="/ditto.png"]{transform:scale(2.133)}
.robot-toy img[src$="/snorlax.png"]{transform:scale(1.146)}
.robot-toy img[src$="/fennekin.png"]{transform:scale(1.786)}
.robot-toy img[src$="/pikachu.png"]{transform:scale(1.670)}
.robot-toy img[src$="/furret.png"]{transform:scale(1.371)}
.robot-toy img[src$="/mimikyu.png"]{transform:scale(1.600)}
.robot-toy img[src$="/dondozo.png"]{transform:scale(0.873)}
.robot-toy img[src$="/tatsugiri.png"]{transform:scale(2.327)}
.robot-toy img[src$="/koraidon.png"]{transform:scale(0.817)}
.robot-toy img[src$="/serperior.png"]{transform:scale(0.997)}
.robot-toy img[src$="/charizard.png"]{transform:scale(0.960)}
.robot-toy img[src$="/comfey.png"]{transform:scale(1.371)}
.robot-toy img[src$="/swablu.png"]{transform:scale(1.097)}
.robot-toy img[src$="/shiny-rayquaza.png"]{transform:scale(0.863)}
.robot-toy img[src$="/mareep.png"]{transform:scale(1.873)}
.robot-toy img[src$="/teddiursa.png"]{transform:scale(2.133)}
.robot-toy img[src$="/kirlia.png"]{transform:scale(1.422)}
.robot-toy img[src$="/pachirisu.png"]{transform:scale(1.567)}
.robot-toy img[src$="/azumarill.png"]{transform:scale(1.302)}
.robot-toy img[src$="/scizor.png"]{transform:scale(1.052)}

.arm-target{margin-left:auto;font-size:11px;color:#718361}
@media(max-width:600px){.arm-target{font-size:10px}.level-select:has(.arm-target){flex-wrap:wrap;gap:6px}.level-select:has(.arm-target) select{max-width:calc(100% - 35px)}}

/* Four Poké Balls form the divider between the profile and publications. */
.arcade-divider{display:none;align-items:center;gap:22px;margin:-16px 0 32px}
.pokemon-ready .arcade-divider{display:flex}
.arcade-divider::before,.arcade-divider::after{content:'';height:1px;background:#e2e5dd;flex:1}
.ball-entries{display:flex;gap:14px;align-items:center;justify-content:center}
.ball-entry{display:flex;flex-direction:column;align-items:center;gap:0;min-width:76px;border:0;background:none;padding:5px 4px;color:#7e8875;cursor:pointer;border-radius:5px;font:400 10px/1.5 Lato,Arial,sans-serif}
.ball-entry img{display:block;width:48px;height:48px;object-fit:contain;image-rendering:auto;transition:transform .15s}
.ball-entry:hover img{transform:translateY(-4px) rotate(-8deg)}
.ball-entry:hover{color:#3c5735;background:#f3f6ee}
.inline-shelf{margin:0 auto 40px;width:min(100%,760px)}
.inline-shelf[hidden]{display:none}
.inline-shelf-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 10px;margin-bottom:12px}
.inline-shelf-heading h2{font:400 16px/1.4 Lato,Arial,sans-serif;margin:0;letter-spacing:0;color:#637159}
#inline-count{font-size:11px;color:#929b88;margin-left:8px}
.inline-shelf-actions{display:flex;align-items:center;gap:12px;margin-left:auto}
#inline-shelf-open,#inline-shelf-toggle{font:400 12px Lato,Arial,sans-serif;border:0;background:none;color:var(--link);padding:10px 4px;min-height:40px;cursor:pointer;border-radius:4px}
#inline-shelf-toggle{min-width:80px}
#inline-shelf-open:hover,#inline-shelf-toggle:hover{background:#f3f6ee;color:#3c5735}
#inline-shelf-open:focus-visible,#inline-shelf-toggle:focus-visible{outline:2px solid #81946b;outline-offset:2px}
#inline-shelf-content[hidden],#inline-shelf-open[hidden]{display:none}
.inline-cabinet{border:8px solid #f6f5ef;border-bottom:0;box-shadow:1px 3px 10px #353b351a;background:#e5e4db}
#inline-collection{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:70px;background:repeating-linear-gradient(to bottom,#cecec5 0,#e2e1d8 12px,#eeede5 61px,#f9f8f3 61px,#f9f8f3 68px,#d4d3c9 70px)}
#inline-collection .shelf-slot{height:61px;align-self:start}
#inline-collection .shelf-slot img{width:68px;height:58px;max-width:100%;object-fit:contain}
.undiscovered-art{filter:brightness(0)!important;opacity:.2}
#shelf-detail .undiscovered-art{opacity:.28}
.mini-cabinet{height:43px}
.arcade-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
.choice-art{height:125px}
.guess-choice{background:#ebe7f4;gap:20px}
.guess-choice img{filter:brightness(0);opacity:.65}
.guess-choice>span{font:400 40px Inter,Arial,sans-serif;color:#ac9bbb}
.guess-stage{position:relative;min-height:265px;background:radial-gradient(ellipse at 50% 45%,#f7f3fa 0,#eae4f0 75%);border:1px solid #ded6e5;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden;margin-bottom:20px}
.guess-stage img{width:220px;height:220px;object-fit:contain;image-rendering:auto;position:relative;z-index:1}
.guess-silhouette{filter:brightness(0);opacity:.8}
.guess-question{position:absolute;left:calc(50% + 80px);top:35%;font:400 60px/1 Inter,Arial,sans-serif;color:#b5a9c2;transform:rotate(12deg)}
.guess-reveal-name{min-height:25px;font-size:16px;color:#6c5a7d;margin-bottom:12px}
.guess-form{max-width:560px;margin:0 auto 12px}
.guess-form label{display:block;font-size:12px;color:#7e7386;margin-bottom:7px}
.guess-input-row{display:flex;gap:8px}
#guess-answer{min-width:0;flex:1;border:1px solid #cbd3c2;border-radius:5px;padding:11px 12px;background:#fff;font:400 16px Lato,"PingFang SC",Arial,sans-serif;color:#34442e}
#guess-answer:focus{outline:2px solid #8ba67e;outline-offset:1px}
#guess-answer[aria-invalid=true]{border-color:#b6796c}
.guess-actions{max-width:560px;margin:auto}
@media(max-width:600px){
 .arcade-divider{gap:8px;margin:-12px 0 28px}.ball-entries{gap:3px}.ball-entry{min-width:63px;padding-inline:1px;font-size:9px}.ball-entry img{width:44px;height:44px}
 .inline-shelf{margin-bottom:30px}.inline-shelf-heading h2{font-size:14px}#inline-count{margin-left:4px;font-size:10px}
 #inline-collection{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:60px;background:repeating-linear-gradient(to bottom,#cecec5 0,#e2e1d8 11px,#eeede5 53px,#f9f8f3 53px,#f9f8f3 58px,#d4d3c9 60px)}
 #inline-collection .shelf-slot{height:53px}#inline-collection .shelf-slot img{width:60px;height:50px}
 .arcade-choices{grid-template-columns:minmax(0,1fr)}
 .arcade-nav button{font-size:10px!important;padding-inline:3px}
 .guess-stage{min-height:220px}.guess-stage img{width:180px;height:180px}.guess-question{left:calc(50% + 60px);font-size:48px}
 .guess-input-row{gap:6px}.guess-input-row .game-primary{padding-inline:9px;font-size:11px!important}.guess-reveal-name{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.ball-entry img{transition:none}}

/* Three-dimensional pick and place. Scene assets load only after opening this game. */
#arcade-dialog[data-game=arm]{width:min(1060px,calc(100% - 28px))}
.arcade-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
.physics-stage{position:relative;height:465px;background:#eef0f1;border:1px solid #dbe0df;border-radius:9px;overflow:hidden;isolation:isolate}
.physics-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;outline-offset:-3px}
.physics-overlay,.physics-bottom{position:absolute;left:15px;right:15px;display:flex;justify-content:space-between;gap:12px;pointer-events:none;font-size:11px;color:#64726c}
.physics-overlay{top:14px}.physics-bottom{bottom:12px}.physics-badge{font-size:10px;letter-spacing:1.2px;font-weight:700}.physics-bottom span{background:#ffffffd9;padding:5px 9px;border-radius:4px}
.physics-toolbar{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:15px 0 12px}.physics-actions,.physics-views{display:flex;gap:6px;flex-wrap:wrap}
.physics-toolbar button{font-size:12px!important;padding:7px 10px}.physics-toolbar kbd{font:10px inherit;margin-left:8px;opacity:.55}
.physics-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;padding:14px 16px;background:#f0f2ec;border:1px solid #e1e5db;border-radius:7px}
.physics-controls label{font-size:12px;color:#62705c;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.physics-controls input{width:100%;height:20px;accent-color:#577657;cursor:pointer}.physics-controls output{margin-left:auto;font-variant-numeric:tabular-nums}
.physics-help{font-size:12px;line-height:1.6;color:#7b8476;margin:10px 0}.physics-rewards{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.physics-rewards span{display:flex;align-items:center;gap:5px;font-size:12px;background:#e8f0e0;border-radius:5px;padding:0 10px 0 4px}.physics-rewards img{width:36px;height:36px;object-fit:contain;image-rendering:auto}
.guess-timer{display:flex;align-items:center;gap:12px;margin:0 0 14px}.guess-time-track{height:5px;background:#e6e8e2;flex:1;overflow:hidden;border-radius:4px}.guess-time-track span{display:block;width:100%;height:100%;background:#6b8f68;transform-origin:left center;will-change:transform}.guess-timer>span{font-size:13px;font-variant-numeric:tabular-nums;color:#63725b;min-width:39px;text-align:right}.guess-timer.urgent .guess-time-track span{background:#b6634c}.guess-timer.urgent>span{color:#ab5944}
@media(max-width:600px){.arcade-choices{grid-template-columns:1fr}.physics-stage{height:350px}.physics-controls{gap:10px;padding:10px}.physics-toolbar{gap:8px}.physics-toolbar kbd{display:none}.physics-overlay,.physics-bottom{left:8px;right:8px;font-size:10px}.physics-badge{font-size:8px}.physics-bottom span{max-width:75%}.physics-help{font-size:11px}.physics-controls label{font-size:10px}.physics-toolbar button{font-size:11px!important;min-height:38px}.physics-stage canvas{outline:none}}
/* A square image box preserves each menu icon's aspect ratio and shelf alignment. */
.shelf-slot img{width:72px;height:72px}
#inline-collection .shelf-slot img{width:58px;height:58px}
@media(max-width:600px){.shelf-slot img{width:64px;height:64px}#inline-collection .shelf-slot img{width:50px;height:50px}}

/* Synchronized side and tool-mounted views; no pointer steering on either camera. */
.physics-stage.dual-camera{height:365px;background:#e9eded}
.dual-camera canvas{position:absolute;inset:0;cursor:default;touch-action:pan-y}
.camera-panels{position:absolute;inset:0;display:grid;grid-template-columns:1.2fr 1fr;pointer-events:none}
.camera-panel{position:relative;min-width:0}.camera-panel+ .camera-panel{border-left:2px solid #fcfcf9}
.camera-label{position:absolute;top:12px;left:12px;background:#ffffffd9;border:1px solid #d9e0dd;border-radius:4px;padding:4px 8px;font-size:10px;letter-spacing:1px;color:#4c6358}
.wrist-crosshair{position:absolute;left:50%;top:50%;width:18px;height:18px;transform:translate(-50%,-50%);opacity:.65}.wrist-crosshair::before,.wrist-crosshair::after{content:'';position:absolute;background:#3e8879}.wrist-crosshair::before{left:8px;top:0;width:2px;height:18px}.wrist-crosshair::after{top:8px;left:0;height:2px;width:18px}
.dual-camera>.physics-loading{position:absolute;left:16px;bottom:14px;font-size:12px}
.physics-readout{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:10px 2px;color:#6d796f;font-size:12px;font-variant-numeric:tabular-nums}.physics-readout #physics-phase{color:#46654c}
.robot-console{display:flex;gap:24px;justify-content:center;align-items:center;border:1px solid #e1e5db;border-radius:8px;padding:14px;background:#f1f3ee}
.robot-dpad{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,42px);gap:3px;touch-action:none}
.robot-dpad button,.robot-tool-controls button{border:1px solid #cbd6c7;background:#fff;border-radius:6px;color:#4c6850;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;min-height:40px}
.robot-dpad button{font-size:21px!important}.robot-dpad .pad-up{grid-area:1/2}.robot-dpad .pad-left{grid-area:2/1}.robot-dpad .pad-right{grid-area:2/3}.robot-dpad .pad-down{grid-area:3/2}.pad-center{grid-area:2/2;display:grid;place-items:center;font-size:8px;letter-spacing:1px;color:#8b9786}
.robot-tool-controls{display:grid;gap:6px;min-width:225px}.robot-button-pair{display:grid;grid-template-columns:1fr 1fr;gap:6px}.robot-tool-controls button{font-size:12px!important;padding:7px 11px}.robot-tool-controls .game-primary{background:#587852;color:white}.robot-console button.pressed{background:#d6e2ce;box-shadow:inset 0 1px 4px #384b3422}.robot-tool-controls kbd{font:10px Lato,Arial,sans-serif;opacity:.6;margin-left:8px}
.physics-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:6px}.physics-footer .game-secondary{font-size:11px;white-space:nowrap;padding:6px 9px}.physics-footer .physics-help{max-width:650px;margin:6px 0}
@media(max-width:600px){.physics-stage.dual-camera{height:320px}.camera-panels{grid-template-columns:1fr;grid-template-rows:1fr 1fr}.camera-panel+.camera-panel{border-left:0;border-top:2px solid #fcfcf9}.camera-label{top:7px;left:8px;font-size:8px;padding:3px 5px}.physics-readout{font-size:10px;gap:6px}.robot-console{padding:9px;gap:12px}.robot-dpad{grid-template-columns:repeat(3,36px);grid-template-rows:repeat(3,38px);gap:2px}.robot-tool-controls{min-width:0;flex:1;gap:5px}.robot-tool-controls button{font-size:11px!important;padding:6px 4px;min-height:38px}.robot-tool-controls kbd{display:none}.robot-button-pair{gap:4px}.robot-button-pair span{font-size:10px}.physics-footer{align-items:flex-start}.physics-footer .physics-help{font-size:10px}.physics-footer .game-secondary{font-size:10px}.robot-console button{outline-offset:1px}}
@media(max-width:600px){
 #arcade-dialog[data-game=arm]{width:calc(100% - 16px);max-height:96dvh;padding:12px}
 #arcade-dialog[data-game=arm] .arcade-header{margin-bottom:10px;gap:6px}
 #arcade-dialog[data-game=arm] .arcade-header h2{font-size:19px;white-space:nowrap}
 #arcade-dialog[data-game=arm] .arcade-header-actions{gap:2px}
 #arcade-dialog[data-game=arm] #arcade-shelf{font-size:10px;padding:4px}
 #arcade-dialog[data-game=arm] #close-arcade{width:30px}
 #arcade-dialog[data-game=arm] .arcade-nav{margin-bottom:10px;gap:2px}
 #arcade-dialog[data-game=arm] .game-heading{margin-bottom:8px}
 #arcade-dialog[data-game=arm] .game-heading h3{font-size:18px;margin:0}
 #arcade-dialog[data-game=arm] .game-heading p{display:none}
 .physics-stage.dual-camera{height:260px}
}
/* National Dex shelf battles */
.ps-lobby-top,.ps-battle-top,.ps-match-row,.ps-submit-row,.ps-move-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ps-lobby-top{font-size:10px;letter-spacing:.7px;color:#818779;margin-bottom:10px}.ps-lobby-top span:last-child{letter-spacing:0}
.ps-roster{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:6px;max-height:232px;overflow:auto;padding:3px;margin-bottom:18px}
.ps-pick{display:flex;flex-direction:column;align-items:center;justify-content:end;border:1px solid #e3e6dc;border-radius:7px;background:#fafbf7;padding:6px 3px;color:#526248;min-height:99px}
.ps-pick img{width:52px;height:52px;object-fit:contain}.ps-pick span{font-size:10px;line-height:1.25;text-align:center}.ps-pick small{font-size:9px;color:#8a9480;margin-top:4px}
.ps-pick[aria-pressed=true]{border-color:#6f9061;background:#eef3e5;box-shadow:0 0 0 1px #6f9061}.ps-pick:focus-visible{outline:2px solid #66825a;outline-offset:2px}
.ps-preset{background:#f8f9f3;border:1px solid #e2e6d8;border-radius:8px;padding:17px}.ps-preset-title{display:flex;align-items:center;gap:12px}.ps-preset-title img{width:64px;height:64px;object-fit:contain}.ps-preset-title h4{font-size:17px;font-weight:600;margin:0 0 6px}.ps-preset-title span{font-size:11px;color:#7b8571}.ps-tier{padding:3px 7px;border-radius:4px;background:#e5ebda;color:#536d46!important}
.ps-preset p{font-size:12px;line-height:1.6;color:#6c7660;margin:12px 0}.ps-build-meta{display:flex;gap:6px 16px;flex-wrap:wrap;font-size:11px}.ps-build-meta b{font-weight:500;color:#8a937f;margin-right:4px}
.ps-preset-moves{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0 7px}.ps-preset-moves span{font-size:11px;padding:5px 9px;border-radius:4px;background:var(--move-bg,#eeeee5);color:var(--move-fg,#5f6954)}.ps-evs{font-size:10px;color:#8b9282}
.ps-match-row{border-top:1px solid #e1e6d5;padding-top:14px;margin-top:14px}.ps-match-row b{display:block;font-weight:500;font-size:12px}.ps-match-row small{display:block;font-size:10px;color:#8b937d;margin-top:4px}.ps-rules{margin-top:16px;font-size:11px;line-height:1.7;color:#7f8971}.ps-rules summary{cursor:pointer}.ps-rules p{margin:9px 0}.ps-rules a{color:#66835a}
.ps-loading,.ps-empty{text-align:center;background:#f6f8f0;padding:45px 22px;border-radius:8px;font-size:14px;color:#66795a}.ps-loading small{display:block;margin-top:10px;font-size:11px;color:#8d9783}.ps-empty h4{font-weight:500}.ps-empty p{font-size:12px;line-height:1.6}
.ps-form-label{display:flex;align-items:center;gap:10px;font-size:11px;margin-top:12px}.ps-form-label select,.ps-target-label select{font:inherit;border:1px solid #d5ddca;border-radius:4px;background:white;color:#5d7051;padding:7px;max-width:100%;min-width:0}
.ps-battle-top{font-size:11px;color:#8a927e;margin-bottom:12px}.ps-battle-top b{margin-left:8px;color:#5c7350;font-weight:500}.ps-back{border:0;background:none;color:#708561;padding:6px 0;font-size:12px}
.ps-arena{position:relative;overflow:hidden;background:linear-gradient(160deg,#eef3e6,#f9faf4 42%,#edf0df);border:1px solid #dfe6d4;border-radius:9px;padding:26px 20px 16px}.ps-field-label{position:absolute;top:9px;left:12px;font-size:9px;color:#8e9a7d;letter-spacing:.4px}
.ps-side{display:flex;gap:12px}.ps-enemy-side{justify-content:flex-end}.ps-player-side{justify-content:flex-start;margin-top:-105px;pointer-events:none}.ps-fighter{width:43%;max-width:260px;min-width:0;text-align:center;position:relative;z-index:1}.ps-fighter-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;text-align:left}.ps-fighter-label strong{font-size:12px;font-weight:600}.ps-fighter-label small{font-size:9px;white-space:nowrap;color:#919a83}
.ps-health{display:flex;gap:7px;align-items:center;margin:6px 0}.ps-health>div{background:#dce4d1;border-radius:10px;height:7px;overflow:hidden;flex:1}.ps-health span{display:block;height:100%;transition:width .4s}.ps-health small{font-size:9px;font-variant-numeric:tabular-nums;min-width:33px;color:#788668;text-align:right}.ps-pokemon-art{position:relative;height:115px;display:flex;align-items:center;justify-content:center}.ps-pokemon-art::before{content:'';position:absolute;bottom:1px;left:12%;right:12%;height:21px;border-radius:50%;background:#bccba359}.ps-pokemon-art img{width:110px;height:110px;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 3px 1px #9da68b25);transition:opacity .2s}.ps-pokemon-art img.ps-mystery{filter:brightness(0) opacity(.55)}.ps-you .ps-pokemon-art img{transform:scaleX(-1)}
.ps-arena-line{height:1px}.ps-status-row{display:flex;justify-content:center;gap:3px;flex-wrap:wrap;margin-top:5px;min-height:15px}.ps-status-row span{font-size:8px;border-radius:3px;padding:2px 4px;background:#e0e9d7;color:#628052}.ps-status-row .negative,.ps-status{background:#ede2d1!important;color:#9a7447!important}.ps-held{display:block;font-size:9px;color:#8b957d;margin-top:5px}.is-fainted{opacity:.38}.is-fainted .ps-pokemon-art img{transform:rotate(-12deg)}.is-commanding .ps-pokemon-art img{width:45px;height:45px;opacity:.45}.ps-command-badge{position:absolute;bottom:17px;font-size:9px;padding:3px 6px;border-radius:3px;background:#f4e8cc;color:#9e8147;z-index:2}
.ps-doubles .ps-player-side{margin-top:7px}.ps-doubles .ps-fighter{width:48%;max-width:none}.ps-doubles .ps-pokemon-art{height:75px}.ps-doubles .ps-pokemon-art img{width:75px;height:75px}.ps-doubles .is-commanding .ps-pokemon-art img{width:35px;height:35px}
.ps-log{background:#fbfcf8;border:1px solid #e1e6d8;border-radius:6px;margin:12px 0;max-height:116px;overflow:auto;padding:8px 12px;display:flex;flex-direction:column-reverse}.ps-log p{font-size:11px;line-height:1.6;color:#748268;margin:1px 0;flex-shrink:0}.ps-log{flex-direction:column}.ps-log p:last-child{font-weight:500;color:#506546}
.ps-move-heading{margin:13px 0 8px;font-size:12px}.ps-move-heading strong{font-weight:500}.ps-move-heading label{font-size:10px;color:#7c8e6a;display:flex;align-items:center;gap:4px}.ps-move-heading input{accent-color:#799766}.ps-target-label{display:flex;align-items:center;gap:7px;margin-bottom:8px;font-size:10px;color:#839175}
.ps-moves{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ps-moves button{text-align:left;padding:10px 12px;border:1px solid transparent;border-radius:6px;background:var(--move-bg,#eee);color:var(--move-fg,#666);min-height:75px}.ps-moves button strong{font-size:13px;font-weight:600;display:block}.ps-moves button span{display:block;font-size:10px;margin:4px 0}.ps-moves button small{display:block;font-size:9px;opacity:.8}.ps-moves button[aria-pressed=true]{border-color:currentColor;box-shadow:inset 0 0 0 1px currentColor}.ps-moves button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.ps-move-description{font-size:10px;line-height:1.5;color:#7c876f;min-height:28px;margin:7px 0}.ps-submit-row{margin:11px 0}.ps-submit-row p{font-size:11px;color:#7c8870}.ps-full-log{font-size:10px;color:#8c9580;margin-top:12px}.ps-full-log summary{cursor:pointer}.ps-full-log>div{max-height:230px;overflow:auto;padding:10px;background:#f8faf3}.ps-full-log p{margin:3px 0}.ps-outcome{padding:16px;text-align:center;background:#f0f4e8;border:1px solid #dce6cf;border-radius:6px;margin-top:10px}.ps-outcome h4{font-size:20px;font-weight:500;margin:0 0 7px}.ps-outcome p{font-size:12px;margin:0 0 15px;color:#77876a}
[data-type=Normal]{--move-bg:#efeee5;--move-fg:#77745d}[data-type=Fire]{--move-bg:#fae8dd;--move-fg:#ab6946}[data-type=Water]{--move-bg:#e2edf6;--move-fg:#4f7c9f}[data-type=Grass]{--move-bg:#e6efda;--move-fg:#62854b}[data-type=Electric]{--move-bg:#f7efcd;--move-fg:#9a883f}[data-type=Ice]{--move-bg:#dff1ee;--move-fg:#4e8b89}[data-type=Fighting]{--move-bg:#f1dfd9;--move-fg:#a96859}[data-type=Poison]{--move-bg:#eee0f0;--move-fg:#93639c}[data-type=Ground]{--move-bg:#efe6ce;--move-fg:#9b8555}[data-type=Flying]{--move-bg:#e7e7f3;--move-fg:#7879a0}[data-type=Psychic]{--move-bg:#f5e1e8;--move-fg:#ac6b86}[data-type=Bug]{--move-bg:#ecedcf;--move-fg:#8b914c}[data-type=Rock]{--move-bg:#eae5d1;--move-fg:#8b8050}[data-type=Ghost]{--move-bg:#e7e1ee;--move-fg:#807095}[data-type=Dragon]{--move-bg:#e4e1f4;--move-fg:#7a70ac}[data-type=Dark]{--move-bg:#e5e2dd;--move-fg:#7e7669}[data-type=Steel]{--move-bg:#e5e9ec;--move-fg:#74828e}[data-type=Fairy]{--move-bg:#f5e4ee;--move-fg:#aa7c99}
@media(max-width:600px){.ps-roster{grid-template-columns:repeat(4,minmax(0,1fr));max-height:212px}.ps-pick{min-height:94px}.ps-preset{padding:12px}.ps-match-row{flex-wrap:wrap}.ps-match-row button{width:100%}.ps-arena{padding:28px 10px 12px}.ps-fighter{width:46%}.ps-fighter-label{flex-wrap:wrap;gap:2px}.ps-fighter-label strong{font-size:10px}.ps-pokemon-art{height:92px}.ps-pokemon-art img{height:87px;width:87px}.ps-player-side{margin-top:-45px}.ps-doubles .ps-player-side{margin-top:10px}.ps-held{font-size:8px}.ps-moves button{padding:9px}.ps-moves button strong{font-size:12px}.ps-moves button small{font-size:8px}.ps-form-label{flex-wrap:wrap}.ps-battle-top{font-size:9px}.ps-submit-row p{font-size:10px}.ps-submit-row button{white-space:nowrap}.ps-log{max-height:100px}}
@media(prefers-reduced-motion:reduce){.ps-health span,.ps-pokemon-art img{transition:none}}
/* An isolated Showdown battle window; the surrounding homepage remains unchanged. */
.ps-embedded-window{border:1px solid #9daab3;border-radius:5px;overflow:hidden;background:#f4f4f4;font-family:Verdana,Arial,sans-serif;box-shadow:0 2px 5px #00000012}.ps-window-title{height:29px;background:linear-gradient(#edf0f3,#d9dfe5);border-bottom:1px solid #aab4be;display:flex;align-items:center;justify-content:space-between;padding:0 11px;color:#3d5266;font:bold 12px Arial,sans-serif}.ps-window-title small{font:9px Arial,sans-serif;letter-spacing:1px;color:#7b8995}#ps-window{display:block;width:100%;height:500px;border:0;background:#fff}.ps-embedded-window #ps-controls{padding:0 12px 12px;border-top:1px solid #adb7bf}.ps-embedded-window .ps-moves button{border:1px solid #999;border-radius:5px;background:linear-gradient(#fff9,transparent),var(--move-bg);box-shadow:inset 0 1px 0 #fffc;color:#222;min-height:63px;padding:8px 10px;font-family:Verdana,Arial,sans-serif}.ps-embedded-window .ps-moves button[aria-pressed=true]{outline:2px solid #4e83b1;outline-offset:1px;border-color:#598ab5;box-shadow:none}.ps-embedded-window .ps-moves button strong{font-size:12px}.ps-embedded-window .ps-moves button span{font-size:9px}.ps-embedded-window .ps-move-heading{color:#333;font:12px Verdana,sans-serif}.ps-embedded-window .game-primary{background:linear-gradient(#d7e6f3,#b3cde2);border:1px solid #6a91b2;color:#233d52;border-radius:4px}.ps-render-status{font-size:10px;color:#7f8d77;margin:8px 0}.ps-embedded-window .ps-outcome{margin-top:10px}

/* Challenge selection and the compact local team builder. */
.ps-set-editor{margin:14px 0;border-top:1px solid #d7dcd9;padding-top:12px}.ps-set-editor summary,.ps-build-sources summary{cursor:pointer;color:#365d75;font-size:13px}.ps-editor-note{font-size:12px!important;color:#66716e}.ps-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ps-editor-grid label,.ps-form-label,.ps-challenge-picker>label{font-size:12px;font-weight:600;color:#43534d}.ps-editor-grid select,.ps-editor-grid input,.ps-challenge-picker>select,.ps-form-label select{width:100%;padding:8px;border:1px solid #b9c5bf;border-radius:5px;background:#fff;color:#27362e;font:inherit;min-width:0}.ps-editor-grid label{display:flex;flex-direction:column;gap:4px;min-width:0}.ps-stats-editor{display:grid;grid-template-columns:65px 1fr 1fr;gap:6px;align-items:center;max-width:360px;margin:14px 0;font-size:12px}.ps-stats-editor input{width:100%;min-width:0;border:1px solid #bac5c0;border-radius:4px;padding:5px 8px;font:inherit}.ps-editor-actions{display:flex;gap:8px;flex-wrap:wrap}#ps-set-status{white-space:pre-line;font-size:13px;color:#80402d}#ps-lobby-status{font-size:12px;color:#426550}.ps-challenge-picker{border-top:1px solid #d7dcd9;margin-top:16px;padding-top:14px}.ps-challenge-picker>select{margin-top:6px;font-size:13px}#ps-opponent-preview{display:grid;grid-template-columns:72px 1fr;align-items:center;gap:10px;margin-top:8px}#ps-opponent-preview>img{width:72px;height:72px;object-fit:contain}#ps-opponent-preview p{margin:3px 0;font-size:12px}#ps-opponent-preview small{font-size:12px;color:#69736d}.ps-undiscovered{filter:brightness(0);opacity:.6}.ps-build-sources,#ps-opponent-preview>.ps-form-label{grid-column:1/-1}.ps-build-sources p{line-height:1.6;overflow-wrap:anywhere}.ps-build-sources a{color:#38627e}#ps-lobby-status:empty{display:none}@media(max-width:500px){.ps-editor-grid{gap:8px}.ps-match-row{align-items:stretch;flex-direction:column}.ps-match-row button{width:100%}.ps-preset{padding:13px}.ps-stats-editor{grid-template-columns:45px 1fr 1fr}}
.ps-challenge-picker h5{margin:0;font-size:14px}.ps-cabinet-help{font-size:12px!important;color:#66746a;margin:5px 0 12px!important}.ps-target-slots{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));padding:0 7px;background:repeating-linear-gradient(to bottom,#f3eee5 0px,#f3eee5 88px,#a48462 89px,#c9ae8a 94px)}.ps-target-slot{height:94px;min-width:0;padding:4px 2px 17px;position:relative;border-radius:4px}.ps-target-slot img{width:100%;height:65px;object-fit:contain}.ps-target-slot small{position:absolute;bottom:8px;left:0;right:0;text-align:center;font-size:9px;color:#596047}.ps-target-slot[aria-pressed=true]{outline:2px solid #647c50;outline-offset:-3px;background:#dbe5c97a}.ps-target-slot:disabled{opacity:.2;cursor:not-allowed}.ps-target-slot .undiscovered-art{filter:brightness(0);opacity:.75}@media(max-width:600px){.ps-target-slots{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Scroll the entire shelf surface, including its horizontal boards. */
.ps-target-scroll{max-height:310px;overflow:auto;overscroll-behavior:contain}.ps-target-slots{max-height:none;overflow:visible;grid-auto-rows:94px}@media(max-width:600px){.ps-target-scroll{max-height:285px}}
.ps-target-summary{display:flex;align-items:center;gap:12px;padding:12px;background:#f0f2eb;border:1px solid #d9dfd1;border-radius:6px;margin-bottom:10px}.ps-target-summary img{width:64px;height:64px;object-fit:contain}.ps-target-summary>div{flex:1;font-size:13px}.ps-target-summary small{display:block;font-size:11px;color:#6f7c64;margin-top:4px}.ps-target-summary button{font-size:11px!important}.ps-partner-prompt{font-size:13px;color:#6c785f;margin:16px 0}#ps-target-step>#ps-opponent-preview{margin:0 0 22px;font-size:12px}#ps-target-step>#ps-opponent-preview>img,#ps-target-step>#ps-opponent-preview>div{display:none}.ps-challenge-picker{margin-top:0;border-top:0}

/* Immediate move selection, with a prominent pre-move Mega toggle. */
.ps-embedded-window .ps-mega-option{display:flex;align-items:center;gap:12px;min-height:58px;box-sizing:border-box;padding:10px 14px;margin:0 0 12px;border:1px solid #9cabc4;border-radius:6px;background:#edf1fa;color:#344461;font:600 13px Verdana,Arial,sans-serif;cursor:pointer;transition:background .15s,border-color .15s}
.ps-mega-option input{width:22px;height:22px;margin:0;accent-color:#6556a5;cursor:pointer}
.ps-mega-option small{display:block;font-size:10px;font-weight:400;margin-top:4px;color:#647187}
.ps-mega-option:has(input:checked){background:#e9e4f6;border-color:#9180b9}
.ps-mega-option:focus-within{outline:2px solid #627da9;outline-offset:2px}
.ps-embedded-window .ps-moves button{transition:filter .12s,box-shadow .12s,transform .12s}
.ps-embedded-window .ps-moves button:focus-visible{outline:2px solid #4e83b1;outline-offset:2px}
@media(hover:hover){.ps-embedded-window .ps-moves button:not(:disabled):hover{filter:brightness(1.06);border-color:#537c9f;box-shadow:0 2px 6px #243c5b30;transform:translateY(-1px)}.ps-mega-option:hover{border-color:#70609c;background:#ece7f7}}
.ps-embedded-window .ps-moves button:not(:disabled):active{transform:translateY(0);filter:brightness(.97)}
.ps-embedded-window .ps-moves button:disabled{cursor:wait;opacity:.65}

.shelf-story,.game-collection-intro{font:400 13px/1.65 Lato,Arial,sans-serif;color:#727b6c;margin:0 0 18px}.shelf-story{max-width:690px}

.ps-stat-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:18px;font-size:12px;color:#52645b}
.ps-stat-preview-heading label{display:flex;align-items:center;gap:7px}.ps-stat-preview-heading select{max-width:175px;padding:4px;border:1px solid #bac5c0;border-radius:4px;background:white;font-size:12px!important}
.ps-stats-editor{grid-template-columns:48px minmax(100px,1fr) 50px 56px;gap:9px;max-width:none;margin:10px 0}.ps-stats-editor input{box-sizing:border-box;padding:5px;min-height:30px}.ps-ev-control{display:grid;grid-template-columns:minmax(40px,1fr) 52px;gap:8px;align-items:center}.ps-stats-editor input[type=range]{width:100%;height:28px;padding:0;border:0;accent-color:#66835b;cursor:ew-resize}.ps-stats-editor output{font-weight:700;font-size:14px;font-variant-numeric:tabular-nums;text-align:right}.ps-stats-editor [data-nature=up]{color:#277447}.ps-stats-editor [data-nature=down]{color:#ad493e}.ps-stat-note{font-size:11px;color:#7a8578;margin:0 0 12px}
@media(max-width:500px){.ps-stats-editor{grid-template-columns:35px minmax(95px,1fr) 42px 42px;gap:5px}.ps-ev-control{grid-template-columns:minmax(35px,1fr) 44px;gap:4px}.ps-stats-editor input{font-size:12px}.ps-stats-editor output{font-size:13px}.ps-stat-preview-heading{font-size:11px}}
.home-cat-label{margin:14px 0 4px;font:400 11px/1.4 Lato,Arial,sans-serif;letter-spacing:.04em;color:#8a8f80;text-align:center}
.home-cat-shelf{background:linear-gradient(180deg,#d9cfc0 0,#e9e1d4 13px,#f3eee5 78%);border-bottom-color:#fbf8f2}
#inline-collection .home-cat-slot{background:#f3eee57a;border-radius:4px}
.footer-actions{display:inline-flex;align-items:center;gap:14px}
