@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/releases/6a29b7cb0ae1/fonts/be-vietnam-pro-v12-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/releases/6a29b7cb0ae1/fonts/be-vietnam-pro-v12-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/releases/6a29b7cb0ae1/fonts/be-vietnam-pro-v12-500-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/releases/6a29b7cb0ae1/fonts/be-vietnam-pro-v12-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/releases/6a29b7cb0ae1/fonts/be-vietnam-pro-v12-600-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/releases/6a29b7cb0ae1/fonts/be-vietnam-pro-v12-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root{color-scheme:light;--warm-0:#fffaf1;--warm-1:#eee8dc;--warm-2:#c9bead;--warm-3:#8b7e6c;--warm-4:#635a4c;--warm-5:#342f28;--accent:#725139;--error:#8e3424;--success:#526b4c;--festival-gold:#c8964a;--festival-thread:rgba(90,58,15,.4);--festival-banner:#3d1a0a;--festival-banner-text:#fdf0de;--paper:var(--warm-1);--ink:var(--warm-5);--muted:var(--warm-4);--line:var(--warm-2);--button:var(--warm-5);--button:color-mix(in srgb,var(--warm-5) 72%,var(--accent));--button-text:var(--warm-0);font-family:'Be Vietnam Pro',sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;font-size:15px;background:var(--warm-1);color:var(--ink)}button,input,select{font:inherit}button,select,input[type=email]{min-height:44px}button,a,input,select{-webkit-tap-highlight-color:transparent}button{border:1px solid var(--line);border-radius:12px;padding:12px 12px;background:var(--warm-0);color:var(--ink);cursor:pointer;touch-action:manipulation}button:hover{background:var(--warm-1)}button:disabled{opacity:.55;cursor:default}button.primary{font-size:17px;background:var(--button);border-color:var(--button);color:var(--button-text)}button.primary:hover{background:var(--accent)}:focus-visible{outline:3px solid var(--accent);outline:3px solid color-mix(in srgb,var(--accent) 72%,var(--warm-5));outline-offset:3px}button[aria-pressed=true]{border-color:var(--accent);background:var(--warm-2);color:var(--warm-5)}a{color:inherit}h1,h2,p{margin:0}h1{font-weight:500;font-size:24px;line-height:1.4}h2{font-size:24px;font-weight:500}#app{max-width:470px;margin:auto;min-height:100svh;background:var(--paper);box-shadow:none;box-shadow:0 0 70px color-mix(in srgb,var(--warm-5) 8%,transparent);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}#app input,#app textarea,#app select,#app [contenteditable=true]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}#app img,#app canvas,#app svg{-webkit-user-drag:none}.topbar{min-height:70px;display:flex;align-items:center;justify-content:space-between;padding:8px 20px;gap:12px}.wordmark{text-decoration:none;font-size:24px;font-weight:500;letter-spacing:-.5px}.wordmark span{display:block;font-size:13px;letter-spacing:.5px;margin-top:4px;color:var(--muted)}.utilities{display:flex;gap:8px;align-items:center}.utilities select{border:0;background:transparent;color:var(--ink);padding:8px}.quiet{background:transparent;font-size:13px;padding:8px}.stage{position:relative;width:100%;aspect-ratio:941/1672;isolation:isolate;overflow:hidden;background:var(--warm-3)}.stage>#scene,.stage>svg{position:absolute;inset:0;width:100%;height:100%}.stage>svg{pointer-events:none}.scene-heading{position:absolute;top:22px;left:20px;right:20px;text-align:center;color:var(--warm-0);text-shadow:0 1px 6px var(--warm-5);padding:12px 8px;background:var(--warm-5);background:color-mix(in srgb,var(--warm-5) 42%,transparent);border-radius:6px;pointer-events:none}#eyebrow{font-size:13px;letter-spacing:.5px;text-transform:none;margin-bottom:7px}#subtitle{font-size:13px;line-height:1.7;margin-top:7px}.entry-overlay{position:absolute;bottom:24px;left:24px;right:24px;display:flex;flex-direction:column;align-items:center;gap:12px}.entry-overlay .primary{min-width:190px}.entry-overlay .entry-caption{background:var(--warm-1);background:color-mix(in srgb,var(--warm-1) 95%,transparent);padding:8px 12px;border-radius:6px;font-size:13px;text-align:center;color:var(--warm-5)}.preview{width:72px;height:100px;object-fit:contain}.visitor-choice{display:flex;align-items:center;justify-content:center;gap:12px}.stage-note{position:absolute;bottom:22px;left:24px;right:24px;text-align:center;font-size:15px;color:var(--warm-5)}.stage-note:not(:empty){background:var(--warm-1);background:color-mix(in srgb,var(--warm-1) 93%,transparent);padding:8px;border:1px solid var(--warm-2);border-radius:6px}.loading{position:absolute;inset:0;background:var(--warm-1);background:color-mix(in srgb,var(--warm-1) 88%,transparent);display:grid;place-items:center;color:var(--accent);z-index:4}.loading[hidden]{display:none}.controls{padding:16px 20px 12px;min-height:115px}.action-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.action-nav button{font-size:15px;padding:12px 4px;min-height:55px;border-radius:6px}.action-nav button .nav-mark{display:block;font-size:15px;font-family:Georgia,serif;margin-bottom:5px;color:var(--accent)}.row{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:12px}.choice-row{display:flex;gap:4px;justify-content:center}.choice-row button{flex:1}.section-label{text-align:center;font-size:13px;color:var(--muted);letter-spacing:.4px}.timer{font-variant-numeric:tabular-nums;font-size:44px;font-weight:400;text-align:center;letter-spacing:3px}.count{font-variant-numeric:tabular-nums;font-size:20px;text-align:center;letter-spacing:2px}.text-button{background:none;border:0;font-size:15px;text-decoration:underline;text-underline-offset:4px;padding:8px 4px}.progress{height:3px;background:var(--warm-2);border-radius:6px;overflow:hidden}.progress>span{height:100%;display:block;background:var(--warm-3);transition:width 1s linear}.notice{text-align:center;min-height:18px;padding:0 20px;font-size:13px;line-height:1.6}footer{text-align:center;padding:12px 16px 20px;color:var(--muted);font-size:13px;line-height:1.7}footer span{display:block}footer button{color:var(--muted)}#sound-controls{padding:8px 20px;display:flex;align-items:center;gap:12px;font-size:15px}#sound-controls[hidden]{display:none}#sound-controls input{flex:1;min-height:44px}.bead-control{display:block;position:relative;width:200px;height:170px;min-height:44px;margin:auto;border:0;border-radius:50%;background:transparent;touch-action:none}.bead-control svg{width:100%;height:100%;overflow:visible}.bead-control .bead-dot{fill:var(--accent);stroke:var(--accent);stroke-width:1}.bead-control .current{fill:var(--warm-3);stroke:var(--warm-5);stroke-width:2}.bead-control span{position:absolute;inset:0;display:grid;place-content:center;font-size:20px;font-variant-numeric:tabular-nums}.ambient-label{font-size:15px;color:var(--muted)}select.ambient{min-height:44px;background:var(--warm-0);border:1px solid var(--line);border-radius:6px;padding:8px}.completion{border-top:1px solid var(--line);padding-top:16px;text-align:center;line-height:1.8}.completion p{font-size:15px;margin-bottom:12px}.smoke{fill:none;stroke:var(--warm-1);stroke-width:3;stroke-linecap:round;opacity:.6;animation:smoke 9s ease-in-out infinite}.halo-pulse{animation:halo 10s ease-in-out infinite;transform-origin:center}.fire{fill:var(--warm-2)}.error-inline{color:var(--error);font-size:13px;line-height:1.6}dialog{border:1px solid var(--line);border-radius:12px;background:var(--warm-1);color:var(--ink);padding:0;width:calc(100% - 32px);max-width:430px;max-height:90svh;overflow:auto;box-shadow:none;box-shadow:0 20px 80px color-mix(in srgb,var(--warm-5) 20%,transparent)}dialog::backdrop{background:var(--warm-5);background:color-mix(in srgb,var(--warm-5) 76%,transparent)}.modal-inner{padding:24px}.close{display:block;margin:0 0 14px auto;font-size:15px;padding:8px 12px}.modal-inner h2{margin-bottom:18px}.modal-inner p{line-height:1.8;margin-bottom:14px;font-size:15px}.modal-inner form{display:flex;flex-direction:column;gap:12px}.modal-inner label{font-size:15px;line-height:1.7}.modal-inner input[type=email]{width:100%;padding:12px;border:1px solid var(--warm-3);border-radius:6px;background:var(--warm-0)}.consent{display:flex;gap:8px;align-items:flex-start}.consent input{min-width:22px;min-height:22px;margin:4px 0}.share-preview{display:block;width:100%;max-height:55svh;object-fit:contain;margin-bottom:14px}.small{font-size:13px;color:var(--muted)}[hidden]{display:none!important}body[data-period=night]{--paper:var(--warm-5);--ink:var(--warm-1);--muted:var(--warm-2);--line:var(--warm-4);--button:var(--warm-2);--button-text:var(--warm-5);background:var(--warm-5)}body[data-period=night] .controls button:not(.primary){background:var(--warm-5);color:var(--warm-1)}body[data-period=night] .scene-heading{background:var(--warm-5);background:color-mix(in srgb,var(--warm-5) 65%,transparent)}body[data-period=night] .utilities button{color:var(--warm-1)}body[data-period=night] dialog{--ink:var(--warm-5);--muted:var(--warm-4);--line:var(--warm-2);--button:var(--warm-5);--button-text:var(--warm-0)}body[data-period=night] .ambient{background:var(--warm-5);color:var(--warm-1)}
@keyframes smoke{0%,100%{transform:translate(0,0);opacity:.35}50%{transform:translate(9px,-15px);opacity:.65}}@keyframes halo{0%,100%{opacity:.025}50%{opacity:.14}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(min-width:700px){#app{margin:24px auto;border:1px solid var(--line);border-radius:12px;overflow:hidden}.topbar{padding:16px 24px}.stage{max-height:calc(100svh - 260px);width:auto;aspect-ratio:941/1672;margin:auto}.controls{max-width:470px;margin:auto}.legal-page{max-width:470px;min-height:calc(100vh - 48px);border:1px solid var(--line);box-shadow:none;box-shadow:0 0 70px color-mix(in srgb,var(--warm-5) 8%,transparent)}}@media(max-width:360px){.topbar{padding:8px 12px}.controls{padding:12px 12px}.action-nav button{font-size:15px}}

#heading:focus{outline:none}.consent{min-height:44px;cursor:pointer}.consent input{width:24px;height:24px}#zalo-link{display:inline-flex;align-items:center;min-height:44px}

.scene-heading{background:var(--warm-5);background:color-mix(in srgb,var(--warm-5) 72%,transparent)}

.wordmark{display:flex;flex-direction:column;justify-content:center;min-height:44px}
.nav-icon{display:block;width:24px;height:24px;margin:0 auto 5px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.share-preview{max-height:none}
body[data-period=night] button{opacity:1;background:var(--warm-5);color:var(--warm-0);border-color:var(--warm-3)}
body[data-period=night] button:hover{background:var(--warm-4);color:var(--warm-0)}
body:is([data-period=night],[data-period=dusk]) button.primary{font-size:17px;background:var(--accent);color:var(--warm-0)}
body:is([data-period=night],[data-period=dusk]) button.primary:hover{background:var(--accent);color:var(--warm-0)}
body:is([data-period=night],[data-period=dusk]) button[aria-pressed=true]{background:var(--accent);color:var(--warm-0);border-color:var(--warm-2)}
body[data-period=night] button:disabled{opacity:1;background:var(--warm-4);color:var(--warm-1);border-color:var(--warm-3);cursor:not-allowed}
#eyebrow{text-transform:none}.legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.legal-links a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}.legal-page{font-size:13px;max-width:470px;margin:24px auto;padding:24px;line-height:1.8;background:var(--paper)}.legal-page p,.legal-page h2{margin:16px 0}/* The scene and visitor are already composited in one canvas; keep FX on its exact transform. */
html:has(#app),body:has(#app){height:100%;overflow:hidden;overscroll-behavior:none}
body:has(#app){--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}
#app{position:relative;height:var(--app-height,100dvh);min-height:0;max-width:470px;margin:0 auto;overflow:hidden;border-radius:6px}
.stage{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;margin:0}
.stage>#scene,.stage>svg{inset:auto;left:50%;top:50%;width:max(100%,calc(var(--app-height,100dvh) * 941 / 1672));height:auto;aspect-ratio:941/1672;transform:translate(-50%,-50%)}
.scene-heading{top:calc(10px + var(--safe-top));left:calc(12px + var(--safe-left));right:calc(12px + var(--safe-right));padding:8px 12px}
h1{font-size:24px;line-height:1.35}#eyebrow{font-size:13px;margin-bottom:3px}#subtitle{margin-top:4px;line-height:1.5}
.controls{position:absolute;bottom:0;left:0;right:0;margin:0;max-width:none;min-height:0;padding:8px calc(12px + var(--safe-right)) calc(8px + var(--safe-bottom)) calc(12px + var(--safe-left));background:var(--warm-1);background:color-mix(in srgb,var(--warm-1) 91%,transparent);backdrop-filter:blur(8px);border-radius:12px;text-align:center}
.stack{gap:4px}.row{gap:4px}.controls button{padding:8px 8px;font-size:15px}.controls .text-button{padding:8px;min-height:44px}.controls .action-nav button{padding:4px 4px;font-size:15px}.timer{font-size:44px}.count{font-size:20px}.bead-control{height:125px;width:160px}.preview{height:84px;width:58px}.completion{padding-top:0;border:0}.completion p{margin-bottom:6px}.stage-note{bottom:35%;font-size:15px}.notice{position:absolute;bottom:30%;left:12px;right:12px;padding:0;min-height:0;background:var(--paper);border-radius:6px}.notice:empty{display:none}
body[data-view=entry] .scene-heading{background:none;text-shadow:0 1px 5px var(--warm-5);color:var(--warm-0);top:calc(22px + var(--safe-top))}body[data-view=entry] #eyebrow,body[data-view=entry] #subtitle{display:none}body[data-view=entry] .controls{background:var(--warm-1);background:color-mix(in srgb,var(--warm-1) 75%,transparent);padding-top:16px}body[data-view=entry] .primary{min-width:190px}
button.primary,button[aria-pressed=true]{background:var(--accent);color:var(--warm-0);border-color:var(--accent)}button.primary:hover,button[aria-pressed=true]:hover{background:var(--accent);color:var(--warm-0)}
body[data-period=night] .controls{background:var(--warm-5);background:color-mix(in srgb,var(--warm-5) 93%,transparent)}body[data-period=dusk] .controls{background:var(--warm-1);background:color-mix(in srgb,var(--warm-1) 93%,transparent)}
#more-menu .topbar{padding:0;min-height:44px}#more-menu .wordmark{display:none}#more-menu .utilities{width:100%;justify-content:space-between}#more-menu footer{padding:8px 0 0}#more-menu #sound-controls{padding:4px 0}
body[data-period=night] dialog{color:var(--warm-5)}dialog{overscroll-behavior:contain}#more-menu .utilities button{color:var(--warm-5);background:var(--warm-0)}
@media(max-height:700px){.scene-heading{padding:4px 8px}#subtitle{font-size:13px}.stack{gap:4px}.controls{padding-top:8px}.controls .section-label{font-size:13px}.timer{font-size:44px}.bead-control{height:112px}.nav-icon{margin-bottom:2px}}
.stage::before{content:"";position:absolute;inset:-10px;background-image:var(--scene-image);background-position:center;background-size:cover;filter:blur(10px);opacity:.65}
.stage>#scene,.stage>svg{width:var(--scene-width,100%);top:var(--scene-top,0px);transform:translateX(-50%)}
body[data-view=sit] .controls{min-height:260px}
body:is([data-period=night],[data-period=dusk]) .controls button[aria-pressed=true]{background:var(--accent);color:var(--warm-0)}
/* Round 2: permanent sound controls and a shared recording-backed wooden fish. */
.corner-button{position:absolute;top:calc(10px + var(--safe-top));width:44px;height:44px;min-height:44px;border-radius:50%;padding:8px;background:var(--accent)!important;color:var(--warm-0)!important;border-color:var(--warm-2);z-index:8}
.corner-button svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#sound-toggle{right:calc(10px + var(--safe-right))}#more-toggle{left:calc(10px + var(--safe-left))}
.scene-heading,body[data-view=entry] .scene-heading{top:calc(10px + var(--safe-top));left:calc(62px + var(--safe-left));right:calc(62px + var(--safe-right));padding:8px;background:var(--warm-5);background:color-mix(in srgb,var(--warm-5) 72%,transparent);border-radius:6px}
.scene-heading h1{font-size:24px}.scene-heading #eyebrow{display:none}#subtitle{font-size:13px}
#audio-status,#sound-hint{position:absolute;right:calc(10px + var(--safe-right));top:calc(79px + var(--safe-top));z-index:9;width:min(112px,60%);max-width:60%;background:var(--warm-1);color:var(--warm-5);padding:8px 8px;border-radius:6px;font-size:13px;line-height:1.45;text-align:left;pointer-events:none}
#audio-status:empty{display:none}#sound-hint{transition:opacity .3s}
.action-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.controls .action-nav button{min-height:50px;padding:4px;font-size:15px}.nav-icon{width:21px;height:21px;margin-bottom:2px}
.calendar-entry{position:absolute;right:calc(12px + var(--safe-right));bottom:calc(100% + 8px);z-index:6;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid var(--warm-4);border-radius:6px;background:var(--warm-1);color:var(--warm-5);font-size:15px;text-decoration:none;box-shadow:0 2px 8px color-mix(in srgb,var(--warm-5) 18%,transparent)}body[data-period=night] .calendar-entry{border-color:var(--warm-2);background:var(--warm-5);color:var(--warm-1)}
.controls{z-index:5}.stage::before{filter:none;opacity:1;inset:0;background-size:cover}
.legal-links{flex-direction:column;align-items:stretch;gap:0;text-align:left}.legal-links a{justify-content:flex-start;padding:8px 0}
#more-menu .utilities{justify-content:flex-start}#more-menu .utilities label{flex:1}
#wood-prop{position:absolute;z-index:4;border:0;padding:0;background:transparent!important;touch-action:manipulation;color:transparent}
body[data-view=mo] .controls{min-height:25%;display:flex;align-items:center;justify-content:center}body[data-view=mo] .controls .stack{width:100%;gap:8px}#daily-wood{font-size:20px;letter-spacing:0}#wood-message{font-size:13px;min-height:18px}
body[data-view=sit] .stage-note[data-breath]{bottom:34%;color:var(--warm-0);background:var(--warm-5);background:color-mix(in srgb,var(--warm-5) 47%,transparent);border:0;text-shadow:0 1px 4px var(--warm-5);font-size:13px;letter-spacing:.4px}
.breath-controls{display:flex;align-items:center;justify-content:center;gap:4px}.breath-controls>button{flex:1}.breath-controls .choice-row{flex:1}.breath-controls .choice-row button{padding-inline:4px}
@media(max-height:600px){body[data-view=sit] .controls .stack{gap:4px}.breath-controls button,.ambient-options button{min-height:44px;padding-block:4px}}
/* Round 3: one shared panel and three button levels. */
button,select,input[type=email],.controls button,.controls .text-button,.corner-button{min-height:48px}
button{white-space:nowrap}button:active{transform:scale(.98)}
.controls{padding:12px 12px calc(12px + var(--safe-bottom));border-radius:12px}
body[data-view=sit] .controls,body[data-view=mo] .controls{min-height:0;display:block}
.controls .stack,body[data-view=mo] .controls .stack{gap:8px}
.controls button{font-size:15px;border-color:var(--accent)}
.controls [data-action=home]{display:block;min-width:180px;margin:0 auto;text-decoration:none;background:transparent;color:var(--ink);border:1px solid var(--line)}
.controls .row:has([data-action=home]){flex-wrap:wrap}
body:not([data-view=mo]) .controls .row:has([data-action=home]){flex-direction:column}
.controls .row:has([data-action=home])>button{width:100%}
body[data-view=mo] .controls .row>button{flex:1;min-width:0}
.scene-heading,body[data-view=entry] .scene-heading{left:66px;right:66px;padding:8px;min-height:70px;top:calc(10px + var(--safe-top))}
.scene-heading #eyebrow,body[data-view=entry] #eyebrow,body[data-view=entry] #subtitle{display:block;font-size:13px;letter-spacing:.5px}
.scene-heading h1{font-size:24px}.corner-button{width:48px;height:48px;top:calc(23px + var(--safe-top))}
.timer{font-size:44px;line-height:1.2}.count{font-size:20px;letter-spacing:0}.ambient-options{flex:1}.ambient-label{display:none}
#daily-wood{font-size:20px;line-height:1.4}#wood-message:empty{display:none}.leave-message{margin-bottom:12px}
.stage{background:var(--paper)}.stage::before{background-image:var(--entry-tiny);background-size:cover;filter:blur(6px);transform:scale(1.03)}
.stage.scene-ready::before{background-image:var(--scene-image);filter:none;transform:none}
.stage>.scene-surface{position:absolute;left:50%;height:auto;aspect-ratio:941/1672;transform:translateX(-50%);pointer-events:none}
.loading{inset:auto;top:57%;left:50%;width:230px;transform:translate(-50%,-50%);background:transparent;color:var(--ink);font-size:13px;text-align:center;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;z-index:7;text-shadow:0 1px 3px var(--paper)}
.loading::before{content:'';width:40px;height:40px;border:2px solid currentColor;border-right-color:transparent;border-bottom-width:1px;border-radius:50%;animation:enso 2.5s linear infinite}
@keyframes enso{to{transform:rotate(360deg)}}
#app[aria-busy=true] .controls button:active{transform:scale(.98)}
.entry-overlay{margin:0;left:20px;right:20px;pointer-events:none;display:block}
.choice-person{position:absolute;inset:0 35px;max-width:300px;margin:auto}
.choice-image{position:absolute;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .2s;filter:var(--visitor-tone,none)}
body[data-period=night]{--visitor-tone:brightness(.63) saturate(.75)}body[data-period=dusk]{--visitor-tone:brightness(.83) sepia(.15)}
.choice-arrow{position:absolute;top:45%;width:48px;height:48px;padding:0;border-radius:50%;font-size:24px;pointer-events:auto}.choice-arrow.previous{left:0}.choice-arrow.next{right:0}
body[data-view=choose] .entry-overlay{pointer-events:auto;touch-action:pan-y}
.choice-dots{display:flex;justify-content:center;gap:8px;margin-bottom:12px}.choice-dots i{height:5px;width:5px;border-radius:50%;background:var(--muted);opacity:.3}.choice-dots .selected{opacity:1}
body[data-view=choose] .controls .primary{width:100%}
.incense-stick{height:64px;width:5px;background:var(--warm-2);margin:0 auto;position:relative;border-radius:6px;overflow:visible}
.incense-stick>span{display:block;position:absolute;inset:0;background:var(--accent);transform-origin:bottom;border-radius:6px}
.incense-stick>span::before{content:'';position:absolute;top:0;left:0;width:5px;height:4px;background:var(--warm-2);border-radius:50%}
.share-preview{max-height:calc(90dvh - 235px);width:100%;object-fit:contain;margin-bottom:8px;-webkit-touch-callout:default}.share-channels{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.home-content{max-width:760px;margin:24px auto;padding:24px;line-height:1.8;background:var(--paper)}.home-content h2,.home-content h3,.home-content p,.home-content li{margin:10px 0}
.modal-inner{padding:16px}.modal-inner h2{margin-bottom:12px}.close{margin-bottom:8px}
.beads-area{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden;--bead-size:24px;--bead-touch-top:100px;--bead-touch-left:72%;--bead-touch-right:0;z-index:2;clip-path:inset(100px 0 0)}
.bead-control{position:absolute;inset:0;width:100%;height:100%;padding:0!important;border:0!important;border-radius:6px;background:transparent!important;color:var(--ink)!important;touch-action:none;clip-path:inset(var(--bead-touch-top) 0 0 20px);pointer-events:auto;overflow:hidden}
.bead-control:active{transform:none}.bead-control span{display:block;position:absolute;inset:auto;pointer-events:none}
.bead-control .bead-track{inset:0;width:100%;height:100%}
.strand-bead{position:absolute;top:0;left:0;width:var(--bead-size);height:var(--bead-size);background:var(--bead-wood) center/contain no-repeat;will-change:transform,opacity;filter:none;filter:drop-shadow(0 4px 8px color-mix(in srgb,var(--warm-5) 25%,transparent))}
.strand-bead.spacer{background-image:var(--bead-spacer)}
.strand-bead.guru{background:none;z-index:2}
.strand-bead.guru::before{content:'';position:absolute;inset:0 0 auto;width:100%;height:calc(var(--bead-size) * 2.12);background:var(--bead-guru) top center/100% auto no-repeat;pointer-events:none}
.hand-arrows{width:20px;height:20px;vertical-align:middle;margin-right:6px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.bead-control .bead-thread{border:1px solid var(--accent);border-radius:50%}
.bead-control .thumb-point{width:68px;height:68px;transform:translate(-50%,-50%);border:2px solid var(--warm-2);border:2px solid color-mix(in srgb,var(--warm-2) 67%,transparent);border-radius:50%;background:transparent;background:color-mix(in srgb,var(--warm-2) 16%,transparent);box-shadow:none;box-shadow:0 0 16px color-mix(in srgb,var(--warm-2) 40%,transparent)}
.bead-guide{z-index:4;width:96px;display:flex!important;align-items:center;justify-content:flex-end;gap:4px;opacity:0;transform:translate(-50%,-50%);transition:opacity .18s;color:var(--warm-0);text-align:right;text-shadow:0 1px 4px var(--warm-5);filter:none;filter:drop-shadow(0 2px 4px color-mix(in srgb,var(--warm-5) 53%,transparent))}.bead-guide.visible{opacity:1}.bead-guide svg{display:block;width:17px;height:24px;flex:0 0 auto;margin:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;animation:bead-guide 2s ease-in-out infinite}.bead-guide b{display:block;font-size:13px;line-height:1.15;font-weight:500;white-space:nowrap}.bead-chevrons{z-index:3;width:28px;height:54px;transform:translate(-50%,-50%);opacity:.48}.bead-chevrons svg{width:100%;height:100%;fill:none;stroke:var(--warm-0);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:none;filter:drop-shadow(0 1px 3px color-mix(in srgb,var(--warm-5) 53%,transparent))}
@keyframes bead-guide{0%,70%,100%{transform:translateY(-8px);opacity:.65}55%{transform:translateY(12px);opacity:1}}
.bead-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}body[data-hand=left] .bead-summary{flex-direction:row-reverse}#bead-count{font-size:20px;line-height:1.4;font-variant-numeric:tabular-nums;min-width:8ch}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body[data-view=beads] .controls>.back-button{width:100%}
.sit-main .timer{font-size:44px}.sit-main>[data-action=sit-start]{width:100%;font-size:17px}.sit-summary{font-size:13px;text-align:center;color:var(--muted)}.sit-options{padding:8px;border:1px solid var(--line);border-radius:12px}.sit-options[hidden]{display:none}
body[data-period=night] .strand-bead{filter:brightness(.62) saturate(.75);filter:brightness(.62) saturate(.75) drop-shadow(0 4px 8px color-mix(in srgb,var(--warm-5) 27%,transparent))}body[data-period=dusk] .strand-bead{filter:brightness(.8);filter:brightness(.8) drop-shadow(0 4px 8px color-mix(in srgb,var(--warm-5) 27%,transparent))}
@media(max-height:740px){.scene-heading h1{font-size:24px}.controls .stack{gap:4px}.controls{padding-top:8px;padding-bottom:calc(8px + var(--safe-bottom))}.timer{font-size:44px}}
@media(prefers-reduced-motion:reduce){.strand-bead{will-change:auto}.loading::before,.bead-guide svg{animation:none}.bead-guide svg{transform:translateY(2px)}}
.choice-person{pointer-events:none}.choice-arrow{z-index:3}

#bow-count{width:9ch;min-height:1.4em;line-height:1.4;margin:0 auto;font-variant-numeric:tabular-nums}
body[data-view=bow] .controls .row{display:grid;grid-template-columns:1fr 1fr}
body[data-view=bow] .controls .row button{width:100%;min-width:0;border-width:1px}
body[data-view=bow] .controls .row button:disabled{opacity:1}

body[data-view=beads] .completion>.primary{width:100%;margin-bottom:8px}
body[data-view=beads] .completion .row{display:grid;grid-template-columns:1fr 1fr}
.controls button.text-button{background:transparent!important;border-color:transparent;color:var(--ink)!important}

body[data-view=beads] .stage::after{content:"";position:absolute;inset:0;background:transparent;background:color-mix(in srgb,var(--warm-5) 8%,transparent);pointer-events:none;z-index:1}
body[data-view=beads] .scene-heading{z-index:3}

@media(max-height:600px){body[data-view=mo] .scene-heading{top:8px;min-height:0;padding:4px 8px}body[data-view=mo] #subtitle{display:none}body[data-view=mo] #eyebrow{margin-bottom:2px}body[data-view=mo] .scene-heading h1{line-height:1.2}}

#img-debug{position:fixed;z-index:80;top:30%;left:4px;max-width:calc(100vw - 12px);color:var(--warm-0);background:var(--warm-5);border-radius:12px;padding:4px 8px;font:12px/1.4 system-ui}
#img-debug summary{cursor:pointer}#img-debug pre{max-height:24vh;max-width:84vw;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}

#ga-choice{bottom:calc(78px + var(--safe-bottom,0px));font-family:system-ui,sans-serif;position:fixed;z-index:9;left:50%;transform:translateX(-50%);width:min(94%,410px);padding:8px 12px;border-radius:12px;background:var(--warm-5);color:var(--warm-0);display:flex;align-items:center;gap:8px;font-size:13px}#ga-choice[hidden]{display:none}#ga-choice div{display:flex;gap:4px}#ga-choice button{min-height:44px;min-width:48px;padding:4px;color:var(--warm-0);background:var(--accent)}
img,canvas,svg{-webkit-user-drag:none}
.tet-banner{position:fixed;bottom:calc(72px + var(--safe-bottom,0px));left:50%;transform:translateX(-50%);width:min(92%,380px);background:var(--festival-banner);color:var(--festival-banner-text);border-radius:12px;padding:12px 16px;font:500 17px/1.4 'Be Vietnam Pro',sans-serif;text-align:center;z-index:50;pointer-events:none}.tet-banner[hidden]{display:none}@keyframes lantern-rise{0%{transform:translateY(0) scale(1);opacity:.85}100%{transform:translateY(-500px) scale(.55);opacity:0}}body[data-festival] .stage::after{content:'';display:block;position:absolute;inset:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.tet-banner{transition:none}}

/* Morning sequence (早课 Buổi sáng) */
body[data-view=morning] .controls{display:flex;flex-direction:column;align-items:center;gap:0}
.morning-stack{align-items:center;gap:16px;text-align:center}
.morning-bell-hint{font-size:15px;min-height:1.5em;color:var(--ink);opacity:.7;text-align:center}
.morning-stack .row{justify-content:center;gap:12px;flex-wrap:wrap}
.action-nav{gap:8px}.controls .action-nav button{font-size:15px}.scene-heading h1{font-size:24px}.controls .row:has([data-action=home])>button{border:1px solid var(--line);font-size:15px}.choice-row,.breath-controls{gap:8px}@media(max-height:740px){.scene-heading h1{font-size:24px}}
@media(max-width:380px){.controls .action-nav button{height:64px;min-height:64px;font-size:15px;line-height:1.12;white-space:normal;overflow-wrap:anywhere}}
.morning-stack .primary{min-width:160px}
.morning-skip-step{font-size:15px;min-height:44px;padding:8px 16px;color:var(--ink);opacity:.6;background:transparent;border:none;cursor:pointer;width:100%;text-align:center}
.controls button.primary,.controls .row:has([data-action=home])>button.primary,.entry-overlay button.primary,.modal-inner button.primary{font-size:17px}
@media(prefers-reduced-motion:reduce){.morning-bell-hint{transition:none}}

/* ===== Tết 2027 Festival Layer ===== */
#festival-layer{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden;display:none}
body[data-festival]:not([data-festival=""]) #festival-layer{display:block}
/* family.html has no #festival-layer element, so no extra rule needed */
.fes-l,.fes-fl,.fes-moon,.fes-p,.fes-g,.fes-pot{position:absolute;display:none}
/* lantern: SVG via bg-image; thread via ::before */
.fes-l{width:7%;aspect-ratio:22/38;background:url(assets/releases/6a29b7cb0ae1/festival/lantern.svg)no-repeat center/contain;opacity:.88;animation:lantern-sway 12s ease-in-out infinite;transform-origin:top center}
.fes-l::before{content:"";position:absolute;left:50%;bottom:100%;transform:translateX(-50%);width:1px;height:clamp(6px,2.5%,16px);background:var(--festival-thread)}
.fes-l.l2{animation-delay:1.5s}.fes-l.l3{animation-delay:3s}.fes-l.l4{animation-delay:4.5s}
.fes-l.l5{animation-delay:2s}.fes-l.l6{animation-delay:3.5s}.fes-l.l7{animation-delay:1s}.fes-l.l8{animation-delay:2.5s}
.fes-l.l9{animation-delay:.8s}.fes-l.l10{animation-delay:3.2s}.fes-l.l11{animation-delay:5s}.fes-l.l12{animation-delay:1.8s}
/* flowers: same type both sides, controlled by data-flower */
.fes-fl{width:17%;aspect-ratio:126/212;background:url(assets/releases/6a29b7cb0ae1/festival/flower-mai.svg)no-repeat top center/contain}
body[data-flower="hoa-dao"] .fes-fl{background-image:url(assets/releases/6a29b7cb0ae1/festival/flower-dao.svg)}
.fes-fl[data-side="l"]{left:0;top:40%;transform-origin:bottom left;animation:branch-sway 15s ease-in-out infinite}
.fes-fl[data-side="r"]{right:0;top:40%;transform-origin:bottom center;scale:-1 1;animation:branch-sway 15s ease-in-out 5s infinite}
/* moon */
.fes-moon{width:16%;aspect-ratio:1;background:url(assets/releases/6a29b7cb0ae1/festival/moon.svg)no-repeat center/contain;right:18%;top:21%;opacity:.88}
/* petals */
.fes-p{width:clamp(7px,2%,10px);aspect-ratio:12/14;background:url(assets/releases/6a29b7cb0ae1/festival/petal-mai.svg)no-repeat center/contain;opacity:.65}
body[data-flower="hoa-dao"] .fes-p{background-image:url(assets/releases/6a29b7cb0ae1/festival/petal-dao.svg)}
/* gold */
.fes-g{width:4px;height:4px;border-radius:50%;background:var(--festival-gold);opacity:0}
.fes-pot{width:14%;aspect-ratio:78/102;background:url(assets/releases/6a29b7cb0ae1/festival/pot-mai.svg)no-repeat bottom center/contain}
body[data-flower="hoa-dao"] .fes-pot{background-image:url(assets/releases/6a29b7cb0ae1/festival/pot-dao.svg)}

/* --- ong-tao (3 lanterns) --- */
body[data-festival="ong-tao"][data-view="home"] .fes-l.l1,
body[data-festival="ong-tao"][data-view="home"] .fes-l.l2,
body[data-festival="ong-tao"][data-view="home"] .fes-l.l3{display:block}
body[data-festival="ong-tao"][data-view="home"] .fes-l.l1{left:5%;top:18%}
body[data-festival="ong-tao"][data-view="home"] .fes-l.l2{right:13%;top:16%}
body[data-festival="ong-tao"][data-view="home"] .fes-l.l3{right:10%;top:25%}
body[data-festival="ong-tao"][data-view="home"] .fes-l{animation-duration:14s}

/* --- tat-nien (6 lanterns + flowers) --- */
body[data-festival="tat-nien"][data-view="home"] .fes-l.l1,
body[data-festival="tat-nien"][data-view="home"] .fes-l.l2,
body[data-festival="tat-nien"][data-view="home"] .fes-l.l3,
body[data-festival="tat-nien"][data-view="home"] .fes-l.l4,
body[data-festival="tat-nien"][data-view="home"] .fes-l.l5,
body[data-festival="tat-nien"][data-view="home"] .fes-l.l6,
body[data-festival="tat-nien"][data-view="home"] .fes-fl{display:block}
body[data-festival="tat-nien"][data-view="home"] .fes-l.l1{left:3%;top:16%}
body[data-festival="tat-nien"][data-view="home"] .fes-l.l2{left:6%;top:26%}
body[data-festival="tat-nien"][data-view="home"] .fes-l.l3{left:2%;top:36%}
body[data-festival="tat-nien"][data-view="home"] .fes-l.l4{right:12%;top:15%}
body[data-festival="tat-nien"][data-view="home"] .fes-l.l5{right:9%;top:24%}
body[data-festival="tat-nien"][data-view="home"] .fes-l.l6{right:13%;top:33%}
body[data-festival="tat-nien"][data-view="home"] .fes-fl[data-side="l"]{top:38%}
body[data-festival="tat-nien"][data-view="home"] .fes-fl[data-side="r"]{top:38%}
/* hall-side: 3 right-side lanterns + right flower only */
body[data-festival="tat-nien"][data-view="incense"] .fes-l.l4,
body[data-festival="tat-nien"][data-view="incense"] .fes-l.l5,
body[data-festival="tat-nien"][data-view="incense"] .fes-l.l6,
body[data-festival="tat-nien"][data-view="incense"] .fes-fl[data-side="r"],
body[data-festival="tat-nien"][data-view="bow"] .fes-l.l4,
body[data-festival="tat-nien"][data-view="bow"] .fes-l.l5,
body[data-festival="tat-nien"][data-view="bow"] .fes-l.l6,
body[data-festival="tat-nien"][data-view="bow"] .fes-fl[data-side="r"]{display:block}
body[data-festival="tat-nien"][data-view="incense"] .fes-l.l4,
body[data-festival="tat-nien"][data-view="bow"] .fes-l.l4{right:16%;top:18%}
body[data-festival="tat-nien"][data-view="incense"] .fes-l.l5,
body[data-festival="tat-nien"][data-view="bow"] .fes-l.l5{right:12%;top:28%}
body[data-festival="tat-nien"][data-view="incense"] .fes-l.l6,
body[data-festival="tat-nien"][data-view="bow"] .fes-l.l6{right:15%;top:38%}
body[data-festival="tat-nien"][data-view="incense"] .fes-fl[data-side="r"],
body[data-festival="tat-nien"][data-view="bow"] .fes-fl[data-side="r"]{top:42%}

/* --- mung1 (8 lanterns + flowers + 5 gold dots) --- */
body[data-festival="mung1"][data-view="home"] .fes-l,
body[data-festival="mung1"][data-view="home"] .fes-fl,
body[data-festival="mung1"][data-view="home"] .fes-g{display:block}
body[data-festival="mung1"][data-view="home"] .fes-l{animation-duration:11s}
body[data-festival="mung1"][data-view="home"] .fes-l.l1{left:2%;top:14%}
body[data-festival="mung1"][data-view="home"] .fes-l.l2{left:5%;top:22%}
body[data-festival="mung1"][data-view="home"] .fes-l.l3{left:2%;top:31%}
body[data-festival="mung1"][data-view="home"] .fes-l.l4{left:6%;top:40%}
body[data-festival="mung1"][data-view="home"] .fes-l.l5{right:12%;top:14%}
body[data-festival="mung1"][data-view="home"] .fes-l.l6{right:9%;top:22%}
body[data-festival="mung1"][data-view="home"] .fes-l.l7{right:12%;top:31%}
body[data-festival="mung1"][data-view="home"] .fes-l.l8{right:9%;top:40%}
body[data-festival="mung1"][data-view="home"] .fes-fl[data-side="l"]{top:35%}
body[data-festival="mung1"][data-view="home"] .fes-fl[data-side="r"]{top:35%}
body[data-festival="mung1"][data-view="home"] .fes-g.g1{left:15%;top:12%;animation:gold-twinkle 5s 0s infinite}
body[data-festival="mung1"][data-view="home"] .fes-g.g2{left:35%;top:18%;animation:gold-twinkle 6s 1s infinite}
body[data-festival="mung1"][data-view="home"] .fes-g.g3{right:30%;top:15%;animation:gold-twinkle 4s 2s infinite}
body[data-festival="mung1"][data-view="home"] .fes-g.g4{right:20%;top:22%;animation:gold-twinkle 7s .5s infinite}
body[data-festival="mung1"][data-view="home"] .fes-g.g5{left:28%;top:8%;animation:gold-twinkle 5s 1.5s infinite}
body[data-festival="mung1"][data-view="incense"] .fes-l.l5,
body[data-festival="mung1"][data-view="incense"] .fes-l.l6,
body[data-festival="mung1"][data-view="incense"] .fes-l.l7,
body[data-festival="mung1"][data-view="incense"] .fes-l.l8,
body[data-festival="mung1"][data-view="incense"] .fes-fl[data-side="r"],
body[data-festival="mung1"][data-view="bow"] .fes-l.l5,
body[data-festival="mung1"][data-view="bow"] .fes-l.l6,
body[data-festival="mung1"][data-view="bow"] .fes-l.l7,
body[data-festival="mung1"][data-view="bow"] .fes-l.l8,
body[data-festival="mung1"][data-view="bow"] .fes-fl[data-side="r"]{display:block}
body[data-festival="mung1"][data-view="incense"] .fes-l.l5,
body[data-festival="mung1"][data-view="bow"] .fes-l.l5{right:12%;top:14%}
body[data-festival="mung1"][data-view="incense"] .fes-l.l6,
body[data-festival="mung1"][data-view="bow"] .fes-l.l6{right:9%;top:22%}
body[data-festival="mung1"][data-view="incense"] .fes-l.l7,
body[data-festival="mung1"][data-view="bow"] .fes-l.l7{right:12%;top:31%}
body[data-festival="mung1"][data-view="incense"] .fes-l.l8,
body[data-festival="mung1"][data-view="bow"] .fes-l.l8{right:9%;top:40%}
body[data-festival="mung1"][data-view="incense"] .fes-fl[data-side="r"],
body[data-festival="mung1"][data-view="bow"] .fes-fl[data-side="r"]{top:36%}

/* --- mung2 (7 lanterns = l1-l4 + l6-l8; flowers) --- */
body[data-festival="mung2"][data-view="home"] .fes-l.l1,
body[data-festival="mung2"][data-view="home"] .fes-l.l2,
body[data-festival="mung2"][data-view="home"] .fes-l.l3,
body[data-festival="mung2"][data-view="home"] .fes-l.l4,
body[data-festival="mung2"][data-view="home"] .fes-l.l6,
body[data-festival="mung2"][data-view="home"] .fes-l.l7,
body[data-festival="mung2"][data-view="home"] .fes-l.l8,
body[data-festival="mung2"][data-view="home"] .fes-fl{display:block}
body[data-festival="mung2"][data-view="home"] .fes-l.l1{left:2%;top:14%}
body[data-festival="mung2"][data-view="home"] .fes-l.l2{left:5%;top:22%}
body[data-festival="mung2"][data-view="home"] .fes-l.l3{left:2%;top:31%}
body[data-festival="mung2"][data-view="home"] .fes-l.l4{left:6%;top:40%}
body[data-festival="mung2"][data-view="home"] .fes-l.l6{right:9%;top:22%}
body[data-festival="mung2"][data-view="home"] .fes-l.l7{right:12%;top:31%}
body[data-festival="mung2"][data-view="home"] .fes-l.l8{right:9%;top:40%}
body[data-festival="mung2"][data-view="home"] .fes-fl[data-side="l"]{top:38%}
body[data-festival="mung2"][data-view="home"] .fes-fl[data-side="r"]{top:38%}

/* --- mung3 (4 lower lanterns + fewer flowers + 6 falling petals) --- */
body[data-festival="mung3"][data-view="home"] .fes-l.l3,
body[data-festival="mung3"][data-view="home"] .fes-l.l4,
body[data-festival="mung3"][data-view="home"] .fes-l.l7,
body[data-festival="mung3"][data-view="home"] .fes-l.l8,
body[data-festival="mung3"][data-view="home"] .fes-fl,
body[data-festival="mung3"][data-view="home"] .fes-p{display:block}
body[data-festival="mung3"][data-view="home"] .fes-l{opacity:.72;animation-duration:16s}
body[data-festival="mung3"][data-view="home"] .fes-fl{opacity:.7}
body[data-festival="mung3"][data-view="home"] .fes-l.l3{left:5%;top:33%}
body[data-festival="mung3"][data-view="home"] .fes-l.l4{left:3%;top:43%}
body[data-festival="mung3"][data-view="home"] .fes-l.l7{right:12%;top:32%}
body[data-festival="mung3"][data-view="home"] .fes-l.l8{right:10%;top:42%}
body[data-festival="mung3"][data-view="home"] .fes-fl[data-side="l"]{top:42%}
body[data-festival="mung3"][data-view="home"] .fes-fl[data-side="r"]{top:42%}
body[data-festival="mung3"][data-view="home"] .fes-p.p1{left:20%;top:-2%;animation:petal-fall 16s 0s linear infinite}
body[data-festival="mung3"][data-view="home"] .fes-p.p2{left:40%;top:-2%;animation:petal-fall 18s 2s linear infinite}
body[data-festival="mung3"][data-view="home"] .fes-p.p3{left:60%;top:-2%;animation:petal-fall 15s 4s linear infinite}
body[data-festival="mung3"][data-view="home"] .fes-p.p4{left:75%;top:-2%;animation:petal-fall 20s 1s linear infinite}
body[data-festival="mung3"][data-view="home"] .fes-p.p5{left:30%;top:-2%;animation:petal-fall 17s 3s linear infinite}
body[data-festival="mung3"][data-view="home"] .fes-p.p6{left:55%;top:-2%;animation:petal-fall 19s .5s linear infinite}

/* --- ram (5 lanterns + sparse flowers + moon on courtyard dusk/night) --- */
body[data-festival="ram"][data-view="home"] .fes-l.l1,
body[data-festival="ram"][data-view="home"] .fes-l.l2,
body[data-festival="ram"][data-view="home"] .fes-l.l4,
body[data-festival="ram"][data-view="home"] .fes-l.l5,
body[data-festival="ram"][data-view="home"] .fes-l.l6,
body[data-festival="ram"][data-view="home"] .fes-fl{display:block}
body[data-festival="ram"][data-view="home"] .fes-l{animation-duration:15s}
body[data-festival="ram"][data-view="home"] .fes-l.l1{left:4%;top:21%}
body[data-festival="ram"][data-view="home"] .fes-l.l2{left:2%;top:34%}
body[data-festival="ram"][data-view="home"] .fes-l.l4{right:14%;top:19%}
body[data-festival="ram"][data-view="home"] .fes-l.l5{right:11%;top:28%}
body[data-festival="ram"][data-view="home"] .fes-l.l6{right:13%;top:37%}
body[data-festival="ram"][data-view="home"] .fes-fl{opacity:.7}
body[data-festival="ram"][data-view="home"] .fes-fl[data-side="l"]{top:44%}
body[data-festival="ram"][data-view="home"] .fes-fl[data-side="r"]{top:44%}
/* moon: courtyard + dusk or night only (never behind Buddha) */
body[data-festival="ram"][data-period="dusk"][data-view="sit"] .fes-moon,
body[data-festival="ram"][data-period="night"][data-view="sit"] .fes-moon{display:block;animation:moon-glow 10s ease-in-out infinite}

/* --- mung2 hall-side: 4 right lanterns + right flower --- */
body[data-festival="mung2"][data-view="incense"] .fes-l.l5,
body[data-festival="mung2"][data-view="incense"] .fes-l.l6,
body[data-festival="mung2"][data-view="incense"] .fes-l.l7,
body[data-festival="mung2"][data-view="incense"] .fes-l.l8,
body[data-festival="mung2"][data-view="incense"] .fes-fl[data-side="r"],
body[data-festival="mung2"][data-view="bow"] .fes-l.l5,
body[data-festival="mung2"][data-view="bow"] .fes-l.l6,
body[data-festival="mung2"][data-view="bow"] .fes-l.l7,
body[data-festival="mung2"][data-view="bow"] .fes-l.l8,
body[data-festival="mung2"][data-view="bow"] .fes-fl[data-side="r"]{display:block}
body[data-festival="mung2"][data-view="incense"] .fes-l.l5,
body[data-festival="mung2"][data-view="bow"] .fes-l.l5{right:12%;top:14%}
body[data-festival="mung2"][data-view="incense"] .fes-l.l6,
body[data-festival="mung2"][data-view="bow"] .fes-l.l6{right:9%;top:22%}
body[data-festival="mung2"][data-view="incense"] .fes-l.l7,
body[data-festival="mung2"][data-view="bow"] .fes-l.l7{right:12%;top:31%}
body[data-festival="mung2"][data-view="incense"] .fes-l.l8,
body[data-festival="mung2"][data-view="bow"] .fes-l.l8{right:9%;top:40%}
body[data-festival="mung2"][data-view="incense"] .fes-fl[data-side="r"],
body[data-festival="mung2"][data-view="bow"] .fes-fl[data-side="r"]{top:38%}
/* --- mung3 hall-side: 2 right lanterns + right flower --- */
body[data-festival="mung3"][data-view="incense"] .fes-l.l7,
body[data-festival="mung3"][data-view="incense"] .fes-l.l8,
body[data-festival="mung3"][data-view="incense"] .fes-fl[data-side="r"],
body[data-festival="mung3"][data-view="bow"] .fes-l.l7,
body[data-festival="mung3"][data-view="bow"] .fes-l.l8,
body[data-festival="mung3"][data-view="bow"] .fes-fl[data-side="r"]{display:block}
body[data-festival="mung3"][data-view="incense"] .fes-l.l7,
body[data-festival="mung3"][data-view="bow"] .fes-l.l7{right:12%;top:32%}
body[data-festival="mung3"][data-view="incense"] .fes-l.l8,
body[data-festival="mung3"][data-view="bow"] .fes-l.l8{right:10%;top:42%}
body[data-festival="mung3"][data-view="incense"] .fes-fl[data-side="r"],
body[data-festival="mung3"][data-view="bow"] .fes-fl[data-side="r"]{top:42%;opacity:.7}
/* --- ram hall-side: 2 right lanterns + right flower --- */
body[data-festival="ram"][data-view="incense"] .fes-l.l5,
body[data-festival="ram"][data-view="incense"] .fes-l.l6,
body[data-festival="ram"][data-view="incense"] .fes-fl[data-side="r"],
body[data-festival="ram"][data-view="bow"] .fes-l.l5,
body[data-festival="ram"][data-view="bow"] .fes-l.l6,
body[data-festival="ram"][data-view="bow"] .fes-fl[data-side="r"]{display:block}
body[data-festival="ram"][data-view="incense"] .fes-l.l5,
body[data-festival="ram"][data-view="bow"] .fes-l.l5{right:11%;top:28%}
body[data-festival="ram"][data-view="incense"] .fes-l.l6,
body[data-festival="ram"][data-view="bow"] .fes-l.l6{right:13%;top:37%}
body[data-festival="ram"][data-view="incense"] .fes-fl[data-side="r"],
body[data-festival="ram"][data-view="bow"] .fes-fl[data-side="r"]{top:44%;opacity:.7}
/* --- courtyard scene: tree lanterns + single left pot --- */
body[data-festival="ong-tao"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l1,
body[data-festival="ong-tao"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l3{display:block}
body[data-festival="ong-tao"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l1{left:5%;top:11%}
body[data-festival="ong-tao"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l3{left:4%;top:33%}
body[data-festival="tat-nien"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l1,
body[data-festival="tat-nien"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l2,
body[data-festival="tat-nien"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l3,
body[data-festival="tat-nien"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l4,
body[data-festival="tat-nien"]:is([data-view="sit"],[data-view="beads"]) .fes-pot[data-side="l"]{display:block}
body[data-festival="tat-nien"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l1{left:5%;top:11%}
body[data-festival="tat-nien"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l2{left:8%;top:22%}
body[data-festival="tat-nien"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l3{left:4%;top:33%}
body[data-festival="tat-nien"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l4{left:9%;top:44%}
body[data-festival="tat-nien"]:is([data-view="sit"],[data-view="beads"]) .fes-pot[data-side="l"]{left:2%;bottom:12%}
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l1,
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l2,
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l3,
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l4,
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l9,
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-pot[data-side="l"],
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p1,
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p2,
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p3{display:block}
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l1{left:5%;top:11%}
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l2{left:8%;top:22%}
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l3{left:4%;top:33%}
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l4{left:9%;top:44%}
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l9{left:6%;top:17%}
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-pot[data-side="l"]{left:2%;bottom:12%}
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p1{left:15%;top:-2%;animation:petal-fall 14s .5s linear infinite}
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p2{left:35%;top:-2%;animation:petal-fall 17s 2s linear infinite}
body[data-festival="mung1"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p3{left:60%;top:-2%;animation:petal-fall 15s 4s linear infinite}
body[data-festival="mung2"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l1,
body[data-festival="mung2"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l2,
body[data-festival="mung2"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l3,
body[data-festival="mung2"]:is([data-view="sit"],[data-view="beads"]) .fes-pot[data-side="l"]{display:block}
body[data-festival="mung2"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l1{left:5%;top:11%}
body[data-festival="mung2"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l2{left:8%;top:22%}
body[data-festival="mung2"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l3{left:4%;top:33%}
body[data-festival="mung2"]:is([data-view="sit"],[data-view="beads"]) .fes-pot[data-side="l"]{left:2%;bottom:12%}
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l3,
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l4,
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p1,
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p2,
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p3,
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p4,
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p5,
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p6{display:block}
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l3{left:4%;top:33%}
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-l.l4{left:9%;top:44%}
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p1{left:15%;top:-2%;animation:petal-fall 16s 1s linear infinite}
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p2{left:35%;top:-2%;animation:petal-fall 18s 3s linear infinite}
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p3{left:55%;top:-2%;animation:petal-fall 15s 0s linear infinite}
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p4{left:70%;top:-2%;animation:petal-fall 19s 2s linear infinite}
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p5{left:25%;top:-2%;animation:petal-fall 17s .5s linear infinite}
body[data-festival="mung3"]:is([data-view="sit"],[data-view="beads"]) .fes-p.p6{left:80%;top:-2%;animation:petal-fall 20s 4s linear infinite}
/* --- flower pots in hall-front --- */
body[data-festival="tat-nien"]:is([data-view="home"],[data-view="choose"]) .fes-pot,
body[data-festival="mung1"]:is([data-view="home"],[data-view="choose"]) .fes-pot,
body[data-festival="mung2"]:is([data-view="home"],[data-view="choose"]) .fes-pot{display:block}
body[data-festival="tat-nien"]:is([data-view="home"],[data-view="choose"]) .fes-pot[data-side="l"],
body[data-festival="mung1"]:is([data-view="home"],[data-view="choose"]) .fes-pot[data-side="l"],
body[data-festival="mung2"]:is([data-view="home"],[data-view="choose"]) .fes-pot[data-side="l"]{left:1%;bottom:9%}
body[data-festival="tat-nien"]:is([data-view="home"],[data-view="choose"]) .fes-pot[data-side="r"],
body[data-festival="mung1"]:is([data-view="home"],[data-view="choose"]) .fes-pot[data-side="r"],
body[data-festival="mung2"]:is([data-view="home"],[data-view="choose"]) .fes-pot[data-side="r"]{right:1%;bottom:9%;scale:-1 1}
/* --- flower pots in hall-side (right only) --- */
body[data-festival="tat-nien"]:is([data-view="incense"],[data-view="bow"]) .fes-pot[data-side="r"],
body[data-festival="mung1"]:is([data-view="incense"],[data-view="bow"]) .fes-pot[data-side="r"],
body[data-festival="mung2"]:is([data-view="incense"],[data-view="bow"]) .fes-pot[data-side="r"]{display:block;right:1%;bottom:9%;scale:-1 1}
/* --- mo is a hall-side scene: keep all decoration on the right, clear of the Buddha --- */
body[data-festival][data-view="mo"] .fes-fl[data-side="l"],
body[data-festival][data-view="mo"] .fes-moon,
body[data-festival][data-view="mo"] .fes-pot[data-side="l"]{display:none!important}
body[data-festival="tat-nien"][data-view="mo"] :is(.fes-l.l4,.fes-l.l5,.fes-l.l6,.fes-fl[data-side="r"]),
body[data-festival="mung1"][data-view="mo"] :is(.fes-l.l5,.fes-l.l6,.fes-l.l7,.fes-l.l8,.fes-fl[data-side="r"]),
body[data-festival="mung2"][data-view="mo"] :is(.fes-l.l5,.fes-l.l6,.fes-l.l7,.fes-l.l8,.fes-fl[data-side="r"]),
body[data-festival="mung3"][data-view="mo"] :is(.fes-l.l7,.fes-l.l8,.fes-fl[data-side="r"]),
body[data-festival="ram"][data-view="mo"] :is(.fes-l.l5,.fes-l.l6,.fes-fl[data-side="r"]){display:block}
body[data-festival="tat-nien"][data-view="mo"] .fes-l.l4{right:16%;top:18%}
body[data-festival="tat-nien"][data-view="mo"] .fes-l.l5,
body[data-festival="mung1"][data-view="mo"] .fes-l.l5,
body[data-festival="mung2"][data-view="mo"] .fes-l.l5{right:12%;top:14%}
body[data-festival="tat-nien"][data-view="mo"] .fes-l.l6{right:15%;top:38%}
body[data-festival="mung1"][data-view="mo"] .fes-l.l6,
body[data-festival="mung2"][data-view="mo"] .fes-l.l6{right:9%;top:22%}
body[data-festival="mung1"][data-view="mo"] .fes-l.l7,
body[data-festival="mung2"][data-view="mo"] .fes-l.l7{right:12%;top:31%}
body[data-festival="mung1"][data-view="mo"] .fes-l.l8,
body[data-festival="mung2"][data-view="mo"] .fes-l.l8{right:9%;top:40%}
body[data-festival="mung3"][data-view="mo"] .fes-l.l7{right:12%;top:32%}
body[data-festival="mung3"][data-view="mo"] .fes-l.l8{right:10%;top:42%}
body[data-festival="ram"][data-view="mo"] .fes-l.l5{right:11%;top:28%}
body[data-festival="ram"][data-view="mo"] .fes-l.l6{right:13%;top:37%}
body[data-festival="tat-nien"][data-view="mo"] .fes-fl[data-side="r"]{top:42%}
body[data-festival="mung1"][data-view="mo"] .fes-fl[data-side="r"]{top:36%}
body[data-festival="mung2"][data-view="mo"] .fes-fl[data-side="r"]{top:38%}
body[data-festival="mung3"][data-view="mo"] .fes-fl[data-side="r"]{top:42%;opacity:.7}
body[data-festival="ram"][data-view="mo"] .fes-fl[data-side="r"]{top:44%;opacity:.7}
body[data-festival="tat-nien"][data-view="mo"] .fes-pot[data-side="r"],
body[data-festival="mung1"][data-view="mo"] .fes-pot[data-side="r"],
body[data-festival="mung2"][data-view="mo"] .fes-pot[data-side="r"]{display:block;right:1%;bottom:9%;scale:-1 1}
/* beads shares hall-side: keep the Buddha side empty and use only right-side decoration */
body[data-festival][data-view="beads"] :is(.fes-l.l1,.fes-l.l2,.fes-l.l3,.fes-l.l9,.fes-fl[data-side="l"],.fes-pot[data-side="l"],.fes-moon,.fes-p,.fes-g){display:none!important}
body[data-festival="mung1"][data-view="beads"] .fes-l.l4,
body[data-festival="mung3"][data-view="beads"] .fes-l.l4{display:none!important}
body[data-festival="tat-nien"][data-view="beads"] :is(.fes-l.l4,.fes-l.l5,.fes-l.l6,.fes-fl[data-side="r"]),
body[data-festival="mung1"][data-view="beads"] :is(.fes-l.l5,.fes-l.l6,.fes-l.l7,.fes-l.l8,.fes-fl[data-side="r"]),
body[data-festival="mung2"][data-view="beads"] :is(.fes-l.l5,.fes-l.l6,.fes-l.l7,.fes-l.l8,.fes-fl[data-side="r"]),
body[data-festival="mung3"][data-view="beads"] :is(.fes-l.l7,.fes-l.l8,.fes-fl[data-side="r"]),
body[data-festival="ram"][data-view="beads"] :is(.fes-l.l5,.fes-l.l6,.fes-fl[data-side="r"]){display:block}
body[data-festival="tat-nien"][data-view="beads"] .fes-l.l4{right:6%;top:18%}
body[data-festival="tat-nien"][data-view="beads"] .fes-l.l5,
body[data-festival="mung1"][data-view="beads"] .fes-l.l5,
body[data-festival="mung2"][data-view="beads"] .fes-l.l5{right:12%;top:14%}
body[data-festival="tat-nien"][data-view="beads"] .fes-l.l6{right:6%;top:38%}
body[data-festival="mung1"][data-view="beads"] .fes-l.l6,
body[data-festival="mung2"][data-view="beads"] .fes-l.l6{right:6%;top:22%}
body[data-festival="mung1"][data-view="beads"] .fes-l.l7,
body[data-festival="mung2"][data-view="beads"] .fes-l.l7{right:12%;top:31%}
body[data-festival="mung1"][data-view="beads"] .fes-l.l8,
body[data-festival="mung2"][data-view="beads"] .fes-l.l8{right:6%;top:40%}
body[data-festival="mung3"][data-view="beads"] .fes-l.l7{right:12%;top:32%}
body[data-festival="mung3"][data-view="beads"] .fes-l.l8{right:6%;top:42%}
body[data-festival="ram"][data-view="beads"] .fes-l.l5{right:12%;top:28%}
body[data-festival="ram"][data-view="beads"] .fes-l.l6{right:6%;top:37%}
body[data-festival="tat-nien"][data-view="beads"] .fes-fl[data-side="r"]{top:42%}
body[data-festival="mung1"][data-view="beads"] .fes-fl[data-side="r"]{top:36%}
body[data-festival="mung2"][data-view="beads"] .fes-fl[data-side="r"]{top:38%}
body[data-festival="mung3"][data-view="beads"] .fes-fl[data-side="r"]{top:42%;opacity:.7}
body[data-festival="ram"][data-view="beads"] .fes-fl[data-side="r"]{top:44%;opacity:.7}
body[data-festival="tat-nien"][data-view="beads"] .fes-pot[data-side="r"],
body[data-festival="mung1"][data-view="beads"] .fes-pot[data-side="r"],
body[data-festival="mung2"][data-view="beads"] .fes-pot[data-side="r"]{display:block;right:-7%;bottom:9%;scale:-1 1}
body[data-festival][data-view="beads"] .fes-fl[data-side="r"]{right:-9%}
/* Hall-side visitor occupies the lower right; keep complete lanterns staggered in the outer margin. */
body[data-festival]:is([data-view="incense"],[data-view="bow"],[data-view="mo"]) .fes-l.l4{right:6%!important}
body[data-festival]:is([data-view="incense"],[data-view="bow"],[data-view="mo"]) .fes-l.l5{right:12%!important}
body[data-festival]:is([data-view="incense"],[data-view="bow"],[data-view="mo"]) .fes-l.l6{right:6%!important}
body[data-festival]:is([data-view="incense"],[data-view="bow"],[data-view="mo"]) .fes-l.l7{right:12%!important}
body[data-festival]:is([data-view="incense"],[data-view="bow"],[data-view="mo"]) .fes-l.l8{right:6%!important}
body[data-festival]:is([data-view="incense"],[data-view="bow"],[data-view="mo"]) .fes-fl[data-side="r"]{right:-9%;top:17%}
body[data-festival]:is([data-view="incense"],[data-view="bow"],[data-view="mo"]) .fes-pot[data-side="r"]{right:-7%}
/* --- hall-side: left flower + moon + left pot always suppressed --- */
body[data-festival][data-view="incense"] .fes-fl[data-side="l"],
body[data-festival][data-view="bow"] .fes-fl[data-side="l"],
body[data-festival][data-view="incense"] .fes-moon,
body[data-festival][data-view="bow"] .fes-moon,
body[data-festival][data-view="incense"] .fes-pot[data-side="l"],
body[data-festival][data-view="bow"] .fes-pot[data-side="l"]{display:none!important}
/* --- courtyard: no flowers; right pot suppressed --- */
body[data-festival][data-view="sit"] .fes-fl,
body[data-festival][data-view="sit"] .fes-pot[data-side="r"]{display:none!important}

/* --- Keyframes --- */
@keyframes lantern-sway{0%,100%{transform:rotate(-3.5deg)}50%{transform:rotate(3.5deg)}}
@keyframes branch-sway{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
@keyframes petal-fall{0%{transform:translateY(0) translateX(0);opacity:.65}80%{opacity:.35}100%{transform:translateY(75vh) translateX(5%);opacity:0}}
@keyframes gold-twinkle{0%,100%{opacity:.1}50%{opacity:.6}}
@keyframes moon-glow{0%,100%{opacity:.7}50%{opacity:.88}}

/* UI audit round 4A: compact, stable ritual controls on short phones. */
#leave-top{left:calc(66px + var(--safe-left));width:48px;min-width:48px;padding:8px}
body[data-view=home] .scene-heading{left:calc(122px + var(--safe-left))}
.action-nav{grid-template-columns:repeat(6,minmax(0,1fr))}
.action-nav button:nth-child(-n+3){grid-column:span 2}.action-nav button:nth-child(n+4){grid-column:span 3}
body:is([data-view=incense],[data-view=bow],[data-view=sit],[data-view=mo],[data-view=beads]) .controls{height:216px;min-height:216px}
body:is([data-view=incense],[data-view=bow],[data-view=sit],[data-view=mo],[data-view=beads]) .controls>.stack{height:100%;justify-content:center}
.bow-status{min-height:28px;display:flex;align-items:center;justify-content:space-between;gap:8px}.bow-status .count{line-height:1;white-space:nowrap}.bow-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.bow-actions button,.bow-back button{width:100%;white-space:nowrap!important}.bow-back{display:block}
body[data-view=bow] .choice-row button{height:44px;min-height:44px}
body[data-view=bow] .controls>.stack{gap:4px}
.sit-main{position:relative;height:100%;justify-content:center}.sit-main .timer{min-height:62px;display:grid;place-items:center}
.sit-options{height:100%;display:grid;grid-template-rows:repeat(3,48px);align-content:center;gap:8px;padding:0;background:var(--paper)}
.sit-options .choice-row,.sit-options .breath-controls{display:grid;gap:8px;overflow:visible}.sit-options .duration-options,.sit-options .ambient-options{grid-template-columns:repeat(4,minmax(0,1fr))}.sit-options .breath-controls{grid-template-columns:136px minmax(0,1fr)}.sit-options .breath-controls .choice-row{grid-template-columns:repeat(3,minmax(0,1fr))}.sit-options button{width:100%;min-width:0;white-space:nowrap;padding-inline:4px}.sit-options-close{font-size:20px!important}
.incense-stick>span{left:1px;right:auto;width:3px}.incense-stick>span::before{left:-1px}
.bead-summary{height:48px;margin:0;display:grid;grid-template-columns:minmax(72px,1fr) auto;align-items:center}
.bead-summary .bead-guide{position:static;width:auto;transform:none;color:var(--muted);text-shadow:none;filter:none;justify-content:center}
.bead-summary .bead-guide svg{width:16px;height:22px}.bead-summary .bead-chevrons{position:static;width:18px;height:32px;transform:none;display:block}
.bead-summary .bead-chevrons svg{filter:none;stroke:currentColor}.bead-actions{display:grid;grid-template-columns:1fr 1fr}
body[data-hand=left] .bead-summary{direction:ltr}
body[data-view=incense] .controls .row,body[data-view=bow] .controls .row,.sit-main>.row{display:grid;grid-template-columns:repeat(3,1fr)}
body[data-view=incense] .controls .row:has(button:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}
body[data-view=incense] .controls .row button,body[data-view=bow] .controls .row button,.sit-main>.row button{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
body[data-view=sit] .sit-main>.row,body[data-view=incense] .controls .row:has(button:nth-child(3)){grid-template-columns:repeat(2,1fr)}
body[data-view=sit] .sit-main>.row [data-action=home],body[data-view=incense] .controls .row:has(button:nth-child(3)) [data-action=home]{grid-column:1/-1}
body:is([data-view=incense],[data-view=bow],[data-view=sit],[data-view=mo],[data-view=beads]) .controls button{padding-inline:4px;white-space:nowrap;overflow-wrap:normal}
body[data-view=incense] .controls .row button,body[data-view=bow] .controls .row button{height:48px;min-height:48px;padding:4px;line-height:1.15}
@media(max-height:700px){body:is([data-view=incense],[data-view=bow],[data-view=sit],[data-view=mo],[data-view=beads]) .controls{height:208px;min-height:208px}}
body[data-view=beads] .controls{height:auto;min-height:0}
