:root {
  color-scheme: light;
  --enamel-cobalt: #244aa5;
  --machine-ink: #121820;
  --brushed-steel: #d8e1e6;
  --baked-amber: #c87932;
  --meter-yellow: #f2c84b;
  --stop-red: #d94b3d;
  --surface-white: #f5f7f8;
  --steel-dark: #73818a;
  --line-dark: rgba(18, 24, 32, 0.24);
  --line-light: rgba(216, 225, 230, 0.28);
  --focus: #f2c84b;
  --font-ui: Bahnschrift, "Noto Sans TC", "Segoe UI", system-ui, sans-serif;
  --font-data: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --z-skip: 20;
  --z-feedback: 30;
  --z-dialog: 40;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
}

html {
  background: var(--enamel-cobalt);
}

body {
  overflow: hidden;
  color: var(--machine-ink);
  background: var(--enamel-cobalt);
  font-family: var(--font-ui);
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

button,
select,
a {
  font: inherit;
  touch-action: manipulation;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: var(--z-skip);
  padding: 10px 14px;
  color: var(--machine-ink);
  background: var(--meter-yellow);
  border-radius: 6px;
  font-weight: 800;
  transform: translate(-50%, -160%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.app-shell {
  display: grid;
  grid-template-rows: minmax(58px, auto) minmax(0, 1fr) 28px;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--enamel-cobalt);
}

.utility-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding:
    max(7px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    7px
    max(14px, env(safe-area-inset-left));
  background: var(--brushed-steel);
  border-bottom: 2px solid var(--machine-ink);
}

.home-link,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--machine-ink);
  background: transparent;
  border: 1px solid var(--machine-ink);
  border-radius: 7px;
  text-decoration: none;
  transition:
    color 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.home-link {
  justify-self: start;
  gap: 8px;
  width: fit-content;
  padding: 0 13px;
  font-weight: 750;
}

.home-link:hover,
.icon-button:hover {
  color: var(--brushed-steel);
  background: var(--machine-ink);
}

.home-link:active,
.icon-button:active {
  transform: translateY(2px);
}

.product-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
}

.product-mark {
  font-size: 27px;
  line-height: 1;
}

