/* Layout: full-bleed canvas forest; treasure pills float over the sky; touch pad along the bottom; menus are paper cards in the middle */
:root{
  --leaf:#2f8a3e;
  --leaf-deep:#1c5c28;
  --petal:#ff5fa2;
  --petal-deep:#c93c78;
  --sun:#ffd23f;
  --sun-deep:#d08a00;
  --paper:#fffaf0;
  --ink:#3a2a1f;
  --mint:#d6ecc9;
  --sky:#8fd3ff;
  --sick:#7fae3a;
  --font-display:"Baloo Bhaijaan 2","Tahoma","Segoe UI",system-ui,sans-serif;
  color-scheme: light;
}
html,body{height:100%;}
body{
  background:var(--sky); color:var(--ink); font-family:var(--font-display);
  overflow:hidden; -webkit-user-select:none; user-select:none; -webkit-tap-highlight-color:transparent;
}
#cv{position:fixed; inset:0; width:100%; height:100%; display:block; touch-action:none; cursor:pointer;}

#hud{
  position:fixed; inset:0 0 auto 0; z-index:5; pointer-events:none;
  display:flex; justify-content:space-between; align-items:flex-start; gap:12px;
  padding-top:calc(env(safe-area-inset-top,0px) + 12px);
  padding-left:max(16px, env(safe-area-inset-left,0px));
  padding-right:max(16px, env(safe-area-inset-right,0px));
}
.hud-main{display:flex; flex-direction:column; gap:10px; align-items:flex-start; min-width:0;}
.hud-side{display:flex; flex-direction:column; gap:12px; align-items:flex-end; flex:none;}
.stats{display:flex; gap:8px; align-items:center; flex-wrap:wrap; min-width:0;}
.quest{
  pointer-events:auto; cursor:pointer; font:inherit; text-align:right; color:var(--ink);
  display:flex; gap:10px; align-items:center; max-width:min(380px, 62vw);
  background:var(--paper); border:3px solid var(--sun-deep); border-radius:18px; box-shadow:0 4px 0 var(--sun-deep);
  padding:6px 10px 6px 12px;
}
.quest:active{transform:translateY(3px); box-shadow:0 1px 0 var(--sun-deep);}
.quest > svg{width:34px; height:34px; flex:none;}
.qt{display:flex; flex-direction:column; gap:2px; min-width:0;}
.qhrow{display:flex; align-items:center; gap:8px;}
.qdots{display:flex; gap:4px; align-items:center;}
.qdots i{width:9px; height:9px; border-radius:50%; background:#f3e3bf; border:1.5px solid var(--sun-deep); box-sizing:border-box;}
.qdots i.on{background:var(--leaf); border-color:var(--leaf-deep);}
.qh{font-size:13px; font-weight:800; color:var(--sun-deep);}
.qb{font-size:17px; font-weight:700; line-height:1.3;}
.qgo{flex:none; font-size:15px; font-weight:800; color:#fff; background:var(--leaf); border-radius:12px; padding:5px 10px 3px;}
.emotes{display:flex; gap:8px; pointer-events:auto;}
.emo{
  width:50px; height:50px; border-radius:50%; cursor:pointer; padding:0; position:relative;
  display:grid; place-items:center; border:3px solid #fff; color:#fff;
  box-shadow:0 4px 0 rgba(0,0,0,.22);
}
.emo svg{width:26px; height:26px;}
.emo:active{transform:translateY(3px); box-shadow:0 1px 0 rgba(0,0,0,.22);}
.emo .el{
  position:absolute; top:100%; left:50%; transform:translateX(-50%); margin-top:3px; white-space:nowrap;
  font-size:13px; font-weight:800; color:#fff; text-shadow:0 1px 0 rgba(0,0,0,.6), 0 0 3px rgba(0,0,0,.5);
}
.emo.dance{background:#ff5fa2;} .emo.sing{background:#a46bff;} .emo.wave{background:#ff9f1c;} .emo.twirl{background:#3fa2ff;}
@media (max-width:640px){ .emo{width:42px; height:42px;} .emo svg{width:22px; height:22px;} .qb{font-size:14px;} .quest > svg{width:26px;height:26px;} }
.pill.ff{border-color:#d0a800; box-shadow:0 4px 0 #9a7a00; background:#fffbe0;}
.skyrow{display:flex; gap:8px; justify-content:center;}
.skyb{
  font:inherit; font-size:18px; font-weight:800; cursor:pointer; flex:1;
  padding:6px 10px 4px; border-radius:14px; background:#fff; color:var(--ink);
  border:3px solid var(--mint); box-shadow:0 4px 0 var(--mint);
}
.skyb[aria-checked="true"]{background:#2b3a7a; color:#fff6c9; border-color:#1b2558; box-shadow:0 4px 0 #1b2558;}
.places{display:grid; gap:10px;}
.place{
  font:inherit; cursor:pointer; color:var(--ink); text-align:right;
  display:flex; gap:12px; align-items:center; padding:10px 14px;
  background:#fff; border:3px solid var(--mint); border-radius:20px; box-shadow:0 5px 0 var(--mint);
}
.place:active{transform:translateY(3px); box-shadow:0 2px 0 var(--mint);}
.place svg{width:48px; height:48px; flex:none;}
.place b{display:block; font-size:22px; line-height:1.2;}
.place small{display:block; font-size:15px; font-weight:600; color:var(--leaf-deep);}
.pill{
  display:flex; align-items:center; gap:6px; line-height:1;
  background:var(--paper); color:var(--ink); font-weight:800;
  border:3px solid var(--leaf); border-radius:999px; box-shadow:0 4px 0 var(--leaf-deep);
  padding:6px 14px 4px 12px;
}
.pill b{font-variant-numeric:tabular-nums; min-width:1.1em; text-align:center;}
.pill.score{font:inherit; font-weight:800; line-height:1; font-size:34px; padding:4px 16px 2px 12px; cursor:pointer; pointer-events:auto; touch-action:manipulation;}
.pill.score:active{transform:translateY(3px); box-shadow:0 1px 0 var(--leaf-deep);}
.pill.got{border-color:var(--mint); box-shadow:0 4px 0 #b9d9a8; animation:trayIn .35s ease both;}
@keyframes trayIn{from{opacity:0; transform:translateY(-6px);} to{opacity:1; transform:none;}}
.pill.score svg{width:38px; height:38px; flex:none;}
.pill.small{font-size:18px; gap:12px;}
.cat{display:flex; align-items:center; gap:3px;}
.cat svg{width:22px; height:22px; flex:none;}
.pill.mats{border-color:#9b5d34; box-shadow:0 4px 0 #6b3d1a;}
.pill.sick{border-color:#a9cf7a; box-shadow:0 4px 0 #86b25a; background:#f4fae8; color:#4a6b1e; font-size:17px; gap:6px; padding:4px 12px 3px 8px;}
.sickbar{width:54px; height:8px; border-radius:4px; background:#dbe9c4; overflow:hidden;}
.sickbar i{display:block; height:100%; background:var(--sick); border-radius:4px; transition:width .6s linear;}
.pop{animation:pop .45s ease;}
@keyframes pop{0%{transform:scale(1)}40%{transform:scale(1.12)}100%{transform:scale(1)}}
.btns{display:flex; gap:10px; pointer-events:auto; flex:none;}
.icon-btn{
  width:54px; height:54px; border-radius:50%; cursor:pointer;
  background:var(--paper); color:var(--leaf-deep);
  border:3px solid var(--leaf); box-shadow:0 4px 0 var(--leaf-deep);
  display:grid; place-items:center; padding:0;
}
.icon-btn svg{width:26px; height:26px;}
.icon-btn:active{transform:translateY(3px); box-shadow:0 1px 0 var(--leaf-deep);}
:focus-visible{outline:4px solid var(--sun); outline-offset:3px;}
@media (max-width:640px){ .pill.score{font-size:28px;} .pill.score svg{width:30px;height:30px;} .pill.small{font-size:16px; gap:8px;} .cat svg{width:18px;height:18px;} }

/* touch pad */
#pad{
  position:fixed; inset:auto 0 0 0; z-index:5; pointer-events:none;
  display:flex; justify-content:space-between; align-items:flex-end; gap:12px;
  padding-bottom:calc(env(safe-area-inset-bottom,0px) + 14px);
  padding-left:max(16px, env(safe-area-inset-left,0px));
  padding-right:max(16px, env(safe-area-inset-right,0px));
}
.pad-move{display:flex; gap:12px;}
.ctl{
  width:78px; height:78px; border-radius:50%; padding:0; cursor:pointer; pointer-events:auto; touch-action:none;
  background:rgba(255,250,240,.88); color:var(--leaf-deep);
  border:3px solid var(--leaf); box-shadow:0 5px 0 var(--leaf-deep);
  display:grid; place-items:center;
}
.ctl svg{width:40px; height:40px;}
.ctl.on{transform:translateY(4px); box-shadow:0 1px 0 var(--leaf-deep); background:#fff;}
.ctl.jump{width:92px; height:92px; background:rgba(255,95,162,.92); border-color:var(--petal-deep); box-shadow:0 5px 0 var(--petal-deep); color:#fff;}
.ctl.jump.on{box-shadow:0 1px 0 var(--petal-deep);}
#pad:not(.touch) .ctl{display:none;}
#actBtn{
  position:absolute; left:50%; bottom:calc(env(safe-area-inset-bottom,0px) + 14px);
  transform:translateX(-50%);
  pointer-events:auto; cursor:pointer; white-space:nowrap; touch-action:manipulation;
  font:inherit; font-size:24px; font-weight:800; line-height:1.1; color:var(--ink);
  display:flex; align-items:center; gap:8px; padding:8px 18px 8px 14px;
  background:var(--sun); border:3px solid var(--sun-deep); border-radius:22px; box-shadow:0 5px 0 var(--sun-deep);
  animation:nudge 2.4s ease-in-out infinite;
}
#actBtn:active{box-shadow:0 1px 0 var(--sun-deep);}
#actIcon{display:grid; width:32px; height:32px; flex:none;}
#actIcon svg{width:32px; height:32px;}
#actBtn .kh{font-size:15px; border:2px solid var(--sun-deep); border-radius:7px; padding:0 6px;}
#pad.touch #actBtn{bottom:calc(env(safe-area-inset-bottom,0px) + 118px);}
#pad.touch #actBtn .kh{display:none;}
#catBar{position:absolute; left:50%; bottom:calc(env(safe-area-inset-bottom,0px) + 14px); transform:translateX(-50%); display:flex; gap:10px; pointer-events:auto;}
#pad.touch #catBar{bottom:calc(env(safe-area-inset-bottom,0px) + 118px);}
.catb{
  font:inherit; font-size:19px; font-weight:800; line-height:1.1; color:var(--ink); cursor:pointer; touch-action:manipulation; white-space:nowrap;
  display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 12px;
  background:var(--sun); border:3px solid var(--sun-deep); border-radius:20px; box-shadow:0 5px 0 var(--sun-deep);
}
.catb svg{width:34px; height:34px;}
.catb:active{transform:translateY(3px); box-shadow:0 2px 0 var(--sun-deep);}
.catb[aria-disabled="true"]{opacity:.55;}
.pill.feed{border-color:#e39a6a; box-shadow:0 4px 0 #bf7646; background:#fff5ec;}
@keyframes nudge{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(-4px)}}
@media (max-height:480px){
  .ctl{width:62px; height:62px;} .ctl svg{width:32px; height:32px;}
  .ctl.jump{width:74px; height:74px;}
  #pad.touch #actBtn, #pad.touch #catBar{bottom:calc(env(safe-area-inset-bottom,0px) + 14px);}
  .catb{font-size:16px; padding:4px 10px;} .catb svg{width:26px; height:26px;}
}

.screen{
  position:fixed; inset:0; z-index:10; overflow:auto;
  display:grid; place-items:center;
  background:rgba(24,60,34,.30);
  padding-block:calc(env(safe-area-inset-top,0px) + 16px) calc(env(safe-area-inset-bottom,0px) + 16px);
  padding-left:max(16px, env(safe-area-inset-left,0px));
  padding-right:max(16px, env(safe-area-inset-right,0px));
}
.card{
  width:min(500px,100%); background:var(--paper); color:var(--ink);
  border:4px solid var(--leaf); border-radius:32px;
  box-shadow:0 10px 0 var(--leaf-deep), 0 26px 50px rgba(0,0,0,.25);
  padding:22px 26px 26px; display:flex; flex-direction:column; gap:14px; text-align:center;
}
.card h1,.card h2{margin:0; line-height:1.05; text-wrap:balance; color:var(--petal-deep);}
.card h1{font-size:clamp(44px,9vw,64px); text-shadow:0 3px 0 #ffd3e6;}
.card h2{font-size:44px;}
.lead{margin:0; font-size:20px; font-weight:600;}
.field{display:flex; flex-direction:column; gap:6px;}
.field label,.field .lbl{font-size:17px; font-weight:700; color:var(--leaf-deep);}
#nameInput{
  font:inherit; font-size:24px; font-weight:700; text-align:center; color:var(--ink);
  background:#fff; border:3px solid var(--mint); border-radius:18px; padding:6px 14px 4px;
  width:100%; box-sizing:border-box; -webkit-user-select:text; user-select:text;
}
#nameInput:focus{border-color:var(--leaf); outline:none;}
.swatches{display:flex; justify-content:center; gap:12px; flex-wrap:wrap;}
.sw{
  width:46px; height:46px; border-radius:50%; cursor:pointer; padding:0;
  border:4px solid #fff; box-shadow:0 0 0 3px var(--mint); transition:transform .15s;
}
.sw[aria-checked="true"]{box-shadow:0 0 0 4px var(--leaf); transform:scale(1.12);}
.big{
  font:inherit; font-size:30px; font-weight:800; line-height:1.2; cursor:pointer;
  color:#fff; background:var(--petal); border:0; border-radius:22px;
  padding:10px 20px 12px; box-shadow:0 6px 0 var(--petal-deep);
}
.big:active{transform:translateY(4px); box-shadow:0 2px 0 var(--petal-deep);}
.big.alt{font-size:22px; background:#fff; color:var(--leaf-deep); border:3px solid var(--mint); box-shadow:0 5px 0 var(--mint);}
.howbox{border:3px solid var(--mint); border-radius:20px; background:#fff; padding:0 14px;}
.howbox summary{cursor:pointer; list-style:none; font-size:19px; font-weight:800; color:var(--leaf-deep); padding:8px 0 6px; text-align:center;}
.howbox summary::-webkit-details-marker{display:none;}
.howbox summary::after{content:"▾"; display:inline-block; margin-inline-start:8px; transition:transform .2s;}
.howbox[open] summary::after{transform:rotate(180deg);}
.howbox[open]{padding-bottom:12px;}
.how{list-style:none; margin:0; padding:0; display:grid; gap:9px; text-align:right; font-size:17px; font-weight:600; line-height:1.45;}
.how li{display:flex; gap:10px; align-items:center;}
.how svg{flex:none; width:30px; height:30px;}
.key{display:inline-block; border:2px solid var(--leaf); border-radius:7px; padding:0 6px; font-size:14px; line-height:1.4; color:var(--leaf-deep);}
.hint{display:none; margin:0; font-size:15px; color:var(--leaf-deep);}
@media (orientation:portrait){ .hint{display:block;} }
@media (max-height:640px){
  .card{gap:9px; padding:14px 20px 18px;}
  .card h1{font-size:40px;}
  .lead{font-size:17px;}
  .how{font-size:14px; gap:4px;}
  .how svg{width:22px; height:22px;}
  .big{font-size:24px; padding:6px 16px 8px;}
}

#banner{
  position:fixed; left:50%; top:max(19vh, 186px); z-index:6; pointer-events:none;   /* under the task card, never on it */
  transform:translateX(-50%); width:max-content; max-width:min(92vw, 640px); text-align:center; opacity:0;
  background:rgba(255,250,240,.93); border-radius:28px; padding:8px 28px 8px;
  box-shadow:0 5px 0 rgba(47,138,62,.28), 0 14px 30px rgba(40,70,40,.16);
}
#banner .b1{
  display:block; font-size:clamp(26px,4.4vw,42px); font-weight:800; line-height:1.25; color:var(--petal-deep); text-wrap:balance;
}
#banner .b2{
  display:block; font-size:clamp(17px,2.5vw,23px); font-weight:700; line-height:1.35; color:var(--leaf-deep); white-space:normal; text-wrap:balance;
}
#banner .b2:empty{display:none;}
/* a calm note (a tired tummy, "not yet", the eyes): green words, no pink */
#banner[data-tone="calm"] .b1{color:var(--leaf-deep);}
#banner[data-tone="calm"] .b2{color:#5c4a3a;}
#banner.show{animation:bannerIn 3.6s ease both;}
#banner.swap{animation:bannerSwap 3.6s ease both;}
@keyframes bannerIn{
  0%{opacity:0; transform:translateX(-50%) translateY(10px) scale(.97);}
  14%{opacity:1; transform:translateX(-50%) translateY(0) scale(1);}
  84%{opacity:1; transform:translateX(-50%) translateY(0);}
  100%{opacity:0; transform:translateX(-50%) translateY(-10px);}
}
/* a new line while one is still showing: the words change softly, the ribbon stays */
@keyframes bannerSwap{
  0%{opacity:.55; transform:translateX(-50%);}
  10%{opacity:1; transform:translateX(-50%);}
  84%{opacity:1; transform:translateX(-50%) translateY(0);}
  100%{opacity:0; transform:translateX(-50%) translateY(-10px);}
}
@keyframes bannerFade{0%{opacity:0}12%{opacity:1}84%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion: reduce){
  #banner.show, #banner.swap{animation-name:bannerFade; transform:translateX(-50%);}
  .pop, #actBtn, .pill.got{animation:none;}
  .pick, .sw, .opt, .sickbar i{transition:none;}
  .pick:hover{transform:none;}
}

/* «مَن ستلعب؟»: two profile cards, one tap starts (21-looks) */
.card.start{width:min(600px,100%);}
.who-q{font-size:26px; font-weight:800; color:var(--leaf-deep);}
.profiles{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.prof{position:relative; display:flex; flex-direction:column; gap:8px; align-items:stretch; min-width:0;}
.pick{
  font:inherit; color:var(--ink); cursor:pointer; padding:8px 8px 10px; touch-action:manipulation;
  display:flex; flex-direction:column; align-items:center; gap:2px; min-width:0;
  background:linear-gradient(#d9f1ff 0%, #f3fbff 58%, #bfe3a6 58%, #a7d68c 100%);
  border:4px solid var(--petal); border-radius:28px; box-shadow:0 7px 0 var(--petal-deep);
  transition:transform .15s;
}
.prof.p2 .pick{border-color:#a46bff; box-shadow:0 7px 0 #7444d0;}
.pick:hover{transform:translateY(-3px);}
.pick:active{transform:translateY(4px); box-shadow:0 2px 0 var(--petal-deep);}
.prof.p2 .pick:active{box-shadow:0 2px 0 #7444d0;}
.pv{display:block; width:100%; max-width:200px; aspect-ratio:1/1; height:auto;}
.pname{
  display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-size:30px; font-weight:800; line-height:1.15; color:var(--petal-deep);
  background:rgba(255,250,240,.92); border-radius:16px; padding:2px 14px 0;
}
.prof.p2 .pname{color:#7444d0;}
.restyle{
  font:inherit; font-size:17px; font-weight:800; color:var(--leaf-deep); cursor:pointer; align-self:center;
  display:flex; align-items:center; gap:6px; min-height:44px; padding:4px 14px 2px;
  background:#fff; border:3px solid var(--mint); border-radius:999px; box-shadow:0 4px 0 var(--mint);
}
.restyle svg{width:22px; height:22px; flex:none;}
.restyle:active{transform:translateY(3px); box-shadow:0 1px 0 var(--mint);}

/* the style editor */
.card.editor{width:min(780px,100%); gap:10px;}
.card.editor h2{font-size:38px;}
.ed-body{display:grid; grid-template-columns:minmax(170px,240px) 1fr; gap:16px; align-items:start; text-align:right;}
.ed-stage{
  position:sticky; top:0; border-radius:28px; border:4px solid var(--mint); overflow:hidden;
  background:linear-gradient(#d9f1ff 0%, #f3fbff 62%, #bfe3a6 62%, #a7d68c 100%);
}
#edPv{display:block; width:100%; aspect-ratio:4/5; height:auto;}
.ed-opts{display:flex; flex-direction:column; gap:10px; min-width:0;}
.ed-opts .field{gap:4px;}
.ed-opts .swatches{justify-content:flex-start;}
.opts{display:flex; flex-wrap:wrap; gap:10px;}
.opt{
  width:64px; height:64px; padding:0; cursor:pointer; border-radius:18px; overflow:hidden; touch-action:manipulation;
  background:#fff7ec; border:3px solid var(--mint); box-shadow:0 3px 0 var(--mint); transition:transform .15s;
}
.opt canvas{display:block; width:100%; height:100%;}
.opt[aria-checked="true"]{border-color:var(--leaf); box-shadow:0 0 0 3px var(--leaf); transform:scale(1.08); background:#fff;}
.modeb{display:flex; align-items:center; justify-content:center; gap:6px; font-size:17px;}
.modeb svg{width:22px; height:22px; flex:none;}
.modeb[aria-checked="true"]{background:var(--leaf); color:#fff; border-color:var(--leaf-deep); box-shadow:0 4px 0 var(--leaf-deep);}
.ed-btns{display:flex; gap:12px; justify-content:center; flex-wrap:wrap;}
.ed-btns .big{flex:1 1 200px;}
@media (max-width:640px){
  .profiles{gap:10px;}
  .pname{font-size:24px; padding:2px 8px 0;}
  .restyle{font-size:15px; padding:4px 10px 2px;}
  .ed-body{grid-template-columns:1fr;}
  .ed-stage{position:static; width:min(190px,60%); justify-self:center;}
  .opt{width:56px; height:56px;}
}
@media (max-height:640px){ .who-q{font-size:21px;} .pv{max-width:150px;} }
/* eye-care timer (js/23-eyecare.js): a warm, soft veil over the forest, then a calm night-sky rest screen */
#eyeVeil{
  position:fixed; inset:0; z-index:4; pointer-events:none; opacity:0; transition:opacity 2.5s linear;
  background:radial-gradient(ellipse at 50% 45%, rgba(255,190,120,.34) 0%, rgba(214,134,92,.42) 55%, rgba(92,54,60,.66) 100%);
}
/* the sleepy sun (the moon at night): it comes when the eyes are getting tired, and its eyelids sink as the rest gets nearer */
#eyeBuddy{
  position:fixed; z-index:6; pointer-events:none; display:flex; align-items:center; gap:6px;
  left:max(14px, env(safe-area-inset-left,0px)); top:calc(env(safe-area-inset-top,0px) + 142px);
  animation:ebIn 1.6s ease both;
}
#eyeBuddy svg{width:96px; height:96px; flex:none; overflow:visible; animation:ebBob 5s ease-in-out infinite;}
.eb-say{
  background:rgba(255,250,240,.95); color:#7a5416; font-size:19px; font-weight:800; line-height:1.3; text-align:center;
  border-radius:18px; padding:6px 14px 4px; max-width:210px; box-shadow:0 4px 0 rgba(208,138,0,.3);
}
.eb-z{font:800 18px var(--font-display); fill:#fff4c2; stroke:#b98a2a; stroke-width:.6px; opacity:0;}
#eyeBuddy.deep .eb-z{animation:zfloat 4s ease-in-out infinite;}
#eyeBuddy.deep .eb-z.z2{font-size:14px; animation-delay:2s;}
#eyeBuddy.shut .eb-eyes, #eyeBuddy.shut .eb-lids{opacity:0;}
#eyeBuddy.shut .eb-shut{opacity:1;}
#eyeBuddy.night .eb-rays{display:none;}
#eyeBuddy.night .eb-face{fill:#fff1bd;}
#eyeBuddy.night .eb-lids{fill:#fff1bd;}
#eyeBuddy.night .eb-moon{opacity:.6;}
@keyframes ebIn{from{opacity:0; transform:translateY(-14px);} to{opacity:1; transform:none;}}
@keyframes ebBob{0%,100%{transform:translateY(0) rotate(-3deg);} 50%{transform:translateY(5px) rotate(3deg);}}
body.toddler #eyeBuddy{top:calc(env(safe-area-inset-top,0px) + 124px);}
@media (max-height:520px){ #eyeBuddy{top:calc(env(safe-area-inset-top,0px) + 108px);} #eyeBuddy svg{width:68px; height:68px;} .eb-say{font-size:15px;} }
@media (prefers-reduced-motion: reduce){ #eyeBuddy, #eyeBuddy svg, #eyeBuddy.deep .eb-z{animation:none;} #eyeBuddy.deep .eb-z{opacity:.8;} #eyeVeil{transition:none;} }
#restScreen{background:linear-gradient(#262c5c 0%, #4a4f8f 45%, #8a6f9e 78%, #e9a98f 100%);}
.rest{display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; color:#fff8ea; width:min(560px,100%);}
.rest h2{margin:0; font-size:clamp(36px,7vw,52px); line-height:1.1; color:#fff4c2; text-shadow:0 3px 0 rgba(30,30,80,.45);}
.rest .lead{color:#ffeedd;}
.rmoon{width:120px; height:90px; overflow:visible;}
.rz{font:800 20px var(--font-display); fill:#fff4c2; opacity:0; animation:zfloat 4s ease-in-out infinite;}
.rz.z2{font-size:15px; animation-delay:2s;}
@keyframes zfloat{0%{opacity:0; transform:translate(0,6px);} 30%{opacity:.9;} 100%{opacity:0; transform:translate(8px,-12px);}}
.rflower{width:min(210px,40vh); height:auto; filter:drop-shadow(0 6px 14px rgba(20,20,60,.35));}
.rnote{margin:0; font-size:18px; font-weight:700; color:#ffe3ef;}
.rtips{list-style:none; margin:6px 0 0; padding:0; display:flex; gap:10px; flex-wrap:wrap; justify-content:center;}
.rtips li{display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.14); border:2px solid rgba(255,255,255,.3); border-radius:18px; padding:6px 12px 6px 14px; font-size:17px; font-weight:700;}
.rtips svg{width:30px; height:30px; flex:none;}
@media (max-height:640px){ .rmoon{width:90px; height:68px;} .rflower{width:min(160px,34vh);} .rest{gap:5px;} .rtips li{font-size:15px; padding:4px 10px;} }
@media (prefers-reduced-motion: reduce){ .rz{animation:none; opacity:.8;} }
@media (max-height:480px){ #banner{top:34vh;} }
