.m3{background:#120c08;color:#dccfbe;min-height:100vh;font-family:Inter,system-ui,sans-serif}.m3 *{box-sizing:border-box}.m3-stage{width:100%;height:67vh;min-height:360px;max-height:760px;border-radius:0}.m3 canvas{display:block;width:100%;height:100%;touch-action:none;cursor:default}.m3-content{max-width:1250px;margin:auto;padding:0 42px 70px}.m3-readout{display:flex;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #3a2b20;font:10px ui-monospace,monospace;letter-spacing:1.5px;color:#b09a80}.m3-readout b{color:#e7c78e;font-weight:400}.m3-header{display:grid;grid-template-columns:1.5fr 1fr;align-items:end;gap:40px;padding:46px 0}.m3-eyebrow{font-size:10px;letter-spacing:2px;color:#b09a80;text-decoration:none}.m3 h1{font-size:clamp(36px,4.6vw,66px);font-weight:450;line-height:1.06;letter-spacing:-2.5px;margin:20px 0 0;color:#f1ece1}.m3 h1 em{font-family:Georgia,serif;font-weight:400;color:#e9c78d}.m3 h2{font-size:25px;font-weight:450;color:#eee9df;margin:0 0 12px}.m3 p{font-size:14px;line-height:1.7;color:#b5a08a;margin:10px 0}.m3 .m3-help{font-size:12px;color:#8c7560;margin-top:18px}.m3 h3{font-size:15px;color:#efe4d4;font-weight:500;margin:0 0 24px}.m3 label{display:flex;flex-direction:column;gap:10px;font-size:12px;color:#c9b8a2;margin-bottom:18px}.m3 button{width:100%;background:#21160f;border:1px solid #4d3a2b;color:#eee2d0;border-radius:4px;padding:11px 12px;font:12px system-ui,sans-serif;min-height:42px}.m3 button{cursor:pointer}.m3 button:hover{background:#33241a;border-color:#b09a80}.m3-explain{display:grid;grid-template-columns:1fr 1.2fr;gap:70px;margin-top:70px}.m3-explain h2{font-size:32px;line-height:1.2;margin-top:18px}.m3-explain h3{margin-bottom:10px}.m3-explain a{font-size:12px;color:#e6c58d}.m3 :focus-visible{outline:2px solid #f1d096;outline-offset:4px}@media(max-width:750px){.m3-stage{height:54svh;min-height:320px}.m3-content{padding:0 20px 45px}.m3-readout{font-size:8px;letter-spacing:.5px;gap:5px}.m3-header{grid-template-columns:1fr;gap:24px;padding:30px 0}.m3 h1{letter-spacing:-1.4px}.m3-explain{grid-template-columns:1fr;gap:20px;margin-top:42px}}

.m3-stage{position:relative;height:70vh;min-height:380px}.m3-playbar{display:flex;align-items:flex-end;gap:12px;padding:18px 0;border-bottom:1px solid #3a2b20}.m3-playbar p{flex:1;font-size:12px}.m3-touch{display:none;gap:8px;padding:12px 0}.m3-touch button{touch-action:none;user-select:none;min-height:46px}.m3-touch button:active{background:#a78653}@media(pointer:coarse),(max-width:750px){.m3-stage{height:57svh;min-height:280px}.m3-touch{display:flex}.m3-playbar{flex-wrap:wrap;gap:8px}.m3-playbar p{flex-basis:100%;margin:0}}

.m3 .m3-fullscreen{position:absolute;top:16px;right:16px;z-index:3;display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:1px solid #e0b98a40;border-radius:8px;background:#140c07b3;color:#f2e4d0;cursor:pointer}.m3 .m3-fullscreen:hover{background:#3a2718;border-color:#e0a15a}.m3 .m3-fullscreen[hidden],.m3-contract{display:none}.m3-stage:fullscreen{width:100vw;height:100dvh;min-height:0;max-height:none}.m3-stage:fullscreen .m3-expand{display:none}.m3-stage:fullscreen .m3-contract{display:block}
html:has(.m3-stage:fullscreen){scrollbar-gutter:auto}

@media(max-width:400px){.m3 .m3-fullscreen{right:10px;top:10px}}

/* The hunt: a field log button at top left, a toast for each find, and themed dialogs. */
.m3-hud{position:absolute;top:16px;left:16px;z-index:3;display:flex;gap:8px;align-items:center}
.m3 .m3-hud-button{display:flex;align-items:center;gap:9px;width:auto;min-height:44px;padding:0 14px 0 11px;border:1px solid #e0b98a40;border-radius:8px;background:#140c07b3;color:#f2e4d0;font:12px ui-monospace,monospace;letter-spacing:1px;backdrop-filter:blur(6px)}
.m3 .m3-hud-button:hover{background:#3a2718;border-color:#e0a15a}
.m3-hud-count b{font-weight:500;color:#f3cf8f;font-size:15px}.m3-hud-count>span{color:#b09a80;margin-left:3px}
.m3-hud-button.m3-pulse{animation:m3-pulse 1.2s ease-out 2}
@keyframes m3-pulse{0%{box-shadow:0 0 0 0 #f0b25acc;border-color:#f0b25a}100%{box-shadow:0 0 0 16px #f0b25a00}}
.m3-toast{position:absolute;top:18px;left:50%;z-index:4;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 22px 13px;border:1px solid #f0b25a80;border-radius:10px;background:linear-gradient(180deg,#2a1a0fee,#140c07ee);box-shadow:0 10px 40px #0009,0 0 30px #f0a04a33;color:#f6e7cf;text-align:center;pointer-events:none;animation:m3-toast 3.4s ease both;max-width:calc(100% - 32px)}
.m3-toast small{font:10px ui-monospace,monospace;letter-spacing:2px;color:#e7b56a}.m3-toast strong{font:400 21px Georgia,serif;color:#fff1da}.m3-toast span{font:11px ui-monospace,monospace;letter-spacing:1px;color:#b09a80}
@keyframes m3-toast{0%{opacity:0;transform:translate(-50%,-10px)}8%,82%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-6px)}}
.m3-dialog{margin:auto;width:min(620px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 32px));padding:0;border:1px solid #e0b98a55;border-radius:14px;background:radial-gradient(120% 70% at 50% 0%,#3a2213 0%,#160d08 55%,#0c0705 100%);color:#dccfbe;box-shadow:0 30px 90px #000c;overflow:hidden}
.m3-dialog::backdrop{background:#05030299;backdrop-filter:blur(3px)}
.m3-dialog-body{display:flex;flex-direction:column;max-height:inherit;padding:26px 26px 20px}
.m3-dialog-head h2{margin:10px 0 4px!important;font-size:28px!important;letter-spacing:-.5px}.m3-dialog h2 em{font-family:Georgia,serif;font-weight:400;color:#e9c78d}
.m3-dialog-head p{margin:0 0 12px!important;font-size:13px!important}
.m3-progress{height:6px;border-radius:3px;background:#2d1e14;overflow:hidden}.m3-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#c9692a,#f3cf8f);box-shadow:0 0 12px #f0a04a;transition:width .6s ease}
.m3-wonders{list-style:none;margin:16px -8px 0;padding:0 8px;overflow:auto;display:grid;gap:6px}
.m3-wonders li{display:grid;grid-template-columns:24px 76px 1fr auto;gap:12px;align-items:center;padding:8px 10px;border:1px solid #3a2b20;border-radius:8px;background:#1a110bcc}
.m3-wonders li.m3-found{border-color:#8a6a3f;background:linear-gradient(90deg,#3a2615cc,#1a110bcc)}
.m3-check{display:grid;place-items:center;width:24px;height:24px;border:1.5px solid #6b5340;border-radius:50%;color:transparent;margin-top:1px}
.m3-found .m3-check{border-color:#f0b25a;background:#f0b25a;color:#1a0f08;box-shadow:0 0 12px #f0a04a88}
.m3-wonders strong{display:block;font-weight:500;font-size:14px;color:#efe4d4}.m3-wonders li:not(.m3-found) strong{color:#cdbca6}
.m3-wonders small{display:block;font-size:12px;line-height:1.5;color:#9c866f;margin-top:2px}.m3-found small{color:#d7b27c}
.m3-dialog-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}
.m3 .m3-dialog .m3-primary{width:auto;padding:0 20px;background:#c9692a;border-color:#f0b25a;color:#1a0f08;font-weight:600}.m3 .m3-dialog .m3-primary:hover{background:#e08a45}
.m3 .m3-dialog .m3-link{width:auto;min-height:36px;padding:0;border:0;background:none;color:#b09a80;text-decoration:underline;text-underline-offset:3px}.m3 .m3-dialog .m3-link:hover{color:#f3cf8f;background:none}
.m3-congrats{width:min(560px,calc(100vw - 32px));text-align:center}
.m3-congrats .m3-dialog-body{align-items:center;padding:0 34px 26px}
.m3-congrats h2{font-size:clamp(30px,6vw,42px)!important;margin:12px 0 6px!important;letter-spacing:-1px}
.m3-congrats p{max-width:420px}.m3-congrats b{color:#f3cf8f;font-weight:500}.m3-congrats-time{font:11px ui-monospace,monospace!important;letter-spacing:1.5px;color:#e7b56a!important}
.m3-congrats .m3-dialog-foot{width:100%}
.m3-congrats-sky{position:relative;width:calc(100% + 68px);height:150px;margin:0 -34px 18px;background:radial-gradient(1.2px 1.2px at 12% 30%,#f2d2a0,transparent),radial-gradient(1px 1px at 28% 70%,#f2d2a0,transparent),radial-gradient(1.4px 1.4px at 44% 22%,#fff,transparent),radial-gradient(1px 1px at 63% 58%,#f2d2a0,transparent),radial-gradient(1.2px 1.2px at 81% 26%,#fff,transparent),radial-gradient(1px 1px at 91% 64%,#f2d2a0,transparent),linear-gradient(180deg,#07050c 0%,#24140c 70%,#c9692a 100%)}
.m3-congrats-planet{position:absolute;left:50%;top:34px;width:76px;height:76px;margin-left:-38px;border-radius:50%;background:repeating-linear-gradient(180deg,#c98a45 0 9px,#b3743a 9px 14px,#dca35c 14px 22px);box-shadow:0 0 40px #f0a04a66;animation:m3-float 6s ease-in-out infinite}
.m3-congrats-planet::after{content:"";position:absolute;left:-26px;top:32px;width:128px;height:14px;border:3px solid #e7cfa0;border-radius:50%;transform:rotate(-12deg);opacity:.85}
@keyframes m3-float{50%{transform:translateY(-6px)}}
@media(max-width:560px){.m3-dialog-body{padding:20px 16px 16px}.m3-dialog-head h2{font-size:23px!important}.m3-dialog-foot{flex-direction:column-reverse;align-items:stretch}.m3 .m3-dialog .m3-primary{width:100%}.m3-hud{top:10px;left:10px}}
@media(prefers-reduced-motion:reduce){.m3-toast,.m3-hud-button.m3-pulse,.m3-congrats-planet{animation:none}.m3-progress span{transition:none}}


.m3-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Multiplayer: the wardrobe button, the live count, and the wardrobe itself. */
.m3 .m3-hud-icon{width:44px;padding:0;justify-content:center}
.m3-hud-live{display:flex;align-items:center;gap:6px;height:44px;padding:0 13px 0 11px;border:1px solid #e0b98a40;border-radius:8px;background:#140c07b3;color:#b09a80;font:11px ui-monospace,monospace;letter-spacing:1px;backdrop-filter:blur(6px);white-space:nowrap}
.m3-hud-live b{font-weight:500;color:#f3cf8f;font-size:15px}
.m3-hud-live i{width:8px;height:8px;border-radius:50%;background:#7be08a;box-shadow:0 0 8px #7be08a;animation:m3-live 2s ease-in-out infinite}
@keyframes m3-live{50%{opacity:.45}}
.m3-wardrobe{width:min(760px,calc(100vw - 32px))}
.m3-wardrobe-grid{display:grid;grid-template-columns:230px 1fr;gap:22px;margin-top:10px;overflow:auto;min-height:0}
.m3-wardrobe-preview{width:100%;height:320px;border-radius:12px;border:1px solid #3a2b20;background:radial-gradient(80% 60% at 50% 30%,#4a2a14,#1a0f09 70%),#1a0f09;position:sticky;top:0}
.m3 .m3-name{margin:0 0 14px;gap:6px;font-size:12px;letter-spacing:.5px;color:#c9b8a2}
.m3-name input{height:42px;padding:0 12px;border:1px solid #4d3a2b;border-radius:8px;background:#1a110b;color:#f6e7cf;font:15px ui-monospace,monospace;letter-spacing:1px}
.m3-name input:focus-visible{outline:2px solid #f1d096;outline-offset:2px;border-color:#f0b25a}
.m3-name small{color:#8c7560;font-size:11px}
.m3-choice{border:0;margin:0 0 12px;padding:0}.m3-choice legend{padding:0;margin-bottom:7px;font:10px ui-monospace,monospace;letter-spacing:2px;color:#b09a80}
.m3-choice-row{display:flex;flex-wrap:wrap;gap:7px}
.m3-choice input{position:absolute;opacity:0;pointer-events:none}
.m3-swatch{display:block;width:32px;height:32px;border-radius:50%;border:2px solid #0006;box-shadow:inset 0 -4px 0 #0003;cursor:pointer}
.m3-chip{display:block;padding:7px 11px;border:1px solid #4d3a2b;border-radius:16px;background:#1a110b;color:#cdbca6;font-size:12px;cursor:pointer}
.m3-choice input:checked+.m3-swatch{outline:2px solid #f3cf8f;outline-offset:2px}
.m3-choice input:checked+.m3-chip{background:#c9692a;border-color:#f0b25a;color:#1a0f08;font-weight:600}
.m3-choice input:focus-visible+.m3-swatch,.m3-choice input:focus-visible+.m3-chip{outline:2px solid #f1d096;outline-offset:3px}
.m3-chip:hover{border-color:#b09a80}
@media(max-width:640px){.m3-wardrobe-grid{grid-template-columns:1fr}.m3-wardrobe-preview{height:190px;position:static}.m3-hud-live span{display:none}}
@media(prefers-reduced-motion:reduce){.m3-hud-live i{animation:none}}

/* Field log rows: a thumbnail of each wonder and a way to be guided to it. */
.m3-thumb{width:76px;height:48px;object-fit:cover;border-radius:5px;border:1px solid #3a2b20;background:#1a110b;display:block}
.m3-found .m3-thumb{border-color:#8a6a3f}
.m3-wonders li:not(.m3-found) .m3-thumb{filter:saturate(.55) brightness(.8)}
.m3 .m3-guide-me{width:auto;min-height:32px;padding:0 11px;border:1px solid #6b5340;border-radius:16px;background:#1a110b;color:#f3cf8f;font:11px ui-monospace,monospace;letter-spacing:.5px;white-space:nowrap}
.m3 .m3-guide-me:hover{background:#3a2615;border-color:#f0b25a}
/* The guide chip: where the trail leads, and how far. */
.m3-guide{position:absolute;left:50%;bottom:18px;z-index:3;transform:translateX(-50%);display:flex;align-items:center;gap:10px;max-width:calc(100% - 32px);padding:8px 8px 8px 14px;border:1px solid #f0b25a88;border-radius:24px;background:#140c07e0;color:#f3cf8f;box-shadow:0 0 24px #f0a04a33;backdrop-filter:blur(6px)}
.m3-guide[hidden]{display:none}
.m3-guide span{display:flex;flex-direction:column;min-width:0}.m3-guide small{font:9px ui-monospace,monospace;letter-spacing:2px;color:#b09a80}.m3-guide b{font-weight:500;font-size:14px;color:#f6e7cf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m3 .m3-guide button{width:32px;min-height:32px;height:32px;padding:0;border-radius:50%;border:1px solid #6b5340;background:#1a110b;color:#f3cf8f;font-size:18px;line-height:1}
@media(max-width:560px){.m3-wonders li{grid-template-columns:22px 60px 1fr;row-gap:6px}.m3-thumb{width:60px;height:40px}.m3 .m3-guide-me{grid-column:2/4;justify-self:start}}

/* After the cursor rests over the world a while, it hides until it moves. */
.m3 canvas.m3-cursor-hidden{cursor:none}

/* The controls, big and plain below the world: key caps and what they do. */
.m3-playbar{flex-direction:column;align-items:stretch}
.m3-keys{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 36px;margin:0;padding:6px 0 2px;list-style:none}
.m3-keys li{display:flex;align-items:center;gap:12px;color:#efe4d4}
.m3-keys b{font-weight:500;font-size:17px;letter-spacing:-.2px}
.m3-keys small{font-size:13px;color:#b09a80;margin-left:-4px}
.m3-caps{display:flex;align-items:center;gap:5px}
.m3-keys kbd{display:inline-grid;place-items:center;min-width:38px;height:38px;padding:0 8px;border:1px solid #6b5340;border-bottom-width:3px;border-radius:7px;background:linear-gradient(180deg,#2a1c12,#1a110b);color:#f3cf8f;font:600 16px ui-monospace,monospace;box-shadow:0 2px 0 #0006}
.m3-keys kbd.m3-space{min-width:88px;font-size:13px;letter-spacing:1px;text-transform:uppercase}
.m3-caps i{font:600 14px ui-monospace,monospace;color:#f3cf8f;font-style:normal}
.m3-keys-touch{display:none}
.m3-notice:empty{display:none}
@media(pointer:coarse){.m3-keys-keyboard{display:none}.m3-keys-touch{display:flex}}
@media(max-width:560px){.m3-keys{gap:12px 22px;justify-content:flex-start}.m3-keys b{font-size:15px}.m3-keys kbd{min-width:32px;height:32px;font-size:14px}.m3-keys kbd.m3-space{min-width:70px}}
