.arcade-window {width:min(760px,calc(100vw - 1rem));max-height:calc(100dvh - 1rem);padding:3px;background:var(--silver)}
.height-window {width:min(1040px,calc(100vw - 1rem))}
.height-window>.arcade-body {padding:.625rem 1rem}
.height-window h2 {margin:0;font:bold 1.15rem/1.4 var(--font-file)}
.height-intro {margin:.25rem 0;font:.8125rem/1.4 var(--font-ui)}
.height-controls {display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.75rem}
.height-controls label {display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-right:auto;font:.875rem/1.5 var(--font-ui)}
.height-controls select {max-width:100%;background:var(--theme-field);color:var(--theme-ink)}
.height-controls .button {font-size:.8125rem;min-height:40px}
.height-stage {display:block;width:auto;max-width:100%;height:auto;max-height:clamp(150px,calc(100dvh - 560px),450px);margin:0 auto;background:#172531;border:2px solid var(--theme-border);touch-action:none;cursor:grab}
.height-stage.height-dragging {cursor:grabbing}
.height-view-tools {display:flex;align-items:center;justify-content:center;gap:.375rem;margin:.25rem 0}
.height-view-tools .button {min-height:44px;font-size:.75rem;padding:.375rem .625rem}
.height-zoom {min-width:3rem;text-align:center;font:bold .8125rem var(--font-file)}
.height-window .height-move-help {margin:.25rem 0;font:.6875rem/1.4 var(--font-ui);color:var(--theme-muted);text-align:center}
.height-steamy-key {color:#306016;font-weight:bold}
.height-object-key {color:#82338e;font-weight:bold}
[data-theme=dark] .height-steamy-key {color:#b8eb7b}
[data-theme=dark] .height-object-key {color:#e8b9f4}
.height-result {font:bold 1rem/1.6 var(--font-file);margin:.75rem 0}
.height-source {font:.75rem/1.5 var(--font-ui)}
.height-source summary {cursor:pointer;font-weight:bold;padding:.5rem 0}
.height-source p {margin:.5rem 0}
.height-loading {font:.8125rem/1.5 var(--font-ui);margin:.5rem 0}
.height-hud {font:bold .8125rem/1.5 var(--font-file);padding:.25rem;background:var(--theme-field);color:var(--theme-ink);border:2px inset var(--theme-border);margin:.375rem 0}
.height-subject {font:700 1.05rem/1.4 var(--font-ui);margin:.375rem 0}
.height-controls {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.375rem;margin:.5rem 0}
.height-controls .height-size-label {display:flex;min-width:0;flex-direction:row;flex-wrap:nowrap;white-space:nowrap;align-items:center;margin:0;gap:.5rem;font-size:.75rem}
.height-size {flex:1;width:0;min-width:0;min-height:44px;accent-color:var(--navy)}
.height-guess {grid-column:1/3;text-align:left;font:bold .875rem/1.5 var(--font-file)}
.height-controls>.primary,.height-controls>button:nth-last-child(-n+2) {grid-column:3}
.height-summary {border:2px solid var(--theme-border);background:var(--theme-field);color:var(--theme-ink);padding:1rem;margin:1rem 0}
.height-summary h3 {margin:0;font:bold 1.5rem/1.4 var(--font-file)}
.height-score-list {padding-left:1.25rem;font:.875rem/1.7 var(--font-ui)}
.height-score-list li+li {margin-top:.5rem}
@media(max-width:600px) {.height-controls .height-size-label {grid-column:1/-1;grid-row:1}.height-controls .button {min-height:44px}.height-controls>button:first-child {grid-column:1;grid-row:2}.height-controls>button:nth-child(3) {grid-column:3;grid-row:2}.height-controls>.height-guess {grid-column:1/-1;grid-row:3;text-align:center}.height-controls>.primary,.height-controls>button:nth-last-child(-n+2) {grid-column:2;grid-row:2}.height-window .arcade-body {padding:.625rem}.height-hud {font-size:.75rem}.height-window h2 {font-size:1.1rem}}
@media(max-width:480px) {.height-controls label{width:100%}.height-controls select{width:100%}.height-window>.arcade-body{padding:.75rem}.height-result{font-size:.875rem}}
.arcade-window>.title-bar {position:sticky;top:0;z-index:2}
.classic-window {width:min(1000px,calc(100vw - 1rem));max-height:calc(100dvh - var(--taskbar-height,54px) - 1rem);overflow:auto}
.classic-window .arcade-body {padding:.75rem}
.classic-hud {padding:0 .25rem .5rem}
.classic-hud p {margin:.25rem 0}
.classic-hud .classic-score {font:bold .875rem/1.5 var(--font-file);overflow-wrap:anywhere}
.classic-hud .classic-status {font:.875rem/1.5 var(--font-ui);min-height:1.5em}
.classic-actions {gap:.375rem;padding:.5rem 0}
.classic-actions .button,.classic-settings .button,.classic-select {min-height:44px;font-size:.875rem;padding:.5rem .75rem}
.classic-pad {min-width:48px;touch-action:none;user-select:none}
.classic-help {font-size:.8125rem!important;line-height:1.6!important;color:var(--theme-muted,#494951);margin:.75rem auto .25rem;max-width:760px}
.classic-settings {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}
.classic-settings label {font-size:.875rem}
.classic-select {max-width:100%;margin-left:.375rem;color:var(--theme-ink,#141414);background:var(--theme-field,#fff);border:2px solid var(--theme-border,#777)}
.classic-settings [aria-pressed=true] {background:var(--theme-selected,#d3d8e2);box-shadow:var(--sunken)}
.classic-canvas {display:block;touch-action:none;outline-offset:3px}
.classic-canvas:focus-visible {outline:3px solid var(--theme-focus,#000080)}
.classic-minesweeper {width:min(720px,calc(100vw - 1rem))}
.mines-scroll {overflow:hidden;max-width:100%;padding:3px;background:var(--theme-chrome,#c0c0c0);box-shadow:var(--sunken);overscroll-behavior:contain}
.mines-scroll.mines-enlarged {overflow:auto;max-height:52svh}
.mines-board {display:grid;gap:1px;width:306px;min-width:0;max-width:none;margin:auto;font-size:17px}
.classic-minesweeper .arcade-actions {padding:.375rem 0}
.mines-row {display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:1px}
.mines-medium .mines-row {grid-template-columns:repeat(12,minmax(0,1fr))}
.mines-hard .mines-row {grid-template-columns:repeat(16,minmax(0,1fr))}
.mines-fit-note {font-size:.75rem!important;line-height:1.3!important;margin:.375rem 0 0!important}
.mine-cell {display:flex;justify-content:center;align-items:center;min-width:0;min-height:0;aspect-ratio:1;border:0;padding:0;background:var(--theme-chrome,#c0c0c0);color:var(--theme-ink,#141414);box-shadow:var(--bevel);font:bold 1em/1 monospace;cursor:pointer;touch-action:manipulation}
.mine-cell.mine-open {background:var(--theme-field,#fff);box-shadow:inset 0 0 0 1px var(--theme-border,#888)}
.mine-cell:focus-visible {outline:3px solid var(--theme-focus,#000080);outline-offset:-3px;z-index:1}
.mine-cell.mine-n1 {color:#173fa4}.mine-cell.mine-n2 {color:#1b622d}.mine-cell.mine-n3 {color:#a22231}.mine-cell.mine-n4 {color:#632884}.mine-cell.mine-n5,.mine-cell.mine-n6,.mine-cell.mine-n7,.mine-cell.mine-n8 {color:#5b391e}
[data-theme=dark] .mine-cell.mine-n1 {color:#a6d5ff}[data-theme=dark] .mine-cell.mine-n2 {color:#a4e79d}[data-theme=dark] .mine-cell.mine-n3 {color:#ffacb6}[data-theme=dark] .mine-cell.mine-n4 {color:#d5b5ff}[data-theme=dark] :is(.mine-n5,.mine-n6,.mine-n7,.mine-n8) {color:#ffd2a1}
.mine-cell.mine-exploded {background:#9b1939}
.invaders-field {display:flex;justify-content:center;background:#101b2c;border:2px solid var(--theme-border,#777)}
.classic-invaders .classic-canvas {width:min(100%,88svh);height:auto;aspect-ratio:8/5}
.classic-blocks {width:min(700px,calc(100vw - 1rem))}
.classic-blocks .classic-actions {gap:.25rem;padding:.25rem 0}
.blocks-stage {display:flex;align-items:flex-start;justify-content:center;gap:1rem}
.blocks-field {width:min(280px,44vw,25svh);flex-shrink:0;border:3px solid var(--theme-border,#777);background:#101b2c}
.blocks-field .classic-canvas {width:100%;height:auto;aspect-ratio:1/2}
.blocks-side {width:110px;min-width:0;font:bold .8125rem/1.4 var(--font-file)}
.blocks-side p {font-size:.8125rem;margin:.25rem 0 .75rem;overflow-wrap:anywhere}
.blocks-preview {display:block;max-width:100%;width:96px;height:auto;margin:auto;border:2px solid var(--theme-border,#777);background:#101b2c}
.blocks-held {margin-bottom:.75rem}.blocks-hold {font-weight:bold}
@media(max-width:480px) {.classic-window .arcade-body{padding:.5rem}.classic-hud .classic-score{font-size:.75rem}.classic-help{font-size:.75rem!important}.classic-actions .button{font-size:.8125rem;padding:.375rem .5rem}.blocks-stage{gap:.625rem}.blocks-side{width:90px}.blocks-preview{width:78px}.classic-settings label{font-size:.8125rem}}
.arcade-body {padding:1.25rem;background:#f6f3e9;color:#171717;text-align:center}
.arcade-body h2 {font:700 clamp(1.2rem,4vw,1.75rem)/1.4 'Comic Sans MS',cursive;letter-spacing:0;color:var(--navy)}
.arcade-body p {font:1rem/1.6 var(--font-ui)}
.arcade-body>.button {margin:.5rem}
.arcade-actions,.arcade-launchers {display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;align-items:center}
.arcade-actions {padding:1rem .5rem}
.arcade-launchers {flex-basis:100%;justify-content:flex-start;gap:.5rem}
.arcade-launcher {min-height:44px;font-size:.875rem}
.arcade-status {min-height:1.6rem;overflow-wrap:anywhere}
.paint-window {width:min(1080px,calc(100vw - 1rem))}
.paint-workspace {display:grid;grid-template-columns:minmax(0,640px) minmax(180px,1fr);gap:1rem;align-items:start}
.paint-workspace .paint-canvas {width:100%;height:auto;touch-action:none}
.paint-layers {padding:.75rem;background:var(--theme-chrome,#ccc);color:var(--ink);text-align:left;min-width:0}
.paint-layers h3 {margin:0 0 .5rem}
.paint-layer-row {display:flex;align-items:center;gap:.5rem;margin-bottom:.375rem}
.paint-layer-row input {width:20px;height:20px;flex-shrink:0}
.paint-layer-choice {flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}
.paint-layer-choice[aria-pressed=true] {outline:2px solid var(--navy);outline-offset:1px}
.paint-layer-actions {display:flex;flex-wrap:wrap;gap:.375rem;margin-top:.5rem}
.paint-layer-actions .button {padding:.375rem;font-size:.75rem}
.paint-layers>input {width:100%;max-width:100%;min-height:40px;padding:.375rem;background:var(--theme-field,#fff);color:var(--ink);border:1px solid var(--theme-border,#777)}
.paint-layers .paint-layer-help {font:.75rem/1.5 var(--font-ui);margin:.75rem 0 0}
.paint-examples {margin:1rem 0;padding:1rem;border:1px solid var(--theme-border,#888)}
.paint-example-image {display:block;width:min(100%,640px);height:auto;margin:auto;background:#fff}
@media(max-width:760px) {.paint-workspace {grid-template-columns:minmax(0,1fr)}.paint-layer-list {max-height:160px;overflow:auto}.paint-layer-actions .button {min-height:44px}}
.snake-countdown {position:fixed;left:50%;top:45%;transform:translate(-50%,-50%);font:900 6rem/1 var(--font-file);color:#fff8ca;text-shadow:3px 3px #111;pointer-events:none}
.arcade-tracker-button {display:flex;gap:.375rem;align-items:center;justify-content:center;min-width:5rem;flex-shrink:0;font-weight:bold}
.achievement-names {list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:0;padding:0;text-align:left}
.achievement-names>li {padding:.75rem;border:1px solid #aaa;overflow-wrap:anywhere;font:1rem/1.5 var(--font-ui)}
.achievement-locked {background:#e4e4e1;color:#555}
.achievement-earned {background:#d3edbd;color:#193d0e;border-color:#4b7532!important;font-weight:bold;box-shadow:inset 0 0 0 1px #4b7532}
.hunter-frog {width:64px;height:64px;image-rendering:pixelated}
.hunter-window label {display:block;margin:1.25rem 0 .5rem;font-weight:bold}
.hunter-name {font:1.125rem var(--font-ui);width:min(100%,24rem);padding:.75rem;border:2px inset #aaa;background:#fff;color:#111}
.arcade-window.wheel-window {width:min(620px,calc(100vw - 1rem));padding:0;border:0;background:transparent;box-shadow:none;color:#fff}
.wheel-window {--font-ui:'Comic Sans MS','Comic Sans',cursive}
.wheel-window::backdrop {background:#06151988}
.wheel-window>.title-bar {position:absolute;right:0;top:0;background:transparent;box-shadow:none;z-index:3}
.wheel-window>.title-bar>span {display:none}
.wheel-window .close-dialog {display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:2px solid #fff;border-radius:50%;background:#202037;color:#fff;box-shadow:0 2px 4px #0008;font:700 26px/1 Arial;overflow:hidden}
.wheel-window>.arcade-body {background:transparent;color:#fff;padding:2.5rem 1rem 1rem}
.wheel-heading {display:grid;grid-template-columns:90px minmax(0,1fr) 90px;align-items:center;gap:.5rem}
.wheel-heading h2 {font:900 clamp(1.4rem,5vw,2.25rem)/1.2 'Comic Sans MS',cursive;color:#fff38a;text-shadow:2px 2px #19152d;margin:0}
.wheel-emote {width:90px;height:auto;filter:drop-shadow(2px 4px 0 #0008)}
.wheel-stage {position:relative;width:min(340px,100%);margin:.75rem auto}
.fortune-wheel {display:block;width:100%;height:auto;border:5px solid #171717;border-radius:50%;transition:transform 4s cubic-bezier(.12,.65,.14,1)}
.wheel-pointer {position:absolute;left:50%;top:-1.25rem;transform:translateX(-50%);font-size:2.25rem;color:#000080;text-shadow:1px 1px #fff;line-height:1.2}
.wheel-result,.wheel-free-message {font-weight:bold!important;min-height:2rem;color:#fff;text-shadow:1px 2px #171027}
.wheel-free-message {background:#5b236edb;padding:.5rem;border-radius:12px}
.wheel-prize {padding:.5rem}
.stinky-wheel-badge {display:inline-block;padding:1rem;background:#ffce5b;border:3px double #111;font-family:var(--font-file)}
.wheel-prize>* {color:#fff;text-shadow:1px 1px #111}
.wheel-prize>.button,.wheel-prize>.stinky-wheel-badge {color:#171717;text-shadow:none}
.gamba-promo {position:fixed;right:16px;bottom:calc(var(--taskbar-height) + 12px);width:400px;max-width:calc(100vw - 24px);max-height:calc(100dvh - var(--taskbar-height) - 24px);overflow:auto;background:transparent;color:#fff;padding-top:2rem}
.gamba-promo .arcade-body {padding:.5rem;background:transparent;color:#fff}
.gamba-promo .wheel-stage {width:250px;max-width:90%}
.gamba-promo p {margin:.5rem 0;font-size:.875rem;line-height:1.4}
.gamba-promo .wheel-prize:empty {display:none}
.gamba-promo .wheel-heading {grid-template-columns:64px minmax(0,1fr) 64px}
.gamba-promo .wheel-emote {width:64px}
.gamba-promo .wheel-heading h2 {font-size:1.5rem}
.gamba-promo .arcade-actions {padding:.25rem .5rem 1rem}
.wheel-promo-close {position:absolute;top:0;right:0}
.gamba-promo>.turn-off-ads {display:block;margin:.5rem auto;background:#eee;color:#111}
.motion-paused .fortune-wheel {transition:none}
.paint-window {width:min(850px,calc(100vw - 1rem))}
.paint-toolbar,.paint-tools,.paint-actions {display:flex;align-items:center;justify-content:center;gap:.5rem;flex-wrap:wrap}
.paint-toolbar {margin-bottom:1rem}
.paint-toolbar label {display:flex;align-items:center;gap:.5rem;font-size:.875rem}
.paint-toolbar input[type=color] {width:44px;height:44px;padding:2px}
.paint-toolbar input[type=range] {width:100px;min-height:44px}
.paint-canvas {display:block;width:100%;height:auto;aspect-ratio:4/3;background:#fff;border:2px inset #aaa;touch-action:none;cursor:crosshair}
.paint-actions {margin:1rem 0}
.paint-tools [aria-pressed=true],.paint-stamps [aria-pressed=true] {box-shadow:var(--sunken);background:#bdd6f4}
.paint-stamps {display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;max-height:150px;overflow:auto;padding:.5rem}
.paint-stamp {min-width:48px;min-height:48px;padding:4px}
.paint-stamp-image {width:36px;height:36px;object-fit:contain;image-rendering:pixelated}
.stamp-heading {margin:1rem 0 .25rem}
.paint-share {font-size:.875rem!important}
.desktop-snake {position:fixed;left:0;top:0;width:100vw;height:calc(100dvh - var(--taskbar-height));z-index:-1;pointer-events:none;opacity:.55;image-rendering:pixelated}
.snake-active .desktop-snake {z-index:10;pointer-events:auto;opacity:1;touch-action:none}
.desktop-game-active {overflow:hidden}
/* Desktop games need the whole website window out of the way, including its minimised title bar. */
.desktop-game-active #main {display:none!important}
.desktop-game-active :is(.decal-ad,.side-promo,.gamba-promo,.cookie-joke,.mr-frog,.golden-frog,.frog-cursor) {visibility:hidden!important;pointer-events:none!important}
.desktop-game-hud {color:#171717;text-align:center;font:1rem/1.4 var(--font-ui);z-index:12}
.desktop-game-hud p {margin:.25rem}
.desktop-game-hud .arcade-actions {gap:.5rem;padding:.5rem}
.desktop-game-hud .button {min-height:44px}
.snake-hud {position:fixed;left:.5rem;right:.5rem;top:.5rem}
.snake-hud>p {display:inline-block;background:#fff9df;padding:.5rem;border:2px solid #073c41}
.snake-score {font-family:var(--font-file)!important;font-weight:bold}
.snake-dpad {display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,48px);gap:.375rem;justify-content:center;margin:.5rem auto}
.snake-up {grid-column:2}.snake-left {grid-column:1;grid-row:2}.snake-down {grid-column:2;grid-row:2}.snake-right {grid-column:3;grid-row:2}
.snake-hud .snake-dpad {position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--taskbar-height) + .5rem)}
.runner-stage {position:fixed;inset:1rem 1rem calc(var(--taskbar-height) + 1rem);z-index:12;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.75rem;overflow:auto}
.runner-hud {background:#fff9df;padding:.5rem;border:2px solid #073c41;max-width:100%;flex-shrink:0}
.runner-board {display:block;width:100%;max-width:960px;height:auto;flex-shrink:0;border:3px solid #073c41;touch-action:none}
.runner-score {font-weight:bold}
.fun-programs {display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:1rem}
.fun-program {display:flex;flex-direction:column;align-items:center;justify-content:start;gap:.5rem;padding:1rem .5rem;border:1px solid transparent;background:transparent;color:#171717;font:1rem/1.4 var(--font-ui);overflow-wrap:anywhere;min-height:120px}
.fun-program-icon {width:64px;height:64px;object-fit:contain;image-rendering:pixelated}
.fun-locked {color:#777;cursor:default}
.fun-locked .fun-program-icon {filter:grayscale(1);opacity:.35}
.fun-folder-launcher {font-weight:bold}
.breakout-secret {display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:5px;background:transparent;border:1px solid transparent;border-radius:4px;flex-shrink:0;cursor:pointer}
.breakout-secret .ui-icon {width:28px;height:28px}
.breakout-stage {position:fixed;inset:.5rem .5rem calc(var(--taskbar-height) + .5rem);z-index:12;display:flex;flex-direction:column;align-items:center;gap:.5rem}
.breakout-hud {background:#fff9df;border:2px solid #073c41;width:min(100%,1040px);flex-shrink:0;padding:.25rem}
.breakout-score {font-weight:bold;font-size:.875rem}
.breakout-status {font-size:.8125rem;min-height:1.2em}
.breakout-field {width:min(100%,1040px);flex:1;min-height:0}
.breakout-board {display:block;width:100%;height:100%;object-fit:contain;touch-action:none;cursor:none}
.breakout-hud .arcade-actions {padding:.25rem;gap:.375rem}
.breakout-hud .button {min-width:44px;min-height:44px;font-size:.8125rem;padding:.375rem .625rem}
@media(max-width:600px) {.breakout-score{font-size:.75rem}.breakout-status{font-size:.75rem}.breakout-hud .button{font-size:.75rem;padding:.25rem .375rem}.breakout-hud .arcade-actions{gap:.25rem}.breakout-stage{inset:.25rem .25rem calc(var(--taskbar-height) + .25rem)}}
.paint-tools .button {min-height:44px}
.paint-canvas {background:#fff9e8}
.ad-close-prank {position:relative;padding-left:2.5rem!important;padding-right:2.5rem!important}
.ad-close-prank>.close-dialog {position:absolute;top:50%;right:3px;transform:translateY(-50%)}
.ad-close-prank.close-jumped>.close-dialog {right:auto;left:3px}
@media(max-width:1000px) {.taskbar>.music-taskbar {grid-column:1/4}.taskbar>.arcade-tracker-button {grid-column:4;grid-row:1;width:auto;min-width:3.75rem;min-height:44px}.taskbar>.arcade-tracker-button::after {content:none}}
@media(max-width:380px) {.music-taskbar .music-equalizer {display:none}}
@media(prefers-reduced-motion:reduce) {.fortune-wheel {transition:none}.desktop-snake:not([tabindex]) {display:none}}
@media(max-height:600px) {.snake-hud .snake-dpad {left:auto;right:.5rem;transform:none}.runner-stage {inset:.25rem .5rem calc(var(--taskbar-height) + .25rem);justify-content:flex-start}.runner-hud .arcade-actions {padding:.25rem}.runner-status {font-size:.75rem}}
@media(max-width:600px) {.wheel-heading {grid-template-columns:56px minmax(0,1fr) 56px}.wheel-emote {width:56px}.wheel-heading h2 {font-size:1.375rem}.gamba-promo .wheel-stage {width:min(190px,30dvh)}}
@media(max-width:600px) {.achievement-names {grid-template-columns:minmax(0,1fr)}.arcade-body {padding:1rem .625rem}.arcade-tracker-button {min-width:3.75rem;font-size:.75rem;padding:.25rem}.arcade-tracker-button .ui-icon {width:16px;height:16px}.paint-tools>.button,.paint-actions>.button {font-size:.8125rem;padding:.5rem}.wheel-stage {width:min(280px,90%)}.ad-close-prank {padding-left:3rem!important;padding-right:3rem!important}}
