:root{color-scheme:dark;--paper:#ece5d4;--quiet:#a39c8c;--faint:#6c665a;--gold:#e4b65c;--night:#07080d;
 --top:max(3vh,env(safe-area-inset-top));--bottom:max(3vh,env(safe-area-inset-bottom));--gutter:4vw;--under:44px;--controls:52px;--rec:58px;
 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}
.ct-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#ct-stage,#ct-field{position:fixed;inset:0;width:100%;height:100%;display:block}#ct-stage{touch-action:none;cursor:crosshair}
#ct-field{pointer-events:none;background:#05040a}body[data-mode=l0d3f] #ct-field{display:none}
#ct-stage:focus-visible{outline:1px solid var(--paper);outline-offset:-6px}
/* The band the pendulums hang in: between the header and the row under it. */
#ct-band{position:fixed;left:var(--gutter);right:var(--gutter);top:calc(var(--top) + 40px);bottom:calc(var(--bottom) + var(--controls) + var(--under) + var(--rec) + 8px);visibility:hidden;pointer-events:none}
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}
header a{pointer-events:auto}#ct-brand{min-height:44px;display:flex;align-items:center}#ct-mark{letter-spacing:.2em;color:var(--gold)}
.ct-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(--faint);pointer-events:none;white-space:nowrap;font-variant-numeric:tabular-nums}
#ct-where{color:var(--quiet);margin-right:6px}#ct-depth{color:var(--gold);margin-right:6px}
body[data-part=entrance] .ct-time{visibility:hidden}
#ct-entrance,#ct-under{position:fixed;left:var(--gutter);width:min(60vw,660px);bottom:calc(var(--bottom) + var(--controls) + 6px);height:var(--under);display:flex;flex-direction:column;justify-content:flex-end;gap:4px;pointer-events:none}
#ct-entrance h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#ct-entrance p{margin:0;font-size:11px;line-height:1.7;letter-spacing:.05em;color:var(--quiet)}
body:not([data-part=entrance]) #ct-entrance{display:none}body[data-part=entrance] #ct-hint{display:none}
body[data-part=entrance]:has(#ct-said:not(:empty)) #ct-entrance{visibility:hidden}
#ct-under p{margin:0}
#ct-hint{font-size:11px;letter-spacing:.12em;text-transform:lowercase;color:var(--gold)}
#ct-said{font-size:12px;line-height:1.6;color:var(--paper);font-family:Georgia,"Times New Roman",serif;font-style:italic}#ct-said:empty{display:none}
/* The card: the number and everything that joins it, each piece in the colour its joins are drawn in. */
#ct-card{font-size:10.5px;line-height:1.5;letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--quiet)}#ct-card:empty{display:none}
#ct-card b{font-weight:400;color:var(--paper);margin-right:.7em}#ct-card span+span::before{content:'·';color:#ece5d455;margin:0 .55em}
body[data-mode=l0d3f] #ct-card,body[data-part=entrance] #ct-card:empty{display:none}
body[data-part=entrance]:not([data-mode=l0d3f]):has(#ct-card:not(:empty)) #ct-entrance{visibility:hidden}
#ct-controls{position:fixed;left:var(--gutter);right:var(--gutter);bottom:var(--bottom);display:flex;align-items:center;gap:clamp(4px,1vw,16px);font-size:12px;letter-spacing:.04em;color:var(--quiet)}
#ct-controls button,#ct-controls a{min-height:44px;padding:10px 8px}#ct-controls button:hover:not(:disabled),#ct-controls a:hover{color:var(--paper)}
#ct-controls .ct-primary{min-width:104px;padding:10px 20px;border:1px solid #ece5d488;color:var(--paper);letter-spacing:.08em}
#ct-who{min-width:88px;color:#f3d79a;letter-spacing:.06em}
#ct-push{min-width:64px;border:1px solid #e06a5288;color:#ffc3b5!important;transition:border-color .12s,box-shadow .12s}
#ct-push:active:not(:disabled),#ct-push.struck{background:#e06a5222;border-color:#ffc3b5;box-shadow:0 0 14px #e06a5255}
#ct-controls [aria-pressed=true]{color:#f3d79a;text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:1px}
#ct-help{font-size:17px;min-width:44px}#ct-leave{margin-left:auto}
#ct-mode{min-width:64px;letter-spacing:.06em}
/* T0N1C: the same lit controls, drained, and the hint in bone. */
body[data-mode=t0n1c] #ct-hint{color:#dfe6ee;text-shadow:0 0 8px #dfe6ee55}body[data-mode=t0n1c] #ct-mode[aria-pressed=true]{color:#eef2f7;text-shadow:0 0 10px #dfe6ee99}#ct-mode[aria-pressed=true]{color:#fff1c9;text-shadow:0 0 10px #ffcf6a99,0 0 2px #ffcf6a}
/* HyD3f: the same controls, lit. */
body:not([data-mode=l0d3f]) #ct-controls .ct-primary{border-color:#ffcf6a99;box-shadow:0 0 18px #ffcf6a33,inset 0 0 12px #ffcf6a1c;text-shadow:0 0 8px #ffcf6a88}
body:not([data-mode=l0d3f]) #ct-who{text-shadow:0 0 8px #ffcf6a66}body:not([data-mode=l0d3f]) #ct-push{box-shadow:0 0 12px #ff5a3c33}
body:not([data-mode=l0d3f]) #ct-hint{text-shadow:0 0 8px #e4b65c66}body:not([data-mode=l0d3f]) #ct-mark{text-shadow:0 0 10px #e4b65caa}
body:not([data-mode=l0d3f]){--under:60px}body:not([data-mode=l0d3f]) #ct-under{width:min(64vw,900px)}
#ct-notes{position:fixed;right:0;top:0;bottom:0;z-index:6;width:min(540px,100vw);overflow:auto;padding:46px 32px 30px;background:#0a0b10f7;border-left:1px solid #ece5d42e;backdrop-filter:blur(16px)}
#ct-notes h2{margin:0 0 22px;font-size:13px;font-weight:400;letter-spacing:.2em;color:var(--paper)}#ct-notes h3{margin:26px 0 8px;font-size:11px;font-weight:400;letter-spacing:.16em;color:var(--gold)}
#ct-notes p{font-size:11.5px;line-height:1.85;color:#cfc8b6;margin:14px 0}#ct-notes a{text-decoration:underline;text-underline-offset:4px}
#ct-notes em{color:#f3d79a;font-style:italic}
#ct-key{display:grid;gap:14px;margin:12px 0 4px}#ct-key dl{margin:0;display:grid;grid-template-columns:max-content 1fr;gap:3px 16px;align-content:start}
#ct-notes #ct-key .ct-key-side{font-size:10px;letter-spacing:.12em;color:var(--quiet);margin:0 0 -8px}#ct-key dt{font-size:10.5px;white-space:nowrap}#ct-key dt span{display:inline-block;min-width:2.2em}
#ct-key dd{margin:0;font-size:10.5px;color:#a8a191}
#ct-notes-close{position:absolute;top:20px;right:24px;font-size:27px;min-width:44px;min-height:44px}#ct-metrics{display:block;margin-top:24px;padding-top:18px;border-top:1px solid #a39c8c40;font-size:9px;line-height:1.9;color:#8f8878}
body.closed canvas{opacity:.4}
.p3r-recording-floating[data-p3r-recording="countain"]{top:auto;bottom:calc(var(--bottom) + var(--controls) + 6px);right:var(--gutter);transform:rotate(1deg);background:#0b0c11e8;border-color:#e4b65c44}
/* A phone or an upright tablet: the pendulums above, then the row under them, the recorder, the 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:58px;--controls:110px;--rec:74px}
 body:not([data-mode=l0d3f]){--under:80px}body:not([data-mode=l0d3f]) #ct-under{width:auto}#ct-card{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#ct-mode{min-width:48px}
 #ct-band{top:calc(var(--top) + 46px)}
 #ct-entrance,#ct-under{left:16px;right:16px;width:auto;bottom:calc(var(--bottom) + var(--controls) + var(--rec) + 6px)}
 .p3r-recording-floating[data-p3r-recording="countain"]{bottom:calc(var(--bottom) + var(--controls) + 4px);right:12px;left:auto;transform:none;padding:5px 8px}
 .p3r-recording-floating[data-p3r-recording="countain"] button{min-height:30px;padding:4px 6px}
 .p3r-recording-floating[data-p3r-recording="countain"] output{margin-top:2px}.p3r-recording-floating[data-p3r-recording="countain"] .recording-guide{display:none}
 /* Two rows: begin and the hypnotist under the thumb, then everything else. The header's p3r4mancer link is the way out. */
 #ct-controls{left:8px;right:8px;flex-wrap:wrap;gap:4px 0;font-size:11px;justify-content:space-between}#ct-controls button,#ct-controls a{padding:9px 4px}
 #ct-controls .ct-primary{order:-2;flex:1 0 48%;min-height:52px}#ct-controls #ct-who{order:-1;flex:1 0 48%;min-height:52px}
 #ct-push{min-width:50px}#ct-help{min-width:36px}#ct-controls #ct-leave{display:none}
 .ct-time{top:calc(var(--top) + 30px)}
}
/* The narrowest phones: the second row of controls still fits in one line. */
@media(max-width:360px) and (orientation:portrait){
 #ct-controls{font-size:10px;letter-spacing:0}#ct-controls button,#ct-controls a{padding:9px 2px}#ct-push{min-width:40px}#ct-help{min-width:28px}#ct-mode{min-width:40px}
}
/* A short landscape phone: the pendulums fill the height; the row under them is 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:24px;--controls:44px;--rec:0px}
 header{font-size:10px}#ct-brand{min-height:30px}.ct-time{top:calc(var(--top) + 9px)}
 #ct-band{top:calc(var(--top) + 26px);right:calc(var(--gutter) + 190px)}
 #ct-under:has(#ct-said:not(:empty)) #ct-hint{display:none}#ct-entrance p{font-size:10px;line-height:1.5}
 body:not([data-mode=l0d3f]){--under:40px}#ct-under:has(#ct-card:not(:empty)) #ct-hint{display:none}#ct-mode{min-width:48px}
 .p3r-recording-floating[data-p3r-recording="countain"]{bottom:calc(var(--bottom) + var(--controls) + 2px);padding:3px 8px}.p3r-recording-floating[data-p3r-recording="countain"] button{min-height:28px;padding:3px 6px}.p3r-recording-floating[data-p3r-recording="countain"] .recording-guide,.p3r-recording-floating[data-p3r-recording="countain"] output{display:none}
 #ct-controls{font-size:11px;flex-wrap:nowrap}#ct-controls button,#ct-controls a{min-height:38px;padding:6px 5px}#ct-controls .ct-primary{min-width:70px;padding:6px 10px}#ct-push{min-width:50px}
}
@media(prefers-reduced-motion:reduce){#ct-push{transition:none}}
