:root {
  color-scheme: dark;
  --bg: #000;
  --panel-soft: rgba(16, 25, 25, 0.82);
  --text: #f8fbff;
  --muted: #9eb4bf;
  --cyan: #00d4ff;
  --green: #6cff8f;
  --yellow: #ffe86b;
  --red: #ff6b7a;
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
  color: inherit;
}

.app-shell {
  position: relative;
  width: 600px;
  height: 600px;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 212, 255, 0.06), transparent 42%),
    #000;
}

body.session-active .app-shell {
  visibility: hidden;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 66px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
}

.status-pill {
  min-width: 98px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--yellow);
  font-size: 16px;
  font-weight: 950;
  text-align: center;
  background: rgba(255, 232, 107, 0.08);
}

.calm-stage {
  height: 354px;
  display: grid;
  grid-template-rows: 98px 66px 54px 86px;
  align-items: center;
  text-align: center;
}

.setup-dot {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.42);
  transition: background 160ms ease, filter 160ms ease, transform 160ms ease;
}

.time-readout {
  color: var(--green);
  font-size: 58px;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(108, 255, 143, 0.22);
}

.calm-copy {
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-row div {
  min-height: 62px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-row strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
  line-height: 1;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.command {
  min-height: 70px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  font-size: 21px;
  font-weight: 950;
}

.command.primary {
  border-color: rgba(0, 212, 255, 0.48);
  color: var(--cyan);
}

.focusable {
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.focusable:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.52);
  transform: translateY(-1px);
}

.meditation-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 600px;
  height: 600px;
  display: grid;
  place-items: center;
  background: #000;
  user-select: none;
}

.meditation-dot {
  width: var(--dot-size, 28px);
  height: var(--dot-size, 28px);
  border-radius: 50%;
  background: var(--dot-color, var(--cyan));
  filter: blur(var(--dot-blur, 0px));
  box-shadow: 0 0 var(--dot-glow, 22px) var(--dot-color, rgba(0, 212, 255, 0.62));
  transform: scale(var(--dot-scale, 1));
  transition: width 130ms ease, height 130ms ease, filter 130ms ease, background 130ms ease, transform 130ms ease;
}

.meditation-time {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  color: rgba(248, 251, 255, 0.72);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.meditation-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 850;
  text-align: center;
}

body.done .setup-dot,
body.done .meditation-dot {
  background: var(--green);
  box-shadow: 0 0 34px rgba(108, 255, 143, 0.6);
  filter: blur(0);
}

.hidden {
  display: none;
}
