:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #082f3d;
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
}

button,
select {
  font: inherit;
}

button {
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.translator {
  --equator-height: 4px;
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr var(--equator-height) 1fr;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 420px;
  isolation: isolate;
  background: #f4f0e8;
  transform: translateX(0);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.side {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  transition: filter 180ms ease, opacity 180ms ease;
}

.side::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.7;
}

.side--top {
  color: #f8fbfc;
  background:
    radial-gradient(circle at 82% 20%, rgb(41 148 158 / 35%), transparent 38%),
    linear-gradient(145deg, #0c4657, #062d3b 72%);
}

.side--top::before {
  background-image: linear-gradient(120deg, transparent 50%, rgb(255 255 255 / 3%) 50%);
  background-size: 24px 24px;
}

.side--bottom {
  color: #0b3b48;
  background:
    radial-gradient(circle at 16% 82%, rgb(234 142 97 / 25%), transparent 40%),
    linear-gradient(145deg, #fbfaf6, #eee6d9);
}

.side--bottom::before {
  background-image: linear-gradient(120deg, transparent 50%, rgb(8 47 61 / 2.5%) 50%);
  background-size: 24px 24px;
}

.side__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3.3dvh, 32px);
  width: min(100%, 560px);
  padding: clamp(18px, 3dvh, 34px) 24px;
}

.side--top .side__content {
  transform: rotate(180deg);
}

.language-picker {
  position: relative;
  display: inline-grid;
  align-items: center;
  min-width: min(72vw, 310px);
}

.language-picker select {
  width: 100%;
  height: clamp(46px, 6.4dvh, 58px);
  padding: 0 50px 0 22px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  outline: none;
  color: inherit;
  background: rgb(255 255 255 / 10%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
  font-size: clamp(17px, 2.3dvh, 21px);
  font-weight: 650;
  text-align: center;
  text-align-last: center;
  appearance: none;
  cursor: pointer;
  transition: opacity 180ms ease, border-color 180ms ease, background 180ms ease;
}

.side--bottom .language-picker select {
  border-color: rgb(8 47 61 / 12%);
  background: rgb(255 255 255 / 62%);
  box-shadow: 0 7px 24px rgb(43 52 48 / 7%), inset 0 1px 0 rgb(255 255 255 / 80%);
}

.language-picker svg {
  position: absolute;
  right: 18px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  pointer-events: none;
  opacity: 0.72;
}

.language-picker select:focus-visible {
  border-color: currentColor;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 18%);
}

.side--bottom .language-picker select:focus-visible {
  box-shadow: 0 0 0 4px rgb(9 68 83 / 12%);
}

.record-button {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(112px, 18dvh, 158px);
  height: clamp(112px, 18dvh, 158px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #0d4656;
  background: #fff;
  box-shadow:
    0 20px 45px rgb(0 0 0 / 20%),
    inset 0 0 0 1px rgb(255 255 255 / 70%);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 180ms ease, opacity 180ms ease, background 180ms ease;
}

.side--bottom .record-button {
  color: #fff;
  background: #0b5261;
  box-shadow: 0 20px 45px rgb(8 47 61 / 24%);
}

.record-button::before {
  position: absolute;
  inset: -10px;
  border: 1px solid currentColor;
  border-radius: inherit;
  content: "";
  opacity: 0.11;
  transition: inset 180ms ease, opacity 180ms ease;
}

.record-button:active:not(:disabled) {
  transform: scale(0.96);
}

.record-button:focus-visible {
  outline: 4px solid rgb(255 255 255 / 40%);
  outline-offset: 5px;
}

.side--bottom .record-button:focus-visible {
  outline-color: rgb(9 68 83 / 24%);
}

.button-face {
  position: absolute;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 160ms ease, transform 160ms ease;
}

.button-face svg {
  width: clamp(44px, 7dvh, 61px);
  height: clamp(44px, 7dvh, 61px);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.button-face--mic {
  opacity: 1;
  transform: scale(1);
}

.countdown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(32px, 6dvh, 50px);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 160ms ease, transform 160ms ease;
}

.stop-square {
  width: clamp(26px, 4.5dvh, 39px);
  height: clamp(26px, 4.5dvh, 39px);
  border-radius: 7px;
  background: currentColor;
}

.recording-waves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 18px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.recording-waves i {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 99px;
  background: currentColor;
  animation: wave 720ms ease-in-out infinite alternate;
}

.recording-waves i:nth-child(2) { animation-delay: -520ms; }
.recording-waves i:nth-child(3) { animation-delay: -320ms; }
.recording-waves i:nth-child(4) { animation-delay: -620ms; }
.recording-waves i:nth-child(5) { animation-delay: -220ms; }

.side.is-recording .record-button {
  color: #fff;
  background: #d8584f;
  box-shadow: 0 20px 46px rgb(216 88 79 / 38%);
}

.side.is-recording .record-button::before {
  inset: -17px;
  opacity: 0.28;
  animation: record-ring 1.4s ease-out infinite;
}

.side.is-recording .button-face--mic,
.side.is-recording .button-face--stop {
  opacity: 0;
  transform: scale(0.74);
}

.side.is-recording .countdown {
  opacity: 1;
  transform: scale(1);
}

.side.is-recording .recording-waves {
  opacity: 0.78;
}

.side.is-speaking .button-face--mic {
  opacity: 0;
  transform: scale(0.75);
}

.side.is-speaking .button-face--speaking {
  opacity: 1;
  transform: scale(1);
}

.side.is-speaking .record-button::before {
  animation: speak-ring 1.2s ease-out infinite;
}

.equator {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  background: #0a3644;
}

.equator__line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #d87459, #f2c57a 48%, #54afb0);
}

.equator__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 30px;
  border: 2px solid rgb(255 255 255 / 72%);
  border-radius: 999px;
  color: #f7f7f3;
  background: #0a3c4a;
  box-shadow: 0 3px 12px rgb(0 0 0 / 20%);
}

