@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #eeefed;
  --muted: #81888f;
  --faint: #4d5860;
  --accent: #d4e78e;
  --line: rgba(206, 224, 232, .12);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { background: #05090e; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; height: 220vh; color: var(--ink); background: #05090e; }
button, input { font: inherit; }
button, a, input, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button { touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .5; }
button, a, input { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, .dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 5px; }
button { -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
::selection { background: #d4e78e; color: #101610; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

#nebula { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; touch-action: none; cursor: grab; }
#nebula:active { cursor: grabbing; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 9, 14, .6) 0, transparent 19%, transparent 80%, rgba(5, 9, 14, .7) 100%), linear-gradient(90deg, rgba(5, 9, 14, .38), transparent 25%, transparent 67%, rgba(5, 9, 14, .18)); }
.ui { z-index: 2; transition: opacity .35s ease, visibility .35s ease; }
.topbar { position: fixed; top: 0; left: 32px; right: 32px; height: 88px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 29px; height: 29px; color: var(--accent); }
.wordmark { display: flex; align-items: center; font-size: 20px; font-weight: 540; letter-spacing: 3.6px; }
.brand-description { margin-left: 21px; padding-left: 21px; border-left: 1px solid var(--line); color: #959ea5; font-size: 11px; font-weight: 400; letter-spacing: 2px; }
.header-coordinate { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 9px; letter-spacing: 1.8px; color: #616d76; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #a3abb1; transition: background .2s, color .2s; }
.icon-button:hover { color: white; background: #ffffff0c; }
.icon-button[aria-pressed="true"] { color: var(--accent); }
.play-triangle { display: none; }
#pause.is-paused .pause-bars { display: none; }
#pause.is-paused .play-triangle { display: block; }
.action-divider { height: 16px; width: 1px; margin: 0 10px 0 3px; background: var(--line); }
.immersive-button { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 2px 0 6px; border: 0; background: transparent; color: #b3bcc1; font-size: 11px; letter-spacing: 1px; }
.immersive-button:hover { color: var(--accent); }

.studio-panel { position: fixed; right: 32px; top: 132px; width: 298px; max-height: calc(100dvh - 223px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #91a78166 transparent; padding: 20px 23px 19px; border: 1px solid rgba(191, 211, 221, .14); border-radius: 13px; background: linear-gradient(140deg, rgba(18, 26, 33, .85), rgba(9, 15, 21, .79)); box-shadow: 0 20px 80px #00000020, inset 0 1px 0 #ffffff02; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); transition: transform .36s ease, opacity .28s ease, visibility 0s; scroll-padding-top: 64px; }
.studio-panel { overflow-x: hidden; }
.studio-panel::-webkit-scrollbar { width: 3px; }
.studio-panel::-webkit-scrollbar-thumb { background: #91a78166; border-radius: 3px; }
.panel-heading { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-heading::before { content: ""; position: absolute; inset: -26px -25px -3px; z-index: -1; background: #101820f5; pointer-events: none; }
.panel-close { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 0; margin-right: -10px; border: 0; border-radius: 7px; background: transparent; color: #9eadab; transition: color .2s, background .2s; }
.panel-close:hover { color: var(--accent); background: #d4e78e0a; }
.panel-edge-toggle { position: fixed; top: 50%; right: 338px; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 44px; min-width: 44px; height: 110px; padding: 10px 0; border: 1px solid #a6bdc42b; border-radius: 8px; background: #101a23dc; color: #aabbad; box-shadow: 0 8px 30px #0003; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: right .36s ease, background .2s, color .2s, opacity .35s, visibility .35s; }
.panel-edge-toggle > span { writing-mode: vertical-rl; text-orientation: upright; font-size: 10px; letter-spacing: 2px; }
.panel-edge-toggle > svg { flex: 0 0 auto; transition: transform .3s ease; }
.panel-edge-toggle:hover { color: var(--accent); background: #17241ff2; }
.panel-collapsed .studio-panel { transform: translateX(calc(100% + 64px + env(safe-area-inset-right, 0px))); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .36s ease, opacity .28s ease, visibility 0s linear .36s; }
.panel-collapsed .panel-edge-toggle { top: 50%; right: max(0px, env(safe-area-inset-right, 0px)); bottom: auto; width: 44px; height: 110px; padding: 10px 0; flex-direction: column; transform: translateY(-50%); border-right: 0; border-radius: 8px 0 0 8px; }
.panel-collapsed .panel-edge-toggle > svg { transform: rotate(180deg); }
.panel-collapsed .panel-edge-toggle > span { writing-mode: vertical-rl; text-orientation: upright; }
.section-kicker { display: block; color: #84928d; font-family: var(--mono); font-size: 8px; letter-spacing: 1.7px; }
h2 { font-size: 18px; font-weight: 460; letter-spacing: .9px; margin: 9px 0 0; }
.panel-description { margin: 8px 0 18px; color: #7e8b94; font-size: 10px; letter-spacing: .4px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 36px; padding: 3px; border: 1px solid #a7c2d010; border-radius: 6px; background: #00000029; }
.tab { position: relative; border: 0; background: transparent; border-radius: 4px; font-size: 10px; letter-spacing: .7px; color: #7a8993; transition: color .2s, background .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #c8ded31c; color: #e4e9dc; box-shadow: 0 1px 4px #00000020, inset 0 1px 0 #ffffff0a; }
.content-editor { padding-top: 20px; min-height: 169px; }
.field-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 11px; color: #c2cacf; letter-spacing: .5px; }
.field-meta { color: #7b8a94; font-family: var(--mono); font-size: 7px; letter-spacing: 1px; }
#text-input { display: block; width: 100%; height: 43px; padding: 0 12px; border-radius: 5px; border: 1px solid #bdcedc21; background: #050b104d; color: #e5e9e9; font-size: 13px; letter-spacing: 2px; transition: border-color .2s, background .2s; }
#text-input:hover { border-color: #bdcedc42; }
#text-input:focus { border-color: #d4e78e75; background: #050b1070; }
#text-input::placeholder { color: #84929b; font-size: 10px; letter-spacing: .2px; }
.field-hint { margin: 9px 0 13px; color: #8b9aa5; font-size: 9px; line-height: 1.65; letter-spacing: .15px; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 39px; padding: 0 13px; border: 1px solid #e2edb5; border-radius: 5px; background: var(--accent); color: #24301d; font-size: 11px; letter-spacing: .8px; transition: background .2s, transform .2s, box-shadow .2s; }
.primary-button > span:last-child { font-size: 19px; line-height: 1; }
.primary-button:hover { background: #e0efb0; box-shadow: 0 0 24px #d4e78e10; }
.primary-button:active { transform: translateY(1px); }
.settings-divider { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; margin-top: 2px; border-top: 1px solid var(--line); color: #75858f; font-size: 9px; letter-spacing: 1px; }
.settings-divider > span:last-child { color: #7d927a; font-size: 16px; }
.settings { margin-top: 14px; }
.range-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 0; margin-bottom: 16px; font-size: 10px; color: #a7b2b9; letter-spacing: .45px; }
.range-field output { color: #b2c2b0; font-family: var(--mono); font-size: 9px; letter-spacing: 0; }
input[type="range"] { display: block; grid-column: 1 / -1; width: 100%; height: 19px; margin: -8px 0; border: 0; border-radius: 9px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 9px; background: linear-gradient(to right, #aab990 0, #aab990 var(--range-progress), #a6bbcc25 var(--range-progress), #a6bbcc25 100%); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 9px; background: linear-gradient(to right, #aab990 0, #aab990 var(--range-progress), #a6bbcc25 var(--range-progress), #a6bbcc25 100%); }
input[type="range"]::-webkit-slider-thumb { width: 9px; height: 9px; margin-top: -3px; border-radius: 50%; background: #d9e6b7; border: 1px solid #e6efcd; box-shadow: 0 0 0 4px #d4e78e00; -webkit-appearance: none; appearance: none; transition: box-shadow .2s; }
input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; background: #d9e6b7; border: 1px solid #e6efcd; }
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 4px #d4e78e12; }
input[type="range"]:focus-visible { outline-offset: 7px; }
.palette-field { display: flex; align-items: center; justify-content: space-between; min-height: 31px; margin-top: -2px; color: #a7b2b9; font-size: 10px; letter-spacing: .45px; }
.palettes { display: flex; gap: 6px; }
.palette { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid transparent; border-radius: 50%; padding: 4px; background: transparent; transition: border-color .2s; }
.palette:hover { border-color: #a3b4be66; }
.palette[aria-pressed="true"] { border-color: #d4e78e99; }
.palette span { display: block; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px #ffffff1a; }
.starlight span { background: linear-gradient(135deg, #b7dcf0, #e5e5d3 50%, #bd8c57); }
.ice span { background: linear-gradient(135deg, #e1f0f4, #75b6d5 65%, #597c9d); }
.amber span { background: linear-gradient(135deg, #ffebba, #c78c55 65%, #8b522f); }
.burst-button { display: flex; width: 100%; height: 39px; align-items: center; gap: 9px; margin-top: 14px; padding: 0 11px; border: 1px solid #b1c5d021; border-radius: 5px; background: #b1c5d004; font-size: 10px; color: #b7c2c8; letter-spacing: .6px; transition: background .2s, border-color .2s; }
.burst-button > svg { color: #9eb78b; }
.burst-button:hover { border-color: #b1c5d047; background: #b1c5d00a; }
.burst-cycle { margin-left: auto; color: #83978c; font-size: 16px; line-height: 1; }
.shape-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 58px; align-content: start; gap: 5px; padding: 3px 2px 3px 0; overflow: visible; }
.shape-button { display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; height: 58px; padding: 6px 2px; border: 1px solid #aec5d21c; border-radius: 5px; background: #040a1036; color: #a4b2bb; font-size: 9px; transition: color .2s, border-color .2s, background .2s; }
.shape-button svg { width: 25px; height: 25px; flex: 0 0 auto; }
.shape-button:focus-visible { outline-offset: -3px; }
.shape-button:hover { border-color: #b7c7b655; color: #c8d7c0; }
.shape-button[aria-pressed="true"] { border-color: #d4e78e77; color: #d4e3b5; background: #d4e78e0a; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 117px; gap: 10px; border: 1px dashed #afc5cf40; border-radius: 5px; background: #03090f33; cursor: pointer; transition: background .2s, border-color .2s; }
.dropzone svg { color: #a8be9b; }
.dropzone > span { color: #b2c2c9; font-size: 11px; letter-spacing: .5px; }
.dropzone > small { margin-top: -4px; color: #8b9ca6; font-size: 8px; letter-spacing: .3px; }
.dropzone:hover, .dropzone.dragover, .dropzone.drag-over { border-color: #d4e78e88; background: #d4e78e09; }
#image-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#image-status { margin-bottom: 0; }

.bottom-bar { position: fixed; left: 32px; right: 32px; bottom: 0; height: 70px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #b8d0df0d; }
.universe-status { display: flex; align-items: center; gap: 9px; color: #87989e; font-size: 9px; letter-spacing: .4px; }
.live-dot { width: 4px; height: 4px; border-radius: 50%; background: #bfd68d; box-shadow: 0 0 9px #bfd68d45; }
.status-divider { margin: 0 3px; color: #47535e; }
#particle-count { color: #566874; font-family: var(--mono); font-size: 8px; letter-spacing: 1.1px; }
.interaction-hint { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 11px; color: #82919a; white-space: nowrap; font-size: 9px; letter-spacing: .8px; }
.interaction-hint svg { opacity: .75; }
.interaction-hint i { margin: 0 10px; font-style: normal; color: #4c606b; }
.phase { display: flex; align-items: center; gap: 11px; color: #98aaa9; font-size: 9px; letter-spacing: .5px; }
.phase-line { height: 1px; width: 27px; background: linear-gradient(90deg, #d4e78e88 40%, #788e9644 40%); }
.phase-index { margin-left: 6px; color: #596c77; font-family: var(--mono); font-size: 8px; }

.toast { position: fixed; bottom: 89px; left: 50%; transform: translate(-50%, 8px); z-index: 10; width: max-content; max-width: calc(100% - 32px); padding: 12px 19px; border: 1px solid #c5dab02b; border-radius: 7px; background: #152022eb; backdrop-filter: blur(16px); color: #d7e2d1; box-shadow: 0 8px 35px #0004; font-size: 11px; letter-spacing: .5px; pointer-events: none; opacity: 0; transition: opacity .25s, transform .25s; }
.toast.show, .toast.visible, .toast:not([hidden]) { opacity: 1; transform: translate(-50%, 0); }
#exit-immersive { position: fixed; right: 28px; top: 26px; display: flex; align-items: center; gap: 8px; z-index: 5; height: 37px; padding: 0 12px; border: 1px solid #c5d6df22; border-radius: 5px; background: #0a111ab0; color: #b7c2c8; backdrop-filter: blur(10px); font-size: 10px; }
#exit-immersive > span { color: #6c7b86; font-family: var(--mono); font-size: 8px; margin-left: 8px; }
.immersive .ui { opacity: 0; visibility: hidden; pointer-events: none; }
.immersive #exit-immersive { display: flex !important; }
.error-screen { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: #05090e; }
.error-screen > div { max-width: 380px; text-align: center; }
.error-star { color: var(--accent); font-size: 40px; }
.error-screen h2 { margin-top: 24px; font-size: 22px; }
.error-screen p { color: #8b9ba5; font-size: 13px; line-height: 1.9; }

@media (min-width: 701px) {
  .studio-panel { display: block; }
  .content-editor { min-height: 0; padding-bottom: 12px; overflow: visible; }
  .tab-panel { display: block; }
  .range-field { grid-template-columns: 54px minmax(0, 1fr) 36px; gap: 0 9px; margin-bottom: 10px; }
  .range-field > label { grid-column: 1; grid-row: 1; }
  .range-field > output { grid-column: 3; grid-row: 1; text-align: right; }
  .range-field > input { grid-column: 2; grid-row: 1; margin: 0; }
}
@media (min-width: 1600px) {
  .topbar { left: 44px; right: 44px; height: 100px; }
  .studio-panel { width: 318px; top: 158px; right: 44px; padding: 26px 25px 22px; }
  .panel-edge-toggle { right: 370px; }
  .range-field { margin-bottom: 15px; }
  .bottom-bar { left: 44px; right: 44px; height: 80px; }
}
@media (max-height: 810px) and (min-width: 701px) {
  .topbar { height: 72px; }
  .studio-panel { top: 100px; max-height: calc(100dvh - 170px); padding: 14px 21px 12px; }
  .panel-heading { margin-bottom: 10px; }
  .panel-heading h2 { margin-top: 0; }
  .section-kicker { display: none; }
  .panel-description { display: none; }
  .content-editor { padding-top: 12px; padding-bottom: 6px; min-height: 0; }
  .field-label { margin-bottom: 8px; }
  #text-input { height: 40px; }
  .field-hint { margin: 6px 0 9px; }
  .primary-button { height: 37px; }
  #shape-panel > .field-label { display: none; }
  .settings-divider { height: 1px; padding-top: 0; margin-top: 6px; }
  .settings-divider > span { display: none; }
  .settings { margin-top: 8px; }
  .range-field { margin-bottom: 7px; }
  .burst-button { height: 37px; margin-top: 10px; }
  .dropzone { height: 103px; }
  .bottom-bar { height: 55px; }
}
@media (max-height: 690px) and (min-width: 701px) {
  .studio-panel { top: 89px; max-height: calc(100dvh - 139px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #718a7140 transparent; }
}
@media (max-width: 1080px) and (min-width: 701px) {
  .header-coordinate { display: none; }
  .studio-panel { width: 278px; right: 24px; padding-left: 20px; padding-right: 20px; }
  .panel-edge-toggle { right: 310px; }
  .interaction-hint { left: 49%; font-size: 8px; gap: 7px; }
  .interaction-hint i { margin: 0 6px; }
  #particle-count, .status-divider { display: none; }
}
@media (max-width: 700px) {
  .topbar { left: 20px; right: 20px; height: 70px; }
  .brand { gap: 9px; }
  .brand-mark { width: 25px; height: 25px; }
  .wordmark { font-size: 17px; letter-spacing: 2.5px; }
  .brand-description, .header-coordinate, .action-divider, .immersive-button > span { display: none; }
  .header-actions { gap: 2px; }
  .icon-button { width: 32px; height: 36px; }
  .immersive-button { width: 32px; justify-content: center; padding: 0; }
  .studio-panel { width: calc(100% - 32px); top: auto; bottom: 63px; right: 16px; padding: 18px 20px; max-height: 45dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; border-radius: 11px; background: linear-gradient(140deg, #121a21ed, #090f15e8); }
  .studio-panel::-webkit-scrollbar { display: none; }
  .panel-edge-toggle { top: auto; right: 16px; bottom: calc(45dvh + 71px); width: auto; height: 44px; min-height: 44px; padding: 0 13px; flex-direction: row; transform: none; }
  .panel-edge-toggle > span { writing-mode: horizontal-tb; font-size: 10px; letter-spacing: .7px; }
  .panel-heading { align-items: center; }
  .panel-heading > div { display: flex; flex-direction: row-reverse; align-items: baseline; gap: 13px; }
  .section-kicker { font-size: 6px; letter-spacing: 1px; }
  h2 { margin: 0; font-size: 15px; letter-spacing: .7px; }
  .panel-description { margin: 8px 0 15px; font-size: 9px; }
  .tabs { height: 37px; }
  .content-editor { min-height: 0; padding: 19px 0; }
  .field-label { font-size: 11px; }
  .field-meta { font-size: 7px; }
  #text-input { height: 44px; }
  .field-hint { margin: 8px 0 11px; }
  .primary-button { height: 40px; }
  .settings-divider { margin-top: 0; }
  .settings { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin-top: 18px; }
  .range-field { margin-bottom: 20px; gap: 14px 0; }
  .palette-field { grid-column: 1 / -1; margin-top: -8px; }
  .burst-button { margin-top: 1px; height: 41px; }
  .shape-grid { gap: 7px; }
  .dropzone { height: 121px; }
  .bottom-bar { left: 20px; right: 20px; height: 52px; }
  .universe-status { gap: 6px; font-size: 8px; }
  #particle-count { font-size: 6px; letter-spacing: .5px; }
  .status-divider { margin: 0 1px; }
  .interaction-hint { display: none; }
  .phase { gap: 7px; font-size: 8px; }
  .phase-line { width: 15px; }
  .phase-index { display: none; }
  .toast { bottom: auto; top: 82px; font-size: 10px; padding: 10px 15px; }
  #exit-immersive { top: 20px; right: 20px; }
}
@media (max-width: 370px) {
  .topbar { left: 16px; right: 16px; }
  .section-kicker { display: none; }
  .studio-panel { padding: 17px; }
  #particle-count, .status-divider { display: none; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .topbar { top: 0; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); height: calc(52px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }
  .brand-mark { width: 25px; height: 25px; }
  .wordmark { font-size: 17px; letter-spacing: 2.5px; }
  .brand-description, .header-coordinate, .action-divider, .immersive-button > span { display: none; }
  .header-actions { gap: 2px; }
  .icon-button, .immersive-button { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .studio-panel { display: block; top: calc(62px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(300px, calc(100vw - 72px)); height: auto; max-height: calc(100dvh - 78px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); padding: 10px 18px 16px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #91a78177 transparent; border-radius: 10px; }
  .studio-panel::-webkit-scrollbar { display: block; width: 3px; }
  .panel-heading { top: 0; min-height: 44px; margin-bottom: 10px; }
  .panel-heading::before { inset: -14px -18px -4px; }
  .panel-heading > div { display: block; }
  .panel-heading h2 { margin: 0; font-size: 16px; }
  .panel-close { margin-right: -8px; }
  .section-kicker, .panel-description { display: none; }
  .tabs { height: 38px; }
  .content-editor { display: block; min-height: auto; height: auto; max-height: none; padding: 12px 0 14px; flex: none; overflow: visible; }
  .tab-panel { display: block; min-height: auto; height: auto; max-height: none; flex: none; overflow: visible; }
  #shape-panel > .field-label { display: none; }
  .shape-grid { height: auto; min-height: 0; max-height: none; grid-auto-rows: 58px; gap: 6px; flex: none; overflow: visible; }
  .shape-button { height: 58px; }
  .settings-divider { height: 1px; padding: 0; margin-top: 0; }
  .settings-divider > span { display: none; }
  .settings { display: block; margin-top: 14px; }
  .range-field { grid-template-columns: 54px minmax(0, 1fr) 36px; gap: 0 9px; margin-bottom: 10px; }
  .range-field > label { grid-column: 1; grid-row: 1; }
  .range-field > output { grid-column: 3; grid-row: 1; text-align: right; }
  .range-field > input { grid-column: 2; grid-row: 1; height: 24px; margin: 0; }
  .palette-field { margin-top: 0; }
  .burst-button { height: 42px; margin-top: 10px; }
  .panel-edge-toggle { top: 50%; right: calc(min(300px, calc(100vw - 72px)) + max(16px, env(safe-area-inset-right, 0px)) + 8px); bottom: auto; width: 44px; height: 110px; padding: 10px 0; flex-direction: column; transform: translateY(-50%); }
  .panel-edge-toggle > span { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 2px; }
  .bottom-bar { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); height: calc(28px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bottom-bar .phase { display: none; }
  .interaction-hint { font-size: 8px; }
  .toast { top: calc(60px + env(safe-area-inset-top, 0px)); bottom: auto; }
  #exit-immersive { top: max(10px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
