.game-fullscreen-button{box-sizing:border-box;display:grid;place-items:center;min-width:30px;width:30px;height:30px;min-height:30px;padding:5px;border-radius:8px;background:var(--surface,#fff);color:var(--muted,#667b6d)}
.game-fullscreen-button svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.game-fullscreen-button:focus-visible{outline:2px solid #428bd4;outline-offset:2px}
#sideRail>.account-hud>.game-fullscreen-button{order:-1;flex:none;width:34px;min-width:34px;height:34px;min-height:34px;padding:7px;border-radius:50%}
body[data-game-fullscreen=true]{background:var(--page,#fff)}
body[data-game-fullscreen=true] #sideRail,body[data-game-fullscreen=true] #developerPanel,body[data-game-fullscreen=true] #levelEditorSidebar,body[data-game-fullscreen=true] #arena>#controls,body[data-game-fullscreen=true] #arena>#home{display:none!important}
body[data-game-fullscreen=true] #arena,body[data-game-fullscreen=true][data-mobile-layout=true] #arena{right:auto!important;bottom:auto!important;top:var(--fitted-top,90px)!important;box-sizing:border-box;border:1px solid var(--edge,#dce4de);border-radius:12px}
body[data-game-fullscreen=true] #playHeader{position:fixed;left:20px;right:20px;top:8px;display:block;min-height:0;padding:0;z-index:10}
body[data-game-fullscreen=true] #arena #playHeader>.deaths-hud{position:absolute;left:0;top:0;display:grid;grid-template-columns:repeat(4,max-content) 44px 48px;grid-template-rows:auto auto;align-items:center;gap:3.4px 4px;width:max-content!important;min-height:0;zoom:1}
body[data-game-fullscreen=true] #arena #playHeader .experience-row{grid-column:1/5;grid-template-columns:minmax(0,1fr) 22px;gap:5px}
body[data-game-fullscreen=true] #arena #playHeader .experience-hud{grid-template-columns:22px minmax(0,1fr);gap:6px;padding-bottom:0}
body[data-game-fullscreen=true] #arena #playHeader .experience-level{width:18.7px;height:18.7px;font-size:10px}
body[data-game-fullscreen=true] #arena #playHeader .experience-meter>span{font-size:8px;margin-bottom:2px}
body[data-game-fullscreen=true] #arena #playHeader .experience-track{height:4px}
body[data-game-fullscreen=true] #arena #playHeader .notebook-button{width:18.7px;height:18.7px;padding:2px;border-radius:6px;justify-self:end}
body[data-game-fullscreen=true] #arena #playHeader .notebook-button svg{width:13px;height:13px}
body[data-game-fullscreen=true] #arena #playHeader .notebook-badge{width:12px;height:12px;font-size:7px;top:-3px;right:-3px}
body[data-game-fullscreen=true] #arena #playHeader .death-theme-row,body[data-game-fullscreen=true] #arena #playHeader .run-actions{display:contents}
body[data-game-fullscreen=true] #arena #playHeader .death-theme-row>.death-count{width:auto;min-width:0;min-height:21.25px;padding:1px 4px;gap:3px;border-radius:6px;font-size:9px}
body[data-game-fullscreen=true] #arena #playHeader .death-count svg{width:13px;height:13px}
body[data-game-fullscreen=true] #arena #playHeader #livesRemaining,body[data-game-fullscreen=true] #arena #playHeader #deaths{font-size:12px}
body[data-game-fullscreen=true] #arena #playHeader .run-actions>.quiet{width:auto;min-width:0;min-height:21.25px;padding:1px 4px;border-radius:6px;font-size:9px}
body[data-game-fullscreen=true] #arena #playHeader>.hud{position:absolute!important;left:50%;top:0;transform:translateX(-50%)!important;grid-template-columns:minmax(99px,1fr) max-content;width:225px;min-width:225px;max-width:none;height:61.2px;min-height:61.2px;gap:3.4px 6px;padding:4.5px 8px;border-radius:11px}
body[data-game-fullscreen=true] #arena #playHeader .hud h1{font-size:7px;margin-bottom:2.55px}
body[data-game-fullscreen=true] #arena #playHeader .hud .level{font-size:17px}
body[data-game-fullscreen=true] #arena #playHeader .hud .difficulty-label{font-size:7px;margin-top:2.55px}
body[data-game-fullscreen=true] #arena #playHeader .hud>.hud-clocks{gap:2.5px;align-self:end;align-items:flex-end}
body[data-game-fullscreen=true] #arena #playHeader .counter-slot{flex-basis:29px;width:29px;min-width:29px;gap:1px}
body[data-game-fullscreen=true] #arena #playHeader .counter-slot>.clock,body[data-game-fullscreen=true] #arena #playHeader .counter-slot>.zone-allowance,body[data-game-fullscreen=true] #arena #playHeader .counter-slot>.zone-allowance>.allowance-clock{width:25.6px;height:25.6px;flex-basis:25.6px}
body[data-game-fullscreen=true] #arena #playHeader .counter-slot .counter-placeholder{width:25.6px;height:25.6px;font-size:8px}
body[data-game-fullscreen=true] #arena #playHeader .counter-slot-title{font-size:5.8px;line-height:6px}
body[data-game-fullscreen=true] #arena #playHeader .counter-slot #remaining,body[data-game-fullscreen=true] #arena #playHeader .counter-slot #tokenCounterValue{font-size:10.4px}
body[data-game-fullscreen=true] #arena #playHeader .counter-slot .allowance-clock #zoneAllowanceRemaining{font-size:8.8px}
body[data-game-fullscreen=true] #arena #playHeader .clock-unit,body[data-game-fullscreen=true] #arena #playHeader .allowance-clock .clock-unit{font-size:5.5px;bottom:5px}
body[data-game-fullscreen=true] #arena #playHeader>.power-pocket-panel{position:absolute;right:0;top:0;grid-column:auto;grid-row:auto;justify-self:end;grid-template-columns:minmax(0,1fr);grid-template-rows:10px 29.75px 15.3px;gap:.75px;width:234px;min-width:234px;height:61.2px;min-height:0;padding:1.325px 7px;border-radius:11px}
body[data-game-fullscreen=true] #arena #playHeader .power-pocket-heading{grid-row:1;line-height:10px;gap:4px}
body[data-game-fullscreen=true] #arena #playHeader .power-pocket-heading strong{font-size:9px}
body[data-game-fullscreen=true] #powerPocketStatus{font-size:6.8px;line-height:8px;max-width:122px}
body[data-game-fullscreen=true] #arena #playHeader .power-pocket{grid-row:2;height:29.75px;gap:5px}
body[data-game-fullscreen=true] #arena #playHeader .power-slot{height:29.75px;gap:0}
body[data-game-fullscreen=true] #arena #playHeader .power-slot-icon{width:22.95px;height:22.95px}
body[data-game-fullscreen=true] #arena #playHeader .power-slot-icon canvas{width:20.4px!important;height:18.105px!important}
body[data-game-fullscreen=true] #arena #playHeader .power-slot-icon svg{width:20px;height:20px}
body[data-game-fullscreen=true] #arena #playHeader .power-slot-icon small{font-size:8px;line-height:10px;bottom:1px;right:-6px;padding-inline:2px}
body[data-game-fullscreen=true] #arena #playHeader .power-slot kbd{font-size:6px;line-height:6.8px}
body[data-game-fullscreen=true] #arena #playHeader .power-pocket-footer{grid-column:1/-1;grid-row:3;font-size:7px;line-height:8px}
body[data-game-fullscreen=true] #arena #playHeader>.power-pocket-panel>.level-power-properties{grid-column:1;grid-row:3;justify-self:end;width:auto;min-width:91px;height:15.3px;min-height:15.3px;gap:0;padding:0 4px;font-size:6.5px;line-height:6.5px;border-radius:4px}
body[data-game-fullscreen=true] #arena #playHeader>.power-pocket-panel>.level-power-properties>small{font-size:6px;line-height:6px}
body[data-game-fullscreen=true] #arena #playHeader>.deaths-hud>.game-fullscreen-button{position:relative;grid-column:5;grid-row:1/3;align-self:stretch;justify-self:start;min-width:44px;width:44px;height:auto;min-height:0;aspect-ratio:1;margin-left:4px;padding:8px;border-radius:8px}
body[data-game-fullscreen=true] #arena #playHeader>.deaths-hud>.game-fullscreen-button svg{width:24px;height:24px}
/* The light/dark twin matches the full-screen button and sits immediately to its right. */
body[data-game-fullscreen=true] #arena #playHeader>.deaths-hud>.game-fullscreen-theme{grid-column:6}
.game-fullscreen-theme svg{stroke-width:1.5}.game-fullscreen-theme .sun-icon,body[data-theme=dark] .game-fullscreen-theme .moon-icon{display:none}body[data-theme=dark] .game-fullscreen-theme .sun-icon{display:block}
body[data-game-fullscreen=true] #intro,body[data-game-fullscreen=true] #result{max-height:calc(100% - 20px)}
body[data-game-fullscreen=true] #arena #playHeader>:is(.deaths-hud,.hud,.power-pocket-panel){zoom:var(--fullscreen-hud-scale,1)}

/* Keep fullscreen pocket contents in the intended single-column grid. */
body[data-game-fullscreen=true] #arena #playHeader .power-pocket-heading{min-width:0;white-space:nowrap}
body[data-game-fullscreen=true] #arena #playHeader #powerPocketStatus{flex:none;max-width:none;white-space:nowrap;font-size:6.1px;line-height:8px;letter-spacing:-.02em}
/* Keep account save state readable in the level card in every display mode. */
#arena #playHeader>.hud{position:relative}
#arena #playHeader>.hud #connection{position:absolute!important;left:auto!important;right:8px!important;top:5px!important;bottom:auto!important;transform:none!important;display:inline-flex!important;align-items:center;gap:5px;box-sizing:border-box;width:max-content;max-width:58%;padding:3px 7px;border:1px solid #cfe3d3;border-radius:999px;background:#f2faf3;color:#4d7457;font-size:8px;line-height:1.2;text-align:left;white-space:nowrap;z-index:2}
#arena #playHeader>.hud #connection:before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:#56a96c}
#arena #playHeader>.hud #connection[data-saved=false]{border-color:#ecd99a;background:#fff9e7;color:#8a6b20}
#arena #playHeader>.hud #connection[data-saved=false]:before{background:#d4a72c}
body[data-state=playing] #arena #playHeader>.hud #connection{display:inline-flex!important}
body[data-game-fullscreen=true] #arena #playHeader>.hud #connection{max-width:58%;font-size:7px;padding:2px 6px}
/* Match the left control group's lower edge to the two fullscreen cards. */
body[data-game-fullscreen=true] #arena #playHeader>.deaths-hud{min-height:0;zoom:calc(var(--fullscreen-hud-scale,1)*1.4)}
/* Give the Pocket heading and footer a small inset and keep its button clear of slot labels. */
body[data-game-fullscreen=true] #arena #playHeader>.power-pocket-panel{padding-inline:8px}
body[data-game-fullscreen=true] #arena #playHeader .power-pocket-heading{padding-inline:1px}
body[data-game-fullscreen=true] #arena #playHeader .power-pocket-footer{padding-inline:1px}
/* The button moves into the footer at runtime. Keep it below the slot labels,
   wide enough for a three-digit level number, and on one line. */
body[data-game-fullscreen=true] #arena #playHeader>.power-pocket-panel>.power-pocket-footer{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;overflow:visible}
body[data-game-fullscreen=true] #arena #playHeader>.power-pocket-panel>.power-pocket-footer>.level-power-properties{box-sizing:border-box;display:inline-flex;flex:0 0 160px;flex-direction:row;flex-wrap:nowrap;gap:3px;align-items:center;justify-content:center;width:160px;min-width:160px;height:12.78px;min-height:12.78px;padding:0 4px;font-size:7px;line-height:1;white-space:nowrap;overflow:visible;text-overflow:clip}
body[data-game-fullscreen=true] #arena #playHeader>.power-pocket-panel>.power-pocket-footer>.level-power-properties>small,body[data-game-fullscreen=true] #arena #playHeader>.power-pocket-panel>.power-pocket-footer>.level-power-properties>span{display:inline;flex:none;font-size:inherit;line-height:inherit;white-space:nowrap}