.product-title h1 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.product-title p {
  margin: 3px 0 0;
  color: #39434a;
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.utility-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.save-state {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #313a40;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-lamp,
.next-lamp,
.cps-lamp {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: #2d7d62;
  border: 1px solid var(--machine-ink);
  border-radius: 50%;
}

.save-state[data-state="error"] .status-lamp {
  background: var(--stop-red);
}

.icon-button {
  padding: 0;
  cursor: pointer;
}

.icon-button span {
  font-size: 1.15rem;
}

.game-board {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.batch-deck {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: var(--brushed-steel);
  background: var(--enamel-cobalt);
}

.metrics-rail {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(110px, 0.8fr));
  border-bottom: 1px solid var(--line-light);
}

.metric {
  display: flex;
  min-width: 0;
  padding: 15px clamp(14px, 2.3vw, 34px);
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border-right: 1px solid var(--line-light);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  color: rgba(244, 248, 250, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
}

.metric strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-data);
  font-size: clamp(1.16rem, 2.5vw, 1.65rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-primary strong {
  color: var(--meter-yellow);
  font-size: clamp(1.65rem, 4vw, 2.55rem);
}

.press-zone {
  position: relative;
  display: flex;
  min-height: 0;
  padding: clamp(14px, 2.4vh, 26px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: clamp(9px, 1.5vh, 16px);
}

.batch-ring {
  --progress: 0deg;
  position: relative;
  display: grid;
  width: clamp(210px, 36vmin, 330px);
  max-width: 72%;
  aspect-ratio: 1;
  place-items: center;
  padding: 13px;
  border: 1px solid rgba(216, 225, 230, 0.46);
  border-radius: 50%;
  background:
    conic-gradient(
      from -90deg,
      var(--meter-yellow) 0deg var(--progress),
      rgba(216, 225, 230, 0.16) var(--progress) 360deg
    );
  box-shadow:
    inset 0 0 0 6px var(--enamel-cobalt),
    inset 0 0 0 8px rgba(216, 225, 230, 0.42);
  transition: background 220ms var(--ease-out);
}

.batch-ring::before {
  position: absolute;
  inset: 20px;
  z-index: 0;
  content: "";
  background: var(--machine-ink);
  border: 2px solid rgba(216, 225, 230, 0.62);
  border-radius: 50%;
  box-shadow: inset 0 7px 10px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.cookie-button {
  position: relative;
  z-index: 1;
  display: grid;
  width: calc(100% - 43px);
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  overflow: hidden;
  background: var(--surface-white);
  border: 0;
  border-radius: 23%;
  cursor: pointer;
  box-shadow: 0 6px 0 #090d12;
  transform: translateY(-3px);
  transition:
    filter 160ms var(--ease-out),
    transform 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.cookie-button:hover {
  filter: saturate(1.08) contrast(1.03);
  transform: translateY(-5px);
}

.cookie-button:active,
.cookie-button.is-pressed {
  box-shadow: 0 1px 0 #090d12;
  transform: translateY(3px) scale(0.975);
}

.cookie-button img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  object-fit: cover;
}

.press-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: rgba(244, 248, 250, 0.84);
  font-size: 0.78rem;
  font-weight: 700;
}

.hint-key {
  padding: 3px 7px;
  color: var(--machine-ink);
  background: var(--brushed-steel);
  border: 1px solid var(--machine-ink);
  border-radius: 4px;
  font-family: var(--font-data);
  font-size: 0.64rem;
  line-height: 1;
}

.next-module {
  display: grid;
  width: min(430px, 88%);
  min-height: 52px;
  padding: 9px 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  background: var(--machine-ink);
  border: 1px solid rgba(216, 225, 230, 0.42);
  border-radius: 8px;
}

.next-lamp {
  width: 11px;
  height: 11px;
  background: var(--steel-dark);
  border-color: var(--brushed-steel);
}

.next-module.is-ready .next-lamp {
  background: var(--meter-yellow);
}

.next-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.next-copy span {
  color: rgba(216, 225, 230, 0.72);
  font-size: 0.65rem;
  font-weight: 700;
}

.next-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-progress {
  color: var(--meter-yellow);
  font-family: var(--font-data);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.production-rack {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 32px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--brushed-steel);
  border-left: 1px solid var(--machine-ink);
}

.rack-header {
  display: flex;
  min-height: 76px;
  padding: 13px clamp(16px, 2.4vw, 28px);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface-white);
  border-bottom: 2px solid var(--machine-ink);
}

.rack-header h2 {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.rack-header p {
  margin: 4px 0 0;
  color: #4a565d;
  font-size: 0.75rem;
  font-weight: 650;
}

.rack-rate {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 7px;
  color: var(--machine-ink);
  text-align: right;
}

.rack-rate strong {
  font-family: var(--font-data);
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
}

.rack-rate > span:last-child {
  grid-column: 1 / -1;
  color: #4a565d;
  font-size: 0.62rem;
  font-weight: 700;
}

.cps-lamp {
  background: var(--baked-amber);
}

.cps-lamp.is-ticking {
  background: var(--meter-yellow);
  transform: scale(1.18);
}

.shop-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--steel-dark) transparent;
  scrollbar-width: thin;
}

.upgrade-row {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 78px;
  padding: 9px clamp(14px, 2vw, 24px);
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--machine-ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  cursor: pointer;
  transition:
    background-color 170ms var(--ease-out),
    transform 170ms var(--ease-out);
}

.upgrade-row:hover {
  background: rgba(255, 255, 255, 0.48);
}

.upgrade-row[aria-disabled="true"] {
  cursor: not-allowed;
}

.upgrade-row.is-affordable {
  background: var(--meter-yellow);
}

.upgrade-row.is-affordable:hover {
  background: #f6d46d;
}

.upgrade-row.is-purchased {
  background: #b9d9c9;
}

.upgrade-row.is-denied {
  background: #e8b8b2;
  transform: translateX(-3px);
}

.upgrade-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--machine-ink);
  border-radius: 8px;
  font-size: 1.45rem;
}

