/* ==========================================================================
   Café Rush — styles. Theme tokens and shared components come from
   shared/style.css.

   The bar: a paper ticket and a tall serving glass on top, the cups on a
   wooden counter below. Glass is drawn with borders and a soft shine; each
   layer is a block whose height is its units (--n × --u), so a pour simply
   animates heights. Strawberry has seeds, ashta a fine speckle, honey a
   sheen, a blend is marbled from its two juices.
   ========================================================================== */

.cr, .cr-art {
  --u: 26px; /* one unit of liquid */
  --glass-edge: rgba(43, 33, 24, .55);
  --glass-fill: rgba(176, 208, 222, .3); /* a cool tint: an empty glass never looks like cream */
  --glass-shine: rgba(255, 255, 255, .85);
  --wood: #9a6a43;
  --wood-dark: #7a5133;
  position: relative;
  display: grid;
  gap: .75rem;
  max-width: 30rem;
  margin-inline: auto;
  padding-block: .5rem 2rem;
}
:root[data-theme="dark"] :is(.cr, .cr-art) {
  --glass-edge: rgba(236, 226, 205, .55);
  --glass-fill: rgba(176, 208, 222, .08);
  --glass-shine: rgba(255, 255, 255, .22);
  --wood: #6b4a31;
  --wood-dark: #4f3523;
}
@media (max-width: 360px) { .cr { --u: 22px; } }

