/*
 * Fuel Price app: the how-to animation in the iPhone Home Screen steps (index.php, install state).
 * Uses the page's color tokens (--blue, --ink, --card, ...) from index.php.
 * The drawn iPhone screen is laid out in iOS points (393 x 852) and scaled by --hw-s.
 */

/* ---- Show / hide control ------------------------------------------------- */

.howto { margin: 0 0 12px; }

.howto > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 2px;
  color: var(--link);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.howto > summary::-webkit-details-marker { display: none; }

.howto > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.howto[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }

.howto > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.howto[open] .howto-show,
.howto:not([open]) .howto-hide { display: none; }

/* ---- Stage: phone and caption -------------------------------------------- */

.hw {
  --hw-s: .42;
  --hw-w: calc(393px * var(--hw-s));
  --hw-h: calc(852px * var(--hw-s));

  /* iOS system colors, light */
  --hw-ink: #000000;
  --hw-muted: #8a8a8e;
  --hw-sep: rgba(60, 60, 67, .18);
  --hw-field: rgba(118, 118, 128, .14);
  --hw-glass: rgba(255, 255, 255, .95);
  --hw-glass-line: rgba(0, 0, 0, .08);
  --hw-sheet: #ffffff;
  --hw-group: #ededf0;
  --hw-grouped-bg: #f2f2f7;
  --hw-cell: #ffffff;
  --hw-kb: #d1d4da;
  --hw-key: #ffffff;
  --hw-key-dark: #abb0bb;
  --hw-ios-blue: #3478f6;
  --hw-ios-green: #34c759;
  --hw-dialog: rgba(240, 242, 246, .98);
  --hw-dialog-btn: #dde2ea;
  --hw-press: rgba(0, 0, 0, .14);
  --hw-wall: linear-gradient(165deg, #9cc0e6 0%, #3f71a9 55%, #1d3f6e 100%);

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: calc(var(--hw-h) + 10px);
  margin: 4px 0 4px;
}

@media (min-width: 400px) {
  .hw { --hw-s: .46; }
}

@media (prefers-color-scheme: dark) {
  .hw {
    --hw-ink: #ffffff;
    --hw-muted: #98989f;
    --hw-sep: rgba(84, 84, 88, .65);
    --hw-field: rgba(118, 118, 128, .3);
    --hw-glass: rgba(44, 44, 46, .96);
    --hw-glass-line: rgba(255, 255, 255, .1);
    --hw-sheet: #1c1c1e;
    --hw-group: #2c2c2e;
    --hw-grouped-bg: #000000;
    --hw-cell: #1c1c1e;
    --hw-kb: #2b2b2e;
    --hw-key: #6b6b6e;
    --hw-key-dark: #46464a;
    --hw-dialog: rgba(44, 44, 46, .98);
    --hw-dialog-btn: #3a3a3d;
    --hw-press: rgba(255, 255, 255, .16);
    --hw-wall: linear-gradient(165deg, #3a5f8c 0%, #1d3f6e 55%, #0b1a2e 100%);
  }
}

.hw-phone {
  flex: none;
  position: relative;
  padding: 5px;
  border-radius: calc(55px * var(--hw-s) + 5px);
  background: #1c1c1e;
  box-shadow: 0 1px 2px rgba(16, 40, 70, .12), 0 8px 24px rgba(16, 40, 70, .18);
}

@media (prefers-color-scheme: dark) {
  .hw-phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
}

.hw-viewport {
  position: relative;
  width: var(--hw-w);
  height: var(--hw-h);
  overflow: hidden;
  border-radius: calc(55px * var(--hw-s));
  background: var(--bg);
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* keeps Safari clipping to the corners */
}

.hw-screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 393px;
  height: 852px;
  overflow: hidden;
  transform: scale(var(--hw-s));
  transform-origin: 0 0;
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
}

.hw-screen.is-restart { animation: hw-fade .45s ease-out; }

.hw-caption { flex: 1 1 100px; min-width: 0; max-width: 220px; }

.hw-cap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.hw-cap.is-new { animation: hw-fade .3s ease-out; }

.hw-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1;
}

.hw-num.is-done { background: var(--on); color: var(--card); }

.hw-cap .hw-ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; color: var(--blue); }

.hw-dots { display: flex; gap: 6px; margin-top: 12px; }

.hw-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }

.hw-dots i.is-on { background: var(--blue); }

/* ---- Shared pieces inside the screen ------------------------------------- */

.hw-ico {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hw-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 42px;
  padding: 0 18px;
  font-size: 17px;
  color: var(--hw-ink);
  white-space: nowrap;
}

