:root {
  /* Dusk over a glazed-tile market hall. */
  --dusk: #18235c;
  --dusk-deep: #101a4c;
  --dusk-lift: #26337d;
  --glaze: #f3f7ff;
  --glaze-edge: #b4c3e8;
  --cobalt: #1d3fb4;
  --cobalt-ink: #11256f;
  --mist: #c9d4f4;
  --marigold: #f6b21b;
  --marigold-deep: #b97f00;
  --jade: #0f8c78;
  --pomegranate: #c72c55;
  --aubergine: #6a3aa8;
  --wood: #7c4f2a;

  --font-sign: Rockwell, "Rockwell Nova", "Roboto Slab", "Sitka Text", Georgia, serif;
  --font-body: "Avenir Next", Avenir, "Segoe UI", "Noto Sans", Roboto, system-ui, sans-serif;

  --tile-gap: clamp(6px, 1.6vw, 10px);
  --gutter: clamp(12px, 4vw, 24px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--dusk);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='150' viewBox='0 0 120 150'%3E%3Cpath d='M0 150V60a60 60 0 0 1 120 0v90h-8V60a52 52 0 0 0-104 0v90z' fill='%23101a4c' opacity='.5'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--dusk) 55%, #2b2a78 100%);
  background-repeat: repeat-x, no-repeat;
  background-position: left bottom, 0 0;
  background-attachment: fixed;
  color: var(--glaze);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-sign); font-weight: 700; margin: 0; line-height: 1.15; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }

.screen {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) max(16px, env(safe-area-inset-bottom));
}

/* Buttons are painted signboards: flat colour, slab lettering, a hard lower edge. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px 7px;
  border: 2px solid var(--mist);
  border-radius: 4px;
  background: var(--dusk-lift);
  color: var(--glaze);
  font: 700 15px/1.15 var(--font-sign);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 3px 0 var(--dusk-deep);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--dusk-deep); }
.btn[aria-pressed="true"] { background: var(--glaze); color: var(--cobalt-ink); border-color: var(--glaze); }
.btn[aria-disabled="true"] {
  background: var(--dusk);
  border-style: dashed;
  border-color: #8c9ad0;
  color: #c3cdee;
  box-shadow: none;
  cursor: not-allowed;
}
.btn[aria-disabled="true"]:active { transform: none; }

.btn-primary {
  background: var(--marigold);
  border-color: var(--marigold);
  color: #241700;
  box-shadow: 0 3px 0 var(--marigold-deep);
}
.btn-primary:active { box-shadow: 0 1px 0 var(--marigold-deep); }
.btn-wide { width: 100%; min-height: 54px; font-size: 19px; }
.btn-small { min-height: 44px; padding: 8px 12px 5px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row > .btn { flex: 1 1 120px; }

/* Opening screen */
.screen-start { display: flex; flex-direction: column; gap: 10px; padding-top: max(18px, env(safe-area-inset-top)); }

.title { display: grid; gap: clamp(4px, 1.2vw, 8px); justify-items: center; }
.title-row { display: flex; gap: clamp(3px, 1vw, 7px); }
.title-tile {
  display: grid;
  place-items: center;
  width: clamp(36px, 10.600vw, 66px);
  aspect-ratio: 1;
  border-radius: 5px;
  background-color: var(--glaze);
  background-image:
    radial-gradient(circle at 0 0, var(--cobalt) 0 13%, transparent 14%),
    radial-gradient(circle at 100% 0, var(--cobalt) 0 13%, transparent 14%),
    radial-gradient(circle at 0 100%, var(--cobalt) 0 13%, transparent 14%),
    radial-gradient(circle at 100% 100%, var(--cobalt) 0 13%, transparent 14%);
  color: var(--cobalt-ink);
  font: 700 clamp(20px, 6.200vw, 40px)/1 var(--font-sign);
  box-shadow: 0 4px 0 var(--glaze-edge), 0 7px 12px rgb(7 14 56 / .45);
}
.title-row-match .title-tile {
  background-color: var(--cobalt);
  background-image:
    radial-gradient(circle at 0 0, var(--marigold) 0 13%, transparent 14%),
    radial-gradient(circle at 100% 0, var(--marigold) 0 13%, transparent 14%),
    radial-gradient(circle at 0 100%, var(--marigold) 0 13%, transparent 14%),
    radial-gradient(circle at 100% 100%, var(--marigold) 0 13%, transparent 14%);
  color: var(--glaze);
  box-shadow: 0 4px 0 #122a80, 0 7px 12px rgb(7 14 56 / .45);
}

