:root{--ink: #202020;--paper: #f8f8f0;--accent: #2a6e46}*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;padding:0;background:#10101a;color:var(--paper);font-family:Courier New,ui-monospace,monospace;image-rendering:pixelated;height:100%;overflow:hidden}body{display:flex;align-items:center;justify-content:center;min-height:100vh}#game-root{width:816px;height:652px;position:relative;-webkit-user-select:none;user-select:none;transform-origin:center center}#hud{display:flex;gap:12px;align-items:center;background:#10101a;border:3px solid #3a3a4a;border-bottom:none;padding:7px 12px;font-size:13px;letter-spacing:.5px}#hud-floor{color:#cfd8e6;font-weight:700;font-size:15px;letter-spacing:1px;min-width:40px}#cred-bar{flex:1;position:relative;height:18px;background:#23233a;border:2px solid #3a3a4a;border-radius:4px;overflow:hidden}#cred-fill{height:100%;width:0%;background:linear-gradient(90deg,#2a6e46,#7ee787);transition:width .4s ease}#cred-label{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#f8f8f0;text-shadow:0 1px 2px #000;letter-spacing:.5px}#hud-menu,#hud-fullscreen,#hud-notebook{font-family:inherit;font-size:15px;cursor:pointer;line-height:1;background:#23233a;color:#ffd75e;border:2px solid #ffd75e;border-radius:4px;padding:3px 8px}#hud-menu:hover,#hud-fullscreen:hover,#hud-notebook:hover{background:#ffd75e;color:#10101a}#objective{display:flex;gap:8px;align-items:baseline;background:#10101a;border:3px solid #3a3a4a;border-top:2px dashed #2a2a3a;border-bottom:none;padding:5px 12px;font-size:12px;min-height:26px}#obj-label{color:#7ee787;font-weight:700}#obj-why{color:#8a93a6;font-size:11px}#phaser{border:3px solid #3a3a4a;border-top:none}#phaser canvas{display:block}#timerbar{position:absolute;top:70px;left:3px;right:3px;z-index:5;background:#10101aeb;border-bottom:3px solid #000;padding:6px 12px;display:flex;gap:12px;align-items:center;font-size:13px}#timer-label{color:#ff9d5e;font-weight:700;white-space:nowrap}#timer-track{flex:1;height:12px;background:#333;border:2px solid #000}#timer-fill{height:100%;width:100%;background:#ff9d5e;transition:width 1s linear}#dialogue{position:absolute;left:8px;right:8px;bottom:8px;z-index:10;background:var(--paper);color:var(--ink);border:4px solid var(--ink);border-radius:6px;box-shadow:0 0 0 3px var(--paper),0 4px 0 3px #00000073;padding:14px 16px 12px;min-height:108px}#dlg-name{position:absolute;top:-18px;left:10px;background:var(--ink);color:var(--paper);border:3px solid var(--paper);border-radius:4px;padding:2px 10px;font-size:13px;font-weight:700}#dlg-text{font-size:15px;line-height:1.5;white-space:pre-wrap;max-height:150px;overflow-y:auto}#dlg-hint{position:absolute;right:12px;bottom:6px;animation:bob .7s infinite alternate;font-size:14px}@keyframes bob{0%{transform:translateY(0)}to{transform:translateY(4px)}}#dlg-choices{margin-top:10px;display:flex;flex-direction:column;gap:6px}#dlg-choices button,#panel button,#dlg-input-row button{font-family:inherit;font-size:14px;text-align:left;cursor:pointer;background:var(--paper);color:var(--ink);border:3px solid var(--ink);border-radius:4px;padding:6px 12px}#dlg-choices button:hover,#panel button:hover,#dlg-input-row button:hover{background:#ffe9a8}#dlg-input-row{display:flex;gap:8px;margin-top:10px}#dlg-input{flex:1;font-family:inherit;font-size:14px;padding:6px 10px;border:3px solid var(--ink);border-radius:4px;background:#fff}#panel-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:20;background:#0000008c;display:flex;align-items:center;justify-content:center}#panel{background:var(--paper);color:var(--ink);border:4px solid var(--ink);border-radius:6px;box-shadow:0 0 0 3px var(--paper);width:640px;max-height:500px;overflow-y:auto;padding:18px 20px}#panel h2{margin:0 0 10px;font-size:17px;border-bottom:3px solid var(--ink);padding-bottom:6px}#panel .row{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}#panel textarea{width:100%;height:130px;font-family:inherit;font-size:14px;border:3px solid var(--ink);border-radius:4px;padding:8px;background:#fff;resize:vertical}#panel .locked{opacity:.45}#panel .quest-entry{border-bottom:2px dashed #aaa;padding:6px 0;font-size:13px}#panel .quest-entry b{display:block}#panel .muted{color:#666;font-size:12px}#panel .dir-floor{margin:12px 0 4px;font-weight:700;border-bottom:2px solid #ccc}#panel .dir-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:4px 0;border-bottom:1px dashed #ddd;gap:8px}#panel .dir-row .status{color:#666;font-size:12px;white-space:nowrap;text-align:right}#panel .mission-pick{font-size:11px!important;padding:2px 8px!important;margin-top:3px;background:var(--accent)!important;color:#fff!important;border-color:var(--ink)!important}#panel .mission-pick.sel{background:#ffd75e!important;color:var(--ink)!important}#panel .rubric{background:#eef4e8;border:3px solid var(--accent);border-radius:4px;padding:8px 12px;margin:10px 0;font-size:13px}#panel .rubric ul{margin:6px 0 0;padding-left:18px}#panel .rubric li{margin-bottom:4px}#panel .rubric-priority{margin:8px 0 0;padding-top:6px;border-top:2px dashed var(--accent);font-size:12px;color:#444}#panel .quiz-notes{background:#eef4e8;border:3px solid var(--accent);border-radius:4px;padding:6px 10px;margin:8px 0;font-size:13px}#panel .quiz-notes summary{cursor:pointer;font-weight:700;color:var(--accent)}#panel .quiz-notes>div{margin-top:6px;white-space:pre-wrap;line-height:1.5}#panel select{font-family:inherit;font-size:13px;padding:5px 8px;border:3px solid var(--ink);border-radius:4px;background:#fff;max-width:420px}#panel input[type=file]{font-family:inherit;font-size:12px}#toasts{position:absolute;top:78px;right:10px;z-index:30;display:flex;flex-direction:column;gap:6px}.toast{background:var(--ink);color:#ffd75e;border:3px solid var(--paper);border-radius:4px;padding:8px 14px;font-size:13px;animation:fadeout 4s forwards;max-width:380px}@keyframes fadeout{0%,80%{opacity:1}to{opacity:0}}#cutscene{position:absolute;left:8px;right:8px;bottom:8px;z-index:40;background:var(--paper);color:var(--ink);border:4px solid var(--ink);border-radius:6px;box-shadow:0 0 0 3px var(--paper),0 4px 0 3px #00000073;padding:16px 18px 20px;min-height:84px;cursor:pointer}#cutscene-text{font-size:16px;line-height:1.6;white-space:pre-wrap}#cutscene .cs-hint{position:absolute;right:12px;bottom:6px;color:#666;font-size:12px;animation:bob .7s infinite alternate}#langselect,#mainmenu{position:absolute;top:0;right:0;bottom:0;left:0;z-index:60;background:#0c0c14;display:flex;align-items:center;justify-content:center;background-image:radial-gradient(circle at 50% 38%,rgba(126,231,135,.1),transparent 60%)}.ls-box{text-align:center}.ls-mark{display:block;width:108px;height:auto;margin:0 auto 4px;image-rendering:pixelated;filter:drop-shadow(0 0 14px rgba(126,231,135,.45))}.ls-word{display:block;width:300px;height:auto;margin:0 auto 8px;image-rendering:pixelated}.ls-sub{color:#8a93a6;font-size:13px;margin-bottom:30px;letter-spacing:2px}.ls-box button{display:block;width:300px;margin:12px auto;padding:14px;font-family:inherit;font-size:18px;font-weight:700;cursor:pointer;background:var(--paper);color:var(--ink);border:4px solid var(--ink);border-radius:6px;box-shadow:0 4px #00000080}.ls-box button:hover{background:#ffe9a8;transform:translateY(-2px)}.ls-box button.secondary{width:300px;padding:10px;font-size:15px;background:#1a1a26;color:#cfd8e6;border-color:#3a3a4a;box-shadow:0 3px #00000080}.ls-box button.secondary:hover{background:#23233a;color:#ffe9a8}#panel .menu-actions{display:flex;flex-direction:column;align-items:center;gap:8px;margin:4px 0 14px}#panel .menu-actions button{width:260px;text-align:center;font-size:15px;font-weight:700}#panel .menu-actions button.primary{background:var(--accent);color:#fff}#panel .menu-actions button.primary:hover{background:#2f7d50}#panel .menu-actions button.danger{border-color:#a03030;color:#a03030}#panel .menu-actions button.danger:hover{background:#f6d9d9}#panel .pbar{position:relative;height:20px;background:#e0dccf;border:3px solid var(--ink);border-radius:4px;overflow:hidden;margin:6px 0 4px}#panel .pbar>div{height:100%;background:linear-gradient(90deg,#2a6e46,#57b06f);transition:width .3s}#panel .pbar span{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--ink)}#creator{position:absolute;top:0;right:0;bottom:0;left:0;z-index:55;background:#14202a;display:flex;align-items:center;justify-content:center}.cr-box{background:var(--paper);color:var(--ink);border:4px solid var(--ink);border-radius:6px;box-shadow:0 0 0 3px var(--paper),0 6px 0 3px #00000073;width:700px;max-height:96%;overflow-y:auto;padding:16px 20px}.cr-box h2{margin:0 0 12px;font-size:18px;letter-spacing:2px;border-bottom:3px solid var(--ink);padding-bottom:8px}.cr-body{display:flex;gap:18px}.cr-preview-wrap{background:#d8ecd8;border:3px solid var(--ink);border-radius:4px;padding:14px;align-self:flex-start;position:sticky;top:0}#creator-preview{image-rendering:pixelated;display:block}#creator-rows{flex:1;min-width:0}.cr-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}.cr-row-wrap{align-items:flex-start;flex-direction:column;gap:4px}.cr-label{width:92px;font-size:12px;font-weight:700;flex-shrink:0}.cr-row-wrap .cr-label{width:auto}.cr-opts{display:flex;gap:6px;flex-wrap:wrap}.cr-opts-wrap{max-height:92px;overflow-y:auto;padding:2px;width:100%}.cr-swatch{width:26px;height:26px;border:3px solid var(--ink);border-radius:4px;cursor:pointer;padding:0;flex-shrink:0}.cr-swatch.sel{outline:3px solid #e0a020;outline-offset:1px}.cr-text{font-family:inherit;font-size:12px;cursor:pointer;white-space:nowrap;background:#fff;color:var(--ink);border:3px solid var(--ink);border-radius:4px;padding:3px 9px}.cr-text.sel{background:var(--accent);color:#fff}.cr-actions{display:flex;gap:10px;margin-top:14px;justify-content:flex-end}.cr-actions button{font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;background:var(--paper);color:var(--ink);border:3px solid var(--ink);border-radius:4px;padding:8px 18px}#creator-start{background:var(--accent);color:#fff}.cr-actions button:hover{transform:translateY(-1px);box-shadow:0 2px #0006}