/* A tapped control darkens, whatever its own background. */
.is-pressed { box-shadow: inset 0 0 0 999px var(--hw-press) !important; }

.hw-status {
  position: absolute;
  z-index: 20;
  left: 0;
  top: 0;
  width: 393px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 34px 0 54px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.hw[data-mode="home"] .hw-status { color: #ffffff; }

.hw-batt {
  position: relative;
  width: 26px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  opacity: .9;
}

.hw-batt::before {
  content: "";
  position: absolute;
  left: 1.5px;
  top: 1.5px;
  bottom: 1.5px;
  width: 15px;
  border-radius: 1.5px;
  background: currentColor;
}

.hw-island {
  position: absolute;
  z-index: 21;
  left: 133px;
  top: 11px;
  width: 127px;
  height: 37px;
  border-radius: 19px;
  background: #000000;
}

/* ---- The Fuel Price page (Safari and Home Screen app) -------------------- */

.hw-page {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 63px 16px 0;
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 352px) var(--bg);
}

.hw-brand { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }

.hw-brand img { flex: none; width: 44px; height: 52px; }

.hw-brand span {
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 22.4px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.hw-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hw-price-card { border-top: 4px solid var(--red); padding: 24px 20px; text-align: center; }

.hw-label {
  font-size: 12.8px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hw-price {
  margin: 8px 0 10px;
  font-size: 98px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hw-price.is-long { font-size: 80px; }

.hw-price.is-longer { font-size: 60px; }

.hw-updated { min-height: 24px; color: var(--muted); }

.hw-alerts { border-top: 4px solid var(--blue); }

.hw-h2 { margin: 0 0 12px; font-size: 18.4px; font-weight: 700; line-height: 1.3; }

.hw-alerts p { margin: 0 0 12px; }

.hw-alerts ol { margin: 0; padding-left: 1.4em; }

.hw-alerts li { margin: 0 0 8px; padding-left: 4px; }

.hw-v { display: none; }

.hw[data-alerts="install"] .hw-v-install,
.hw[data-alerts="off"] .hw-v-off,
.hw[data-alerts="on"] .hw-v-on { display: block; }

.hw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 2px solid var(--blue);
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  font-size: 16.8px;
  font-weight: 700;
}

.hw-btn-2 { background: transparent; color: var(--link); border-color: var(--line); }

.hw-on {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--on-bg);
  color: var(--on);
  font-weight: 700;
}

/* ---- Safari bars ---------------------------------------------------------- */

.hw-bar { position: absolute; z-index: 3; left: 0; width: 393px; display: none; color: var(--hw-ink); }

.hw[data-mode="safari"][data-layout="new"] .hw-bar-new,
.hw[data-mode="safari"][data-layout="classic"] .hw-bar-classic { display: block; }

.hw-glass {
  background: var(--hw-glass);
  border: 1px solid var(--hw-glass-line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

/* Safari 26: back, address pill with the page menu, tabs. */
.hw-bar-new { top: 770px; height: 50px; }

.hw-round {
  position: absolute;
  top: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.hw-back { left: 33px; }

.hw-tabs { left: 310px; }

.hw-pill {
  position: absolute;
  left: 90px;
  top: 0;
  width: 213px;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 25px;
  font-size: 17px;
}

.hw-domain { flex: 1; text-align: center; white-space: nowrap; }

.hw-tap { display: inline-flex; padding: 7px; border-radius: 50%; }

/* Safari 15 to 18: address field above a toolbar with Share in the middle. */
.hw-bar-classic {
  top: 724px;
  height: 128px;
  background: var(--hw-glass);
  border-top: 1px solid var(--hw-glass-line);
}

.hw-addr {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 369px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--hw-field);
  font-size: 17px;
}

.hw-addr b { font-size: 15px; font-weight: 600; }

.hw-tools {
  position: absolute;
  left: 0;
  top: 60px;
  width: 393px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: var(--hw-ios-blue);
}

.hw-tools .hw-ico { width: 26px; height: 26px; }

/* ---- Overlays -------------------------------------------------------------- */

.hw-dim {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: #000000;
  opacity: 0;
  transition: opacity .3s ease;
}

.hw[data-scene="sheet"] .hw-dim { opacity: .16; }

.hw[data-scene="add"] .hw-dim,
.hw[data-scene="ask"] .hw-dim { opacity: .3; }

/* Page menu (Safari 26) */
.hw-menu {
  position: absolute;
  z-index: 5;
  left: 83px;
  top: 318px;
  width: 250px;
  padding: 8px 0;
  border-radius: 28px;
  opacity: 0;
  transform: scale(.55);
  transform-origin: 32px 100%;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}

.hw[data-scene="menu"] .hw-menu { opacity: 1; transform: none; }

.hw-menu hr { margin: 6px 18px; border: 0; border-top: 1px solid var(--hw-sep); }

.hw-menu .hw-chev { margin-left: auto; width: 16px; height: 16px; }

/* Share sheet */
.hw-sheet {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 60px;
  width: 393px;
  height: 792px;
  overflow: hidden;
  border-radius: 38px 38px 0 0;
  background: var(--hw-sheet);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .14);
  color: var(--hw-ink);
  transform: translateY(105%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.hw[data-scene="sheet"] .hw-sheet { transform: translateY(392px); }

.hw[data-scene="sheet"][data-sheet="full"] .hw-sheet,
.hw[data-scene="add"] .hw-sheet { transform: none; }

.hw-sheet-head {
  position: relative;
  z-index: 1;
  height: 130px;
  border-bottom: 1px solid var(--hw-sep);
  background: var(--hw-sheet);
}

.hw-sheet-icon {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
}

.hw-sheet-icon img,
.hw-add-icon img { display: block; width: 100%; height: 100%; }

.hw-sheet-title {
  position: absolute;
  left: 109px;
  top: 32px;
  right: 74px;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hw-sheet-site { position: absolute; left: 109px; top: 56px; font-size: 16px; color: var(--hw-muted); }

.hw-options {
  position: absolute;
  left: 109px;
  top: 86px;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 15px;
  background: var(--hw-field);
  font-size: 15px;
}

.hw-close {
  position: absolute;
  top: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hw-field);
}

.hw-sheet .hw-close { right: 16px; }

.hw-sheet-body {
  position: absolute;
  left: 0;
  top: 130px;
  width: 393px;
  padding: 16px;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.hw[data-sheet="full"] .hw-sheet-body { transform: translateY(-104px); }

.hw-circles { display: flex; justify-content: space-around; height: 96px; margin-bottom: 16px; }

.hw-circles span { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.hw-circles i { width: 56px; height: 56px; border-radius: 50%; background: var(--hw-field); }

.hw-circles b { width: 52px; height: 8px; border-radius: 4px; background: var(--hw-field); }

.hw-group { margin: 0 0 16px; overflow: hidden; border-radius: 22px; background: var(--hw-group); }

.hw-group .hw-row { height: 50px; padding: 0 16px; gap: 14px; }

.hw-group .hw-row + .hw-row::before {
  content: "";
  position: absolute;
  left: 52px;
  right: 0;
  top: 0;
  border-top: 1px solid var(--hw-sep);
}

/* Add to Home Screen screen */
.hw-add {
  position: absolute;
  z-index: 7;
  left: 0;
  top: 60px;
  width: 393px;
  height: 792px;
  overflow: hidden;
  border-radius: 38px 38px 0 0;
  background: var(--hw-grouped-bg);
  color: var(--hw-ink);
  transform: translateY(105%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.hw[data-scene="add"] .hw-add { transform: none; }

.hw-add .hw-close { left: 17px; }

.hw-add-title { position: absolute; left: 0; right: 0; top: 26px; font-size: 17px; font-weight: 600; text-align: center; }

.hw-add-btn {
  position: absolute;
  right: 16px;
  top: 17px;
  width: 66px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 21px;
  background: var(--hw-ios-blue);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
}

.hw-add-card {
  position: absolute;
  left: 0;
  top: 87px;
  width: 393px;
  height: 96px;
  border-top: 1px solid var(--hw-sep);
  border-bottom: 1px solid var(--hw-sep);
  background: var(--hw-cell);
}

.hw-add-icon {
  position: absolute;
  left: 16px;
  top: 17px;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--hw-sep);
}

.hw-add-name { position: absolute; left: 90px; top: 12px; font-size: 17px; }

.hw-add-url {
  position: absolute;
  left: 90px;
  right: 12px;
  top: 48px;
  padding-top: 10px;
  overflow: hidden;
  border-top: 1px solid var(--hw-sep);
  color: var(--hw-muted);
  font-size: 16px;
  white-space: nowrap;
}

.hw-add-web {
  position: absolute;
  left: 0;
  top: 219px;
  width: 393px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-top: 1px solid var(--hw-sep);
  border-bottom: 1px solid var(--hw-sep);
  background: var(--hw-cell);
  font-size: 17px;
}

.hw-switch { position: relative; width: 52px; height: 32px; border-radius: 16px; background: var(--hw-ios-green); }

.hw-switch::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.hw-add-note { position: absolute; left: 16px; right: 16px; top: 280px; font-size: 13px; line-height: 1.35; color: var(--hw-muted); }

.hw-kb { position: absolute; left: 0; top: 467px; width: 393px; height: 325px; background: var(--hw-kb); }

.hw-keys {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 54px;
  height: 162px;
  background-image:
    linear-gradient(90deg, var(--hw-kb) 0 6px, transparent 6px),
    linear-gradient(var(--hw-kb) 0 12px, transparent 12px),
    linear-gradient(var(--hw-key), var(--hw-key));
  background-size: 38.7px 54px, 38.7px 54px, 100% 100%;
}

.hw-kb-row { position: absolute; left: 6px; right: 6px; top: 228px; height: 42px; display: flex; gap: 6px; }

.hw-kb-row i { width: 86px; border-radius: 6px; background: var(--hw-key-dark); }

.hw-kb-row i + i { flex: 1; background: var(--hw-key); }

.hw-kb-row i + i + i { flex: none; background: var(--hw-ios-blue); }

/* Home Screen */
.hw-home {
  position: absolute;
  z-index: 8;
  inset: 0;
  background: var(--hw-wall);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .4s;
}

.hw[data-scene="home"] .hw-home {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}

.hw-grid {
  position: absolute;
  left: 26px;
  top: 72px;
  width: 341px;
  display: grid;
  grid-template-columns: repeat(4, 62px);
  justify-content: space-between;
  row-gap: 24px;
}

.hw-app { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 84px; }

.hw-app i { width: 62px; height: 62px; border-radius: 15px; background: rgba(255, 255, 255, .3); }

.hw-app b { width: 40px; height: 8px; margin-top: 4px; border-radius: 4px; background: rgba(255, 255, 255, .45); }

.hw-app-fp img {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.hw-app-fp span { font-size: 12px; line-height: 16px; color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); white-space: nowrap; }

.hw[data-scene="home"] .hw-app-fp { animation: hw-pop .5s .3s cubic-bezier(.34, 1.56, .64, 1) both; }

.hw-dock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-radius: 34px;
  background: rgba(255, 255, 255, .25);
}

.hw-dock i { width: 62px; height: 62px; border-radius: 15px; background: rgba(255, 255, 255, .35); }

/* Notification permission dialog */
.hw-dialog {
  position: absolute;
  z-index: 9;
  left: 37px;
  top: 331px;
  width: 320px;
  padding: 22px 22px 20px;
  border-radius: 34px;
  background: var(--hw-dialog);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
  color: var(--hw-ink);
  opacity: 0;
  transform: scale(1.12);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}

.hw[data-scene="ask"] .hw-dialog { opacity: 1; transform: none; }

.hw-dialog-title { font-size: 17px; font-weight: 600; line-height: 1.3; }

.hw-dialog-text { margin-top: 6px; font-size: 15px; line-height: 1.35; color: var(--hw-muted); }

.hw-dialog-btns { display: flex; gap: 12px; margin-top: 18px; }

.hw-dialog-btns span {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: var(--hw-dialog-btn);
  font-size: 17px;
}

/* ---- Finger --------------------------------------------------------------- */

/* A point at the tap position; the dot and the ripple are centered on it. */
.hw-finger {
  position: absolute;
  z-index: 30;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}

.hw-finger.is-shown { opacity: 1; }

.hw-finger.is-drag { transition-duration: .75s, .2s; }

.hw-finger.is-jump { transition: opacity .2s ease; }

.hw-finger::before,
.hw-finger::after {
  content: "";
  position: absolute;
  left: -22px;
  top: -22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.hw-finger::before {
  background: rgba(255, 255, 255, .6);
  border: 2px solid rgba(31, 35, 40, .65);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.hw-finger::after { border: 3px solid var(--blue); opacity: 0; }

.hw-finger.is-tap::before { animation: hw-press .35s ease-out; }

.hw-finger.is-tap::after { animation: hw-ripple .5s ease-out; }

/* ---- Motion ---------------------------------------------------------------- */

@keyframes hw-fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes hw-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }

@keyframes hw-press { 50% { transform: scale(.8); } }

@keyframes hw-ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }

.hw.is-paused *,
.hw.is-paused *::before,
.hw.is-paused *::after { animation-play-state: paused; }

/* Reduced motion: scenes change as cuts, and the tap shows as a still ring. */
@media (prefers-reduced-motion: reduce) {
  .hw *,
  .hw *::before,
  .hw *::after { transition: none !important; animation: none !important; }

  .hw-finger.is-tap::after { opacity: .9; }
}
