/* Expo avatar (/avatar). Laid out on a fixed 1920x1080 stage, scaled to the monitor by avatar.js. */
:root {
  --bg: #0e1426;
  --panel: #18213f;
  --chip: #26336a;
  --ink: #ffffff;
  --sub: #aab3cf;
  --contactx: #3d7cff;
  --menren: #ff6a4d;
  --live: #ff3b3b;
  --think: #f5b82e;
  --speak: #2fbf71;
  --idle: #5a6699;
  --human: #2b6a45;
  --ring: var(--idle);
  --topic: var(--contactx);
}

* { box-sizing: border-box; margin: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; color: var(--ink); cursor: none; }
body[data-topic="menren"] { --topic: var(--menren); }

.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: var(--bg); transform-origin: 0 0; overflow: hidden; }

/* Layout: the avatar fills the stage and every text sits on a translucent panel over it. While a
   feature's picture is up (data-media) the avatar takes the left 760 px and the picture the right. */
:root { --glass: rgba(8, 14, 30, 0.62); }

/* Top left: the product, and the headline while waiting. */
.hero { position: absolute; left: 48px; top: 44px; z-index: 2; display: flex; flex-direction: column; gap: 14px; padding: 24px 32px; border-radius: 24px; background: var(--glass); backdrop-filter: blur(12px); transition: opacity 0.6s; }
.tag { align-self: flex-start; font-size: 30px; font-weight: 800; padding: 6px 20px; border-radius: 10px; background: var(--topic); }
.hero h1 { font-size: 64px; line-height: 1.15; font-weight: 900; white-space: nowrap; }
.hero h1 span { display: block; }
body:not([data-state="idle"]):not([data-state="setup"]) .hero h1, body[data-answer] .hero h1 { display: none; }
body:not([data-state="idle"]):not([data-state="setup"]) .hero, body[data-answer] .hero { padding: 14px 24px; border-radius: 18px; }
.fading .hero, .fading .pane-topic { opacity: 0; }

