*{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}}#toggle-night[aria-pressed=true]{color:#f3dc9c;background:#27304e}#toggle-night[aria-pressed=true] svg{fill:currentColor}.window-close{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:#7a705f;cursor:pointer}.window-close:hover{color:#39342c;background:#0000000d}.window-close:focus-visible{outline:2px solid #8d4e34;outline-offset:-4px}.window-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}#help .window-close{position:sticky;top:-18px;float:right;margin:-22px -22px 0 8px;background:#faf7eee6}#tribute strong{display:block;padding-right:28px}#tribute.collapsed{width:auto;padding:9px 14px;cursor:pointer}#tribute.collapsed strong{padding-right:0;font-size:13px}#tribute.collapsed p,#tribute.collapsed .window-close{display:none}.for-touch{display:none!important}@media(pointer:coarse){.for-touch{display:block!important}.for-mouse{display:none!important}}canvas#world{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}#help-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 28px}#help-actions button{display:flex;flex-direction:column;gap:4px;min-height:58px;padding:10px 11px;border:1px solid #ded7c9;border-radius:6px;background:#fffdf5;color:#4e493f;text-align:left;cursor:pointer;font:inherit;transition:background-color .2s,border-color .2s}#help-actions button:hover{background:#f3ecdb;border-color:#c9bca3}#help-actions button:active{background:#eadfc8}#help-actions button:focus-visible{outline:2px solid #8d4e34;outline-offset:1px}#help-actions b{font-size:13px}#help-actions span{font-size:11px;line-height:1.3;color:#857b6b}@media(max-width:700px){#help-actions{grid-template-columns:repeat(2,1fr)}}#guide-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;margin:18px 0 4px;padding:14px 18px 14px 16px;border:1px solid #ded7c9;border-radius:10px;background:linear-gradient(135deg,#fffdf5,#f6efdf);color:#4e493f;text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s}#guide-card:hover{border-color:#c9a48c;box-shadow:0 8px 26px #4f402218;transform:translateY(-1px)}#guide-card:focus-visible{outline:2px solid #8d4e34;outline-offset:2px}.guide-thumbs{display:flex;padding-left:6px}.guide-thumbs img{display:block;width:74px;height:74px;object-fit:cover;border:3px solid #fff;border-radius:5px;box-shadow:0 3px 10px #4f402230;background:#e6e1d7}.guide-thumbs img:nth-child(1){transform:rotate(-5deg)}.guide-thumbs img:nth-child(2){margin-left:-22px;transform:translateY(-3px) rotate(2deg)}.guide-thumbs img:nth-child(3){margin-left:-22px;transform:rotate(6deg)}.guide-text{display:flex;flex-direction:column;gap:4px;min-width:0}.guide-kicker{font-size:10.5px;font-weight:600;letter-spacing:1.6px;text-transform:uppercase;color:#8d4e34}.guide-text b{font:400 21px/1.2 Georgia,serif;color:#3f3a31}.guide-sub{font-size:12.5px;line-height:1.5;color:#7d7364}.guide-arrow{width:22px;height:22px;fill:none;stroke:#8d4e34;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}#guide-card:hover .guide-arrow{transform:translate(3px)}@media(max-width:700px){#guide-card{grid-template-columns:1fr auto;gap:14px 10px;padding:12px}.guide-thumbs{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:0}.guide-thumbs img,.guide-thumbs img:nth-child(n){width:100%;height:auto;aspect-ratio:4/3;margin:0;transform:none;border-width:0;box-shadow:none}}@media(prefers-reduced-motion:reduce){#guide-card,.guide-arrow{transition:none}#guide-card:hover{transform:none}}#photo{max-width:520px;padding:26px}#photo-preview{display:block;width:auto;max-width:100%;max-height:52dvh;height:auto;margin:16px auto 0;border-radius:5px;box-shadow:0 6px 30px #4f402226;background:#e6e1d7}#photo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}#photo-actions button{flex:1 1 120px;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 14px;border:1px solid #ded7c9;border-radius:24px;background:#fffdf5;color:#4e493f;font:600 14px/1 Arial,Helvetica,sans-serif;cursor:pointer;transition:background-color .2s,border-color .2s}#photo-actions button:hover{background:#f3ecdb;border-color:#c9bca3}#photo-actions button:focus-visible{outline:2px solid #8d4e34;outline-offset:2px}#photo-actions button.primary{flex-basis:100%;min-height:54px;border-color:#8d4e34;background:#8d4e34;color:#fffdf5;font-size:16px}#photo-actions button.primary:hover{background:#7b4129}#photo-actions svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#photo-actions [hidden]{display:none}#photo-note{margin:16px 0 0;font-size:12px;line-height:1.6;color:#857b6b;text-align:center}@media(max-width:700px){#photo{padding:20px 16px 18px}}@media(max-height:540px){#palette{padding:10px 8px;gap:8px}.palette-actions,#swatches{display:grid;grid-template-columns:1fr 1fr;gap:7px}.palette-tool,.swatch{width:24px;height:24px}}
