:root {
  --bg: #000;
  --sheet: rgba(18, 18, 20, 0.92);
  --text: #f2f2f2;
  --muted: #a8a8ad;
  --line: #3a3a3f;
  --accent: #e8e8e8;
  --accent-text: #111;
  /* Menu: a soft light theme, warm off-white with dark grey text rather than pure white and black. */
  --menu-bg: #f3f0ea;
  --menu-tile: #fbfaf7;
  --menu-tile-pressed: #ebe7df;
  --menu-text: #2e2c29;
  --menu-muted: #6b665f;
  --menu-line: #ddd8cf;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#static {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Fades the static in from black when it opens, starting slowly. */
#static.fade-in {
  animation: static-fade-in 3s ease-in;
}

@keyframes static-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Square dots. Without this the browser blends the dots, which looks softer and rounder. */
#static.sharp {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hidden {
  display: none !important;
}

.page {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background: var(--menu-bg);
  color: var(--menu-text);
  color-scheme: light;
  padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}

/* Text on the light pages can be selected and copied. Buttons, menu tiles and
   the 3D brain view stay unselectable, so tapping and dragging don't select text. */
.page {
  -webkit-user-select: text;
  user-select: text;
}

.page button,
.page .tiles,
.page .brain-view {
  -webkit-user-select: none;
  user-select: none;
}

.page-inner {
  max-width: 560px;
  margin: 0 auto;
}

.page h1 {
  margin: 0 0 16px;
  font-size: 24px;
}

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tile {
  display: block;
  padding: 16px;
  border: 1px solid var(--menu-line);
  border-radius: 16px;
  background: var(--menu-tile);
  color: var(--menu-text);
  text-decoration: none;
}

/* Tiles with an icon put it to the left of the text. */
.tile.has-icon {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tile-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--menu-tile-pressed);
  color: var(--menu-text);
}

.tile-icon img {
  width: 100%;
  height: 100%;
}

.tile-icon svg {
  width: 24px;
  height: 24px;
}

.tile-text {
  min-width: 0;
}

.tile:active {
  background: var(--menu-tile-pressed);
}

.tile:focus-visible {
  outline: 2px solid var(--menu-text);
  outline-offset: 2px;
}

.tile-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

/* Marks links that leave the app. */
.tile-title .external {
  margin-left: 6px;
  color: var(--menu-muted);
  font-weight: 400;
}

/* Author link under the menu title. */
.byline {
  margin: -8px 0 16px;
  color: var(--menu-muted);
  font-size: 14px;
}

.byline a {
  color: inherit;
}

.byline .external {
  margin-left: 4px;
}

/* Brain Model page */
.brain-view {
  position: relative;
  height: min(60vh, 420px);
  margin: 0 0 12px;
  border: 1px solid var(--menu-line);
  border-radius: 16px;
  background: var(--menu-tile);
  overflow: hidden;
  touch-action: none;
}

.brain-view canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Part names that float over the model. */
.brain-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brain-label {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 0;
  padding: 2px 8px;
  border: 1px solid var(--part);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.92);
  color: var(--menu-text);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: auto;
  transition: opacity 0.2s;
}

.brain-label.behind {
  opacity: 0.45;
}

.brain-label.selected {
  background: var(--part);
  color: #fff;
  font-weight: 600;
}

.brain-labels-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 32px;
  padding: 0 10px;
  border-color: var(--menu-line);
  background: rgba(251, 250, 247, 0.92);
  color: var(--menu-muted);
  font-size: 13px;
}

.brain-labels-toggle[aria-pressed="true"] {
  color: var(--menu-text);
}

/* The small picture in the tour, showing what the image looks like so far. */
.seen {
  position: absolute;
  left: 8px;
  bottom: 8px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--menu-line);
  border-radius: 10px;
  background: rgba(251, 250, 247, 0.92);
  pointer-events: none;
}

.seen canvas {
  display: block;
  width: 112px;
  height: 70px;
  border-radius: 6px;
  image-rendering: pixelated;
}

.seen figcaption {
  margin-top: 2px;
  color: var(--menu-muted);
  font-size: 11px;
  text-align: center;
}

.brain-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--menu-muted);
}

.brain-parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.part-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-color: var(--menu-line);
  background: var(--menu-tile);
  color: var(--menu-text);
  text-align: left;
  font-size: 15px;
}

