body.fun-page:has(.emer){background:#090909;color:#fff}
body.fun-page:has(.emer) .fun-shell{width:min(1370px,calc(100% - 30px));padding:20px 0 80px}
.emer{font:17px/1.5 "Atkinson Hyperlegible",Arial,sans-serif;color:#fff}
.emer *{box-sizing:border-box}
.emer button{font:inherit;cursor:pointer}
.emer-back{display:inline-block;color:#fff;font-weight:800;text-decoration:none;border-bottom:3px solid #f0182b;padding:8px 0;margin-bottom:24px}
.emer-back:hover,.emer-back:focus-visible{color:#ffc928}
.emer-hero{background:linear-gradient(115deg,#5c0b16,#19080c 65%,#090909);border-bottom:8px solid #f0182b;padding:clamp(28px,5vw,65px);display:flex;align-items:center;justify-content:space-between;gap:24px}
.emer-hero h1{font-size:clamp(3rem,6.8vw,7rem);line-height:.9;letter-spacing:-.07em;margin:0 0 22px;font-weight:900}
.emer-hero h1 em{font-style:normal;color:#f0182b}
.emer-hero p{max-width:650px;font-size:clamp(17px,2vw,21px);margin:0}
.emer-counter{text-align:right;min-width:220px}
.emer-counter strong{display:block;color:#ffc928;font-size:clamp(2.3rem,4vw,4rem);letter-spacing:-.06em;line-height:1}
.emer-counter span{font-size:14px;font-weight:900}
.emer-intro{background:#282828;padding:20px 26px;margin:20px 0;display:flex;align-items:center;gap:25px;border-left:6px solid #ffc928}
.emer-intro strong{white-space:nowrap;color:#ffc928}
.emer-intro p{margin:0}
.emer-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.emer-board{background:#171717;border:1px solid #4d4d4d;min-width:0}
.emer-board-head,.emer-board-bottom{padding:16px 20px;display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:14px}
.emer-board-head{border-bottom:1px solid #444}
.emer-board-head span{color:#ffc928}
.emer-board-bottom{border-top:1px solid #444;color:#ddd}
.emer-canvas-wrap{width:100%;background:#101010}
#emer-canvas{display:block;width:100%;height:clamp(340px,49vw,610px);touch-action:none;cursor:crosshair}
.emer-panel{background:#292929;border-top:5px solid #f0182b;padding:23px}
.emer-panel h2{font-size:2.8rem;line-height:1;margin:0 0 20px}
.emer-panel>p:not(.emer-footnote){font-weight:900;margin:24px 0 10px}
.emer-palette{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.emer-palette button{height:53px;border:3px solid #666}
.emer-palette button.selected{outline:3px solid #ffc928;outline-offset:2px}
.emer-palette button:hover,.emer-palette button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.emer-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.emer-tools button{padding:12px 4px;border:1px solid #666;background:#141414;color:#fff;font-weight:800;font-size:14px}
.emer-tools button.selected{background:#f0182b;border-color:#f0182b}
.emer-tools button:hover,.emer-tools button:focus-visible{border-color:#ffc928}
.emer-zoom{display:flex;align-items:center;justify-content:space-between;gap:10px}
.emer-zoom button{background:#111;color:#fff;border:1px solid #888;width:50px;height:50px;font-size:28px}
.emer-zoom strong{font-size:24px}
.emer-actions{display:grid;gap:9px;margin-top:26px}
.emer-actions button{padding:14px;background:#111;border:1px solid #888;color:#fff;font-weight:800}
.emer-actions button:nth-child(2){background:#f0182b;border-color:#f0182b}
.emer-actions button.emer-danger{border-color:#b10c20}
.emer-actions button:hover,.emer-actions button:focus-visible,.emer-zoom button:hover,.emer-zoom button:focus-visible{background:#ffc928;border-color:#ffc928;color:#050505}
.emer-footnote{color:#ccc;font-size:14px;line-height:1.5;margin-top:22px}
.emer-bottom{margin-top:22px;background:#222;padding:24px;border-left:5px solid #f0182b}
.emer-bottom strong{font-size:22px}
.emer-bottom p{margin:7px 0 0;color:#ddd}
@media(max-width:950px){.emer-layout{grid-template-columns:1fr}.emer-panel{display:block}.emer-counter{display:none}.emer-intro{display:block}.emer-intro strong{display:block;margin-bottom:8px}}
@media(max-width:520px){.emer-hero{padding:27px}.emer-hero h1{font-size:clamp(2.7rem,11vw,4.5rem)}.emer-board-head,.emer-board-bottom{flex-wrap:wrap}.emer-palette{grid-template-columns:repeat(7,1fr)}.emer-palette button{height:42px}}
.emer-history,.emer-stamps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.emer-stamps{grid-template-columns:1fr}.emer-history button,.emer-stamps button,.emer-jump button{padding:12px;background:#111;color:#fff;border:1px solid #888;font-weight:900}.emer-history button:disabled{opacity:.4;cursor:not-allowed}.emer-history button:not(:disabled):hover,.emer-stamps button:hover,.emer-jump button:hover{background:#ffc928;color:#050505}.emer-jump{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;align-items:end}.emer-jump label{font-size:13px;font-weight:900}.emer-jump input{display:block;width:100%;min-width:0;padding:10px 5px;background:#111;color:#fff;border:1px solid #888;font:inherit}.emer-jump button{height:46px}.emer-actions button:nth-child(3),.emer-actions button:nth-child(4){border-color:#ffc928}
