*{box-sizing:border-box} :root{font-family:"Zen Maru Gothic","Hiragino Maru Gothic ProN","Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,sans-serif;color:#f6f1ff;color-scheme:dark;background:#27263f}body{margin:0;background:radial-gradient(ellipse at 30% 35%,#55557566,transparent 55%),linear-gradient(125deg,#30304b,#25253b 80%);min-height:100vh}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,summary:focus-visible{outline:2px solid #f4d4ff;outline-offset:5px}.app{max-width:1600px;margin:auto;padding:40px 42px 20px;display:grid;grid-template-columns:48% 52%;grid-template-areas:"stage title" "stage controls" "stage collection" "stage help" "development development";column-gap:0}.title{grid-area:title;padding:0 0 12px 12px}h1{font-size:clamp(25px,2.7vw,43px);font-weight:450;letter-spacing:.04em;margin:0 0 9px}h1 span{color:#d6b1f3}.title p{font-size:clamp(10px,1.1vw,17px);letter-spacing:.05em;color:#e9e1f2;margin:0;line-height:1.8}.stage{grid-area:stage;position:relative;min-width:0;overflow:hidden;min-height:770px;margin:-10px 14px 0 -42px;mask-image:linear-gradient(to bottom,#000 87%,transparent)}.portrait{position:absolute;inset:0;overflow:hidden}.reference-hero{width:100%;height:100%;display:grid;place-items:center;overflow:hidden}.reference-artwork{position:relative;width:100%;aspect-ratio:605/820;overflow:hidden;flex-shrink:0}.reference-artwork img{position:absolute;width:276.363637%;height:114.756098%;max-width:none;left:-27.272728%;top:-9.756098%;pointer-events:none}.portrait>.expression-art{position:absolute;inset:10% 0 20%;border-radius:20px;background-color:#34304a}.controls{grid-area:controls;text-align:center;padding:8px 0 18px}.microphone-row{position:relative;display:flex;align-items:center;justify-content:center;gap:25px;height:136px}.mic-button{width:116px;height:116px;border-radius:50%;border:3px solid #f9e9ff;box-shadow:0 0 10px #de9dff,0 0 25px #ae6df5,inset 0 0 20px #bd82fa;background:radial-gradient(ellipse,#9b62c8,#56366e);display:grid;place-items:center;flex-shrink:0}.mic-button svg{width:45px;height:55px;fill:#fff;stroke:white;stroke-width:2.3;stroke-linecap:round}.mic-button[aria-pressed=true]{box-shadow:0 0 14px #edc9ff,0 0 36px #ca8afa,inset 0 0 26px #edb4ff}.microphone-row canvas,.wave-mirror{width:25%;max-width:160px;height:60px}.wave-mirror{background-size:100% 100%;transform:scaleX(-1)}.instruction{font-size:21px;letter-spacing:.08em;margin:5px 0}.silence-note{font-size:12px;color:#dfc3ee;margin:5px 0}#mic-status{font-size:10px;color:#c4b5d4;margin:10px 0 0;min-height:15px}.collection{grid-area:collection;border:1px solid #a881c4;border-radius:26px;padding:17px 25px 20px;background:linear-gradient(140deg,#5b4b7160,#2b293e80);box-shadow:inset 0 0 30px #b081d311}.collection h2{font-size:20px;font-weight:450;letter-spacing:.06em;display:flex;align-items:center;gap:12px;margin:0 0 18px}.collection h2>svg{width:23px;height:23px;stroke:#e6bdff;stroke-width:2;fill:none}.collection h2>span{font-size:17px;letter-spacing:.05em;margin-left:4px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 15px}.moment{position:relative;min-width:0;margin:0;overflow:hidden;border:1px solid #aca2c175;border-radius:21px;background:#343047}.moment.current{border-color:#efceff;box-shadow:0 0 7px #d6a0ff,inset 0 0 5px #d6a0ff}.thumb{aspect-ratio:1.85;position:relative;overflow:hidden}.expression-art{width:100%;height:100%;background-image:url('/images/hey-takanosan-reference-desktop.png');background-size:1045% 1325.35%;background-repeat:no-repeat}.expression-0{background-position:60.85% 51.49%}.expression-1{background-position:76.72% 51.49%}.expression-2{background-position:92.59% 51.49%}.expression-3{background-position:60.85% 66.32%}.expression-4{background-position:76.72% 66.32%}.expression-5{background-position:92.59% 66.32%}.expression-6{background-position:60.85% 81.38%}.expression-7{background-position:76.72% 81.38%}.expression-8{background-position:92.59% 81.38%}.locked .expression-art{filter:grayscale(1) brightness(.68);opacity:.7}.moment figcaption{position:relative;text-align:center;font-size:15px;letter-spacing:.03em;line-height:1.6;padding:1px 2px 3px;background:linear-gradient(transparent,#383449)}.lock{position:absolute;right:8px;top:5px;font-size:18px;color:#ece8f3}.help{grid-area:help;margin-top:18px}.help-button{border:1px solid #c18dde;border-radius:40px;background:linear-gradient(140deg,#7c588c90,#49405990);box-shadow:0 0 15px #bd76eb25;padding:11px 29px;display:flex;align-items:center;gap:13px;font-size:17px}.help-button svg{width:25px;height:25px;stroke:#ebd8fa;stroke-width:1.7;fill:none;stroke-linecap:round}.development{grid-area:development;border-top:1px solid #ffffff15;padding:18px 0 0;margin-top:16px;color:#bfb0cd;font-size:10px;line-height:1.8}.development strong{font-weight:450}.development p{margin:4px 0}.development details{margin-top:9px}.development summary{cursor:pointer}.development button,dialog button{border:1px solid #ac88c2;border-radius:9px;background:#51415f;padding:8px 15px;margin-top:9px}dialog{background:#2d293f;border:1px solid #aa83c5;border-radius:20px;color:#f4ecfc;max-width:480px;padding:28px;line-height:1.9}dialog::backdrop{background:#111022bb;backdrop-filter:blur(5px)}dialog h2{font-size:20px;font-weight:500}.dialog-note{font-size:12px;color:#c6b6d1}@media(min-width:1400px){.stage{min-height:850px}.microphone-row{height:150px}.mic-button{width:128px;height:128px}.thumb{aspect-ratio:1.85}.collection{padding:20px 35px}}@media(max-width:760px){.app{padding:22px 20px;grid-template-columns:1fr;grid-template-areas:"title" "stage" "controls" "collection" "help" "development"}.title{padding:0;position:relative;z-index:2}h1{font-size:clamp(24px,5.4vw,37px);letter-spacing:.02em;white-space:nowrap}.title p{font-size:11px;line-height:1.8}.stage{height:470px;min-height:0;margin:0 -20px -75px;mask-image:linear-gradient(to bottom,#000 75%,transparent)}.controls{position:relative;padding:0 0 23px;z-index:2}.microphone-row{height:105px;gap:18px}.mic-button{width:100px;height:100px}.mic-button svg{width:37px;height:48px}.instruction{font-size:19px;margin-top:12px}.silence-note{font-size:10px}.microphone-row canvas,.wave-mirror{height:45px;width:24%}.collection{border-radius:23px;padding:18px 16px}.collection h2{font-size:17px;gap:9px;margin-bottom:18px}.collection h2>span{font-size:16px}.collection h2>svg{width:20px;height:20px}.grid{gap:12px 10px}.moment{border-radius:15px}.thumb{aspect-ratio:1.3}.moment figcaption{font-size:12px;padding:4px 1px 5px}.expression-art{background-size:1045% 1325.35%}.lock{font-size:16px;right:5px}.help-button{font-size:15px;padding:10px 24px}.help{margin-top:20px}.development{margin-top:24px}.portrait>.expression-art{inset:15% 5% 15%;width:90%;height:70%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

.lock svg{width:15px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

/* Each face region is 160 × 71 source pixels. Scale uniformly and crop the
   sides for narrower cards, rather than stretching its width and height. */
.thumb>.expression-art{position:absolute;top:50%;left:50%;width:max(100%,225.352113cqh);height:max(100%,44.375cqw);transform:translate(-50%,-50%)}
.thumb{container-type:size}

/* Off is visibly idle but remains clickable to request microphone access. */
.mic-button{background:#343245;border-color:#8e879f;color:#a9a2b9;box-shadow:none}
.mic-button svg{fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.mic-button .mic-icon-on{display:none}
.mic-button[aria-pressed="true"]{background:radial-gradient(ellipse,#9b62c8,#56366e);border-color:#f9e9ff;color:#fff}
.mic-button[aria-pressed="true"] .mic-icon-on{display:block}
.mic-button[aria-pressed="true"] .mic-icon-off{display:none}
.microphone-row:has(.mic-button[aria-pressed="false"]) canvas,.microphone-row:has(.mic-button[aria-pressed="false"]) .wave-mirror{opacity:.35}

h1,.collection h2{font-weight:500}button{font-weight:500}