.part-button[aria-pressed="true"] {
  background: var(--menu-tile-pressed);
  border-color: var(--menu-text);
  font-weight: 600;
}

.swatch {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

/* "How we see, step by step" tour */
.tour-start {
  width: 100%;
  margin: 0 0 12px;
  border-color: var(--menu-text);
  background: var(--menu-text);
  color: var(--menu-bg);
  font-weight: 600;
}

.tour-panel {
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--menu-line);
  border-radius: 16px;
  background: var(--menu-tile);
}

.tour-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tour-count {
  color: var(--menu-muted);
  font-size: 14px;
}

.tour-mode {
  display: flex;
}

.tour-mode button {
  min-height: 36px;
  border-color: var(--menu-line);
  background: var(--menu-tile);
  color: var(--menu-muted);
  font-size: 14px;
}

.tour-mode button:first-child {
  border-radius: 10px 0 0 10px;
}

.tour-mode button:last-child {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.tour-mode button[aria-pressed="true"] {
  background: var(--menu-text);
  color: var(--menu-bg);
  font-weight: 600;
}

.tour-panel h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.tour-panel p {
  margin: 0 0 10px;
}

.tour-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-nav > button {
  padding: 0 12px;
  border-color: var(--menu-line);
  background: var(--menu-tile);
  color: var(--menu-text);
}

.tour-nav > button:disabled {
  opacity: 0.4;
  cursor: default;
}

.tour-next {
  margin-left: auto;
  font-weight: 600;
}

.tour-dots {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tour-dot {
  min-height: 0;
  width: 18px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
}

.tour-dot::after {
  content: "";
  position: absolute;
  inset: 8px 5px;
  border-radius: 50%;
  background: var(--menu-line);
}

.tour-dot[aria-current="true"]::after {
  inset: 6px 3px;
  background: var(--menu-text);
}

.tour-note {
  margin: 10px 0 0 !important;
  color: var(--menu-muted);
  font-size: 13px;
}

.tour-exit {
  min-height: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--menu-muted);
  text-decoration: underline;
  font-size: 13px;
}

.brain-info {
  min-height: 96px;
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--menu-line);
  border-radius: 16px;
  background: var(--menu-tile);
}

.brain-info h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.brain-info p {
  margin: 0;
}

.brain-info .hint,
.brain-key {
  color: var(--menu-muted);
  font-size: 14px;
}

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.badge.finding {
  background: #dcebd8;
  color: #2f5a27;
}

.badge.hypothesis {
  background: #f6e3c3;
  color: #7a4e0f;
}

/* Simulator page: a full-screen dark view with controls on top. */
.sim {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
  color: var(--text);
  color-scheme: dark;
}

.sim canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.sim-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--muted);
}

