:root {
  --bg: #000000;
  --ink: #f4f3ef;
  --soft: rgba(244, 243, 239, 0.5);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #fff1cc;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}

.fl { position: relative; display: grid; justify-items: center; width: min(240px, 100%); padding-top: min(150px, 36vh); }
/* the dark above the button, where the beam opens */
.fl__sky { position: absolute; left: 0; right: 0; top: 0; height: min(150px, 36vh); pointer-events: none; }
.fl__beam, .fl__core { position: absolute; left: 0; right: 0; top: 0; bottom: -30px; opacity: 0; }
.fl__beam { background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 72%, transparent) 0%, color-mix(in srgb, var(--accent) 26%, transparent) 55%, transparent 96%); filter: blur(7px); }
.fl__core { background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 90%, transparent) 0%, color-mix(in srgb, var(--accent) 18%, transparent) 60%, transparent 90%); filter: blur(3px); }

.fl__btn { position: relative; z-index: 2; display: grid; place-items: center; width: 76px; height: 76px; border: 0; border-radius: 50%; background: linear-gradient(160deg, #2c2c31, #17171a); color: var(--ink); cursor: pointer; outline: none; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 22px -12px rgba(0, 0, 0, 0.9); transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.fl:not([data-level="0"]) .fl__btn { background: linear-gradient(160deg, #ffffff, var(--accent)); color: #17171a; box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 10px 30px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.fl__btn:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.fl__btn svg { position: relative; display: block; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }
.fl__rays { opacity: 0; }
/* the light spilling around the button when it is on */
.fl__halo { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); opacity: 0; pointer-events: none; }

/* four marks: how strong the beam is */
.fl__levels { position: relative; z-index: 2; display: flex; gap: 4px; margin-top: 14px; }
.fl__levels button { display: grid; place-items: center; width: 30px; height: 24px; border: 0; background: none; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.fl__levels i { display: block; width: 30px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.fl__levels button.on i { background: var(--accent); box-shadow: 0 0 8px -1px color-mix(in srgb, var(--accent) 80%, transparent); }
.fl__levels button:focus-visible i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
@media (hover: hover) { .fl__levels button:not(.on):hover i { background: rgba(255, 255, 255, 0.34); } }

.fl__label { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1px; margin-top: 8px; }
.fl__label b { font-size: 14px; line-height: 18px; font-weight: 680; font-stretch: 104%; }
.fl__state { display: block; height: 16px; overflow: hidden; font-size: 12px; line-height: 16px; color: var(--soft); }
.fl__state span { display: block; white-space: nowrap; }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #ffffff; stroke: #101014; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 6; }