.cr-title { font-size: clamp(1.6rem, 7vw, 2.2rem); text-align: center; }
.cr-sub { font-size: 1.2rem; text-align: center; }
.cr-note { font-size: 1.02rem; font-weight: 700; text-align: center; }
.cr-center { text-align: center; font-weight: 700; }
.cr-center-btn { justify-self: center; }
.cr-result { font-size: 1.45rem; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.cr-squares { font-size: 1.6rem; letter-spacing: .15rem; text-align: center; }
.cr-sent { font-size: 1.15rem; font-weight: 900; text-align: center; color: var(--olive); }
:root[data-theme="dark"] .cr-sent { color: #b7cc6a; }
.cr-top { display: flex; align-items: center; gap: .6rem; }
.cr-top > .cr-stats { margin-inline-start: auto; }
.cr-top > .clock { margin-inline-start: .3rem; font-size: 1.9rem; }
.cr-top > .tag + .clock, .cr-top > .tag + .cr-top__end { margin-inline-start: auto; }
.cr-best { font-weight: 800; text-align: center; color: var(--muted); }
.cr-best.cr-center { font-size: 1.2rem; color: var(--olive); }
:root[data-theme="dark"] .cr-best.cr-center { color: #b7cc6a; }

/* ---------- Menu ---------- */

.cr-menu { display: grid; gap: .5rem; }
.cr-tagline { font-size: 1.08rem; font-weight: 700; text-align: center; }
.cr-art { --u: 16px; display: flex; justify-content: center; align-items: flex-end; gap: 1.6rem; padding: 2.6rem 0 .6rem; }
.cr-art .cr-glass { cursor: default; }
.cr-art .cr-glass[data-vessel="tall"] { --w: 52px; }
.cr-art .cr-glass[data-vessel="mug"] { --w: 62px; }
.cr-art .cr-glass[data-vessel="teacup"] { --w: 70px; }
.cr-art .cr-garnish--rim { width: 26px; top: -11px; left: -10px; }
.cr-art .cr-garnish--cream { width: 34px; }
.cr-art .cr-teabag { width: 26px; right: calc(100% - 15px); top: -6px; }
.cr-art .cr-glass[data-kind="tea"] .cr-garnish--rim { left: auto; right: -10px; }
.howto { max-width: 30rem; margin: 1.5rem auto 0; padding: .25rem 1rem; }
.howto summary { min-height: var(--tap); display: flex; align-items: center; font-weight: 800; cursor: pointer; }
.howto ol { display: grid; gap: .5rem; padding: 0 0 1rem; padding-inline-start: 1.4rem; list-style: decimal; }
.host--small .host__teta { width: 76px; }
.host--small .bubble { padding: .65rem .9rem; font-weight: 700; }

/* ---------- Layers ---------- */

.cr-stack { position: absolute; inset: auto 0 0; display: flex; flex-direction: column-reverse; }
.cr-layer {
  height: calc(var(--n) * var(--u));
  flex: none;
  background-color: var(--c);
  /* Roundness: lighter at the left, a touch darker at the right, and a bright line where it meets the layer above. */
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .22), transparent 28%, transparent 72%, rgba(0, 0, 0, .1));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28);
  transition: height .24s cubic-bezier(.3, .7, .3, 1), background-color .35s;
}
.cr-layer.is-going { transition-duration: .2s; }
.cr-layer[data-id="s"] {
  background-image:
    radial-gradient(circle, #ffe08a 0 .9px, transparent 1.3px),
    radial-gradient(circle, #ffe08a 0 .9px, transparent 1.3px),
    linear-gradient(90deg, rgba(255, 255, 255, .22), transparent 28%, transparent 72%, rgba(0, 0, 0, .1));
  background-size: 11px 9px, 11px 9px, auto;
  background-position: 2px 3px, 7px 7px, 0 0;
}
.cr-layer[data-id="k"] {
  background-image:
    radial-gradient(ellipse, #20180f 0 .9px, transparent 1.4px),
    radial-gradient(ellipse, #20180f 0 .9px, transparent 1.4px),
    linear-gradient(90deg, rgba(255, 255, 255, .22), transparent 28%, transparent 72%, rgba(0, 0, 0, .1));
  background-size: 10px 8px, 10px 8px, auto;
  background-position: 1px 2px, 6px 6px, 0 0;
}
.cr-layer[data-id="M"] {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .6), transparent 30%, transparent 70%, rgba(110, 120, 130, .12));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(120, 120, 110, .15);
}
.cr-layer[data-id="e"] { background-image: linear-gradient(90deg, rgba(255, 220, 180, .12), transparent 28%, transparent 72%, rgba(0, 0, 0, .2)); box-shadow: inset 0 3px 0 rgba(196, 140, 90, .55); }
.cr-layer[data-id="H"], .cr-layer[data-id="C"] {
  background-image:
    linear-gradient(105deg, transparent 18%, rgba(255, 214, 120, .55) 30%, transparent 42%, transparent 62%, rgba(255, 214, 120, .3) 70%, transparent 78%),
    linear-gradient(90deg, rgba(255, 255, 255, .2), transparent 28%, transparent 72%, rgba(0, 0, 0, .15));
}
.cr-layer[data-id="blend"] {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .2), transparent 28%, transparent 72%, rgba(0, 0, 0, .1)),
    linear-gradient(100deg, var(--c) 0 18%, var(--c2) 30% 42%, var(--c) 54% 66%, var(--c2) 78%);
}

/* ---------- The stage: ticket and glass ---------- */

.cr-bar { display: grid; gap: 1rem; }
.cr-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem; padding: 2.4rem .2rem 0; }

