@font-face {
  font-family: "Space Grotesk";
  src: url(../../fonts/SpaceGrotesk.ttf);
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --gold:#ffd27a;
  --gold2:#ffb347;
  --teal:#5ff0d8;
  --ink:#0b0c22;
  --glass:rgba(18,20,52,.55);
  --line:rgba(255,255,255,.16);
  --vh:100dvh;
  --safe-t:env(safe-area-inset-top);
  --safe-b:env(safe-area-inset-bottom);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
html,
body {
  margin: 0;
  height: 100%;
  background: #0b0c22;
  overflow: hidden;
  touch-action: manipulation;
  overscroll-behavior: none;
  font-family:
    "Space Grotesk",
    system-ui,
    sans-serif;
  color: #fff;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
#bg {
  position: absolute;
  inset: 0;
  background: #0b0c22 url(img/bg.webp) center/cover;
  animation: breathe 14s ease-in-out infinite alternate;
  transform-origin: 50% 60%;
}
@keyframes breathe {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.09);
  }
}
#vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      120% 90% at 50% 45%,
      transparent 40%,
      rgba(5, 6, 22, .65) 100%),
    linear-gradient(
      180deg,
      rgba(8, 9, 30, .35),
      transparent 28%,
      transparent 62%,
      rgba(8, 9, 30, .5));
  pointer-events: none;
}
#motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.mote {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      #fff6c4 0,
      rgba(255, 214, 110, .8) 40%,
      transparent 70%);
  filter: blur(.4px);
  animation: mote var(--d,16s) linear infinite;
  opacity: 0;
}
@keyframes mote {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  15% {
    opacity: .9;
  }
  85% {
    opacity: .7;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx,40px), -70vh);
  }
}
#hud {
  position: absolute;
  top: calc(var(--safe-t) + 10px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 4;
  pointer-events: none;
}
#hud > * {
  pointer-events: auto;
}
#app:not([data-screen=play]) #pips,
#app[data-screen=start] #hudbtns {
  visibility: hidden;
}
#pips {
  display: flex;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.pip {
  width: 22px;
  height: 26px;
  border-radius: 7px 7px 9px 9px;
  border: 2px solid rgba(255, 214, 122, .35);
  background: rgba(255, 255, 255, .04);
  position: relative;
  transition: .4s;
}
.pip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 8px;
  height: 7px;
  border: 2px solid rgba(255, 214, 122, .35);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  transform: translateX(-50%);
  transition: .4s;
}
.pip.lit {
  background:
    radial-gradient(
      circle at 50% 60%,
      #fff7cf,
      var(--gold) 55%,
      var(--gold2));
  border-color: #ffe8a8;
  box-shadow: 0 0 16px 3px rgba(255, 200, 90, .65);
}
.pip.lit::before {
  border-color: #ffe8a8;
}
#hudbtns {
  display: flex;
  gap: 8px;
}
#hudbtns button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}
#hudbtns svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
#mute {
  position: relative;
}
#mute[aria-pressed=true] {
  opacity: .6;
}
#mute[aria-pressed=true]::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 22px;
  width: 24px;
  height: 3px;
  background: #ff8aa0;
  border-radius: 2px;
  transform: rotate(-45deg);
}
#stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-t) + 70px) 12px 150px;
}
#coach {
  position: absolute;
  right: 6px;
  bottom: calc(var(--safe-b) + 6px);
  display: flex;
  align-items: flex-end;
  z-index: 3;
  pointer-events: none;
}
#juni {
  width: clamp(96px, 26vw, 150px);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55));
  animation: idle 4.5s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes idle {
  50% {
    transform: translateY(-3px) rotate(-1deg);
  }
}
#coach.talk #juni {
  animation: talk .5s ease-in-out infinite;
}
@keyframes talk {
  50% {
    transform: translateY(-5px) scale(1.02);
  }
}
#bubble {
  position: absolute;
  right: calc(100% - 22px);
  bottom: 70px;
  max-width: 56vw;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  background: rgba(255, 248, 230, .95);
  color: #2a2236;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
