:root{--ink:#f7f5ed;--sub:rgba(237,242,243,.68);--line:rgba(250,250,250,.16);--glass:rgba(23,33,53,.52);--accent:#e9dcba;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{padding:0;margin:0;overflow:hidden;width:100%;height:100%;background:#111f31;color:var(--ink);font-family:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',sans-serif}button{font:inherit;cursor:pointer;border:0;color:inherit}button:focus-visible{outline:2px solid #fff;outline-offset:3px}#world{position:fixed;inset:0;display:block;width:100%;height:100%;touch-action:none;background:#112337}.grain{pointer-events:none;position:fixed;inset:0;opacity:.17;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.68' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E")} .app{position:fixed;inset:0;pointer-events:none;display:flex;flex-direction:column;padding:calc(19px + var(--safe-top)) clamp(20px,5.3vw,48px) calc(15px + var(--safe-bottom));background:linear-gradient(to bottom,rgba(9,17,29,.29),transparent 38%,transparent 54%,rgba(9,19,30,.55) 100%)}.app button{pointer-events:auto}.header{display:flex;align-items:center;justify-content:space-between;gap:12px}.identity{display:flex;align-items:center;gap:11px}.logo{width:39px;height:39px;border:1px solid rgba(255,255,255,.32);border-radius:13px;display:grid;place-items:center;color:#f0e9ce;background:rgba(255,255,255,.055);backdrop-filter:blur(10px)}.logo svg{width:29px;height:29px}.brand{font-family:Georgia,serif;font-size:23px;letter-spacing:.1px;line-height:1.05;font-weight:400}.subbrand{font-size:10px;letter-spacing:.35px;color:rgba(243,246,239,.6);padding-top:5px}.icon-button{width:39px;height:39px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.23);border-radius:13px;background:rgba(255,255,255,.055);backdrop-filter:blur(12px)}.icon-button svg{width:22px;height:22px}.upper{margin-top:clamp(28px,6.5vh,77px);max-width:415px;text-shadow:0 1px 16px rgba(11,20,35,.18)}.eyebrow{color:#ebdba9;font-size:10px;letter-spacing:2.4px;font-weight:650;margin-bottom:12px}h1{font-family:Georgia,serif;line-height:1.12;font-size:clamp(34px,9vw,53px);font-weight:400;letter-spacing:-1.2px;margin:0}h1 em{font-weight:400;font-style:italic;color:#e6dac3}.hint{font-size:13px;line-height:1.65;color:var(--sub);max-width:320px;margin-top:15px}.spacer{flex:1;min-height:10px}.bottom{width:100%;max-width:570px;align-self:center}.moment-panel{background:rgba(17,30,46,.41);border:1px solid rgba(255,255,255,.16);box-shadow:0 10px 38px rgba(6,13,29,.14);border-radius:18px;display:flex;align-items:center;gap:12px;padding:12px 13px;backdrop-filter:blur(19px);-webkit-backdrop-filter:blur(19px)}.medal{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;font-size:24px;color:#ffdc98;background:linear-gradient(140deg,rgba(225,177,107,.28),rgba(240,219,176,.07));border:1px solid rgba(233,206,142,.23)}.moment-text{flex:1;min-width:0}.moment-caption{font-size:8px;letter-spacing:1.4px;color:rgba(246,239,223,.67);font-weight:650}.moment-number{font-family:Georgia,serif;font-size:25px;white-space:nowrap}.moment-unit{font-family:system-ui,sans-serif;color:rgba(249,247,240,.81);font-size:11px;letter-spacing:0;font-weight:400}.breathe-button{border:1px solid rgba(239,229,200,.27);padding:10px 11px;border-radius:13px;background:rgba(228,220,197,.09);font-size:17px;color:#f4e5c8;white-space:nowrap}.breathe-button span{font-size:11px;vertical-align:2px;margin-left:2px}.mission{margin-top:10px;padding:12px 4px 10px}.mission-head{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:550}.mission-head span:last-child{font-variant-numeric:tabular-nums;font-size:11px;color:rgba(245,243,225,.78)}.track{height:4px;background:rgba(255,255,255,.16);border-radius:8px;overflow:hidden;margin-top:10px}.track-fill{height:100%;width:0;background:linear-gradient(to right,#a5d6cc,#f8ddac);border-radius:8px;transition:width .3s ease}.mission-foot{color:rgba(255,255,255,.56);font-size:10px;margin-top:9px}.world-header{display:flex;justify-content:space-between;margin:16px 3px 10px;gap:10px}.world-header span:first-child{font-size:9px;letter-spacing:1.8px;font-weight:650;color:rgba(255,255,255,.89)}.world-header span:last-child{font-size:10px;color:rgba(255,255,255,.52)}.worlds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.world{height:61px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border:1px solid rgba(255,255,255,.15);border-radius:15px;background:rgba(16,30,45,.46);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);font-size:11px;color:rgba(250,248,238,.76);transition:background .3s,border .3s,transform .2s}.world:active{transform:scale(.96)}.world.active{background:rgba(226,222,189,.17);border-color:rgba(246,229,189,.54);color:#fff}.world-icon{font-family:Georgia,serif;font-size:21px;line-height:1}.toast{position:fixed;z-index:5;top:27%;left:50%;width:max-content;max-width:83vw;transform:translate(-50%,-15px);border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:12px 19px;font-size:12px;background:rgba(23,42,56,.8);backdrop-filter:blur(20px);box-shadow:0 20px 55px rgba(0,0,0,.24);text-align:center;pointer-events:none;opacity:0;transition:opacity .35s,transform .35s}.toast.show{opacity:1;transform:translate(-50%,0)}.overlay{position:fixed;z-index:10;inset:0;display:grid;place-items:center;background:rgba(8,17,32,.64);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);padding:22px}.overlay[hidden]{display:none}.sheet{position:relative;width:min(100%,390px);border-radius:27px;padding:33px 25px 25px;background:linear-gradient(140deg,#294457,#162938);border:1px solid rgba(255,255,255,.17);box-shadow:0 20px 80px rgba(0,0,0,.3)}.close{position:absolute;right:17px;top:12px;width:33px;height:33px;font-size:29px;line-height:1;background:transparent;color:rgba(255,255,255,.8)}.sheet-icon{font-family:Georgia,serif;font-size:44px;color:#eedcaa}.sheet h2,.breath-sheet h2{font-family:Georgia,serif;font-size:30px;font-weight:400;margin:8px 0 8px}.sheet p,.breath-sheet p{font-size:13px;line-height:1.6;color:rgba(250,249,245,.7);margin:0 0 27px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:17px 0}.setting-row strong{display:block;font-size:13px;font-weight:550}.setting-row small{display:block;color:rgba(255,255,255,.57);font-size:11px;margin-top:4px}.toggle{width:51px;height:29px;background:rgba(255,255,255,.17);border:1px solid rgba(255,255,255,.2);border-radius:30px;display:flex;align-items:center;padding:3px;transition:background .2s}.toggle>span{width:21px;height:21px;border-radius:50%;background:#d4d7d8;transition:transform .2s}.toggle.on{background:#b1cdbb}.toggle.on>span{background:#21362d;transform:translateX(21px)}.privacy{font-size:11px;color:rgba(255,255,255,.57);line-height:1.9;margin:26px 0 20px}.primary{background:#e7dec6;color:#233646;border-radius:12px;width:100%;padding:15px;font-size:13px;font-weight:650}.breath-overlay{background:rgba(5,16,32,.92)}.breath-sheet{height:min(680px,100%);width:min(100%,390px);text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.breath-kicker{letter-spacing:2.6px;font-size:10px;color:#d9cdad}.breath-sheet h2{margin-top:13px}.breath-sheet p{max-width:250px;margin:6px 0 0}.breath-stage{position:relative;width:min(78vw,300px);height:min(78vw,300px);margin:22px 0 18px;display:grid;place-items:center}.breath-halo{position:absolute;width:100%;height:100%;border-radius:50%;border:1px solid rgba(194,223,220,.23);background:radial-gradient(circle,rgba(181,226,220,.12) 0%,rgba(182,220,222,.08) 43%,transparent 70%);animation:haloBreath 10s infinite ease-in-out}.breath-orb{width:65%;height:65%;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:radial-gradient(circle at 35% 29%,#c9e8dc,#6eaaa8 65%,#4c7085 100%);box-shadow:0 0 60px rgba(126,197,192,.25),inset -13px -20px 37px rgba(38,82,93,.21);animation:orbBreath 10s infinite ease-in-out;color:#19384b}.breath-phrase{font-family:Georgia,serif;font-size:29px}.breath-orb small{margin-top:7px;font-size:11px;opacity:.73}.breath-foot{font-size:12px;line-height:2;color:rgba(253,248,232,.84)}.breath-foot span{color:rgba(253,248,232,.54);font-size:11px}.breath-finish{background:none;border:1px solid rgba(255,255,255,.35);padding:12px 26px;margin-top:29px;border-radius:999px;font-size:12px;color:#f7eee0}@keyframes orbBreath{0%,100%{transform:scale(.78)}40%{transform:scale(1.09)}42%{transform:scale(1.09)}}@keyframes haloBreath{0%,100%{transform:scale(.78);opacity:.65}40%{transform:scale(1.13);opacity:1}42%{transform:scale(1.13);opacity:1}}@media(max-height:720px){.upper{margin-top:23px}.hint{margin-top:8px;font-size:12px}.moment-panel{padding:8px 10px}.medal{height:36px;width:36px}.mission{padding-top:8px;padding-bottom:6px}.world-header{margin-top:8px}.world{height:54px}.app{padding-top:calc(10px + var(--safe-top));padding-bottom:calc(8px + var(--safe-bottom))}}@media(max-height:610px){.upper{margin-top:13px}h1{font-size:30px}.hint{display:none}.mission-foot{display:none}.world-header{margin:6px 3px}.mission{margin-top:4px}.world{height:43px;flex-direction:row}.world-icon{font-size:18px}.moment-number{font-size:21px}}@media(min-width:700px){.upper{margin-left:max(0px,calc((100vw - 800px)/2))}.bottom{margin-bottom:15px}}@media(prefers-reduced-motion:reduce){.breath-halo,.breath-orb{animation-duration:10s}.world,.toast{transition-duration:0s}}

/* 1.3 · Comfort UI. The canvas stays accessible over most of the screen. */
:root{--touch-size:52px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app{padding:calc(10px + var(--safe-top)) clamp(12px,3vw,26px) calc(11px + var(--safe-bottom));background:linear-gradient(to bottom,rgba(8,18,29,.25),transparent 23%,transparent 73%,rgba(5,16,28,.47) 100%);gap:0}
.header{align-items:center;min-height:55px;gap:8px}
.identity{min-width:0;gap:9px}
.logo{width:45px;height:45px;flex-shrink:0;border-radius:15px}
.logo svg{width:27px;height:27px}
.brand{font-family:Georgia,serif;font-size:clamp(18px,4.9vw,24px);line-height:1.15;white-space:nowrap}
.header-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.moments-chip{height:40px;min-width:43px;display:flex;justify-content:center;align-items:center;gap:5px;padding:0 7px;color:#f5e6c4;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;background:rgba(14,33,49,.5);border:1px solid rgba(255,255,255,.20);border-radius:13px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.moments-chip span:first-child{color:#ffdf9d;font-size:19px}
.header-button{width:auto;min-width:var(--touch-size);height:var(--touch-size);display:flex;align-items:center;justify-content:center;border-radius:16px;border:1px solid rgba(255,255,255,.25);background:rgba(13,29,44,.57);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:0 12px;color:#f8f3e6}
.icon-button{width:var(--touch-size);padding:0}
.icon-button svg{width:25px;height:25px}
.breathe-button{padding:0 13px;white-space:nowrap;font-size:15px;gap:7px}
.breathe-button .action-symbol{font-size:27px;line-height:1}
.breathe-button .action-label{font-size:13px;letter-spacing:.1px;margin:0}
.scene-guide{margin-top:10px;min-height:58px;max-width:min(100%,490px);display:flex;align-items:center;gap:12px;padding:8px 10px 8px 12px;background:rgba(10,28,43,.52);border:1px solid rgba(245,240,225,.16);border-radius:17px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);pointer-events:auto}
.scene-symbol{font-family:Georgia,serif;color:#f6e1b0;font-size:23px;line-height:1;flex:0 0 26px;text-align:center}
.scene-guide-text{flex:1;min-width:0}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.3px;color:#eee1b7;margin-bottom:3px}
.hint{font-size:12px;line-height:1.35;color:rgba(249,250,247,.80);margin:0;max-width:none;white-space:normal}
.help-button{flex-shrink:0;width:44px;height:44px;border:1px solid rgba(255,255,255,.2);border-radius:13px;background:rgba(246,241,226,.09);font-size:20px;font-weight:500;color:#f2e6c9}
.play-space{flex:1;min-height:40px;pointer-events:none}
.bottom{max-width:600px;width:100%;display:flex;flex-direction:column;gap:8px}
.compact-progress{padding:10px 13px 11px;border-radius:14px;border:1px solid rgba(244,240,232,.16);background:rgba(12,29,43,.66);backdrop-filter:blur(11px);-webkit-backdrop-filter:blur(11px)}
.progress-line{display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:1.35}
.progress-name{font-size:12px;font-weight:600;color:#eeeadd;letter-spacing:.25px}
.progress-count{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:#ede4cd}
.compact-progress .track{margin-top:7px;height:5px}
.worlds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.world{height:72px;min-height:60px;border-radius:16px;gap:4px;background:rgba(14,30,47,.74);border-color:rgba(255,255,255,.22);font-size:13px;font-weight:550;pointer-events:auto}
.world-icon{font-size:25px;line-height:1.1}
.world.active{background:rgba(226,219,177,.25);border-color:rgba(251,234,189,.66);color:#fff;box-shadow:inset 0 0 12px rgba(255,255,255,.06)}
.world:active,.header-button:active,.help-button:active{transform:scale(.96)}
.toast{top:22%;font-size:13px;max-width:min(82vw,310px);padding:10px 14px;z-index:6}
.sheet .close{width:48px;height:48px;right:9px;top:8px}
.gesture-list{display:flex;flex-direction:column;gap:10px;margin:18px 0 8px;text-align:left}
.gesture-item{display:flex;gap:13px;align-items:center;background:rgba(255,255,255,.06);border-radius:15px;padding:11px 12px}
.gesture-item>span{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;background:rgba(241,232,203,.1);border:1px solid rgba(255,255,255,.12);border-radius:13px;font-size:26px;color:#f0d9aa}
.gesture-item strong{display:block;font-size:14px;font-weight:650}
.gesture-item small{display:block;font-size:12px;line-height:1.4;color:rgba(251,251,246,.67);margin-top:3px}
.sheet.help-sheet{max-height:92vh;overflow-y:auto}
/* On narrow folded screens, controls remain fingertip-sized. */
@media(max-width:385px){:root{--touch-size:49px}.app{padding-left:10px;padding-right:10px}.header-actions{gap:5px}.logo{width:41px;height:41px}.brand{font-size:19px}.header-button{padding:0 9px}.breathe-button .action-label{font-size:12px}.moments-chip{font-size:14px;min-width:38px}.scene-guide{margin-top:7px}.world{height:68px}}
/* On short screens the guidance can be kept in a single strip and the bottom controls never leave the viewport. */
@media(max-height:650px){.app{padding-top:calc(5px + var(--safe-top));padding-bottom:calc(6px + var(--safe-bottom))}.header{min-height:49px}.header-button{height:48px;min-width:48px}.scene-guide{min-height:48px;padding:4px 9px;margin-top:5px}.help-button{width:40px;height:40px}.bottom{gap:5px}.compact-progress{padding:6px 10px 7px}.compact-progress .track{margin-top:4px}.world{height:58px;flex-direction:row;gap:6px}.world-icon{font-size:20px}}
@media(max-height:460px){.header{min-height:40px}.logo{width:37px;height:37px}.header-button{height:42px;min-width:44px}.scene-guide{min-height:40px}.hint{font-size:11px}.play-space{min-height:28px}.world{height:51px}.compact-progress{padding:5px 9px}.header-button .action-label{display:none}}
/* Floating layout on unfolded tablets: UI follows edges, never overlays the center. */
@media(min-width:700px){.app{padding-inline:max(22px,3vw)}.scene-guide{max-width:420px}.bottom{max-width:550px;margin-bottom:0}.header .brand{font-size:24px}}

/* v1.4: free the scenery, daylight, accessible on-screen music controls. */
.app{background:linear-gradient(to bottom,rgba(11,26,39,.15),transparent 22%,transparent 76%,rgba(10,35,38,.34) 100%)}
.bottom{padding:0}
.scene-guide{background:rgba(12,38,54,.56)}
.header-actions{gap:6px}
.day-button{display:flex;gap:5px;padding:0 9px;font-size:13px;font-weight:650;min-width:67px}
.day-button .action-symbol{font-size:22px;color:#ffe8a4}
.music-button{width:var(--touch-size);min-width:var(--touch-size);padding:0;position:relative}
.music-button .action-symbol{font-size:25px}
.music-button.active{background:rgba(245,231,171,.26);border-color:rgba(249,228,160,.85);box-shadow:0 0 17px rgba(249,223,147,.2)}
.music-button.active::after{content:'';width:6px;height:6px;position:absolute;top:6px;right:6px;border-radius:50%;background:#b8e6ae}
.volume-row{flex-wrap:wrap;margin:14px 0 20px}.volume-row label{width:100%}
#musicVolume{width:100%;height:28px;accent-color:#e8d49b;cursor:pointer}
body.day{background:#94d5e9}
body.day .app{background:linear-gradient(to bottom,rgba(12,62,85,.1),transparent 23%,transparent 76%,rgba(22,79,73,.24) 100%)}
body.day .scene-guide{background:rgba(10,51,72,.62)}
body.day .grain{opacity:.06}
body.day .world{background:rgba(16,61,76,.77)}
body.day .world.active{background:rgba(245,231,166,.5);border-color:rgba(254,246,197,.95);color:#fff}
body.day .header-button{background:rgba(11,60,81,.70)}
body.day .logo{background:rgba(11,60,81,.37)}
@media(max-width:435px){
  .header-actions{gap:4px}.header{gap:5px}.identity{gap:6px}
  .brand{font-size:clamp(17px,5vw,21px)}.logo{height:39px;width:39px}
  .header-button{height:47px;min-width:44px;border-radius:14px}
  .day-button{width:46px;min-width:46px;padding:0}.day-button .action-label{display:none}
  .music-button{width:46px;min-width:46px}
  .breathe-button{width:46px;min-width:46px;padding:0}.breathe-button .action-label{display:none}
  .icon-button{width:46px;min-width:46px;padding:0}
}
@media(max-width:370px){.app{padding-left:9px;padding-right:9px}.brand{font-size:17px}.logo{height:35px;width:35px}.header-button{width:43px;min-width:43px;height:44px}.header-actions{gap:3px}}
@media(max-height:460px){.bottom{gap:3px}.world{min-height:47px}.scene-guide{margin-top:3px}}

/* One-thumb daylight switch; world labels stay inside all three buttons. */
.thumb-day-toggle{position:fixed;right:max(9px,env(safe-area-inset-right,0px));top:59%;transform:translateY(-50%);z-index:4;pointer-events:auto!important;min-width:62px!important;width:62px!important;height:66px!important;border-radius:18px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:5px 2px!important;background:rgba(18,55,66,.84);box-shadow:0 5px 22px rgba(0,0,0,.21)}
.thumb-day-toggle .action-symbol{font-size:25px!important;line-height:1.05}
.thumb-day-toggle .action-label{display:block!important;font-size:11px!important;line-height:1.2;white-space:nowrap}
.thumb-day-toggle:active{transform:translateY(-50%) scale(.96)!important}
.world{min-width:0;overflow:hidden;padding:6px 3px;height:74px;gap:4px}
.world>span:last-child{display:block;width:100%;font-size:clamp(10px,3.2vw,14px);line-height:1.17;white-space:nowrap;text-align:center;overflow:hidden;text-overflow:clip}
.world-icon{flex:none;font-size:25px}
@media(max-height:540px){.thumb-day-toggle{top:52%;height:54px!important;width:56px!important;min-width:56px!important}.world{height:54px;min-height:48px;flex-direction:row;gap:3px}.world-icon{font-size:20px}.world>span:last-child{width:auto;font-size:clamp(10px,1.8vw,13px)}}
@media(max-width:360px){.worlds{gap:5px}.world>span:last-child{font-size:10px}}


/* v1.5 · Android one-thumb refinements: labels fully visible, gentle pulsing switch. */
.app { padding-bottom: max(33px, calc(19px + var(--safe-bottom))) !important; }
.bottom { flex: 0 0 auto; flex-shrink: 0; margin-bottom: 0 !important; min-height: 0; overflow: visible; }
.worlds { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; align-items: stretch; }
.world {
  box-sizing: border-box; height: 71px !important; min-height: 71px !important;
  display: grid !important; grid-template-rows: 30px 20px; grid-template-columns: minmax(0,1fr);
  align-content: center; justify-items: center; align-items: center;
  gap: 4px !important; padding: 6px 2px !important;
  flex-direction: initial; overflow: visible;
}
.world-icon { display: block; height: 30px; line-height: 30px; font-size: 27px; margin:0; }
.world>span:last-child {
  display: block; width: 100%; min-width: 0; height: 20px;
  line-height: 20px; font-size: clamp(10px, 3.15vw, 15px) !important;
  text-align:center; overflow: visible; white-space: nowrap; letter-spacing: -.15px;
  font-weight: 650; align-self: center;
}
.thumb-day-toggle {
  width: 73px !important; min-width: 73px !important;
  height: 83px !important; right: max(8px, env(safe-area-inset-right, 0px));
  top: 57%; border-radius: 21px !important;
  padding: 6px 4px !important; gap: 0 !important;
  background: rgba(18,48,70,.96) !important;
  border: 2px solid rgba(249,236,188,.90) !important;
  color: #fff5d2 !important;
  box-shadow: 0 5px 15px rgba(8,30,39,.36), 0 0 0 4px rgba(250,240,184,.10), 0 0 22px rgba(251,229,147,.27);
  animation: thumbSoftPulse 5.4s ease-in-out infinite;
  z-index: 7;
}
.thumb-day-toggle::before {content: '';position:absolute;inset:-7px;pointer-events:none;border-radius:26px;border:1px solid rgba(255,245,199,.48);animation: thumbOuterPulse 5.4s ease-in-out infinite;}
.thumb-day-toggle .action-symbol {
  display:flex !important; justify-content:center;align-items:center;
  font-size:32px !important; line-height:1 !important;
  width:100%; height:43px; margin:0 !important; padding:0 !important;
  color:inherit !important; text-align:center;
}
.thumb-day-toggle .action-label {
  display:flex !important; align-items:center; justify-content:center;
  width:100%; height:20px; flex:0 0 20px;
  padding:0 !important; margin:0 !important;
  font-size:13px !important; font-weight:750 !important;
  line-height:20px !important; letter-spacing:0 !important;
  color:inherit !important; text-align:center; white-space:nowrap;
}
body.day .thumb-day-toggle {
  background: rgba(253,241,181,.96) !important;
  border-color:#fffdf0 !important; color:#244f64 !important;
  box-shadow:0 5px 15px rgba(25,97,106,.3), 0 0 0 4px rgba(255,250,207,.29), 0 0 21px rgba(255,245,179,.75);
}
body.day .thumb-day-toggle::before{border-color:rgba(255,253,215,.84)}
@keyframes thumbSoftPulse {0%,100% {filter:brightness(1); box-shadow:0 5px 15px rgba(8,30,39,.3),0 0 0 4px rgba(250,240,184,.12),0 0 16px rgba(251,229,147,.24)} 50% {filter:brightness(1.1);box-shadow:0 5px 19px rgba(8,30,39,.27),0 0 0 7px rgba(250,240,184,.18),0 0 30px rgba(251,229,147,.5)}}
@keyframes thumbOuterPulse {0%,100% {opacity:.3;transform:scale(.98)}50% {opacity:.72;transform:scale(1.045)}}
@media(max-width:360px) { .app{padding-inline:9px;} .worlds{gap:5px;} .world-icon{font-size:24px;} }
@media(max-height:540px) {
  .app{padding-bottom:max(13px,calc(9px + var(--safe-bottom))) !important}
  .thumb-day-toggle{top:53%; width:61px !important; min-width:61px !important; height:70px !important;}
  .thumb-day-toggle .action-symbol{height:34px;font-size:26px !important}
  .thumb-day-toggle .action-label{font-size:11px !important;height:18px;flex-basis:18px}
  .world{height:54px !important;min-height:54px !important;grid-template-rows:23px 17px;gap:1px !important;padding:4px 2px !important}
  .world-icon{height:23px;line-height:23px;font-size:19px}
  .world>span:last-child{height:17px;line-height:17px;font-size:clamp(10px,1.8vw,13px) !important;}
  .scene-guide{padding-block:4px}
}
@media(prefers-reduced-motion:reduce){.thumb-day-toggle,.thumb-day-toggle::before{animation:none !important}}


/* v1.6: no clipped captions, including Android WebView font boosting and unfolded Fold. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.app { padding-bottom: max(39px,calc(22px + var(--safe-bottom))) !important; }
.bottom { flex: 0 0 auto !important; min-height: 0; overflow: visible !important; margin-top: auto; }
.worlds { width: 100%; display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px !important; align-items: stretch !important; }
.world, body.day .world {
  box-sizing: border-box !important; height: 92px !important; min-height: 92px !important;
  display: flex !important; flex-direction: column !important;
  justify-content: center !important; align-items: center !important;
  gap: 6px !important; padding: 9px 3px !important;
  overflow: hidden !important; text-align: center !important;
  line-height: normal !important;
}
.world .world-icon {
  display: block !important; width: 100%; height: 29px !important;
  line-height: 29px !important; font-size: 29px !important;
  flex: 0 0 29px !important; margin: 0 !important;
}
.world .world-label {
  display: block !important; box-sizing: border-box !important;
  height: auto !important; min-height: 20px; width: 100% !important;
  font-size: clamp(12px,2.6vw,15px) !important;
  font-weight: 650 !important; line-height: 1.3 !important;
  letter-spacing: -0.3px !important; text-align: center !important;
  white-space: nowrap !important; overflow: visible !important;
  flex: 0 0 auto !important; padding: 0 1px !important;
}
/* Extra room at the bottom matters for the Android navigation gesture strip. */
@media (max-height:540px){
  .app{padding-bottom:max(14px,calc(8px + var(--safe-bottom)))!important}
  .world, body.day .world{height:62px!important;min-height:62px!important;gap:1px!important;padding:4px 2px!important}
  .world .world-icon{font-size:19px!important;height:23px!important;line-height:23px!important;flex-basis:23px!important}
  .world .world-label{font-size:clamp(11px,1.8vw,13px)!important;min-height:17px;line-height:1.25!important}
}
@media (max-width:360px){.world,body.day .world{gap:4px!important}.world .world-icon{font-size:25px!important}}

/* v1.8: ensure alternate labels remain entirely inside buttons at any Android font scale. */
.world .world-label { font-size: clamp(11px,2.35vw,15px)!important; overflow:hidden!important; text-overflow:clip!important; }
@media(max-width:370px){ .world .world-label {font-size:11px!important;letter-spacing:-.45px!important;} }

/* v2.4: small icon-only world switcher, reachable by one thumb. */
.worlds{width:max-content!important;max-width:100%;margin:0 auto!important;display:flex!important;justify-content:center!important;gap:12px!important}
.world,body.day .world{width:clamp(51px,14vw,63px)!important;max-width:63px!important;height:clamp(51px,14vw,63px)!important;min-height:51px!important;flex:0 0 auto!important;display:grid!important;place-items:center!important;gap:0!important;padding:0!important;border-radius:18px!important}
.world .world-label,.world>span:last-child{display:none!important}
.world .world-icon{display:block!important;height:auto!important;width:auto!important;line-height:1!important;font-size:clamp(24px,6vw,31px)!important;flex:0 0 auto!important}
@media(max-height:530px){.worlds{gap:10px!important}.world,body.day .world{width:49px!important;min-height:49px!important;height:49px!important}.world .world-icon{font-size:23px!important}}

/* v2.4: the day/night thumb control is also a smaller icon-only button. */
.thumb-day-toggle,body.day .thumb-day-toggle{
  width:57px!important;min-width:57px!important;max-width:57px!important;
  height:57px!important;min-height:57px!important;
  padding:0!important;gap:0!important;
  border-radius:50%!important;top:56%!important;display:grid!important;place-items:center!important;
}
.thumb-day-toggle::before{border-radius:50%!important;inset:-5px!important}
.thumb-day-toggle .action-label,.day-button .action-label{display:none!important}
.thumb-day-toggle .action-symbol{width:auto!important;height:auto!important;line-height:1!important;
  font-size:32px!important;display:block!important;text-align:center!important}
@media(max-height:530px){.thumb-day-toggle,body.day .thumb-day-toggle{width:50px!important;min-width:50px!important;height:50px!important;min-height:50px!important;top:52%!important}.thumb-day-toggle .action-symbol{font-size:28px!important}}

/* Remaining top-row buttons use symbols only, with 44px touch targets. */
.header-actions .header-button,.header-actions .icon-button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;display:grid!important;place-items:center!important;padding:0!important;border-radius:14px!important}
.header-actions .header-button .action-label{display:none!important}
.header-actions .header-button .action-symbol{font-size:23px!important;line-height:1!important}


/* v2.5 · Optical centering of ALL icon-only controls. No button text visible. */
.world,body.day .world{display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;}
.world .world-icon{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;flex:none!important;
  font-family:system-ui,'Segoe UI Symbol',sans-serif!important;
  font-size:clamp(24px,6vw,31px)!important;line-height:1!important;
  padding:0!important;margin:0!important;text-align:center!important;
}
.world[data-scene="lake"] .world-icon{transform:translateY(-1px)}
.header-actions .header-button .action-symbol,
.thumb-day-toggle .action-symbol{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;line-height:1!important;
  margin:0!important;padding:0!important;text-align:center!important;
}
.header-actions .icon-button svg{display:block;margin:auto}
.logo,.help-button{display:grid!important;place-items:center!important;padding:0!important;line-height:1!important}

/* Mir Relax brand: compact typography and flexible header on small mobile screens */
.header .identity{flex:1 1 auto;min-width:0}
.header .brand{font-size:clamp(16px,4.3vw,23px);letter-spacing:-.35px;min-width:0;white-space:nowrap}
@media (max-width:390px){.header .identity{gap:5px}.header .logo{width:35px;height:35px;flex:0 0 35px}.header .brand{font-size:clamp(14px,4.1vw,18px)}.header .header-actions{gap:3px}}
@media (max-width:340px){.header .logo{display:none}.header .brand{font-size:15px}}


/* v1.3 update: strict icon centering and compact controls */
.header-actions .header-button,.header-actions .icon-button,.world,.thumb-day-toggle,.help-button,.logo{display:grid!important;place-items:center!important}
.header-actions .header-button .action-symbol,.thumb-day-toggle .action-symbol,.world .world-icon{display:grid!important;place-items:center!important;transform:none!important}
.header-actions .icon-button svg{display:block!important;margin:auto!important;width:20px!important;height:20px!important}
.world .world-icon{font-size:clamp(22px,5.5vw,29px)!important}
.thumb-day-toggle .action-symbol{font-size:30px!important}

/* 1.4: customer account link matches compact header controls */
.header-actions .account-icon-button { width:44px!important; height:44px!important; min-width:44px!important; border-radius:14px!important; padding:0!important; display:grid!important; place-items:center!important; color:inherit!important; text-decoration:none!important; }

.account-icon-button svg{display:block;width:21px;height:21px;max-width:55%;max-height:55%}


/* v2.1 — breathing overlay, independent of the game canvas */
.breath-overlay { z-index:1100 !important; pointer-events:auto !important; }
.breath-overlay[hidden] { display:none !important; }
.breath-overlay .breath-sheet {pointer-events:auto;max-height:100%;}
.breath-overlay .breath-orb,.breath-overlay .breath-halo {
  animation:none !important;
  transform:scale(.78);
  transform-origin:center;
  will-change:transform;
}
.breath-overlay .breath-finish,.breath-overlay .close { min-width:44px;min-height:44px;cursor:pointer; }
@media (max-height:620px) {
  .breath-sheet h2{font-size:25px;}
  .breath-stage{width:min(53vh,230px);height:min(53vh,230px);margin:10px 0;}
  .breath-finish{margin-top:12px;}
}
@media (prefers-reduced-motion:reduce) {
  .breath-overlay .breath-orb,.breath-overlay .breath-halo {will-change:auto;}
}

/* Мир релакса 2.3 — clear top-row controls and genuinely centered icons. */
.header-actions .header-button{box-sizing:border-box!important;display:grid!important;place-items:center!important;
  width:46px!important;min-width:46px!important;max-width:46px!important;height:46px!important;
  min-height:46px!important;padding:0!important;margin:0!important;border-radius:15px!important;
  line-height:1!important;text-align:center!important;flex:0 0 46px!important;}
.header-actions .header-button .action-symbol{box-sizing:border-box!important;display:grid!important;
  place-items:center!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important;
  line-height:1!important;font-size:26px!important;transform:none!important;}
.header-actions .icon-button svg{display:block!important;width:24px!important;height:24px!important;
  margin:auto!important;transform:none!important;}
.header-actions .header-button .action-label{display:none!important;}
.world .world-icon{display:grid!important;place-items:center!important;transform:none!important;line-height:1!important;
  width:100%!important;height:100%!important;padding:0!important;margin:0!important;}
.thumb-day-toggle .action-symbol{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;
  padding:0!important;margin:0!important;transform:none!important;}
.account-settings-link{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:20px 0 2px;
  border-radius:14px;border:1px solid rgba(255,255,255,.2);background:rgba(242,237,220,.11);
  color:#f8f0dc;text-decoration:none;font-size:14px;font-weight:650;min-height:48px;}
.account-settings-link svg{height:23px;width:23px;flex:0 0 23px;}
.account-settings-link span:last-child{margin-left:auto;font-size:23px;color:#ddd4bf;}
.account-settings-link:focus-visible,.account-settings-link:hover{outline:2px solid rgba(243,229,173,.75);outline-offset:2px;}
@media (max-width:365px){.header-actions .header-button{width:43px!important;min-width:43px!important;height:43px!important;min-height:43px!important;flex-basis:43px!important}}
/* Settings remain usable on a short phone screen after adding the account link. */
#settings .sheet{max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain;}


/* MirRelax 2.4: unobstructed canvas and optically centered vector symbols */
.scene-guide{display:none!important}
#app .play-space{flex:1 1 auto;min-height:0;pointer-events:none}
.header-actions .header-button,.world,.thumb-day-toggle{box-sizing:border-box!important;display:grid!important;place-items:center!important;padding:0!important;line-height:1!important}
.header-actions .action-symbol,.world .world-icon,.thumb-day-toggle .action-symbol{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  padding:0!important;margin:0!important;line-height:1!important;
  transform:none!important;
}
.header-actions .action-symbol svg,.world .world-icon svg,.thumb-day-toggle .action-symbol svg{
  display:block!important;flex:none!important;width:28px!important;height:28px!important;
  margin:0!important;transform:none!important;
}
.header-actions .icon-button svg{display:block!important;width:24px!important;height:24px!important;margin:auto!important}
.thumb-day-toggle .action-symbol svg{width:32px!important;height:32px!important}
.world .world-icon svg{width:29px!important;height:29px!important}
.settings-help-link{width:100%;display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:12px 14px;min-height:48px;margin-top:12px;background:rgba(242,237,220,.11);
  border:1px solid rgba(255,255,255,.2);border-radius:14px;
  font-size:14px;font-weight:650;color:#f8f0dc;text-align:left}
.settings-help-link span{font-size:20px;border-radius:50%;line-height:1.3}
#settings .sheet{max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:365px){
  .header-actions .action-symbol svg{width:25px!important;height:25px!important}
  .world .world-icon svg{width:26px!important;height:26px!important}
}

/* v2.5 — calm audio choice in settings. Local music is never sent to REG.RU. */
.music-picker{margin:12px 0 18px;padding:14px 0 10px;border-bottom:1px solid rgba(255,255,255,.13)}
.music-picker>strong{display:block;font-size:14px;margin-bottom:10px;color:#f7f1de}
.music-picker-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:9px}
.music-choice{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:125px;padding:10px 13px;border:1px solid rgba(255,255,255,.28);border-radius:11px;color:#f8f4e7;background:rgba(255,255,255,.075);font:600 13px/1.25 system-ui,-apple-system,sans-serif;text-align:center;cursor:pointer}
.music-choice.active,.music-choice[aria-pressed="true"]{background:rgba(209,234,215,.21);border-color:rgba(230,246,222,.74)}
.music-file-label:focus-within,.music-choice:focus-visible,.music-remove:focus-visible{outline:2px solid #fff;outline-offset:2px}
.music-file-input{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;opacity:0}
.music-file-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:9px}
.music-file-footer small{font-size:12px;line-height:1.55;overflow-wrap:anywhere;color:rgba(245,247,236,.77)}
.music-remove{min-height:38px;padding:7px 10px;border:1px solid rgba(255,255,255,.22);border-radius:9px;color:#f5e9d1;background:rgba(255,255,255,.055);font-size:12px}
@media(max-width:365px){.music-picker-actions .music-choice{flex:1 1 100%;min-width:0}}

/* v2.6.1: center button artwork by its actual SVG viewport rather than font metrics.
   Keep the complete touch target, but fix the drawing in an independent centered box. */
.header-actions .header-button,
.worlds .world,
#dayBtn {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 !important;
}
.header-actions .header-button > .action-symbol,
.worlds .world > .world-icon,
#dayBtn > .action-symbol {
  position: absolute !important;
  inset: 50% auto auto 50% !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  line-height: 1 !important;
}
.header-actions .header-button > svg {
  position: absolute !important;
  width: 25px !important;
  height: 25px !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}
.header-actions .header-button .action-symbol svg,
.worlds .world .world-icon svg,
#dayBtn .action-symbol svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  margin: 0 !important;
}
#dayBtn > .action-symbol {width: 33px !important;height: 33px !important;}
@media(max-height:530px){
  .header-actions .header-button > .action-symbol,
  .worlds .world > .world-icon {width:26px!important;height:26px!important;}
}

/* v2.7: two one-thumb season controls. Styles override legacy fixed day button. */
.season-controls {
  position:fixed !important;
  right:max(9px,env(safe-area-inset-right,0px)) !important;
  top:55% !important;
  transform:translateY(-28%) !important;
  z-index:9 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  pointer-events:none !important;
}
.season-controls #dayBtn,
.season-controls #seasonBtn {
  position:relative !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
  transform:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:57px !important;
  min-width:57px !important;
  max-width:57px !important;
  height:57px !important;
  min-height:57px !important;
  max-height:57px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:50% !important;
  flex:0 0 57px !important;
  pointer-events:auto !important;
  cursor:pointer;
  touch-action:manipulation;
}
.season-controls #seasonBtn {
  color:#f7edd8 !important;
  background:rgba(19,61,69,.92) !important;
  border:2px solid rgba(249,237,197,.80) !important;
  box-shadow:0 4px 12px rgba(12,30,37,.23),0 0 12px rgba(245,232,192,.11);
}
.season-controls #seasonBtn[data-season="spring"]{color:#e6f5d9!important}
.season-controls #seasonBtn[data-season="summer"]{color:#ffefb9!important}
.season-controls #seasonBtn[data-season="autumn"]{color:#f5d19b!important}
.season-controls #seasonBtn[data-season="winter"]{color:#d7effd!important}
.season-controls #dayBtn > .action-symbol,
.season-controls #seasonBtn > .action-symbol {
  position:absolute !important;
  left:50% !important;top:50% !important;
  inset:50% auto auto 50% !important;
  display:grid !important;
  place-items:center !important;
  width:32px !important;height:32px !important;
  transform:translate(-50%,-50%) !important;
  margin:0 !important;padding:0 !important;
  line-height:1 !important;
}
.season-controls #dayBtn > .action-symbol svg,
.season-controls #seasonBtn > .action-symbol svg {
  display:block !important;
  width:32px !important;height:32px !important;
  margin:0 !important;transform:none !important;
}
.season-controls #seasonBtn:focus-visible,
.season-controls #dayBtn:focus-visible{outline:2px solid #fff9d9;outline-offset:3px}
.season-controls #seasonBtn:active,
.season-controls #dayBtn:active{filter:brightness(1.13)}
@media(max-height:560px){
  .season-controls{top:51%!important;gap:8px!important}
  .season-controls #dayBtn,.season-controls #seasonBtn {
    width:48px!important;min-width:48px!important;max-width:48px!important;
    height:48px!important;min-height:48px!important;max-height:48px!important;flex-basis:48px!important;
  }
  .season-controls #dayBtn > .action-symbol,.season-controls #seasonBtn > .action-symbol,
  .season-controls #dayBtn > .action-symbol svg,.season-controls #seasonBtn > .action-symbol svg{
    width:27px!important;height:27px!important;
  }
}

/* v2.9: allow snow-track drawing under the lower control strip while preserving button taps. */
.worlds {touch-action:none;}
