:root {
  --ink: #1a262c;
  --muted: #6a787f;
  --shell: #ece9e4;
  --shell-deep: #d8d4cd;
  --shell-hi: #f5f3ef;
  --accent: #ef739c;
  --accent-deep: #d24f7a;
  --cool: #7a74e8;
  --cool-deep: #5a54c4;
  --display: #0c1215;
  --display-ink: #eef6f3;
  --playhead: #ef739c;
  --shadow: 0 28px 60px rgba(10, 20, 24, 0.38);
  --radius: 16px;
  --radius-inner: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  /* Even field — avoid a dark band under the mobile banner */
  background:
    radial-gradient(900px 520px at 50% 12%, #f7f5f1, transparent 58%),
    linear-gradient(180deg, #d8d5cf 0%, #d2cfc8 55%, #cdc9c2 100%);
}

.page {
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  justify-items: center;
  align-content: stretch;
  gap: 10px;
  padding:
    max(28px, env(safe-area-inset-top))
    16px
    max(20px, env(safe-area-inset-bottom));
  overflow: hidden;
  box-sizing: border-box;
}

.page-top {
  width: min(720px, 100%);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.page-top-row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  min-height: 1.2em;
}

.page-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.page-top a {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.page-top a:hover {
  color: var(--ink);
}

.page-lead {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 36em;
  align-self: center;
}

.seo-blurb {
  margin-top: 4px;
}

.seo-blurb p {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.seo-blurb .shop-note,
.seo-blurb .privacy-note {
  margin-top: 4px;
}

.privacy-note {
  margin: 0;
  font-size: 0.56rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
  opacity: 0.85;
}

.seo-blurb-desktop {
  display: block;
  width: min(400px, 100%);
}

.layout {
  min-height: 0;
  width: 100%;
  max-width: 720px;
  height: 100%;
  display: grid;
  grid-template-columns: 96px minmax(0, 400px) 96px;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  overflow: hidden;
}

.rail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 0;
}

.rail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(245, 243, 239, 0.72);
  border: 1px solid rgba(40, 45, 50, 0.08);
  box-shadow: 0 6px 18px rgba(20, 28, 32, 0.08);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.aff-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(26, 38, 44, 0.72);
  color: #f5f3ef;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.rail-card:hover {
  border-color: rgba(239, 115, 156, 0.45);
  background: rgba(255, 255, 255, 0.88);
}

.rail-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.rail-fallback {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  font-size: 1.2rem;
}

.rail-label {
  font-size: 0.62rem;
  line-height: 1.3;
  text-align: center;
  color: var(--muted);
}

.stage {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.device {
  --frame-pad: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--frame-pad);
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding: var(--frame-pad);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, var(--shell-hi) 0%, var(--shell) 42%, var(--shell-deep) 100%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -3px 8px rgba(40, 55, 60, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.device-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.08) 100%);
  border-radius: inherit;
  z-index: 0;
}

.device > *:not(.device-shine) {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.screen-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.clock-now {
  justify-self: start;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 300;
  color: #b7c9c2;
  letter-spacing: 0.04em;
}

.screen-meta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(238, 246, 243, 0.08);
  color: #e8f0ed;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  white-space: nowrap;
  border: 1px solid rgba(238, 246, 243, 0.12);
}

.screen-bezel {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 220px;
  padding: 8px;
  border-radius: var(--radius-inner);
  background: #1c262b;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 10px 22px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 4px rgba(30, 40, 45, 0.15);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.display {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 14px 13px 12px;
  border-radius: calc(var(--radius-inner) - 4px);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(104, 96, 248, 0.16), transparent 48%),
    var(--display);
  color: var(--display-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.display::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.45;
}

.status {
  margin: 0;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #9bb0ab;
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6a7f7a;
  display: inline-block;
}

body.is-running .status-dot {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(239, 115, 156, 0.55);
}

body.is-done .status-dot {
  background: #8b84ff;
}

.screen-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  transform: translateY(-5%);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.wave-wrap {
  position: relative;
  margin: 0 0 14px;
  height: 56px;
  width: 100%;
}

.waves {
  display: block;
  width: 100%;
  height: 100%;
}

.playhead {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 2px;
  margin-left: -1px;
  background: var(--playhead);
  box-shadow: 0 0 10px rgba(239, 115, 156, 0.45);
  pointer-events: none;
  transition: left 0.15s linear;
}

.time {
  margin: 0;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 12vw, 3.5rem);
  letter-spacing: 0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #f5fbf8;
  text-shadow: 0 2px 18px rgba(104, 96, 248, 0.28);
}

