@font-face {
  font-family: "MontserratLocal";
  src: url("../fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MontserratLocal";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #17181f;
  --bg-soft: #1f2026;
  --panel: #252730;
  --panel-strong: #2a2d37;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.65);
  --muted-soft: rgba(245, 247, 251, 0.4);
  --accent: #29a7f2;
  --accent-strong: #5fc9ff;
  --accent-shadow: rgba(41, 167, 242, 0.35);
  --success: #b1d2da;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-strong: 0 32px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.22);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #14151b 0%, #1a1c24 40%, #14151b 100%);
  color: var(--text);
  font-family: "MontserratLocal", "Avenir Next", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header,
.hero,
.content-section,
.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #71d0ff 20%, #29a7f2 65%, #1485ca 100%);
  box-shadow: 0 0 24px rgba(41, 167, 242, 0.45);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero {
  display: grid;
  gap: 36px;
  padding: 28px 0 56px;
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: start;
  order: 2;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions,
.action-row,
.action-column {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1f8ad2 100%);
  color: #06131c;
  font-weight: 700;
  box-shadow: 0 16px 40px var(--accent-shadow);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

.button-wide {
  min-width: 180px;
  justify-content: center;
}

.device-column {
  display: grid;
  order: 1;
}

.device-shell {
  position: relative;
  width: min(100%, 430px);
  margin-inline: auto;
  padding: 16px;
  border-radius: 42px;
  background: linear-gradient(180deg, #0c0d12 0%, #1a1c23 100%);
  box-shadow: var(--shadow-strong);
}

.device-shell::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 20%),
    #1f2026;
  pointer-events: none;
}

.device-app {
  --tool-accent: #ff9e1a;
  --tool-accent-dark: #d37c08;
  --tool-accent-strong: #ffb13f;
  --tool-accent-rgb: 255, 158, 26;
  --tool-accent-text: #ffab2f;
  --tool-tab-text: #f0a43a;
  position: relative;
  height: 740px;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.1)),
    url("../images/bg-clear.webp") top right / cover no-repeat,
    var(--bg-soft);
  padding: 22px 22px 18px;
}

.device-app.mode-water {
  --tool-accent: #29a7f2;
  --tool-accent-dark: #1f8ad2;
  --tool-accent-strong: #5fc9ff;
  --tool-accent-rgb: 41, 167, 242;
  --tool-accent-text: #3cbaf6;
  --tool-tab-text: #76d5ff;
}

.app-back-button {
  position: absolute;
  top: 14px;
  left: 10px;
  z-index: 5;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  background: url("../images/clear-back.png") center / 34px 34px no-repeat;
  cursor: pointer;
  opacity: 0.82;
}

.app-back-button:hover,
.app-back-button:focus-visible {
  opacity: 1;
}

.app-back-button:active {
  background-image: url("../images/clear-back-press.png");
}

.app-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  animation: fade-up 220ms ease;
}

.app-panel[hidden] {
  display: none !important;
}

.screen-header {
  width: 100%;
  padding-top: 10px;
  padding-left: 4px;
  flex: 0 0 auto;
}

.screen-header p {
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.05em;
  opacity: 0.74;
}

.mode-tabs {
  width: min(100%, 286px);
  margin-top: 18px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border-radius: 999px;
  background: #1b1d25;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mode-tab {
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.mode-tab.is-active {
  background: #31333d;
  color: var(--tool-tab-text);
}

.mode-tab-icon {
  width: auto;
  height: 16px;
  flex: 0 0 auto;
}

.mode-tab[data-mode="water"] .mode-tab-icon {
  height: 18px;
}

.mode-tab-icon-on {
  display: none;
}

.mode-tab.is-active .mode-tab-icon-on {
  display: block;
}

.mode-tab.is-active .mode-tab-icon-off {
  display: none;
}

.start-button {
  position: relative;
  width: min(70vw, 268px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(var(--tool-accent-rgb), 0.16), transparent 64%);
  cursor: pointer;
}

.start-button img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.22));
}

.pulse {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(var(--tool-accent-rgb), 0.24);
  animation: pulse 2.2s ease-out infinite;
}

