/* Controls, dialogs and compact responsive states. Loaded after base styles. */
/* Component styling: card fronts, app illustrations, counters, discovery scenes and memory game. */
.hero-portrait-column{width:100%;max-width:340px;justify-self:center;display:flex;flex-direction:column;align-items:center;gap:25px;align-self:start;padding-top:4px}
.hero-portrait-column .hero-portrait{max-width:100%}
.card-front{border-width:2px;border-color:color-mix(in srgb,var(--edge),transparent 48%)}
.card-front::before{border-width:1.4px;border-color:color-mix(in srgb,var(--edge),transparent 78%)}
.footer-controls{gap:13px}.footer-controls .language-switch{height:28px;align-items:center}.footer-controls .language-switch button{height:22px;padding:0 7px;display:grid;place-items:center}
.footer-controls .language-switch .brand-word{height:12px;width:auto!important;overflow:visible}.footer-controls>.sound-toggle{width:28px;height:28px;padding:5px}.footer-controls>.sound-toggle svg{width:16px;height:16px}
.back-to-top{width:34px;height:34px;background:#100d1666;font-size:19px}.back-to-top.is-visible{opacity:.62}.back-to-top:hover,.back-to-top:focus-visible{opacity:1}
.records-disclosure{margin-top:13px}.records-disclosure>summary{list-style:none;display:inline-flex;padding:6px 11px;border:1px solid #a68fc03d;border-radius:999px;font-size:10px;cursor:pointer;color:#b7a5c9}.records-disclosure .results-table{margin-top:15px}
.collection-star.is-collected,#discovery-stars.all-found .discovery-star.is-collected{animation:star-breathe 5.7s ease-in-out infinite paused}.collection-star:nth-child(3n),.discovery-star:nth-child(3n){animation-delay:-1.8s}.collection-star:nth-child(3n+1),.discovery-star:nth-child(3n+1){animation-delay:-3.5s}
html:not(.page-hidden):not(.dialog-open) #play-drawer[open] .is-collected{animation-play-state:running}
@keyframes star-breathe{0%,100%{opacity:.72;color:#aa86c9}50%{opacity:1;color:#dec5f0}}
.secret-card .gold-medallion{transform-origin:50% 50%;transform-box:border-box}.gold-medallion span{display:grid;place-items:center;width:100%;height:100%;transform-origin:center}
.app-phone{stroke-linecap:round;stroke-linejoin:round}.phone-scene{--duration:18s;--timing:linear;opacity:0}.life-tasks{opacity:1;--motion:life-tasks}.life-timeline{--motion:life-timeline}.life-stats{--motion:life-stats}
@keyframes life-tasks{0%,27%,96%,100%{opacity:1}32%,92%{opacity:0}}
@keyframes life-timeline{0%,30%,65%,100%{opacity:0}35%,60%{opacity:1}}
@keyframes life-stats{0%,63%,95%,100%{opacity:0}69%,90%{opacity:1}}
.task-check{--duration:18s;--motion:task-check;--delay:var(--check-delay);stroke-dasharray:1;stroke-dashoffset:0}@keyframes task-check{0%,3%{stroke-dashoffset:1}9%,23%{stroke-dashoffset:0}28%,100%{stroke-dashoffset:1}}
.life-track{--duration:18s;--motion:life-track;stroke-dasharray:100;stroke-dashoffset:100}@keyframes life-track{0%,33%{stroke-dashoffset:100}57%,100%{stroke-dashoffset:0}}
.life-node{--duration:18s;--delay:var(--node-delay);--motion:life-node;opacity:0;transform-box:fill-box;transform-origin:center}@keyframes life-node{0%,37%{opacity:0;transform:scale(.4)}42%,65%{opacity:1;transform:scale(1)}70%,100%{opacity:0}}
.life-donut{--duration:18s;--motion:life-donut;transform-origin:120px 111px}@keyframes life-donut{0%,67%{transform:rotate(0)}90%,100%{transform:rotate(360deg)}}
.donut-fill{--duration:18s;--motion:donut-fill;stroke-dasharray:0 100}@keyframes donut-fill{0%,67%{stroke-dasharray:0 100}84%,100%{stroke-dasharray:73 100}}
.crypto-market,.crypto-gains,.crypto-wallet{--duration:20s}.crypto-market{opacity:1;--motion:crypto-market}.crypto-gains{--motion:crypto-gains}.crypto-wallet{--motion:crypto-wallet}
@keyframes crypto-market{0%,31%,97%,100%{opacity:1}35%,93%{opacity:0}}@keyframes crypto-gains{0%,34%,56%,100%{opacity:0}38%,52%{opacity:1}}@keyframes crypto-wallet{0%,56%,97%,100%{opacity:0}60%,92%{opacity:1}}
.price-up,.price-down{--duration:20s;stroke-dasharray:100;stroke-dashoffset:100}.price-up{--motion:price-up}.price-down{--motion:price-down}@keyframes price-up{0%{stroke-dashoffset:100;opacity:0}2%{opacity:1}17%{stroke-dashoffset:0;opacity:1}20%,100%{stroke-dashoffset:0;opacity:0}}@keyframes price-down{0%,21%{stroke-dashoffset:100;opacity:0}22%{opacity:1}28%,30%{stroke-dashoffset:0;opacity:1}34%,100%{stroke-dashoffset:0;opacity:0}}
.wallet-lid{--duration:20s;--motion:wallet-lid;transform-origin:84px 138px}@keyframes wallet-lid{0%,57%,92%,100%{transform:scaleY(0)}64%,83%{transform:scaleY(1)}}
.wallet-coin{--duration:20s;--delay:var(--coin-delay);--motion:wallet-coin;opacity:0}@keyframes wallet-coin{0%,65%{opacity:0;transform:translateY(-12px) rotate(-12deg)}69%{opacity:1;transform:translateY(0) rotate(0)}78%{opacity:1;transform:translateY(75px) rotate(30deg)}79%,100%{opacity:0;transform:translateY(75px)}}
.team-bar{--motion:team-bar;--duration:5.8s}@keyframes team-bar{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.65)}}
.call-wave{--motion:call-wave;--duration:2.8s;opacity:.7}@keyframes call-wave{0%,100%{transform:scaleY(.6)}50%{transform:scaleY(1)}}
.design-piece{--duration:14s;transform-box:fill-box;transform-origin:center}.design-sidebar{--motion:design-sidebar}.design-hero{--motion:design-hero}.design-copy{--motion:design-copy}.design-clutter{--duration:14s;--motion:design-clutter;opacity:0}
@keyframes design-sidebar{0%,15%,100%{transform:translate(19px,10px) rotate(12deg);opacity:1}28%{transform:translate(-60px,-45px) rotate(-30deg);opacity:0}40%,73%{transform:none;opacity:1}85%{transform:translate(19px,10px) rotate(12deg);opacity:1}}
@keyframes design-hero{0%,15%,100%{transform:translate(-8px,17px) rotate(-9deg);opacity:1}28%{transform:translate(65px,-50px) rotate(35deg);opacity:0}43%,73%{transform:none;opacity:1}85%{transform:translate(-8px,17px) rotate(-9deg);opacity:1}}
@keyframes design-copy{0%,15%,100%{transform:translate(7px,-6px) rotate(9deg);opacity:1}28%{transform:translate(38px,60px) rotate(-20deg);opacity:0}46%,73%{transform:none;opacity:1}85%{transform:translate(7px,-6px) rotate(9deg);opacity:1}}
@keyframes design-clutter{0%,15%,100%{opacity:1;transform:none}29%,73%{opacity:0;transform:translateY(-40px)}88%{opacity:1;transform:none}}
.visit-counter{display:flex;align-items:center;flex:none;width:max-content;max-width:100%;padding:3px 11px;border:1px solid #b09ac025;border-radius:999px;background:#100e1680;color:#a895bb}
.nixie-digits{display:flex;gap:3px;line-height:1;height:25px;align-items:center;font-family:ui-monospace,Consolas,monospace}
.nixie-lamp{display:grid;place-items:center;position:relative;width:14px;height:24px;animation:nixie-fade var(--lamp-period,37s) ease-in-out var(--lamp-delay,0s) infinite paused}
.nixie-lamp .nixie-shadow,.nixie-lamp .nixie-lit{position:absolute;inset:0;display:grid;place-items:center;font-size:22px;font-weight:300}
.nixie-shadow{color:transparent;-webkit-text-stroke:.35px #bca0d90b;transform:translateY(var(--offset,0px))}.nixie-lit{color:#c2a2df;text-shadow:0 0 6px #ab72d64d;font-weight:400!important}.nixie-lamp.is-leading .nixie-lit{color:#685474;text-shadow:none;opacity:.4}
.visit-counter.is-visible .nixie-lamp{animation-play-state:running}.nixie-error{font-size:18px;letter-spacing:.1em;color:#bc91cb;animation:counter-error 2.4s ease-in-out infinite}
@keyframes nixie-fade{0%,83%,94%,100%{opacity:1}88%{opacity:.53}91%{opacity:.86}}@keyframes counter-error{0%,100%{opacity:1}50%{opacity:.2}}
html.page-hidden .visit-counter *,html.dialog-open .visit-counter *{animation-play-state:paused!important}
@media(max-width:760px){.hero-portrait-column{max-width:310px;padding-top:0;gap:22px}.visit-counter{padding:3px 9px}}
@media(max-width:560px){.hero-portrait-column{max-width:280px}.back-to-top{width:30px;height:30px}.footer-controls{gap:8px}.footer-controls .language-switch button{padding:0 5px}.footer-controls .language-switch .brand-word{height:10px}}
@media(prefers-reduced-motion:reduce){.visit-counter *,.collection-star,.discovery-star{animation:none!important}.life-track{stroke-dashoffset:0}.price-up{stroke-dashoffset:0}}
.secret-dialog{width:min(690px,calc(100% - 36px));max-height:calc(100dvh - 36px);padding:48px 34px 30px;overflow:auto;isolation:isolate}
.secret-dialog>.dialog-close{z-index:5;right:17px;top:13px}.secret-dialog[data-discovery="terminal"]{min-height:min(480px,calc(100dvh - 36px));background:#0b0911}
.terminal-shell{--terminal-ink:#afcabc;--terminal-muted:#587164;min-height:365px;display:flex;flex-direction:column;text-align:left;padding:15px;border-left:1px solid #b59bd42c;color:var(--terminal-ink);font:13px/1.9 ui-monospace,Consolas,monospace}
.secret-dialog .terminal-log{font:inherit;color:var(--terminal-muted);border:0;background:none;padding:0;margin:0 0 16px;min-height:170px;white-space:pre-wrap}
.terminal-transcript{color:var(--terminal-ink)}
.terminal-prompt{color:var(--terminal-ink);font:inherit;margin:0 0 12px}.terminal-input{gap:12px;align-items:center;margin:0}.terminal-input:has(input:disabled){display:none}.terminal-input input{width:100%;min-width:0;color:var(--terminal-ink);font:inherit;padding:6px 8px}.terminal-input input::placeholder{color:var(--terminal-ink);opacity:1}.terminal-caret{color:#a4c3b3;animation:terminal-caret 1.6s steps(2,end) infinite;align-self:flex-start}.terminal-input:has(input:not(:disabled))+.terminal-caret{display:none}
@keyframes terminal-caret{50%{opacity:0}}
.is-breaking .terminal-shell{animation:terminal-break 1.1s ease-out both;pointer-events:none}@keyframes terminal-break{0%{transform:none;opacity:1}18%{transform:translateX(-7px) skewX(2deg)}24%{transform:translateX(8px) skewX(-3deg);opacity:.55}36%{transform:translateY(5px);opacity:1}53%{transform:scaleY(.96) translateX(-4px)}70%{transform:scaleY(.02);opacity:.6}100%{transform:scaleY(0);opacity:0}}
.egg-reveal{display:flex;align-items:center;flex-direction:column;padding:4px 0 12px;animation:discovery-in .7s ease-out}.matrix-egg{width:180px;height:225px;overflow:visible;margin:0 0 23px}.egg-reveal h2{font-size:21px;font-weight:500;line-height:1.4;max-width:470px}.egg-reveal p{margin:12px 0 0;color:#a28aad;font-size:12px}.scene-confetti{position:absolute;inset:0;pointer-events:none;width:100%;height:100%;z-index:2}
.matrix-column{animation:matrix-fall var(--matrix-speed,9s) linear var(--scene-delay,0s) infinite}.matrix-column text{transform:translateX(0)}@keyframes matrix-fall{to{translate:0 336px}}
.egg-glint{stroke-dasharray:5 95;animation:egg-glint 11s linear infinite}@keyframes egg-glint{to{stroke-dashoffset:-100}}
.secret-dialog[data-discovery="archivist"]{border:1px solid #c8a46175;box-shadow:inset 0 0 0 5px #d5b47405,0 25px 100px #0009;background:radial-gradient(ellipse at 50% 42%,#4a371b45,transparent 63%),#100e0b;color:#dec592;padding-top:58px}
.archive-heading{color:#d9bb7e!important;animation:archive-title 8s ease-in-out infinite}.archive-heading .brand-word{width:min(100%,470px)!important;height:auto;max-height:66px;overflow:visible}.archive-art{display:block;width:min(100%,320px);height:auto;margin:2px auto 8px}.secret-dialog .archive-message{max-width:470px;margin:0 auto 4px;font-size:13px;line-height:1.9;color:#bfa77e}
.archive-ring{transform-origin:180px 180px;animation:archive-ring 48s linear infinite}.archive-stack{animation:archive-float 7s ease-in-out infinite}.archive-book{animation:archive-float 7s ease-in-out -3.5s infinite}.archive-dust{animation:archive-dust 6s ease-in-out var(--scene-delay,0s) infinite;transform-box:fill-box;transform-origin:center}
@keyframes archive-ring{to{transform:rotate(360deg)}}@keyframes archive-float{50%{transform:translateY(-5px)}}@keyframes archive-dust{0%,100%{opacity:.15;transform:translateY(3px) scale(.6)}50%{opacity:.85;transform:translateY(-5px) scale(1)}}@keyframes archive-title{0%,100%{opacity:.8}50%{opacity:1;color:#f2dfb1}}
html.page-hidden .secret-dialog *,html.page-hidden .terminal-caret{animation-play-state:paused!important}
@media(max-width:560px){.secret-dialog{padding:47px 20px 24px}.terminal-shell{padding:8px;min-height:325px;font-size:11px}.secret-dialog .terminal-log{min-height:145px}.archive-art{max-width:265px}.egg-reveal h2{font-size:18px}.matrix-egg{width:160px;height:200px}.secret-dialog .archive-message{font-size:12px}}
@media(prefers-reduced-motion:reduce){.secret-dialog *{animation:none!important}.is-breaking .terminal-shell{opacity:.3}}
.secret-dialog[data-discovery="archivist"]>p.archive-message{color:#cbb488}.secret-dialog[data-discovery="archivist"]>.dialog-close{color:#cbb488}
.memory-back{border-color:#9775b34d;box-shadow:none}.memory-back img{opacity:.84}.memory-back::after{display:none}
.memory-front{border:2px solid color-mix(in srgb,var(--edge) 65%,transparent);box-shadow:none;background:#101016;padding-bottom:clamp(7px,calc(var(--tile-w)*.08),16px)}.memory-tile.is-matched .memory-front{border-color:color-mix(in srgb,var(--edge) 78%,transparent)}
.memory-back-decoration{position:absolute;inset:0;width:100%;height:100%;fill:none;pointer-events:none}
.memory-trace{stroke:#d4b8ed;stroke-width:3;opacity:0;stroke-dasharray:34 1000;animation-duration:12s;animation-timing-function:linear;animation-iteration-count:infinite;animation-play-state:paused}
.memory-trace-frame{animation-name:back-frame-trace;animation-delay:var(--tile-phase)}.memory-trace-ring{animation-name:back-ring-trace;animation-delay:calc(var(--tile-phase) + var(--arc-phase))}
.memory-spark{fill:#f7edff;opacity:0;transform-box:fill-box;transform-origin:center;animation:memory-spark var(--spark-period,5s) ease-in-out var(--spark-phase,0s) infinite paused}
@keyframes memory-spark{0%,76%,100%{opacity:0;transform:scale(.3) rotate(-12deg)}84%{opacity:.95;transform:scale(1.15) rotate(0)}94%{opacity:0;transform:scale(.45) rotate(12deg)}}
html:not(.page-hidden) .memory-dialog[open]:not(.is-paused):not(.is-results) .memory-tile:not(.is-open) .memory-back-decoration>*{animation-play-state:running}
html:not(.page-hidden) .memory-dialog[open]:not(.is-paused):not(.is-results) .memory-tile:not(.is-open) .memory-spark{animation-play-state:running}
html:not(.page-hidden) .memory-dialog[open]:not(.is-paused):not(.is-results) .memory-tile.is-open .art-motion{animation-name:var(--motion);animation-play-state:running}
.memory-dialog[open]:not(.is-paused):not(.is-results) .memory-tile.is-open .memory-art{animation:memory-pair-float 6s ease-in-out var(--tile-phase) infinite}
@media(prefers-reduced-motion:reduce){.memory-back-decoration{display:none}.memory-art,.memory-art .art-motion{animation:none!important}}
@media(max-width:560px){
 .header .brand-logo{width:38px;height:30px}.header .nav{font-size:8.5px;gap:12px;margin-right:10px}.footer-controls{flex:none;gap:7px}.language-switch{flex:none}
 .memory-top{flex-wrap:wrap;gap:4px 8px}.memory-top h2{font-size:22px;flex:1;white-space:nowrap}.memory-top>.dialog-tools{order:3;width:100%;justify-content:flex-end;gap:10px}.memory-top>.dialog-tools>.results-toggle{margin-right:auto;min-height:44px;font-size:13px;padding:8px 2px;text-align:left}.memory-dialog .icon-button,.memory-dialog .sound-toggle,.memory-dialog .dialog-close{width:44px;height:44px;padding:10px}.memory-dialog .dialog-close{font-size:28px;padding:0}
 .memory-toolbar{gap:10px;flex-direction:column;align-items:stretch}.memory-levels{gap:6px}.memory-levels button{flex:1;min-height:44px;font-size:12px;padding:6px}.memory-metrics{justify-content:space-between;gap:12px;margin:0;padding:0 4px;font-size:11px}.memory-metrics strong{font-size:17px}.memory-metrics>span{display:flex;align-items:baseline;gap:6px}.memory-tile{border-radius:8px}#memory-status{font-size:12px;min-height:0}.memory-results th,.memory-results td{font-size:11px;padding:10px 6px}.result-tabs button,.memory-cover button{min-height:44px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){.memory-rotor{transition:none}.memory-back::after{animation:none!important}.memory-art{animation:none!important}}
.secret-card .gold-medallion>svg{display:block;width:100px;height:100px;fill:currentColor;stroke:#f4de9f;stroke-width:.5}
.secret-dialog[data-discovery="archivist"]>.dialog-close:focus-visible{outline-color:#d5bd8b}
.secret-dialog:not([open]) *{animation-play-state:paused!important}
.task-check{stroke-dashoffset:1}
.nixie-error{animation-play-state:paused}.visit-counter.is-visible .nixie-error{animation-play-state:running}

/* V26: low-amplitude detail motion. All artwork uses the shared visibility gate. */
.footer-controls{display:flex;align-items:center;gap:13px;margin-left:auto}
.footer-line{flex-wrap:nowrap}
.header .visit-counter{margin-left:0}
.hero-portrait-column{padding-top:4px}
.play-drawer>summary{width:26px;height:26px;border:1px solid #a183c352;background:#140f1c;color:#b8a2c9}
.memory-chip{min-height:26px;border-color:#a183c352}
.play-drawer>summary:hover,.play-drawer[open]>summary{border-color:#ba95df85;background:#23172e}
.knowledge-text{--motion:knowledge-write;--duration:10s;stroke-dasharray:100;stroke-dashoffset:100;opacity:0}
@keyframes knowledge-write{0%,4%{stroke-dashoffset:100;opacity:0}7%{opacity:1}24%,60%{stroke-dashoffset:0;opacity:1}75%,100%{stroke-dashoffset:0;opacity:0}}
.analytics-bar{--motion:analytics-bars;--duration:6.4s}
@keyframes analytics-bars{0%,100%{transform:scaleY(1)}45%{transform:scaleY(.79)}70%{transform:scaleY(.88)}}
.strelets-trace{--motion:strelets-trace;--duration:8s;stroke:#e4cfef;stroke-width:2.2;stroke-dasharray:16 100;opacity:0}
@keyframes strelets-trace{0%,15%{stroke-dashoffset:16;opacity:0}22%{opacity:.8}58%{stroke-dashoffset:-100;opacity:.8}65%,100%{stroke-dashoffset:-100;opacity:0}}
.life-node-check{--motion:life-node-check;--duration:18s;--delay:var(--check-delay);stroke-dasharray:1;stroke-dashoffset:1}
@keyframes life-node-check{0%,44%{stroke-dashoffset:1}49%,65%{stroke-dashoffset:0}70%,100%{stroke-dashoffset:1}}
.price-up{filter:drop-shadow(0 0 2px #87c9aa66)}.price-down{filter:drop-shadow(0 0 2px #d47f9166)}
.portrait-hint,.collection-hint{transition:opacity .65s ease;pointer-events:none}
.collection>.section-heading{flex-wrap:wrap}
.collection-hint{display:block;flex:none;margin-left:auto}
.portrait-hint.is-hint-hidden,.collection-hint.is-hint-hidden{opacity:0}
@media(max-width:560px){
 .header .nav{gap:12px;margin-right:12px}
 .header .visit-counter{padding:3px 8px}.header .nixie-digits{gap:1px;height:22px}.header .nixie-lamp{width:10px;height:22px}.header .nixie-lamp .nixie-shadow,.header .nixie-lamp .nixie-lit{font-size:17px}
 .footer-controls{gap:12px}.footer-controls .language-switch .brand-word{height:12px}
}
@media(prefers-reduced-motion:reduce){
 .portrait-hint,.collection-hint{transition:none}
 .knowledge-text{stroke-dashoffset:0;opacity:1}.strelets-trace{display:none}
 .price-up{stroke-dashoffset:0;opacity:1}.price-down{opacity:0}
}
.memory-stage.is-scrollable{overflow-y:auto;align-items:flex-start;scrollbar-width:thin}
.memory-stage.is-scrollable .memory-board{margin-block:2px}
@media(max-height:400px){.memory-dialog{padding:12px}.memory-dialog[open]{gap:7px}.memory-top h2{font-size:20px}.memory-toolbar{gap:7px}#memory-status:empty{display:none}}

/* V28: keep the mobile introduction in reading order and bring the board to its controls. */
body{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.back-to-top{right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom))}
.hero{grid-template-areas:"intro portrait" "bio portrait";grid-template-rows:auto auto;row-gap:0;align-items:start}
.hero-copy{grid-area:intro;min-width:0}.hero-bio{grid-area:bio;min-width:0}.hero-portrait-column{grid-area:portrait}
.memory-top h2{flex:1}.memory-top>.dialog-close{position:static}
@media(max-width:760px){
 .hero{grid-template-areas:"intro" "portrait" "bio";grid-template-rows:auto auto auto;row-gap:28px;padding-top:36px}
 .hero-copy,.hero-bio{width:100%;max-width:570px;justify-self:center}.hero-description{margin-bottom:0}
 .hero-portrait-column{margin-bottom:24px;padding-top:0}
 .hero-bio .hero-about,.hero-bio .hero-personal{max-width:none;text-align:left;hyphens:none;font-size:15px;line-height:1.75}
 .hero-bio .hero-footnote{white-space:normal;font-size:10px}
}
@media(max-width:560px),(max-width:960px) and (max-height:500px){
 .memory-dialog{width:100%;height:100dvh;margin:0;max-width:none;max-height:none;border:0;border-radius:0;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 .memory-dialog[open]{gap:12px}.memory-stage{align-items:flex-start}.memory-board{align-content:flex-start}
 #memory-status:empty{display:none}
}
@media(min-width:561px) and (max-width:960px) and (max-height:500px){
 .memory-dialog[open]{gap:8px}.memory-top h2{font-size:21px}.memory-dialog .icon-button,.memory-dialog .sound-toggle,.memory-dialog .dialog-close{width:44px;height:44px}.memory-dialog .results-toggle,.memory-levels button{min-height:44px;font-size:12px}.memory-metrics{font-size:11px}.memory-metrics strong{font-size:16px}
}

/* V27: small, sequenced SVG gestures use the existing visibility/motion gate. */
.inventory-ink{--motion:inventory-ink;--duration:12s}
.inventory-line,.inventory-check,.inventory-sign{--duration:12s;stroke-dasharray:100;stroke-dashoffset:0;animation-fill-mode:both}
.inventory-sign{--motion:inventory-sign}
.delivery-truck{--motion:delivery-truck;--duration:4.4s}.truck-wheel{--motion:truck-wheel;--duration:2.8s;--timing:linear;transform-origin:0 0}.truck-trail{--motion:truck-trail;--duration:2.2s}
@keyframes delivery-truck{0%,100%{transform:translate(-1px,0)}35%{transform:translate(1.5px,-1px)}65%{transform:translate(0,1px)}}
@keyframes truck-wheel{to{transform:rotate(360deg)}}@keyframes truck-trail{0%,100%{opacity:.15;transform:translateX(0)}50%{opacity:.55;transform:translateX(-3px)}}
.support-arrow{--motion:support-arrow;--duration:6s;--delay:0s;animation-fill-mode:both}
.support-return{--delay:-3s}
@keyframes support-arrow{0%,48%,100%{opacity:0}12%,35%{opacity:1}}
.document-line{--motion:document-line;--duration:12s;stroke-dasharray:100;animation-fill-mode:both}
.document-upgrade{--motion:document-upgrade;--duration:12s;transform-origin:center;transform-box:fill-box}
@keyframes document-line{0%,5%{stroke-dashoffset:100;opacity:.2}24%,68%{stroke-dashoffset:0;opacity:1}85%,100%{stroke-dashoffset:0;opacity:0}}
@keyframes document-upgrade{0%,40%,80%,100%{transform:translateY(0)}51%{transform:translateY(-6px)}62%{transform:translateY(0)}}
.security-trace{--motion:security-trace;--duration:12s;stroke-dasharray:15 100;stroke-width:3;opacity:0}
.security-latch{--motion:security-latch;--duration:12s;transform-origin:138px 99px}.security-check{--motion:security-check;--duration:12s;stroke-dasharray:100;animation-fill-mode:both}
@keyframes security-trace{0%,8%{opacity:0;stroke-dashoffset:15}14%{opacity:.8}44%{opacity:.8;stroke-dashoffset:-100}48%,100%{opacity:0;stroke-dashoffset:-100}}
.help-copy,.help-check{--duration:12s;stroke-dasharray:100;animation-fill-mode:both}.help-copy{--motion:help-copy}.help-check{--motion:help-check}.help-idea{--motion:help-idea;--duration:12s;animation-fill-mode:both}
@keyframes help-copy{0%,5%{stroke-dashoffset:100;opacity:0}30%,75%{stroke-dashoffset:0;opacity:.8}94%,100%{stroke-dashoffset:0;opacity:0}}
@keyframes help-idea{0%,34%{opacity:0;transform:translateY(3px)}47%,77%{opacity:1;transform:none}94%,100%{opacity:0;transform:none}}
@keyframes help-check{0%,56%{stroke-dashoffset:100;opacity:0}70%,80%{stroke-dashoffset:0;opacity:1}94%,100%{stroke-dashoffset:0;opacity:0}}
.requirements-input,.requirements-route,.requirements-line,.requirements-check{--duration:14s;stroke-dasharray:100;animation-fill-mode:both}
.requirements-input{--motion:help-copy}.requirements-route{--motion:requirements-route}.requirements-line{--motion:requirements-line}.requirements-check{--motion:requirements-check}
@keyframes requirements-route{0%,25%{stroke-dashoffset:100;opacity:0}42%,80%{stroke-dashoffset:0;opacity:.5}95%,100%{opacity:0}}
@keyframes requirements-line{0%,42%{stroke-dashoffset:100;opacity:0}56%,79%{stroke-dashoffset:0;opacity:.8}94%,100%{opacity:0}}
@keyframes requirements-check{0%,60%{stroke-dashoffset:100;opacity:0}70%,80%{stroke-dashoffset:0;opacity:1}94%,100%{opacity:0}}
.clone-eye{--motion:clone-eye;--duration:10s;transform-origin:0 0}.clone-pupil{--motion:clone-pupil;--duration:10s}
@keyframes clone-eye{0%,90%,98%,100%{transform:scaleY(1)}94%{transform:scaleY(.05)}}
@keyframes clone-pupil{0%,12%,83%,100%{transform:translateX(0)}24%,38%{transform:translateX(-2px)}53%,70%{transform:translateX(2px)}}
.phone-slide{opacity:0;animation-fill-mode:both}.phone-slide-first{opacity:1}.phone-slide-3{--motion:phone-slide-3;--duration:12s}.phone-slide-4{--motion:phone-slide-4;--duration:16s}
@keyframes phone-slide-3{0%{opacity:0;transform:translateX(94px)}3%,27%{opacity:1;transform:none}33.333%,100%{opacity:0;transform:translateX(-94px)}}
@keyframes phone-slide-4{0%{opacity:0;transform:translateX(94px)}2.5%,20%{opacity:1;transform:none}25%,100%{opacity:0;transform:translateX(-94px)}}
.phone-heart{--motion:phone-heart;--duration:1.5s;transform-origin:120px 111px}@keyframes phone-heart{0%,45%,100%{transform:scale(1)}13%{transform:scale(1.06)}25%{transform:scale(1)}33%{transform:scale(1.04)}}
.records-disclosure>summary{width:auto;height:auto;min-height:28px;max-width:100%;align-items:center;justify-content:center;white-space:nowrap;line-height:1.4;box-sizing:border-box}
.records-disclosure>summary:hover,.records-disclosure[open]>summary{border-color:#a585cf80;background:#24172f;color:#dfc6ff}
.back-to-top>span{display:inline-block;line-height:1;transform-origin:50% 50%;transition:transform .42s ease-out}
.back-to-top:hover>span,.back-to-top:focus-visible>span{transform:rotateY(360deg)}
html:has(#play-drawer[open]) .back-to-top{visibility:hidden;pointer-events:none}
.archive-heading{display:flex;justify-content:center;align-items:center;width:100%;margin-inline:auto;text-align:center}
.archive-heading .brand-word{display:block;flex:0 1 470px;min-width:0}
.archive-art{width:min(100%,360px);max-width:360px;overflow:visible}
.archive-plate{animation:archive-plate 8s ease-in-out var(--scene-delay,0s) infinite}.archive-stack{animation:none}
.archive-star{transform-origin:180px 78px;animation:archive-star 7s ease-in-out infinite}
.archive-dust{animation:archive-drift var(--dust-duration,8s) ease-in-out var(--scene-delay,0s) infinite}
@keyframes archive-plate{0%,100%{transform:translateY(2px)}50%{transform:translateY(-3px)}}
@keyframes archive-star{0%,100%{opacity:.7;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
@keyframes archive-drift{0%,100%{opacity:.12;transform:translate(0,0) scale(.7)}50%{opacity:.8;transform:translate(var(--dust-x,4px),var(--dust-y,-5px)) scale(1)}}
.secret-dialog .archive-message+.archive-message{margin-top:9px}
@media(max-width:560px){.archive-art{width:min(100%,280px)}}
@media(prefers-reduced-motion:reduce){
 .back-to-top>span{transition:none;transform:none!important}
 .phone-slide{opacity:0;transform:none}.phone-slide-first{opacity:1}
 .security-trace{display:none}
 .inventory-ink,.document-line,.support-arrow,.security-check,.help-copy,.help-idea,.help-check,.requirements-input,.requirements-route,.requirements-line,.requirements-check{opacity:1;stroke-dashoffset:0}
}

/* V29: original FM lettering, compact phone games and overlay scroll thumbs. */
.heading-lettering{display:flex;flex-wrap:wrap;align-items:center;gap:0 .36em;line-height:1.22}
.heading-word{display:block;flex:none;max-width:100%;height:1.26em;overflow:visible}
.card-body h3,.skill-list dt,#memory-title,.memory-name,.secret-card h3{color:#f5f1f8;letter-spacing:0}
#cards-grid .card-body h3{font-size:20px;line-height:1.26;font-weight:600;overflow-wrap:normal}
#cards-grid .card-wrap:not(.is-expanded) .card{height:540px;min-height:0;aspect-ratio:auto}
#cards-grid .card-front{min-height:0}
#cards-grid .art-stage{min-height:150px;flex:1 1 200px}
#cards-grid .art-stage>.illustration{height:100%;max-height:220px;min-height:0}
.skill-list dt{font-size:14px}.skill-list>div{grid-template-columns:minmax(170px,24%) minmax(0,1fr)}
#skills-title .brand-word{color:#f5f1f8}
#skills-title .brand-word:last-child{color:#b797d8}
.memory-name{font-size:clamp(8px,calc(var(--tile-w)*.105),12px);line-height:1.1;width:100%;overflow-wrap:normal}
.memory-name .heading-lettering{justify-content:center;gap:0 .26em}
.memory-name .heading-word{max-width:100%;height:1.18em}
.memory-front{padding:clamp(4px,calc(var(--tile-w)*.045),9px);gap:2px}
.memory-art{flex:1 1 60%;overflow:hidden}.memory-name{flex:0 0 auto}
.memory-art{contain:layout paint}
@media(max-width:560px){.memory-dialog[open]:not(.is-paused):not(.is-results) .memory-tile.is-open .memory-art{animation:none}}
.results-icon{display:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.overlay-scroll,.overlay-scroll *{scrollbar-width:none!important}
.overlay-scroll::-webkit-scrollbar,.overlay-scroll *::-webkit-scrollbar{width:0!important;height:0!important;display:none}
.overlay-scrollbar{position:fixed;z-index:100;width:14px;min-height:24px;cursor:grab;touch-action:none;user-select:none;border-radius:8px;opacity:0;pointer-events:none;outline-offset:0;transition:opacity .2s ease}
.overlay-scrollbar>span{display:block;width:4px;height:100%;margin:0 auto;border-radius:8px;background:#9e86b8}
.overlay-scrollbar.is-scrolling{opacity:.65;pointer-events:auto}
.overlay-scrollbar.is-scrolling:hover,.overlay-scrollbar:focus-visible{opacity:1;pointer-events:auto}.overlay-scrollbar:active{cursor:grabbing}
.overlay-scrollbar[hidden]{display:none!important}
@media(max-width:760px){.skill-list>div{grid-template-columns:1fr}}
@media(max-width:560px){
 .header{gap:10px}.header .nav{margin-left:auto;margin-right:0;gap:10px}.header-controls{gap:0}
 .header .brand-logo{width:32px;flex:none}.header .visit-counter{padding:5px 8px;flex:none}
 .header .nixie-lamp{width:12px;flex:none}.header .nixie-digits{gap:2px}.header .nav{font-size:8px}
 .header .nixie-lamp .nixie-shadow,.header .nixie-lamp .nixie-lit{font-size:19px}
 .memory-dialog{border-radius:0 0 18px 18px}.memory-dialog[open]{gap:8px}
 .memory-stage{flex:1 1 auto}.memory-top h2{font-size:20px}
 .memory-toolbar{gap:8px}.memory-metrics{gap:8px}
 #cards-grid .card-body h3{font-size:20px}
}
@media(min-width:375px) and (max-width:560px){
 .memory-top{flex-wrap:nowrap;gap:4px}.memory-top h2{font-size:18px;min-width:0;white-space:normal}
 .memory-top>.dialog-tools{order:0;width:auto;gap:4px}
 .memory-top>.dialog-tools>.results-toggle{display:grid;place-items:center;margin:0;padding:10px;width:44px;height:44px;border:1px solid #b191d42b;border-radius:50%}
 .results-toggle>span{display:none}.results-icon{display:block}
}
/* One timeline per illustration: resets happen only while the ink is hidden. */
.inventory-ink{--duration:12s;--delay:0s}
.inventory-line,.inventory-check,.inventory-sign{--delay:0s;--timing:linear;stroke-dasharray:100 102;stroke-dashoffset:101;opacity:0}
@keyframes inventory-ink{0%,82%{opacity:1}92%,100%{opacity:0}}
@keyframes inventory-sign{0%,57%{stroke-dashoffset:101;opacity:0}58%{stroke-dashoffset:101;opacity:1}75%,95%{stroke-dashoffset:0;opacity:1}96%,100%{stroke-dashoffset:101;opacity:0}}
.security-lock{--motion:security-lock;--duration:12s;animation-fill-mode:both}
@keyframes security-lock{0%,25%,70%,100%{opacity:1}25.1%,65%{opacity:0}}
@keyframes security-latch{0%,12%,82%,100%{transform:none}25%,65%{transform:translateY(-5px) rotate(18deg)}}
@keyframes security-check{0%,31%{stroke-dashoffset:101;opacity:0}42%,53%{stroke-dashoffset:0;opacity:1}60%,100%{stroke-dashoffset:0;opacity:0}}
.ios-code-reveal{--duration:10s;--timing:steps(9,end);--delay:0s;animation-fill-mode:both;width:0}
.inventory-line[data-step="0"]{--motion:inventory-line-0}
@keyframes inventory-line-0{0%,4%{stroke-dashoffset:101;opacity:0}4.1%{stroke-dashoffset:101;opacity:1}10%,95%{stroke-dashoffset:0;opacity:1}96%,100%{stroke-dashoffset:101;opacity:0}}
.inventory-check[data-step="0"]{--motion:inventory-check-0}
@keyframes inventory-check-0{0%,34%{stroke-dashoffset:101;opacity:0}34.1%{stroke-dashoffset:101;opacity:1}39%,95%{stroke-dashoffset:0;opacity:1}96%,100%{stroke-dashoffset:101;opacity:0}}
.ios-code-reveal[data-step="0"]{--motion:ios-code-row-0}
@keyframes ios-code-row-0{0%,3%{width:0}12%,49.99%{width:64px}50%,100%{width:0}}
.inventory-line[data-step="1"]{--motion:inventory-line-1}
@keyframes inventory-line-1{0%,11%{stroke-dashoffset:101;opacity:0}11.1%{stroke-dashoffset:101;opacity:1}17%,95%{stroke-dashoffset:0;opacity:1}96%,100%{stroke-dashoffset:101;opacity:0}}
.inventory-check[data-step="1"]{--motion:inventory-check-1}
@keyframes inventory-check-1{0%,40%{stroke-dashoffset:101;opacity:0}40.1%{stroke-dashoffset:101;opacity:1}45%,95%{stroke-dashoffset:0;opacity:1}96%,100%{stroke-dashoffset:101;opacity:0}}
.ios-code-reveal[data-step="1"]{--motion:ios-code-row-1}
@keyframes ios-code-row-1{0%,13%{width:0}22%,49.99%{width:64px}50%,100%{width:0}}
.inventory-line[data-step="2"]{--motion:inventory-line-2}
@keyframes inventory-line-2{0%,18%{stroke-dashoffset:101;opacity:0}18.1%{stroke-dashoffset:101;opacity:1}24%,95%{stroke-dashoffset:0;opacity:1}96%,100%{stroke-dashoffset:101;opacity:0}}
.inventory-check[data-step="2"]{--motion:inventory-check-2}
@keyframes inventory-check-2{0%,46%{stroke-dashoffset:101;opacity:0}46.1%{stroke-dashoffset:101;opacity:1}51%,95%{stroke-dashoffset:0;opacity:1}96%,100%{stroke-dashoffset:101;opacity:0}}
.ios-code-reveal[data-step="2"]{--motion:ios-code-row-2}
@keyframes ios-code-row-2{0%,23%{width:0}32%,49.99%{width:64px}50%,100%{width:0}}
@media(prefers-reduced-motion:reduce){.inventory-line,.inventory-check,.inventory-sign{opacity:1;stroke-dashoffset:0}.inventory-ink,.security-lock{opacity:1}.security-check{opacity:0}.security-latch{transform:none}.ios-code-reveal{width:64px}}

/* V30: comfortable small screens and icon-only touch games. */
@media(max-width:359px){
 .header{gap:8px}.header .nav{gap:8px}
 .header .nixie-lamp{width:11px}.header .nixie-digits{gap:1.5px}
 .header .nixie-lamp .nixie-shadow,.header .nixie-lamp .nixie-lit{font-size:18px}
}
@media(min-width:761px) and (max-width:900px){
 .hero{grid-template-columns:1fr;grid-template-areas:"intro" "portrait" "bio";grid-template-rows:auto auto auto;gap:28px;padding-block:48px 64px}
 .hero-copy,.hero-bio{width:100%;max-width:620px;justify-self:center}
 .hero-copy{text-align:center}
 .hero-copy .brand-lettering{justify-content:center;margin-inline:auto}
 .hero-wordmark .about-logo{margin-inline:auto}
 .hero-description{margin:0 auto;max-width:620px}
 .hero-portrait-column{max-width:320px;margin-bottom:8px;padding-top:0}
 .hero-bio .hero-about,.hero-bio .hero-personal{max-width:none;text-align:left;hyphens:none;font-size:16px;line-height:1.75}
 .hero-footnote{white-space:normal}
}
@media(min-width:901px) and (max-width:1050px){.hero{column-gap:32px}}
@media(max-width:1100px),(pointer:coarse){
 .memory-name{display:none}
 .memory-front{padding:8%;gap:0;justify-content:center}
 .memory-art{flex:1 1 auto;width:100%;height:100%;max-height:100%}
 .memory-art>.illustration{width:100%;height:100%;max-height:100%}
}
.touch-preview .memory-name{display:none}
.touch-preview .memory-front{padding:8%;gap:0;justify-content:center}
.touch-preview .memory-art{flex:1 1 auto;width:100%;height:100%;max-height:100%}
.touch-preview .memory-art>.illustration{width:100%;height:100%;max-height:100%}
.play-toast[data-theme]{--toast-accent:#bd9ae5;color:var(--toast-accent);border-color:color-mix(in srgb,var(--toast-accent),transparent 55%);background:color-mix(in srgb,var(--toast-accent) 7%,#0d0d10f5)}
.play-toast[data-theme="rare"]{--toast-accent:#9fbcdf}
.play-toast[data-theme="special"]{--toast-accent:#a1c9bc}
.play-toast[data-theme="legendary"]{--toast-accent:#d3b58b}
.play-toast[data-theme="gold"]{--toast-accent:#f2d89c}
.secret-notice{background:color-mix(in srgb,#bd9ae5 7%,#0d0d10f5)}
@media(prefers-reduced-motion:reduce){.overlay-scrollbar{transition:none}}

/* V32: consistent controls, quiet discovery colours and a local Matrix backdrop. */
.secret-notice[data-discovery="perfection"]{background:color-mix(in srgb,#a1c9bc 7%,#0d0d10f5);border-color:#a1c9bc73;color:#a1c9bc;box-shadow:none}
.secret-notice[data-discovery="perfection"] strong,.secret-notice[data-discovery="perfection"] p,.secret-notice[data-discovery="perfection"] button{color:inherit}
.play-drawer>summary,.play-drawer[open]>summary,.play-drawer.is-complete>summary{background:transparent}
.secret-card h3{color:#654719}
.memory-top>.dialog-tools{flex:none}
.memory-top>.dialog-tools>.results-toggle,.memory-top>.dialog-tools>#memory-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:10px;border:1px solid #b191d42b;border-radius:50%;background:transparent;margin:0}
.memory-top>.dialog-tools>#memory-close{margin-left:9px}
.memory-top .icon-button,.memory-top .sound-toggle{display:grid;place-items:center;width:44px;height:44px;padding:10px}
.results-toggle>span{display:none}.results-icon{display:block}
#memory-close svg{display:block;width:18px;height:18px}
#memory-title .memory-title-accent{color:var(--accent)}
html:not(.page-hidden) .memory-dialog[open] #memory-title .brand-sheen{animation-play-state:running!important}
#memory-status strong{font-weight:600;color:#d7c3e9;font-variant-numeric:tabular-nums}
.matrix-background{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:hidden;border-radius:inherit;pointer-events:none;fill:#8fc5b1;fill-opacity:.09}
.matrix-background .matrix-flash{fill:#b7e9cf;fill-opacity:.25;animation:matrix-flash 13s ease-in-out var(--scene-delay,0s) infinite}
.egg-reveal{position:relative;z-index:1}
@keyframes matrix-flash{0%,81%,100%{fill-opacity:.12}88%{fill-opacity:.5}94%{fill-opacity:.2}}
@media(hover:hover){
 button:not(:disabled):not([aria-disabled="true"]):not(.gem-target):not(.archive-target):hover,summary:hover{filter:brightness(1.2)}
 .memory-top button:hover,.memory-levels button:hover,.result-tabs button:hover,.memory-cover button:hover,.secret-return:hover,.language-switch button:hover{color:#ead8ff;border-color:#ba95df85;background:#bd9aff14}
 .play-drawer>summary:hover{background:transparent;color:#dfc6ff;border-color:#ba95df85}
 .play-drawer.is-complete>summary:hover{color:#f2d89c;border-color:#d7b46d}
 #memory-close:hover{color:#ff959e;border-color:#ef727e99;background:#ef727e18}
 .memory-tile:not([aria-disabled="true"]):hover .memory-back{border-color:#c5a4e2}
}
#memory-close:focus-visible{outline-color:#ef727e;color:#ff959e;border-color:#ef727e99;background:#ef727e18}
@media(max-width:374px){.memory-top>.dialog-tools{justify-content:flex-end;gap:8px}.memory-top>.dialog-tools>.results-toggle{margin-right:auto}}
@media(min-width:375px) and (max-width:560px){.memory-top h2{font-size:17px}.memory-top>.dialog-tools{gap:4px}.memory-top>.dialog-tools>#memory-close{margin-left:6px}}
@media(prefers-reduced-motion:reduce){.matrix-flash{animation:none!important}.support-arrow{opacity:1}}

/* V33: phone navigation and independent, visible-card-only architecture motion. */
@media(max-width:560px),(pointer:coarse) and (max-width:960px) and (max-height:560px){.header .nav{display:none}.header-controls{margin-left:auto}}
.architect-orbit,.architect-counter{--duration:48s}
.architect-layer{--motion:knowledge-float;--duration:6s}
.architect-code-left{--motion:architect-code-left;--duration:6s}
.architect-code-right{--motion:architect-code-right;--duration:6s}
.architect-document-line{--motion:architect-document-line;--duration:7s;stroke-dasharray:1;stroke-dashoffset:0}
.architect-cloud{--motion:architect-cloud;--duration:6s}
.architect-data{--motion:architect-data;--duration:5.6s;opacity:.45}
.architect-phone-notice{--motion:architect-phone-notice;--duration:6.4s;opacity:.45}
.architect-person{--motion:architect-person;--duration:7s}
@keyframes architect-code-left{0%,70%,100%{transform:translateX(0)}35%{transform:translateX(-1.5px)}}
@keyframes architect-code-right{0%,70%,100%{transform:translateX(0)}35%{transform:translateX(1.5px)}}
@keyframes architect-document-line{0%,12%{stroke-dashoffset:1;opacity:.3}32%,76%{stroke-dashoffset:0;opacity:1}92%,100%{stroke-dashoffset:0;opacity:.3}}
@keyframes architect-cloud{0%,100%{transform:translateY(1px)}50%{transform:translateY(-1px)}}
@keyframes architect-data{0%,70%,100%{opacity:.3}30%,40%{opacity:.95}}
@keyframes architect-phone-notice{0%,75%,100%{opacity:.3;transform:translateY(1px)}25%,55%{opacity:.9;transform:translateY(-1px)}}
@keyframes architect-person{0%,75%,100%{transform:translateY(0);opacity:.65}35%,50%{transform:translateY(-1.5px);opacity:1}}
@media(prefers-reduced-motion:reduce){.architect-document-line{stroke-dashoffset:0}}

/* V34: a levitating top plate with typed code, and smaller cloud code. */
.architect-layer-top{--motion:architect-top-float}
.architect-text-glyph{--motion:architect-type;--duration:8s;--timing:steps(1,end);animation-fill-mode:backwards;opacity:.8}
.architect-cloud-code{--motion:architect-cloud-code;--duration:6s;--delay:0s;stroke-dasharray:1;stroke-dashoffset:0}
@keyframes architect-top-float{0%,100%{transform:translateY(-8px)}50%{transform:translateY(-1px)}}
@keyframes architect-type{0%,8%{opacity:0}9%,59%{opacity:.8}60%,100%{opacity:0}}
@keyframes architect-cloud-code{0%,12%{stroke-dashoffset:1;opacity:0}42%,72%{stroke-dashoffset:0;opacity:.85}90%,100%{stroke-dashoffset:0;opacity:0}}
/* V36: equal control heights and one shared, interaction-only frame. */
.terminal-input{--terminal-control-size:52px;--terminal-control-frame:#e3e3e3;display:grid;grid-template-columns:auto minmax(0,1fr) var(--terminal-control-size)}
.terminal-input input,.terminal-input .terminal-send{height:var(--terminal-control-size);border:0;border-radius:4px;background:transparent;outline:2px solid transparent;outline-offset:0;box-shadow:none;scroll-margin-block:8px}
.terminal-send{display:grid;place-items:center;width:var(--terminal-control-size);padding:10px;color:var(--terminal-ink);cursor:pointer;transition:outline-color .18s}
.terminal-send svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.terminal-send:disabled{cursor:default}
.terminal-input input:focus,.terminal-send:not(:disabled):is(:hover,:focus-visible,:active){outline-color:var(--terminal-control-frame)}
.terminal-prompt.is-system{min-height:1.9em}
@media(max-width:760px),(pointer:coarse){.terminal-input{gap:8px}.terminal-input input{font-size:16px}}

/* Extreme records keep full values readable instead of widening the phone HUD. */
@media(max-width:560px){
 .speed-hud.has-large-values .hud-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.has-speed-hud:has(.speed-hud.has-large-values) .play-toast{bottom:112px}
}
.details-toggle{color:#95869f}
@media(pointer:coarse){.filter{min-height:32px}}
