/* Horse Race. Everything is under .hr so restyling elsewhere can't reach in.
   Phones stack it: the heading or the dealer, the track (edge to edge), then the controls and the list.
   From 900px wide the track takes the left and everything else sits in a column on the right. */

/* Each horse's colours: the jockey's silks, and its coat */
.hr-s-S { --silk: #4f7dff; --silk-2: #2d4fc8; --tx: #9ab6ff; --coat: #d9d3e9; --coat-2: #a39abf; --mane: #6b6390; --blaze: transparent; }
.hr-s-H { --silk: #ff4469; --silk-2: #c2214a; --tx: #ff93a8; --coat: #c9672f; --coat-2: #8f421b; --mane: #5a2210; --blaze: #fff6ea; }
.hr-s-D { --silk: #ffb32e; --silk-2: #c9780a; --tx: #ffd27a; --coat: #403452; --coat-2: #261d31; --mane: #15101d; --blaze: #f3eefc; }
.hr-s-C { --silk: #2fd480; --silk-2: #158f54; --tx: #74ebad; --coat: #e2b166; --coat-2: #ad7d38; --mane: #f7ecd2; --blaze: transparent; }
.hr-tx-S { color: #9ab6ff; }
.hr-tx-H { color: #ff93a8; }
.hr-tx-D { color: #ffd27a; }
.hr-tx-C { color: #74ebad; }

.hr {
  --ol: #1b1238;
  --surface: linear-gradient(180deg, var(--panel-up), var(--panel));
  --lift: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px -16px rgba(0, 0, 0, .75);
  display: grid;
  gap: 16px;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  color: var(--text);
  font-family: var(--body);
}
/* On phones the side column dissolves into the one column, in this order */
.hr-side { display: contents; }
.hr-head { order: 1; }
.hr-dealer, .hr-win { order: 2; }
.hr-track { order: 3; }
.hr-you { order: 4; }
.hr-bet { order: 5; }
.hr-acts { order: 6; }
.hr-list { order: 7; }
.hr p, .hr h1, .hr h2 { margin: 0; }
.hr-suit { display: block; width: 100%; height: 100%; fill: currentColor; }
.hr-ico { display: block; width: 20px; height: 20px; flex: none; }

/* ---------- Heading (while bets come in) ---------- */
.hr-head { display: grid; gap: 6px; }
.hr-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hr-head h1 { min-width: 0; font: 800 clamp(26px, 7.4vw, 34px)/1.08 var(--logo); letter-spacing: -.035em; overflow-wrap: anywhere; }
.hr-head p { font-size: 17px; line-height: 1.35; color: var(--muted); }
.hr-head.is-swap h1 { animation: hr-swap .55s var(--spring); }
@keyframes hr-swap { from { opacity: 0; transform: translateX(28px); } }
.hr-count {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--well);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .55);
  color: var(--muted);
  font: 700 13px/1 var(--body);
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .3s, color .3s;
}
.hr-count.is-full { color: #2a1600; background: var(--gold); box-shadow: 0 3px 0 var(--gold-edge); }

/* ---------- The track ---------- */
.hr-track {
  --lane: 60px;
  --hw: calc(var(--lane) * 1.6);          /* a horse is this wide and three quarters as tall */
  --gw: 34px;                              /* gate card width, set from the script to fit a step */
  --band: calc(var(--gw) * 1.4 + 26px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  border-radius: 24px;
  background: #110c33;
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .05);
  -webkit-user-select: none;
  user-select: none;
}

/* The far side: a dark stand full of little lights, under two floodlights */
.hr-sky {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: calc(var(--band) + 10px);
  overflow: hidden;
  background: linear-gradient(180deg, #0d0a29 0%, #19134a 62%, #261c60 100%);
}
.hr-lamp {
  position: absolute;
  top: -70%;
  left: 4%;
  width: 42%;
  height: 190%;
  background: radial-gradient(closest-side, rgba(255, 238, 196, .26), rgba(255, 238, 196, 0));
}
.hr-lamp + .hr-lamp { left: auto; right: 4%; }
.hr-crowd {
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 10px;
  height: 46%;
  border-radius: 10px 10px 0 0;
  background:
    radial-gradient(circle, rgba(255, 216, 160, .5) 0 1px, transparent 1.7px) 0 0 / 9px 7px,
    radial-gradient(circle, rgba(170, 150, 255, .35) 0 1px, transparent 1.7px) 4px 3px / 11px 7px,
    linear-gradient(180deg, #2b2172, #1d1652);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
  mask-image: linear-gradient(180deg, transparent, #000 45%);
}

.hr-gates { position: relative; z-index: 1; height: var(--band); }
.hr-gate {
  position: absolute;
  bottom: 12px;
  left: calc(var(--hw) * .58 + var(--k) * (100% - var(--hw)) / 7);
  transform: translateX(-50%);
}
.hr-gate .pc { --card-w: var(--gw); position: relative; }
.hr-gate::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 4px;
  height: 12px;
  margin-left: -2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #f3f0ff, #b9b1dc);
}
.hr-gate::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 10px;
  background: var(--silk, transparent);
  opacity: 0;
  filter: blur(8px);
  transition: opacity .4s;
}
.hr-gate.is-open::before { opacity: .55; }
.hr-gate.is-hit { animation: hr-gate-hit .95s var(--ease); }
@keyframes hr-gate-hit {
  0% { transform: translateX(-50%); }
  22% { transform: translateX(-50%) translateY(-6px) scale(1.24); }
  60% { transform: translateX(-50%) translateY(-3px) scale(1.12); }
  100% { transform: translateX(-50%); }
}
.hr-gate.is-hit::before { opacity: 1; }

/* The winning post */
.hr-post {
  position: absolute;
  bottom: 0;
  left: calc(100% - var(--hw) * .16 + 4px);
  width: 4px;
  height: 64%;
  margin-left: -2px;
  background: linear-gradient(90deg, #ffffff, #c4bce6);
  border-radius: 2px 2px 0 0;
}
.hr-post::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: repeating-conic-gradient(#ffffff 0 25%, #1b1238 0 50%) 50% 50% / 8px 8px;
  box-shadow: 0 0 14px rgba(255, 255, 255, .45);
}

.hr-rail { position: relative; pointer-events: none; }
.hr-rail-top {
  z-index: 0;
  height: 10px;
  margin-top: -2px;
  background:
    linear-gradient(180deg, #ffffff, #d7d1ef) 0 0 / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, #e2ddf7 0 3px, transparent 3px 30px) 0 4px / 100% 6px no-repeat,
    linear-gradient(180deg, #17532f, #1b6a3d) 0 4px / 100% 6px no-repeat;
}
.hr-rail-front {
  z-index: 20;
  height: 20px;
  margin-top: -6px;
  background:
    linear-gradient(180deg, #ffffff, #cfc8ea) 0 2px / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, #ebe7fb 0 4px, transparent 4px 34px) 0 8px / 100% 12px no-repeat,
    linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0)) 0 0 / 100% 3px no-repeat;
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, .35));
}

.hr-lanes { position: relative; display: grid; }
.hr-lane { --turf: #1c7244; position: relative; z-index: calc(var(--i) + 1); height: var(--lane); }
.hr-lane:nth-child(2n) { --turf: #208049; }
.hr-turf {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 26, 16, .6), rgba(3, 26, 16, 0) 42%),
    linear-gradient(180deg, transparent 88%, rgba(0, 0, 0, .16)),
    var(--turf);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
/* Mown stripes, which slide past while the horses run */
.hr-turf::after {
  content: "";
  position: absolute;
  inset: 0 -56px 0 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 28px, transparent 28px 56px);
}
.hr-turf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 210, 110, 0) 0%, rgba(255, 210, 110, .22) 100%);
  transition: opacity .5s;
}
.hr.is-racing .hr-turf::after { animation: hr-scroll .42s linear infinite; }
@keyframes hr-scroll { to { transform: translateX(-56px); } }
.hr-lane.is-lead .hr-turf::before { opacity: 1; }
.hr-lane.is-won .hr-turf::before { opacity: 1; background: linear-gradient(90deg, rgba(255, 205, 80, .12), rgba(255, 205, 80, .45)); }
.hr-lane.is-lost .hr-turf { filter: brightness(.62) saturate(.8); }
.hr-lane.is-picked .hr-turf { box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 26px rgba(255, 197, 61, .35); }
.hr-lane.is-picked .hr-turf::before { opacity: 1; }

.hr-fin {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: calc(100% - var(--hw) * .16);
  width: 8px;
  background: repeating-conic-gradient(#ffffff 0 25%, #1b1238 0 50%) 0 0 / 8px 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, .25);
}

/* Starting stalls: a frame behind the horse, a barred door in front that springs open at the start */
.hr-stall {
  position: absolute;
  z-index: 2;
  left: 3px;
  bottom: 0;
  width: calc(var(--hw) * .97);
  height: calc(var(--lane) + 8px);
  border-radius: 7px 7px 0 0;
  background:
    linear-gradient(180deg, #efecfb, #c9c2e4) 0 0 / 100% 6px no-repeat,
    linear-gradient(90deg, #d8d2ee, #a49cc8) 0 0 / 5px 100% no-repeat,
    linear-gradient(180deg, rgba(10, 6, 30, .32), rgba(10, 6, 30, .08));
}
.hr-door {
  position: absolute;
  z-index: 4;
  left: calc(var(--hw) * .97);
  bottom: 0;
  width: 9px;
  height: calc(var(--lane) + 8px);
  border-radius: 3px 3px 0 0;
  background:
    linear-gradient(180deg, var(--silk), var(--silk-2)) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(180deg, #ffffff 0 3px, #bdb5de 3px 9px) 0 6px / 100% 100% no-repeat;
  box-shadow: 2px 0 4px rgba(0, 0, 0, .35);
  transform-origin: 0 50%;
  transition: transform .5s var(--spring), opacity .5s;
}
.hr:not(.is-bets) .hr-door { opacity: 0; transform: perspective(120px) rotateY(-82deg); }
.hr-stall { transition: opacity .8s ease .3s; }
.hr:not(.is-bets) .hr-stall { opacity: .35; }

/* Place in the race, on the stall once the horse has gone */
.hr-plate {
  position: absolute;
  z-index: 5;
  left: 7px;
  top: 50%;
  height: 22px;
  padding: 0 8px 0 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 7px;
  color: #fff;
  background: var(--silk);
  box-shadow: 0 3px 0 var(--silk-2), 0 6px 10px rgba(0, 0, 0, .3);
  font: 800 11px/1 var(--logo);
  letter-spacing: -.01em;
  transform: translateY(-50%);
  transition: background .3s, color .3s, opacity .3s;
}
.hr-plate .hr-suit { width: 13px; height: 13px; flex: none; }
.hr.is-bets .hr-plate, .hr-lane.is-home .hr-plate { opacity: 0; }
.hr-lane.is-lead .hr-plate, .hr-lane.is-won .hr-plate { color: #2a1600; background: var(--gold); box-shadow: 0 3px 0 var(--gold-edge), 0 6px 14px rgba(255, 180, 40, .4); }

/* Bets in the empty stretch of the lane */
.hr-info {
  position: absolute;
  z-index: 2;
  left: calc(var(--hw) + 16px);
  right: calc(var(--hw) * .16 + 16px);
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  transition: opacity .35s, transform .35s var(--ease);
}
.hr:not(.is-bets) .hr-info { opacity: 0; transform: translateX(16px); visibility: hidden; }
.hr-info-nm {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--tx);
  font: 800 13px/1 var(--logo);
  letter-spacing: .01em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
}
.hr-picked {
  display: none;
  flex: none;
  align-items: center;
  gap: 4px;
  padding: 5px 8px 5px 6px;
  border-radius: 999px;
  color: #2a1600;
  background: var(--gold);
  box-shadow: 0 2px 0 var(--gold-edge);
  font: 700 12px/1 var(--body);
}
.hr-picked .hr-ico { width: 13px; height: 13px; }
.hr-lane.is-picked .hr-picked { display: inline-flex; animation: hr-in .45s var(--spring); }
.hr-backers { flex: none; margin-left: auto; display: flex; padding-left: 6px; }
.hr-backers .hr-av { width: 26px; height: 26px; margin-left: -7px; font-size: 11px; box-shadow: 0 0 0 2px var(--turf), inset 0 -2px 0 rgba(0, 0, 0, .18); }
.hr-backers .hr-av.is-new { animation: hr-drop .55s var(--spring); }
.hr-av.is-more { color: var(--text); background: rgba(0, 0, 0, .45); }
@keyframes hr-drop { from { opacity: 0; transform: translateY(-18px) scale(.4); } }

.hr-pick {
  position: absolute;
  z-index: 8;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background .15s;
}
.hr-pick:disabled { display: none; }
.hr-pick:hover { background: rgba(255, 255, 255, .04); }
.hr-pick:active { background: rgba(255, 255, 255, .1); }
.hr-pick:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

/* ---------- Horses ---------- */
.hr-runner {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  transform: translate3d(calc(var(--p, 0) * (100% - var(--hw)) / 7), 0, 0);
  transition: transform 1s cubic-bezier(.3, .85, .25, 1.06);
  will-change: transform;
}
.hr-runner.is-back { transition-duration: .65s; transition-timing-function: cubic-bezier(.55, 0, .25, 1.1); }
.hr-still .hr-runner, .hr-still .hr-door, .hr-still .hr-info { transition: none !important; }
.hr-horse {
  --gait: .46s;
  --off: calc(var(--i) * -.13s);
  position: absolute;
  left: 0;
  bottom: 2px;
  width: var(--hw);
  height: calc(var(--hw) * .75);
  transform-origin: 34% 96%;
}
.hr-horse-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hr-horse.is-surge { animation: hr-surge .9s var(--ease); }
.hr-horse.is-knock { animation: hr-knock .95s var(--ease); }
.hr-horse.is-jump { animation: hr-jump .7s var(--ease); }
.hr-horse.is-hop { animation: hr-hop .5s var(--spring); }
.hr-lane.is-won .hr-horse { animation: hr-rear 1.5s var(--ease) .1s infinite; }
.hr-lane.is-lost .hr-horse { opacity: .8; }
@keyframes hr-surge { 0% { transform: none; } 30% { transform: translateX(3%) rotate(-4deg) scaleX(1.04); } 100% { transform: none; } }
@keyframes hr-knock {
  0% { transform: none; }
  14% { transform: translateX(4%) rotate(-16deg); }
  34% { transform: translateX(-3%) rotate(5deg); }
  52% { transform: rotate(-5deg); }
  72% { transform: rotate(2deg); }
  100% { transform: none; }
}
@keyframes hr-jump { 0% { transform: none; } 35% { transform: translateX(6%) rotate(-7deg); } 100% { transform: none; } }
@keyframes hr-hop { 0% { transform: none; } 40% { transform: translateY(-14%) rotate(-6deg); } 100% { transform: none; } }
@keyframes hr-rear { 0%, 100% { transform: none; } 28%, 52% { transform: translateY(-3%) rotate(-15deg); } 70% { transform: rotate(1deg); } }

.hr-you-tag {
  position: absolute;
  z-index: 2;
  left: calc(var(--hw) * .68);
  top: calc(var(--lane) - var(--hw) * .75 - 6px);
  display: none;
  padding: 3px 6px;
  border-radius: 6px;
  color: #2a1600;
  background: var(--gold);
  box-shadow: 0 2px 0 var(--gold-edge);
  font: 800 9px/1 var(--logo);
  letter-spacing: .04em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.hr-you-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: var(--gold-edge);
  border-bottom: 0;
}
.hr:not(.is-bets) .hr-lane.is-mine .hr-you-tag { display: block; }
.hr-lane.is-won .hr-you-tag { display: none !important; }

/* The winner's rosette */
.hr-rosette {
  position: absolute;
  z-index: 3;
  left: calc(var(--lane) * -.5);
  top: calc(var(--lane) * .1);
  width: calc(var(--lane) * .56);
  height: calc(var(--lane) * .67);
  display: none;
  overflow: visible;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
  transform-origin: 50% 20%;
}
.hr-ros-a { fill: var(--silk-2); }
.hr-ros-b { fill: var(--silk); }
.hr-lane.is-won .hr-rosette { display: block; animation: hr-rosette .7s var(--spring) both, hr-sway 2.4s ease-in-out .7s infinite; }
@keyframes hr-rosette { from { opacity: 0; transform: translateY(16px) scale(.2) rotate(-30deg); } }
@keyframes hr-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.hr-puff {
  position: absolute;
  left: calc(var(--hw) * .2);
  bottom: 2px;
  width: calc(var(--lane) * .3);
  height: calc(var(--lane) * .3);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(230, 245, 220, .75), rgba(200, 230, 190, 0) 70%);
  animation: hr-puff .8s ease-out calc(var(--n) * .08s) both;
}
@keyframes hr-puff { from { opacity: .9; transform: translate(0, 0) scale(.4); } to { opacity: 0; transform: translate(calc(-30px - var(--n) * 14px), calc(-6px - var(--n) * 4px)) scale(1.6); } }
.hr-minus {
  position: absolute;
  z-index: 5;
  left: calc(var(--hw) * .55);
  top: calc(var(--lane) - var(--hw) * .75);
  padding: 4px 8px;
  border-radius: 9px;
  color: #fff;
  background: #ff3d73;
  box-shadow: 0 3px 0 #a3124a, 0 8px 18px rgba(255, 61, 115, .5);
  font: 800 15px/1 var(--logo);
  animation: hr-minus 1.25s var(--ease) both;
}
@keyframes hr-minus { 0% { opacity: 0; transform: translateY(10px) scale(.4); } 20% { opacity: 1; transform: translateY(-6px) scale(1.15); } 70% { opacity: 1; transform: translateY(-12px); } 100% { opacity: 0; transform: translateY(-22px); } }

/* The streak from a gate card down to the horse it sends back */
.hr-beam {
  position: absolute;
  z-index: 12;
  top: -10px;
  left: calc(var(--hw) * .58 + var(--k) * (100% - var(--hw)) / 7);
  width: 10px;
  height: calc(var(--lane) * (var(--to) + .55) + 10px);
  margin-left: -5px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 30%, var(--silk) 100%);
  box-shadow: 0 0 24px 4px var(--silk), 0 0 6px #fff;
  transform-origin: 50% 0;
  pointer-events: none;
  animation: hr-beam 1.2s var(--ease) .28s both;
}
.hr-beam::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border-radius: 50%;
  border: 3px solid var(--silk);
  animation: hr-ring .7s ease-out .5s both;
}
@keyframes hr-beam { 0% { opacity: 1; transform: scaleY(0); } 22% { opacity: 1; transform: scaleY(1); } 62% { opacity: .9; transform: scaleY(1) scaleX(.7); } 100% { opacity: 0; transform: scaleY(1) scaleX(.3); } }
@keyframes hr-ring { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(2.2); } }

/* "And they're off", the finish flash */
.hr-banner { position: absolute; z-index: 30; inset: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.hr-banner span {
  padding: 14px 26px 12px;
  border-radius: 16px;
  color: #2a1600;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  box-shadow: 0 6px 0 var(--gold-edge), 0 20px 40px rgba(0, 0, 0, .55);
  font: 800 clamp(22px, 6.6vw, 42px)/1 var(--logo);
  letter-spacing: -.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hr-banner.is-show span { animation: hr-banner 1.65s var(--ease) both; }
@keyframes hr-banner {
  0% { opacity: 0; transform: translateX(-60%) skewX(-10deg) scale(.9); }
  20% { opacity: 1; transform: skewX(-10deg) scale(1.06); }
  32% { transform: skewX(-10deg) scale(1); }
  78% { opacity: 1; transform: skewX(-10deg); }
  100% { opacity: 0; transform: translateX(60%) skewX(-10deg); }
}
.hr-flash { position: absolute; z-index: 29; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.hr-flash.is-on { animation: hr-flash .8s ease-out; }
@keyframes hr-flash { from { opacity: .85; } to { opacity: 0; } }

.hr-confetti { position: fixed; z-index: 45; inset: 0; overflow: hidden; pointer-events: none; }
.hr-confetti i {
  position: absolute;
  left: var(--ox);
  top: var(--oy);
  width: 8px;
  height: 13px;
  margin: -6px 0 0 -4px;
  border-radius: 2px;
  background: var(--c);
  animation: hr-pop var(--t) cubic-bezier(.12, .7, .3, 1) var(--d) both;
}
.hr-confetti i.is-round { width: 9px; height: 9px; border-radius: 50%; }
@keyframes hr-pop {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.3); }
  30% { opacity: 1; transform: translate(calc(var(--x) * .75), var(--y)) rotate(calc(var(--r) * .35)) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + var(--fall))) rotate(var(--r)) scale(.9); }
}

/* ---------- The horse picture ---------- */
.hs-a { transform-box: view-box; transform-origin: 0 0; }
.hs-shadow { fill: rgba(0, 0, 0, .3); }
.hs-sh { stroke: var(--ol); stroke-width: 2.4; stroke-linejoin: round; }
.hs-ol { fill: none; stroke: var(--ol); stroke-linecap: round; }
.hs-lc, .hs-lf { fill: none; stroke-linecap: round; }
.hs-lc { stroke: var(--coat); }
.hs-lf { stroke: var(--coat-2); }
.hs-t1 { stroke-width: 14; }
.hs-t1i { stroke-width: 9; }
.hs-t2 { stroke-width: 10; }
.hs-t2i { stroke-width: 5.2; }
.hs-hoof { fill: #2a2038; stroke: var(--ol); stroke-width: 1.6; stroke-linejoin: round; }
.hs-coat { fill: var(--coat); }
.hs-mane { fill: var(--mane); }
.hs-hair { fill: none; stroke: rgba(0, 0, 0, .22); stroke-width: 1.6; stroke-linecap: round; }
.hs-light { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: 2.6; stroke-linecap: round; }
.hs-dark { fill: none; stroke: rgba(0, 0, 0, .16); stroke-width: 3.2; stroke-linecap: round; }
.hs-blaze { fill: none; stroke: var(--blaze); stroke-width: 3.2; stroke-linecap: round; }
.hs-eye { fill: #140d28; }
.hs-inner { fill: rgba(0, 0, 0, .28); }
.hs-glint { fill: #ffffff; }
.hs-ink { fill: rgba(20, 13, 40, .75); }
.hs-tack { fill: none; stroke: #2b1d16; stroke-width: 1.7; stroke-linecap: round; }
.hs-rein { fill: none; stroke: #2b1d16; stroke-width: 1.5; stroke-linecap: round; }
.hs-cloth { fill: #ffffff; }
.hs-cloth-edge { fill: none; stroke: var(--silk); stroke-width: 2.4; }
.hs-cloth-mark { fill: var(--silk); }
.hs-boot { fill: #1e1631; }
.hs-iron { fill: none; stroke: #cfc9e2; stroke-width: 2; stroke-linecap: round; }
.hs-white { fill: #f5f2ff; }
.hs-silk { fill: var(--silk); }
.hs-peak { fill: var(--silk-2); }
.hs-crease { fill: none; stroke: var(--silk-2); stroke-width: 2; stroke-linecap: round; }
.hs-mark { fill: #ffffff; }
.hs-arm { stroke-width: 7.4; }
.hs-silk-s { fill: none; stroke: var(--silk); stroke-linecap: round; }
.hs-arm-i { stroke-width: 3.8; }
.hs-skin { fill: #f0c6a2; }
.hs-cap { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.6; stroke-linecap: round; }

/* Standing about: breathing, a nod, a swish of the tail */
.hr-horse .hs-bob { animation: hs-breathe 2.6s ease-in-out var(--off) infinite; }
.hr-horse .hs-neck { animation: hs-nod-idle 3.4s ease-in-out var(--off) infinite; }
.hr-horse .hs-tail { animation: hs-swish 2.8s ease-in-out var(--off) infinite; }
@keyframes hs-breathe { 50% { transform: translateY(.8px); } }
@keyframes hs-nod-idle { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(4deg); } 58% { transform: rotate(-2deg); } }
@keyframes hs-swish { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(9deg); } }

/* The gallop */
.hr.is-racing .hr-horse .hs-bob, .hr-lane.is-won .hs-bob, .hr-win-art .hs-bob { animation: hs-bob var(--gait) linear var(--off) infinite; }
.hr.is-racing .hr-horse .hs-neck, .hr-lane.is-won .hs-neck, .hr-win-art .hs-neck { animation: hs-nod var(--gait) ease-in-out var(--off) infinite; }
.hr.is-racing .hr-horse .hs-tail, .hr-lane.is-won .hs-tail, .hr-win-art .hs-tail { animation: hs-tail var(--gait) ease-in-out var(--off) infinite; }
.hr.is-racing .hr-horse .hs-jock, .hr-win-art .hs-jock { animation: hs-jock var(--gait) ease-in-out var(--off) infinite; }
.hr.is-racing .hr-horse .hs-fn-u, .hr-win-art .hs-fn-u { animation: hs-fu var(--gait) linear var(--off) infinite; }
.hr.is-racing .hr-horse .hs-fn-l, .hr-win-art .hs-fn-l { animation: hs-fl var(--gait) linear var(--off) infinite; }
.hr.is-racing .hr-horse .hs-ff-u, .hr-win-art .hs-ff-u { animation: hs-fu var(--gait) linear calc(var(--off) - var(--gait) * .12) infinite; }
.hr.is-racing .hr-horse .hs-ff-l, .hr-win-art .hs-ff-l { animation: hs-fl var(--gait) linear calc(var(--off) - var(--gait) * .12) infinite; }
.hr.is-racing .hr-horse .hs-hn-u, .hr-win-art .hs-hn-u { animation: hs-hu var(--gait) linear var(--off) infinite; }
.hr.is-racing .hr-horse .hs-hn-l, .hr-win-art .hs-hn-l { animation: hs-hl var(--gait) linear var(--off) infinite; }
.hr.is-racing .hr-horse .hs-hf-u, .hr-win-art .hs-hf-u { animation: hs-hu var(--gait) linear calc(var(--off) - var(--gait) * .12) infinite; }
.hr.is-racing .hr-horse .hs-hf-l, .hr-win-art .hs-hf-l { animation: hs-hl var(--gait) linear calc(var(--off) - var(--gait) * .12) infinite; }
@keyframes hs-bob { 0%, 100% { transform: translateY(1.5px) rotate(2deg); } 50% { transform: translateY(-4px) rotate(-2.5deg); } }
@keyframes hs-nod { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes hs-tail { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(-2deg); } }
@keyframes hs-jock { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(1.5px); } }
@keyframes hs-fu { 0% { transform: rotate(-44deg); } 30% { transform: rotate(-6deg); } 55% { transform: rotate(34deg); } 78% { transform: rotate(10deg); } 100% { transform: rotate(-44deg); } }
@keyframes hs-fl { 0% { transform: rotate(-12deg); } 30% { transform: rotate(0); } 55% { transform: rotate(10deg); } 72% { transform: rotate(105deg); } 88% { transform: rotate(48deg); } 100% { transform: rotate(-12deg); } }
@keyframes hs-hu { 0% { transform: rotate(36deg); } 24% { transform: rotate(14deg); } 52% { transform: rotate(-36deg); } 76% { transform: rotate(-12deg); } 100% { transform: rotate(36deg); } }
@keyframes hs-hl { 0% { transform: rotate(14deg); } 22% { transform: rotate(-62deg); } 44% { transform: rotate(-30deg); } 62% { transform: rotate(4deg); } 100% { transform: rotate(14deg); } }

/* ---------- The dealer ---------- */
.hr-dealer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--lift);
}
.hr-felt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 10px;
  border-radius: 16px;
  background: radial-gradient(120% 120% at 30% 15%, #251c66, var(--well) 75%);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.hr-deck { position: relative; width: 40px; height: 56px; }
.hr-deck .pc { --card-w: 40px; position: absolute; top: 0; left: 0; }
.hr-deck .pc + .pc { transform: translate(2px, -3px); }
.hr-spot { position: relative; width: 58px; height: 81px; border-radius: 9px; box-shadow: inset 0 0 0 2px rgba(255, 197, 61, .3); }
.hr-slot { position: absolute; inset: 0; transform: rotate(var(--r)); }
.hr-slot .pc { --card-w: 100%; }
.hr-slot:not(:last-child) { filter: brightness(.7); }
.hr-slot.is-in { animation: hr-deal .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hr-deal { from { transform: translate(-54px, -4px) rotate(-14deg) scale(.7); } to { transform: rotate(var(--r)); } }
.hr-call { display: grid; gap: 5px; min-width: 0; }
.hr-call.is-new { animation: hr-rise .45s var(--ease); }
@keyframes hr-rise { from { opacity: 0; transform: translateY(8px); } }
.hr-call-k { color: var(--gold); font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.hr-call-m { display: flex; align-items: center; gap: 8px; font: 800 22px/1.1 var(--logo); letter-spacing: -.03em; }
.hr-call-m b { font-weight: 800; }
.hr-call-v { font: 700 15px/1.2 var(--logo); letter-spacing: -.02em; }
.hr-call-v.is-back { color: #ff8fae; }
.hr-call-v.is-win { color: var(--gold); }
.hr-call-s { color: var(--muted); font-size: 14px; line-height: 1.3; }
.hr-call-s:empty { display: none; }

/* Round badge in a horse's colours */
.hr-badge {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--silk);
  box-shadow: inset 0 -3px 0 var(--silk-2), inset 0 2px 0 rgba(255, 255, 255, .3), 0 0 0 2px rgba(255, 255, 255, .9);
}
.hr-badge .hr-suit { width: 56%; height: 56%; }
.hr-badge.is-sm { width: 24px; height: 24px; box-shadow: inset 0 -2px 0 var(--silk-2), 0 0 0 1.5px rgba(255, 255, 255, .85); }

/* ---------- The winner ---------- */
.hr-win {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 6px;
  border-radius: 22px;
  background: radial-gradient(110% 150% at 0% 50%, var(--silk-2) 0%, rgba(0, 0, 0, 0) 62%), var(--surface);
  box-shadow: inset 0 0 0 2px rgba(255, 197, 61, .6), 0 18px 40px -16px rgba(0, 0, 0, .8);
  animation: hr-win-in .7s var(--spring);
}
@keyframes hr-win-in { from { opacity: 0; transform: translateY(-12px) scale(.94); } }
.hr-win-art { --gait: .62s; --off: 0s; width: 116px; height: 87px; }
.hr-win-art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hr-win-tx { display: grid; gap: 4px; min-width: 0; }
.hr-win-k { display: flex; align-items: center; gap: 6px; color: var(--gold); font: 700 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.hr-win h1 { font: 800 clamp(26px, 7.6vw, 36px)/1.04 var(--logo); letter-spacing: -.035em; overflow-wrap: anywhere; }
.hr-win-s { color: var(--muted); font-size: 15px; line-height: 1.3; }

/* What this phone's player does now */
.hr-you { display: grid; gap: 6px; padding: 16px 18px 18px; border-radius: 22px; text-align: center; margin-bottom: 6px; }
.hr-you-k { font: 700 13px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.hr-you-m { font: 800 clamp(30px, 9vw, 42px)/1.04 var(--logo); letter-spacing: -.035em; }
.hr-you.is-win { color: #2a1600; background: linear-gradient(180deg, #ffd45e, var(--gold-2)); box-shadow: 0 6px 0 var(--gold-edge), 0 22px 44px -14px rgba(255, 170, 40, .65); }
.hr-you.is-lose { color: #ffffff; background: linear-gradient(180deg, #ff5d8f, #e2346c); box-shadow: 0 6px 0 #92143f, 0 22px 44px -14px rgba(255, 60, 120, .6); }
.hr-you.is-none { color: var(--muted); background: var(--surface); box-shadow: var(--lift); }
.hr.is-revealed .hr-you { animation: hr-pop-in .6s var(--spring) both; }
@keyframes hr-pop-in { from { opacity: 0; transform: scale(.85); } }

/* ---------- Betting ---------- */
.hr-bet { display: grid; gap: 12px; padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--lift); }
.hr-bet-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.hr-bet h2 { font: 800 14px/1 var(--logo); letter-spacing: .04em; text-transform: uppercase; }
.hr-stake { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 600 14px/1.1 var(--body); }
.hr-stake span { display: inline-flex; align-items: center; gap: 3px; }
.hr-stake .hr-ico { width: 15px; height: 15px; }
.hr-stake .is-win { color: #ffd66b; }
.hr-stake .is-lose { color: #ff9cb6; }
.hr-sips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.hr-sip.press { --face: #3b3294; --face-2: #2f287c; --edge: #17123f; --on: var(--text); --drop: 5px; height: 56px; padding: 0; border-radius: 16px; font: 800 22px/1 var(--logo); }
.hr-sip.press[aria-pressed="true"] { --face: #ffd45e; --face-2: var(--gold-2); --edge: var(--gold-edge); --on: #2a1600; }

.hr-acts { display: grid; gap: 12px; }
.hr-acts .go .hr-ico { width: 22px; height: 22px; }
.hr-wait {
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--muted);
  background: var(--well);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .5);
  font-size: 17px;
  text-align: center;
}

/* ---------- The list under the track ---------- */
.hr-list { display: grid; gap: 10px; }
.hr-list-head:empty { display: none; }
.hr-list-head { color: var(--muted); font: 800 13px/1 var(--logo); letter-spacing: .06em; text-transform: uppercase; }
.hr-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hr-row {
  width: 100%;
  min-height: 58px;
  padding: 8px 12px 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  background: var(--surface);
  border: 0;
  border-radius: 18px;
  box-shadow: var(--lift);
  font: 600 18px/1.2 var(--body);
  text-align: left;
  transition: transform .15s var(--ease), box-shadow .2s;
}
button.hr-row { cursor: pointer; }
button.hr-row:active { transform: scale(.98); }
.hr-row.is-current { box-shadow: inset 0 0 0 2.5px var(--gold), 0 10px 24px -12px rgba(255, 197, 61, .55); }
.hr-row.is-new { animation: hr-in .6s var(--spring); }
@keyframes hr-in { from { opacity: 0; transform: scale(.9); } }
.hr-nm { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hr-av {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1b1238;
  background: var(--av, #fff);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2);
  font: 800 13px/1 var(--logo);
}
.hr-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--silk);
  box-shadow: inset 0 -3px 0 var(--silk-2), inset 0 1px 0 rgba(255, 255, 255, .3);
  font: 800 15px/1 var(--logo);
}
.hr-tag .hr-suit { width: 18px; height: 18px; }
.hr-choosing { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 15px; }
.hr-choosing span { margin-right: 2px; }
.hr-choosing i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: hr-dot 1.2s ease-in-out infinite; }
.hr-choosing i:nth-of-type(2) { animation-delay: .15s; }
.hr-choosing i:nth-of-type(3) { animation-delay: .3s; }
@keyframes hr-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.hr-me { flex: none; padding: 5px 8px; border-radius: 8px; color: var(--gold); background: var(--well); font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }

/* Standings: one row per horse, best first, with who has money on it */
.hr-stand {
  display: grid;
  grid-template-columns: 34px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 10px;
  min-height: 50px;
  padding: 8px 12px 8px 12px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--lift);
}
.hr-stand .hr-nm { display: none; }
.hr-stand .hr-badge { width: 30px; height: 30px; }
.hr-rank { color: var(--muted); font: 800 14px/1 var(--logo); letter-spacing: -.02em; }
.hr-stand.is-first { box-shadow: inset 0 0 0 2px rgba(255, 197, 61, .7), 0 12px 26px -14px rgba(255, 197, 61, .5); }
.hr-stand.is-first .hr-rank { color: var(--gold); }
.hr-stand.is-mine { background: linear-gradient(180deg, #3a3080, #2b2367); }
.hr-who { grid-column: 3; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; min-width: 0; }
.hr-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--well); font: 600 14px/1 var(--body); }
.hr-chip > span:not(.hr-av) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-chip .hr-av { width: 20px; height: 20px; font-size: 9px; }
.hr-chip b { color: var(--gold); font: 800 12px/1 var(--logo); }
.hr-chip.is-me { box-shadow: inset 0 0 0 1.5px var(--gold); }
.hr-nobody { color: var(--muted); font-size: 14px; opacity: .7; }
.hr-pips { grid-column: 4; grid-row: 1; display: flex; gap: 3px; }
.hr-pips i { width: 7px; height: 12px; border-radius: 3px; background: var(--well); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); transition: background .3s, box-shadow .3s; }
.hr-pips i.is-on { background: var(--silk); box-shadow: 0 0 6px var(--silk); }

/* Settling up */
.hr-group { display: flex; align-items: center; gap: 8px; margin-top: 4px; font: 800 13px/1 var(--logo); letter-spacing: .06em; text-transform: uppercase; }
.hr-group.is-give { color: var(--gold); }
.hr-group.is-drink { color: #ff8fae; margin-top: 10px; }
.hr-result { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--lift); font: 600 18px/1.2 var(--body); }
.hr-result .hr-tag { height: 28px; padding: 0 10px 0 6px; font-size: 13px; }
.hr-result .hr-tag .hr-suit { width: 15px; height: 15px; }
.hr-amt { flex: none; min-width: 74px; display: flex; align-items: baseline; justify-content: center; gap: 4px; padding: 8px 10px; border-radius: 12px; }
.hr-amt b { font: 800 22px/1 var(--logo); letter-spacing: -.03em; }
.hr-amt span { font: 700 13px/1 var(--body); }
.hr-result.is-give .hr-amt { color: #2a1600; background: linear-gradient(180deg, #ffd45e, var(--gold-2)); box-shadow: 0 3px 0 var(--gold-edge); }
.hr-result.is-drink .hr-amt { color: #fff; background: linear-gradient(180deg, #ff5d8f, #e2346c); box-shadow: 0 3px 0 #92143f; }
.hr-result.is-me { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), var(--lift); }
.hr-idle { padding: 6px 4px 0; color: var(--muted); font-size: 15px; }
.hr-note { padding: 12px 14px; border-radius: 16px; color: var(--muted); background: var(--well); box-shadow: inset 0 1px 4px rgba(0, 0, 0, .5); font-size: 15px; }
.hr.is-revealed :is(.hr-result, .hr-group, .hr-idle, .hr-note) { animation: hr-slide .5s var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms); }
@keyframes hr-slide { from { opacity: 0; transform: translateY(14px); } }
.hr.is-finished:not(.is-revealed) .hr-list { opacity: 0; }

/* ---------- Tablets: a little more room for the horses ---------- */
@media (min-width: 560px) and (max-width: 899px) {
  .hr-track { --lane: 74px; }
}

/* ---------- Phones: the track runs edge to edge ---------- */
@media (max-width: 559px) {
  .hr-track { margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); border-radius: 0; }
}

@media (max-width: 359px) {
  .hr-dealer { gap: 10px; padding: 8px 10px 8px 8px; }
  .hr-felt { gap: 8px; padding: 8px; }
  .hr-deck { width: 32px; height: 45px; }
  .hr-deck .pc { --card-w: 32px; }
  .hr-spot { width: 50px; height: 70px; }
  .hr-call-m { font-size: 19px; gap: 6px; }
  .hr-call-v { font-size: 13px; }
  .hr-call-s { font-size: 13px; }
  .hr-sips { gap: 6px; }
}

/* ---------- Laptops and TVs: the track on the left, everything else on the right ---------- */
@media (min-width: 900px) {
  .hr { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
  .hr-track { grid-column: 1; grid-row: 1; }
  .hr-side { grid-column: 2; grid-row: 1; display: grid; gap: 16px; align-content: start; min-width: 0; }
  .hr-track { --lane: clamp(84px, 13.4vh, 124px); border-radius: 28px; }
  .hr-head h1 { font-size: 32px; }
  .hr-dealer { grid-template-columns: 1fr; justify-items: center; gap: 12px; padding: 14px 16px 16px; text-align: center; }
  .hr-felt { gap: 18px; padding: 14px 22px; }
  .hr-deck { width: 72px; height: 101px; }
  .hr-deck .pc { --card-w: 72px; }
  .hr-spot { width: 112px; height: 157px; border-radius: 13px; }
  @keyframes hr-deal { from { transform: translate(-80px, -4px) rotate(-14deg) scale(.7); } to { transform: rotate(var(--r)); } }
  .hr-call { justify-items: center; gap: 6px; }
  .hr-call-k { font-size: 13px; }
  .hr-call-m { justify-content: center; font-size: 32px; }
  .hr-call-m .hr-badge.is-sm { width: 32px; height: 32px; }
  .hr-call-v { font-size: 19px; }
  .hr-call-s { font-size: 16px; }
  .hr-plate { height: 26px; font-size: 13px; }
  .hr-plate .hr-suit { width: 15px; height: 15px; }
  .hr-info-nm { font-size: 16px; }
  .hr-backers .hr-av { width: 32px; height: 32px; font-size: 13px; }
  .hr-you-tag { font-size: 11px; padding: 4px 8px; }
  .hr-minus { font-size: 20px; }
  .hr-win { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 16px; }
  .hr-win-art { width: 180px; height: 135px; }
  .hr-win-k { justify-content: center; }
  .hr-you-m { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .hr *, .hr *::before, .hr *::after { animation: none !important; }
  .hr-runner { transition-duration: .2s !important; }
  .hr-door, .hr-info { transition: none; }
}