.pulse-two {
  animation-delay: 1s;
}

.center-note {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
}

.small-note,
.process-hint,
#resultSummary,
#testHint,
.content-section p,
.faq-item p,
.tip-item p,
.info-card p {
  color: var(--muted);
}

.small-note {
  text-align: center;
  font-size: 0.92rem;
  max-width: 28ch;
}

.home-visual {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 0;
}

.home-bottom {
  width: 100%;
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 8px 0 12px;
}

.control-card {
  width: 100%;
  min-height: 76px;
  margin-top: 10px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: #2a2d36;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 14px 40px rgba(0, 0, 0, 0.12);
}

.card-label {
  min-width: 0;
  padding-left: 8px;
  padding-right: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.56);
  white-space: nowrap;
}

.duration-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  padding-left: 11px;
}

.duration-option {
  width: clamp(46px, 17%, 60px);
  min-width: 0;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.duration-option.is-selected {
  background: rgba(var(--tool-accent-rgb), 0.15);
  border-color: rgba(var(--tool-accent-rgb), 0.1);
  color: var(--tool-accent-text);
}

.device-app.mode-dust .duration-option.is-selected {
  background: rgba(var(--tool-accent-rgb), 0.15);
  border-color: rgba(var(--tool-accent-rgb), 0.1);
  color: #ff9d18;
}

.illustration {
  width: min(100%, 320px);
  object-fit: contain;
}

.instruction-graphic {
  width: min(100%, 230px);
}

.result-graphic {
  width: min(100%, 310px);
}

.process-copy,
.result-copy,
.test-copy {
  display: grid;
  gap: 6px;
  text-align: center;
  justify-items: center;
}

.status-kicker {
  color: var(--tool-accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.process-copy h2,
.result-copy h2,
.test-copy h2 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -0.04em;
}

.progress-value {
  font-size: clamp(3rem, 11vw, 4.1rem);
  font-weight: 700;
  line-height: 1;
}

.process-loader-shell {
  --loader-dot-size: 18px;
  --loader-gap: 18px;
  --loader-slot: calc(var(--loader-dot-size) + var(--loader-gap));
  width: min(100%, 248px);
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.process-loader {
  position: relative;
  width: calc(var(--loader-dot-size) * 4 + var(--loader-gap) * 3);
  height: var(--loader-dot-size);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loader-dot,
.liquid-dot {
  width: var(--loader-dot-size);
  height: var(--loader-dot-size);
  border-radius: 999px;
}

.loader-dot {
  background: rgba(84, 169, 232, 0.7);
}

.liquid-dot {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #55aae9 0%, #53afe8 42%, #4ee4d8 100%);
  box-shadow: 0 0 18px rgba(78, 228, 216, 0.18);
  will-change: transform;
}

.dust-loader-shell {
  --white: #ffffff;
  --cell-width: 44px;
  --cell-height: 96px;
  --top-size: 13px;
  --bottom-size: 24px;
  --bridge-width: 9px;
  --bridge-height: 22px;
  --duration: 2.4s;
  width: min(100%, 248px);
  min-height: 108px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dust-loader {
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, 1vw, 12px);
  background: transparent;
}

.dust-cell {
  position: relative;
  width: var(--cell-width);
  height: var(--cell-height);
}

.dot-top,
.dot-bottom,
.dot-drop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
}

.dot-top {
  top: 6px;
  width: var(--top-size);
  height: var(--top-size);
  border-radius: 50%;
  z-index: 3;
  animation: dust-dot-top-cycle var(--duration) ease-in-out infinite;
  animation-delay: calc(var(--i) * (var(--duration) / 12) * -1);
}

.dot-bottom {
  top: 30px;
  width: var(--bottom-size);
  height: var(--bottom-size);
  border-radius: 50%;
  z-index: 2;
}

.dot-drop {
  top: 16px;
  width: var(--bridge-width);
  height: var(--bridge-height);
  opacity: 0;
  z-index: 1;
  border-radius: 56% 56% 52% 52% / 60% 60% 40% 40%;
  transform-origin: 50% 50%;
  animation: dust-dot-drop-cycle var(--duration) ease-in-out infinite;
  animation-delay: calc(var(--i) * (var(--duration) / 12) * -1);
}

@keyframes dust-dot-top-cycle {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  25% {
    transform: translateX(-50%) translateY(29px) scale(1.06, 0.9);
  }
  50% {
    transform: translateX(-50%) translateY(58px) scale(1);
  }
  75% {
    transform: translateX(-50%) translateY(29px) scale(1.06, 0.9);
  }
}

@keyframes dust-dot-drop-cycle {
  0%,
  12% {
    opacity: 0;
    transform: translateX(-50%) translateY(0) scale(0.5, 0.32);
  }
  17% {
    opacity: 0.75;
    transform: translateX(-50%) translateY(8px) scale(0.8, 0.85);
  }
  23% {
    opacity: 0.95;
    transform: translateX(-50%) translateY(14px) scale(1, 1.06);
  }
  30% {
    opacity: 0.6;
    transform: translateX(-50%) translateY(20px) scale(0.82, 0.9);
  }
  36%,
  64% {
    opacity: 0;
    transform: translateX(-50%) translateY(23px) scale(0.5, 0.32);
  }
  70% {
    opacity: 0.75;
    transform: translateX(-50%) translateY(17px) scale(0.8, 0.85);
  }
  76% {
    opacity: 0.95;
    transform: translateX(-50%) translateY(11px) scale(1, 1.06);
  }
  82% {
    opacity: 0.6;
    transform: translateX(-50%) translateY(5px) scale(0.82, 0.9);
  }
  88%,
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0) scale(0.5, 0.32);
  }
}

.action-column {
  width: 100%;
  flex-direction: column;
}

.action-column .button,
.action-row .button {
  width: 100%;
}

.panel-media {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-media-process {
  padding: 8px 0 0;
}

.panel-media-result {
  padding: 12px 0 0;
}

.panel-media-test {
  padding: 0;
}

.panel-bottom {
  width: 100%;
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-bottom: 10px;
}

.panel-bottom-process {
  gap: 8px;
}

.panel-bottom-result {
  gap: 12px;
}

.panel-bottom-test {
  gap: 14px;
}

.test-top {
  width: 100%;
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  padding-top: 10px;
}

.wave-test {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
  width: min(100%, 220px);
  height: 128px;
  padding: 10px 0 4px;
}

.wave-test span {
  border-radius: 999px;
  background: linear-gradient(180deg, #83dbff 0%, #29a7f2 100%);
  animation: bars 1.1s ease-in-out infinite;
  transform-origin: bottom;
}

.wave-test span:nth-child(1) { animation-delay: 0s; }
.wave-test span:nth-child(2) { animation-delay: 0.08s; }
.wave-test span:nth-child(3) { animation-delay: 0.16s; }
.wave-test span:nth-child(4) { animation-delay: 0.24s; }
.wave-test span:nth-child(5) { animation-delay: 0.32s; }
.wave-test span:nth-child(6) { animation-delay: 0.4s; }
.wave-test span:nth-child(7) { animation-delay: 0.48s; }

.test-complete-visual {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 1;
}

.test-complete-visual img {
  position: absolute;
  inset: 0;
  margin: auto;
}

.test-complete-glow {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

.test-complete-base {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.test-complete-tick {
  width: 22%;
  height: auto;
  object-fit: contain;
}

.is-hidden {
  display: none !important;
}

#panel-process .process-hint,
#panel-test #testHint {
  max-width: 22ch;
  font-size: 0.96rem;
}

#panel-process .action-row,
#panel-test .action-column,
#panel-result .action-column {
  width: min(100%, 220px);
}

.device-app .button-primary {
  background: linear-gradient(135deg, var(--tool-accent) 0%, var(--tool-accent-dark) 100%);
  color: #10151a;
  box-shadow: 0 16px 40px rgba(var(--tool-accent-rgb), 0.26);
}

.content-section {
  display: grid;
  gap: 24px;
  padding: 48px 0;
}

.section-alt {
  padding: 52px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.02);
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 70ch;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.grid-three,
.grid-two,
.tips-list,
.faq-list {
  display: grid;
  gap: 16px;
}

.info-card,
.tip-item,
.faq-item {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(33, 35, 44, 0.9);
}

.info-card h3,
.tip-item h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  margin-bottom: 10px;
}

.site-footer {
  padding: 24px 0 52px;
  color: var(--muted-soft);
  font-size: 0.92rem;
  display: grid;
  gap: 14px;
}

.site-footer-copy {
  display: grid;
  gap: 8px;
}

.footer-meta {
  color: rgba(241, 245, 255, 0.56);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  border-bottom-color: rgba(var(--tool-accent-rgb), 0.72);
}

.legal-shell {
  width: min(calc(100% - 48px), 920px);
  margin: 0 auto;
}

.legal-main {
  padding: 28px 0 56px;
}

.legal-hero {
  display: grid;
  gap: 12px;
  padding: 18px 0 24px;
}

.legal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
}

.legal-updated {
  color: var(--muted-soft);
  font-size: 0.96rem;
}

.legal-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.legal-section {
  display: grid;
  gap: 8px;
}

.legal-section h2 {
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  line-height: 1.15;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--tool-accent-strong);
}