.sim-button {
  min-height: 40px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(20, 20, 22, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.sim-top {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sim-mode {
  display: flex;
}

.sim-mode button {
  min-height: 40px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(20, 20, 22, 0.7);
  color: var(--muted);
  font-size: 14px;
}

.sim-mode button:first-child {
  border-radius: 10px 0 0 10px;
}

.sim-mode button:last-child {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.sim-mode button[aria-pressed="true"] {
  background: rgba(242, 242, 242, 0.9);
  color: #111;
  font-weight: 600;
}

.sim-room {
  position: absolute;
  top: calc(60px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.6);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

.sim-hint {
  position: absolute;
  left: 50%;
  bottom: calc(150px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(20, 20, 22, 0.7);
  color: var(--text);
  font-size: 14px;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.6s;
}

.sim-hint.faded {
  opacity: 0;
}

/* Keyboard shortcuts, shown only with a mouse; the touch pad, only with touch. */
.sim kbd {
  display: inline-block;
  min-width: 1.4em;
  margin-left: 4px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

.sim-check kbd {
  margin: 0 2px 0 0;
}

.sim-keys {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.sim-keys kbd {
  margin: 0 1px;
}

@media (hover: hover) and (pointer: fine) {
  .sim .for-touch,
  .sim-stick {
    display: none;
  }
}

@media not ((hover: hover) and (pointer: fine)) {
  .sim kbd,
  .sim .for-mouse {
    display: none;
  }
}

/* A small dot in the middle while the mouse is being used to look around. */
.sim-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  display: none;
}

.sim.locked .sim-crosshair {
  display: block;
}

/* Touch pad for walking. */
.sim-stick {
  position: absolute;
  left: calc(20px + env(safe-area-inset-left));
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.35);
  touch-action: none;
}

.sim-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(242, 242, 242, 0.55);
  pointer-events: none;
}

.sim-eyes {
  position: absolute;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(40px + env(safe-area-inset-bottom));
  min-height: 56px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.sim-panel {
  position: absolute;
  top: calc(60px + env(safe-area-inset-top));
  right: 10px;
  width: min(380px, calc(100% - 20px));
  max-height: calc(100% - 80px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sheet);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 14px;
}

.sim-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-panel h2 {
  margin: 0;
  font-size: 18px;
}

.sim-panel h3 {
  margin: 14px 0 4px;
  font-size: 15px;
}

.sim-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.sim-panel a {
  color: var(--text);
}

.sim-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0 0;
}

.sim-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
}

.sim-check span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.sim-check strong {
  color: var(--text);
}

.sim-range {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0 30px;
}

.sim-range span {
  margin: 0;
}

.sim-range input {
  flex: 1;
}

.sim-typical-note {
  display: none;
  margin: 8px 0 0;
  color: var(--muted);
}

/* In Typical mode the effect switches don't apply. */
.sim-panel.typical .sim-typical-note {
  display: block;
}

.sim-panel.typical .sim-check,
.sim-panel.typical .sim-range {
  opacity: 0.4;
  pointer-events: none;
}

.sim-note {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Running text, such as the About page. */
.prose {
  line-height: 1.5;
}

.prose h2 {
  margin: 28px 0 8px;
  font-size: 20px;
}

.prose p {
  margin: 0 0 12px;
}

.prose a {
  color: var(--menu-text);
}

.prose .external {
  margin-left: 4px;
  color: var(--menu-muted);
}

/* "On this page" list at the top of the About page. */
.contents {
  margin: 4px 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--menu-line);
  border-radius: 16px;
  background: var(--menu-tile);
}

.contents-title {
  margin: 0 0 6px !important;
  color: var(--menu-muted);
  font-size: 14px;
}

.contents ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents button {
  min-height: 36px;
  padding: 0;
  border: none;
  background: none;
  color: var(--menu-text);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose h2 {
  scroll-margin-top: 16px;
}

.treatments {
  margin: 0 0 12px;
  padding-left: 20px;
}

.treatments li {
  margin-bottom: 10px;
}

.criteria {
  margin: 0 0 12px;
  padding-left: 24px;
  list-style: upper-alpha;
}

.criteria > li {
  margin-bottom: 8px;
}

.criteria ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.criteria ul li {
  margin-bottom: 4px;
}

/* Years on the left, events on the right. */
.history {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0 0 12px;
}

.history dt {
  font-weight: 600;
  white-space: nowrap;
}

.history dd {
  margin: 0;
}

.page-back {
  min-height: 44px;
  margin: 0 0 4px -4px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--menu-muted);
}

.tile-description {
  display: block;
  margin-top: 4px;
  color: var(--menu-muted);
  font-size: 14px;
}

#hint {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sheet);
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.6s;
}

#hint.fade {
  opacity: 0;
}

.sheet {
  position: fixed;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.sheet.centre {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow-y: auto;
}

.sheet.bottom {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(480px, calc(100% - 32px));
  max-height: calc(100% - 32px - env(safe-area-inset-bottom));
  overflow-y: auto;
}

h1 {
  margin: 0 0 12px;
  font-size: 20px;
}

p {
  margin: 0 0 12px;
}

.small {
  color: var(--muted);
  font-size: 14px;
}

button,
select {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 44px;
  padding: 0 14px;
}

button {
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  font-weight: 600;
}

#start {
  width: 100%;
}

button.back {
  border: none;
  padding: 0 4px;
  margin-bottom: 8px;
  color: var(--muted);
}

.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.buttons button {
  padding: 0 6px;
}

label {
  display: block;
  margin-bottom: 10px;
}

label span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}

output {
  color: var(--text);
}

input[type="range"] {
  width: 100%;
  height: 32px;
  margin: 0;
  accent-color: var(--accent);
}

.selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

select {
  width: 100%;
  background: #1c1c1f;
}

#status {
  margin: 4px 0 0;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* My Personal Theory page. */
.theory-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #e3c88f;
  border-radius: 16px;
  background: #fbf1dc;
}

.theory-notice p {
  margin: 0;
}

