:root {
  --ink: #3d2320;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html, body { margin: 0; height: 100%; overflow: hidden; cursor: none; color: var(--ink); }
body { background: #9fd8ff; }

/* ---------- sky background ---------- */
#sky {
  position: fixed; inset: 0; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255, 236, 214, .9) 0, transparent 55%),
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .55) 0, transparent 35%),
    linear-gradient(180deg, #5fb7f5 0%, #8ed0fb 40%, #c4e8ff 72%, #fff1df 100%);
}
#brand {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%); margin: 0;
  text-align: center; font-size: 19vw; font-weight: 900; letter-spacing: .02em; line-height: 1;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 .03em 0 #b9e2ff, 0 .06em .08em rgba(40, 110, 170, .25);
  z-index: 1; user-select: none;
}
#brand span { display: inline-block; animation: hop 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); }
@keyframes hop {
  0%, 60%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-.06em) rotate(-3deg); }
}
#clouds { position: absolute; inset: 0; z-index: 2; }
.cloud {
  position: absolute; top: var(--top); left: 0; width: var(--w);
  animation: drift var(--dur) linear infinite; animation-delay: var(--delay);
  filter: drop-shadow(0 .4vw .5vw rgba(70, 130, 190, .18));
}
.cloud.near { z-index: 1; }
.cloud svg { display: block; width: 100%; height: auto; }
.cloud-bob { animation: float var(--bob) ease-in-out infinite; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
@keyframes float { 50% { transform: translateY(-1.2vh) rotate(1.5deg); } }

/* ---------- speech bubbles ---------- */
.bubble {
  position: absolute; left: 0; top: 0; transform-origin: 50% 100%; max-width: 18vw; padding: .45em .8em; border-radius: 1em;
  background: #fff; color: var(--ink); font-weight: 700; font-size: clamp(13px, 1.25vw, 26px); line-height: 1.25;
  text-align: center; box-shadow: 0 4px 12px rgba(40, 90, 140, .2); will-change: transform;
  opacity: 0; transition: opacity .25s;
}
.bubble::after {
  content: ''; position: absolute; left: 50%; bottom: -.5em; transform: translateX(-50%);
  border: .55em solid transparent; border-top-color: #fff; border-bottom: 0;
}
.bubble > * { pointer-events: none; }
.bubble.show { opacity: 1; animation: say .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes say { from { scale: .4; } to { scale: 1; } }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 3; }
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.label {
  position: absolute; left: 0; top: 0; transform-origin: 50% 0; white-space: nowrap;
  background: rgba(255, 250, 242, .92); padding: .25em .7em; border-radius: 999px;
  font-weight: 700; font-size: clamp(12px, 1.3vw, 26px); box-shadow: 0 2px 6px rgba(61, 35, 32, .15);
  will-change: transform;
}

#qr-card {
  position: fixed; top: 2.2vh; right: 1.8vw; width: clamp(105px, 9.75vw, 210px);
  background: #fffaf2; border-radius: 17px; padding: 10px 10px 7px; text-align: center;
  box-shadow: 0 8px 24px rgba(40, 90, 140, .25); z-index: 5;
}
#logo {
  position: fixed; top: 3vh; left: 2vw; width: clamp(150px, 15vw, 320px); height: auto;
  z-index: 5; pointer-events: none; user-select: none;
}
#qr svg { display: block; width: 100%; height: auto; }
.qr-title { margin: 6px 0 1px; font-weight: 800; font-size: clamp(11px, 1.05vw, 21px); }

#status {
  position: fixed; left: 50%; bottom: 3vh; transform: translateX(-50%); background: #3d2320; color: #fff;
  padding: 8px 18px; border-radius: 999px; font-weight: 600; opacity: .85; z-index: 6;
}
