:root {
  --bg: #0b0705;
  --fg: #f1e4cc;
  --muted: #9c8a72;
  --warmth: 0;

  /* each candle's place is wide enough for its name, and each row tall
     enough for its candles and their names, so no name ever covers another */
  --slot: 84px;
  --row: 206px;
  --rise: 16px;
  --sink: 14px;
  --hmin: 40px;
  --hrange: 56px;
  --wax-w: 12px;
}

@media (max-width: 480px) {
  :root {
    --slot: 72px;
    --row: 176px;
    --rise: 12px;
    --sink: 12px;
    --hmin: 34px;
    --hrange: 44px;
    --wax-w: 10px;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: radial-gradient(ellipse 110% 70% at 50% 35%, #1c120b 0%, #0b0705 62%, #050302 100%) fixed;
  color: var(--fg);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

.warmth {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 62%, rgba(255, 150, 60, 0.24) 0%, rgba(255, 110, 40, 0.09) 45%, transparent 75%),
    radial-gradient(ellipse 120% 90% at 50% 50%, rgba(255, 140, 50, 0.06), transparent 70%);
  opacity: var(--warmth);
  transition: opacity 1.6s ease;
}

main {
  position: relative;
  /* the glow of the outer candles mustn't widen the page */
  overflow-x: clip;
  margin: 0 auto;
  padding: 0 16px 3rem;
  text-align: center;
}

/* a slim bar across the top, so the candles start in the top left corner */
/* the bar across the top: what this is on the left, what you can do on the
   right, and it stays put while you scroll through the candles */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 0 -16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(241, 228, 204, 0.07);
  background: rgba(11, 7, 5, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: left;
}

h1 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-shadow: 0 0 calc(4px + var(--warmth) * 26px) rgba(255, 170, 80, calc(0.15 + var(--warmth) * 0.4));
  transition: text-shadow 1.6s ease;
}

/* under the title, how many candles glow now and how many have burnt out */
.title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tally {
  margin: 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tally span + span::before {
  content: "\00b7";
  margin: 0 0.45em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- lighting ---------- */

.call {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex: 1 1 30rem;
}

.open,
.ask .field,
.ask .go {
  min-width: 0;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font: inherit;
  font-size: 1.2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.open,
.ask .go {
  flex: none;
  border: 1px solid rgba(255, 196, 120, 0.5);
  background: linear-gradient(#3a2614, #20140b);
  color: #ffe3b0;
  font-style: italic;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.14), 0 0 18px rgba(255, 150, 50, 0.1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.open:hover,
.ask .go:hover {
  border-color: rgba(255, 214, 150, 0.85);
  color: #fff3dc;
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.2), 0 0 26px rgba(255, 160, 60, 0.3);
}

.open:focus,
.ask .go:focus,
.ask .close:focus {
  outline: none;
}

.open:focus-visible,
.ask .go:focus-visible,
.ask .close:focus-visible {
  outline: 1px dashed rgba(255, 220, 160, 0.7);
  outline-offset: 3px;
}

.ask .go {
  font-variant-numeric: lining-nums;
}

.ask .go:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* a passing word when something goes wrong */
.oops {
  margin: 0;
  font-size: 1.1rem;
  font-style: italic;
  color: #e9a87c;
}

.call .oops {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.call .oops.shown {
  opacity: 1;
}

/* ---------- the window that asks for a candle ---------- */

.ask {
  width: min(22rem, calc(100vw - 32px));
  max-width: none;
  padding: 1.2rem 1.4rem 1.5rem;
  border: 1px solid rgba(255, 196, 120, 0.25);
  border-radius: 20px;
  background: radial-gradient(ellipse 120% 70% at 50% 0%, #2b1b0f 0%, #150d08 75%);
  color: var(--fg);
  font-family: inherit;
  text-align: center;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(255, 150, 60, 0.08),
    inset 0 1px 0 rgba(255, 230, 180, 0.08);
}

.ask[open] {
  animation: ask-in 0.35s ease-out both;
}

@keyframes ask-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
}

.ask::backdrop {
  background: rgba(5, 3, 2, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade-in 0.35s ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
}

.ask .close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

.ask .close:hover {
  color: var(--fg);
}

.ask h2 {
  margin: 0 0 1.1rem;
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}

.ask form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ask .field {
  border: 1px solid rgba(241, 228, 204, 0.2);
  background: rgba(255, 236, 210, 0.04);
  color: var(--fg);
  text-align: center;
  outline: none;
}

.ask .field::placeholder {
  color: var(--muted);
  font-style: italic;
  opacity: 1;
}

.ask .field:focus {
  border-color: rgba(255, 200, 130, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 170, 80, 0.1), 0 0 22px rgba(255, 160, 60, 0.12);
}

.ask textarea.field {
  border-radius: 18px;
  font-size: 1.1rem;
  line-height: 1.3;
  resize: none;
}

/* how many hours, with a step down and a step up */
.hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hours label {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--muted);
}

.hours input {
  width: 4.4em;
  padding: 0.2rem 0.3rem;
  border: 0;
  border-bottom: 1px solid rgba(241, 228, 204, 0.25);
  border-radius: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 1.45rem;
  font-style: normal;
  font-variant-numeric: lining-nums;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
  transition: border-color 0.3s ease;
}

.hours input::-webkit-outer-spin-button,
.hours input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.hours input:focus {
  border-bottom-color: rgba(255, 200, 130, 0.75);
}

.step {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 1px solid rgba(255, 196, 120, 0.35);
  border-radius: 50%;
  background: rgba(255, 236, 210, 0.04);
  color: #ffe3b0;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.step:hover:not(:disabled) {
  border-color: rgba(255, 214, 150, 0.8);
  box-shadow: 0 0 16px rgba(255, 160, 60, 0.2);
}

.step:disabled {
  opacity: 0.35;
  cursor: default;
}

.step:focus {
  outline: none;
}

.step:focus-visible {
  outline: 1px dashed rgba(255, 220, 160, 0.7);
  outline-offset: 3px;
}

.days {
  margin: -6px 0 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
}

.days:empty {
  display: none;
}

.price {
  margin: 0.9rem 0 0;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
}

.ask .oops {
  margin-top: 0.8rem;
}

.ask .oops:empty {
  display: none;
}

/* in the bar, lighting a candle is the one filled, glowing button */
header .open {
  border-color: rgba(255, 214, 150, 0.9);
  background: linear-gradient(#f6cf86, #d99a45);
  color: #2b1707;
  box-shadow: inset 0 1px 0 rgba(255, 245, 220, 0.6), 0 0 22px rgba(255, 165, 60, 0.35);
}

header .open:hover {
  color: #1c0e03;
  background: linear-gradient(#fbd998, #e2a654);
  box-shadow: inset 0 1px 0 rgba(255, 245, 220, 0.7), 0 0 30px rgba(255, 170, 70, 0.55);
}

/* on a phone: the title and how it works on one line, then lighting and
   finding side by side */
@media (max-width: 640px) {
  .call {
    display: contents;
  }

  .title {
    flex: 1 1 0;
  }

  .how {
    order: 1;
    align-self: flex-start;
  }

  header::after {
    content: "";
    order: 1;
    flex-basis: 100%;
  }

  header .open {
    order: 2;
  }

  header .find {
    order: 3;
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ---------- how it works ---------- */

/* sits beside the title in the bar across the top */
.how {
  flex: none;
  padding: 0.3rem 0.4rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 1.05rem;
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: rgba(156, 138, 114, 0.4);
  text-underline-offset: 0.2em;
  cursor: pointer;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.how:hover {
  color: var(--fg);
  text-decoration-color: rgba(255, 200, 130, 0.6);
}

.how:focus {
  outline: none;
}

.how:focus-visible {
  outline: 1px dashed rgba(255, 220, 160, 0.7);
  outline-offset: 3px;
}

.about {
  width: min(24rem, calc(100vw - 32px));
  padding: 1.5rem 1.6rem 1.7rem;
}

.about p {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #e6d6ba;
}

.about p:last-child {
  margin-bottom: 0;
}

/* ---------- stand ---------- */

.stand {
  --per: 7;
  padding-top: 0.5rem;
}

.row {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  width: 100%;
  height: var(--row);
  padding: 0 14px;
}

.row.new {
  animation: row-in 1.2s ease backwards;
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(12px); }
}

/* rows sit half a candle apart and overlap, so the candles hang as one
   loose cloud instead of in lines */
.row:nth-child(odd) {
  left: calc(var(--slot) / -4);
}

.row:nth-child(even) {
  left: calc(var(--slot) / 4);
}

.row:only-child {
  left: 0;
}

/* ---------- candle ---------- */

.candle {
  /* burns down to a stub over its five minutes */
  --h: calc((var(--hmin) + var(--hb, 0.5) * var(--hrange)) * (1 - var(--burnt, 0) * 0.7));
  /* how high it hangs: the shorter the candle, the higher it may float */
  --base: calc(var(--sink) + var(--lift, 0) * (var(--hrange) * (1 - var(--hb, 0.5)) + var(--rise)));
  position: relative;
  left: calc(var(--jx, 0) * var(--slot) * 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: var(--slot);
  height: 100%;
  padding: 0 0 var(--base);
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  /* rows overlap, so only the candle itself and its flame take a tap */
  pointer-events: none;
  /* only a candle that's glowing, or just going out, is there at all */
  visibility: hidden;
  transition: opacity 0.6s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* each one hovers in the air in its own time, rising and falling and
   drifting a little from side to side */
.candle.lit,
.candle.out {
  visibility: visible;
  animation:
    hover var(--hover-t, 5s) ease-in-out var(--hover-d, 0s) infinite alternate,
    drift var(--drift-t, 7s) ease-in-out var(--drift-d, 0s) infinite alternate;
}

@keyframes hover {
  from { translate: 0 calc(var(--bob, 7px) * 0.5); }
  to { translate: 0 calc(var(--bob, 7px) * -0.5); }
}

@keyframes drift {
  from { transform: translateX(calc(var(--sway, 2px) * -1)); }
  to { transform: translateX(var(--sway, 2px)); }
}

/* a candle whose name is showing comes in front of its neighbours */
.candle:hover,
.candle:focus-visible,
.candle.show-name,
.filtering .candle.match {
  z-index: 3;
}

.candle:focus {
  outline: none;
}

.candle:focus-visible .wax {
  outline: 1px dashed rgba(255, 220, 160, 0.7);
  outline-offset: 4px;
}

.wick {
  position: relative;
  width: 2px;
  height: 9px;
  margin-bottom: -1px;
  border-radius: 1px 1px 0 0;
  background: linear-gradient(#120c08, #3b2b1c);
  transition: opacity 0.9s ease;
}

.lit .wick {
  background: linear-gradient(#ffb15a 0 22%, #2a1a10 22% 100%);
}

.wax {
  position: relative;
  width: var(--wax-w);
  height: var(--h);
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, #8a5f26 0%, #d8b064 22%, #f3dc9f 42%, #e6c278 62%, #a97c35 88%, #7a5320 100%);
  filter: brightness(0.62) saturate(0.9);
  transition: filter 1.2s ease, box-shadow 1.2s ease, opacity 0.9s ease;
}

.lit.settled .wax {
  transition: filter 1.2s ease, box-shadow 1.2s ease, height 1s linear;
}

.lit .wax {
  filter: brightness(1.08) saturate(1.05);
  box-shadow:
    inset 0 16px 10px -8px rgba(255, 214, 140, 0.75),
    0 0 14px rgba(255, 160, 60, 0.18);
}

/* each candle rises into its place, then is lit */
.lit:not(.settled) .wax,
.lit:not(.settled) .wick {
  animation: place 0.5s ease-out both;
}

@keyframes place {
  from { opacity: 0; transform: translateY(14px); }
}

/* once the smoke has cleared, a candle that went out is taken away */
.gone .wax,
.gone .wick {
  opacity: 0;
}

.candle.lit .wax {
  pointer-events: auto;
}

.candle .wax::before {
  content: "";
  position: absolute;
  top: -46px;
  right: -12px;
  bottom: -6px;
  left: -12px;
}

/* wax drip */
.drip .wax::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--drip-x);
  width: 3px;
  height: var(--drip-h);
  border-radius: 2px 2px 3px 3px;
  background: linear-gradient(90deg, #e9c983, #f8e6b4);
}

/* ---------- flame ---------- */

.flame-wrap {
  position: absolute;
  left: 50%;
  bottom: calc(var(--base) + var(--h) + 4px);
  width: 12px;
  height: 30px;
  margin-left: -6px;
  transform-origin: 50% 100%;
  transform: scale(0.3, 0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease-in, opacity 0.5s ease-in;
}

.lit .flame-wrap {
  transform: scale(1);
  opacity: 1;
  animation: ignite 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 0.35s both;
}

.lit.settled .flame-wrap {
  animation: none;
  transition: bottom 1s linear;
}

@keyframes ignite {
  0% { transform: scale(0.05, 0.05); opacity: 0; }
  25% { transform: scale(0.55, 1.5); opacity: 1; }
  55% { transform: scale(1.15, 1.12); }
  100% { transform: scale(1, 1); opacity: 1; }
}

@keyframes flare {
  0% { transform: scale(1); }
  30% { transform: scale(1.18, 1.38); }
  100% { transform: scale(1); }
}

.flame {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 50% / 66% 66% 34% 34%;
  background: radial-gradient(ellipse 60% 52% at 50% 74%, #fffdf3 0%, #fff0b5 26%, #ffc75a 52%, #ff8a1c 78%, rgba(255, 110, 10, 0) 100%);
  box-shadow:
    0 0 10px 2px rgba(255, 175, 70, 0.55),
    0 -6px 22px 6px rgba(255, 120, 30, 0.22);
  transform-origin: 50% 100%;
  animation: flicker var(--d, 1.8s) ease-in-out var(--delay, 0s) infinite;
}

/* blue base of the flame */
.flame::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 1px;
  height: 7px;
  border-radius: 50%;
  background: rgba(110, 150, 255, 0.55);
  filter: blur(1.5px);
}

.flame.flare {
  animation: flare 0.9s ease-out;
}

@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  20% { transform: scale(0.95, 1.06) skewX(1.8deg); }
  40% { transform: scale(1.03, 0.96) skewX(-1.2deg); }
  60% { transform: scale(0.97, 1.04) skewX(2.4deg); }
  80% { transform: scale(1.02, 0.98) skewX(-0.8deg); }
}

.halo {
  position: absolute;
  left: 50%;
  bottom: calc(var(--base) + var(--h) + 19px - 110px);
  width: 220px;
  height: 220px;
  margin-left: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 175, 80, 0.3) 0%, rgba(255, 140, 40, 0.11) 32%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease;
}

.lit.settled .halo {
  transition: opacity 1.4s ease, bottom 1s linear;
}

.lit .halo {
  opacity: 1;
  animation: halo var(--d, 1.8s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes halo {
  0%, 100% { opacity: 0.92; }
  35% { opacity: 1; }
  70% { opacity: 0.8; }
}

.spark {
  position: absolute;
  left: 50%;
  bottom: calc(var(--base) + var(--h) + 10px);
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #ffd38a;
  box-shadow: 0 0 6px 1px rgba(255, 170, 60, 0.9);
  pointer-events: none;
  animation: spark 0.8s ease-out both;
}

@keyframes spark {
  from { transform: translate(0, 0); opacity: 1; }
  to { transform: translate(var(--sx), var(--sy)) scale(0.3); opacity: 0; }
}

.smoke {
  position: absolute;
  left: 50%;
  bottom: calc(var(--base) + var(--h) + 6px);
  width: 6px;
  height: 24px;
  margin-left: -3px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, rgba(205, 190, 170, 0.5), rgba(160, 145, 130, 0) 70%);
  filter: blur(1.5px);
  opacity: 0;
  transform-origin: 50% 100%;
  pointer-events: none;
  animation: smoke 2.4s ease-out both;
}

@keyframes smoke {
  0% { opacity: 0; transform: translate(0, 4px) scale(0.6, 0.4); }
  15% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(var(--sx), -48px) scale(2.6, 1.7) skewX(10deg); }
}

/* ---------- whose candle ---------- */

.name {
  --nx: -50%;
  position: absolute;
  left: 50%;
  bottom: calc(var(--base) + var(--h) + 40px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(var(--slot) - 6px);
  padding: 0.1em 0.6em 0.15em;
  border-radius: 0.8em;
  background: rgba(18, 11, 6, 0.72);
  box-shadow: 0 0 14px 4px rgba(18, 11, 6, 0.55);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.2;
  color: #ffeccc;
  text-shadow: 0 0 10px rgba(255, 150, 50, 0.75);
  opacity: 0;
  transform: translate(var(--nx), 5px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.name .who {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.name .left {
  font-size: 0.8em;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: #c9b08c;
  text-shadow: none;
}

.lit.settled .name {
  transition: opacity 0.5s ease, transform 0.5s ease, bottom 1s linear;
}

/* a lit candle's name never goes away while it burns */
.lit .name {
  opacity: 1;
  transform: translate(var(--nx), 0);
}

/* while searching, the candles that don't match grow faint */
.filtering .candle:not(.match) {
  opacity: 0.18;
}

/* ---------- below the stand ---------- */

.count,
.nothing {
  margin: 2.25rem 0 0;
  min-height: 1.5em;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
}

.nothing {
  margin-top: 0.4rem;
  min-height: 0;
}

/* the search sits beside the light up a candle button */
.find {
  flex: 0 1 15rem;
  min-width: 8rem;
}

.find input {
  width: 100%;
  padding: 0.4rem 1rem 0.4rem 2.1rem;
  border: 1px solid rgba(241, 228, 204, 0.16);
  border-radius: 999px;
  background: rgba(255, 236, 210, 0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239c8a72' stroke-width='1.5'%3E%3Ccircle cx='7' cy='7' r='4.75'/%3E%3Cpath d='M10.5 10.5 14 14' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0.8rem 50% / 0.95rem;
  color: var(--fg);
  font: inherit;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.find input::placeholder {
  color: var(--muted);
  font-style: italic;
  opacity: 1;
}

.find input:focus {
  border-color: rgba(255, 200, 130, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 170, 80, 0.08);
}

.find input::-webkit-search-cancel-button {
  filter: sepia(1) saturate(0.6) brightness(0.8);
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .flame,
  .lit .halo,
  .lit .flame-wrap,
  .lit .wax,
  .lit .wick,
  .row.new,
  .candle.lit,
  .candle.out,
  .ask[open],
  .ask::backdrop {
    animation: none;
  }

  .spark,
  .smoke {
    display: none;
  }
}
