/* Sunflower — see reference/sunflower-page.md.
   Full-screen WebGL scene with a few borderless glass controls on top. */
:root {
  color-scheme: dark;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.74);
  --glass: rgba(16, 20, 28, 0.28);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
}
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: #9fc0e0;
  color: var(--ink);
  font-family: var(--font);
  -webkit-user-select: none;
  user-select: none;
}
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.3), inset -1px -1px 1px rgba(255, 255, 255, 0.1);
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.round {
  position: fixed;
  top: max(var(--gutter), env(safe-area-inset-top));
  left: var(--gutter);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.panel {
  position: fixed;
  top: max(var(--gutter), env(safe-area-inset-top));
  right: var(--gutter);
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 600;
  min-width: 0;
  max-width: calc(100vw - 2 * var(--gutter) - 56px);
  box-sizing: border-box;
}
.time { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; text-align: right; }
.place { margin-top: 3px; text-align: right; color: var(--ink-soft); font-weight: 500; }
.round.reset { top: auto; bottom: max(var(--gutter), env(safe-area-inset-bottom)); width: 40px; height: 40px; cursor: pointer; border: 0; padding: 0; }
.round.reset svg { width: 20px; height: 20px; }

.hint {
  position: fixed; left: 0; right: 0;
  bottom: calc(max(var(--gutter), env(safe-area-inset-bottom)) + 30px); line-height: 20px;
  text-align: center; font-size: 12px; font-weight: 600;
  color: var(--ink-soft); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none; transition: opacity 0.6s;
}

#loading {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: #9fc0e0; color: #fff; font-weight: 700; letter-spacing: 0.04em;
  transition: opacity 0.7s; z-index: 5;
}
#loading.done { opacity: 0; pointer-events: none; }

@media (max-width: 520px) {
  .panel { font-size: 11.5px; min-width: 0; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #loading, .hint { transition: none; }
}

.cap { position: fixed; left: 0; right: 0; bottom: max(var(--gutter), env(safe-area-inset-bottom)); text-align: center; font-size: 12px; font-weight: 600; line-height: 40px; letter-spacing: 0.02em; color: var(--ink); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); pointer-events: none; }
.round.snd { top: auto; left: auto; right: var(--gutter); bottom: max(var(--gutter), env(safe-area-inset-bottom)); width: 40px; height: 40px; cursor: pointer; border: 0; padding: 0; }
.round.snd svg { width: 20px; height: 20px; }
.snd .slash { display: none; }
.snd.off .waves { display: none; }
.snd.off .slash { display: inline; }