.cr-ticket {
  --z: 7px;
  position: relative;
  align-self: start;
  max-width: 13.5rem;
  padding: .75rem .9rem calc(.8rem + var(--z));
  color: #2b2118;
  background: #fffaf0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  rotate: -1.5deg;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .18));
  /* A torn bottom edge. */
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) var(--z) repeat-x;
}
.cr-ticket__for { display: grid; padding-bottom: .4rem; margin-bottom: .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1.5px dashed rgba(43, 33, 24, .35); }
[dir="rtl"] .cr-ticket { font-family: inherit; rotate: 1.5deg; }
[dir="rtl"] .cr-ticket__for { letter-spacing: 0; }
.cr-ticket__lines { display: grid; gap: .35rem; padding: 0; list-style: none; }
.cr-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 700; line-height: 1.15; transition: opacity .3s; }
.cr-line small { font-weight: 700; opacity: .7; }
.cr-line--top { grid-template-columns: auto minmax(0, 1fr); padding-bottom: .3rem; margin-bottom: .1rem; border-bottom: 1.5px dashed rgba(43, 33, 24, .25); }
.cr-line.is-done { opacity: .4; text-decoration: line-through; text-decoration-thickness: 2px; }
.cr-swatch { display: block; width: 1.05rem; height: 1.05rem; background-color: var(--c); border: 1.5px solid rgba(43, 33, 24, .5); border-radius: 4px; }
.cr-swatch[data-id="blend"] { background-image: linear-gradient(115deg, var(--c) 0 45%, var(--c2) 55%); }
.cr-stamp {
  position: absolute;
  inset-inline-end: .5rem;
  bottom: 1.2rem;
  padding: .1rem .5rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: #b8322a;
  border: 2.5px solid currentColor;
  border-radius: 6px;
  opacity: 0;
  rotate: -12deg;
  scale: 1.6;
  transition: opacity .2s, scale .25s cubic-bezier(.3, 1.6, .5, 1);
}
.cr-ticket.is-served .cr-stamp { opacity: .9; scale: 1; }

/* The serving glass: tall for juice and matcha, a glass mug for coffee and hot
   chocolate, a teacup on its saucer for tea; the order drawn faintly inside. */
.cr-glass {
  --w: 78px;
  position: relative;
  display: block;
  width: var(--w);
  padding: 0;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cr-glass[data-vessel="mug"] { --w: 92px; margin-inline-end: 20px; }
.cr-glass[data-vessel="teacup"] { --w: 104px; margin-inline-end: 16px; margin-bottom: 10px; }
.cr-glass__body {
  position: relative;
  z-index: 1;
  display: block;
  height: calc(var(--units) * var(--u) + 14px);
  overflow: hidden;
  background: var(--glass-fill);
  border: 3px solid var(--glass-edge);
  border-top-width: 1.5px;
  border-radius: 4px 4px 14px 14px;
  box-shadow: 0 10px 0 -3px var(--glass-edge); /* the heavy base */
}
.cr-glass[data-vessel="mug"] .cr-glass__body { border-radius: 5px 5px 16px 16px; border-width: 1.5px 3.5px 4px; box-shadow: none; }
.cr-glass[data-vessel="teacup"] .cr-glass__body { height: calc(var(--units) * var(--u) + 10px); border-radius: 4px 4px 48% 48% / 4px 4px 40% 40%; box-shadow: none; }
/* Handles: a ring on the side of the mug, a smaller one on the teacup. */
.cr-handle {
  position: absolute;
  top: 22%;
  left: calc(100% - 6px);
  width: 26px;
  height: 46%;
  border: 4px solid var(--glass-edge);
  border-left: 0;
  border-radius: 0 50% 50% 0 / 0 40% 40% 0;
}
.cr-glass[data-vessel="teacup"] .cr-handle { top: 14%; width: 20px; height: 36%; }
.cr-saucer {
  position: absolute;
  z-index: 0;
  bottom: -11px;
  left: -16px;
  right: -16px;
  height: 16px;
  background: linear-gradient(#fffdf8, #e9e1d2);
  border: 2.5px solid var(--glass-edge);
  border-radius: 50%;
}
.cr-glass__body::after, .cr-cup__body::after {
  /* Shine on the glass, over the liquid. */
  content: "";
  position: absolute;
  z-index: 2;
  inset: 6px auto 8px 7px;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(var(--glass-shine), transparent);
  pointer-events: none;
}
.cr-ghost .cr-layer {
  /* The order, faintly: a wash of each layer's colour and a dashed line where it ends. */
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border-top: 2px dashed color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: none;
}
.cr-ghost .cr-layer[data-id="M"] { border-top-color: rgba(150, 150, 140, .7); }
.cr-glass.is-ready .cr-glass__body { border-color: var(--olive); box-shadow: 0 0 0 4px color-mix(in srgb, var(--olive) 25%, transparent); }
.cr-glass.is-ready[data-vessel="tall"] .cr-glass__body { box-shadow: 0 10px 0 -3px var(--olive), 0 0 0 4px color-mix(in srgb, var(--olive) 25%, transparent); }
:root[data-theme="dark"] .cr-glass.is-ready .cr-glass__body { border-color: #b7cc6a; }

/* Ice: three cubes floating at the top. */
.cr-ice { position: absolute; z-index: 1; inset: 3px 6px auto; height: 26px; pointer-events: none; }
.cr-ice i {
  position: absolute;
  top: 2px;
  width: 19px;
  height: 19px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .85), rgba(214, 238, 250, .45) 55%, rgba(190, 222, 240, .6));
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(40, 70, 90, .25);
  opacity: 0;
  translate: 0 -40px;
  transition: opacity .15s, translate .4s cubic-bezier(.3, 1.5, .5, 1);
}
.cr-ice i:nth-child(1) { left: 0; rotate: -14deg; }
.cr-ice i:nth-child(2) { left: 36%; top: 6px; rotate: 9deg; transition-delay: .07s; }
.cr-ice i:nth-child(3) { right: 0; rotate: 22deg; transition-delay: .14s; }
.cr-glass.is-topped .cr-ice i { opacity: 1; translate: 0 0; }

/* Whipped cream: a swirl on top of the rim. */
.cr-cream { position: absolute; z-index: 2; left: -4px; right: -4px; bottom: calc(100% - 12px); line-height: 0; transform-origin: bottom; scale: 1 0; opacity: 0; transition: scale .35s cubic-bezier(.3, 1.5, .5, 1), opacity .15s; }
.cr-cream svg { width: 100%; height: auto; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .12)); }
.cr-glass[data-vessel="teacup"] .cr-cream { bottom: calc(100% - 22px); }
.cr-glass.is-topped .cr-cream { scale: 1; opacity: 1; }