.upgrade-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.upgrade-title-line,
.upgrade-output {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.upgrade-name {
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owned-count {
  color: #465159;
  font-family: var(--font-data);
  font-size: 0.67rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.upgrade-output {
  color: #455159;
  font-size: 0.7rem;
  font-weight: 650;
}

.upgrade-output strong {
  color: var(--machine-ink);
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

.upgrade-buy {
  display: flex;
  min-width: 84px;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
}

.availability {
  color: #4c585f;
  font-size: 0.62rem;
  font-weight: 800;
}

.is-affordable .availability {
  color: #342707;
}

.upgrade-price {
  font-family: var(--font-data);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.rack-footer {
  display: flex;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #3f4a50;
  background: var(--surface-white);
  border-top: 1px solid var(--machine-ink);
  font-size: 0.66rem;
  font-weight: 700;
}

#owned-total {
  color: var(--machine-ink);
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

.machine-footer {
  display: flex;
  padding:
    0 max(12px, env(safe-area-inset-right))
    env(safe-area-inset-bottom)
    max(12px, env(safe-area-inset-left));
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(216, 225, 230, 0.74);
  background: var(--machine-ink);
  font-family: var(--font-data);
  font-size: 0.62rem;
}

.feedback-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-feedback);
  overflow: hidden;
  pointer-events: none;
}

.click-value {
  position: fixed;
  left: var(--x);
  top: var(--y);
  color: var(--meter-yellow);
  font-family: var(--font-data);
  font-size: 1.18rem;
  font-weight: 900;
  text-shadow: 0 2px 0 var(--machine-ink);
  transform: translate(-50%, -50%);
  animation: stamp-rise 680ms var(--ease-out) forwards;
}

.crumb {
  position: fixed;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  background: var(--baked-amber);
  border-radius: 50%;
  animation: crumb-travel 520ms var(--ease-out) forwards;
}

@keyframes stamp-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.82);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -180%) scale(1);
  }
}

@keyframes crumb-travel {
  from {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.45);
  }
}

.machine-dialog {
  width: min(440px, calc(100vw - 28px));
  max-height: min(620px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  color: var(--machine-ink);
  background: var(--surface-white);
  border: 2px solid var(--machine-ink);
  border-radius: 12px;
  box-shadow: 7px 7px 0 rgba(18, 24, 32, 0.35);
}

.machine-dialog::backdrop {
  background: rgba(18, 24, 32, 0.72);
}

.machine-dialog form {
  display: grid;
  gap: 0;
}

.dialog-header {
  display: flex;
  padding: 20px 20px 17px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: var(--brushed-steel);
  border-bottom: 2px solid var(--machine-ink);
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.dialog-header p {
  max-width: 55ch;
  margin: 6px 0 0;
  color: #465159;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
}

.dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 auto;
  place-items: center;
  color: var(--machine-ink);
  background: transparent;
  border: 1px solid var(--machine-ink);
  border-radius: 7px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--brushed-steel);
  background: var(--machine-ink);
}

.dialog-body {
  display: grid;
  padding: 20px;
  gap: 18px;
}

.dialog-field {
  display: grid;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
}

.dialog-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--machine-ink);
  background: #fff;
  border: 1px solid var(--machine-ink);
  border-radius: 7px;
  font-size: 1rem;
}

.danger-button,
.secondary-button {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--machine-ink);
  border-radius: 7px;
  cursor: pointer;
  font-weight: 850;
  transition:
    background-color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.danger-button {
  color: #fff;
  background: var(--stop-red);
}

.danger-button:hover {
  background: #b9382f;
}

.secondary-button {
  color: var(--machine-ink);
  background: var(--brushed-steel);
}

.secondary-button:hover {
  background: #c4cfd5;
}

.danger-button:active,
.secondary-button:active {
  transform: translateY(2px);
}

.dialog-footer {
  display: flex;
  padding: 10px 20px;
  align-items: center;
  justify-content: space-between;
  color: #4b565d;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-data);
  font-size: 0.72rem;
}