.task-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(238, 246, 243, 0.18);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.task-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: #7f9690;
  user-select: none;
}

.task-field input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #f2f8f5;
  font-family: "M PLUS 1 Code", "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  caret-color: var(--accent);
  padding: 0;
}

.task-field input::placeholder {
  color: rgba(180, 200, 192, 0.4);
  font-weight: 300;
}

.task-field:focus-within {
  border-bottom-color: rgba(239, 115, 156, 0.55);
}

.screen-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.preset-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  appearance: none;
  border: 1px solid rgba(238, 246, 243, 0.14);
  background: rgba(238, 246, 243, 0.05);
  color: #b7c9c2;
  border-radius: 10px;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  font: inherit;
  font-size: 0.74rem;
  font-family: "IBM Plex Mono", monospace;
  cursor: pointer;
}

.chip.is-active,
.chip:hover {
  color: #fff;
  border-color: rgba(104, 96, 248, 0.55);
  background: rgba(104, 96, 248, 0.28);
}

.custom-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7f9690;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-inline input {
  width: 48px;
  border: 1px solid rgba(238, 246, 243, 0.14);
  background: rgba(238, 246, 243, 0.05);
  color: #fff;
  border-radius: 8px;
  padding: 5px 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.deck-rail {
  flex-shrink: 0;
  height: 14px;
  border-radius: 3px;
  background:
    radial-gradient(circle, #8a969a 1px, transparent 1.15px) 0 0 / 5px 5px,
    linear-gradient(180deg, #cfd8db, #b7c2c6);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.5);
  opacity: 0.85;
}

.controls {
  flex: 0 1 auto;
  min-height: 0;
}

.pad {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  grid-template-rows: minmax(52px, 72px) minmax(72px, 96px);
  gap: 0;
  border: 1.5px solid #1a1a1a;
  border-radius: var(--radius-inner);
  overflow: hidden;
  background: #1a1a1a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 6px rgba(40, 35, 30, 0.12);
}

.tile {
  appearance: none;
  border: none;
  margin: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--ink);
  background: linear-gradient(180deg, #f4f1ec 0%, #e6e2db 55%, #d8d3cb 100%);
  transition: filter 0.1s ease;
}

.tile-stop {
  border-right: 1.5px solid #1a1a1a;
  border-bottom: 1.5px solid #1a1a1a;
}

.tile-min {
  border-right: 1.5px solid #1a1a1a;
  border-bottom: 1.5px solid #1a1a1a;
}

.tile-reset {
  border-bottom: 1.5px solid #1a1a1a;
}

.tile-start {
  grid-column: 1 / -1;
  padding: 12px;
  min-height: 0;
  background: linear-gradient(145deg, #f59bb8 0%, var(--accent) 48%, var(--accent-deep) 100%);
}

body.is-running .tile-start {
  background: linear-gradient(145deg, #8b84ff 0%, var(--cool) 55%, var(--cool-deep) 100%);
}

.tile:active:not(:disabled) {
  filter: brightness(0.97);
}

.tile:active:not(:disabled) .well {
  box-shadow:
    inset 0 10px 14px rgba(30, 40, 45, 0.28),
    inset 0 -2px 4px rgba(255, 255, 255, 0.35);
}

.tile-start:active:not(:disabled) .well-start {
  box-shadow:
    inset 0 10px 14px rgba(100, 20, 55, 0.14),
    inset 0 -2px 4px rgba(255, 210, 230, 0.07);
}

body.is-running .tile-start:active:not(:disabled) .well-start {
  box-shadow:
    inset 0 10px 14px rgba(40, 35, 120, 0.15),
    inset 0 -2px 4px rgba(200, 195, 255, 0.07);
}

.tile:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.well {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, #faf8f4 0%, #ebe7e0 55%, #d5d0c7 100%);
  box-shadow:
    inset 0 7px 12px rgba(40, 35, 30, 0.2),
    inset 0 -3px 5px rgba(255, 255, 255, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.35);
}

.well-start {
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff8f1;
  /* ~1/3 the previous well depth */
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 190, 210, 0.18) 0%, rgba(239, 115, 156, 0.05) 42%, rgba(120, 40, 70, 0.11) 100%);
  box-shadow:
    inset 0 7px 12px rgba(100, 30, 55, 0.11),
    inset 0 -3px 5px rgba(255, 220, 230, 0.09),
    0 1px 0 rgba(255, 230, 235, 0.07);
}

body.is-running .well-start {
  background:
    radial-gradient(circle at 50% 38%, rgba(180, 175, 255, 0.17) 0%, rgba(104, 96, 248, 0.05) 42%, rgba(40, 35, 120, 0.13) 100%);
  box-shadow:
    inset 0 7px 12px rgba(40, 35, 120, 0.13),
    inset 0 -3px 5px rgba(200, 195, 255, 0.08),
    0 1px 0 rgba(200, 195, 255, 0.05);
}

.mark {
  display: block;
  position: relative;
}

.mark.play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff8f1;
  margin-left: 3px;
}

.mark.play.is-idle {
  border-left-color: #fff8f1;
}

.tile-start .mark.pause {
  width: 16px;
  height: 18px;
}

.mark.pause {
  width: 14px;
  height: 16px;
  position: relative;
  margin: 0;
  border: none;
}

.mark.pause::before,
.mark.pause::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 1px;
  background: #fff8f1;
}

.mark.pause::before {
  left: 1px;
}

.mark.pause::after {
  right: 1px;
}

.mark.stop {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: var(--ink);
}

.mark.minutes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink);
  line-height: 1;
  font-family: "IBM Plex Mono", monospace;
}