.equator__idle {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.equator__loader {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid rgb(255 255 255 / 25%);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: spin 650ms linear infinite;
}

.translator[data-state="requesting"] .equator__idle,
.translator[data-state="processing"] .equator__idle {
  opacity: 0;
}

.translator[data-state="requesting"] .equator__loader,
.translator[data-state="processing"] .equator__loader {
  opacity: 1;
}

.translator[data-state="requesting"] .side,
.translator[data-state="processing"] .side,
.translator[data-state="playing"] .side:not(.is-speaking) {
  filter: saturate(0.72);
  opacity: 0.55;
}

.translator[data-state="recording"] .side:not(.is-recording) {
  filter: saturate(0.72);
  opacity: 0.52;
}

.record-button:disabled,
.language-picker select:disabled {
  cursor: default;
}

.record-button:disabled {
  opacity: 0.58;
  box-shadow: none;
}

.language-picker select:disabled {
  opacity: 0.62;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(50% + 24px);
  max-width: min(86vw, 440px);
  padding: 12px 17px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 14px;
  color: #fff;
  background: rgb(104 34 32 / 94%);
  box-shadow: 0 12px 32px rgb(0 0 0 / 24%);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

body[data-mode="camera"] .translator {
  transform: translateX(-100%);
}

.camera-mode {
  position: fixed;
  z-index: 2;
  inset: 0;
  min-height: 420px;
  overflow: hidden;
  color: #fff;
  background: #05090b;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

body[data-mode="camera"] .camera-mode {
  transform: translateX(0);
}

.camera-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  outline: none;
  background: #071014;
  cursor: crosshair;
}

.camera-preview video,
.camera-preview canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-preview video {
  transition: filter 180ms ease;
}

.camera-mode[data-color="gray"] .camera-preview video {
  filter: grayscale(1) contrast(1.08);
}

.camera-mode[data-color="bw"] .camera-preview video {
  filter: grayscale(1) contrast(1.7);
}

.camera-preview canvas {
  display: none;
}

.camera-mode[data-state="frozen"] .camera-preview video,
.camera-mode[data-state="processing"] .camera-preview video,
.camera-mode[data-state="playing"] .camera-preview video {
  display: none;
}

.camera-mode[data-state="frozen"] .camera-preview canvas,
.camera-mode[data-state="processing"] .camera-preview canvas,
.camera-mode[data-state="playing"] .camera-preview canvas {
  display: block;
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  color: rgb(255 255 255 / 55%);
  background:
    radial-gradient(circle at 50% 38%, rgb(32 110 124 / 42%), transparent 38%),
    linear-gradient(145deg, #0b252c, #04090b);
  transition: opacity 180ms ease;
}

.camera-placeholder svg {
  width: 78px;
  height: 78px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.camera-placeholder__loader {
  width: 28px;
  height: 28px;
  border: 3px solid rgb(255 255 255 / 18%);
  border-top-color: rgb(255 255 255 / 78%);
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.8s linear infinite;
}

.camera-mode[data-state="starting"] .camera-placeholder__loader {
  opacity: 1;
}

.camera-mode[data-state="live"] .camera-placeholder,
.camera-mode[data-state="frozen"] .camera-placeholder,
.camera-mode[data-state="processing"] .camera-placeholder,
.camera-mode[data-state="playing"] .camera-placeholder {
  opacity: 0;
  pointer-events: none;
}

.camera-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / 46%), transparent 23%, transparent 65%, rgb(0 0 0 / 66%));
}

.camera-toolbar {
  position: absolute;
  z-index: 4;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.camera-small-button,
.camera-language-picker,
.camera-capture-setting,
.camera-action,
.camera-shutter {
  border: 1px solid rgb(255 255 255 / 24%);
  color: #fff;
  background: rgb(6 20 25 / 62%);
  box-shadow: 0 10px 30px rgb(0 0 0 / 24%), inset 0 1px 0 rgb(255 255 255 / 14%);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.camera-small-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.84);
  transition: opacity 180ms ease, transform 180ms ease;
}

.camera-small-button svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.camera-mode[data-state="frozen"] .camera-retake,
.camera-mode[data-state="processing"] .camera-retake,
.camera-mode[data-state="playing"] .camera-retake {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.camera-mode[data-state="processing"] .camera-retake,
.camera-mode[data-state="playing"] .camera-retake {
  pointer-events: none;
  opacity: 0.55;
}

.camera-language-picker {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(92px, auto) 20px;
  align-items: center;
  min-width: 172px;
  height: 48px;
  padding: 0 9px 0 13px;
  border-radius: 999px;
  pointer-events: auto;
}

.camera-language-picker svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.camera-language-picker select {
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0 5px;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font-size: 16px;
  font-weight: 680;
  text-align: center;
  text-align-last: center;
  appearance: none;
  cursor: pointer;
}

.camera-language-picker__chevron {
  opacity: 0.72;
}

.camera-language-picker:focus-within {
  box-shadow: 0 0 0 3px rgb(255 255 255 / 22%), 0 10px 30px rgb(0 0 0 / 24%);
}

.camera-language-picker select:disabled {
  opacity: 0.55;
}

.camera-capture-settings {
  position: absolute;
  z-index: 4;
  top: max(76px, calc(env(safe-area-inset-top) + 60px));
  right: 16px;
  left: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.camera-capture-setting {
  position: relative;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) 18px;
  align-items: center;
  width: min(44vw, 172px);
  height: 43px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  pointer-events: auto;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.camera-capture-setting--color {
  width: min(38vw, 146px);
}

.camera-capture-setting > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.camera-capture-setting select {
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 3px;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font-size: clamp(13px, 3.8vw, 15px);
  font-weight: 680;
  text-align: center;
  text-align-last: center;
  appearance: none;
  cursor: pointer;
}

.camera-capture-setting__chevron {
  opacity: 0.72;
}

.camera-capture-setting:focus-within {
  box-shadow: 0 0 0 3px rgb(255 255 255 / 22%), 0 10px 30px rgb(0 0 0 / 24%);
}

.camera-capture-setting:has(select:disabled) {
  opacity: 0.62;
}

.camera-capture-setting select:disabled {
  cursor: default;
}

.camera-color-swatch {
  width: 19px;
  height: 19px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: conic-gradient(#f05b45, #f1cc4b, #51ba76, #42a5ce, #8665c7, #f05b45);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%);
}

.camera-mode[data-color="gray"] .camera-color-swatch {
  background: linear-gradient(135deg, #fff, #777 55%, #171717);
}

.camera-mode[data-color="bw"] .camera-color-swatch {
  background: linear-gradient(90deg, #fff 0 49%, #090909 51% 100%);
}

.camera-shutter {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: max(58px, calc(env(safe-area-inset-bottom) + 48px));
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.8);
  transition: opacity 180ms ease, transform 180ms ease;
}

.camera-shutter span {
  display: block;
  width: 62px;
  height: 62px;
  border: 2px solid rgb(5 35 43 / 20%);
  border-radius: 50%;
  background: #fff;
}

.camera-shutter:active {
  transform: translateX(-50%) scale(0.94) !important;
}

.camera-mode[data-state="live"] .camera-shutter {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.camera-actions {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: max(59px, calc(env(safe-area-inset-bottom) + 49px));
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 6vw, 30px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.camera-action {
  display: grid;
  place-items: center;
  width: clamp(68px, 20vw, 78px);
  height: clamp(68px, 20vw, 78px);
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 150ms ease, opacity 180ms ease, background 180ms ease;
}

.camera-action svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.camera-action:active {
  transform: scale(0.93);
}

.camera-mode[data-state="frozen"] .camera-actions,
.camera-mode[data-state="playing"] .camera-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.camera-mode[data-state="playing"] .camera-actions {
  pointer-events: none;
}

.camera-mode[data-state="playing"] .camera-action {
  opacity: 0.48;
}

.camera-mode[data-state="playing"] .camera-action.is-active {
  opacity: 1;
  background: rgb(10 103 119 / 86%);
  animation: camera-audio-pulse 1.15s ease-in-out infinite alternate;
}

.camera-processing {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(2 8 10 / 28%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.camera-processing span {
  width: 54px;
  height: 54px;
  border: 4px solid rgb(255 255 255 / 22%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.camera-mode[data-state="processing"] .camera-processing {
  opacity: 1;
}

.mode-switcher {
  position: fixed;
  z-index: 30;
  bottom: max(13px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 999px;
  background: rgb(2 15 19 / 34%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.mode-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 42%);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.mode-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

.translation-dialog {
  width: min(90vw, 620px);
  max-height: min(78dvh, 720px);
  padding: 0;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 24px;
  color: #102f37;
  background: #f8f6f0;
  box-shadow: 0 30px 90px rgb(0 0 0 / 52%);
}

.translation-dialog::backdrop {
  background: rgb(0 0 0 / 62%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.translation-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 17px 8px 22px;
}

.translation-dialog__header > svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #0c6575;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.translation-dialog__header button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #173f48;
  background: rgb(9 82 97 / 9%);
  cursor: pointer;
}

.translation-dialog__header button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.translation-dialog__text {
  max-height: calc(min(78dvh, 720px) - 68px);
  padding: 8px 24px 28px;
  overflow: auto;
  font-size: clamp(18px, 4.7vw, 25px);
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@keyframes camera-audio-pulse {
  to { transform: scale(1.08); box-shadow: 0 0 0 9px rgb(37 184 201 / 15%), 0 10px 30px rgb(0 0 0 / 24%); }
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes wave {
  from { height: 5px; }
  to { height: 17px; }
}

@keyframes record-ring {
  0% { transform: scale(0.94); opacity: 0.34; }
  100% { transform: scale(1.12); opacity: 0; }
}

@keyframes speak-ring {
  0% { transform: scale(0.95); opacity: 0.26; }
  100% { transform: scale(1.17); opacity: 0; }
}

@media (max-height: 560px) {
  .side__content {
    grid-template-columns: minmax(150px, 250px) auto;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-block: 10px;
  }

  .language-picker {
    min-width: min(45vw, 250px);
  }

  .record-button {
    width: clamp(84px, 21dvh, 116px);
    height: clamp(84px, 21dvh, 116px);
  }

  .recording-waves {
    display: none;
  }
}

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