@keyframes pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.85);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bars {
  0%, 100% {
    height: 28%;
    opacity: 0.5;
  }
  50% {
    height: 100%;
    opacity: 1;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: start;
    padding-top: 40px;
  }

  .device-column {
    order: 1;
    width: 100%;
    position: static;
    justify-items: center;
  }

  .hero-copy {
    order: 2;
    width: min(100%, 820px);
    justify-items: center;
    text-align: center;
  }

  .lead {
    max-width: 72ch;
  }

  .device-shell {
    margin-inline: auto;
  }

  .grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tips-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .site-header {
    padding-top: 16px;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.88rem;
  }

  .device-app {
    height: 700px;
  }

  .app-panel {
    height: 100%;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .content-section,
  .site-footer,
  .legal-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .device-shell {
    padding: 10px;
    border-radius: 30px;
  }

  .device-shell::before {
    inset: 12px;
    border-radius: 24px;
  }

  .device-app {
    height: 670px;
    padding: 18px 16px 16px;
    border-radius: 24px;
  }

  .app-back-button {
    top: 10px;
    left: 6px;
    width: 56px;
    height: 56px;
    background-size: 30px 30px;
  }

  .screen-header p {
    font-size: 1.7rem;
  }

  .center-note {
    font-size: 1.08rem;
  }

  .mode-tabs {
    width: min(100%, 272px);
    margin-top: 14px;
  }

  .mode-tab {
    min-height: 40px;
    padding: 0 8px;
    gap: 5px;
    font-size: 0.74rem;
  }

  .mode-tab-icon {
    height: 14px;
  }

  .mode-tab[data-mode="water"] .mode-tab-icon {
    height: 16px;
  }

  .control-card {
    min-height: 72px;
    padding: 10px 12px 10px 14px;
    grid-template-columns: minmax(98px, auto) minmax(0, 1fr);
    gap: 2px;
  }

  .card-label {
    padding-left: 4px;
    font-size: 0.88rem;
  }

  .duration-group {
    gap: 4px;
    padding-left: 8px;
    width: 100%;
    min-width: 0;
  }

  .duration-option {
    width: clamp(42px, 18%, 54px);
    min-width: 0;
    min-height: 38px;
    padding: 0 6px;
    font-size: 0.86rem;
  }

  .instruction-graphic {
    width: min(100%, 200px);
  }

  .wave-test {
    width: min(100%, 200px);
    height: 110px;
  }

  .process-loader-shell {
    width: min(100%, 224px);
    min-height: 82px;
  }

  .process-loader-shell {
    --loader-dot-size: 16px;
    --loader-gap: 14px;
  }

  .dust-loader-shell {
    --cell-width: 38px;
    --cell-height: 84px;
    --top-size: 12px;
    --bottom-size: 22px;
    --bridge-width: 8px;
    --bridge-height: 20px;
    width: min(100%, 224px);
    min-height: 94px;
  }

  .test-complete-visual {
    width: min(100%, 220px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dot-top,
  .dot-drop {
    animation: none !important;
  }
}