/* The core of the theory, highlighted. */
.theory-core {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #e2b3bd;
  border-left: 4px solid #b4475e;
  border-radius: 12px;
  background: #f8e9ec;
}

.theory-core p {
  margin: 0;
}

.theory-list {
  margin: 0 0 12px;
  padding-left: 20px;
}

.theory-list li {
  margin-bottom: 8px;
}

/* Illustrations on the About and theory pages: drawn in code as SVG, scaled to the page width. */
.illustration {
  margin: 16px 0 20px;
  padding: 12px;
  border: 1px solid var(--menu-line);
  border-radius: 16px;
  background: var(--menu-tile);
}

.illustration svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: inherit;
}

.illustration figcaption {
  margin-top: 8px;
  color: var(--menu-muted);
  font-size: 14px;
}

.theory-questions {
  margin: 0 0 12px;
}

.theory-questions dt {
  margin-top: 14px;
  font-weight: 600;
}

.theory-questions dd {
  margin: 6px 0 0;
}

.theory-questions .badge {
  margin-right: 4px;
}

.theory-questions dd .badge:not(:first-child) {
  margin-top: 6px;
}

/* A link-styled button that scrolls to another section of the page. */
.theory-jump {
  min-height: 0;
  padding: 0;
  line-height: inherit;
  vertical-align: baseline;
  border: none;
  background: none;
  color: var(--menu-text);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mindful Attention page. */
.mindful-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #c9d9b8;
  border-radius: 16px;
  background: #eef4e6;
}

.mindful-notice p {
  margin: 0;
}

.mindful-practices {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.mindful-practice {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--menu-line);
  border-radius: 16px;
  background: var(--menu-tile);
  color: var(--menu-text);
  font: inherit;
  text-align: left;
}

.mindful-practice:active {
  background: var(--menu-tile-pressed);
}

.mindful-practice .tile-title {
  display: block;
  font-weight: 600;
}

.mindful-options {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
}

.mindful-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.mindful-segments {
  display: flex;
  border: 1px solid var(--menu-line);
  border-radius: 999px;
  overflow: hidden;
}

.mindful-segments button {
  min-height: 40px;
  padding: 0 16px;
  border: none;
  background: var(--menu-tile);
  color: var(--menu-text);
  font: inherit;
}

.mindful-segments button[aria-pressed="true"] {
  background: var(--menu-text);
  color: var(--menu-bg);
}

.mindful-check {
  min-height: 36px;
}

.mindful-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--menu-text);
}

.mindful-hint {
  color: var(--menu-muted);
  font-size: 14px;
}

/* A practice in progress fills the screen with a calm, plain view. */
.mindful-session {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  background: var(--menu-bg);
  color: var(--menu-text);
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
}

.mindful-session-title {
  margin: 0;
  color: var(--menu-muted);
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* A soft circle that slowly grows and shrinks. It's only a calm focus point:
   there's no need to breathe along with it. */
.mindful-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #cfdcc0 0%, #dfe7d4 55%, rgba(223, 231, 212, 0) 72%);
  animation: mindful-grow 12s ease-in-out infinite;
}

.mindful-session.still .mindful-circle {
  animation: none;
}

@keyframes mindful-grow {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.mindful-prompt {
  max-width: 420px;
  min-height: 5.4em;
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}

.mindful-prompt.fade-in {
  animation: mindful-fade 1.2s ease-out;
}

.mindful-session.still .mindful-prompt.fade-in {
  animation: none;
}

@keyframes mindful-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mindful-progress {
  margin: 0;
  color: var(--menu-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.mindful-stop {
  min-height: 44px;
  padding: 0 28px;
  border: 1px solid var(--menu-line);
  border-radius: 999px;
  background: var(--menu-tile);
  color: var(--menu-text);
  font: inherit;
}

/* Contact page. */
.contact-list {
  margin: 0 0 16px;
  padding-left: 20px;
}

.contact-list li {
  margin-bottom: 4px;
}

.contact-email {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--menu-line);
  border-radius: 16px;
  background: var(--menu-tile);
  text-align: center;
}

.contact-show {
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--menu-line);
  border-radius: 999px;
  background: var(--menu-bg);
  color: var(--menu-text);
  font: inherit;
}

.contact-address {
  margin: 0 !important;
  font-size: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-note {
  color: var(--menu-muted);
  font-size: 14px;
}
