:root{color-scheme:dark;--paper:#efe2cc;--quiet:#a8977e;--faint:#6f6151;--gold:#e8b04e;--rose:#e7c4d4;--night:#0b0605;
 --top:max(3vh,env(safe-area-inset-top));--bottom:max(3vh,env(safe-area-inset-bottom));--gutter:4vw;--under:62px;--controls:52px;
 font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--paper);background:var(--night);font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--night)}body{overscroll-behavior:none}
button,a{font:inherit;color:inherit;background:none;border:0;text-decoration:none;-webkit-tap-highlight-color:transparent;cursor:pointer}button:disabled{opacity:.36;cursor:default}
button:focus-visible,a:focus-visible{outline:1px solid var(--paper);outline-offset:4px}[hidden]{display:none!important}
.mt-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#mt-world{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}
#mt-world:focus-visible{outline:1px solid var(--paper);outline-offset:-6px}
header{position:fixed;top:var(--top);left:var(--gutter);right:var(--gutter);display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:.14em;pointer-events:none;text-shadow:0 0 6px #000}
header a{pointer-events:auto}#mt-brand{min-height:44px;display:flex;align-items:center}#mt-mark{letter-spacing:.2em;color:var(--gold);text-shadow:0 0 10px #e8b04eaa}
.mt-time{position:fixed;left:50%;transform:translateX(-50%);top:calc(var(--top) + 15px);display:flex;gap:6px;font-size:10px;letter-spacing:.08em;color:var(--quiet);pointer-events:none;white-space:nowrap;font-variant-numeric:tabular-nums;text-shadow:0 0 6px #000}
#mt-where{color:var(--paper);margin-right:6px}#mt-section{color:var(--gold);margin-right:6px}#mt-numeral{font-weight:400}
@media(max-width:420px){#mt-section-title{display:none}}
body[data-part=entrance] .mt-time{visibility:hidden}
#mt-label{position:fixed;left:0;top:0;margin:0;font:italic 13px Georgia,"Times New Roman",serif;letter-spacing:.04em;pointer-events:none;text-shadow:0 0 8px #000,0 0 2px #000;white-space:nowrap}
#mt-entrance,#mt-under{position:fixed;left:var(--gutter);width:min(62vw,720px);bottom:calc(var(--bottom) + var(--controls) + 30px);min-height:var(--under);display:flex;flex-direction:column;justify-content:flex-end;gap:5px;pointer-events:none;text-shadow:0 0 8px #000,0 0 2px #000}
#mt-entrance h1{margin:0;font:400 22px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.24em;color:var(--gold);text-shadow:0 0 14px #e8b04e88}
#mt-entrance .mt-sub{font:italic 16px/1.4 Georgia,"Times New Roman",serif;color:var(--paper);letter-spacing:.02em;margin:0 0 4px}
#mt-entrance p{margin:0;font-size:11px;line-height:1.7;letter-spacing:.05em;color:var(--quiet)}
body:not([data-part=entrance]) #mt-entrance{display:none}body[data-part=entrance] #mt-under{display:none}
/* A failure to load is said where the words would be, in place of the entrance. */
body[data-part=entrance][data-status=error] #mt-under{display:flex}body[data-part=entrance][data-status=error] #mt-entrance{display:none}
#mt-under p{margin:0}
#mt-hint{font-size:11px;letter-spacing:.1em;text-transform:lowercase;color:var(--gold)}
#mt-said{display:flex;flex-direction:column;gap:2px;font-size:15px;line-height:1.45;font-family:Georgia,"Times New Roman",serif;font-style:italic;color:#efe2cc66;transition:filter .6s}
#mt-said:empty{display:none}
#mt-said .who{font:10px ui-monospace,SFMono-Regular,Menlo,monospace;font-style:normal;letter-spacing:.12em;margin-right:.8em;color:var(--gold)}#mt-said .shadows .who{color:var(--rose)}
#mt-said .lit{color:#fff1d6}#mt-said .shadows .lit{color:#f6dbe8}
/* Outside, the words are there and cannot be made out. */
body[data-side=outside] #mt-said{filter:blur(3.2px);opacity:.75}
#mt-strip{position:fixed;left:var(--gutter);right:var(--gutter);bottom:calc(var(--bottom) + var(--controls) + 2px);height:26px;cursor:pointer;touch-action:none}
#mt-strip svg{width:100%;height:100%;overflow:visible;display:block}
#mt-strip .rail{stroke:#efe2cc33;stroke-width:1}#mt-strip .past{stroke:var(--gold);stroke-width:1.5}#mt-strip .tick{stroke:#efe2cc55;stroke-width:1}
#mt-strip .outside{fill:#3d5a8a33}#mt-strip text{font-size:9px;fill:#a8977e;letter-spacing:.06em}#mt-strip .head{fill:var(--paper)}
#mt-strip:focus-visible{outline:1px solid var(--paper);outline-offset:3px}
body[data-part=entrance] #mt-strip{visibility:hidden}
#mt-controls{position:fixed;left:var(--gutter);right:var(--gutter);bottom:var(--bottom);display:flex;align-items:center;gap:clamp(2px,.8vw,14px);font-size:12px;letter-spacing:.04em;color:var(--quiet);text-shadow:0 0 6px #000}
#mt-controls button,#mt-controls a{min-height:44px;padding:10px 8px}#mt-controls button:hover:not(:disabled),#mt-controls a:hover{color:var(--paper)}
#mt-controls .mt-primary{min-width:104px;padding:10px 20px;border:1px solid #e8b04e99;color:var(--paper);letter-spacing:.08em;box-shadow:0 0 18px #e8b04e33,inset 0 0 12px #e8b04e1c;background:#0b060599}
#mt-door{min-width:104px;color:#f3d79a;letter-spacing:.05em}
body[data-side=outside] #mt-door{color:#bcd0f2}
#mt-style,#mt-symmetry{min-width:62px}
#mt-controls [aria-pressed=true]{color:#f3d79a;text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:1px}
#mt-help{font-size:17px;min-width:44px}#mt-leave{margin-left:auto}
#mt-notes{position:fixed;right:0;top:0;bottom:0;z-index:6;width:min(560px,100vw);overflow:auto;padding:46px 32px 30px;background:#0d0807f7;border-left:1px solid #efe2cc2e;backdrop-filter:blur(16px)}
#mt-notes h2{margin:0 0 6px;font-size:13px;font-weight:400;letter-spacing:.22em;color:var(--gold)}#mt-notes .mt-sub{margin:0 0 22px;font:italic 14px Georgia,"Times New Roman",serif;color:var(--paper)}
#mt-notes h3{margin:26px 0 8px;font-size:11px;font-weight:400;letter-spacing:.16em;color:var(--gold)}
#mt-notes p{font-size:11.5px;line-height:1.85;color:#d4c6b0;margin:14px 0}#mt-notes a{text-decoration:underline;text-underline-offset:4px}
#mt-notes em{color:#f3d79a;font-style:italic}
#mt-notes-close{position:absolute;top:20px;right:24px;font-size:27px;min-width:44px;min-height:44px}#mt-metrics{display:block;margin-top:24px;padding-top:18px;border-top:1px solid #a8977e40;font-size:9px;line-height:1.9;color:#8f8070}
body.closed canvas{opacity:.4}
.p3r-recording-floating[data-p3r-recording="magnets-take"]{top:calc(var(--top) + 40px);bottom:auto;right:var(--gutter);transform:rotate(-1deg);background:#0d0807e8;border-color:#e8b04e44}
/* A phone or an upright tablet: the cave above, the words, the strip, two rows of controls. */
@media(orientation:portrait) and (max-width:1100px),(max-width:700px) and (min-height:501px){
 :root{--gutter:12px;--top:max(10px,env(safe-area-inset-top));--bottom:max(10px,env(safe-area-inset-bottom));--under:74px;--controls:104px}
 #mt-entrance,#mt-under{left:16px;right:16px;width:auto}
 #mt-said{font-size:13.5px}
 .mt-time{top:calc(var(--top) + 30px)}
 .p3r-recording-floating[data-p3r-recording="magnets-take"]{top:calc(var(--top) + 52px);right:12px;transform:none;padding:5px 8px}
 .p3r-recording-floating[data-p3r-recording="magnets-take"] button{min-height:30px;padding:4px 6px}
 .p3r-recording-floating[data-p3r-recording="magnets-take"] output{margin-top:2px}.p3r-recording-floating[data-p3r-recording="magnets-take"] .recording-guide{display:none}
 #mt-controls{left:8px;right:8px;flex-wrap:wrap;gap:4px 0;font-size:11px;justify-content:space-between}#mt-controls button,#mt-controls a{padding:9px 4px}
 #mt-controls .mt-primary{order:-2;flex:1 0 48%;min-height:50px}#mt-controls #mt-door{order:-1;flex:1 0 48%;min-height:50px}
 #mt-help{min-width:36px}#mt-controls #mt-leave{display:none}
}
@media(max-width:360px) and (orientation:portrait){#mt-controls{font-size:10px;letter-spacing:0}#mt-controls button,#mt-controls a{padding:9px 2px}#mt-style,#mt-symmetry{min-width:50px}}
/* A short landscape phone: one row of controls, the words in a line. */
@media(orientation:landscape) and (max-height:500px){
 :root{--top:max(6px,env(safe-area-inset-top));--bottom:max(6px,env(safe-area-inset-bottom));--under:40px;--controls:42px}
 header{font-size:10px}#mt-brand{min-height:30px}.mt-time{top:calc(var(--top) + 9px)}
 #mt-said{font-size:12px}#mt-entrance p{font-size:10px;line-height:1.5}#mt-entrance h1{font-size:16px}
 .p3r-recording-floating[data-p3r-recording="magnets-take"]{top:calc(var(--top) + 30px);padding:3px 8px}.p3r-recording-floating[data-p3r-recording="magnets-take"] button{min-height:28px;padding:3px 6px}.p3r-recording-floating[data-p3r-recording="magnets-take"] .recording-guide,.p3r-recording-floating[data-p3r-recording="magnets-take"] output{display:none}
 #mt-controls{font-size:11px;flex-wrap:nowrap}#mt-controls button,#mt-controls a{min-height:36px;padding:6px 4px}#mt-controls .mt-primary{min-width:70px;padding:6px 10px}#mt-door{min-width:80px}
}
