/* Drum Up JB 2026 — guest app
   Layout (FSHKL pattern): AI-first. A visual stage illustrates whatever Ah Gu says; the chat drives it.
   Desktop: stage left, chat right. Phone: stage on top, chat below, draggable splitter between. */
:root {
  --ink: #0d0a0b;          /* poster black */
  --ink-2: #171214;
  --ink-3: #221a1d;
  --red: #ef2a50;          /* poster hot red */
  --red-deep: #b9163b;
  --gold: #f2b41e;         /* 立春 calligraphy gold */
  --mustard: #d6951c;      /* programme poster yellow */
  --skin: #d9bb8c; --skin-dark: #9c7a4c; --wood: #4a2617;
  --spring: #63b27a; --summer: #ef2a50; --autumn: #f2b41e; --winter: #9fc3e6;
  --text: #fff6ee; --muted: #c4b2a8; --dim: #8a7a72;
  --line: rgba(255, 236, 225, .12);
  --display: "Bebas Neue", "Noto Sans SC", "Arial Narrow", Impact, sans-serif;
  --display-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Archivo", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brush: "Ma Shan Zheng", "STKaiti", "KaiTi", serif;
  --r: 14px;
  --top-h: 60px;
  --stage-h: 42%;
  --chat-w: 440px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
html { touch-action: manipulation; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, a, input, [role="button"] { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.disp { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .92; text-wrap: balance; }
html[lang="zh"] .disp { font-family: var(--display-zh); font-weight: 900; letter-spacing: .02em; line-height: 1.12; }

/* ---------- shards ---------- */
.shards { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shards::before {
  content: ""; position: absolute; inset: -60%;
  background: conic-gradient(from 8deg at 50% 50%,
    var(--red) 0 17deg, var(--ink) 17deg 43deg, var(--red) 43deg 51deg, var(--ink) 51deg 86deg,
    var(--red) 86deg 122deg, var(--ink) 122deg 139deg, var(--red) 139deg 166deg, var(--ink) 166deg 204deg,
    var(--red) 204deg 212deg, var(--ink) 212deg 250deg, var(--red) 250deg 291deg, var(--ink) 291deg 317deg,
    var(--red) 317deg 332deg, var(--ink) 332deg 360deg);
  animation: spin 140s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- welcome ---------- */
.welcome { position: fixed; inset: 0; z-index: 50; display: grid; overflow: auto; background: var(--ink); transition: opacity .7s ease, transform .7s ease; }
.welcome .shards::before { inset: -80%; left: -10%; top: -95%; }
.welcome::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(13,10,11,.15), rgba(13,10,11,.72) 75%); pointer-events: none; }
.welcome.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.w-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 3vh, 28px);
  padding-block: calc(env(safe-area-inset-top, 0px) + 18px) calc(env(safe-area-inset-bottom, 0px) + 24px);
  padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); min-height: 100%; justify-content: space-between; }
