@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,500;0,600;1,500;1,600&family=Nunito:wght@400;500;600;700;800&display=swap');
:root{color-scheme:light;--ink:#855d7e;--pink:#f7dce8;--border:#e6b4d0;--cream:#fff9f2}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:'Nunito',ui-rounded,'Trebuchet MS',Arial,sans-serif;color:var(--ink);background:#fbf2f8}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #9765bb;outline-offset:3px}.game{height:100vh;height:100dvh;min-height:540px;position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(#9bd8e9 1%,#d0ebec 66%,#fce4e2 100%);user-select:none}.game.night{background:linear-gradient(#172345,#59638a 70%,#8c7c9e)}.game:before{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse at 50% 99%,#fff1d455,transparent 63%)}#world{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab;z-index:2}#world:active{cursor:grabbing}.ambient{pointer-events:none;position:absolute;inset:0;z-index:0}.sun{width:65px;height:65px;position:absolute;top:13%;right:18%;border-radius:50%;background:#fff1b1;box-shadow:0 0 0 20px #ffebb52b,0 0 60px #fff0ad}.night .sun{background:#fff3cb;box-shadow:0 0 25px #fff1b9}.night .sun:before{content:'';position:absolute;inset:-8px -8px 12px 18px;background:#1f3056;border-radius:50%}.cloud{position:absolute;height:22px;width:115px;border-radius:30px;background:#fffaf4b8;filter:blur(.4px);animation:drift 17s ease-in-out infinite alternate}.cloud:before,.cloud:after{content:'';position:absolute;background:inherit;border-radius:50%}.cloud:before{width:50px;height:50px;left:15px;bottom:0}.cloud:after{width:62px;height:34px;left:50px;bottom:0}.c1{top:15%;left:12%}.c2{top:25%;right:15%;transform:scale(.72);animation-delay:-7s}@keyframes drift{to{translate:35px -4px}}.starfield{position:absolute;inset:0;opacity:0;transition:opacity .6s;background:radial-gradient(circle at 11% 12%,#fff5d8 1px,transparent 3px),radial-gradient(circle at 24% 35%,#fff5d8 2px,transparent 4px),radial-gradient(circle at 38% 18%,#fff5d8 1px,transparent 3px),radial-gradient(circle at 56% 10%,#fff5d8 1px,transparent 3px),radial-gradient(circle at 72% 17%,#fff5d8 2px,transparent 4px),radial-gradient(circle at 88% 34%,#fff5d8 1px,transparent 3px);background-size:100% 100%}.night .starfield{opacity:1}.hud{position:absolute;inset:0;pointer-events:none;z-index:5}.mast{position:absolute;top:19px;left:22px;background:#fff9f0dc;border:1px solid #f7d8e9;box-shadow:0 6px 22px #987b9e30;border-radius:19px;padding:11px 17px;backdrop-filter:blur(8px)}.mast .name{font:italic 27px/1.1 'Fraunces',Georgia,serif;color:#ac70a0}.mast .subtitle{font-size:11px;letter-spacing:1.8px;color:#b48ca6;margin-top:4px}.badge{position:absolute;right:20px;top:20px;background:#fff9f0e8;padding:9px 15px;border:1px solid #efd3e1;border-radius:19px;box-shadow:0 3px 15px #a88eaa33;font-size:12px}.status{position:absolute;left:50%;top:106px;transform:translateX(-50%);max-width:440px;width:max-content;min-height:26px;padding:10px 17px;border-radius:20px;background:#fffaf1ee;border:1px solid #efccdf;box-shadow:0 5px 22px #a47a9f40;text-align:center;font-size:12px;color:#956b8f;transition:opacity .25s}.actionhint{position:absolute;bottom:112px;left:50%;transform:translateX(-50%);padding:7px 12px;border-radius:17px;background:#fffaf1e8;white-space:nowrap;font-size:12px;color:#956b8f;opacity:0;transition:opacity .2s;max-width:90%;overflow:hidden;text-overflow:ellipsis}.actionhint.visible{opacity:1}.world-label{position:absolute;transform:translate(-50%,-50%);border:1px solid #e9beda;background:#fffaf0e9;padding:6px 12px;white-space:nowrap;border-radius:20px;color:#98678b;font:italic 14px 'Fraunces',Georgia,serif;box-shadow:0 3px 9px #b486ab44}.controls{position:absolute;bottom:18px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:end;gap:14px;pointer-events:none}.dpad{display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,48px);gap:4px;pointer-events:auto;touch-action:none}.dpad button{border-radius:13px;border:1px solid #e8b9d2;background:#fff9f0df;color:#a3668d;font-size:23px;box-shadow:0 4px 0 #bb93b466;touch-action:none}.dpad button:active,.dpad button.is-down{background:#f2bcd5;transform:translateY(2px);box-shadow:0 2px #bb93b4}.actions{display:flex;align-items:flex-end;gap:8px;pointer-events:auto;flex-wrap:wrap;justify-content:flex-end}.actions button{background:#fff9f0e8;border:1px solid #edc3d9;border-radius:16px;padding:12px 14px;color:#986b8e;font-size:12px;box-shadow:0 4px 0 #b78ea75e;backdrop-filter:blur(4px)}.actions button.primary{font-size:14px;font-weight:750;background:#f7d1e4;border:1px solid #d99abf}.actions button:active{transform:translateY(3px);box-shadow:0 1px #b78ea75e}.toplinks{position:absolute;top:97px;right:20px;display:flex;gap:7px;pointer-events:auto}.toplinks button{font-size:11px;border:1px solid #efc7de;border-radius:14px;padding:7px 10px;background:#fff9f0e8;color:#aa769a;box-shadow:0 3px #b28dae44}.footnote{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:.3px;color:#7e6d8a99;white-space:nowrap}.fade{position:absolute;inset:0;pointer-events:none;background:#fff2fa;z-index:12;opacity:0;transition:opacity .28s ease}.fade.active{opacity:1}.modal{position:absolute;inset:0;z-index:16;display:none;align-items:center;justify-content:center;background:#3f314d88;padding:22px;pointer-events:auto}.modal.open{display:flex}.window{width:min(420px,100%);border-radius:25px;border:4px double #e6abc9;background:linear-gradient(#fffdf7,#fff1f7);padding:25px;text-align:center;box-shadow:0 20px 45px #33243c55}.window h2{font:italic 29px 'Fraunces',Georgia,serif;color:#af719c;margin:5px 0 8px}.window p{font-size:13px;line-height:1.65;margin:6px 0 15px}.window input{border-radius:11px;padding:13px;border:1px solid #e8b5d0;width:100%;background:#fff;color:#956684}.window a,.window button{display:inline-block;text-decoration:none;color:#8c5b82;background:#f8dce9;border:1px solid #e0b1cc;border-radius:13px;padding:10px 15px;margin:5px;font-size:12px}.window button.secondary{background:#fff8f6}.window .icon{font-size:45px}.window .note{color:#ac8aa3;font-size:11px}.mini-help{position:absolute;top:20px;left:50%;transform:translateX(-50%);text-align:center;font-size:11px;color:#fffaf4;text-shadow:0 1px 4px #785f89;pointer-events:none;opacity:.7;z-index:4;white-space:nowrap}.touchmsg{display:none}@media(max-width:650px){.game{min-height:460px}.mast{top:10px;left:10px;padding:8px 11px;border-radius:13px}.mast .name{font-size:19px}.mast .subtitle{font-size:9px;letter-spacing:.8px}.badge{top:11px;right:10px;padding:7px 10px;font-size:10px}.status{top:79px;max-width:75%;font-size:10px;padding:7px 10px}.toplinks{top:119px;right:10px}.toplinks button{padding:7px 9px}.controls{bottom:20px;left:8px;right:8px;gap:4px}.dpad{grid-template-columns:repeat(3,40px);grid-template-rows:repeat(2,40px);gap:3px}.dpad button{font-size:18px}.actions{gap:5px;max-width:54%}.actions button{padding:8px 9px;font-size:10px}.actions button.primary{font-size:11px}.actionhint{bottom:112px;font-size:10px;max-width:87%}.world-label{font-size:10px;padding:5px 8px}.mini-help{display:none}.touchmsg{display:block}.footnote{font-size:8px}}@media(prefers-reduced-motion:reduce){.cloud{animation:none}.fade{transition:none}.status{transition:none}}

body,button,input{font-family:'Nunito','Trebuchet MS',sans-serif}.game{min-height:0;height:100dvh;background:linear-gradient(#dceaf5,#f9edf0 70%,#fff3e4)}.game:after{content:'';position:absolute;inset:8px;border:2px dashed #e3b1ca;outline:4px double #fff8f7;border-radius:18px;pointer-events:none;z-index:4}.mast{border:4px double #deb0c9;border-radius:5px 24px 5px 24px;background-color:#fffaf8;background-image:linear-gradient(#e8dfe633 1px,transparent 1px),linear-gradient(90deg,#e8dfe633 1px,transparent 1px);background-size:12px 12px}.mast .name{color:#9b708b;font-size:30px}.mast .subtitle{font-size:14px}.world-label{font-family:'Nunito','Fraunces',Georgia;font-style:normal;font-size:16px;border:3px double #ddb4ca;box-shadow:0 3px 6px #92667c20}.world-label:before{content:'୨୧ ';color:#d393b5}.badge,.status,.toplinks button,.actions button,.dpad button{border-color:#d9aec6;color:#815d79}.status{font-size:16px;top:117px}.actions button{font-size:15px}.actions button.primary{font-size:16px}.badge{font-size:15px}.toplinks button{font-size:14px}.window{background-color:#fffaf8;background-image:linear-gradient(#eadfea33 1px,transparent 1px),linear-gradient(90deg,#eadfea33 1px,transparent 1px);background-size:14px 14px}.window p,.window button,.window a{font-size:16px}.footnote{font-size:11px}.mini-help{color:#886b80;text-shadow:0 1px 4px white;font-size:13px}.sun{opacity:.6}.dpad button{font-family:Arial}.window:focus{outline:none}@media(max-width:650px){.mast .name{font-size:21px}.mast .subtitle{font-size:10px}.status{top:88px;font-size:12px}.world-label{font-size:12px}.toplinks{top:127px;flex-direction:column}.toplinks button{font-size:12px}.badge{font-size:11px;max-width:130px}.actions button{font-size:12px}.actions button.primary{font-size:13px}.controls{bottom:max(25px,env(safe-area-inset-bottom))}.footnote{bottom:10px;font-size:9px}.window p{font-size:14px}}

/* A quieter interface: only the two working play actions appear nearby. */
[hidden]{display:none!important}.actionhint{display:none!important}.world-label{font-size:14px;padding:5px 10px}.toplinks{top:22px;max-width:calc(100% - 450px);flex-wrap:wrap;justify-content:flex-end;align-items:flex-start}.status{top:105px}.controls{pointer-events:none}#camera-view{background:#f4e5f1}.game[data-camera-view="front"] #camera-view{background:#eadcf4}.game[data-level="dreamcastle"] .status{top:105px}@media(max-width:650px){.toplinks{top:90px;right:12px;left:12px;max-width:none;flex-direction:row;justify-content:flex-end;gap:5px}.toplinks button{font-size:11px;padding:7px 9px}.mast{max-width:calc(100% - 24px)}.status{top:142px;max-width:80%;font-size:12px}.world-label{font-size:11px}.controls{bottom:24px}.game[data-level="dreamcastle"] .status{top:142px}}


/* Game activity prompts float above the Bunny again in every world. */
.hud > #action:not([hidden]){
 display:block;
 position:absolute;
 z-index:11;
 pointer-events:auto;
 transform:translate(-50%,-110%);
 border:2px solid #e6b3d1;
 border-radius:24px;
 padding:11px 17px;
 min-width:130px;
 max-width:min(270px,78vw);
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
 text-align:center;
 font:700 14px/1.3 'Nunito',ui-rounded,'Trebuchet MS',Arial,sans-serif;
 color:#8e5780;
 background:linear-gradient(180deg,#fffefa 0%,#f9dcec 100%);
 box-shadow:0 5px 0 #b487a899,0 10px 24px #a680a84d;
 transition:background .18s,box-shadow .18s;
}
.hud > #action:not([hidden]):hover{background:#ffeaf5;box-shadow:0 5px 0 #b487a899,0 11px 24px #a680a85e}
.hud > #action:not([hidden]):active{transform:translate(-50%,-104%);box-shadow:0 2px 0 #b487a899}
.hud > #action[hidden]{display:none!important}
@media(max-width:650px){
 .hud > #action:not([hidden]){padding:9px 12px;min-width:115px;font-size:12px;max-width:65vw}
}


/* Little Neverland moonlight: a clean, softly illuminated crescent.
   Replaces the old circle plus dark overlapping disc. */
.game.night .sun {
  width:90px;
  height:90px;
  top:10.5%;
  right:17%;
  border-radius:0;
  opacity:1;
  background:linear-gradient(130deg,#fffef3 4%,#fff5cf 47%,#f4d7a8 100%);
  box-shadow:none;
  filter:drop-shadow(0 0 10px #fff0c899) drop-shadow(0 0 25px #ffe0aa66);
  clip-path:path("M 39 3 C 16 12 5 38 16 60 C 28 83 57 87 79 64 C 55 68 40 52 37 34 C 34 20 39 10 39 3 Z");
  transform:rotate(-12deg);
}
.game.night .sun::before {
  content:none;
  display:none;
}
.game.night .ambient::before {
  content:"";
  position:absolute;
  top:6%;
  right:12.8%;
  width:165px;
  height:165px;
  border-radius:50%;
  background:radial-gradient(circle,#fff0c922 0%,#ffe2af0e 42%,transparent 72%);
  pointer-events:none;
}
.game.night .ambient::after {
  content:"✦  ✦  ✦";
  position:absolute;
  top:9%;
  right:8.5%;
  color:#fff2d2;
  font:20px/1 'Fraunces',Georgia,serif;
  letter-spacing:23px;
  text-shadow:0 0 9px #fff5df,0 0 20px #ffe5b9aa;
  transform:rotate(-8deg);
  pointer-events:none;
}
@media(max-width:650px){
  .game.night .sun{top:15%;right:12%;}
  .game.night .ambient::before{top:11%;right:4%;}
  .game.night .ambient::after{top:14%;right:2%;font-size:16px;letter-spacing:12px;}
}




/* Little hovering prompt near the toy's own sign, not over a plush face. */
.hud > #action:not([hidden]){padding:9px 14px;min-width:115px}
@media(max-width:650px){
 .hud > #action:not([hidden]){padding:8px 11px;min-width:105px}
}


/* Dodo's storytime: an in-game bookshelf dialog using the author's own links. */
.dodo-story-dialog{text-align:center}
.dodo-story-emoji{font-size:36px;line-height:1.3;filter:drop-shadow(0 3px 4px #e3c1d2)}
.dodo-story-dialog h2{margin-top:8px}
.window .dodo-story-choices{display:grid;gap:9px;margin:18px auto 12px;max-width:330px}
.window .dodo-story-choice{
  display:flex;align-items:center;justify-content:flex-start;gap:13px;
  width:100%;margin:0;padding:12px 17px;text-align:left;
  background:linear-gradient(105deg,#fffdfa,#f8e7f3);
  color:#8e6484;border:1px solid #e6c0da;border-radius:14px;
  box-shadow:0 3px 0 #f0dce7;
  font:600 14px/1.4 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
  text-transform:none;transition:transform .15s,border-color .15s;
}
.window .dodo-story-choice:hover,.window .dodo-story-choice:focus-visible{
  transform:translateY(-2px);border-color:#d79cbe;background:#fff3fa;
}
.window .dodo-story-choice span:first-child{font-size:20px}
.window .dodo-story-dialog .dodo-story-help{color:#a98b9e;font-size:12px;margin-top:14px}
@media(max-width:530px){
 .window .dodo-story-choice{font-size:13px;padding:11px 12px}
 .dodo-story-dialog h2{font-size:25px}
}



/* Dodo's non-modal speech bubble: the bedroom and both little readers remain
   visible underneath. The three real story links are clickable and accessible. */
.hud > .dodo-talk-bubble[hidden]{display:none!important}
.hud > .dodo-talk-bubble{
 position:absolute;z-index:13;pointer-events:auto;
 width:min(325px,calc(100% - 24px));
 max-height:min(352px,55dvh);
 overflow-y:auto;overscroll-behavior:contain;
 transform:translate(-50%,-100%);
 border:2px solid #e6b9d1;border-radius:23px;
 background:linear-gradient(155deg,#fffefaed,#fff4fbf7);
 backdrop-filter:blur(9px);
 color:#916883;text-align:center;
 padding:18px 17px 13px;
 box-shadow:0 5px 0 #d9abc9a8,0 14px 38px #95768a48;
 user-select:text;
}
.hud > .dodo-talk-bubble:after{
 content:'';position:absolute;bottom:-10px;left:52%;
 width:16px;height:16px;transform:rotate(45deg);
 border-right:2px solid #e6b9d1;border-bottom:2px solid #e6b9d1;
 background:#fff4fb;pointer-events:none;
}
.dodo-talk-bubble .dodo-bubble-title{
 font:italic 22px/1.25 'Fraunces',Georgia,serif;color:#ab759c;margin:0 22px 6px;
}
.dodo-talk-bubble p{font:13px/1.5 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;margin:0 4px 12px}
.dodo-talk-bubble .dodo-story-choices{display:grid;gap:6px}
.dodo-talk-bubble .dodo-story-choice{
 display:flex;align-items:center;gap:9px;text-align:left;
 width:100%;margin:0;padding:9px 11px;
 border-radius:13px;border:1px solid #eac6d9;
 background:#fffdfa;color:#865d80;text-decoration:none;
 font:600 13px/1.35 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
 transition:background .15s,transform .15s;
}
.dodo-talk-bubble .dodo-story-choice:hover,
.dodo-talk-bubble .dodo-story-choice:focus-visible{
 background:#ffeaf5;transform:translateY(-1px);
 outline-offset:2px;
}
.dodo-talk-bubble .dodo-story-choice span:first-child{font-size:18px}
.dodo-talk-bubble small{display:block;margin-top:9px;color:#b490a7;font-size:11px}
.dodo-talk-bubble .dodo-bubble-close{
 position:absolute;top:9px;right:10px;cursor:pointer;
 width:27px;height:27px;border-radius:50%;
 border:1px solid #ebc2da;background:#fff5fa;color:#956583;
 font:20px/1 'Nunito',ui-rounded,sans-serif;
}
.dodo-talk-bubble .dodo-bubble-close:focus-visible{
 outline:2px solid #be8cad;outline-offset:2px;
}
@media(max-width:650px){
 .hud > .dodo-talk-bubble{
   max-height:min(330px,58dvh);padding:13px 11px 11px;
   width:min(300px,calc(100% - 20px));
 }
 .dodo-talk-bubble .dodo-bubble-title{font-size:19px}
 .dodo-talk-bubble p{font-size:12px}
 .dodo-talk-bubble .dodo-story-choice{font-size:12px;padding:8px 10px}
}

/* Fox's cozy painting studio: a small interactive sketchbook in the bedroom.
   Pointer events stay in the panel; no game drag/pan leaks onto the canvas. */
.hud > .fox-paint-panel[hidden]{display:none!important}
.hud > .fox-paint-panel{
 position:absolute;left:max(12px,calc(50% - 475px));right:auto;top:52%;transform:translateY(-50%);
 z-index:14;pointer-events:auto;user-select:text;
 width:min(365px,calc(100% - 22px));
 max-height:min(610px,calc(100dvh - 100px));
 overflow-y:auto;overscroll-behavior:contain;
 padding:17px 15px 14px;
 border:2px solid #e5b4ce;border-radius:23px;
 background:linear-gradient(155deg,#fffdf8f5,#fff1f8f9);
 backdrop-filter:blur(10px);
 box-shadow:0 5px 0 #d7a8c8b3,0 15px 38px #86678652;
 color:#946d86;
}
.fox-paint-panel h2{
 font:italic 23px/1.22 'Fraunces',Georgia,serif;
 margin:0 25px 3px 0;color:#ad7398;
}
.fox-paint-panel p{
 font:12px/1.5 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
 margin:0 0 11px;
}
.fox-paint-panel .fox-paint-close{
 position:absolute;top:10px;right:10px;
 width:29px;height:29px;border:1px solid #e7b9d3;
 border-radius:50%;background:#fff5fa;color:#90627e;
 font:20px/1 sans-serif;cursor:pointer;
}
.fox-paint-panel .fox-paint-canvas{
 display:block;width:100%;height:auto;aspect-ratio:11/7;
 border:2px solid #e9c4d8;border-radius:12px;
 background:#fffdf8;
 box-shadow:0 3px 0 #e7cfd8;
 touch-action:none;cursor:crosshair;
}
.fox-paint-panel .fox-paint-colors{
 display:flex;flex-wrap:wrap;gap:7px;justify-content:center;
 margin:13px 0;
}
.fox-paint-panel .fox-paint-swatch{
 flex:0 0 25px;width:25px;height:25px;padding:0;
 border:2px solid #fffdfa;border-radius:50%;
 background:var(--swatch);
 box-shadow:0 0 0 1px #d7afc7;
 cursor:pointer;
}
.fox-paint-panel .fox-paint-swatch[aria-pressed="true"]{
 outline:2px solid #a77397;outline-offset:2px;
}
.fox-paint-panel .fox-paint-tools{
 display:flex;justify-content:center;flex-wrap:wrap;gap:7px;
}
.fox-paint-panel .fox-paint-tools button{
 border:1px solid #e5b8d2;border-radius:12px;
 background:#fffafa;color:#936985;
 padding:8px 11px;cursor:pointer;
 font:600 12px/1.3 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
.fox-paint-panel .fox-paint-tools button[aria-pressed="true"]{
 background:#f3dce9;
}
.fox-paint-panel button:hover{filter:brightness(.97)}
.fox-paint-panel button:focus-visible{outline:2px solid #ac7da2;outline-offset:2px}
.fox-paint-panel small{
 display:block;margin-top:11px;
 color:#b08ba2;text-align:center;
 font:11px/1.4 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
@media(max-width:650px){
 .hud > .fox-paint-panel{
  left:8px;right:auto;top:auto;bottom:90px;transform:none;
  width:min(340px,calc(100% - 16px));
  max-height:calc(100dvh - 195px);
  padding:12px 10px 10px;
 }
 .fox-paint-panel h2{font-size:20px}
 .fox-paint-panel .fox-paint-colors{gap:6px;margin:9px 0}
 .fox-paint-panel .fox-paint-swatch{width:22px;height:22px;flex-basis:22px}
 .fox-paint-panel .fox-paint-tools button{padding:6px 9px;font-size:11px}
}


/* Fii's tiny, non-blocking hello bubble, beside the two little painters. */
.hud > .fii-talk-bubble[hidden]{display:none!important}
.hud > .fii-talk-bubble{
 position:absolute;z-index:14;pointer-events:auto;
 width:min(305px,calc(100% - 24px));
 transform:translate(-50%,-100%);
 border:2px solid #ebbad0;border-radius:20px;
 background:linear-gradient(150deg,#fffefaef,#fff0f6f5);
 backdrop-filter:blur(9px);
 box-shadow:0 5px 0 #dfbad1b0,0 14px 32px #96748b40;
 padding:16px 14px 13px;text-align:center;
 color:#926d86;font:13px/1.5 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
.fii-talk-bubble .fii-bubble-title{
 color:#aa7599;font:italic 23px/1.3 'Fraunces',Georgia,serif;
 margin:0 20px 5px;
}
.fii-talk-bubble p{margin:0 0 12px}
.fii-talk-bubble .fii-bubble-close{
 position:absolute;top:8px;right:9px;
 border:1px solid #e8bdd5;border-radius:50%;
 background:#fff7fc;color:#946d89;width:28px;height:28px;
 font:20px/1 sans-serif;cursor:pointer;
}
.fii-bubble-options{display:grid;gap:8px}
.fii-bubble-options button{
 border:1px solid #e9bfd8;border-radius:13px;
 background:#fffbfc;color:#8e6484;
 font:600 13px/1.4 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
 padding:10px 13px;cursor:pointer;text-align:left;
}
.fii-bubble-options button:hover,.fii-bubble-options button:focus-visible{
 background:#ffecf5;outline-offset:2px;
}
/* Draw and gallery are two views within the same familiar pastel sketchbook. */
.fox-paint-panel .fii-mode-tabs{
 display:flex;gap:7px;margin:10px 0 12px;justify-content:center;
}
.fox-paint-panel .fii-mode-tabs button{
 flex:1;border:1px solid #e9bfd8;border-radius:12px;
 background:#fff9fc;color:#996e89;
 padding:7px 9px;
 font:600 12px/1.4 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
.fox-paint-panel .fii-mode-tabs button[aria-pressed="true"]{
 background:#f6dfed;border-color:#dca6c7;
 box-shadow:0 2px 0 #e7c0d4;
}
.fox-paint-panel[data-view="gallery"] > .fox-paint-canvas,
.fox-paint-panel[data-view="gallery"] > .fox-paint-colors,
.fox-paint-panel[data-view="gallery"] > .fox-paint-tools,
.fox-paint-panel[data-view="gallery"] > small{display:none!important}
.fox-paint-panel .fii-gallery[hidden]{display:none!important}
.fox-paint-panel .fii-gallery{text-align:center;padding:2px 0 4px}
.fii-gallery .fii-gallery-name{
 font:italic 19px/1.3 'Fraunces',Georgia,serif;color:#a66e92;
 margin:4px auto 10px;
}
.fii-gallery .fii-gallery-canvas{
 display:block;width:100%;height:auto;aspect-ratio:4/3;
 border:2px solid #ecc7d9;border-radius:12px;
 background:#fff4fa;image-rendering:pixelated;
 box-shadow:0 3px 0 #eacdda;
}
.fox-paint-panel .fii-gallery-caption{
 font:12px/1.4 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
 color:#a7839b;margin:10px 0 12px;
}
.fii-gallery .fii-gallery-nav{
 display:flex;gap:7px;align-items:center;justify-content:space-between;
}
.fii-gallery-nav button{
 border:1px solid #e9bfd8;border-radius:11px;
 background:#fffbfc;color:#946d89;
 padding:7px 10px;cursor:pointer;
 font:600 11px/1.35 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
.fii-gallery-nav .fii-gallery-page{
 font:11px/1 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;color:#aa849b;
}
@media(max-width:650px){
 .hud > .fii-talk-bubble{
  width:min(295px,calc(100% - 16px));
  padding:12px 11px;
 }
 .fox-paint-panel .fii-mode-tabs{margin-top:8px}
 .fii-gallery .fii-gallery-name{font-size:17px}
}

/* The Dream Castle confirmation is floating LETTERING, never a pill/card.
   The form shows inline errors, but successful delivery is announced here. */
.game[data-cloud-palace="true"] .status{
 top:10%;left:50%;transform:translateX(-50%);
 width:max-content;max-width:min(420px,82vw);min-height:0;
 padding:0;border:0;border-radius:0;background:transparent;
 box-shadow:none;backdrop-filter:none;
 color:#fff0fb;text-align:center;
 font:600 17px/1.4 'Nunito','Fraunces',Georgia,serif;
 text-shadow:0 1px 5px #554264,0 0 14px #c6a1ea,0 0 23px #f4d0ec;
 pointer-events:none;
}
@media(max-width:650px){
 .game[data-cloud-palace="true"] .status{
  top:12%;font-size:14px;max-width:74vw;
 }
}

/* An empty status capsule looked like a floating white pill above the castle.
   Keep normal status announcements when text is actually present. */
.game[data-cloud-palace="true"] .status:empty{display:none!important}
/* Dream Castle deliberately has no front-view toggle; keep other worlds' cameras. */
.game[data-cloud-palace="true"] #camera-view{display:none!important}
/* Dream Castle is a floating sky diorama, not a walkable ground map. */
.game[data-cloud-palace="true"] .controls,
.game[data-cloud-palace="true"] .actionhint{display:none!important}

/* A keyboard and touch friendly hit area follows the tiny 3D sprout. */
.hud > .sprout-talk-trigger{
 position:absolute;z-index:9;pointer-events:auto;width:54px;min-height:52px;
 padding:0;border:0;border-radius:45%;background:transparent;
 box-shadow:none;transform:translate(-50%,-50%);cursor:pointer;
}
.sprout-talk-trigger:focus-visible{
 outline:2px dashed #f7e8b9;outline-offset:4px;background:#fff3d914;
}
.sprout-talk-hint{
 position:absolute;left:50%;bottom:-21px;transform:translateX(-50%);
 width:max-content;padding:4px 8px;border:1px solid #eac6db;
 border-radius:12px;background:#fff9f4ed;color:#906c87;
 font:11px/1.2 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
 opacity:0;transition:opacity .18s;pointer-events:none;
}
.sprout-talk-trigger:hover .sprout-talk-hint,
.sprout-talk-trigger:focus-visible .sprout-talk-hint{opacity:1}
/* Like Dodo's and Fii's speech bubbles: small, nearby and never a centered modal. */
.hud > .sprout-talk-bubble[hidden]{display:none!important}
.hud > .sprout-talk-bubble{
 position:absolute;z-index:15;pointer-events:auto;user-select:text;
 width:min(252px,calc(100% - 24px));
 max-height:min(285px,calc(100dvh - 120px));
 overflow:visible;overscroll-behavior:contain;
 padding:12px 13px 10px;border:2px solid #dce3c2;border-radius:19px;
 background:linear-gradient(150deg,#fffff8f8,#f1f9eff8);
 backdrop-filter:blur(7px);
 box-shadow:0 4px 0 #c2cfa27d,0 11px 25px #28334327;
 color:#647660;font:12px/1.46 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
/* A little pointer shows that these words belong to the tiny Sprout. */
.sprout-talk-bubble::before{
 content:'';position:absolute;left:-9px;top:24px;
 width:15px;height:15px;transform:rotate(45deg);
 border-left:2px solid #dce3c2;border-bottom:2px solid #dce3c2;
 background:#fcfff7;
}
.sprout-talk-bubble[data-side="left"]::before{
 left:auto;right:-9px;
 border-left:0;border-bottom:0;
 border-right:2px solid #dce3c2;border-top:2px solid #dce3c2;
}
.sprout-talk-bubble:after{
 content:'✧';position:absolute;right:12px;bottom:9px;color:#b3bc90;pointer-events:none;
}
.sprout-speaker{display:block;font:italic 16px/1.3 'Fraunces',Georgia,serif;color:#809777}
.sprout-turn{padding-right:18px}
.sprout-message,.sprout-reply{margin:4px 0 8px;overflow-wrap:break-word}
.sprout-bunny-turn{
 padding:7px 9px 5px;margin:9px 0 8px;
 border:1px solid #efd5e5;border-radius:12px;
 background:#fff2f8;color:#936f8c;
}
.sprout-bunny-turn .sprout-speaker{color:#aa7c9a}
.sprout-talk-close{
 position:absolute;top:7px;right:8px;width:26px;height:26px;padding:0;
 border:1px solid #dce1c6;border-radius:50%;background:#fffdf4;color:#8b9c7a;
 font:20px/1 sans-serif;
}
.sprout-talk-next{
 padding:6px 10px;border:1px solid #d4dfbf;border-radius:12px;
 background:#faffef;color:#81936f;font:11px/1.3 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
.sprout-talk-bubble button:focus-visible{outline:2px solid #97a77e;outline-offset:2px}
@media(max-width:650px){
 .hud > .sprout-talk-bubble{font-size:12px;padding:11px 12px 9px;width:min(252px,calc(100% - 24px));max-height:46dvh;overflow-y:auto}
 .sprout-speaker{font-size:15px}
}


/* Bunny replies from Bunny's own little cloud, never from Sprout's panel. */
.hud > .sprout-bunny-turn[hidden]{display:none!important}
.hud > .sprout-bunny-turn{
 position:absolute;z-index:15;pointer-events:none;user-select:text;
 box-sizing:border-box;margin:0;
 width:min(215px,calc(100% - 24px));
 max-height:min(175px,calc(100dvh - 120px));overflow:visible;
 padding:10px 12px 9px;border:2px solid #edc5dc;border-radius:17px;
 background:linear-gradient(145deg,#fff8fcf8,#fff0f8f7);
 box-shadow:0 4px 0 #e7bfd299,0 10px 24px #52384925;
 color:#926c8d;font:12px/1.45 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
.hud > .sprout-bunny-turn .sprout-speaker{
 color:#aa7c9a;font:italic 17px/1.25 'Fraunces',Georgia,serif;
}
.hud > .sprout-bunny-turn::before{
 content:'';position:absolute;right:-8px;top:23px;
 width:13px;height:13px;transform:rotate(45deg);
 background:#fff4fa;border-top:2px solid #edc5dc;
 border-right:2px solid #edc5dc;
}
.hud > .sprout-bunny-turn[data-side="right"]::before{
 right:auto;left:-8px;border-top:0;border-right:0;
 border-bottom:2px solid #edc5dc;border-left:2px solid #edc5dc;
}
@media(max-width:650px){
 .hud > .sprout-bunny-turn{width:min(190px,calc(100% - 24px));font-size:11px;padding:9px 10px;max-height:36dvh;overflow-y:auto}
 .hud > .sprout-bunny-turn .sprout-speaker{font-size:15px}
}

/* Gentle little whispers beside the cloud friends, not oversized cards.
   Compact widths are intentional; messages still wrap and stay legible. */
.game[data-cloud-palace="true"] .hud > .sprout-talk-bubble{
 box-sizing:border-box;
 width:min(178px,calc(100% - 20px));
 max-height:min(230px,calc(100dvh - 100px));
 padding:9px 10px 8px;
 border:1px solid #dbe6d2;border-radius:14px;
 background:#fdfff4ee;backdrop-filter:blur(4px);
 box-shadow:0 3px 12px #303c3020;
 color:#60765f;
 font:11px/1.4 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
.game[data-cloud-palace="true"] .sprout-talk-bubble::before{
 width:11px;height:11px;left:-7px;top:18px;
 border-left-width:1px;border-bottom-width:1px;
}
.game[data-cloud-palace="true"] .sprout-talk-bubble[data-side="left"]::before{
 left:auto;right:-7px;border-right-width:1px;border-top-width:1px;
}
.game[data-cloud-palace="true"] .sprout-talk-bubble::after{content:none}
.game[data-cloud-palace="true"] .sprout-talk-bubble .sprout-speaker{
 font:italic 13px/1.25 'Fraunces',Georgia,serif;
}
.game[data-cloud-palace="true"] .sprout-talk-bubble .sprout-turn{padding-right:16px}
.game[data-cloud-palace="true"] .sprout-talk-bubble .sprout-message{
 margin:4px 0 7px;
}
.game[data-cloud-palace="true"] .sprout-talk-bubble .sprout-talk-close{
 top:5px;right:6px;width:20px;height:20px;
 border:1px solid #dce6d1;
 font:15px/1 sans-serif;
}
.game[data-cloud-palace="true"] .sprout-talk-bubble .sprout-talk-next{
 padding:5px 7px;border:1px solid #dce6d0;border-radius:10px;
 background:#f8fbed;font:10px/1.25 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
.game[data-cloud-palace="true"] .hud > .sprout-bunny-turn{
 box-sizing:border-box;
 width:min(165px,calc(100% - 20px));
 max-height:min(190px,calc(100dvh - 100px));
 padding:8px 10px 7px;
 border:1px solid #efd3e0;border-radius:14px;
 background:#fff7fbee;backdrop-filter:blur(4px);
 box-shadow:0 3px 12px #4834461d;
 color:#906b88;font:11px/1.4 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
.game[data-cloud-palace="true"] .hud > .sprout-bunny-turn .sprout-speaker{
 font:italic 13px/1.25 'Fraunces',Georgia,serif;
}
.game[data-cloud-palace="true"] .hud > .sprout-bunny-turn .sprout-reply{margin:4px 0 2px}
.game[data-cloud-palace="true"] .hud > .sprout-bunny-turn::before{
 width:10px;height:10px;right:-7px;top:18px;
 border-top-width:1px;border-right-width:1px;
}
.game[data-cloud-palace="true"] .hud > .sprout-bunny-turn[data-side="right"]::before{
 right:auto;left:-7px;border-bottom-width:1px;border-left-width:1px;
}
@media(max-width:650px){
 .game[data-cloud-palace="true"] .hud > .sprout-talk-bubble{
  width:min(156px,calc(100% - 16px));
  font-size:10px;padding:7px 8px;max-height:45dvh;overflow-y:auto;
 }
 .game[data-cloud-palace="true"] .hud > .sprout-bunny-turn{
  width:min(145px,calc(100% - 16px));
  font-size:10px;padding:7px 8px;max-height:34dvh;overflow-y:auto;
 }
 .game[data-cloud-palace="true"] .sprout-talk-bubble .sprout-speaker,
 .game[data-cloud-palace="true"] .hud > .sprout-bunny-turn .sprout-speaker{
  font-size:12px;
 }
}


/* Dream Castle cloud friends: small matching translucent-white whispers.
   Automatic chats show only the words; manual chats retain subtle controls. */
.game[data-cloud-palace="true"] .hud > .sprout-talk-bubble,
.game[data-cloud-palace="true"] .hud > .sprout-bunny-turn{
 width:min(162px,calc(100% - 24px));
 box-sizing:border-box;
 max-height:min(180px,calc(100dvh - 96px));
 padding:10px 12px;
 border:1px solid rgba(252,248,255,.82);
 border-radius:17px;
 background:rgba(255,255,255,.76);
 -webkit-backdrop-filter:blur(11px);
 backdrop-filter:blur(11px);
 box-shadow:0 5px 16px rgba(53,43,76,.13);
 color:#746985;
 font:11px/1.48 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
.game[data-cloud-palace="true"] .sprout-talk-bubble::before,
.game[data-cloud-palace="true"] .hud > .sprout-bunny-turn::before{
 background:rgba(255,255,255,.83);
 border-color:rgba(252,248,255,.88);
}
.game[data-cloud-palace="true"] .sprout-talk-bubble .sprout-turn{padding-right:12px}
.game[data-cloud-palace="true"] .sprout-talk-bubble.is-auto .sprout-turn{padding-right:0}
.game[data-cloud-palace="true"] .sprout-talk-bubble .sprout-message,
.game[data-cloud-palace="true"] .hud > .sprout-bunny-turn .sprout-reply{
 margin:0;line-height:1.5;
}
.game[data-cloud-palace="true"] .sprout-speaker{display:none!important}
.game[data-cloud-palace="true"] .sprout-talk-bubble.is-auto .sprout-talk-close,
.game[data-cloud-palace="true"] .sprout-talk-bubble.is-auto .sprout-talk-next{display:none!important}
.game[data-cloud-palace="true"] .sprout-talk-trigger[aria-expanded="true"] .sprout-talk-hint{opacity:0}
.game[data-cloud-palace="true"] .sprout-talk-bubble .sprout-talk-next{
 display:block;margin-top:8px;padding:3px 6px;
 color:#91839a;background:rgba(255,255,255,.38);
 border:1px solid rgba(213,199,225,.55);border-radius:10px;
 font-size:10px;
}
.game[data-cloud-palace="true"] .sprout-talk-bubble .sprout-talk-close{
 color:#9b8da5;background:rgba(255,255,255,.6);
 border-color:rgba(218,206,227,.6);
}
@media(max-width:650px){
 .game[data-cloud-palace="true"] .hud > .sprout-talk-bubble,
 .game[data-cloud-palace="true"] .hud > .sprout-bunny-turn{
  width:min(142px,calc(100% - 16px));
  max-height:min(165px,46dvh);padding:8px 9px;
  font-size:10px;overflow-y:auto;
 }
}


/* Neverland, Water Park & Bedroom: featherlight, single-line sky messages.
   Dream Castle's separate wish lettering remains untouched. */
.game:not([data-cloud-palace="true"]) .hud > .status{
 top:70px;
 left:50%;
 transform:translateX(-50%);
 z-index:6;
 width:max-content;
 max-width:calc(100% - 24px);
 min-height:0;
 margin:0;
 padding:0;
 border:0;
 border-radius:0;
 background:none;
 box-shadow:none;
 backdrop-filter:none;
 -webkit-backdrop-filter:none;
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
 text-align:center;
 pointer-events:none;
 color:#87627e;
 font:600 16px/1.25 'Nunito','Fraunces',Georgia,serif;
 letter-spacing:.15px;
 text-shadow:0 1px 2px #fff9ff,0 0 6px #fff,0 0 13px #f4cce7b8;
}
.game:not([data-cloud-palace="true"]) .hud > .status:empty{display:none!important}
@media(max-width:650px){
 .game:not([data-cloud-palace="true"]) .hud > .status{
  top:61px;
  max-width:calc(100% - 16px);
  font-size:clamp(9px,2.4vw,12px);
  letter-spacing:0;
 }
}

/* Invisible screen-space keepouts keep public wishes off Bunny and Sprout. */
.game[data-cloud-palace="true"] .hud > .neverland-friends-wish-keepout{
 position:absolute;z-index:0;pointer-events:none;
 visibility:hidden;background:none;border:0;box-shadow:none;
}

/* Lowercase is the shared visual voice across the four Neverland worlds.
   The JavaScript wishing form also normalizes the actual submitted text. */
#neverland-game,
#neverland-game input,
#neverland-game textarea,
#neverland-game button,
#neverland-game .world-label,
#neverland-game .neverland-floating-wish,
#neverland-game .window{
 text-transform:lowercase;
}
#neverland-game input::placeholder,
#neverland-game textarea::placeholder{text-transform:lowercase}

/* The Sugarplum Cottage title is a little sweet; all other worlds keep
   their existing typography and controls. */
.game[data-level="bedroom"] .world-label{
 border-color:#e5bfda;
 background:#fff6f0ed;
 color:#956d8c;
}


/* Unified watercolor clouds: composite all three lobes as one opaque
   silhouette, then fade the entire cloud. This removes the darker
   overlap seams previously caused by alpha on each separate lobe. */
.game .ambient .cloud{
 background:#fffaf4;
 opacity:.72;
 filter:blur(1.8px);
}
.game .ambient .cloud::before,
.game .ambient .cloud::after{
 background:#fffaf4;
}
/* Night messages need light ink and dark outline instead of pink-on-navy.
   Keep the existing frameless, centered, one-line presentation. */
.game.night:not([data-cloud-palace="true"]) .hud > .status{
 color:#fff9e9;
 font-size:18px;
 font-weight:700;
 letter-spacing:.2px;
 text-shadow:0 1px 2px #202444,0 0 5px #212344,
             0 0 10px #36304c,0 0 13px #fff1d580;
}
@media(max-width:650px){
 .game.night:not([data-cloud-palace="true"]) .hud > .status{
  font-size:clamp(11px,2.7vw,15px);
  letter-spacing:0;
 }
}


/* A hand-drawn galaxy explorer, opened by Sugarplum Cottage's telescope. */
.game .modal.star-atlas-open{
 padding:clamp(7px,2vw,22px);background:rgba(18,21,46,.78);
 backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.game .modal.star-atlas-open .window{
 width:min(1040px,100%);max-height:96dvh;overflow:auto;
 padding:clamp(10px,1.6vw,19px);background:#fff7f8;
 border:2px solid #e8c5e9;border-radius:24px;
 box-shadow:0 22px 76px #16152b8c;text-align:left;
}
.game .modal.star-atlas-open #modal-body{width:100%}
.game .modal.star-atlas-open #close-modal{display:none}
.star-atlas{color:#765d86;font-family:'Nunito',ui-rounded,'Trebuchet MS',sans-serif}
.star-atlas-heading{
 display:flex;align-items:flex-start;justify-content:space-between;
 gap:10px;padding:3px 5px 12px;
}
.star-atlas-heading h2{
 color:#a376ab;font:italic clamp(20px,3vw,30px)/1.13 'Fraunces',Georgia,serif;
 margin:4px 0 5px;
}
.star-atlas-heading p{margin:0;font-size:12px;color:#9983a0;line-height:1.35}
.star-atlas-kicker{font-size:11px;letter-spacing:.4px;color:#ad89a4}
.game .window .star-atlas-exit{
 background:#fff;border:1px solid #e8c6e6;color:#926b93;
 border-radius:50%;font-size:22px;line-height:1;
 width:34px;height:34px;flex-shrink:0;
 margin:0;padding:4px;
}
.star-atlas-stage{
 position:relative;height:clamp(300px,57dvh,590px);border-radius:17px;
 border:1px solid #d6c9e9;overflow:hidden;
 background:radial-gradient(ellipse at 35% 45%,#464066,#1c244a 70%);
 isolation:isolate;
}
.star-atlas-canvas{
 width:100%;height:100%;display:block;cursor:grab;
 touch-action:none;user-select:none;-webkit-user-select:none;
 outline-offset:-3px;
}
.star-atlas-canvas:active{cursor:grabbing}
.star-atlas-canvas:focus-visible{outline:2px solid #ffedc1}
.star-atlas-tools{
 position:absolute;top:12px;right:12px;
 display:grid;gap:5px;z-index:2;
}
.game .window .star-atlas-tools button{
 display:grid;place-items:center;margin:0;padding:0;
 width:34px;height:34px;border:1px solid #fff5e955;
 background:#2e2d59c9;color:#fff7ee;backdrop-filter:blur(6px);
 font:600 21px/1 'Fraunces',Georgia,serif;border-radius:10px;
}
.star-atlas-compass{
 position:absolute;top:15px;left:15px;
 max-width:70%;color:#e7d7ec;font:italic 12px 'Fraunces',Georgia,serif;
 text-shadow:0 1px 5px #10142a;pointer-events:none;
}
.star-atlas-detail{
 position:absolute;bottom:12px;left:12px;
 width:min(360px,calc(100% - 24px));max-height:32%;
 overflow:auto;
 border:1px solid #fff5ff3d;border-radius:14px;
 background:#222344cc;backdrop-filter:blur(8px);
 color:#f6edf8;padding:10px 13px;
 text-align:left;font:12px/1.5 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
 box-shadow:0 4px 18px #11162e55;pointer-events:none;
}
.star-atlas-detail strong{display:block;font:italic 17px 'Fraunces',Georgia,serif;margin-bottom:3px;color:#ffe3ec}
.star-atlas-detail span{display:block;color:#e0def4}
.star-atlas-footer{
 display:flex;align-items:center;gap:9px;flex-wrap:wrap;
 padding:11px 4px 0;font-size:12px;color:#94789b;
}
.star-atlas-footer label{font-weight:600}
.star-atlas-footer select{
 min-width:145px;max-width:235px;
 border:1px solid #e5c9e3;border-radius:10px;
 padding:8px 10px;background:#fffefa;color:#8e658b;
 font:inherit;
}
.star-atlas-zoom-level{font-variant-numeric:tabular-nums;margin-left:auto;color:#90769a}
.star-atlas-footer small{
 width:100%;color:#a58ea8;font-size:10px;line-height:1.4;
}
@media(max-width:680px){
 .game .modal.star-atlas-open{padding:6px}
 .game .modal.star-atlas-open .window{padding:8px;border-radius:16px}
 .star-atlas-stage{height:clamp(295px,51dvh,510px);border-radius:12px}
 .star-atlas-heading p{font-size:10px}
 .star-atlas-compass{font-size:10px;left:10px}
 .star-atlas-detail{font-size:11px}
 .star-atlas-tools{top:9px;right:9px}
 .star-atlas-footer{gap:7px}
}


/* Sugarplum attic - accessible miniature craft dialogs. */
.game .modal .attic-play{color:#865f82;text-align:center}
.game .modal .attic-play-icon{display:block;font-size:38px;margin-bottom:4px}
.game .modal .attic-play h2{
 font:italic 25px/1.2 'Fraunces',Georgia,serif;color:#a376a0;margin:4px 0 9px;
}
.game .modal .attic-play p{
 font:13px/1.5 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
 margin:5px 0 13px;color:#8c728c;
}
.game .modal .attic-play .attic-choices{
 display:grid;grid-template-columns:1fr;gap:7px;margin:13px 0;
}
.game .modal .attic-play .attic-choices button{
 display:block;margin:0;padding:11px 12px;background:#fffaf8;
 border:1px solid #efc7dc;border-radius:13px;
 color:#946b91;font:600 13px 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
}
.game .modal .attic-play .attic-choices button:hover,
.game .modal .attic-play .attic-choices button:focus-visible{
 background:#f8eaf3;border-color:#dba7ca;outline-offset:2px;
}
.game .modal .attic-play .attic-answer{
 background:#fff7f5;border:1px solid #f1dce8;
 border-radius:14px;min-height:52px;display:grid;place-items:center;
 padding:10px 12px;margin-top:13px;color:#946a91;
}
@media(max-width:440px){
 .game .modal .attic-play h2{font-size:22px}
}

/* Compact speech above the friends; reply choices stay below the scene. */
.attic-talk-layer{position:absolute;inset:0;z-index:13;pointer-events:none;font:13px/1.4 'Nunito',ui-rounded,'Trebuchet MS',sans-serif}
.attic-talk-bubble{position:absolute;box-sizing:border-box;transform:translate(-50%,-100%);padding:10px 12px 12px;border-radius:17px;background:#fff9ee;border:1px solid #e7cdb8;box-shadow:0 4px 12px #85678c20;color:#906b60;pointer-events:auto}
.attic-talk-bubble::after{content:'';position:absolute;bottom:-6px;left:var(--tail-x,50%);width:10px;height:10px;transform:translateX(-50%) rotate(45deg);border-right:1px solid #e7cdb8;border-bottom:1px solid #e7cdb8;background:inherit}
.attic-talk-bubble.bunny-voice{background:#fff4f9;border-color:#eac7dc;color:#956b8d}
.attic-talk-bubble.bunny-voice::after{border-color:#eac7dc}
.attic-talk-bubble .attic-talk-name{margin:0 20px 4px 0;font:italic 14px/1.2 'Fraunces',Georgia,serif}
.attic-talk-bubble p{margin:0;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.attic-talk-bubble .attic-talk-close{position:absolute;right:6px;top:5px;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:#fffdf9;color:#9b7693;font:16px/20px sans-serif;cursor:pointer}
.attic-talk-choices{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);width:min(650px,calc(100% - 300px));max-height:140px;overflow:auto;display:flex;justify-content:center;flex-wrap:wrap;gap:6px;padding:9px;border:1px solid #efd1e4;border-radius:18px;background:#fff8fbee;box-shadow:0 4px 12px #85678c18;pointer-events:auto}
.attic-talk-choices button,.game .modal .attic-yarn-colors button{margin:0;padding:7px 10px;border:1px solid #eaccdf;border-radius:12px;background:#fffdf9;color:#946e8e;cursor:pointer;font:12px/1.35 'Nunito',ui-rounded,'Trebuchet MS',sans-serif}
.attic-talk-choices button:hover,.attic-talk-choices button:focus-visible{background:#fce8f4;outline-offset:2px}
.game .modal .attic-yarn-colors{display:flex;justify-content:center;gap:6px;margin:12px 0}
.game .modal .attic-yarn-colors button[aria-pressed="true"]{background:#f8e3ee;border-color:#c998b8;box-shadow:0 0 0 1px #c998b8}
@media(max-width:690px){
 .attic-talk-bubble{padding:8px 9px 10px;border-radius:14px}
 .attic-talk-bubble p{font-size:12px;line-height:1.35}
 .attic-talk-bubble .attic-talk-name{font-size:13px}
 .attic-talk-choices{bottom:110px;width:calc(100% - 44px);max-height:132px;padding:7px;gap:5px}
 .attic-talk-choices button{font-size:11px;padding:6px 8px}
}

/* Attic prompts sit beneath Bunny's feet and leave both faces unobstructed. */
.game[data-bedroom-floor="ground"] .hud > #action.at-feet:not([hidden]){transform:translate(-50%,0);padding:8px 13px;min-width:110px;font-size:12px;box-shadow:0 3px 0 #b487a866,0 5px 12px #a680a82b}
.game[data-bedroom-floor="ground"] .hud > #action.at-feet:not([hidden]):active{transform:translate(-50%,2px)}
.attic-talk-choices{width:max-content;max-width:calc(100% - 300px);border:0;background:#fff8fbe8;box-shadow:0 3px 10px #85678c12;padding:7px;gap:5px}
@media(max-width:690px){.attic-talk-choices{width:calc(100% - 44px);max-width:none}}

.attic-talk-choices{bottom:clamp(110px,24vh,220px)}
@media(max-width:690px){.attic-talk-choices{bottom:clamp(160px,23vh,230px)}}

/* Little Sugarplum kitchen: tiny non-modal food choices, no dark backdrop. */
.game[data-bedroom-floor="ground"] .hud > .attic-quick-menu{
 position:absolute;z-index:14;pointer-events:auto;left:50%;
 bottom:clamp(112px,17vh,164px);transform:translateX(-50%);
 width:max-content;max-width:calc(100% - 32px);
 padding:9px 35px 10px 12px;border:1px solid #e8c4d7;
 border-radius:17px;background:#fffaf5f2;
 box-shadow:0 5px 16px #8d708e30;
 color:#966c89;font:12px/1.35 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;
 backdrop-filter:blur(7px);
}
.attic-quick-title{
 margin:0 0 7px;text-align:center;
 font:italic 14px/1.2 'Fraunces',Georgia,serif;color:#a47496;
}
.attic-quick-close{
 position:absolute;right:8px;top:7px;width:24px;height:24px;
 display:grid;place-items:center;border:1px solid #efdae4;border-radius:50%;
 color:#98738a;background:#fffdfa;font:19px/1 sans-serif;cursor:pointer;
}
.attic-quick-choices{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}
.attic-quick-choices button{
 margin:0;padding:8px 12px;border:1px solid #e9c5d9;border-radius:12px;
 background:#fff7fa;color:#936a87;white-space:nowrap;
 font:12px/1.2 'Nunito',ui-rounded,'Trebuchet MS',sans-serif;cursor:pointer;
}
.attic-quick-choices button:hover,.attic-quick-choices button:focus-visible,
.attic-quick-close:hover{background:#f8e4ef;border-color:#d9a6c4}
@media(max-width:650px){
 .game[data-bedroom-floor="ground"] .hud > .attic-quick-menu{
  bottom:clamp(132px,21vh,200px);max-width:calc(100% - 22px);padding:9px 30px 9px 8px;
 }
 .attic-quick-choices button{font-size:11px;padding:7px 8px}
 .attic-quick-title{font-size:13px}
}

/* Consistent soft storybook typography for every playable world. */
.game{font-family:'Nunito',ui-rounded,'Trebuchet MS',Arial,sans-serif;font-weight:500}
.game button,.game input,.game select,.game textarea{font-family:'Nunito',ui-rounded,'Trebuchet MS',Arial,sans-serif}
.game .toplinks button,.game .actions button,.game .window button,.game .world-label,.game .status{font-weight:700;letter-spacing:.01em}
.game .footnote{font-weight:600;letter-spacing:.02em}


/* Dodo's illustrated fairy-tale books use the original story paragraphs
   and source illustrations, without introducing replacement artwork. */
.game .dodo-picturebook-overlay[hidden]{display:none!important}
.game .dodo-picturebook-overlay{
 position:absolute;inset:0;z-index:80;display:grid;place-items:center;
 padding:clamp(12px,2.6vw,32px);
 pointer-events:auto;user-select:text;
 background:linear-gradient(120deg,#3f35476b,#62527e77);
 backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
 font-family:'Nunito','Trebuchet MS',sans-serif;
}
.game .dodo-book-frame{
 position:relative;display:flex;flex-direction:column;
 width:min(1040px,100%);height:min(690px,calc(100dvh - 42px));min-height:0;
 padding:12px 17px 13px;border:2px solid #dbafc8;border-radius:20px;
 color:#775a69;
 background:
  radial-gradient(circle at 0 100%,#fff2df 0,transparent 25%),
  radial-gradient(circle at 100% 0,#fae4ee 0,transparent 33%),
  linear-gradient(105deg,#fff1f1,#fff8ed 48%,#fff6e6 52%,#fff3f0);
 box-shadow:0 12px 0 #98769065,0 20px 60px #281d358c,
  inset 0 0 0 6px #fff6f0,inset 0 0 0 8px #e9c8d2;
 overflow:hidden;
}
.game .dodo-book-frame:before{
 content:'';position:absolute;inset:7px;pointer-events:none;
 border:1.5px dashed #d5a6ba;opacity:.75;border-radius:13px;
}
.game .dodo-book-header{
 position:relative;z-index:2;display:flex;align-items:center;gap:12px;
 min-height:41px;padding:1px 8px 8px;
}
.game .dodo-book-brand{
 color:#9e748c;font:italic 20px/1.2 'Fraunces',Georgia,serif;
 letter-spacing:.015em;
}
.game .dodo-book-header [data-book-close]{
 width:34px;height:34px;flex:0 0 34px;border:1px solid #ddb5c6;
 border-radius:50%;background:#fff9f7;color:#aa7898;
 font-size:24px;line-height:1;cursor:pointer;
 box-shadow:0 2px 0 #e9cbd4;
}
.game .dodo-book-spread{
 position:relative;flex:1;display:grid;grid-template-columns:1fr 1fr;
 min-width:0;min-height:0;margin:0 8px;
 border:2px solid #e5cdbb;border-radius:9px 15px 15px 9px;
 background:#fff9ed;
 box-shadow:inset 0 0 12px #b98c9e38,3px 5px 0 #e6cdd3;
 overflow:hidden;
}
.game .dodo-book-spread:after{
 content:'';position:absolute;z-index:4;left:calc(50% - 7px);top:0;bottom:0;
 width:14px;pointer-events:none;
 background:linear-gradient(90deg,#a47e8557,transparent 44%,#fff9f544 55%,#b49b8a45);
}
.game .dodo-book-left{
 position:relative;display:flex;flex-direction:column;justify-content:center;
 min-width:0;min-height:0;padding:17px 17px 9px;
 background:linear-gradient(145deg,#fff1e6,#fff8ee 47%,#f8e6ed);
 border-right:1px solid #e4c7c1;
}
.game .dodo-book-left:before,
.game .dodo-book-right:before{
 content:'✿  ♡  ✧  ♡  ✿';display:block;position:absolute;top:9px;
 left:0;right:0;text-align:center;pointer-events:none;
 font:13px Georgia,serif;letter-spacing:8px;color:#d4a7b8;opacity:.85;
}
.game .dodo-book-illustration{
 display:grid;place-items:center;min-height:0;flex:1;
 margin:15px 0 5px;padding:8px;
 border:1px solid #e7c9d0;border-radius:17px 14px 18px 14px;
 background:radial-gradient(ellipse at 47% 46%,#fffefa,#f8e5ef 97%);
 box-shadow:inset 0 0 0 5px #fff8f4,0 4px 11px #a97b9331;
 overflow:hidden;
}
.game .dodo-book-illustration svg,
.game .dodo-book-illustration img{
 display:block;width:100%;height:100%;max-height:100%;
 object-fit:contain;border-radius:11px;
 filter:drop-shadow(0 5px 8px #896c8b26);
}
.game .dodo-book-illustration-caption{
 text-align:center;padding:5px 0 2px;color:#ab869b;
 font:italic 13px/1.4 Georgia,serif;
}
/* Adjacent illustrations share a spread instead of hiding the extras. */
.game .dodo-book-illustration.has-multiple-pictures{
 grid-template-columns:repeat(2,minmax(0,1fr));
 grid-auto-rows:minmax(0,1fr);gap:8px;
}
.game .dodo-book-illustration.has-multiple-pictures img{
 min-width:0;min-height:0;width:100%;height:100%;object-fit:contain;
}
.game .dodo-book-right{
 position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;
 padding:19px 27px 15px;
 background:
  repeating-linear-gradient(0deg,transparent 0 31px,#dbbbaa0a 32px),
  linear-gradient(110deg,#fff8ee,#fffdf5 22%,#fffaef);
}
.game .dodo-book-text-scroll{
 position:relative;flex:1;min-height:0;overflow-y:auto;
 padding:8px 6px 14px 3px;overscroll-behavior:contain;
 scrollbar-width:thin;scrollbar-color:#d9b9c8 #fff7ef;
 text-align:left;
}
.game .dodo-book-kicker{
 text-align:center;color:#b28d9c;text-transform:lowercase;
 font:600 11px/1.7 'Nunito',sans-serif;letter-spacing:.09em;
}
.game .dodo-book-text-scroll h2{
 margin:9px 0 11px;text-align:center;color:#9c6d8b;
 font:italic 28px/1.3 'Fraunces',Georgia,serif;
}
.game .dodo-book-text-scroll h3{
 margin:6px 0 14px;text-align:center;color:#b07994;
 font:600 15px/1.4 'Nunito',sans-serif;
}
.game .dodo-book-text-scroll p{
 color:#6f5a61;text-align:left;
 font:15px/1.82 Georgia,'Times New Roman',serif;
 margin:0 0 15px;
 overflow-wrap:anywhere;
}
.game .dodo-book-text-scroll p:first-of-type::first-letter{
 color:#bf8b9c;font:36px/1 'Fraunces',Georgia,serif;
}
.game .dodo-book-text-scroll p.dodo-book-loading{
 padding:60px 10px;text-align:center;color:#a67c97;
 font:italic 18px/1.5 Georgia,serif;
}
.game .dodo-book-text-scroll a{color:#946c9a}
.game .dodo-book-flourish{color:#ddb4c5;text-align:center;font-size:16px;margin:22px auto 4px}
.game .dodo-book-nav{
 position:relative;z-index:2;display:flex;align-items:center;
 justify-content:space-between;gap:9px;min-height:53px;
 padding:9px 13px 2px;
}
.game .dodo-book-nav button{
 border:1px solid #d6afc3;border-radius:24px;padding:9px 17px;
 background:#fff9f5;color:#956d87;cursor:pointer;
 font:600 12px/1.2 'Nunito',sans-serif;
 box-shadow:0 3px 0 #e3c3d0;transition:background .15s,transform .15s;
}
.game .dodo-book-nav button:not(:disabled):hover{background:#f9e7ef;transform:translateY(-1px)}
.game .dodo-book-nav button:disabled{opacity:.4;cursor:default}
.game .dodo-book-page-count{
 font:italic 13px/1.3 Georgia,serif;color:#a77994;text-align:center;
}
.game .dodo-book-edge{
 position:relative;color:#ddb5c2;text-align:center;
 font:13px/1 Georgia,serif;letter-spacing:9px;
}
.game .dodo-picturebook-overlay button:focus-visible,
.game .dodo-book-text-scroll:focus-visible{
 outline:2px solid #ad7b98;outline-offset:3px;
}
@media(max-width:760px){
 .game .dodo-picturebook-overlay{padding:7px}
 .game .dodo-book-frame{
  height:calc(100dvh - 14px);padding:8px 8px 7px;border-radius:15px;
 }
 .game .dodo-book-header{min-height:35px;padding-bottom:5px}
 .game .dodo-book-brand{font-size:15px}
 .game .dodo-book-bookmark{display:none}
 .game .dodo-book-spread{grid-template-columns:1fr;grid-template-rows:minmax(110px,32%) 1fr;margin:0 3px}
 .game .dodo-book-spread:after{top:calc(32% - 5px);bottom:auto;left:0;right:0;width:auto;height:10px;background:linear-gradient(#ad9a9966,transparent,#fff9f544)}
 .game .dodo-book-left{padding:10px 18px 3px;border-right:0;border-bottom:1px solid #ead4cc}
 .game .dodo-book-illustration{margin:10px 0 0;padding:3px}
 .game .dodo-book-illustration-caption{display:none}
 .game .dodo-book-right{padding:11px 17px 8px}
 .game .dodo-book-left:before,.game .dodo-book-right:before{display:none}
 .game .dodo-book-text-scroll h2{font-size:23px}
 .game .dodo-book-text-scroll h3{font-size:13px}
 .game .dodo-book-text-scroll p{font-size:13px;line-height:1.72}
 .game .dodo-book-nav{min-height:46px;padding:6px 5px 0}
 .game .dodo-book-nav button{padding:8px 11px;font-size:11px}
 .game .dodo-book-page-count{font-size:11px}
}


/* Match the Basiic lettering used by Baby Angel's Blog across the 3D world,
   controls, in-world storybooks and Sugarplum OS. Font asset stays on-site. */
@font-face{
  font-family:"BabyAngelBasiic";
  src:url("/fonts/basiic-blog.ttf") format("truetype");
  font-display:swap;
}
/* Word owns its document fonts, including saved inline styles and FONT faces. */
.game,.game *:not(.sp-word-page):not(.sp-word-page *),.game *:not(.sp-word-page):not(.sp-word-page *)::before,.game *:not(.sp-word-page):not(.sp-word-page *)::after{
  font-family:"BabyAngelBasiic","RainyHearts","Courier New",sans-serif!important;
}

/* The story reader contains Amélie's unabridged paragraphs and her original
   GIFs only. No newly invented scene art, repeated title or author label. */
.game .dodo-book-spread:not(.has-illustration){
  grid-template-columns:minmax(0,1fr);
}
.game .dodo-book-spread:not(.has-illustration) .dodo-book-left{
  display:none!important;
}
.game .dodo-book-spread:not(.has-illustration)::after{
  display:none;
}
.game .dodo-book-spread:not(.has-illustration) .dodo-book-right{
  padding-inline:clamp(20px,6vw,76px);
}
.game .dodo-book-spread:not(.has-illustration) .dodo-book-text-scroll{
  max-width:740px;
  width:100%;
  align-self:center;
}
.game .dodo-book-text-scroll>p{
  font-size:clamp(14px,1.22vw,17px);
  line-height:1.85;
}
@media(max-width:760px){
  .game .dodo-book-spread:not(.has-illustration){
    display:grid;
    grid-template-rows:minmax(0,1fr);
  }
  .game .dodo-book-spread:not(.has-illustration) .dodo-book-right{
    padding:22px clamp(13px,4vw,28px) 12px;
  }
}

/* A daytime Dream Castle uses darker lettering to keep floating wishes
   readable against the sky; nighttime retains the original star glow. */
.game[data-level="dreamcastle"]:not(.night) .neverland-floating-wish{
  color:#6b4d83;
  text-shadow:0 1px 1px #fffaf9,0 2px 8px #fff7f5;
}


/* Storybooks must preserve original English sentence case and proper nouns.
   The Neverland UI intentionally lowercases its buttons and placards, but
   this rule must never alter Amélie's authored story text. */
#neverland-game .dodo-picturebook-overlay,
#neverland-game .dodo-picturebook-overlay * {
  text-transform:none!important;
}

/* Lower the four top-right navigation buttons by exactly 10px,
   retaining their spacing, sizes and existing mobile arrangement. */
.game .toplinks{top:32px}
@media(max-width:650px){
  .game .toplinks{top:100px}
}