.mark.minutes #minutesFace {
  font-size: 1.05rem;
  font-weight: 500;
}

.mark.minutes .minutes-unit {
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mark.reset {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--ink);
}

.mark.reset svg {
  display: block;
}

.mobile-banner {
  display: none;
  width: min(400px, 100%);
  min-height: 0;
}

.mobile-banner-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}

.mobile-banner-track::-webkit-scrollbar {
  display: none;
}

.mobile-banner-card {
  position: relative;
  flex: 0 0 auto;
  width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 8px 7px;
  border-radius: 12px;
  background: rgba(245, 243, 239, 0.88);
  border: 1px solid rgba(40, 45, 50, 0.08);
  box-shadow: 0 4px 14px rgba(20, 28, 32, 0.1);
  text-decoration: none;
  color: var(--ink);
}

.mobile-banner-card .aff-badge {
  top: 4px;
  left: 4px;
  font-size: 0.48rem;
}

.mobile-banner-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.mobile-banner-card span {
  font-size: 0.58rem;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
}

.shop-note {
  margin: 6px 0 0;
  font-size: 0.62rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .page {
    /* title | timer | banner — banner always keeps a row */
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .page-top {
    width: min(400px, 100%);
  }

  .rail {
    display: none;
  }

  .layout {
    grid-template-columns: minmax(0, 400px);
    max-width: 400px;
  }

  .mobile-banner {
    display: block;
  }

  .seo-blurb-desktop {
    display: none;
  }

  .screen-bezel {
    min-height: min(38dvh, 200px);
  }
}

@media (max-width: 420px) {
  .page {
    gap: 6px;
    padding:
      max(12px, env(safe-area-inset-top))
      10px
      max(10px, env(safe-area-inset-bottom));
  }

  .page-lead {
    font-size: 0.62rem;
    padding: 0 4px;
  }

  .device {
    --frame-pad: 10px;
    gap: 10px;
    border-radius: 14px;
  }

  .screen-bezel {
    min-height: min(36dvh, 190px);
    border-radius: 8px;
    padding: 6px;
  }

  .display {
    border-radius: 6px;
    padding: 10px 10px 8px;
  }

  .screen-top {
    gap: 4px;
  }

  .clock-now,
  .status,
  .meta-pill {
    font-size: 0.6rem;
  }

  .wave-wrap {
    height: 40px;
    margin-bottom: 8px;
  }

  .time {
    font-size: clamp(3.1rem, 15vw, 3.9rem);
  }

  .task-field {
    margin-top: 4px;
    padding-bottom: 6px;
  }

  .task-field input {
    font-size: 0.8rem;
  }

  .screen-footer {
    margin-top: 8px;
  }

  .deck-rail {
    height: 10px;
  }

  .pad {
    border-radius: 8px;
    grid-template-rows: minmax(44px, 52px) minmax(60px, 72px);
  }

  .tile {
    padding: 4px;
  }

  .tile-start {
    padding: 6px;
  }

  .well {
    width: 28px;
    height: 28px;
    box-shadow:
      inset 0 4px 7px rgba(40, 35, 30, 0.2),
      inset 0 -2px 3px rgba(255, 255, 255, 0.65),
      0 1px 0 rgba(255, 255, 255, 0.35);
  }

  .well-start {
    width: 32px;
    height: 32px;
    min-width: 32px;
    box-shadow:
      inset 0 4px 7px rgba(100, 30, 55, 0.11),
      inset 0 -2px 3px rgba(255, 220, 230, 0.09),
      0 1px 0 rgba(255, 230, 235, 0.07);
  }

  .mark.play {
    border-width: 7px 0 7px 11px;
    margin-left: 2px;
  }

  .mark.pause {
    width: 10px;
    height: 12px;
  }

  .tile-start .mark.pause {
    width: 11px;
    height: 13px;
  }

  .mark.pause::before,
  .mark.pause::after {
    width: 3px;
  }

  .mark.stop {
    width: 9px;
    height: 9px;
  }

  .mark.minutes #minutesFace {
    font-size: 0.78rem;
  }

  .mark.minutes .minutes-unit {
    font-size: 0.42rem;
  }

  .mark.reset {
    width: 14px;
    height: 14px;
  }

  .mark.reset svg {
    width: 14px;
    height: 14px;
  }

  .mobile-banner-card {
    width: 92px;
    padding: 6px;
  }

  .mobile-banner-card img {
    width: 48px;
    height: 48px;
  }
}

/* Short phones: keep timer + banner both in view */
@media (max-height: 740px) {
  .page {
    gap: 6px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .screen-bezel {
    min-height: min(32dvh, 170px);
  }

  .wave-wrap {
    height: 28px;
    margin-bottom: 4px;
  }

  .time {
    font-size: clamp(2.8rem, 14vw, 3.5rem);
  }

  .screen-footer .custom-inline {
    display: none;
  }

  .deck-rail {
    height: 8px;
  }

  .pad {
    grid-template-rows: minmax(38px, 46px) minmax(52px, 60px);
  }

  .well {
    width: 24px;
    height: 24px;
  }

  .well-start {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .mark.play {
    border-width: 6px 0 6px 9px;
    margin-left: 1px;
  }

  .mark.pause {
    width: 9px;
    height: 10px;
  }

  .tile-start .mark.pause {
    width: 10px;
    height: 11px;
  }

  .mark.stop {
    width: 8px;
    height: 8px;
  }

  .mark.minutes #minutesFace {
    font-size: 0.7rem;
  }

  .mark.reset,
  .mark.reset svg {
    width: 12px;
    height: 12px;
  }

  .mobile-banner-card {
    width: 80px;
    gap: 3px;
    padding: 5px;
  }

  .mobile-banner-card img {
    width: 40px;
    height: 40px;
  }

  .shop-note {
    margin-top: 3px;
    font-size: 0.56rem;
  }
}

@media (max-height: 640px) {
  .screen-bezel {
    min-height: min(28dvh, 150px);
  }

  .wave-wrap {
    display: none;
  }

  .screen-center {
    transform: none;
  }

  .pad {
    grid-template-rows: 36px 48px;
  }

  .well {
    width: 22px;
    height: 22px;
  }

  .well-start {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }

  .mark.play {
    border-width: 5px 0 5px 8px;
  }

  .mark.stop {
    width: 7px;
    height: 7px;
  }

  .mark.minutes #minutesFace {
    font-size: 0.64rem;
  }

  .mark.reset,
  .mark.reset svg {
    width: 11px;
    height: 11px;
  }

  .mobile-banner-card span {
    display: none;
  }
}

@media (min-height: 820px) {
  .wave-wrap {
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .playhead {
    transition: none;
  }
}
