:root {
  color-scheme: dark;
  --accent: #96f4ee;
  --line: #859fb538;
  --ink: #f1f7ff;
  --muted: #b2c4d8;
  --ambient: #092932;
  --rim: #32656d;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: #080b13;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { max-width: none; padding: 0;
  margin: 0;
  background: radial-gradient(ellipse at 50% 48%, var(--ambient), transparent 63%), #080b13;
  background-attachment: fixed;
}
.clock {
  position: relative;
  width: min(100%, 1620px);
  min-height: 100svh;
  margin: 0 auto;
  padding-inline: clamp(19px, 4vw, 72px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.mast, .panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mast { min-height: 74px; border-bottom: 1px solid var(--line); }
[data-plasma-work] h1 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  font-size: clamp(1.02rem, 2.4vw, 1.47rem);
  font-weight: 530;
  letter-spacing: -.045em;
}
.mark {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 13px color-mix(in srgb, var(--accent) 28%, transparent);
  transform: rotate(-28deg);
}
.mark::before { content: ""; width: 29px; height: 10px; position: absolute; border: 1px solid var(--accent); border-radius: 50%; }
.mark i, .local i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.local { display: flex; align-items: center; gap: 9px; color: #d1e1ed; text-align: right; }
.local, #date { font: 600 .72rem/1.4 ui-monospace, monospace; letter-spacing: .14em; }
.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 16px 0 15px;
}
.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #bdd4ef52 .75px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 17%, transparent 72%);
}
.frame {
  width: min(100%, 44rem, max(18rem, calc(100svh - 13.3rem)));
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--rim) 53%, transparent);
  border-radius: 50%;
  padding: clamp(9px, 2.2vw, 25px);
  display: grid;
  place-items: center;
  position: relative;
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: var(--accent);
  width: 7px;
  height: 1px;
  top: 50%;
  left: 0;
  box-shadow: 0 0 9px var(--accent);
}
.frame::after { left: auto; right: 0; }
.orb {
  overflow: clip;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  background: #0b1624;
  box-shadow: 0 0 55px -6px var(--rim), 0 18px 85px #0009;
}
#glass {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  cursor: crosshair;
  touch-action: none;
}
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid var(--rim);
  box-shadow: inset 0 0 18px var(--rim);
  background: radial-gradient(ellipse at 31% 6%, #c7ecff21, transparent 44%),
              radial-gradient(ellipse at 75% 91%, #c7ecff14, transparent 34%);
}
.orb::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 1%;
  pointer-events: none;
  border: 2px solid transparent;
  border-top-color: #d9efffa6;
  border-bottom-color: #c7ecff35;
  border-radius: 50%;
  mask-image: linear-gradient(120deg, #0000 8%, #000 22%, #0000 45%, #0000 63%, #000 82%, #0000 98%);
  transform: rotate(-24deg);
}
.readout { position: absolute; top: 66%; width: 100%; text-align: center; pointer-events: none; }
#date { margin: 0; color: #c7d8ec; text-shadow: 0 2px 6px #000; }
#instruction { margin: 13px 0 0; color: var(--muted); font-size: .86rem; text-align: center; }
#instruction > span:first-child { color: var(--accent); padding-inline-end: 5px; font-size: 1.05rem; }
.panel { min-height: 74px; border-top: 1px solid var(--line); flex-wrap: wrap; padding: 12px 0; }
.palettes { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 0; border: 0; min-width: 0; }
.option { position: relative; display: inline-grid; color: var(--muted); cursor: pointer; }
.option input, .visually-hidden, .accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.option span, #motion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 41px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 11px;
  font-size: .84rem;
}
.option i { width: 8px; height: 8px; border-radius: 50%; background: var(--swatch); }
.auto { --swatch: conic-gradient(#f879a5,#ffc77e,#91eabe,#7ec8ff,#d18aff,#f879a5); }
.aurora { --swatch: #72f4d9; }
.violet { --swatch: #b88bff; }
.ember { --swatch: #ffac68; }
.rose { --swatch: #ff78ad; }
.option input:checked + span { border-color: var(--line); background: #b4d7ff10; color: var(--ink); }
.option:hover span, #motion:hover { background: #b4d7ff1a; }
.option input:focus-visible + span, :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#motion { border-color: var(--line); background: #b4d7ff09; color: var(--ink); cursor: pointer; font-family: inherit; }
#motion span:first-child { color: var(--accent); }
.notice { text-align: center; }
.clock.fallback .accessible {
  position: static;
  margin: 0;
  width: auto;
  height: auto;
  clip-path: none;
  color: var(--ink);
  font: 600 clamp(2rem, 14vw, 7rem)/1 ui-monospace, monospace;
}
.clock.fallback .readout { inset: 0; display: grid; place-content: center; gap: 12px; }
.clock.fallback #glass { pointer-events: none; }
@media (max-width: 690px) {
  .mast { min-height: 4rem; flex-wrap: wrap; gap: .5rem; padding-block: .6rem; }
  .frame { padding: 2.8%; }
  .panel { justify-content: center; gap: 7px; }
  .palettes { justify-content: center; }
  .option span, #motion { min-height: 2.75rem; padding-inline: .5rem; }
}
@media (pointer: coarse), (max-width: 600px) { .keyboard { display: none; } }
@media (max-width: 355px) { .local { font-size: .60rem; letter-spacing: .08em; } }

body:has([data-plasma-work]) > header {
  box-sizing: border-box;
  padding-inline: clamp(0.9rem, 4vw, 3rem);
}
body:has([data-plasma-work]) .page-body {
  max-width: none;
  padding: 0;
}
[data-plasma-work] { min-height: calc(100svh - 5rem); }

[data-plasma-work] h1 { color: var(--ink); text-align: start; }