/* Served: the garnish, a straw, steam. */
.cr-straw {
  /* Standing in the glass, leaning a little (never through its sides), and out over the rim. */
  --surface: calc(var(--units) * var(--u) - 4px); /* from the straw's foot up to the top of the drink */
  position: absolute;
  z-index: 2;
  bottom: 7px;
  left: 46%;
  width: 7px;
  height: calc(var(--surface) + 18px + 2.4rem);
  background: repeating-linear-gradient(180deg, #fff 0 9px, #e4475e 9px 18px);
  border-radius: 3px;
  box-shadow: 0 0 0 1.5px rgba(43, 33, 24, .35);
  transform-origin: bottom;
  rotate: 5deg;
  /* Under the surface the drink is in front of it: it shows faintly through. */
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .3) var(--surface), #000 var(--surface));
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .3) var(--surface), #000 var(--surface));
  opacity: 0;
  translate: 0 -1.2rem;
  transition: opacity .2s, translate .35s cubic-bezier(.3, 1.4, .5, 1);
}
.cr-glass[data-kind="matcha"] .cr-straw { background: repeating-linear-gradient(180deg, #fff 0 9px, #6f9a3a 9px 18px); }
.cr-garnish, .cr-teabag { position: absolute; z-index: 3; line-height: 0; opacity: 0; scale: .4; transition: opacity .2s .15s, scale .3s .15s cubic-bezier(.3, 1.6, .5, 1); }
.cr-garnish svg, .cr-teabag svg { width: 100%; height: auto; }
/* A citrus wheel cut onto the rim. */
.cr-garnish--rim { top: -15px; left: -13px; width: 34px; rotate: -18deg; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); }
/* Beans or marshmallows on the whipped cream. */
.cr-garnish--cream { bottom: calc(100% + 8px); left: 50%; width: 46px; translate: -50% 0; }
/* The tea bag: its string comes out of the tea, over the rim, down to the tag outside (on the side away from the handle). */
.cr-teabag { top: -8px; right: calc(100% - 18px); width: 36px; }
.cr-teabag svg { scale: -1 1; }
/* On a teacup, the lemon sits on the other side of the rim. */
.cr-glass[data-kind="tea"] .cr-garnish--rim { left: auto; right: -13px; rotate: 18deg; }
.cr-glass.is-served .cr-straw { opacity: 1; translate: 0 0; }
.cr-glass.is-served .cr-garnish, .cr-glass.is-served .cr-teabag { opacity: 1; scale: 1; }
.cr-steam { position: absolute; z-index: 0; bottom: calc(100% + 2px); left: 50%; width: 46px; translate: -50% 0; line-height: 0; opacity: 0; transition: opacity .6s .3s; pointer-events: none; }
.cr-steam svg { width: 100%; height: auto; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; }
.cr-steam path { animation: cr-steam 2.4s ease-in-out infinite; }
.cr-steam path:nth-child(2) { animation-delay: .5s; }
.cr-steam path:nth-child(3) { animation-delay: 1s; }
.cr-glass.is-topped .cr-steam { bottom: calc(100% + 26px); }
.cr-glass.is-served .cr-steam { opacity: .55; }
@keyframes cr-steam {
  0% { opacity: 0; translate: 0 8px; }
  40% { opacity: 1; }
  100% { opacity: 0; translate: 0 -8px; }
}

/* The toppings shelf, under the ticket. */
.cr-side { display: grid; gap: .7rem; align-content: start; }
.cr-shelf { display: flex; flex-wrap: wrap; gap: .4rem; }
.cr-topping {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 40px;
  padding: .25rem .65rem .25rem .4rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  color: var(--text);
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s, transform .15s;
}
.cr-topping.is-waiting { opacity: 1; animation: cr-wait 1.2s ease-in-out infinite; }
.cr-topping.is-hint-to { opacity: 1; border-color: var(--sun); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 35%, transparent); }
@keyframes cr-wait { 50% { transform: translateY(-3px); } }
.cr-icon { display: inline-block; flex: none; line-height: 0; }
.cr-icon--cream { width: 26px; }
.cr-icon--cream svg { width: 100%; height: auto; }
.cr-icon--ice { position: relative; width: 24px; height: 20px; }
.cr-icon--ice i { position: absolute; width: 13px; height: 13px; background: linear-gradient(135deg, #fff, #cfe9f6); border: 1.5px solid #8bb8cc; border-radius: 3px; }
.cr-icon--ice i:first-child { left: 0; top: 5px; rotate: -12deg; }
.cr-icon--ice i:last-child { right: 0; top: 1px; rotate: 16deg; }

/* ---------- The counter and its cups ---------- */

.cr-counter {
  display: grid;
  grid-template-columns: repeat(var(--cups), minmax(0, 60px));
  justify-content: space-evenly;
  align-items: end;
  gap: .4rem;
  padding: 1.6rem .5rem .8rem;
  background: linear-gradient(transparent calc(100% - 18px), var(--wood) calc(100% - 18px), var(--wood-dark));
  border-radius: 0 0 14px 14px;
}
.cr-cup {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.3, 1.4, .5, 1), opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.cr-cup__body {
  position: relative;
  display: block;
  height: calc(4 * var(--u) + 8px);
  overflow: hidden;
  background: var(--glass-fill);
  border: 3px solid var(--glass-edge);
  border-top-width: 1.5px;
  border-radius: 3px 3px 12px 12px;
}
.cr-cup.is-up { transform: translateY(-16px); }
.cr-cup.is-up .cr-cup__body { border-color: var(--sun); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 35%, transparent); }
.cr-cup.is-no { opacity: .55; }
.cr-cup.is-pouring { z-index: 5; opacity: 1; transform-origin: 50% 0; }
/* A hint: the cup to pour from bounces, its target glows. */
.cr-cup.is-hint-from { animation: cr-bob .9s ease-in-out 3; }
.cr-cup.is-hint-from .cr-cup__body, .cr-cup.is-hint-to .cr-cup__body, .cr-glass.is-hint-to .cr-glass__body { border-color: var(--sun); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 35%, transparent); }
@keyframes cr-bob { 50% { transform: translateY(-10px); } }
.cr-cup:focus-visible, .cr-glass:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }

