*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#e6e1d7;color:#4a453c;font-family:Arial,Helvetica,sans-serif}canvas#world{width:100%;height:100%;display:block;outline:none;touch-action:none;cursor:crosshair}#palette{position:fixed;left:29px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px;padding:16px 11px;background:#fdfaf1c9;border:1px solid #fff9;border-radius:30px;box-shadow:0 6px 24px #4f402215;backdrop-filter:blur(12px)}.swatch{width:28px;height:28px;border:0;border-radius:50%;cursor:pointer;position:relative;box-shadow:inset 0 -2px 3px #0002;transition:transform .2s,outline .2s}.swatch:hover{transform:scale(1.14)}.swatch[aria-pressed=true]{outline:1px solid #786d5e;outline-offset:5px;transform:scale(.92)}.swatch:focus-visible{outline:2px solid #29241c;outline-offset:5px}#hint{position:fixed;right:40px;bottom:35px;width:310px;padding:27px 29px;background:#fffdf5ed;box-shadow:0 8px 50px #4b422218;border:1px solid #fff;border-radius:5px;transition:opacity .3s,transform .3s}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:600;color:#827866}#hint p{font-family:Georgia,serif;font-size:28px;line-height:1.2;margin:18px 0;color:#4e493f}.hint-controls{font-size:12px;line-height:1.8;color:#756d60}button{font-family:inherit}#dismiss,#close-help{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;background:transparent;border-top:1px solid #ded7c9;font-size:14px;color:#514a3c;padding:18px 0 2px;cursor:pointer;margin-top:22px}button span{font-size:12px;color:#8d8373}#hint small{display:block;font-size:11px;color:#908575;margin-top:19px}#hint.hidden{opacity:0;transform:translateY(12px);pointer-events:none}dialog{max-width:570px;width:calc(100% - 40px);max-height:90vh;overflow:auto;border:1px solid #fff;background:#faf7ee;color:#4e493f;border-radius:7px;padding:36px;box-shadow:0 20px 120px #332d3433}dialog::backdrop{background:#46443840;backdrop-filter:blur(7px)}h1{font-family:Georgia,serif;font-size:28px;line-height:1.25;font-weight:400;margin:20px 0 27px}dl{display:grid;grid-template-columns:145px 1fr;gap:14px;font-size:13px;line-height:1.4}dt{font-weight:600}dd{margin:0;color:#7d7364}.explain{font-size:13px;line-height:1.7;color:#817766;margin-top:24px}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,10px);font-size:13px;letter-spacing:.2px;color:#5a503d;padding:12px 22px;background:#fffdf3ee;border-radius:24px;box-shadow:0 3px 20px #56471b0d;pointer-events:none;opacity:0;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%)}@media(max-width:700px){#palette{left:13px;gap:10px;padding:13px 8px}.swatch{width:24px;height:24px}#hint{right:18px;bottom:20px;width:275px;padding:23px}dialog{padding:25px}dl{grid-template-columns:110px 1fr}}#tribute{position:fixed;right:22px;top:20px;width:290px;padding:15px 18px;background:#fffaf0e8;border:1px solid #d9cdb7;border-radius:4px;font:14px/1.5 Georgia,serif;color:#645947}#tribute strong{font-size:17px}#tribute p{margin:7px 0 0}#tribute a{color:#8d4e34;text-underline-offset:3px}@media(max-width:700px){#tribute{width:240px;right:12px;top:12px;font-size:12px}}.palette-actions,#swatches{display:flex;flex-direction:column;align-items:center;gap:12px}.palette-actions{gap:8px}.palette-divider{display:block;width:22px;height:1px;background:#8d837350}.palette-tool{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:#6f6658;cursor:pointer;transition:color .2s,background-color .2s,transform .2s}.palette-tool:hover{color:#39342c;background:#fff9;transform:scale(1.08)}.palette-tool:focus-visible{outline:2px solid #29241c;outline-offset:3px}.palette-tool svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.palette-tool .sound-slash,.palette-tool[data-muted=true] .sound-wave{display:none}.palette-tool[data-muted=true] .sound-slash{display:block}@media(max-width:700px){.palette-actions,#swatches{gap:10px}.palette-actions{gap:6px}.palette-tool{width:24px;height:24px}.palette-tool svg{width:16px;height:16px}.palette-divider{width:19px}}