.dialog-actions {
  display: grid;
  padding: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[dir="rtl"] .product-title,
html[dir="rtl"] .upgrade-row,
html[dir="rtl"] .rack-header {
  text-align: right;
}

@media (max-width: 920px) {
  .game-board {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  }

  .metric {
    padding-inline: 14px;
  }

  .metric-total {
    display: none;
  }

  .metrics-rail {
    grid-template-columns: 1.35fr 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    grid-template-rows: minmax(54px, auto) minmax(0, 1fr) 26px;
  }

  .utility-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 54px;
    padding-block: max(5px, env(safe-area-inset-top)) 5px;
  }

  .home-label,
  .save-state {
    display: none;
  }

  .home-link {
    width: 44px;
    padding: 0;
  }

  .product-title {
    justify-self: center;
  }

  .product-title p {
    display: none;
  }

  .game-board {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(310px, 44%) minmax(0, 1fr);
  }

  .batch-deck {
    border-bottom: 2px solid var(--machine-ink);
  }

  .metrics-rail {
    min-height: 64px;
  }

  .metric {
    padding: 8px 14px;
  }

  .metric-primary strong {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .press-zone {
    display: grid;
    padding: 9px 12px 11px;
    grid-template-columns: minmax(0, 1fr) minmax(134px, 42%);
    grid-template-rows: 1fr auto;
    gap: 8px 12px;
  }

  .batch-ring {
    width: min(100%, 210px);
    max-width: none;
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .press-hint {
    align-self: end;
  }

  .hint-key {
    display: none;
  }

  .next-module {
    width: 100%;
    align-self: start;
  }

  .production-rack {
    border-left: 0;
  }

  .rack-header {
    min-height: 62px;
    padding: 9px 14px;
  }

  .rack-header p {
    display: none;
  }

  .upgrade-row {
    min-height: 67px;
    padding: 7px 12px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .upgrade-icon {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .rack-footer {
    min-height: 28px;
  }

  .machine-footer {
    font-size: 0.57rem;
  }
}

@media (max-width: 430px) {
  .product-mark {
    display: none;
  }

  .product-title h1 {
    font-size: 0.98rem;
  }

  .game-board {
    grid-template-rows: minmax(300px, 42%) minmax(0, 1fr);
  }

  .press-zone {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 46%);
  }

  .next-module {
    padding-inline: 9px;
    gap: 8px;
  }

  .next-progress {
    display: none;
  }

  .upgrade-buy {
    min-width: 72px;
  }

  .upgrade-output {
    font-size: 0.66rem;
  }

  .availability {
    display: none;
  }
}

@media (max-height: 520px) and (min-width: 600px) {
  .app-shell {
    grid-template-rows: 50px minmax(0, 1fr) 24px;
  }

  .utility-bar {
    min-height: 50px;
    padding-block: 3px;
  }

  .save-state {
    display: none;
  }

  .game-board {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .metrics-rail {
    min-height: 55px;
  }

  .metric {
    padding: 7px 12px;
  }

  .metric-total {
    display: none;
  }

  .metrics-rail {
    grid-template-columns: 1.25fr 1fr;
  }

  .metric-primary strong {
    font-size: 1.5rem;
  }

  .metric strong {
    font-size: 1.05rem;
  }

  .press-zone {
    display: flex;
    padding: 7px;
    flex-direction: column;
    gap: 6px;
  }

  .batch-ring {
    width: min(44vh, 176px);
    max-width: none;
    padding: 9px;
  }

  .batch-ring::before {
    inset: 14px;
  }

  .cookie-button {
    width: calc(100% - 31px);
    box-shadow: 0 4px 0 #090d12;
  }

  .press-hint {
    display: none;
  }

  .next-module {
    width: min(400px, 88%);
    min-height: 40px;
    padding-block: 5px;
  }

  .rack-header {
    min-height: 58px;
    padding: 7px 13px;
  }

  .rack-header p,
  .rack-rate > span:last-child {
    display: none;
  }

  .production-rack {
    grid-template-rows: auto minmax(0, 1fr) 25px;
  }

  .upgrade-row {
    min-height: 58px;
    padding-block: 5px;
  }

  .upgrade-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .rack-footer {
    font-size: 0.58rem;
  }
}

@media (pointer: coarse) {
  .home-link,
  .icon-button,
  .dialog-close {
    min-width: 48px;
    min-height: 48px;
  }

  .upgrade-row {
    min-height: 68px;
  }
}

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

  .crumb {
    display: none;
  }

  .cookie-button:hover,
  .cookie-button:active,
  .cookie-button.is-pressed {
    transform: none;
  }
}