.hero { margin: 0 calc(var(--gutter) * -0.5); }
.hero-scene { display: block; width: 100%; height: auto; }

.start-panel { display: grid; gap: 12px; }
.pitch { font-size: clamp(16px, 2.400vw, 18px); max-width: 60ch; }

.picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker legend { padding: 0; margin-bottom: 8px; font: 700 17px/1.2 var(--font-sign); }
.picker-doors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.door { position: relative; display: block; cursor: pointer; }
.door input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.door span {
  display: grid;
  place-items: center;
  height: 46px;
  border: 2px solid var(--mist);
  border-radius: 22px 22px 3px 3px; /* An arched market door. */
  background: var(--dusk-deep);
  color: var(--glaze);
  font: 700 17px/1 var(--font-sign);
}
.door input:checked + span { background: var(--marigold); border-color: var(--marigold); color: #241700; }
.door input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 3px; }
.picker-note { min-height: 2.900em; margin-top: 8px; font-size: 15px; color: var(--mist); }
.picker-note strong { color: var(--glaze); font-family: var(--font-sign); font-size: 17px; }

.boot-note { font-size: 14px; color: var(--mist); }

/* Play screen */
.screen-play { display: flex; flex-direction: column; gap: 8px; min-height: 100dvh; }

.play-head { display: flex; align-items: center; gap: 12px; }
.play-title { flex: 1; min-width: 0; }
.play-market { font: 700 18px/1.15 var(--font-sign); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-count { font-size: 14px; color: var(--mist); }
.clock { font: 700 20px/1 var(--font-sign); font-variant-numeric: tabular-nums; }

/* The string of lanterns is the mistake counter. */
.lantern-wire {
  position: relative;
  display: flex;
  justify-content: space-around;
  height: 58px;
  margin: 0 calc(var(--gutter) * -0.5);
  background: no-repeat top center / 100% 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 22' preserveAspectRatio='none'%3E%3Cpath d='M0 2Q50 22 100 2' fill='none' stroke='%23c9d4f4' stroke-width='1.500' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.lantern { position: relative; width: 34px; transform-origin: 50% 0; }
.lantern::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 62%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(255 205 90 / .55), rgb(255 205 90 / 0));
  pointer-events: none;
}
.lantern.is-out::before { display: none; }
.lantern-art { position: relative; }
.lantern:nth-child(1), .lantern:nth-child(4) { margin-top: 3px; }
.lantern:nth-child(2), .lantern:nth-child(3) { margin-top: 10px; }
.lantern-art { display: block; width: 100%; height: auto; overflow: visible; }
.lantern-metal { fill: var(--mist); stroke: var(--mist); stroke-width: 1.500; }
.lantern-glass { fill: #ffd56b; }
.lantern-rib { stroke: var(--wood); stroke-width: 1.200; }
.lantern-flame { fill: #fff6d8; }
.lantern-smoke { display: none; stroke: var(--mist); stroke-width: 1.500; stroke-linecap: round; }
.lantern.is-out .lantern-flame { display: none; }
.lantern.is-out .lantern-glass { fill: #2a3570; }
.lantern.is-out .lantern-rib { stroke: #7d8bc4; }
.lantern.just-out { animation: lantern-swing 900ms ease-out; }
.lantern.just-out .lantern-smoke { display: block; animation: smoke-rise 900ms ease-out forwards; }
@keyframes lantern-swing {
  0% { transform: rotate(0); } 20% { transform: rotate(14deg); } 45% { transform: rotate(-10deg); }
  70% { transform: rotate(5deg); } 100% { transform: rotate(0); }
}
@keyframes smoke-rise { from { opacity: .9; transform: translateY(0); } to { opacity: 0; transform: translateY(-14px); } }

.play-field { display: flex; flex-direction: column; gap: var(--tile-gap); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tile-gap); }

/* Each tile is a glazed ceramic square with painted corners. */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: clamp(82px, 11.500dvh, 112px);
  padding: 7px 2px 6px;
  border: 0;
  border-radius: 6px;
  background-color: var(--glaze);
  background-image:
    radial-gradient(circle at 0 0, var(--cobalt) 0 8px, transparent 8.500px),
    radial-gradient(circle at 100% 0, var(--cobalt) 0 8px, transparent 8.500px),
    radial-gradient(circle at 0 100%, var(--cobalt) 0 8px, transparent 8.500px),
    radial-gradient(circle at 100% 100%, var(--cobalt) 0 8px, transparent 8.500px),
    linear-gradient(135deg, #fff, rgb(255 255 255 / 0) 42%);
  color: var(--cobalt-ink);
  font-family: var(--font-body);
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 4px 0 var(--glaze-edge), 0 6px 10px rgb(7 14 56 / .45);
  transition: transform 110ms ease-out, box-shadow 110ms ease-out, background-color 110ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.tile:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--glaze-edge), 0 3px 6px rgb(7 14 56 / .45); }
.glyph { display: block; width: 32px; height: 32px; flex: none; }
.tile-label {
  max-width: 100%; /* Without this a long word widens the label past the tile instead of wrapping. */
  font-size: clamp(11px, 3.300vw, 13px);
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
  overflow-wrap: break-word;
  hyphens: auto;
}

.tile[aria-pressed="true"] {
  background-color: var(--cobalt);
  background-image:
    radial-gradient(circle at 0 0, var(--marigold) 0 8px, transparent 8.500px),
    radial-gradient(circle at 100% 0, var(--marigold) 0 8px, transparent 8.500px),
    radial-gradient(circle at 0 100%, var(--marigold) 0 8px, transparent 8.500px),
    radial-gradient(circle at 100% 100%, var(--marigold) 0 8px, transparent 8.500px);
  color: #fff;
  transform: translateY(3px);
  box-shadow: 0 1px 0 #122a80, 0 2px 4px rgb(7 14 56 / .5);
}

.tile-chalk {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 16px;
  height: 16px;
  color: var(--pomegranate);
}
.tile[aria-pressed="true"] .tile-chalk { color: #fff; }
.chalk { display: block; width: 100%; height: 100%; }
.tiles.is-chalking { outline: 2px dashed var(--mist); outline-offset: 3px; border-radius: 6px; }

.tile.is-wrong { animation: tile-shake 380ms ease-in-out; }
@keyframes tile-shake {
  0%, 100% { translate: 0; } 20% { translate: -6px; } 40% { translate: 5px; } 60% { translate: -4px; } 80% { translate: 3px; }
}
.tile.is-revealed { box-shadow: 0 4px 0 var(--marigold), 0 6px 10px rgb(7 14 56 / .45); }

/* Stalls. Colour and awning pattern both identify the stall. */
.stalls { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--tile-gap); }
.stall {
  --cloth: var(--jade);
  --pattern: repeating-linear-gradient(90deg, var(--cloth) 0 22px, var(--glaze) 22px 44px);
  position: relative;
  padding-inline: 5px;
  background:
    linear-gradient(var(--dusk-deep), var(--dusk-deep)) center top / calc(100% - 10px) 26px no-repeat,
    linear-gradient(90deg, var(--wood) 0 5px, transparent 5px calc(100% - 5px), var(--wood) calc(100% - 5px));
}
.stall-1 { --cloth: var(--marigold); --pattern: repeating-linear-gradient(90deg, var(--cloth) 0 11px, var(--glaze) 11px 22px); }
.stall-2 { --cloth: var(--pomegranate); --pattern: repeating-linear-gradient(90deg, var(--cloth) 0 18px, var(--glaze) 18px 22px); }
.stall-3 { --cloth: var(--aubergine); --pattern: repeating-linear-gradient(45deg, var(--cloth) 0 8px, var(--glaze) 8px 16px); }

.awning {
  position: relative;
  z-index: 1;
  height: 22px;
  margin-inline: -5px;
  background: var(--pattern);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% 14px no-repeat, radial-gradient(11px 8px at 50% 0, #000 98%, transparent) bottom / 22px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% 14px no-repeat, radial-gradient(11px 8px at 50% 0, #000 98%, transparent) bottom / 22px 8px repeat-x;
}
.counter {
  margin-top: 4px;
  padding: 6px 8px 7px;
  background: var(--glaze);
  color: var(--cobalt-ink);
  border-bottom: 5px solid var(--wood);
}
.counter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.counter h3 { font-size: 15px; }
.stall-pay { flex: none; font-size: 13px; font-weight: 600; }
.goods { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.goods li { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; font-size: 11px; font-weight: 600; line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.goods .glyph { width: 20px; height: 20px; }
.stall.is-new { animation: stall-rise 420ms cubic-bezier(.2, .8, .3, 1) both; }
.stall.is-new .awning { transform-origin: 50% 0; animation: awning-unroll 520ms cubic-bezier(.2, .9, .3, 1.2) 80ms both; }
@keyframes stall-rise { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -10px 0); } }
@keyframes awning-unroll { from { transform: scaleY(.1); } to { transform: scaleY(1); } }
.stall.is-missed .counter { background: #dbe3f7; }

.flying-tile { position: fixed; z-index: 20; margin: 0; pointer-events: none; }

.porter-note { padding: 6px 10px; border-left: 4px solid var(--marigold); background: var(--dusk-deep); font-size: 15px; }
.status { min-height: 2.800em; font-size: 15px; font-weight: 600; text-align: center; display: grid; place-items: center; }
.status.is-bad { color: #ffc2d0; }
.status.is-good { color: #a8f0df; }

.controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.controls .btn { padding-inline: 8px; }
.btn-offer { grid-column: span 2; font-size: 18px; }
.controls-chalk { grid-template-columns: 1fr 1fr 1fr; }

/* Pause cover */
.pause-cover {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: var(--gutter);
  background: var(--dusk);
}
.pause-card { display: grid; gap: 12px; width: min(100%, 440px); }
.pause-card h2 { font-size: 30px; }
.pause-card .btn-row > .btn { flex-basis: 150px; }

/* Results */
.screen-results { display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.results-head { display: grid; gap: 6px; padding-top: 6px; }
#result-title:focus { outline: none; }
.results-head h2 { font-size: clamp(30px, 7vw, 46px); }
.result-score { font: 700 clamp(46px, 13vw, 76px)/1 var(--font-sign); color: var(--marigold); font-variant-numeric: tabular-nums; }
.result-unit { font-size: 20px; color: var(--glaze); }
.result-rating { font-size: 18px; font-weight: 600; }
.result-best { color: var(--mist); font-size: 15px; }
.results-actions > .btn { flex-basis: 150px; }
.results-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 760px) { .results-grid { grid-template-columns: 320px minmax(0, 1fr); } }
.street h3 { margin-bottom: 10px; font-size: 20px; }

/* The receipt is the one thing on screen on till-roll paper. */
.ticket {
  display: grid;
  gap: 10px;
  padding: 16px 14px 20px;
  background: var(--glaze);
  color: var(--cobalt-ink);
  -webkit-mask: radial-gradient(7px 6px at 50% 100%, transparent 98%, #000) bottom / 14px 100% repeat-x;
  mask: radial-gradient(7px 6px at 50% 100%, transparent 98%, #000) bottom / 14px 100% repeat-x;
}
.ticket h3 { font-size: 18px; }
.ticket-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 14px; }
.ticket-lines li { display: flex; justify-content: space-between; gap: 12px; }
.ticket-lines small { display: block; font-size: 12px; }
.ticket-lines .points { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.ticket-total { display: flex; justify-content: space-between; padding-top: 7px; border-top: 2px dashed var(--cobalt-ink); font: 700 19px/1.2 var(--font-sign); }
.offer-pattern { display: grid; gap: 3px; justify-content: start; }
.offer-row { display: flex; gap: 3px; }
.offer-cell { width: 22px; height: 22px; border-radius: 2px; }
.offer-0 { background: var(--jade); }
.offer-1 { background: repeating-linear-gradient(90deg, var(--marigold) 0 4px, #ffdf91 4px 8px); }
.offer-2 { background: var(--pomegranate); }
.offer-3 { background: repeating-linear-gradient(45deg, var(--aubergine) 0 4px, #a98add 4px 8px); }
.btn-ticket { background: var(--cobalt-ink); border-color: var(--cobalt-ink); color: #fff; box-shadow: none; }
.share-text { width: 100%; padding: 6px; border: 1px solid var(--cobalt-ink); border-radius: 2px; background: #fff; color: var(--cobalt-ink); font: 13px/1.35 var(--font-body); resize: vertical; }
.ticket-note { font-size: 13px; }
.stalls-results .counter { padding-bottom: 10px; }
.stalls-results .goods li { font-size: 12px; }
.goods .shop { display: block; font-weight: 400; font-size: 11px; }
.stall-why { margin-top: 7px; font-size: 14px; line-height: 1.35; }
.invented { margin-top: 10px; font-size: 14px; color: var(--mist); }

/* Rules */
.rules {
  width: min(100% - 24px, 560px);
  max-height: calc(100dvh - 24px);
  padding: 20px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--glaze);
  color: var(--cobalt-ink);
  box-shadow: 0 12px 40px rgb(7 14 56 / .7);
}
.rules::backdrop { background: rgb(16 26 76 / .85); }
.rules h2 { font-size: 26px; margin-bottom: 8px; }
.rules h2:focus { outline: none; }
.rules h3 { font-size: 17px; margin: 14px 0 4px; }
.rules p { margin-bottom: 8px; }
.rules :focus-visible { outline-color: var(--cobalt); }
.rules-steps { margin: 0 0 8px; padding-left: 22px; }
.rules-steps li { margin-bottom: 3px; }
.rules-scores { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; font-size: 15px; }
.rules-scores li { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dotted var(--cobalt); padding-bottom: 2px; }
.rules-scores li span:last-child { flex: none; font-weight: 600; }
.rules-keys { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 12px; font-size: 15px; }
kbd { display: inline-block; min-width: 26px; padding: 0 5px; border: 1px solid var(--cobalt); border-radius: 3px; background: #fff; font: 600 13px/1.5 var(--font-body); text-align: center; }

.noscript { padding: 20px; text-align: center; }

/* Short laptop screens and small embeds: keep the board and the offer button in view. */
@media (max-height: 760px) and (min-width: 600px) {
  .tile { height: 78px; flex-direction: row; gap: 7px; padding-inline: 8px; }
  .tile .glyph { width: 28px; height: 28px; }
  .tile-label { text-align: left; font-size: 14px; }
  .lantern-wire { height: 50px; }
  .lantern { width: 28px; }
  .goods li { flex-direction: row; gap: 4px; text-align: left; }
  .status { min-height: 1.800em; }
}

@media (min-width: 600px) {
  .tile-label { font-size: 14px; }
  .glyph { width: 36px; height: 36px; }
  .tile .glyph { width: 36px; height: 36px; }
  .goods .glyph { width: 22px; height: 22px; }
  .goods li { font-size: 13px; }
  .counter h3 { font-size: 17px; }
  .controls { grid-template-columns: 1fr 1fr 1.300fr 1fr 2fr; margin-top: 4px; }
  .btn-offer { grid-column: auto; }
  .controls-chalk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-height: 760px) and (min-width: 600px) {
  .tile .glyph { width: 28px; height: 28px; }
}

@media (max-height: 700px) and (max-width: 599px) {
  .lantern-wire { height: 46px; }
  .lantern { width: 26px; }
  .play-count { font-size: 13px; }
  .status { min-height: 2.500em; font-size: 14px; }
}
@media (max-width: 359px) {
  .goods li { font-size: 10px; }
}

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

/* Small action feedback; the board remains the focus. */
.stall-slip { margin: 9px 0 0; padding: 7px 10px; border-top: 2px dashed currentColor; font-size: 13px; }
.stall-slip small { display: block; font-size: 11px; margin-top: 3px; }
@media(prefers-reduced-motion:no-preference) { .is-new .stall-slip { animation: receipt-arrive .45s ease-out both; } @keyframes receipt-arrive { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } } }
