:root {
  color-scheme: light;
  --ink: #202b42;
  --muted: #61708b;
  --line: #d9dfeb;
  --surface: #ffffff;
  --surface-soft: #f4f6fa;
  --primary: #5547ed;
  --primary-dark: #4436d6;
  --focus: #2563eb;
  --shadow: 0 24px 60px rgba(30, 43, 74, 0.12), 0 3px 10px rgba(30, 43, 74, 0.05);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #eef2f9;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.95) 0 18rem, transparent 42rem),
    linear-gradient(135deg, #f7f9fd 0%, #eef2f9 56%, #e8edf7 100%);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.timer-card {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
  gap: 38px;
  min-height: 610px;
  padding: 34px 38px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(199, 208, 224, 0.92);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hourglass-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.canvas-shell {
  width: min(100%, 350px);
  transform-origin: center;
  cursor: pointer;
  touch-action: none;
}

.canvas-shell:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 4px;
}

.canvas-shell.is-flipping {
  animation: flip-hourglass 720ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.canvas-shell.is-launching {
  animation: rocket-takeoff 2.15s cubic-bezier(0.45, 0, 0.75, 0.6) forwards;
  pointer-events: none;
}

#hourglass {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(32, 43, 66, 0.12));
}

.time-readout {
  margin-top: -3px;
  color: #202a3e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}

.timer-state {
  min-height: 1.3em;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.controls-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.transport {
  display: grid;
  grid-template-columns: 1.1fr 0.82fr 0.95fr;
  gap: 10px;
}

.button {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  font-weight: 750;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.button:not(:disabled):active,
.presets button:not(:disabled):active,
.toggle:not(:disabled):active {
  transform: translateY(1px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, #4b5cf0, #6740e9);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(80, 68, 231, 0.24);
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4050df, #5933dd);
}

.button-primary.is-running {
  color: #fffaf0;
  background: linear-gradient(135deg, #bd7417, #a45a08);
  box-shadow: 0 8px 18px rgba(167, 94, 12, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: #f8f9fc;
}

.button-secondary:hover:not(:disabled) {
  background: #eef1f7;
  border-color: #c8d0df;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.control-group {
  min-width: 0;
  margin: 23px 0 0;
  padding: 0;
  border: 0;
}

.control-group legend {
  margin-bottom: 8px;
  color: #5e6c84;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.duration-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: #f3f6fc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.duration-segment {
  display: flex;
  min-width: 0;
  min-height: 66px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px;
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(32, 43, 66, 0.06);
}

.duration-segment:hover:not(:disabled) {
  border-color: #a8b7e7;
  background: #fafdff;
}

.duration-value {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.1;
}

.duration-unit {
  color: #66748c;
  font-size: 0.7rem;
  font-weight: 700;
}

.duration-colon {
  align-self: start;
  padding-top: 13px;
  color: #7a87a0;
  font-size: 1.6rem;
  font-weight: 700;
}

.duration-dialog {
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 22px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5deee;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(13, 26, 55, 0.3);
}

.duration-dialog::backdrop {
  background: rgba(13, 26, 55, 0.58);
  backdrop-filter: blur(3px);
}

.duration-dialog form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.duration-dialog h2 {
  margin: 3px 30px 0 0;
  font-size: 1.15rem;
}

.duration-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  color: #59677d;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 1.5rem;
}

.duration-dialog-hint {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

.duration-adjust {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 8px;
}

.duration-adjust button,
.duration-adjust input {
  min-width: 0;
  height: 58px;
  color: var(--ink);
  background: #f2f5fb;
  border: 1px solid #cfdaeb;
  border-radius: 13px;
  text-align: center;
}

.duration-adjust button {
  font-size: 1.8rem;
}

.duration-adjust input {
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
}

.duration-confirm {
  min-height: 46px;
  margin-top: 20px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 12px;
  font-weight: 750;
}

.duration-confirm:hover {
  background: var(--primary-dark);
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.presets button,
.toggle {
  min-height: 40px;
  padding: 0 15px;
  color: #4d5b72;
  background: #f7f8fa;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.presets button:hover:not(:disabled),
.toggle:hover:not(:disabled) {
  background: #eff2f7;
}

.presets button.is-active,
.toggle.is-on {
  color: white;
  background: #2866e9;
  border-color: #2866e9;
}

.presets button.is-active:hover:not(:disabled),
.toggle.is-on:hover:not(:disabled) {
  background: #1f58d5;
  border-color: #1f58d5;
}

.presets button.is-active:disabled {
  opacity: 1;
}

.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.toggle {
  border-radius: 11px;
}

.toggle-icon {
  display: inline-block;
  min-width: 1em;
  margin-right: 5px;
  font-size: 1rem;
}

.hint {
  margin: 16px 0 0;
  color: #7a869a;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Raketen-Prototyp: Bildhülle, echter Canvas-Sand und echte Bedienelemente. */
.timer-card[data-theme="rocket"] {
  color: #f6f9ff;
  background:
    radial-gradient(circle at 7% 13%, #f8d775 0 2px, transparent 3px),
    radial-gradient(circle at 41% 9%, #dcecff 0 1px, transparent 2px),
    radial-gradient(circle at 81% 17%, #f8d775 0 2px, transparent 3px),
    radial-gradient(circle at 95% 49%, #dcecff 0 1px, transparent 2px),
    radial-gradient(circle at 14% 72%, #dcecff 0 1px, transparent 2px),
    radial-gradient(circle at 58% 89%, #f8d775 0 1px, transparent 2px),
    radial-gradient(circle at 28% 28%, #28476d 0, transparent 43%),
    linear-gradient(145deg, #172f50, #0d203a 78%);
  border-color: #284567;
}

.timer-card[data-theme="rocket"] .time-readout {
  color: #fffaf0;
  font-weight: 800;
  text-shadow: 0 3px 15px rgba(3, 12, 27, .28);
}

.timer-card[data-theme="rocket"] .timer-state,
.timer-card[data-theme="rocket"] .control-group legend,
.timer-card[data-theme="rocket"] .duration-unit,
.timer-card[data-theme="rocket"] .hint {
  color: #b9cce6;
}

.timer-card[data-theme="rocket"] #hourglass {
  filter: drop-shadow(0 19px 20px rgba(1, 8, 20, .38));
}

.timer-card[data-theme="rocket"] .button-primary {
  color: #fff;
  background: linear-gradient(135deg, #80c967, #3b9d64);
  border-color: #9cdd83;
  box-shadow: 0 8px 18px rgba(24, 83, 64, .35);
}

.timer-card[data-theme="rocket"] .button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #92d879, #42aa6b);
}

.timer-card[data-theme="rocket"] .button-primary.is-running {
  background: linear-gradient(135deg, #f99549, #d76b36);
  border-color: #ffad68;
}

.timer-card[data-theme="rocket"] .button-secondary,
.timer-card[data-theme="rocket"] .presets button,
.timer-card[data-theme="rocket"] .toggle {
  color: #f3f8ff;
  background: #31527d;
  border-color: #51739d;
}

.timer-card[data-theme="rocket"] .button-secondary:hover:not(:disabled),
.timer-card[data-theme="rocket"] .presets button:hover:not(:disabled),
.timer-card[data-theme="rocket"] .toggle:hover:not(:disabled) {
  background: #416592;
}

.timer-card[data-theme="rocket"] .presets button.is-active,
.timer-card[data-theme="rocket"] .toggle.is-on {
  color: #fff;
  background: #e97937;
  border-color: #ffaa66;
}

.timer-card[data-theme="rocket"] .presets button.is-active:hover:not(:disabled),
.timer-card[data-theme="rocket"] .toggle.is-on:hover:not(:disabled) {
  background: #ee8746;
}

.timer-card[data-theme="rocket"] .duration-strip {
  background: #1d3a5b;
  border-color: #53759e;
}

.timer-card[data-theme="rocket"] .duration-segment {
  color: #172b49;
  background: #f4f7fc;
  border-color: #b5c7df;
}

.timer-card[data-theme="rocket"] .duration-segment:hover:not(:disabled) {
  background: #ffffff;
}

.timer-card[data-theme="rocket"] .duration-unit {
  color: #506685;
}

.timer-card[data-theme="rocket"] .duration-colon {
  color: #b9cce6;
}

.timer-card[data-theme="rocket"]:fullscreen {
  background: linear-gradient(145deg, #172f50, #0d203a 78%);
}

/* Die vier Mockup-Motive behalten echte Knöpfe und Eingaben, erhalten aber
   jeweils eine zur Illustration passende Bühne und gut lesbare Farben. */
.timer-card[data-theme="dino"] {
  --theme-ink: #2a422e;
  --theme-muted: #526a4c;
  --theme-primary: #3e854e;
  --theme-primary-hover: #307440;
  --theme-secondary: #fff3d8;
  --theme-secondary-hover: #fff9ea;
  --theme-secondary-border: #d6c397;
  --theme-active: #a45b15;
  --theme-active-hover: #8d4c12;
  --theme-active-ink: #fff;
  --theme-input: #fffdf3;
  --theme-background: radial-gradient(circle at 35% 16%, #fff8d5, transparent 48%), linear-gradient(150deg, #e3efc8, #f7efd6 75%);
}

.timer-card[data-theme="pirate"] {
  --theme-ink: #193b4d;
  --theme-muted: #456476;
  --theme-primary: #39844c;
  --theme-primary-hover: #2c7140;
  --theme-secondary: #f9e7b8;
  --theme-secondary-hover: #fff2d1;
  --theme-secondary-border: #d4ad68;
  --theme-active: #165c86;
  --theme-active-hover: #104e74;
  --theme-active-ink: #fff;
  --theme-input: #fff9e9;
  --theme-background: radial-gradient(circle at 31% 20%, #c6e9f0, transparent 50%), linear-gradient(160deg, #83c4da, #f3e1b6 82%);
}

.timer-card[data-theme="race"] {
  --theme-ink: #f7f9fc;
  --theme-muted: #c2d0df;
  --theme-primary: #25a948;
  --theme-primary-hover: #168d38;
  --theme-secondary: #304560;
  --theme-secondary-hover: #3d5674;
  --theme-secondary-border: #65809e;
  --theme-active: #0869c8;
  --theme-active-hover: #075ab0;
  --theme-active-ink: #fff;
  --theme-input: #f7faff;
  --theme-background: radial-gradient(circle at 35% 17%, #3d526a, transparent 49%), linear-gradient(150deg, #273849, #172331 80%);
}

.timer-card[data-theme="robot"] {
  --theme-ink: #173c56;
  --theme-muted: #557187;
  --theme-primary: #16a763;
  --theme-primary-hover: #108b54;
  --theme-secondary: #e4f7ff;
  --theme-secondary-hover: #f3fbff;
  --theme-secondary-border: #a9d2e5;
  --theme-active: #087f9e;
  --theme-active-hover: #096c87;
  --theme-active-ink: #fff;
  --theme-input: #ffffff;
  --theme-background: radial-gradient(circle at 32% 16%, #fff, transparent 46%), linear-gradient(150deg, #d4f2fa, #edf8ff 80%);
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) {
  color: var(--theme-ink);
  background: var(--theme-background);
  border-color: var(--theme-secondary-border);
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]):fullscreen {
  background: var(--theme-background);
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) .time-readout {
  color: var(--theme-ink);
  font-weight: 800;
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) :is(.timer-state, .control-group legend, .hint) {
  color: var(--theme-muted);
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) .button-primary {
  color: #fff;
  background: var(--theme-primary);
  border-color: var(--theme-primary);
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) .button-primary:hover:not(:disabled) {
  background: var(--theme-primary-hover);
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) :is(.button-secondary, .presets button, .toggle) {
  color: var(--theme-ink);
  background: var(--theme-secondary);
  border-color: var(--theme-secondary-border);
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) :is(.button-secondary, .presets button, .toggle):hover:not(:disabled) {
  background: var(--theme-secondary-hover);
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) :is(.presets button.is-active, .toggle.is-on) {
  color: var(--theme-active-ink);
  background: var(--theme-active);
  border-color: var(--theme-active);
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) :is(.presets button.is-active, .toggle.is-on):hover:not(:disabled) {
  background: var(--theme-active-hover);
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) .duration-strip {
  background: var(--theme-secondary);
  border-color: var(--theme-secondary-border);
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) .duration-segment {
  color: #17314a;
  background: var(--theme-input);
  border-color: var(--theme-secondary-border);
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) .duration-unit {
  color: #53667b;
}

.timer-card:is([data-theme="dino"], [data-theme="pirate"], [data-theme="race"], [data-theme="robot"]) .duration-colon {
  color: var(--theme-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.timer-card:fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vmin, 32px);
  border: 0;
  border-radius: 0;
  background: #f3f6fb;
}

.timer-card:fullscreen .controls-panel,
.timer-card:fullscreen .timer-state {
  display: none;
}

.timer-card:fullscreen .hourglass-panel {
  width: 100%;
  min-height: 0;
  cursor: pointer;
}

.timer-card:fullscreen .canvas-shell {
  width: min(100%, 520px, 54dvh);
}

.timer-card:fullscreen .time-readout {
  font-size: clamp(2.75rem, 7dvh, 4.5rem);
}

@keyframes flip-hourglass {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(90deg) scale(0.96); }
  100% { transform: rotate(180deg) scale(1); }
}

@keyframes rocket-takeoff {
  0%, 15% { transform: translateY(0) rotate(0deg); }
  22% { transform: translateY(2px) rotate(-1deg); }
  29% { transform: translateY(-3px) rotate(1deg); }
  36% { transform: translateY(-12px) rotate(-1deg); }
  100% { transform: translateY(calc(-100dvh - 460px)) rotate(-4deg); }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(720px, calc(100% - 28px));
    padding-top: 20px;
  }

  .timer-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
  }

  .canvas-shell {
    width: min(100%, 310px);
  }

  .controls-panel {
    width: min(100%, 590px);
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 12px, 440px);
    padding: 6px 0;
  }

  .timer-card {
    min-height: calc(100dvh - 12px);
    align-content: center;
    gap: 7px;
    padding: 10px;
    border-radius: 16px;
  }

  .canvas-shell {
    width: min(calc(100vw - 40px), 350px, calc((100svh - 355px) / 1.258));
  }

  .time-readout {
    margin-top: -5px;
    font-size: clamp(1.9rem, 7vw, 2.5rem);
  }

  .timer-state {
    margin-top: 2px;
    font-size: 0.78rem;
  }

  .transport {
    grid-template-columns: 1.1fr 0.8fr 0.95fr;
    gap: 4px;
  }

  .transport .button {
    min-height: 40px;
    padding: 0 3px;
    font-size: clamp(0.68rem, 2.7vw, 0.85rem);
    white-space: nowrap;
  }

  .control-group {
    margin-top: 8px;
  }

  .control-group legend {
    margin-bottom: 3px;
  }

  .duration-strip {
    padding: 3px;
  }

  .duration-segment {
    min-height: 44px;
    gap: 0;
    border-radius: 9px;
  }

  .duration-value {
    font-size: clamp(1.2rem, 5vw, 1.45rem);
  }

  .duration-unit {
    font-size: 0.62rem;
  }

  .duration-colon {
    padding-top: 6px;
    font-size: 1.3rem;
  }

  .presets {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin-top: 8px;
  }

  .presets button {
    min-width: 0;
    min-height: 38px;
    padding: 0 2px;
    font-size: clamp(0.64rem, 2.6vw, 0.78rem);
    white-space: nowrap;
  }

  .toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 8px;
  }

  .toggle {
    min-height: 38px;
    padding: 0 5px;
    font-size: 0.76rem;
  }

  .toggle-icon {
    margin-right: 2px;
  }

  .hint {
    display: none;
  }
}

@media (max-width: 920px) and (max-height: 560px) and (orientation: landscape) {
  .page-shell {
    width: calc(100% - 12px);
    padding: 6px 0;
  }

  .timer-card {
    min-height: calc(100dvh - 12px);
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
  }

  .canvas-shell {
    width: min(100%, calc((100svh - 72px) / 1.258));
  }

  .time-readout {
    margin-top: -5px;
    font-size: 1.8rem;
  }

  .timer-state {
    margin-top: 2px;
    font-size: 0.75rem;
  }

  .transport {
    grid-template-columns: 1.1fr 0.8fr 0.95fr;
    gap: 4px;
  }

  .transport .button {
    min-height: 40px;
    padding: 0 3px;
    font-size: clamp(0.68rem, 1.7vw, 0.85rem);
    white-space: nowrap;
  }

  .control-group {
    margin-top: 8px;
  }

  .control-group legend {
    margin-bottom: 3px;
  }

  .duration-strip {
    padding: 3px;
  }

  .duration-segment {
    min-height: 44px;
    gap: 0;
    border-radius: 9px;
  }

  .duration-value {
    font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  }

  .duration-unit {
    font-size: 0.62rem;
  }

  .duration-colon {
    padding-top: 6px;
    font-size: 1.3rem;
  }

  .presets {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin-top: 8px;
  }

  .presets button {
    min-width: 0;
    min-height: 38px;
    padding: 0 2px;
    font-size: clamp(0.64rem, 1.7vw, 0.78rem);
    white-space: nowrap;
  }

  .toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 8px;
  }

  .toggle {
    min-height: 38px;
    padding: 0 5px;
    font-size: 0.76rem;
  }

  .toggle-icon {
    margin-right: 2px;
  }

  .hint {
    display: none;
  }
}

@media (max-width: 560px), (max-width: 920px) and (max-height: 560px) and (orientation: landscape) {
  html {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body {
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .page-shell,
  .timer-card {
    height: 100%;
  }

  .timer-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
