/* 用暖墨、象牙纸和酒红色组织舞台与操作区的层级。 */
:root {
  color-scheme: dark;
  --paper: #f6efe4;
  --ink: #30272b;
  --paper-line: #d9ccbe;
  --berry: #743d48;
  --cream: #fff1dc;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  background: #181316;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; min-height: 100svh; color: var(--cream); background: radial-gradient(ellipse at 8% 0%, #362124 0, transparent 49%), radial-gradient(ellipse at 100% 100%, #312022 0, transparent 50%), #171416; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, canvas:focus-visible, .custom-color:focus-within { outline: 3px solid #eab569; outline-offset: 3px; }
button, a { touch-action: manipulation; }
.atelier { width: min(100% - clamp(34px, 6vw, 104px), 1480px); margin-inline: auto; padding-bottom: clamp(22px, 3.7vw, 62px); }

/* 顶部保持对称，分享祝福时仍能直接回到编辑位置。 */
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; min-height: clamp(76px, 7.4vw, 108px); }
.navigation { display: flex; justify-self: start; }
.back-link, .utility-btn { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; padding: 6px 0; background: transparent; color: #e4d5c9; font-size: 14px; line-height: 1.4; text-decoration: none; }
.back-link:hover, .utility-btn:hover { color: #ffcf99; }
.back-arrow { font-family: system-ui, sans-serif; font-size: 19px; line-height: 1; }
.masthead h1 { margin: 0; display: flex; align-items: center; gap: 12px; color: #f8e8d7; font: 600 clamp(20px, 2vw, 29px)/1.3 "Songti SC", "STSong", "SimSun", serif; letter-spacing: .075em; white-space: nowrap; }
.utilities { display: inline-flex; justify-self: end; gap: 13px; align-items: center; }
.utility-btn { gap: 6px; }
.utility-btn svg, .rotate-help svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.utility-btn[aria-pressed="true"] { color: #efba7b; }
.utility-btn .sound-on, .utility-btn .motion-off, .utility-btn[aria-pressed="true"] .sound-off, .utility-btn[aria-pressed="true"] .motion-on { display: none; }
.utility-btn[aria-pressed="true"] .sound-on, .utility-btn[aria-pressed="true"] .motion-off { display: initial; }

/* 用两层糖霜和烛芯绘制工作室的小标志。 */
.brand-cake { width: 22px; height: 25px; position: relative; display: inline-block; color: #edc599; }
.brand-cake::before, .brand-cake::after, .brand-cake i, .brand-cake i::before { position: absolute; content: ""; }
.brand-cake::before { left: 1px; bottom: 2px; width: 20px; height: 5px; border: 1px solid; border-radius: 2px 2px 38% 38%; }
.brand-cake::after { left: 4px; bottom: 9px; width: 14px; height: 4px; border: 1px solid; border-radius: 50% 50% 2px 2px; }
.brand-cake i { width: 1px; height: 5px; background: currentColor; top: 6px; left: 11px; }
.brand-cake i::before { width: 3px; height: 5px; border-radius: 65% 40% 65% 40%; background: currentColor; bottom: 5px; left: -1px; transform: rotate(15deg); }

/* 编辑时将可旋转的场景和奶油色工具面板并排。 */
.workbench { display: grid; grid-template-columns: minmax(0,1.66fr) minmax(320px,.88fr); gap: clamp(14px, 1.8vw, 30px); align-items: stretch; }
.stage { position: relative; isolation: isolate; min-width: 0; min-height: 440px; overflow: hidden; border: 1px solid #59403e; border-radius: 24px; background: radial-gradient(ellipse at 50% 65%,#462e37,#1a1722 64%,#13101a); box-shadow: 0 12px 45px #09070935; }
.stage canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; outline-offset: -5px; touch-action: pan-y; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage canvas:focus-visible { outline-offset: -5px; border-radius: inherit; }
.stage-label, .rotate-help { position: absolute; pointer-events: none; color: #f5e6d7; font-size: 13px; letter-spacing: .025em; display: inline-flex; align-items: center; gap: 8px; background: #211b25ad; border: 1px solid #ffffff28; border-radius: 99px; backdrop-filter: blur(8px); }
.stage-label { left: 20px; top: 20px; padding: 7px 12px; }
.stage-label i { width: 6px; height: 6px; border-radius: 50%; background: #eab78b; box-shadow: 0 0 8px #ffbd73b0; }
.rotate-help { margin: 0; left: 20px; bottom: 18px; font-size: 12px; padding: 7px 11px; white-space: nowrap; }
.rotate-help svg { width: 17px; height: 17px; color: #e9c4ab; }
.wish-message { display: none; }

/* 纸色面板保留微浅的侧光，内容本身使用高对比墨色。 */
.editor { color-scheme: light; position: relative; min-width: 0; padding: clamp(21px,2.25vw,37px); border: 1px solid #ffeed9; border-radius: 23px; background: radial-gradient(ellipse at 100% 0%,#fff8ef 0,transparent 66%), var(--paper); color: var(--ink); box-shadow: 0 22px 50px #0c090c35; }
.editor-heading { padding: 0 0 17px; border-bottom: 1px solid var(--paper-line); }
.editor h2 { margin: 0; font: 600 clamp(26px,2.25vw,35px)/1.35 "Songti SC","STSong","SimSun",serif; letter-spacing: .045em; }
.field { display: block; min-width: 0; margin: 17px 0 0; padding: 0; border: 0; }
.field legend, .field-heading label, .message-field > label { display: block; padding: 0; margin: 0 0 8px; color: #403238; font-weight: 650; font-size: 14px; letter-spacing: .035em; }
.field-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }

/* 款式的上下两排小模型都保留完整轮廓和可读的中文名称。 */
.shapes { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.shape-choice { display: grid; gap: 3px; place-content: center; justify-items: center; width: 100%; min-width: 0; min-height: 60px; position: relative; border: 1px solid #dbcfc2; border-radius: 9px; background: #faf4eb; color: #5d4d4b; font-size: 12px; line-height: 1.25; font-weight: 500; }
.shape-choice:hover { border-color: #a17e71; background: #fff9f1; }
.shape-choice[aria-pressed="true"] { border-color: #8f5864; background: #f0e1dd; color: #623643; box-shadow: inset 0 0 0 1px #8f5864; }
.shape-choice[aria-pressed="true"]::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; right: 5px; top: 5px; background: var(--berry); }

/* 以顶部糖霜、蛋糕侧壁和烛芯组成微缩预览，款式的判断不依赖颜色。 */
.mini-cake { --top:#d5c3e9; --edge:#b49aca; --side:#8d78ad; --dust:#f9d5ac; position: relative; display: inline-block; width: 35px; height: 23px; filter: drop-shadow(0 2px 1px #39251d20); }
.mini-cake::before, .mini-cake::after, .mini-cake i, .mini-cake i::before, .mini-cake i::after { content: ""; position: absolute; }
.mini-cake::before { inset: 8px 1px 1px; border-radius: 26% 26% 49% 49% / 24% 24% 37% 37%; background: linear-gradient(90deg, var(--side),var(--edge) 50%,var(--side)); box-shadow: inset 0 -2px 0 #55303b22; }
.mini-cake::after { left: 1px; right: 1px; top: 5px; height: 10px; border-radius: 50%; background: radial-gradient(ellipse at 25% 50%,var(--dust) 0 5%,transparent 6%),radial-gradient(ellipse at 68% 30%,var(--dust) 0 7%,transparent 8%),radial-gradient(ellipse at 57% 66%,var(--dust) 0 5%,transparent 7%),linear-gradient(10deg,var(--top),var(--edge)); box-shadow: inset 0 1px 0 #ffffff75, 0 1px 0 #ffffff55; }
.mini-cake i { left: 48%; top: 2px; z-index: 1; height: 7px; width: 2px; background: #ffdfae; box-shadow: 1px 0 0 #a07e6577; }
.mini-cake i::before { left: -1px; top: -4px; width: 4px; height: 5px; border-radius: 70% 30% 60% 40%; transform: rotate(8deg); background: #d18a47; }
.galaxy .mini-cake::after { background: radial-gradient(at 27% 42%,#fff0cf 0 5%,transparent 6%),radial-gradient(at 71% 52%,#fff5db 0 6%,transparent 7%),radial-gradient(at 55% 24%,#f0a6d5 0 12%,transparent 24%),linear-gradient(15deg,#9583bf,#bca2e7 53%,#8b85b5); }
.heart .mini-cake { --side:#b96879; --edge:#f1abb0; --top:#f8c3ca; --dust:#fff0d6; }
.heart .mini-cake::before, .heart .mini-cake::after { border-radius: 0; clip-path: polygon(50% 98%,7% 58%,2% 33%,10% 11%,25% 2%,39% 7%,50% 24%,62% 7%,77% 2%,92% 12%,98% 33%,93% 56%); }
.heart .mini-cake::before { top: 8px; height: 15px; }
.heart .mini-cake::after { top: 4px; height: 14px; }
.tier .mini-cake { --side:#9caa8c; --edge:#c6d0b6; --top:#e2e6ce; }
.tier .mini-cake i { width: 21px; height: 10px; border-radius: 45% / 32%; left: 7px; top: 2px; background: linear-gradient(#e2e6cc 34%,#bec8a9 40%,#a8b792); box-shadow: 0 1px 1px #737b6670; }
.tier .mini-cake i::before { left: 3px; top: 0; width: 14px; height: 3px; border-radius: 50%; background: #e8e9ce; transform: none; }
.velvet .mini-cake { --side:#8e4155; --edge:#c67585; --top:#d48d98; --dust:#f7c0af; }
.velvet .mini-cake::before { background: repeating-linear-gradient(0deg,#a95268 1px,#ad5f71 4px,#e3a3a5 5px,#a75469 7px); }
.blossom .mini-cake { --side:#bd8d99; --edge:#e5bbc2; --top:#f2d4d3; --dust:#e897b0; }
.blossom .mini-cake i { width: 9px; height: 6px; left: 12px; top: 4px; border-radius: 50%; background: #ef95ad; box-shadow: 5px 2px #e8a0ae, 2px 4px #ee9faf,-3px 3px #f0acb7; }
.blossom .mini-cake i::before { left: 3px; top: 3px; width: 4px; height: 3px; border-radius: 50%; background: #ffe19e; }
.star .mini-cake { --side:#b5854c; --edge:#e4b97b; --top:#f1d3aa; --dust:#fff1c7; }
.star .mini-cake::before, .star .mini-cake::after { border-radius: 0; clip-path: polygon(50% 0,61% 27%,92% 15%,81% 41%,100% 55%,71% 65%,70% 92%,48% 78%,24% 99%,27% 66%,0 51%,26% 38%,18% 16%,40% 27%); }
.star .mini-cake::before { height: 15px; }
.star .mini-cake::after { height: 14px; }
.vanilla .mini-cake { --side:#bf9e72; --edge:#e6c99d; --top:#f3dfb9; --dust:#ac8c6a; }

/* 预设色用同一圆环和勾选线识别选中状态，彩环入口打开自定义取色器。 */
.colors { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(2px,.45vw,8px); }
.swatch, .custom-color { position: relative; width: 35px; height: 37px; flex-shrink: 0; display: inline-grid; place-items: center; background: none; border: 0; border-radius: 50%; padding: 0; }
.swatch::before, .custom-color::before { content: ""; width: 25px; height: 25px; border-radius: 50%; background: var(--chip); border: 1px solid #5e4c4927; }
.swatch[aria-pressed="true"]::before { outline: 1.5px solid #75525c; outline-offset: 3px; }
.swatch[aria-pressed="true"]::after { content: ""; position: absolute; width: 8px; height: 4px; border-left: 1.6px solid #473646; border-bottom: 1.6px solid #473646; transform: translateY(-1px) rotate(-45deg); }
.lilac { --chip:#c59eea; }.rose { --chip:#ea98a9; }.apricot { --chip:#efb782; }.cream { --chip:#f4deab; }.pistachio { --chip:#a1cbaa; }.mist { --chip:#93bed8; }
.custom-color { cursor: pointer; }
.custom-color::before { background: conic-gradient(#eab5a6,#ead9a6,#b7d1b6,#b3cbdc,#c3b7db,#eab5a6); }
.custom-color span { position: absolute; font-size: 15px; line-height: 17px; border-radius: 50%; width: 17px; height: 17px; text-align: center; color: #5f4b58; background: #fff7ec; }
.custom-color input { position: absolute; inset: 0; height: 100%; width: 100%; opacity: 0; cursor: pointer; }

/* 原生滑块有连续轨道，蜡烛数量用等宽数字稳定显示。 */
.count-pair { color: #7f4956; font-size: 13px; font-weight: 600; white-space: nowrap; }
.count-pair output { font: 650 16px/1.1 system-ui,sans-serif; font-variant-numeric: tabular-nums; }
#candle-count { display: block; width: 100%; height: 24px; margin: -2px 0 0; accent-color: var(--berry); cursor: pointer; }

/* 文本域留足两行编辑空间，字数限制在输入框下方始终可见。 */
.message-field { position: relative; }
#wish-text { display: block; width: 100%; min-height: 61px; padding: 9px 12px; resize: vertical; border: 1px solid #cdbeb0; border-radius: 9px; background: #fffaf2; color: var(--ink); font-size: 16px; line-height: 1.5; }
.wish-limit { display: block; margin-top: 4px; font-size: 11px; color: #76665f; text-align: right; }
.send { margin-top: 14px; min-height: 47px; width: 100%; display: flex; align-items: center; justify-content: space-between; border: 1px solid #693540; border-radius: 10px; padding: 10px 18px; background: linear-gradient(105deg,#884a55,#693743); color: #fff5e5; box-shadow: 0 3px 8px #6d35451d; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.send span:last-child { font-family: system-ui,sans-serif; font-size: 21px; line-height: 1; }
.send:hover { background: #713642; }

/* 进入祝福后让动画占据整幅舞台，返回编辑始终位于页首。 */
body[data-mode="edit"] #back-edit, body[data-mode="wish"] .archive-link, body[data-mode="wish"] .editor, body[data-mode="wish"] .stage-label, body[data-mode="wish"] .rotate-help { display: none; }
body[data-mode="wish"] .workbench { display: block; }
body[data-mode="wish"] .stage { width: 100%; min-height: 280px; height: min(calc(100svh - 125px), 850px); }
body[data-mode="wish"] .wish-message { pointer-events: none; display: block; position: absolute; left: clamp(15px,3.5vw,55px); top: clamp(15px,3.5vw,48px); width: min(82%,750px); }
#live-wish { display: inline; margin: 0; padding: .18em .4em .25em; border-radius: .28em; background: #241929a8; color: #fff2dc; box-decoration-break: clone; -webkit-box-decoration-break: clone; font: 600 clamp(19px,2.65vw,38px)/1.72 "Songti SC","STSong","SimSun",serif; letter-spacing: .06em; overflow-wrap: anywhere; }

/* 较窄桌面仍可保留左右编辑，让平板和手机顺序浏览整个工作区。 */
@media (max-width: 950px) and (min-width: 761px) {
  .atelier { width: calc(100% - 32px); }
  .workbench { grid-template-columns: minmax(0,1fr) 320px; gap: 13px; }
  .editor { padding: 20px; }
  .keyboard-hint { display: none; }
}
@media (max-width: 760px) {
  .atelier { width: min(calc(100% - 28px),600px); }
  .masthead { min-height: 68px; gap: 6px; }
  .masthead h1 { gap: 7px; font-size: 21px; }
  .workbench { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }
  .stage { min-height: 0; aspect-ratio: 1.35; border-radius: 17px; }
  .editor { border-radius: 17px; padding: 21px; }
  .stage-label { left: 12px; top: 12px; padding: 5px 9px; }
  .rotate-help { left: 12px; bottom: 11px; padding: 4px 8px; }
  .keyboard-hint, .utility-btn span, .brand-cake { display: none; }
  .utilities { gap: 2px; }
  .utility-btn { width: 38px; }
  .back-link { font-size: 13px; gap: 4px; }
  .field { margin-top: 17px; }
  .shape-choice { min-height: 61px; }
  .colors { gap: 4px; }
  body[data-mode="wish"] .atelier { width: calc(100% - 20px); }
  body[data-mode="wish"] .stage { height: auto; min-height: min(65svh,430px); aspect-ratio: 1; }
}
@media (max-width: 380px) {
  .atelier { width: calc(100% - 20px); }
  .masthead h1 { font-size: 18px; letter-spacing: .045em; }
  .utility-btn { width: 30px; }
  .editor { padding: 17px; }
  .colors { gap: 2px; }
  .swatch, .custom-color { width: 33px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .masthead { min-height: 51px; }
  body[data-mode="wish"] .stage { height: calc(100svh - 65px); min-height: 185px; }
}

/* 工艺类别用原生单选实现键盘切换，一次只展示一组可用的参数。 */
.sr-only, .finish-tab { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.finishes { font-size: 0; }
.finish-label { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; padding: 4px 9px 6px; border-bottom: 2px solid transparent; color: #786862; font-size: 13px; line-height: 1.4; cursor: pointer; }
.finish-tab:checked + .finish-label { color: #773d4a; font-weight: 650; border-color: #8b5160; }
.finish-tab:focus-visible + .finish-label { outline: 3px solid #c1894c; outline-offset: 2px; border-radius: 3px; }
.finish-panels { padding-top: 6px; border-top: 1px solid var(--paper-line); }
.finish-options { display: none; gap: 6px; }
#finish-cream:checked ~ .finish-panels #cream-options, #finish-decoration:checked ~ .finish-panels #decoration-options, #finish-plate:checked ~ .finish-panels #plate-options { display: flex; }
.finish-options button { flex: 1; min-height: 32px; padding: 4px; border: 1px solid #d8cabc; border-radius: 6px; color: #63524f; background: #fcf6ec; font-size: 12px; line-height: 1.4; }
.finish-options button[aria-pressed="true"] { color: #653846; border-color: #ae8290; background: #efdfdd; font-weight: 650; }
.finish-options button:hover { border-color: #99726f; }

/* 场景工具保留可见名称，窄屏将其收拢成一个小浮条。 */
.stage-tools { position: absolute; display: flex; gap: 2px; right: 15px; bottom: 15px; background: #211b25cf; border: 1px solid #ffffff30; border-radius: 12px; padding: 2px; backdrop-filter: blur(9px); }
.stage-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 4px 9px; border: 0; border-radius: 9px; background: transparent; color: #f6e5d7; font-size: 12px; }
.stage-tools button:hover, .stage-tools button[aria-pressed="true"] { background: #f9ceac25; color: #ffcf9a; }
.stage-tools svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
body[data-mode="wish"] .stage-tools { display: none; }
@media (max-width: 1100px) { .keyboard-hint { display: none; } }
@media (max-width: 760px) { .stage-tools { right: 9px; bottom: 9px; } .stage-tools button { padding: 4px 7px; } }
@media (max-width: 380px) { .stage-tools { gap: 0; } .stage-tools button { gap: 3px; padding: 4px 5px; } }

/* 开场只显示画面与进入工坊的入口，编辑控件在脚本初始化前即已收起。 */
.intro-actions { display: none; }
body[data-mode="intro"] { background: radial-gradient(ellipse at 10% 2%,#452b34 0,transparent 54%),radial-gradient(ellipse at 95% 96%,#3a2632 0,transparent 60%),#1a151b; }
body[data-mode="intro"] .editor, body[data-mode="intro"] #back-edit, body[data-mode="intro"] .stage-label, body[data-mode="intro"] .rotate-help, body[data-mode="intro"] .stage-tools { display: none; }
body[data-mode="intro"] .atelier { padding-bottom: max(12px,env(safe-area-inset-bottom)); }
body[data-mode="intro"] .workbench { display: flex; flex-direction: column; align-items: center; gap: 0; }
body[data-mode="intro"] .stage, body[data-mode="intro"] .intro-actions { width: min(100%, calc((100svh - 184px) * 16 / 9)); }
body[data-mode="intro"] .stage { aspect-ratio: 16/9; height: auto; min-height: 0; border-color: #675052; border-radius: 23px; background: radial-gradient(ellipse at 48% 46%,#f0d2d5 0,#e9bccc 62%,#d7a6be 100%); box-shadow: 0 14px 50px #100a182f; }
body[data-mode="intro"] canvas { cursor: default; touch-action: auto; }

/* 声音操作在画面下方左侧；进入工坊始终保持在右侧原位。 */
body[data-mode="intro"] .intro-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 1px 0; }
.intro-audio-actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; }
.intro-action, .replay-intro { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 43px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; line-height: 1.25; white-space: nowrap; }
.intro-action { padding: 8px 14px; color: #f3ded4; background: transparent; }
.intro-action svg, .replay-intro svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.intro-audio-primary { background: #f3ddd2; color: #462832; border-color: #f7e6db; font-weight: 650; }
.intro-audio-primary:hover { background: #fff0e2; }
.intro-audio-quiet { color: #e5cfc8; padding-inline: 11px; }
.intro-audio-quiet:hover { background: #f8c8b614; color: #ffebdf; }
.enter-workshop { margin-left: auto; flex: none; padding-inline: 18px; border-color: #aa8583; background: #382b32; color: #ffead9; }
.enter-workshop:hover { background: #4a3540; border-color: #dfb4a5; }
.enter-workshop span { font: 19px/1 system-ui,sans-serif; }

/* 状态明确后只保留现在可操作的声音入口，已播放和已静音均能随时切换。 */
body[data-mode="intro"][data-intro-audio="pending"] #sound,
body[data-mode="intro"][data-intro-audio="blocked"] #sound,
body[data-intro-audio="playing"] #intro-sound,
body[data-intro-audio="playing"] #intro-mute,
body[data-intro-audio="muted"] #intro-mute { display: none; }

/* 重看入口与编辑标题同行，外形轻于送出祝福按钮。 */
.editor-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 8px; }
.replay-intro { min-height: 38px; gap: 4px; padding: 5px; margin-right: -5px; border: 0; background: transparent; color: #784d55; font-size: 12px; }
.replay-intro:hover { color: #592b3a; text-decoration: underline; text-underline-offset: 3px; }
.replay-intro svg { width: 15px; height: 15px; }

/* 手机将画布调整为竖向展台，让开场和全部操作都留在首屏。 */
@media (max-width: 760px) {
  body[data-mode="intro"] .stage, body[data-mode="intro"] .intro-actions { width: 100%; }
  body[data-mode="intro"] .stage { height: min(70svh, 150vw, 670px); aspect-ratio: auto; border-radius: 17px; }
  body[data-mode="intro"] .intro-actions { gap: 3px; padding-top: 10px; }
  .intro-audio-actions { gap: 2px; }
  .intro-action { padding-inline: 10px; min-height: 42px; gap: 5px; font-size: 13px; }
  .enter-workshop { padding-inline: 11px; }
}
@media (max-width: 380px) {
  .intro-action { padding-inline: 8px; gap: 3px; font-size: 12px; }
  .enter-workshop { padding-inline: 9px; }
  .intro-action svg { width: 15px; height: 15px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  body[data-mode="intro"] .stage, body[data-mode="intro"] .intro-actions { width: min(100%, calc((100svh - 112px) * 16 / 9)); }
  body[data-mode="intro"] .stage { height: auto; min-height: 0; aspect-ratio: 16/9; border-radius: 13px; }
  body[data-mode="intro"] .intro-actions { padding-top: 4px; }
  .intro-action { min-height: 37px; padding-block: 5px; }
}
