/* Starrenvale public site. The same look as the review page header: a deep violet night and a gold pixel logo that shines.
   All paths are relative, so the folder works as-is from an S3 bucket (static website hosting, index document: index.html). */
@font-face{font-family:"Pixel";src:url("fonts/PixelOperator-Bold.ttf") format("truetype");font-display:swap}
@font-face{font-family:"Pixel8";src:url("fonts/PixelOperator8-Bold.ttf") format("truetype");font-display:swap}

*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:linear-gradient(180deg,#0f0b1c 0%,#1c1635 55%,#2a1f4a 100%);background-color:#120e20;color:#d9d2f0;
  font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;overflow:hidden}

/* every layer is a little bigger than the screen, so moving it never shows an edge */
#scene{position:fixed;inset:0;overflow:hidden}
.layer{position:absolute;inset:-48px;width:calc(100% + 96px);height:calc(100% + 96px);display:block;will-change:transform}
.px{image-rendering:pixelated;image-rendering:crisp-edges}
#moon{filter:drop-shadow(0 0 10px #fff3c060) drop-shadow(0 0 34px #ffe9a040)}

main{position:relative;z-index:1;height:100vh;height:100dvh;display:grid;place-items:center;perspective:900px;
  padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));pointer-events:none}
.title{display:flex;flex-direction:column;align-items:center;margin-top:-18vh;will-change:transform;transform-style:preserve-3d}

.logo{position:relative;display:inline-block;margin:0;padding:0 .12em;
  font:400 clamp(40px,12.5vw,160px)/1 "Pixel",ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.logo .word{background:linear-gradient(105deg,#ffb830 0%,#ffcc50 38%,#fffbe0 50%,#ffcc50 62%,#ffb830 100%);background-size:260% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 .04em 0 #7a4a0a) drop-shadow(0 0 .16em #ffb83066);animation:shine 4.5s linear infinite}
@keyframes shine{from{background-position:130% 0}to{background-position:-130% 0}}
/* "by Mowgee", small under the name, as on the dashboard and the title card */
.by{margin:.9em 0 0;font:400 clamp(9px,1.6vw,18px)/1 "Pixel8",ui-monospace,monospace;letter-spacing:.18em;color:#c8bee1;text-shadow:0 2px 0 #120e20}

/* little four-point sparkles around the logo */
.spk{position:absolute;width:.21em;height:.21em;opacity:0;animation:twinkle 3.2s ease-in-out infinite;
  background:linear-gradient(#fff6c0,#fff6c0) center/2px 100% no-repeat,linear-gradient(#fff6c0,#fff6c0) center/100% 2px no-repeat}
.spk.s1{left:-.1em;top:-.05em;animation-delay:.1s}.spk.s2{left:22%;top:-.16em;animation-delay:1.1s}.spk.s3{left:48%;top:.6em;animation-delay:2s}
.spk.s4{left:74%;top:-.12em;animation-delay:.6s}.spk.s5{right:-.15em;top:.22em;animation-delay:1.6s}.spk.s6{left:10%;top:.62em;animation-delay:2.6s}
@keyframes twinkle{0%,100%{opacity:0;transform:scale(.3) rotate(0)}45%{opacity:1;transform:scale(1.15) rotate(45deg)}70%{opacity:0}}

/* on an iPhone, a one-time tap lets the scene follow the phone's tilt; a quiet line under "by Mowgee" (the viewers are the watchers) */
#tilt-hint{margin:3.4em 0 0;padding:7px 12px;border:1px solid #3a2f63;border-radius:8px;background:#120e20cc;text-align:center;color:#c8bee1;opacity:.5;
  font:400 clamp(7px,1.1vw,10px)/1.7 "Pixel8",ui-monospace,monospace;letter-spacing:.14em;pointer-events:none}
#tilt-hint[hidden]{display:none}
@media (max-width:600px){#tilt-hint span{display:block}}     /* two lines on phones */
@keyframes hint{0%,100%{opacity:.55}50%{opacity:1}}

/* the sound button: small and quiet in the lower right */
#sound-bar{position:fixed;z-index:3;top:calc(14px + env(safe-area-inset-top));right:calc(14px + env(safe-area-inset-right));display:flex;align-items:center;gap:8px}
#sound{width:36px;height:36px;display:grid;place-items:center;padding:0;border:1px solid #3a2f6399;border-radius:50%;
  background:#120e2099;color:#c8bee1;opacity:.55;cursor:pointer;transition:opacity .2s,border-color .2s;-webkit-tap-highlight-color:transparent}
#sound.off{opacity:.8}
/* "Click for sound", beside the muted button until the visitor chooses */
#sound-cta{padding:8px 11px;border:1px solid #ffcc5066;border-radius:8px;background:#120e20cc;color:#ffdf8a;cursor:pointer;
  font:400 9px/1 "Pixel8",ui-monospace,monospace;letter-spacing:.12em;white-space:nowrap;animation:hint 2.4s ease-in-out infinite;-webkit-tap-highlight-color:transparent}
#sound-cta:hover,#sound-cta:focus-visible{border-color:#ffcc50;outline:none;animation:none}
#sound-cta[hidden]{display:none}
#sound:hover,#sound:focus-visible{opacity:1;border-color:#ffcc50aa;outline:none}
#sound svg{width:16px;height:16px;image-rendering:pixelated}
#sound .cross{display:none}
#sound.off .waves{display:none}
#sound.off .cross{display:inline}

@media (prefers-reduced-motion:reduce){.logo .word,.spk{animation:none}.spk{opacity:.7}}

/* text for search engines and screen readers that the logo alone does not say */
.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}
.noscript{position:fixed;left:0;right:0;bottom:16px;margin:0;text-align:center;color:#c8bee1;font-size:14px}