/* Pouring here would blend two juices: a small warning over the cup. */
.cr-badge {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  translate: -50% 4px;
  padding: .05rem .4rem;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
  color: #fff;
  background: var(--tomato);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, translate .15s;
}
.cr-cup.is-blend .cr-badge { opacity: 1; translate: -50% 0; }

.cr-stream { position: fixed; z-index: 4; width: 6px; border-radius: 3px; background-color: var(--c); background-image: linear-gradient(90deg, var(--c), var(--c2)); pointer-events: none; }

.is-shake { animation: cr-shake .32s; }
@keyframes cr-shake {
  0%, 100% { translate: 0; }
  25%, 75% { translate: -4px; }
  50% { translate: 4px; }
}

/* ---------- Under the bar ---------- */

.cr-play { display: grid; gap: .7rem; }
.cr-hint { min-height: 1.3em; margin-top: -.2rem; font-weight: 800; text-align: center; opacity: 0; transition: opacity .2s; }
.cr-hint.is-on { opacity: 1; }
.cr-rule { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; font-size: .9rem; font-weight: 700; color: var(--muted); }
.cr-rule__chips { display: inline-flex; align-items: center; gap: .25rem; }
.cr-rule__chips b { font-size: .85rem; }
.cr-tools { display: flex; justify-content: center; gap: .5rem; }
.cr-stats { display: flex; gap: .9rem; text-align: center; }
.cr-stats span, .cr-goal { display: grid; line-height: 1.1; }
.cr-goal { padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: help; }
.cr-goal small { text-decoration: underline dotted; text-underline-offset: 2px; }
.cr-stats small { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cr-stats b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }

