/* Angel Astraea · interfaces that open over a place in the Dream Realm (the Planetarium, the Crystal Gallery, Breathwork, Seven Chakras).
   The scene stays in view under the same gentle dim as About; nothing scrolls as a page. A small title plate sits at the top,
   its ⓘ holding the introduction and notes; the readings live in floating glass panels that scroll within themselves. */
html,body{height:100%}
body{overflow:hidden}
#veil{position:fixed;inset:0;background:rgba(28,40,92,.34);opacity:0;transition:opacity 1s ease}
body.in #veil{opacity:1}
body.alone #veil{background:rgba(28,40,92,.7)}

/* the title plate */
.plate{position:fixed;left:50%;top:18px;z-index:8;transform:translate(-50%,-8px);display:flex;align-items:center;gap:14px;padding:10px 12px 10px 24px;border-radius:999px;
  background:rgba(30,44,100,.42);border:1.5px solid rgba(211,234,255,.85);box-shadow:0 0 6px rgba(211,234,255,.6),0 0 22px rgba(170,215,255,.35),inset 0 0 16px rgba(170,215,255,.14);
  opacity:0;transition:opacity .8s .2s,transform .8s .2s;max-width:calc(100vw - 120px)}
body.in .plate{opacity:1;transform:translate(-50%,0)}
.plate .t{display:grid;gap:2px;min-width:0}
.plate .ey{font:400 9px/1 "Jost",sans-serif;letter-spacing:.4em;text-transform:uppercase;color:#D3EAFF}
.plate h1{margin:0;font:400 26px/1.05 "Cormorant Garamond",serif;color:#fff;text-shadow:0 0 14px rgba(170,200,255,.7);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.plate h1 em{font-style:italic;color:#FFEAF3;text-shadow:0 0 6px #FFD3E6,0 0 16px rgba(255,170,210,.7)}
.plate .i{flex:none;width:32px;height:32px;border-radius:50%;border:1.5px solid rgba(211,234,255,.85);background:none;color:#fff;cursor:pointer;font:italic 400 17px/1 "Cormorant Garamond",serif;box-shadow:0 0 6px rgba(211,234,255,.5)}
.plate .i:hover,.plate .i:focus-visible,.plate .i[aria-expanded="true"]{outline:none;background:rgba(255,255,255,.16)}

/* the introduction and notes, behind the ⓘ */
.infobox{position:fixed;left:50%;top:84px;z-index:9;width:min(680px,calc(100vw - 32px));max-height:calc(100vh - 120px);overflow:auto;padding:24px 26px;border-radius:22px;
  background:rgba(22,30,82,.9);border:1.5px solid rgba(226,216,255,.8);box-shadow:0 0 8px rgba(226,216,255,.5),0 30px 70px rgba(8,10,40,.5);color:#EAF2FF;
  transform:translate(-50%,-6px);opacity:0;visibility:hidden;transition:opacity .4s,transform .4s,visibility 0s .4s}
.infobox.on{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .4s,transform .4s}
.infobox h2{font:400 24px/1.2 "Cormorant Garamond",serif;color:#fff;margin:0}
.infobox h3{margin-top:18px;font:400 10px/1.4 "Jost",sans-serif;letter-spacing:.3em;text-transform:uppercase;color:#D3EAFF}
.infobox p{margin-top:10px;font-size:13.5px;line-height:1.75;color:#DCE4FF}
.infobox .sm{font-size:12px;color:#B5C3EA}

/* a floating glass panel over the scene */
.glass{background:rgba(30,44,100,.42);border:1.5px solid rgba(211,234,255,.75);border-radius:22px;
  box-shadow:0 0 6px rgba(211,234,255,.5),0 0 22px rgba(170,215,255,.28),inset 0 0 22px rgba(170,215,255,.12);
  color:#fff;text-shadow:0 1px 2px rgba(10,14,50,.45)}
.glass.pink{border-color:rgba(226,216,255,.8);box-shadow:0 0 6px rgba(226,216,255,.5),0 0 22px rgba(200,185,255,.28),inset 0 0 22px rgba(200,185,255,.12)}
.scrolly{overflow:auto;overscroll-behavior:contain}

/* the close, matching the plate */
.x{position:fixed;top:22px;right:22px;z-index:9}
@media (max-width:640px){.plate{top:12px;padding:8px 10px 8px 16px}.plate h1{font-size:20px}.infobox{top:72px}}

/* ---- inside a frame in the Dream Realm: the frame gives the glass, the dim and the close; the page brings only its contents ---- */
body.inworld #veil,body.inworld #night{display:none}
body.inworld .x{display:none}
body.inworld .wrap{padding:86px 30px 24px}
/* the title, written in the frame itself: no pill */
.plate{position:fixed;left:34px;top:24px;transform:none;padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:16px;max-width:calc(100vw - 120px)}
body.in .plate{transform:none}
.plate .ey{font-size:9.5px}
.plate h1{font-size:30px}
body.inworld .infobox{top:80px}
/* panels inside the frame are quieter, so the frame stays the object */
body.inworld .glass{background:rgba(255,255,255,.06);border:1px solid rgba(211,234,255,.38);box-shadow:inset 0 0 18px rgba(170,215,255,.08)}
body.inworld .glass.pink{border-color:rgba(226,216,255,.42)}

/* the title centred at the top of the frame, and the contents centred within it */
.plate{left:50%;transform:translateX(-50%);justify-content:center;text-align:center}
body.in .plate{transform:translateX(-50%)}
.plate .t{justify-items:center}
body.inworld .wrap{display:grid;align-content:center}

/* ---- the Dream Realm's interface language (as its bottom bar): lavender glass, fine white edges, white lettering that glows ---- */
body.inworld{color:#fff;text-shadow:0 1px 10px rgba(80,70,160,.5)}
body.inworld .glass{background:rgba(255,255,255,.1);border:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
body.inworld .glass.pink{box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
.chip,.cap{border-radius:999px;background:rgba(168,154,222,.34);box-shadow:inset 0 0 0 1px rgba(255,255,255,.75),inset 0 1px 0 rgba(255,255,255,.9)}
.capbtn{padding:11px 20px;border:0;border-radius:999px;background:none;color:#fff;cursor:pointer;font:400 10px/1 "Jost",sans-serif;letter-spacing:.3em;text-transform:uppercase;
  text-shadow:0 0 10px rgba(255,255,255,.6),0 1px 12px rgba(80,70,160,.55);transition:background .4s}
.capbtn:hover,.capbtn:focus-visible{outline:none;background:rgba(255,255,255,.18)}
.capbtn[aria-pressed="true"],.capbtn.on{background:rgba(206,192,250,.5)}

/* the notes behind the ⓘ, in the same lavender glass (light, never dark) */
body.inworld .infobox{background:rgba(168,154,222,.9);border:0;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),0 30px 70px -20px rgba(80,70,150,.55);text-shadow:0 1px 8px rgba(80,70,160,.45)}
body.inworld .infobox h3,body.inworld .infobox p,body.inworld .infobox .sm{color:#fff}
body.inworld .plate .ey{color:#fff}

/* room under the title for descenders (the g in Breathing) */
.plate h1{line-height:1.25;padding:0 .12em .1em;overflow:visible}

/* phones (2026-11-20): the title wraps and keeps clear of the close in the frame's corner */
@media (max-width:560px){body.inworld .plate{max-width:calc(100vw - 180px)}.plate h1{font-size:22px;white-space:normal;text-overflow:clip}}

/* phones (2026-11-20): the title plate sits in the page's flow at the top, so the contents start below it and never run under it */
@media (max-width:600px){
  body{overflow:auto}
  .plate,body.in .plate{position:relative;left:auto;top:auto;transform:none;margin:58px auto 4px;width:fit-content;max-width:calc(100% - 150px)}
  .inst{padding-top:14px!important}
  .wrap{position:relative!important;inset:auto!important;height:auto!important;overflow:visible!important;padding-top:14px!important}
}

/* "Increase contrast" in the device settings: deeper glass behind the light text */
@media (prefers-contrast:more){
  body.inworld .glass,.plate,.infobox{background:rgba(52,48,110,.8)!important}
  body.inworld,body.inworld .glass{text-shadow:0 1px 2px rgba(20,18,60,.9)!important}
}
:focus-visible{outline:2px solid #fff;outline-offset:3px}
