@font-face{font-family:Monocraft;src:url('Monocraft.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
[hidden]{display:none!important}
header{position:relative;display:grid;grid-template-columns:1fr auto 1fr;gap:20px}
.header-right{justify-self:end;gap:14px}.wordmark span{display:none}
.main-navigation{display:flex;gap:4px;padding:4px;border:1px solid var(--border);background:var(--panel);border-radius:10px}
.main-navigation button{border:0;background:transparent;border-radius:6px;padding:10px 16px;color:var(--muted);font-size:12px;white-space:nowrap}
.main-navigation button.current{background:var(--green);color:#142329;font-weight:600}
.theme-picker select{max-width:180px;font-size:10px;padding:8px}.header-right .icon-button span{display:none}
.compiler-output{height:320px;margin:0;padding:18px 22px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#141718;color:#cfdeb7;font:12px/24px 'JetBrains Mono',Consolas,monospace}
.compiler-result .editor-head{min-height:67px}.runtime-label{font:10px 'JetBrains Mono',monospace;color:var(--muted);padding:7px 0}
.compiler-note{font-size:11px;line-height:1.9;color:var(--muted);margin:20px 0 32px;max-width:850px}
.compiled-panel{margin-top:18px;border:1px solid var(--border);border-radius:8px;background:var(--panel);padding:16px}
.compiled-panel summary{cursor:pointer;font-size:12px;color:var(--green)}.compiled-panel pre{font:12px/1.8 'JetBrains Mono',monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto}
button:disabled{opacity:.45;cursor:default}
html[data-theme=vice]{--bg:#100f23;--panel:#1b1730;--border:#3a2f51;--muted:#a19aba;--text:#f7ecfa;--green:#73e5f5;--surface:#141327;--soft:#251c3c;--accent:#fa8fc4;--code:#f1b3d5;--result:#96e6f4;--subtle:#c0adc9}
html[data-theme=ocean]{--bg:#081921;--panel:#102832;--border:#264956;--muted:#92afbc;--text:#e3f5ff;--green:#79d5ff;--surface:#0b202b;--soft:#163442;--accent:#7ea8ff;--code:#a9e3f9;--result:#91edda;--subtle:#a7c7d7}
html[data-theme=vice] body{background:radial-gradient(ellipse at 85% 0%,#9c447e26,transparent 45%),radial-gradient(ellipse at 10% 70%,#1cb7cb10,transparent 50%),var(--bg);background-attachment:fixed}
html[data-theme=ocean] body{background:radial-gradient(ellipse at 80% 0%,#227e9c25,transparent 55%),var(--bg);background-attachment:fixed}
html:not([data-theme=classic]) .rail{background:var(--surface)}
html:not([data-theme=classic]) header{background:color-mix(in srgb,var(--surface) 75%,transparent)}
html:not([data-theme=classic]) .workspace{border-color:var(--border);box-shadow:0 12px 50px #0002}
html:not([data-theme=classic]) .code-area,html:not([data-theme=classic]) .filebar,html:not([data-theme=classic]) .compiler-output{background:var(--surface)}
html:not([data-theme=classic]) .editor:first-child,html:not([data-theme=classic]) .filebar,html:not([data-theme=classic]) .editor-footer{border-color:var(--border)}
html:not([data-theme=classic]) .filebar>span,html:not([data-theme=classic]) textarea{color:var(--code)}
html:not([data-theme=classic]) .output textarea,html:not([data-theme=classic]) .compiler-output{color:var(--result)}
html:not([data-theme=classic]) .lines{color:var(--muted);opacity:.6}
html:not([data-theme=classic]) .intro p,html:not([data-theme=classic]) .bottom-grid p,html:not([data-theme=classic]) .editor-footer,html:not([data-theme=classic]) .quiet,html:not([data-theme=classic]) .filebar button,html:not([data-theme=classic]) footer,html:not([data-theme=classic]) .tab-note{color:var(--muted)}
html:not([data-theme=classic]) .toolbar strong,html:not([data-theme=classic]) .breadcrumb,html:not([data-theme=classic]) .tabs>button,html:not([data-theme=classic]) .step{color:var(--subtle)}
html:not([data-theme=classic]) .tabs .selected{color:var(--green)}
html:not([data-theme=classic]) h1 span{background:linear-gradient(100deg,var(--green),var(--accent));background-clip:text;-webkit-background-clip:text;color:transparent}
html:not([data-theme=classic]) .intro-mark{color:var(--border)}html:not([data-theme=classic]) .intro-mark span{color:var(--accent)}
html:not([data-theme=classic]) .primary{background:linear-gradient(110deg,var(--green),var(--accent));border-color:transparent;color:#151c30;box-shadow:0 3px 20px color-mix(in srgb,var(--accent) 12%,transparent)}
html:not([data-theme=classic]) select,html:not([data-theme=classic]) .secondary,html:not([data-theme=classic]) .swap,html:not([data-theme=classic]) .feature-icon,html:not([data-theme=classic]) .badge,html:not([data-theme=classic]) .avatar{background:var(--soft);border-color:var(--border);color:var(--subtle)}
html:not([data-theme=classic]) .rail-button.active{background:var(--soft);color:var(--green)}
html:not([data-theme=classic]) .feature-icon,html:not([data-theme=classic]) .bottom-grid button{color:var(--accent)}
html:not([data-theme=classic]) dialog{background:var(--panel);border-color:var(--border)}
html:not([data-theme=classic]) #modal-body{color:var(--subtle)}
html:not([data-theme=classic]) #modal-body input,html:not([data-theme=classic]) .example,html:not([data-theme=classic]) .history-item{background:var(--surface);border-color:var(--border);color:var(--text)}
html:not([data-theme=classic]) .console{background:var(--surface)}html:not([data-theme=classic]) .console pre{color:var(--result)}
html:not([data-theme=classic]) .notice:not(.error){background:var(--soft);color:var(--result);border-color:var(--border)}
@media(min-width:1500px){.compiler-output{height:400px}}
@media(max-width:1100px){header{padding:0 22px;gap:12px}.theme-picker select{max-width:140px}.main-navigation button{padding:10px 12px}.wordmark{font-size:18px}}
@media(max-width:800px){header{height:auto;min-height:112px;grid-template-columns:1fr 1fr;padding:16px 18px 12px;gap:14px}.main-navigation{grid-row:2;grid-column:1/-1;justify-self:center}.header-right{grid-row:1;grid-column:2}.main-navigation button{min-width:130px}.theme-picker select{max-width:165px}.header-right .icon-button{display:none}.compiler-result .editor-head{min-height:63px}}
@media(max-width:700px){.compiler-output{height:260px}.compiler-note{font-size:10px}.compiler-workspace .actionbar>div{justify-content:flex-end}.compiler-workspace .actionbar .primary{flex:1}.theme-picker select{max-width:135px}.wordmark{font-size:17px}}

/* Minecraft-inspired typography, bundled locally with Cyrillic support. */
:root{--pixel-font:Monocraft,Consolas,monospace;--title-gradient:linear-gradient(110deg,#83edff 5%,#b5a2ff 48%,#ff91c9 95%)}
html[data-theme=classic]{--title-gradient:linear-gradient(110deg,#c2f875 5%,#7debc6 50%,#8dd8ff 95%)}
html[data-theme=ocean]{--title-gradient:linear-gradient(110deg,#96f1ff 5%,#7cbbff 50%,#c6a5ff 95%)}
body,button,select,input,.filebar button{font-family:var(--pixel-font)}
h1,h2,h3,.wordmark,.primary,.secondary,.main-navigation button.current,.toolbar strong,footer b{font-weight:400}
h1{font-size:clamp(25px,2.7vw,39px);line-height:1.55;letter-spacing:-1px}
html h1,html .wordmark,html .brand,html .eyebrow,html .bottom-grid h3{background-image:var(--title-gradient);background-clip:text;-webkit-background-clip:text;color:transparent;filter:drop-shadow(0 2px 6px #9a7ce52b)}
html h1 span,html:not([data-theme=classic]) h1 span{background:none;color:inherit}
.brand,.brand span{font-family:var(--pixel-font)}
.wordmark{font-size:20px;letter-spacing:-1px}.eyebrow{letter-spacing:1px;line-height:1.8}
.intro p{line-height:1.9}.bottom-grid h3{line-height:1.7}.main-navigation button{font-size:11px}
.theme-picker select{max-width:190px}.tabs button span{font-size:11px}.editor-head{font-size:11px}
.primary,.secondary{font-size:10px}.bottom-grid p{line-height:2}.breadcrumb{letter-spacing:1px}
@media(max-width:1100px){header{gap:10px;padding-left:18px;padding-right:18px}.wordmark{font-size:17px}.theme-picker select{max-width:145px}.main-navigation button{padding:10px}.tab-note{font-size:9px}}
@media(max-width:800px){.theme-picker select{max-width:170px}.main-navigation button{min-width:125px}.intro-mark{display:none}}
@media(max-width:700px){h1{font-size:25px;line-height:1.6;letter-spacing:-1px}.wordmark{font-size:15px}.theme-picker select{max-width:128px;font-size:9px}.main-navigation button{min-width:116px;font-size:10px}.editor-head{font-size:10px}.primary,.secondary{font-size:9px}.primary span{margin-left:7px}.actionbar>div{gap:7px}.breadcrumb{font-size:8px;letter-spacing:0}.tabs{gap:17px}.tabs button span{font-size:9px}}
@media(forced-colors:active){html h1,html .wordmark,html .brand,html .eyebrow,html .bottom-grid h3{background:none;color:CanvasText;filter:none}}
