.gj-dialog{box-sizing:border-box;position:fixed;width:min(720px,calc(100% - 18px));max-width:none;max-height:calc(100dvh - 16px);margin:auto;padding:0;overflow:auto;border:2px solid #0b46bd;border-radius:9px 9px 4px 4px;background:#ece9d8;color:#18283c;box-shadow:4px 8px 26px #10224b66;font:15px/1.35 Tahoma,Arial,sans-serif}
.gj-dialog *, .gj-dialog *::before,.gj-dialog *::after{box-sizing:border-box}
.gj-dialog [hidden]{display:none!important}
.gj-dialog::backdrop{background:#081b3787}
.gj-titlebar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;padding:3px 4px 4px 9px;border-bottom:1px solid #003cbb;border-radius:6px 6px 0 0;background:linear-gradient(#77adff,#286cf0 14%,#0961e6 53%,#074ccc 88%,#063cad);color:white}
.gj-titlebar>div{display:flex;gap:8px;align-items:center}
.gj-titlebar h2{margin:0;font:bold 17px/1.1 Tahoma,Arial,sans-serif;letter-spacing:-.015em;color:#fff;text-shadow:1px 1px #17347c}
.gj-icon{display:grid;place-items:center;width:20px;height:16px;transform:rotate(-7deg);border:1px solid #244d36;outline:1px solid #f2ffd2;background:#7db754;box-shadow:inset 0 0 0 2px #cae991;font:bold 12px/1 Georgia,serif;color:#193b29;text-shadow:none}
.gj-dialog button{font:14px/1.2 Tahoma,Arial,sans-serif;letter-spacing:normal;text-transform:none;cursor:pointer}
.gj-dialog .gj-close{width:28px;height:26px;min-width:0;min-height:0;padding:0;display:grid;place-items:center;border:1px solid #fff;border-radius:4px;background:linear-gradient(135deg,#ffaf87,#e65431 55%,#af2714);box-shadow:inset 1px 1px 2px #ffc79b;color:white;font:bold 23px/1 Arial,sans-serif}
.gj-content{padding:12px 13px max(12px,env(safe-area-inset-bottom))}
.gj-hud{display:flex;align-items:center;gap:18px;padding:0 0 9px}
.gj-stat{display:flex;align-items:baseline;gap:6px;color:#4b5260;font-size:13px}
.gj-stat b{color:#214e32;font:bold 17px/1.1 'Courier New',monospace;font-variant-numeric:tabular-nums}
.gj-dialog :is(.gj-pause,.gj-jump,.gj-primary){width:auto;min-width:0;min-height:33px;padding:6px 13px;border:1px solid #737b89;border-radius:3px;box-shadow:inset 1px 1px #fff,inset -1px -2px #dfdacd;background:linear-gradient(#fff,#f8f6ed 65%,#e9e6d9);color:#203553}
.gj-dialog .gj-pause{margin-left:auto}
.gj-dialog .gj-pause:disabled,.gj-dialog .gj-jump:disabled{opacity:.56;cursor:default}
.gj-stage{position:relative;isolation:isolate;overflow:hidden;border:2px inset #9ba4aa;background:#78afd7}
.gj-canvas{display:block;width:100%;height:auto;aspect-ratio:2;image-rendering:pixelated;touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}
.gj-canvas:focus{outline:0}
.gj-canvas:focus-visible{outline:2px dotted #173e60;outline-offset:-4px}
.gj-overlay{position:absolute;inset:0;display:grid;place-items:center;padding:8px;background:#12233c24;pointer-events:none}
.gj-panel{pointer-events:auto;display:grid;justify-items:center;gap:7px;max-width:90%;padding:12px 20px;border:1px solid #23425c;box-shadow:inset 1px 1px #fbfff4,2px 3px 0 #102d425e;background:#f1efdeef;text-align:center}
.gj-heading{font:bold 21px/1.1 Tahoma,Arial,sans-serif;letter-spacing:-.035em;color:#153551}
.gj-description{margin:0;color:#354759;font:14px/1.3 Tahoma,Arial,sans-serif;max-width:225px}
.gj-dialog .gj-primary{justify-self:center;min-width:98px;font-weight:bold;border-color:#31527c;box-shadow:inset 0 0 0 2px #afcbed,inset -3px -3px #e3dcca}
.gj-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}
.gj-hint{font-size:13px;line-height:1.3;color:#47576a}
.gj-dialog .gj-jump{font-weight:bold;min-width:90px}
.gj-dialog button:focus-visible{outline:2px solid #174eae;outline-offset:2px}
.gj-screenreader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:520px){
.gj-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px)}
.gj-titlebar{min-height:36px;padding-left:9px}.gj-dialog .gj-close{width:34px;height:31px}
.gj-content{padding:9px 7px max(10px,env(safe-area-inset-bottom))}
.gj-hud{gap:12px;padding-bottom:7px}.gj-stat{gap:4px}
.gj-dialog .gj-pause{min-height:36px;padding:6px 9px}
.gj-panel{padding:8px 12px;gap:5px}.gj-heading{font-size:18px}.gj-description{font-size:13px;max-width:200px}
.gj-dialog .gj-jump,.gj-dialog .gj-primary{min-height:42px}
}
@media(max-height:440px) and (min-width:500px){
.gj-dialog{width:min(680px,calc((100dvh - 146px)*2),calc(100% - 12px))}
.gj-content{padding-top:6px;padding-bottom:6px}.gj-hud{padding-bottom:4px}.gj-controls{margin-top:5px}
}