#bubble[hidden] {
  display: none;
}
.field {
  position: relative;
  width: min(94vw, 520px);
  aspect-ratio: 1/.92;
  max-height: 56vh;
}
.field.wide {
  aspect-ratio: 1/.7;
}
.ff {
  position: absolute;
  width: clamp(56px, 15vw, 76px);
  height: clamp(56px, 15vw, 76px);
  margin: calc(clamp(56px, 15vw, 76px)/-2) 0 0 calc(clamp(56px, 15vw, 76px)/-2);
  transition:
    transform .7s cubic-bezier(.3, .8, .3, 1),
    opacity .5s,
    left .7s,
    top .7s;
  animation: bob var(--b,3.4s) ease-in-out infinite;
  animation-delay: var(--bd,0s);
  z-index: 2;
}
.ff .glow {
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 236, 150, .85) 0,
      rgba(190, 255, 120, .35) 32%,
      transparent 66%);
  animation: pulse 2.1s ease-in-out infinite;
  animation-delay: var(--bd,0s);
}
.ff svg {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4));
}
.ff.static {
  animation: none;
}
@keyframes bob {
  50% {
    transform: translateY(-7px) translateX(3px);
  }
}
@keyframes pulse {
  50% {
    opacity: .55;
    transform: scale(.88);
  }
}
.ff.counted {
  opacity: .0;
  pointer-events: none;
}
.ff.dim {
  filter: saturate(.3) brightness(.7);
}
.ff.dim .glow {
  opacity: .2;
  animation: none;
}
.ff.ghost .glow {
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, .95) 0,
      rgba(120, 240, 230, .5) 36%,
      transparent 66%);
}
.ff.pulse {
  animation: nudge 1s ease-in-out infinite;
}
@keyframes nudge {
  50% {
    transform: scale(1.28);
  }
}
.ff .num {
  position: absolute;
  left: 50%;
  top: -30%;
  transform: translateX(-50%);
  font-size: 30px;
  font-weight: 700;
  color: #fff6c8;
  text-shadow: 0 0 12px rgba(255, 200, 80, .95), 0 2px 4px #000;
  animation: rise 1s ease-out forwards;
  pointer-events: none;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translate(-50%, 10px) scale(.6);
  }
  30% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(-50%, -34px) scale(1.2);
  }
}
.lantern {
  position: relative;
  width: clamp(150px, 44vw, 220px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.lantern img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5));
}
.lantern .inner {
  position: absolute;
  left: 30%;
  top: 40%;
  width: 40%;
  height: 40%;
  border-radius: 40%;
  background:
    radial-gradient(
      circle,
      #fff3b8,
      rgba(255, 196, 80, .8) 45%,
      transparent 72%);
  opacity: 0;
  transition: opacity .5s, transform .5s;
  filter: blur(3px);
  mix-blend-mode: screen;
}
.lantern.lit .inner {
  opacity: 1;
  transform: scale(1.25);
}
.lantern .halo {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 206, 110, .55),
      transparent 62%);
  opacity: 0;
  transition: opacity .6s;
  pointer-events: none;
}
.lantern.lit .halo {
  opacity: 1;
}
.lantern .count {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  min-width: 48px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 34, .8);
  border: 1px solid rgba(255, 214, 122, .5);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
}
.lantern .inflies {
  position: absolute;
  left: 32%;
  top: 42%;
  width: 36%;
  height: 36%;
}
.inflies i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff6c4;
  box-shadow: 0 0 10px 4px rgba(255, 214, 110, .9);
  animation: pulse 1.6s infinite;
}
.lantern.flare .halo {
  animation: flare .9s ease-out;
}
@keyframes flare {
  0% {
    transform: scale(.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
.lantern.shake {
  animation: shake .4s;
}
@keyframes shake {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.fieldlantern {
  position: absolute;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  z-index: 1;
}
#donebtn {
  position: absolute;
  right: -6px;
  top: 6px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 40% 35%,
      #fff4c4,
      var(--gold) 55%,
      var(--gold2));
  box-shadow: 0 0 26px rgba(255, 200, 90, .7);
  display: grid;
  place-items: center;
  z-index: 5;
  animation: pulse 2s infinite;
}
#donebtn svg {
  width: 34px;
  height: 34px;
  fill: #4b2f00;
}
#undobtn {
  position: absolute;
  left: -6px;
  top: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  z-index: 5;
}
#undobtn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.choices {
  display: flex;
  gap: clamp(10px, 3vw, 18px);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
  max-width: 520px;
}
.stone {
  min-width: clamp(78px, 22vw, 104px);
  height: clamp(78px, 22vw, 104px);
  border-radius: 28px;
  font-size: clamp(38px, 11vw, 52px);
  font-weight: 700;
  color: #fff6dd;
  background:
    linear-gradient(
      160deg,
      rgba(60, 66, 130, .9),
      rgba(27, 30, 78, .92));
  border: 2px solid rgba(255, 214, 122, .45);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .7), inset 0 2px 0 rgba(255, 255, 255, .18);
  transition:
    transform .15s,
    opacity .3s,
    box-shadow .3s,
    filter .3s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.stone:active {
  transform: scale(.94);
}
.stone.good {
  background:
    linear-gradient(
      160deg,
      #ffe9a6,
      #ffb347);
  color: #4a2c00;
  box-shadow: 0 0 34px 6px rgba(255, 200, 90, .8);
  text-shadow: none;
  border-color: #fff3c8;
}
.stone.bad {
  opacity: .28;
  filter: grayscale(.6);
  pointer-events: none;
  transform: scale(.88);
}
.stone.pulse {
  animation: nudge 1s infinite;
}
.stone.small {
  min-width: 0;
  width: auto;
  padding: 0 20px;
  height: 84px;
}
.pair {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-end;
  width: min(94vw, 520px);
}
.jar {
  position: relative;
  flex: 1;
  aspect-ratio: 1/1.05;
  border-radius: 30px 30px 40px 40px;
  background:
    linear-gradient(
      180deg,
      rgba(150, 170, 255, .16),
      rgba(80, 90, 200, .1));
  border: 2px solid rgba(190, 205, 255, .4);
  box-shadow: inset 0 0 30px rgba(120, 140, 255, .2), 0 10px 30px -8px #000;
  transition: .3s;
}
.jar .ff {
  width: clamp(36px, 10vw, 50px);
  height: clamp(36px, 10vw, 50px);
  margin: calc(clamp(36px, 10vw, 50px)/-2) 0 0 calc(clamp(36px, 10vw, 50px)/-2);
}
.jar.good {
  box-shadow: 0 0 40px 8px rgba(255, 200, 90, .8), inset 0 0 40px rgba(255, 214, 122, .5);
  border-color: #ffe39a;
}
.jar.bad {
  opacity: .3;
}
.path {
  display: flex;
  gap: clamp(8px, 2.4vw, 14px);
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  position: relative;
}
.step {
  width: clamp(66px, 19vw, 92px);
  height: clamp(66px, 19vw, 92px);
  border-radius: 50% 50% 46% 46%/58% 58% 42% 42%;
  display: grid;
  place-items: center;
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 700;
  background:
    linear-gradient(
      180deg,
      #59608f,
      #343a66);
  border: 2px solid rgba(255, 255, 255, .22);
  box-shadow: 0 8px 16px -6px #000, inset 0 2px 0 rgba(255, 255, 255, .2);
  color: #fff;
}
.step.gap {
  background: rgba(10, 12, 34, .55);
  border: 2px dashed var(--gold);
  color: var(--gold);
  animation: pulse 2s infinite;
}
.step.filled {
  background:
    linear-gradient(
      160deg,
      #ffe9a6,
      #ffb347);
  color: #4a2c00;
  border-style: solid;
}
.frame {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: min(86vw, 340px);
  padding: 12px;
  border-radius: 20px;
  background: rgba(10, 12, 34, .6);
  border: 2px solid rgba(255, 214, 122, .4);
  margin: 6px auto;
}
.frame i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 2px solid rgba(255, 255, 255, .12);
}
.frame i.on {
  background:
    radial-gradient(
      circle at 40% 35%,
      #fffbe0,
      var(--gold) 55%,
      var(--gold2));
  border-color: #fff0b8;
  box-shadow: 0 0 14px 2px rgba(255, 200, 90, .7);
}
.bundles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: flex-end;
  max-width: min(94vw, 440px);
}
.bundle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 7px;
  border-radius: 12px;
  border: 2px solid rgba(255, 214, 122, .55);
  background: rgba(10, 12, 34, .55);
  width: 44px;
}
.bundle i,
.ones i {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 40% 35%,
      #fffbe0,
      var(--gold) 60%,
      var(--gold2));
  display: block;
  box-shadow: 0 0 6px rgba(255, 200, 90, .6);
}
.ones {
  display: grid;
  grid-template-columns: repeat(3, 18px);
  gap: 4px;
  align-self: flex-end;
}
.pairnum {
  display: flex;
  gap: 16px;
  width: min(94vw, 520px);
  justify-content: center;
}
.pairnum .stone {
  flex: 1;
  height: clamp(120px, 34vw, 170px);
  font-size: clamp(56px, 17vw, 84px);
}
.board {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  width: min(96vw, 430px);
  padding: 8px;
  border-radius: 18px;
  background: rgba(10, 12, 34, .62);
  border: 1px solid var(--line);
}
.board button {
  aspect-ratio: 1;
  border-radius: 7px;
  background: rgba(80, 90, 170, .55);
  font-size: clamp(11px, 3.2vw, 15px);
  font-weight: 700;
  color: #e9ecff;
}
.board button.good {
  background:
    linear-gradient(
      160deg,
      #ffe9a6,
      #ffb347);
  color: #4a2c00;
  box-shadow: 0 0 14px #ffc85a;
}
.board button.bad {
  opacity: .3;
}
.board button.pulse {
  animation: nudge 1s infinite;
}
.say {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.mic {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(95, 240, 216, .55),
      rgba(95, 240, 216, .12));
  border: 2px solid var(--teal);
  display: grid;
  place-items: center;
  animation: pulse 1.6s infinite;
}
.mic svg {
  width: 38px;
  height: 38px;
  fill: #fff;
}
.tapinstead {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
}
.flash {
  position: absolute;
  inset: 0;
}
#overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(20, 22, 60, .55),
      rgba(5, 6, 22, .88));
  backdrop-filter: blur(6px);
}
#overlay.on {
  display: flex;
  animation: fadein .35s;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
}
.card {
  width: min(92vw, 420px);
  text-align: center;
  padding: 26px 22px 22px;
  border-radius: 30px;
  background:
    linear-gradient(
      180deg,
      rgba(40, 44, 100, .82),
      rgba(18, 20, 56, .9));
  border: 1px solid rgba(255, 214, 122, .4);
  box-shadow: 0 30px 70px -20px #000, 0 0 60px -10px rgba(255, 190, 80, .35);
}
.card h1 {
  margin: 6px 0 4px;
  font-size: 30px;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.card h2 {
  margin: 8px 0 2px;
  font-size: 24px;
}
.card p {
  margin: 6px 0 0;
  color: #cfd2f5;
  font-size: 15px;
  line-height: 1.35;
}
.card .sub {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cta {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 17px;
  border-radius: 18px;
  font-size: 19px;
  font-weight: 700;
  color: #3b2500;
  background:
    linear-gradient(
      180deg,
      #ffe9a6,
      #ffb347);
  box-shadow: 0 10px 26px -8px rgba(255, 180, 70, .9), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.cta.alt {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow: none;
  border: 1px solid var(--line);
  margin-top: 10px;
  font-size: 16px;
  padding: 14px;
}
.cta:active {
  transform: scale(.97);
}
.big-lantern {
  width: 150px;
  margin: -6px auto 0;
  position: relative;
}
.ring {
  width: 132px;
  height: 132px;
  margin: 8px auto 2px;
  position: relative;
}
.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring .tr {
  fill: none;
  stroke: rgba(255, 255, 255, .14);
  stroke-width: 10;
}
.ring .fl {
  fill: none;
  stroke: var(--gold);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s .3s;
  filter: drop-shadow(0 0 6px rgba(255, 200, 90, .9));
}
.ring b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding-bottom: 16px;
  font-size: 36px;
}
.ring small {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  text-align: center;
  font-size: 11px;
  color: #bcc0ea;
  letter-spacing: .08em;
}
.tierart {
  position: relative;
  width: 190px;
  height: 190px;
  margin: -4px auto 0;
}
.tierart .lantern {
  width: 150px;
  position: absolute;
  left: 20px;
  top: 20px;
}
.orbit {
  position: absolute;
  inset: 0;
  animation: spin 7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.orbit .ff {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  animation: pulse 2s infinite;
}
.tier-pips {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin: 12px 0 0;
}
.tier-pips i {
  width: 34px;
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .14);
}
.tier-pips i.on {
  background:
    linear-gradient(
      90deg,
      var(--gold),
      var(--gold2));
  box-shadow: 0 0 10px rgba(255, 200, 90, .8);
}
.sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 8;
  font-size: 22px;
  animation: spark 1.1s ease-out forwards;
}
@keyframes spark {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(.6);
  }
  to {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(1.3);
  }
}
.charm {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 30%,
      #fff7cf,
      var(--gold) 55%,
      var(--gold2));
  box-shadow: 0 0 30px rgba(255, 200, 90, .8);
  font-size: 30px;
  margin: 4px 0;
}
.toggles {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.tg {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.tg[aria-pressed=true] {
  background: rgba(255, 210, 122, .2);
  border-color: var(--gold);
  color: var(--gold);
}
@media (prefers-reduced-motion:reduce) {
  #bg,
  .ff,
  #juni,
  .mote,
  .orbit {
    animation: none !important;
  }
  .ff {
    transition: none;
  }
}
body.rm #bg,
body.rm .ff,
body.rm #juni,
body.rm .mote,
body.rm .orbit {
  animation: none !important;
}
@media (max-height:640px) {
  .field {
    max-height: 44vh;
  }
  #juni {
    width: 84px;
  }
  .stone {
    height: 70px;
    min-width: 70px;
    font-size: 36px;
  }
}
.lantern.tap {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  z-index: 4 !important;
}
.lantern.tap * {
  pointer-events: none;
}
.lantern.tap::after {
  content: "";
  position: absolute;
  inset: -4% -10% -8%;
  border-radius: 40%;
}
.lantern.glowhint .halo {
  opacity: .55;
  animation: pulse 2.2s ease-in-out infinite;
}
.lantern .halo.pulse {
  opacity: 1 !important;
  animation: pulse .9s ease-in-out infinite;
}
#overlay {
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
#overlay > * {
  margin: auto;
  flex-shrink: 0;
}
@media (orientation:landscape) and (max-height:520px) {
  #overlay {
    padding: 10px;
  }
  #overlay .card {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  #overlay .toggles {
    margin-top: 8px;
  }
  #startcard {
    width: min(94vw, 620px);
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 22px;
    align-items: center;
  }
  #startcard > * {
    grid-column: 1;
  }
  #startcard > .ring {
    grid-column: 2;
    grid-row: 1/span 8;
  }
  #startcard .cta {
    margin-top: 10px;
  }
}