.cr-served { display: grid; gap: .4rem; text-align: center; animation: cr-rise .35s cubic-bezier(.3, 1.3, .5, 1); }
.cr-served__title { font-size: 1.5rem; font-weight: 900; }
.cr-served__line { font-weight: 700; color: var(--muted); }
@keyframes cr-rise { from { opacity: 0; translate: 0 12px; } }

/* ---------- The race ---------- */

.cr-race { display: grid; gap: .35rem; padding: 0; list-style: none; }
.cr-runner { display: grid; grid-template-columns: auto minmax(0, 6rem) 1fr auto; align-items: center; gap: .5rem; padding: .35rem .6rem; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; }
.cr-runner bdi { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.cr-runner b { font-variant-numeric: tabular-nums; }
.cr-runner.is-you { background: var(--surface-2); border-width: 3px; }
.cr-runner.is-done b { color: var(--olive); }
:root[data-theme="dark"] .cr-runner.is-done b { color: #b7cc6a; }
.cr-runner__bar { height: .6rem; overflow: hidden; background: var(--surface-2); border: 2px solid var(--line); border-radius: 999px; }
.cr-runner__bar i { display: block; height: 100%; background: var(--sea); transition: width .3s; }

@media (prefers-reduced-motion: reduce) {
  .cr-layer, .cr-cup, .cr-straw, .cr-garnish, .cr-teabag, .cr-stamp, .cr-cream, .cr-ice i { transition: none; }
  .cr-steam path, .cr-topping.is-waiting { animation: none; }
  .is-shake, .cr-served { animation: none; }
}