/* The avatar: the whole stage, or the left 760 px beside a picture. */
.avatar { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #1b3a66, #0b1426 70%); transition: width 0.5s ease; }
.robot-halo { position: absolute; width: 760px; height: 760px; border: 1px solid #3477bc40; border-radius: 50%; top: 40px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 120px #168aff18, inset 0 0 90px #168aff12; }
.robot { position: absolute; height: 100%; width: 100%; inset: 0; overflow: visible; }
.robot-body { transform: translateY(var(--robot-breath, 0px)); }
.robot-head { transform-origin: 256px 284px; transform: translateY(var(--robot-nod-y, 0px)) scaleY(var(--robot-head-scale, 1)); }
.robot-mouth-small { opacity: var(--robot-mouth-small, 0); }
.robot-mouth-open { opacity: var(--robot-mouth-open, 0); }
.robot-blink-half { opacity: var(--robot-blink-half, 0); }
.robot-blink-closed { opacity: var(--robot-blink-closed, 0); }
.robot-eye-light { opacity: var(--robot-eye-light, 1); }
.robot-light { opacity: var(--robot-glow, 0.12); }
.robot-bloom { filter: url(#robot-blue-bloom); }
body[data-media] .avatar { width: 760px; }
body[data-media] .robot { inset: auto; left: -100px; top: 0; width: 960px; height: 960px; }
body[data-media] .robot-halo { display: none; }

/* The state: the stage's border and the label at the top right. */
.stage::after { content: ""; position: absolute; inset: 0; z-index: 5; box-shadow: inset 0 0 0 10px var(--ring); pointer-events: none; }
.state-label { position: absolute; top: 48px; right: 48px; z-index: 3; font-size: 26px; font-weight: 800; padding: 8px 20px; border-radius: 10px; background: var(--ring); color: #0e1426; }

body[data-state="recording"] { --ring: var(--live); }
body[data-state="thinking"] { --ring: var(--think); }
body[data-state="speaking"] { --ring: var(--speak); }

/* Bottom: the translucent panel, one pane at a time, chosen by the state. */
.main { position: absolute; left: 48px; right: 48px; bottom: 40px; z-index: 2; padding: 28px 40px; border-radius: 24px; background: var(--glass); backdrop-filter: blur(12px); }
.pane { display: none; flex-direction: column; gap: 14px; transition: opacity 0.6s; }
body[data-state="idle"] .pane-topic,
body[data-state="speaking"] .pane-topic,
body[data-state="setup"] .pane-topic,
body[data-state="recording"] .pane-recording,
body[data-state="thinking"] .pane-thinking,
body[data-state="notice"] .pane-notice,
body[data-state="qr"] .pane-qr,
body[data-state="qr-done"] .pane-qr-done { display: flex; }
.idle-only { display: none; }
body[data-state="idle"] .idle-only, body[data-state="setup"] .idle-only { display: block; }

.card { font-size: 36px; line-height: 1.5; }
.big { font-size: 56px; font-weight: 900; line-height: 1.3; }
.live { color: var(--live); font-size: 64px; }
.think { color: var(--think); font-size: 64px; }

.flow { display: none; }
.prompt-lead { font-size: 52px; font-weight: 900; line-height: 1.3; margin-bottom: 10px; }
.examples { font-size: 34px; font-weight: 700; color: #d5dbee; }
.examples-lead { color: var(--sub); font-size: 30px; margin-right: 18px; }
.examples q { margin-right: 28px; quotes: "「" "」"; }

.pane-recording { flex-direction: row; align-items: center; gap: 40px; }
.pane-recording .card:nth-child(2) { order: 3; margin-left: auto; font-size: 40px; color: #d5dbee; }
.meter { display: flex; align-items: center; gap: 28px; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 96px; }
.bars i { width: 36px; height: 12px; border-radius: 6px; background: #3a4680; transition: height 0.08s; }
.bars i.on { background: var(--live); }
.meter-label { font-size: 34px; font-weight: 800; }
.meter-label.quiet { color: var(--think); }

/* The answer replaces the topic and thinking panes while it is up (data-answer). */
body[data-answer] .pane-topic, body[data-answer] .pane-thinking { display: none; }
body[data-answer][data-state="idle"] .pane-answer,
body[data-answer][data-state="thinking"] .pane-answer,
body[data-answer][data-state="speaking"] .pane-answer { display: flex; }
.answer { max-height: 440px; overflow: hidden; }
.answer-text { font-size: 46px; font-weight: 800; line-height: 1.5; }
.answer-next { font-size: 28px; font-weight: 700; color: var(--sub); }
body[data-state="thinking"] .answer-text { color: var(--think); }
body[data-media] .answer { max-height: 230px; }
body[data-media] .answer-text { font-size: 40px; }

/* The picture, right of the avatar. */
.answer-media { position: absolute; left: 800px; right: 48px; top: 44px; height: 660px; z-index: 2; margin: 0; display: none; flex-direction: column; gap: 16px; }
body[data-answer][data-media][data-state="idle"] .answer-media:not([hidden]),
body[data-answer][data-media][data-state="thinking"] .answer-media:not([hidden]),
body[data-answer][data-media][data-state="speaking"] .answer-media:not([hidden]) { display: flex; }
.answer-media figcaption { font-size: 40px; font-weight: 900; padding-right: 260px; }
.answer-media figcaption::before { content: "▶ "; color: var(--topic); }
.answer-media-frame { flex: 1; min-height: 0; border-radius: 20px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.answer-media-frame img, .answer-media-frame video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* QR (product page) used by the QR screen and the voice-down notice. */
.qr-img { width: 360px; height: 360px; background: #fff; border-radius: 12px; }
.qr-label { font-size: 32px; font-weight: 700; }
.notice-qr, .qr-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.notice-qr { flex-direction: row; gap: 32px; }
.notice-qr .qr-img { width: 220px; height: 220px; }

.qr-guide { font-size: 56px; font-weight: 900; line-height: 1.35; margin-bottom: 24px; }
.qr-row { display: flex; align-items: center; gap: 40px; }
.stand { width: 470px; height: 340px; border: 6px solid #fff; border-radius: 24px; background: #1d2850; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; text-align: center; }
.stand strong { font-size: 38px; }
.stand span { font-size: 30px; color: var(--sub); line-height: 1.5; }
.or { font-size: 40px; font-weight: 900; color: var(--sub); }

.done-title { font-size: 120px; font-weight: 900; color: var(--speak); margin-top: 120px; }
.done-sub { font-size: 46px; font-weight: 700; }

/* The QR screens: the avatar shrinks to the bottom left, the panel takes the rest. */
body[data-state="qr"] .avatar, body[data-state="qr-done"] .avatar { left: 48px; top: 610px; width: 300px; height: 300px; border-radius: 32px; }
body[data-state="qr"] .main, body[data-state="qr-done"] .main { left: 400px; top: 150px; bottom: 170px; }
body[data-state="qr"] .stage, body[data-state="qr-done"] .stage { background: var(--bg); }

/* The footer only carries the note on the QR screens; everything else is in the panel. */
.tel { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; background: rgba(0, 0, 0, 0.85); align-items: center; padding: 22px 72px; }
body[data-state="qr"] .tel, body[data-state="qr-done"] .tel { display: flex; }
.tel-text { font-size: 40px; font-weight: 700; color: var(--sub); }

.corner { position: absolute; right: 48px; top: 110px; z-index: 3; font-size: 22px; font-weight: 800; color: var(--sub); text-align: right; }
.corner .muted { color: var(--live); }
.camera { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

/* Staff overlays. */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); display: flex; align-items: center; justify-content: center; z-index: 10; cursor: default; }
.overlay[hidden] { display: none; }
.panel { background: #fff; color: #111; border-radius: 16px; padding: 28px 32px; width: min(720px, 92vw); max-height: 92vh; overflow: auto; font-size: 16px; line-height: 1.6; }
.panel h2 { font-size: 22px; margin-bottom: 14px; }
.panel label { display: block; font-weight: 700; }
.panel input { display: block; width: 100%; font-size: 20px; padding: 8px 10px; margin-top: 6px; }
.panel button { margin-top: 16px; font-size: 18px; padding: 10px 28px; border-radius: 8px; border: 0; background: #3d7cff; color: #fff; font-weight: 700; cursor: pointer; }
.panel .hint { color: #555; margin-top: 10px; }
.panel .mic-mode { border: 0; margin-top: 14px; }
.panel .mic-mode legend { font-weight: 700; }
.panel .mic-mode label { font-weight: 400; margin-top: 4px; }
.panel .mic-mode input { display: inline; width: auto; margin: 0 6px 0 0; }
.keys { display: grid; grid-template-columns: 9em 1fr; gap: 4px 12px; }
.keys dt { font-weight: 800; font-family: ui-monospace, monospace; }
.status { margin-top: 16px; padding-left: 18px; color: #333; }
.level { margin-top: 18px; padding: 14px 16px; border: 1px solid #ddd; border-radius: 10px; }
.level-numbers { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; }
.level-numbers strong { font-size: 30px; font-variant-numeric: tabular-nums; }
.level-scale { color: #666; font-size: 14px; }
.level-track { position: relative; height: 22px; margin-top: 8px; border-radius: 6px; background: #eee; overflow: hidden; }
.level-fill { height: 100%; width: 0; background: #b35900; transition: width 0.1s; }
.level-fill.ok { background: #1a7f37; }
.level-mark { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #111; }
.level-ticks { display: flex; justify-content: space-between; font-size: 12px; color: #666; margin-top: 2px; }
.level-hint { margin-top: 8px; font-weight: 700; }
.level-guide { margin-top: 6px; color: #555; font-size: 14px; }

.robot-preview { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 12; width: min(860px, calc(100vw - 24px)); padding: 16px 20px; background: #101e34f5; border: 1px solid #367bc6; border-radius: 16px; box-shadow: 0 8px 40px #0009; font-size: 14px; cursor: default; }
.robot-preview[hidden] { display: none; }
.robot-preview strong { margin-right: 12px; }
.robot-preview span, .robot-preview p { color: #c0cce0; }
.robot-preview div { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; align-items: center; }
.robot-preview button, .robot-preview a { padding: 8px 12px; border: 1px solid #5277a8; border-radius: 7px; background: #1d3658; color: #fff; font: inherit; cursor: pointer; text-decoration: none; }
.robot-preview button:hover, .robot-preview a:hover { background: #284c7c; }
.robot-preview :focus-visible { outline: 3px solid #89d1ff; outline-offset: 3px; }
body[data-preview="true"] { cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .robot-body, .robot-head { transform: none; }
  .robot-light { opacity: 0.25; }
}

.menren-character { display: none; }
body[data-topic="menren"] .contactx-character { display: none; }
body[data-topic="menren"] .menren-character { display: inline; }
body[data-topic="menren"] .avatar { background: #fff; }
body[data-topic="menren"] .robot-halo { display: none; }
.senpai-head { transform-origin: 235px 280px; }
.senpai-blink { opacity: calc(1 - var(--robot-eye-light, 1)); }

.senpai-mouth { opacity: calc((var(--robot-mouth-small, 0) + var(--robot-mouth-open, 0)) / 2); }
/* With a picture the top right belongs to it: the staff notes move under the product tag. */
body[data-media] .corner { right: auto; left: 48px; top: 130px; text-align: left; }

/* --- cut-in: "コンタクトエックス！" (avatar.js playCutin). Two kinds: hero (anime special move) and rock (concert parody). */
.cutin { position: absolute; inset: 0; z-index: 8; overflow: hidden; pointer-events: none; }
.cutin[hidden] { display: none; }
.cutin-art { position: absolute; inset: 0; background-size: cover; background-position: center; }
/* hero runs in phases set by avatar.js: wind-up (the band slides in, lines spin) → .cutin-hit on the shout's "エックス！"
   (flash, quake, the title slams) → .cutin-out at the end. The phases follow the recording, whatever its length. */
.cutin-hero .cutin-art { background-image: url("/avatar/media/cutin-hero.webp"); clip-path: polygon(0 18%, 100% 4%, 100% 82%, 0 96%);
  animation: cutin-band-in .45s cubic-bezier(.2, .9, .2, 1) both; }
.cutin-hero.cutin-out .cutin-art { animation: cutin-band-out .4s ease-in both; }
.cutin-hero::before { content: ""; position: absolute; inset: 0; background: rgba(4, 10, 24, .72); animation: cutin-fade-in .2s both; }
.cutin-hero.cutin-out::before { animation: cutin-fade-out .4s both; }
.cutin-lines { position: absolute; inset: -20%; opacity: 0;
  background: repeating-conic-gradient(from 0deg at 70% 50%, rgba(255, 255, 255, .55) 0deg 1.2deg, transparent 1.2deg 7deg); }
.cutin-hero .cutin-lines { opacity: .4; animation: cutin-spin 1.4s linear infinite; mix-blend-mode: screen; }
.cutin-hero.cutin-hit .cutin-lines { opacity: .6; animation-duration: .5s; }
.cutin-hero.cutin-out .cutin-lines { opacity: 0; transition: opacity .3s; }
.cutin-title { position: absolute; left: 90px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; }
.cutin-en { font: italic 900 230px/0.9 "Arial Black", "Helvetica Neue", sans-serif; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #bfefff 45%, #3d7cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 4px #0e1426; filter: drop-shadow(0 0 24px rgba(52, 214, 255, .9)) drop-shadow(8px 10px 0 #0e1426); }
.cutin-en b { font-weight: 900; background: linear-gradient(180deg, #fff 0%, #c8f53c 60%, #6fae00 100%); -webkit-background-clip: text; background-clip: text; }
.cutin-ja { white-space: nowrap; font-size: 92px; font-weight: 900; color: #fff; -webkit-text-stroke: 3px #0e1426; letter-spacing: 0.04em;
  text-shadow: 0 0 24px rgba(52, 214, 255, .9), 6px 6px 0 #3d7cff; }
.cutin-hero .cutin-en, .cutin-hero .cutin-ja { opacity: 0; }
.cutin-hero.cutin-hit .cutin-en { animation: cutin-slam-in .5s cubic-bezier(.2, 1.4, .3, 1) both; }
.cutin-hero.cutin-hit .cutin-ja { animation: cutin-pop-in .35s .12s both; }
.cutin-hero.cutin-out .cutin-title { animation: cutin-title-out .35s ease-in both; }
.cutin-hero.cutin-hit { animation: cutin-quake .45s both; }
.cutin-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.cutin-hero .cutin-flash { animation: cutin-flash-small .3s both; }
.cutin-hero.cutin-hit .cutin-flash { animation: cutin-flash-hit .45s both; }
@keyframes cutin-band-in { 0% { transform: translateX(110%) skewX(-12deg); } 75% { transform: translateX(-3%) skewX(-12deg); } 100% { transform: translateX(0) skewX(-12deg); } }
@keyframes cutin-band-out { 0% { transform: translateX(0) skewX(-12deg); } 100% { transform: translateX(-120%) skewX(-12deg); } }
@keyframes cutin-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cutin-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cutin-spin { from { transform: rotate(0); } to { transform: rotate(14deg); } }
@keyframes cutin-slam-in { 0% { opacity: 0; transform: scale(3) translateX(-10%); filter: blur(12px); } 45% { opacity: 1; transform: scale(.92); filter: none; } 70% { transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
@keyframes cutin-pop-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes cutin-title-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-40%); } }
@keyframes cutin-flash-small { 0% { opacity: .6; } 100% { opacity: 0; } }
@keyframes cutin-flash-hit { 0% { opacity: .95; } 35% { opacity: .2; } 50% { opacity: .6; } 100% { opacity: 0; } }

@keyframes cutin-dim { 0% { opacity: 0; } 8%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cutin-band { 0% { transform: translateX(110%) skewX(-12deg); } 14% { transform: translateX(-3%) skewX(-12deg); } 20%, 84% { transform: translateX(0) skewX(-12deg); }
  86% { transform: translateX(0) skewX(-12deg) scale(1.02); } 100% { transform: translateX(-120%) skewX(-12deg); } }
@keyframes cutin-lines { 0%, 10% { opacity: 0; transform: rotate(0); } 18% { opacity: .5; } 84% { opacity: .35; transform: rotate(8deg); } 100% { opacity: 0; } }
@keyframes cutin-slam { 0%, 12% { opacity: 0; transform: scale(3) translateX(-10%); filter: blur(12px); } 22% { opacity: 1; transform: scale(.94); filter: none; }
  26% { transform: scale(1.04); } 30%, 84% { transform: scale(1); opacity: 1; } 100% { opacity: 0; transform: translateX(-60%) scale(1.1); } }
@keyframes cutin-pop { 0%, 24% { opacity: 0; transform: translateY(40px); } 32%, 84% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-40%); } }
@keyframes cutin-flash { 0% { opacity: 0; } 4% { opacity: .9; } 10% { opacity: 0; } 21% { opacity: .55; } 25% { opacity: 0; } 100% { opacity: 0; } }

/* rock: full screen, strobes, shake, chrome letters */
/* rock runs in the same phases as hero: wind-up (the crowd strobes, the stage zooms in) → .cutin-hit on "エーーックス"
   (red and white strobes, quake, the chrome title slams) → .cutin-out. */
.cutin-rock .cutin-art { background-image: url("/avatar/media/cutin-rock.webp"); animation: cutin-rock-zoom 1.2s ease-out both; }
.cutin-rock.cutin-out .cutin-art { animation: cutin-fade-out .4s both; }
.cutin-rock .cutin-lines { background: radial-gradient(circle at 50% 30%, transparent 30%, rgba(80, 0, 40, .55) 75%); opacity: 1; animation: cutin-rock-pulse .5s steps(2) infinite; }
.cutin-rock.cutin-hit .cutin-lines { animation-duration: .18s; }
.cutin-rock.cutin-out .cutin-lines { opacity: 0; animation: none; }
.cutin-rock .cutin-title { left: 50%; top: auto; bottom: 150px; transform: translateX(-50%); align-items: center; }
.cutin-rock.cutin-hit .cutin-title { animation: cutin-shake .5s both; }
.cutin-rock.cutin-out .cutin-title { animation: cutin-fade-out .35s both; }
.cutin-rock .cutin-en { font: 900 240px/0.9 "Times New Roman", "Hiragino Mincho ProN", serif; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #c9c9d6 38%, #4a4a5a 50%, #f2f2ff 62%, #8a8aa0 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 3px #1a0010; filter: drop-shadow(0 0 18px #ff2a6d) drop-shadow(0 0 40px #8a2be2); }
.cutin-rock .cutin-en b { background: linear-gradient(180deg, #fff 0%, #ff4d6d 55%, #6a0018 100%); -webkit-background-clip: text; background-clip: text; font-size: 1.25em; }
.cutin-rock .cutin-ja { font-size: 84px; color: #fff; -webkit-text-stroke: 3px #3a0018; text-shadow: 0 0 20px #ff2a6d, 0 0 50px #8a2be2, 5px 5px 0 #000; }
.cutin-rock .cutin-en, .cutin-rock .cutin-ja { opacity: 0; }
.cutin-rock.cutin-hit .cutin-en { animation: cutin-rock-slam .6s cubic-bezier(.2, 1.5, .3, 1) both; }
.cutin-rock.cutin-hit .cutin-ja { animation: cutin-pop-in .35s .15s both; }
.cutin-rock .cutin-flash { background: #ff2a6d; opacity: 0; }
.cutin-rock.cutin-hit .cutin-flash { animation: cutin-rock-flash 1.2s steps(1) both; }
.cutin-rock.cutin-hit { animation: cutin-quake .9s both; }
@keyframes cutin-rock-zoom { 0% { opacity: 0; transform: scale(1.35); } 30% { opacity: 1; } 100% { opacity: 1; transform: scale(1.04); } }
@keyframes cutin-rock-pulse { 0% { opacity: .25; } 50% { opacity: .85; } }
@keyframes cutin-rock-slam { 0% { opacity: 0; transform: scale(4) rotate(-6deg); } 45% { opacity: 1; transform: scale(.9) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes cutin-rock-art { 0% { opacity: 0; transform: scale(1.35); } 8% { opacity: 1; } 80% { opacity: 1; transform: scale(1.04); } 100% { opacity: 0; transform: scale(1); } }
@keyframes cutin-rock-word { 0%, 10% { opacity: 0; transform: scale(4) rotate(-6deg); } 20% { opacity: 1; transform: scale(.9) rotate(2deg); } 26%, 84% { transform: scale(1) rotate(0); opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes cutin-rock-flash { 0% { opacity: 0; } 6% { opacity: .7; } 9% { opacity: 0; } 20% { opacity: .5; background: #fff; } 23% { opacity: 0; } 40% { opacity: .35; background: #8a2be2; } 43% { opacity: 0; } 60% { opacity: .35; } 63% { opacity: 0; } 100% { opacity: 0; } }
@keyframes cutin-strobe { 0% { opacity: .2; } 25% { opacity: .8; } 50% { opacity: .3; } 75% { opacity: .9; } 100% { opacity: 0; } }
@keyframes cutin-shake { 0%, 18% { transform: translateX(-50%); } 20% { transform: translate(-52%, 6px); } 22% { transform: translate(-48%, -6px); } 24% { transform: translate(-51%, 4px); } 26%, 100% { transform: translateX(-50%); } }
@keyframes cutin-quake { 0%, 16% { transform: none; } 18% { transform: translate(10px, -8px); } 20% { transform: translate(-12px, 6px); } 22% { transform: translate(8px, 8px); } 24% { transform: translate(-6px, -4px); } 26%, 100% { transform: none; } }
/* Reduce motion (macOS: 視差効果を減らす): no shake, strobe, flash or flying in; the picture and the words just show
   while the shout plays. Shortening the animations instead left the rock cut-in on its last frame, which is
   transparent, so it never showed (2026-11-18). */
@media (prefers-reduced-motion: reduce) {
  .cutin, .cutin * { animation: none !important; transition: none !important; }
  .cutin .cutin-art, .cutin .cutin-en, .cutin .cutin-ja, .cutin-hero::before { opacity: 1 !important; }
  .cutin-hero .cutin-art { transform: skewX(-12deg); }
  .cutin .cutin-flash, .cutin .cutin-lines { opacity: 0 !important; }
}