.w-top { width: 100%; max-width: 980px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.w-logo { width: clamp(108px, 22vw, 150px); filter: drop-shadow(0 2px 10px rgba(0,0,0,.4)); }
.w-copy { text-align: center; max-width: 760px; display: grid; gap: 10px; }
.w-eyebrow { margin: 0; font: 700 12px/1.3 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.w-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(46px, 11vw, 104px); line-height: .88; display: grid; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.w-title b { font-weight: 400; }
.w-title span { font-size: .48em; letter-spacing: .04em; }
html[lang="zh"] .w-title { font-family: var(--display-zh); font-weight: 900; font-size: clamp(44px, 10vw, 92px); line-height: 1.02; }
html[lang="zh"] .w-title span { font-size: .42em; font-weight: 700; }
.w-sub { margin: 0; font-size: clamp(15px, 2.2vw, 18px); opacity: .92; }
.w-dates { margin: 0; font: 400 clamp(22px, 4vw, 30px)/1 var(--display); letter-spacing: .06em; color: var(--gold); }
html[lang="zh"] .w-dates { font: 700 clamp(16px, 3vw, 20px)/1.3 var(--display-zh); }
.w-drum { position: relative; width: min(64vw, 300px, 40vh); aspect-ratio: 1; border: 0; padding: 0; background: none; border-radius: 50%; display: grid; place-items: center; animation: breathe 2.6s ease-in-out infinite; }
.w-drum canvas { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 0 6px rgba(13,10,11,.6), 0 0 80px rgba(239,42,80,.35); }
.w-drum-char { position: absolute; font: 400 clamp(84px, 22vw, 150px)/1 var(--brush); color: var(--red-deep); mix-blend-mode: multiply; opacity: .88; transform: rotate(-6deg); pointer-events: none; }
.w-drum .ripple { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--gold); opacity: 0; pointer-events: none; }
.w-drum.hit { animation: hit .35s cubic-bezier(.2,.9,.3,1.4); }
.w-drum.hit .ripple { animation: ripple .9s ease-out; }
@keyframes breathe { 50% { transform: scale(1.025); } }
@keyframes hit { 0% { transform: scale(.93); } 100% { transform: scale(1); } }
@keyframes ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
.w-hint { margin: 0; text-align: center; display: grid; gap: 4px; font: 400 26px/1 var(--display); letter-spacing: .08em; }
html[lang="zh"] .w-hint { font: 900 20px/1.2 var(--display-zh); }
.w-hint small { font: 500 12px/1.3 var(--body); letter-spacing: .04em; color: var(--muted); }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(13,10,11,.7); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: 700 13px/1 var(--body); color: var(--muted); letter-spacing: .04em; transition: background .2s, color .2s; }
.seg button.on { background: var(--red); color: #fff; }
.seg.small button { padding: 7px 10px; font-size: 12px; }

/* ---------- frame ---------- */
.app { height: 100%; display: flex; flex-direction: column; }
.top { position: relative; z-index: 5; flex: none; display: flex; align-items: center; gap: 12px; height: calc(var(--top-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); background: var(--ink); border-bottom: 1px solid var(--line); }
.brand img { height: 38px; width: auto; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ag-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #ead2a6, var(--skin) 55%, var(--skin-dark)); box-shadow: inset 0 0 0 3px #3a1d12, 0 0 0 2px var(--red); flex: none; }
.ag-avatar span { font: 400 21px/1 var(--brush); color: var(--red-deep); }
.ag-avatar.thinking { animation: bob .45s ease-in-out infinite; }
@keyframes bob { 50% { transform: scale(.9); } }
.ag-who { display: grid; min-width: 0; }
.ag-who b { font: 400 20px/1 var(--display); letter-spacing: .04em; white-space: nowrap; }
.ag-who small { color: var(--muted); font-size: 11.5px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-who small i { width: 7px; height: 7px; border-radius: 50%; background: var(--spring); flex: none; }
.ag-who small i.off { background: var(--gold); }
.top-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-2); display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .x { display: none; }
#sfxBtn[aria-pressed="false"] .x, #stageBtn[aria-pressed="false"] .x { display: block; }
#sfxBtn[aria-pressed="false"] .w1, #sfxBtn[aria-pressed="false"] .w2 { display: none; }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 16px; }
.eq i { width: 3px; background: var(--gold); border-radius: 1px; height: 4px; transition: height .08s; }
#musicBtn[aria-pressed="false"] .eq i { background: var(--dim); }

.split { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.stage { position: relative; flex: none; height: var(--stage-h); min-height: 0; overflow: hidden; isolation: isolate; background: var(--ink); transition: height .35s cubic-bezier(.2,.8,.2,1); }
.split.dragging .stage { transition: none; }
.stage > .shards { z-index: -3; opacity: .55; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 30%, rgba(13,10,11,.35), rgba(13,10,11,.92) 80%); pointer-events: none; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.split.textonly .stage { height: 0 !important; }
.splitter { flex: none; height: 14px; display: grid; place-items: center; cursor: row-resize; touch-action: none; background: var(--ink); border-block: 1px solid var(--line); }
.splitter i { width: 44px; height: 4px; border-radius: 2px; background: var(--dim); }
.splitter:hover i, .split.dragging .splitter i { background: var(--gold); }

.scene-tabs { position: absolute; z-index: 3; top: 10px; left: max(10px, env(safe-area-inset-left, 0px)); right: 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.scene-tabs::-webkit-scrollbar { display: none; }
.scene-tabs button { flex: none; border: 1px solid var(--line); background: rgba(13,10,11,.72); backdrop-filter: blur(8px); border-radius: 999px; padding: 6px 12px; font: 400 16px/1 var(--display); letter-spacing: .06em; color: var(--muted); }
html[lang="zh"] .scene-tabs button { font: 700 12.5px/1.2 var(--display-zh); }
.scene-tabs button.on { background: var(--red); border-color: var(--red); color: #fff; }
.showing { position: absolute; z-index: 3; left: 50%; bottom: 12px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; display: flex; gap: 8px; align-items: center; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 700 12.5px/1 var(--body); white-space: nowrap; transition: .3s; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.showing b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); font: 400 14px/1 var(--brush); }
.showing.show { opacity: 1; transform: translate(-50%, 0); }
.scene-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; container-type: inline-size; padding: 54px max(14px, env(safe-area-inset-right, 0px)) 24px max(14px, env(safe-area-inset-left, 0px)); scroll-behavior: smooth; }
.scene { max-width: 980px; margin: 0 auto; display: grid; gap: 16px; }
.scene.enter { animation: sceneIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes sceneIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--ink); }
.log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 90%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; animation: msgIn .3s ease; font-size: 14.5px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg.me { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--ink-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; white-space: normal; }
.msg .acts button, .msg .acts a { border: 1px solid rgba(242,180,30,.45); background: rgba(242,180,30,.1); color: var(--gold); border-radius: 999px; padding: 6px 11px; font: 600 12px/1 var(--body); text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 13px 16px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.typing i { width: 4px; height: 16px; border-radius: 2px; background: var(--gold); transform-origin: bottom; animation: stick .6s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes stick { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(18deg) translateY(-3px); } }

.journey { flex: none; border-top: 1px solid var(--line); padding: 8px 0 2px; background: linear-gradient(180deg, rgba(242,180,30,.06), transparent); }
.j-head { display: flex; align-items: center; gap: 8px; padding: 0 max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px)); }
.j-head b { font: 700 10.5px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.j-head span { font: 600 11px/1 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 3px; flex: 1; min-width: 0; }
.dots i { flex: 1; max-width: 18px; height: 3px; border-radius: 2px; background: var(--ink-3); }
.dots i.done { background: var(--gold); }
.dots i.next { background: var(--red); }
.j-clear { border: 0; background: none; color: var(--dim); width: 30px; height: 26px; display: grid; place-items: center; }
.j-clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px max(14px, env(safe-area-inset-right, 0px)) 6px max(14px, env(safe-area-inset-left, 0px)); scrollbar-width: thin; }
.chips button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--ink-2); border-radius: 999px; padding: 8px 13px; font: 500 13px/1.1 var(--body); color: var(--text); display: inline-flex; gap: 7px; align-items: center; max-width: 82vw; }
.chips button .g { white-space: nowrap; font: 700 9.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.chips button.next { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.chips button.next .g { color: var(--ink); opacity: .7; }
.chips button:hover:not(.next) { border-color: var(--gold); }
.composer { flex: none; display: flex; gap: 8px; padding: 6px max(14px, env(safe-area-inset-right, 0px)) 6px max(14px, env(safe-area-inset-left, 0px)); }
.composer input { flex: 1; min-width: 0; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); color: var(--text); padding: 0 18px; font: 16px var(--body); outline: none; }
.composer input:focus { border-color: var(--gold); }
.send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--red); display: grid; place-items: center; flex: none; }
.send svg { width: 20px; height: 20px; fill: #fff; }
.send:disabled { opacity: .5; }
.credit { flex: none; text-align: center; color: var(--dim); font-size: 11px; padding: 2px 16px calc(8px + env(safe-area-inset-bottom, 0px)); }
.credit a { color: var(--muted); }
.beta { font-size: 9.5px; letter-spacing: .1em; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }

@media (min-width: 980px) {
  .split { flex-direction: row; }
  .stage { height: auto !important; flex: 1; min-width: 0; transition: none; }
  .split.textonly .stage { flex: 0; width: 0; }
  .splitter { width: 14px; height: auto; cursor: col-resize; border-block: 0; border-inline: 1px solid var(--line); }
  .splitter i { width: 4px; height: 44px; }
  .chat { flex: none; width: var(--chat-w); }
  .split.textonly .chat { flex: 1; width: auto; max-width: 820px; margin: 0 auto; }
  .scene-scroll { padding: 62px 28px 32px; }
  .scene-tabs { top: 14px; left: 18px; }
}
@media (max-width: 520px) {
  .who .ag-who small { display: none; }
  .brand img { height: 32px; }
  .ag-who b { font-size: 18px; }
}
@media (max-width: 400px) { .brand { display: none; } }

/* ---------- shared scene parts ---------- */
.eyebrow { font: 700 11px/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0; }
.h2 { font: 400 clamp(30px, 6cqi, 48px)/.95 var(--display); margin: 4px 0 0; letter-spacing: .01em; text-wrap: balance; }
html[lang="zh"] .h2 { font: 900 clamp(22px, 4.5cqi, 36px)/1.2 var(--display-zh); }
.lead { color: var(--muted); max-width: 62ch; margin: 6px 0 0; }
.head { display: grid; gap: 2px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 18px; font: 700 14px/1 var(--body); text-decoration: none; background: var(--ink-3); color: var(--text); border: 1px solid var(--line); transition: transform .15s, background .2s; }
.btn:active { transform: scale(.96); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.sm { padding: 8px 13px; font-size: 12.5px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.panel { padding: 18px; border-radius: var(--r); background: rgba(23,18,20,.88); border: 1px solid var(--line); backdrop-filter: blur(6px); display: grid; gap: 10px; min-width: 0; }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 2px var(--gold); } 100% { box-shadow: none; } }

/* home */
.hero { display: grid; gap: 14px; padding-top: 6px; }
.hero-grid { display: grid; gap: 18px; align-items: center; }
@container (min-width: 640px) { .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.hero h1 { margin: 0; font-size: clamp(46px, 11cqi, 104px); }
html[lang="zh"] .hero h1 { font-size: clamp(36px, 8cqi, 74px); }
.hero h1 small { display: block; font-size: .4em; color: var(--gold); margin-bottom: 6px; }
.hero-sub { font-size: clamp(15px, 2.4cqi, 19px); max-width: 40ch; margin: 0; }
.beat-drum { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; }
.beat-drum canvas { width: 100%; height: 100%; border-radius: 50%; display: block; box-shadow: 0 24px 50px rgba(0,0,0,.6), 0 0 60px rgba(239,42,80,.25); }
.beat-drum span { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(60px, 16cqi, 130px)/1 var(--brush); color: var(--red-deep); mix-blend-mode: multiply; opacity: .85; transform: rotate(-6deg); pointer-events: none; }
.count { display: flex; gap: 8px; flex-wrap: wrap; }
.count .c { min-width: 66px; padding: 8px 10px; border-radius: 12px; background: rgba(13,10,11,.72); border: 1px solid var(--line); text-align: center; }
.count .c b { display: block; font: 400 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.count .c span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.live-now { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--red); font-weight: 700; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }
.term-now { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); background: rgba(23,18,20,.88); border: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; }
.mini { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #ead2a6, var(--skin) 55%, var(--skin-dark)); box-shadow: inset 0 0 0 3px #3a1d12, 0 0 0 3px var(--wood); font: 400 22px/1 var(--brush); color: var(--red-deep); flex: none; }
.term-now p { margin: 0; }
.term-now .k { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.term-now .v { font: 400 24px/1.05 var(--display); }
html[lang="zh"] .term-now .v { font: 900 18px/1.3 var(--display-zh); }
.term-now .n { color: var(--muted); font-size: 13px; }

/* key message spotlight */
.spot { position: relative; padding: clamp(20px, 4cqi, 40px); border-radius: 18px; background: linear-gradient(135deg, rgba(239,42,80,.28), rgba(13,10,11,.85) 60%); border: 1px solid var(--line); overflow: hidden; display: grid; gap: 14px; min-height: 220px; align-content: center; }
.spot .brush { position: absolute; right: -2%; bottom: -10%; font: 400 clamp(140px, 34cqi, 300px)/1 var(--brush); color: var(--gold); opacity: .2; pointer-events: none; }
.spot .num { font: 400 20px/1 var(--display); letter-spacing: .1em; color: var(--gold); }
.spot p.big { margin: 0; font: 400 clamp(28px, 5.6cqi, 52px)/1.02 var(--display); max-width: 22ch; text-wrap: balance; position: relative; }
html[lang="zh"] .spot p.big { font: 900 clamp(22px, 4.2cqi, 38px)/1.35 var(--display-zh); max-width: 18em; }
.pager { display: flex; gap: 8px; align-items: center; position: relative; }
.pager button.dot { width: 28px; height: 6px; border-radius: 3px; border: 0; background: rgba(255,255,255,.2); padding: 0; }
.pager button.dot.on { background: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.stat { padding: 12px 14px; border-radius: 12px; background: rgba(23,18,20,.88); border-top: 3px solid var(--red); }
.stat:nth-child(2n) { border-top-color: var(--gold); }
.stat b { display: block; font: 400 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12.5px; }
.mean { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.mean article { padding: 18px; border-radius: var(--r); background: rgba(23,18,20,.88); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.mean .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--red); }
.mean .ic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mean h3 { margin: 0; font: 400 26px/1 var(--display); }
html[lang="zh"] .mean h3 { font: 900 18px/1.3 var(--display-zh); }
.mean p { margin: 0; color: var(--muted); font-size: 14px; }
.quote-line { font: 400 clamp(26px, 5cqi, 44px)/1 var(--display); margin: 0; max-width: 22ch; }
html[lang="zh"] .quote-line { font: 900 clamp(20px, 4cqi, 32px)/1.35 var(--display-zh); }
.timeline { display: grid; gap: 10px; }
.tl { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: rgba(23,18,20,.88); border-left: 3px solid var(--gold); }
.tl b { font: 400 30px/1 var(--display); color: var(--gold); }
.tl p { margin: 0; color: var(--muted); font-size: 14px; }

/* programme */
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.days button { flex: 0 0 auto; border: 1px solid var(--line); background: rgba(13,10,11,.75); border-radius: 12px; padding: 8px 12px; text-align: left; display: grid; gap: 1px; min-width: 70px; }
.days button b { font: 400 26px/1 var(--display); }
.days button span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.days button.on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.days button.on span { color: var(--ink); }
.day-label { font: 400 22px/1 var(--display); color: var(--muted); letter-spacing: .06em; margin: 6px 0 -4px; }
html[lang="zh"] .day-label { font: 700 15px/1.3 var(--display-zh); }
.ev { position: relative; border-radius: var(--r); background: rgba(23,18,20,.9); border: 1px solid var(--line); padding: 16px 16px 14px 20px; display: grid; gap: 8px; overflow: hidden; }
.ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); }
.ev[data-type="forum"]::before { background: var(--gold); }
.ev[data-type="camp"]::before { background: var(--spring); }
.ev-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag { font: 700 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: rgba(239,42,80,.16); color: #ff8aa1; }
.ev[data-type="forum"] .tag.t { background: rgba(242,180,30,.16); color: var(--gold); }
.ev[data-type="camp"] .tag.t { background: rgba(99,178,122,.16); color: #8fd6a2; }
.tag.st { background: var(--ink-3); color: var(--muted); }
.tag.st.now { background: var(--red); color: #fff; }
.tag.st.next { background: var(--gold); color: var(--ink); }
.ev h3 { margin: 0; font: 400 clamp(24px, 4.4cqi, 32px)/1 var(--display); }
html[lang="zh"] .ev h3 { font: 900 clamp(17px, 3.4cqi, 22px)/1.3 var(--display-zh); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--gold); font-weight: 600; font-size: 13.5px; }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.ev p { margin: 0; color: var(--muted); font-size: 14px; }
.big-card { padding: clamp(18px, 4cqi, 32px); border-radius: 18px; background: linear-gradient(135deg, rgba(239,42,80,.25), rgba(13,10,11,.88) 60%); border: 1px solid var(--line); display: grid; gap: 10px; }
.big-card.gold { background: linear-gradient(135deg, rgba(242,180,30,.25), rgba(13,10,11,.88) 60%); }
.big-card h3 { margin: 0; font: 400 clamp(28px, 5cqi, 46px)/1 var(--display); text-wrap: balance; }
html[lang="zh"] .big-card h3 { font: 900 clamp(20px, 3.8cqi, 32px)/1.3 var(--display-zh); }
.big-card p { margin: 0; color: var(--muted); }
.hotline { font: 400 clamp(28px, 5cqi, 40px)/1 var(--display); letter-spacing: .04em; user-select: all; }

/* drums */
.ring-wrap { display: grid; gap: 16px; justify-items: center; }
@container (min-width: 720px) { .ring-wrap { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: stretch; } }
.ring { position: relative; aspect-ratio: 1; width: 320px; max-width: 100%; flex: none; }
.ring .d { position: absolute; width: 10.6%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; padding: 0; border-radius: 50%; background: none; }
.ring .d canvas { width: 100%; height: 100%; display: block; border-radius: 50%; }
.ring .d span { position: absolute; inset: 0; display: grid; place-items: center; font: 400 1em/1 var(--brush); color: var(--red-deep); pointer-events: none; white-space: nowrap; }
.ring .d::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; transition: border-color .2s; }
.ring .d.sel::after { border-color: var(--gold); }
.ring .d.now::before { content: ""; position: absolute; right: -2px; top: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--ink); z-index: 1; }
.ring .d.hit { animation: dhit .32s cubic-bezier(.2,.9,.3,1.5); }
.ring .d.glow canvas { box-shadow: 0 0 22px 6px rgba(242,180,30,.55); }
@keyframes dhit { 0% { transform: translate(-50%, -50%) scale(.82); } 100% { transform: translate(-50%, -50%) scale(1); } }
.ring .season { position: absolute; inset: 13%; border-radius: 50%; background: conic-gradient(from -7.5deg, rgba(99,178,122,.24) 0 90deg, rgba(239,42,80,.24) 90deg 180deg, rgba(242,180,30,.22) 180deg 270deg, rgba(159,195,230,.22) 270deg 360deg); -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 87%); mask: radial-gradient(closest-side, transparent 86%, #000 87%); }
.ring .core { position: absolute; inset: 21%; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 6%; background: radial-gradient(circle, var(--ink-2), var(--ink) 70%); border: 1px solid var(--line); }
.ring .core .big { font: 400 calc(var(--ring) * .2)/1 var(--brush); color: var(--gold); }
.ring .core .en { font: 400 calc(var(--ring) * .05)/1 var(--display); letter-spacing: .04em; }
.ring .core .dt { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.seasons { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.seasons i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.person-tile { text-align: left; border: 1px solid var(--line); background: rgba(23,18,20,.88); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.person-tile b { display: block; font: 400 22px/1 var(--display); }
html[lang="zh"] .person-tile b { font: 900 16px/1.3 var(--display-zh); }
.person-tile small { color: var(--gold); font-size: 12px; font-weight: 600; }
.ph { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #ead2a6, var(--skin) 55%, var(--skin-dark)); box-shadow: inset 0 0 0 3px #3a1d12, 0 0 0 3px var(--wood); font: 400 26px/1 var(--brush); color: var(--red-deep); flex: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.group { box-shadow: inset 0 0 0 3px #3a1d12, 0 0 0 3px var(--red); }
.spotlight { display: grid; gap: 18px; align-items: center; }
@container (min-width: 620px) { .spotlight { grid-template-columns: auto minmax(0, 1fr); } }
.spotlight .ph { width: clamp(130px, 28cqi, 220px); height: auto; aspect-ratio: 1; font-size: clamp(60px, 13cqi, 110px); box-shadow: inset 0 0 0 6px #3a1d12, 0 0 0 6px var(--wood), 0 20px 50px rgba(0,0,0,.5); margin: 0 auto; }
.spotlight .ph.group { box-shadow: inset 0 0 0 6px #3a1d12, 0 0 0 6px var(--red), 0 20px 50px rgba(0,0,0,.5); }
.spotlight h3 { margin: 0; font: 400 clamp(36px, 7cqi, 64px)/.95 var(--display); }
html[lang="zh"] .spotlight h3 { font: 900 clamp(24px, 5cqi, 40px)/1.25 var(--display-zh); }
.spotlight .role { color: var(--gold); font-weight: 700; margin-top: 6px; }
.spotlight p { margin: 0; color: var(--text); opacity: .9; }
.more-people { display: flex; gap: 8px; flex-wrap: wrap; }
.more-people button { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: rgba(23,18,20,.88); border-radius: 999px; padding: 4px 12px 4px 4px; font: 600 12.5px/1 var(--body); }
.more-people .ph { width: 28px; height: 28px; font-size: 14px; box-shadow: inset 0 0 0 2px #3a1d12; }

/* pad */
.pad { display: grid; gap: 14px; justify-items: center; }
@container (min-width: 640px) { .pad { grid-template-columns: auto minmax(0, 1fr); align-items: center; } }
.big-drum { position: relative; width: min(70cqi, 300px); aspect-ratio: 1; border-radius: 50%; touch-action: none; user-select: none; cursor: pointer; }
.big-drum canvas { width: 100%; height: 100%; border-radius: 50%; display: block; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.big-drum .zone-label { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); font: 700 10px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: rgba(74,38,23,.65); pointer-events: none; white-space: nowrap; }
.spark { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--red); pointer-events: none; animation: spark .55s ease-out forwards; }
@keyframes spark { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(3); } }
.pad-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 440px; }
.pad-btns button { border: 1px solid var(--line); background: rgba(23,18,20,.9); border-radius: 14px; padding: 14px 6px; display: grid; gap: 4px; justify-items: center; font: 400 20px/1 var(--display); letter-spacing: .05em; transition: transform .08s, background .2s; user-select: none; touch-action: none; }
html[lang="zh"] .pad-btns button { font: 900 15px/1.2 var(--display-zh); }
.pad-btns button small { font: 500 11px/1.2 var(--body); color: var(--muted); letter-spacing: 0; }
.pad-btns button.down { transform: scale(.94); background: var(--red); }
.pad-btns .wide { grid-column: span 3; background: linear-gradient(90deg, var(--red-deep), var(--red)); border-color: var(--red); }
.pad-hint { color: var(--muted); font-size: 12.5px; text-align: center; margin: 0; }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.posters button { border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: var(--ink-2); aspect-ratio: 1 / 1.414; max-width: 100%; }
.posters img { width: 100%; height: 100%; object-fit: cover; }

/* misc */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(5,4,4,.9); }
.lightbox img { max-height: 90vh; width: auto; border-radius: 8px; }
.lb-close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 26px; line-height: 1; }
.toast { position: fixed; left: 50%; top: calc(var(--top-h) + env(safe-area-inset-top, 0px) + 12px); transform: translate(-50%, -10px); opacity: 0; pointer-events: none; background: var(--gold); color: var(--ink); font-weight: 700; padding: 9px 16px; border-radius: 999px; z-index: 60; transition: .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.seg button { white-space: nowrap; }
.ag-who b { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 440px) {
  .top { gap: 8px; }
  .top-tools { gap: 4px; }
  .icon-btn { width: 34px; height: 34px; }
  .seg.small button { padding: 7px 8px; }
  .ag-avatar { width: 34px; height: 34px; }
  .who { flex: 1; }
}

/* ---------- v1.2: sound panel ---------- */
.sound-wrap { position: relative; }
.sound-btn .muted { display: none; }
.sound-btn.off .eq { display: none; }
.sound-btn.off .muted { display: block; color: var(--dim); }
.sound-btn[aria-expanded="true"] { border-color: var(--gold); }
.sound-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: min(300px, calc(100vw - 24px)); padding: 14px; border-radius: 16px; background: rgba(23,18,20,.97); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.55); backdrop-filter: blur(12px); display: grid; gap: 12px; transform-origin: top right; }
.sound-pop.in { animation: popIn .28s cubic-bezier(.2,.9,.3,1.2); }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(-6px); } }
.sp-title { margin: 0; font: 700 10.5px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.sp-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.sp-row input { grid-column: 2; }
.sp-tog { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-3); display: grid; place-items: center; color: var(--dim); transition: .2s; }
.sp-tog[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.sp-tog svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sp-l { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; min-width: 0; }
.sp-l b { font-size: 13px; }
.sp-l small { color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sound-pop input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--gold) var(--v, 50%), var(--ink-3) var(--v, 50%)); outline: none; }
.sound-pop input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f4dfb5, var(--skin) 60%, var(--skin-dark)); border: 2px solid var(--wood); box-shadow: 0 2px 8px rgba(0,0,0,.5); cursor: pointer; }
.sound-pop input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--skin); border: 2px solid var(--wood); cursor: pointer; }
.sp-foot { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- portraits ---------- */
.portrait { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px rgba(242,180,30,.35); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.portrait.group { box-shadow: 0 0 0 1px rgba(239,42,80,.5); }
.portrait.big { width: clamp(170px, 32cqi, 290px); margin: 0 auto; box-shadow: 0 0 0 2px var(--gold), 0 24px 60px rgba(0,0,0,.55); }
.portrait.big img { animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-2%); } }
.people { grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); }
.pcard { position: relative; border: 0; padding: 0; background: none; border-radius: 14px; text-align: left; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.5); }
.pcard:hover img { transform: scale(1.06); }
.pcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(180deg, transparent, rgba(11,8,9,.94) 60%); display: grid; gap: 3px; }
.pcap b { font: 400 22px/1 var(--display); letter-spacing: .02em; }
html[lang="zh"] .pcap b { font: 900 15px/1.3 var(--display-zh); }
.pcap small { color: var(--gold); font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- partners & sponsors ---------- */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.sp-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 16px; background: rgba(23,18,20,.9); border: 1px solid var(--line); text-decoration: none; color: inherit; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s; min-width: 0; }
a.sp-card:hover { transform: translateY(-4px); border-color: rgba(242,180,30,.6); box-shadow: 0 16px 34px rgba(0,0,0,.45); }
.sp-card.featured { background: linear-gradient(140deg, rgba(242,180,30,.16), rgba(23,18,20,.92) 55%); border-color: rgba(242,180,30,.45); }
.sp-card.featured::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,240,200,.12) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.sp-logo { height: 92px; border-radius: 10px; display: grid; place-items: center; background: rgba(13,10,11,.8); overflow: hidden; padding: 10px; }
.sp-logo img { width: 100%; height: 100%; object-fit: contain; }
.sp-tier { font: 700 10px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.sp-name { font-size: 15px; line-height: 1.3; }
.sp-blurb { color: var(--muted); font-size: 13px; }
.sp-visit { font-size: 12px; color: var(--gold); font-weight: 700; }
.partner-line { opacity: .85; }

/* ---------- pad: two wide buttons ---------- */
.pad-btns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pad-btns .wide, .pad-btns .wide2 { grid-column: span 2; background: linear-gradient(90deg, var(--red-deep), var(--red)); border-color: var(--red); }
.pad-btns .wide2 { background: linear-gradient(90deg, #a8740f, var(--gold)); border-color: var(--gold); color: var(--ink); }
.pad-btns .wide2 small { color: rgba(13,10,11,.7); }

/* ---------- motion: staggered entrances & life ---------- */
.scene.enter { animation: none; }
.scene.enter > * { animation: rise .65s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.scene.enter :is(.people, .mean, .stats, .sp-grid, .timeline, .more-people, .posters, .pad-btns, .count) > * { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(120ms + var(--j, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.scene.enter .ring .d { animation: dpop .5s cubic-bezier(.2,.9,.3,1.4) both; animation-delay: calc(150ms + var(--k, 0) * 22ms); }
@keyframes dpop { from { opacity: 0; transform: translate(-50%, -50%) scale(.3); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.ring .d.hit { animation: dhit .32s cubic-bezier(.2,.9,.3,1.5) !important; }
.ring .core .big { animation: glowText 4s ease-in-out infinite; }
@keyframes glowText { 50% { text-shadow: 0 0 24px rgba(242,180,30,.45); } }
.count .c b.tick { animation: tick .45s cubic-bezier(.2,.9,.3,1.3); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } }
.chips.in > * { animation: chipIn .45s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--j, 0) * 60ms); }
@keyframes chipIn { from { opacity: 0; transform: translateX(14px) scale(.96); } }
.chips button.next { position: relative; overflow: hidden; }
.chips button.next::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 3.8s ease-in-out 1s infinite; }
.btn, .chips button, .scene-tabs button, .icon-btn { transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, border-color .2s, box-shadow .2s; }
.btn:hover, .chips button:hover, .scene-tabs button:hover { transform: translateY(-1px); }
.icon-btn:active, .chips button:active, .scene-tabs button:active { transform: scale(.94); }
.term-now, .ev, .mean article, .person-tile { transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.term-now:hover, .ev:hover { transform: translateY(-2px); border-color: rgba(242,180,30,.35); }
.msg.bot { animation: botIn .45s cubic-bezier(.2,.8,.2,1); transform-origin: left bottom; }
@keyframes botIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.msg.me { animation: meIn .35s cubic-bezier(.2,.8,.2,1); transform-origin: right bottom; }
@keyframes meIn { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.msg .acts > * { animation: chipIn .4s cubic-bezier(.2,.9,.3,1.2) both; }
.ag-avatar { transition: box-shadow .3s; }
.beat-drum { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -6px; } }
.spot .brush { animation: brushIn 1.2s cubic-bezier(.2,.8,.2,1) both .2s; }
@keyframes brushIn { from { opacity: 0; transform: translateY(20px) rotate(-6deg) scale(.9); } }
.showing.show b { animation: spinIn .6s cubic-bezier(.2,.9,.3,1.3); }
@keyframes spinIn { from { transform: rotate(-120deg) scale(.4); } }
@media (prefers-reduced-motion: reduce) {
  .scene.enter > *, .scene.enter :is(.people, .mean, .stats, .sp-grid, .timeline, .more-people, .posters, .pad-btns, .count) > *, .scene.enter .ring .d, .chips.in > * { animation: none !important; }
  .portrait.big img, .beat-drum, .sp-card.featured::after, .chips button.next::after { animation: none !important; }
}

/* ---------- v1.4: Ah Gu speaking ---------- */
.ag-avatar.speaking { cursor: pointer; animation: speak 1.1s ease-in-out infinite; }
@keyframes speak { 0%, 100% { box-shadow: inset 0 0 0 3px #3a1d12, 0 0 0 2px var(--red), 0 0 0 0 rgba(242,180,30,.55); } 50% { box-shadow: inset 0 0 0 3px #3a1d12, 0 0 0 2px var(--gold), 0 0 0 7px rgba(242,180,30,0); } }
.msg.bot.speaking { border-color: rgba(242,180,30,.55); box-shadow: 0 0 0 1px rgba(242,180,30,.25); }
.msg .acts button.listen { border-color: var(--line); background: var(--ink-3); color: var(--text); }
.msg.bot.speaking .acts button.listen { background: var(--gold); color: var(--ink); border-color: var(--gold); }
