:root {
  --amber: #f2a93b;
  --amber-dark: #7d4612;
  --cream: #f1e6cf;
  --muted: #a99abf;
  --panel: rgba(22, 15, 40, .94);
  --panel-2: #0d0a1c;
  --line: #5d4e7c;
  --night: #0a0c22;
  --ease: cubic-bezier(.22, .9, .24, 1);
  /* Set from game.js on load and resize. */
  --bee-y: 60vh;
  --ground-h: 26vh;
  --card-top: 58px;
  --t0: #8d7fa3;
  --t1: #a6d36b;
  --t2: #ffd166;
  --t3: #ff9ecb;
  --t4: #8fe9ff;
  --t5: #c9a0ff;
  --t6: #fff3b0;
}
@media (min-width: 700px) { :root { --card-top: 66px; } }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Cascadia Mono", Consolas, "Lucida Console", "DejaVu Sans Mono", Menlo, monospace;
  color: var(--cream);
  background: var(--night);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }

/* ---------- scene ---------- */
.scene { position: fixed; inset: 0; overflow: hidden; }

.world {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(21200px * var(--f, 1) + 100vh + 700px);
  transform: translateY(calc(var(--cam, 0) * 1px));
  transition: transform 1.5s var(--ease);
  will-change: transform;
  background: var(--night);
}
.snap .world, .snap .bee, .snap .float, .snap .you { transition: none !important; }

/* The sky is a stack of colour bands; each band dithers into the next one. */
.sky { position: absolute; left: 0; right: 0; top: 0; bottom: var(--ground-h); }
.band { position: absolute; left: 0; right: 0; }
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background-size: 8px 8px;
}
.band::after { top: 0; background-image: repeating-conic-gradient(var(--next) 0 25%, transparent 0 50%); }
.band::before { top: 8px; background-image: repeating-conic-gradient(var(--next) 0 25%, transparent 0 100%); }

.sun {
  position: absolute; right: 17%; bottom: calc(var(--ground-h) - 132px);
  width: 264px; height: 264px;
}
.sun svg, .moon svg, .cloud svg, .ridge svg, .bird svg { display: block; width: 100%; height: 100%; }

.moon {
  position: absolute; left: 14%; bottom: calc(var(--ground-h) + 4300px * var(--f, 1));
  width: 91px; height: 91px;
}

.cloud { position: absolute; animation: drift var(--d, 60s) steps(18) infinite alternate; }
@keyframes drift { from { translate: -40px 0; } to { translate: 40px 0; } }

.star { position: absolute; background: #fff; animation: twinkle var(--d, 3s) steps(2, jump-none) infinite alternate; }
@keyframes twinkle { from { opacity: calc(var(--o, 1) * .3); } to { opacity: var(--o, 1); } }

/* A small flock crossing the sunset. */
.birds {
  position: absolute; left: 0; bottom: calc(var(--ground-h) + 150px * var(--f, 1));
  width: 150px; height: 70px;
  animation: cross 80s linear infinite;
}
@keyframes cross { from { translate: -160px 0; } to { translate: calc(100vw + 160px) -60px; } }
.bird { position: absolute; width: 15px; height: 9px; }
.bird .up { animation: wing .7s steps(1) infinite; }
.bird .down { animation: wing .7s steps(1) infinite reverse; }
@keyframes wing { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Flat farmland: stripes of fields that get wider towards the viewer. */
.ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--ground-h);
  background: linear-gradient(to bottom,
    #ffcf85 0 2px,
    #a26d37 2px 8px,
    #c5873a 8px 20px,
    #2c3024 20px 26px,
    #cf943f 26px 46px,
    #543629 46px 60px,
    #d7a045 60px 96px,
    #303323 96px 106px,
    #c88d3a 106px 176px,
    #b67d33 176px 280px,
    #a36e2c 280px);
}
.ground::before {
  /* Faint rows in the fields. */
  content: ""; position: absolute; left: 0; right: 0; top: 26px; bottom: 0;
  background: repeating-linear-gradient(90deg, rgba(31, 19, 41, .14) 0 2px, transparent 2px 10px);
}
.ground::after {
  /* Dusk settles over the nearest field. */
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(34, 24, 58, .34), rgba(18, 12, 40, .74));
  pointer-events: none;
}

.ridge { position: absolute; left: 0; right: 0; bottom: 100%; height: 30px; opacity: .55; }
.sil { position: absolute; bottom: calc(100% - 2px); transform-origin: 0 100%; }
/* Where each silhouette and hay bale stands. Kept here, not as style attributes in the page,
   so the site can forbid inline styles (see _headers). */
.at-8 { left: 8%; } .at-25 { left: 25%; } .at-33 { left: 33%; } .at-38 { left: 38%; }
.at-66 { left: 66%; } .at-71 { left: 71%; } .at-75 { left: 75%; } .at-92 { left: 92%; }
.b1 { left: 18%; top: 70px; } .b2 { left: 41%; top: 78px; } .b3 { left: 63%; top: 72px; } .b4 { left: 84%; top: 80px; }
@media (max-width: 520px) {
  /* Less crowding on phones: smaller silhouettes and sun, and the sun moved clear of the barn. */
  .sil { scale: .65; }
  .sun { width: 198px; height: 198px; right: 4%; bottom: calc(var(--ground-h) - 99px); }
}

.bale {
  position: absolute; width: 20px; height: 14px; background: #dba548;
  box-shadow: inset -4px 0 0 #bd8733, inset 0 -4px 0 #9b6628, 4px 4px 0 rgba(31, 19, 41, .35);
}

.mote {
  position: absolute; width: 3px; height: 3px; background: #ffe08a;
  animation: mote var(--d, 7s) ease-in-out infinite alternate;
}
@keyframes mote {
  from { translate: 0 0; opacity: .1; }
  50% { opacity: var(--o, .8); }
  to { translate: var(--dx, 10px) -34px; opacity: .15; }
}

.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(8, 6, 20, .5));
}

/* ---------- bee ---------- */
.bee {
  position: absolute; left: 50%; top: var(--bee-y); width: 72px; height: 54px;
  margin: -27px 0 0 -36px;
  transition: top 1.5s var(--ease);
}
.bee-inner { animation: bob 1.6s steps(4, jump-none) infinite alternate; }
.bee svg { display: block; overflow: visible; width: 72px; height: 54px; }
@keyframes bob { from { translate: 0 -3px; } to { translate: 0 3px; } }

.wing {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: flap .12s steps(2, jump-none) infinite alternate;
}
.wing2 { animation-delay: -.06s; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }

.bee.fly .bee-inner { animation: dash 1.5s cubic-bezier(.3, .8, .3, 1); }
.bee.fly .wing { animation-duration: .05s; }
@keyframes dash {
  0% { translate: 0 0; rotate: 0deg; }
  22% { translate: 0 -26px; rotate: -16deg; }
  70% { translate: 0 -8px; rotate: -7deg; }
  100% { translate: 0 0; rotate: 0deg; }
}
.bee.miss .bee-inner { animation: shake .6s steps(6, jump-none); }
@keyframes shake {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  20% { translate: -8px 6px; rotate: 8deg; }
  40% { translate: 8px 10px; rotate: -6deg; }
  60% { translate: -6px 8px; rotate: 5deg; }
  80% { translate: 4px 3px; rotate: -2deg; }
}

/* What the bee has earned in this round: a crown after Dronning, a golden glow after Bieliardær. */
.bee .crown { display: none; }
.bee.crowned .crown { display: inline; animation: crownin .5s steps(5, jump-none); }
@keyframes crownin { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }
.bee.gilded .bee-inner svg { filter: drop-shadow(0 0 5px #ffd166) drop-shadow(0 0 14px rgba(255, 209, 102, .55)); }
.bee.gilded::before, .bee.gilded::after {
  content: ""; position: absolute; width: 4px; height: 4px; background: #fff3b0; pointer-events: none;
  animation: glint 1.4s steps(4, jump-none) infinite;
}
.bee.gilded::before { left: -8px; top: 6px; }
.bee.gilded::after { right: -10px; bottom: 4px; animation-delay: -.7s; }
@keyframes glint { 0%, 100% { opacity: 0; scale: .5; } 50% { opacity: 1; scale: 1.5; } }

/* Small bees circling the bee while it climbs. The flattened box turns the circles into ellipses. */
.swarm {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: scaleY(.55);
  opacity: 0; transition: opacity .6s; pointer-events: none;
}
.bee.rise .swarm { opacity: 1; transition-duration: .2s; }
.swarm i {
  position: absolute; left: 0; top: 0; width: 6px; height: 8px; margin: -4px -3px;
  background: linear-gradient(90deg, #2a1830 0 2px, #ffcf4a 2px 4px, #2a1830 4px 6px);
  animation: orbit var(--d, 1.2s) linear infinite; animation-delay: var(--t, 0s);
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--r, 40px)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--r, 40px)) rotate(-360deg); }
}

/* Height marks: things about this tall, passing by as the bee climbs. */
.mark {
  position: absolute; left: max(14px, calc(50% - 410px)); max-width: min(320px, 44vw);
  bottom: calc(var(--ground-h) + 38px + var(--m) * 12px * var(--f, 1));
  padding-bottom: 7px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.5;
  text-transform: uppercase; color: rgba(241, 230, 207, .5); pointer-events: none;
}
/* The text sits just above its height, like the rank labels, and the stub marks the exact height. */
.mark::before {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 34px;
  border-top: 2px dashed rgba(241, 230, 207, .45);
}

/* Ruler along the right edge: a tick every 10 m, a longer one and a number every 50 m. */
.ruler {
  position: absolute; right: 8px; width: 12px; pointer-events: none;
  bottom: calc(var(--ground-h) + 38px); height: calc(var(--max, 1750) * 12px * var(--f, 1));
  border-right: 2px solid rgba(241, 230, 207, .22);
  background:
    repeating-linear-gradient(to top, rgba(241, 230, 207, .5) 0 2px, transparent 2px calc(600px * var(--f, 1))) right / 12px 100% no-repeat,
    repeating-linear-gradient(to top, rgba(241, 230, 207, .28) 0 2px, transparent 2px calc(120px * var(--f, 1))) right / 6px 100% no-repeat;
}
.ruler span {
  position: absolute; right: 18px; bottom: calc(var(--m) * 12px * var(--f, 1)); translate: 0 50%;
  font-size: 9px; font-weight: 700; letter-spacing: 1px; color: rgba(241, 230, 207, .42);
}
/* Where the bee is on the ruler. */
.you {
  position: absolute; right: 24px; top: var(--bee-y); translate: 0 -50%;
  padding: 2px 6px; background: var(--amber); color: #1f1329;
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  transition: top 1.5s var(--ease); pointer-events: none;
}
.you::after {
  content: ""; position: absolute; left: 100%; top: 50%; width: 10px; height: 2px; margin-top: -1px;
  background: var(--amber);
}
@media (max-width: 900px) { .tline span { right: 50px; } }

/* While the answer is being revealed the bee climbs steadily, nose up. */
.bee.rise .bee-inner { animation: none; rotate: -12deg; }
.bee.rise .wing { animation-duration: .05s; }

/* Height lines the bee climbs past during the reveal, one per rank. */
.tline {
  position: absolute; left: 50%; width: min(820px, 94vw); height: 0; translate: -50% 1px;
  border-top: 2px dashed rgba(241, 230, 207, .3);
  animation: fadein .35s ease-out;
}
.tline span {
  position: absolute; right: 0; bottom: 7px; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: rgba(241, 230, 207, .5); white-space: nowrap;
}
.tline.c1 { --c: var(--t1); }
.tline.c2 { --c: var(--t2); }
.tline.c3 { --c: var(--t3); }
.tline.c4 { --c: var(--t4); }
.tline.c5 { --c: var(--t5); }
.tline.c6 { --c: var(--t6); }
.tline.passed { border-top-color: var(--c); }
.tline.passed span { color: var(--c); }
.tline.hit { border-top-style: solid; box-shadow: 0 0 14px var(--c); }
.tline.c6.hit { border-top-width: 4px; box-shadow: 0 0 26px var(--c), 0 0 60px rgba(255, 209, 102, .6); }

/* Whole-screen flash when the rarest rank is hit. */
.flash { position: absolute; inset: 0; background: #fff3b0; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .9s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .75; } 100% { opacity: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.trail {
  position: absolute; width: 4px; height: 4px; margin-left: -2px; background: #ffe08a;
  animation: trail 1.3s ease-out forwards; pointer-events: none;
}
@keyframes trail { to { opacity: 0; translate: 0 16px; } }

.tag {
  position: absolute; left: 50%; top: calc(var(--bee-y) + 34px); translate: -50% 0;
  padding: 4px 10px; background: var(--panel); border: 2px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--amber); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.tag.show { opacity: 1; }

.pollen {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px;
  background: #ffe08a; pointer-events: none;
  animation: pollen .9s ease-out forwards;
}
@keyframes pollen { to { translate: var(--dx) var(--dy); opacity: 0; } }

.float {
  position: absolute; left: 50%; top: calc(var(--bee-y) - 54px); translate: -50% 0;
  font-weight: 700; font-size: 24px; color: var(--amber); white-space: nowrap; letter-spacing: 2px;
  text-shadow: 3px 3px 0 #1f1329;
  opacity: 0; pointer-events: none;
  transition: top 1.5s var(--ease);
}
.float.show { animation: floatup 1.5s ease-out; }
@keyframes floatup {
  0% { opacity: 0; translate: -50% 16px; scale: .6; }
  18% { opacity: 1; translate: -50% 0; scale: 1.15; }
  30% { scale: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; translate: -50% -26px; }
}

/* ---------- hud ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px;
}
.hud-right { display: flex; gap: 6px; align-items: center; }
.pill {
  background: var(--panel); border: 2px solid var(--line);
  padding: 6px 10px; font: inherit; font-weight: 700; font-size: 11px; color: var(--cream);
  text-transform: uppercase; letter-spacing: 2px; white-space: nowrap;
}
.pill.icon { cursor: pointer; color: var(--muted); }
.pill.icon:disabled { opacity: .35; cursor: default; }
#alt { min-width: 72px; text-align: center; color: var(--amber); }
.dots { display: flex; gap: 5px; }
.dot { width: 12px; height: 12px; background: var(--panel-2); border: 2px solid var(--line); }
.dot.now { border-color: var(--amber); background: var(--amber-dark); }
.dot.done { border-color: #1f1329; }
.dot.t0 { background: #4a3d5c; }
.dot.t1 { background: var(--t1); }
.dot.t2 { background: var(--t2); }
.dot.t3 { background: var(--t3); }
.dot.t4 { background: var(--t4); }
.dot.t5 { background: var(--t5); }
.dot.t6 { background: var(--t6); border-color: #ffd166; box-shadow: 0 0 8px #ffd166; }
@media (max-width: 420px) {
  .hud { padding: 10px 8px; }
  .dot { width: 10px; height: 10px; }
  .dots { gap: 3px; }
  .pill { font-size: 10px; padding: 6px 6px; letter-spacing: 1px; }
  #alt { min-width: 56px; }
}

/* ---------- cards ---------- */
main {
  position: fixed; top: var(--card-top); left: 0; right: 0; z-index: 2;
  padding: 0 12px; display: flex; justify-content: center;
  max-height: calc(100vh - var(--card-top) - 14px);
}
.card {
  width: min(460px, 100%); background: var(--panel); border: 2px solid var(--amber);
  padding: 16px 18px 16px; max-height: inherit; overflow: auto;
  box-shadow: 0 0 0 2px #120c22, 7px 7px 0 rgba(8, 6, 20, .55);
  text-align: center;
}
h1 { margin: 6px 0 12px; line-height: 0; }
h1 svg { width: min(280px, 84%); height: auto; }
h2 { font-size: 19px; margin: 12px 0 2px; line-height: 1.35; font-weight: 700; }
.label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin: 0; }
.lead { font-size: 13px; margin: 12px 0 16px; line-height: 1.7; }
.small { font-size: 11px; color: var(--muted); margin: 12px 0 0; letter-spacing: .5px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.row .label { white-space: nowrap; }
.secs b { font-variant-numeric: tabular-nums; color: var(--amber); }

.timer { height: 8px; background: var(--panel-2); border: 2px solid var(--line); margin: 12px 0; }
.timer > i { display: block; height: 100%; width: 100%; background: var(--amber); transform-origin: left center; }
.timer.low > i { background: #ff5d5d; }
/* Get-ready pause before the clock starts: the bar is full and marches on the spot. */
.timer.wait > i {
  background: repeating-linear-gradient(90deg, var(--amber) 0 8px, transparent 8px 16px);
  opacity: .6; animation: march .6s steps(4) infinite;
}
@keyframes march { to { background-position: 16px 0; } }

form { display: flex; gap: 10px; }
input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: 0; background: var(--panel-2); color: var(--cream);
  caret-color: var(--amber);
}
input::placeholder { color: #75678d; }
form.wrong { animation: nudge .3s steps(6, jump-none); }
form.wrong input { border-color: #ff5d5d; }
@keyframes nudge {
  0%, 100% { translate: 0 0; }
  25% { translate: -6px 0; }
  50% { translate: 6px 0; }
  75% { translate: -3px 0; }
}
.hint { min-height: 15px; font-size: 11px; color: #ff9a9a; margin: 10px 0 0; letter-spacing: .5px; line-height: 1.8; }
.hint button {
  font: inherit; font-weight: 700; color: var(--amber); background: none; cursor: pointer;
  border: 0; border-bottom: 2px solid var(--amber); padding: 0 0 1px; letter-spacing: 1px; text-transform: uppercase;
}
input:focus { outline: none; border-color: var(--amber); }

.primary {
  font: inherit; font-weight: 700; font-size: 12px; padding: 12px 16px;
  text-transform: uppercase; letter-spacing: 3px;
  border: 0; border-radius: 0; background: var(--amber); color: #1f1329;
  box-shadow: 3px 3px 0 var(--amber-dark); cursor: pointer;
}
.primary:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--amber-dark); }
.primary:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.primary.wide { width: calc(100% - 3px); }
.primary:disabled { opacity: .5; cursor: default; }

/* Secondary button: same shape as .primary, outlined instead of filled. */
.ghost {
  font: inherit; font-weight: 700; font-size: 12px; padding: 10px 16px; margin-top: 12px;
  text-transform: uppercase; letter-spacing: 3px;
  border: 2px solid var(--amber); border-radius: 0; background: transparent; color: var(--amber);
  cursor: pointer;
}
.ghost.wide { width: calc(100% - 3px); }

/* Menu card */
#menu { max-height: calc(100vh - var(--card-top) - 16px); overflow-y: auto; }
#menu:focus { outline: none; }
.menu-head {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--amber);
  margin: 16px 0 4px; text-align: left;
}
.menu-note { text-align: left; margin: 0 0 4px; line-height: 1.6; }
.menu-note a { color: var(--amber); }
.menu-note a:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

/* ?bilde: the start screen without buttons, used to make the picture shown when a link is shared. */
.bilde .hud, .bilde #startBtn, .bilde #startInfo, .bilde .ruler, .bilde .you, .bilde #marks { display: none; }
.bilde main { top: 70px; }
.bilde .card { zoom: 1.5; }
#menu .summary { margin-bottom: 6px; }
#menu .summary li { align-items: center; }
#menu .primary.wide { margin-top: 14px; }
.mini {
  font: inherit; font-weight: 700; font-size: 10px; padding: 4px 8px; letter-spacing: 2px;
  text-transform: uppercase; border: 2px solid var(--line); border-radius: 0;
  background: var(--panel-2); color: var(--cream); cursor: pointer; white-space: nowrap;
}
.mini:disabled { opacity: .45; cursor: default; }
.mini:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.ghost:hover { background: rgba(242, 169, 59, .12); }
.ghost:active { translate: 2px 2px; }
.ghost:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

.result { animation: pop .3s steps(4, jump-none); }
@keyframes pop { from { scale: .94; opacity: 0; } to { scale: 1; opacity: 1; } }
.result .rank {
  font-size: 26px; font-weight: 700; letter-spacing: 6px; text-transform: uppercase;
  margin: 12px 0 0; padding-left: 6px; overflow-wrap: anywhere;
}
.result .name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; margin-top: 10px; }
.result .tier { font-weight: 700; margin-top: 6px; font-size: 14px; letter-spacing: 2px; color: var(--amber); }
.flavor { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.t0 { color: var(--t0); }
.t1 { color: var(--t1); }
.t2 { color: var(--t2); }
.t3 { color: var(--t3); }
.t4 { color: var(--t4); }
.t5 { color: var(--t5); }
.t6 { color: var(--t6); }
.result .rank.t5 { text-shadow: 0 0 12px rgba(201, 160, 255, .6); }
.result .rank.t6 {
  letter-spacing: 4px; text-shadow: 0 0 10px #ffd166, 0 0 26px rgba(255, 158, 203, .7);
  animation: shimmer 1.2s steps(6) infinite;
}
@keyframes shimmer {
  0%, 100% { color: #fff3b0; }
  33% { color: #ffffff; }
  66% { color: #ffd166; }
}
.others { font-size: 11px; color: var(--muted); margin: 10px 0 14px; }

.big {
  font-size: 48px; font-weight: 700; line-height: 1; margin: 12px 0 4px; color: var(--amber);
  text-shadow: 4px 4px 0 #1f1329; font-variant-numeric: tabular-nums;
}
.squares { display: flex; justify-content: center; gap: 6px; margin: 0 0 12px; }
.squares .dot { width: 18px; height: 18px; }
.summary { list-style: none; padding: 0; margin: 0 0 12px; text-align: left; font-size: 12px; }
.summary li {
  display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px;
  border-bottom: 2px solid #2a2042;
}
/* The flight as a height profile, one step per answer. */
.profile { width: min(280px, 100%); height: 48px; margin: 0 auto 12px; border-bottom: 2px solid #2a2042; }
.profile svg { display: block; width: 100%; height: 100%; }
.profile .body { fill: #2a2042; }
.profile .c0 { fill: #4a3d5c; }
.profile .c1 { fill: var(--t1); }
.profile .c2 { fill: var(--t2); }
.profile .c3 { fill: var(--t3); }
.profile .c4 { fill: var(--t4); }
.profile .c5 { fill: var(--t5); }
.profile .c6 { fill: var(--t6); }

/* A round that was just finished is shown answer by answer (see showEnd in game.js). */
#end.staged .stage { opacity: 0; }
#end.staged .stage:not(.in) { pointer-events: none; }
#end.staged .stage.in { opacity: 1; animation: stagein .32s steps(4, jump-none); }
@keyframes stagein { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
#end.staged .profile .stage.in {
  transform-box: fill-box; transform-origin: 50% 100%; animation: growup .35s steps(5, jump-none);
}
@keyframes growup { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.big.land { animation: land .5s steps(5, jump-none); }
@keyframes land { 0%, 100% { scale: 1; } 40% { scale: 1.18; } }

.summary li span:first-child { overflow-wrap: anywhere; }
.summary li b { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .world, .bee, .float, .you { transition: none; }
  .bee-inner, .wing, .cloud, .star, .result, .birds, .bird g, .mote, .swarm i, .timer.wait > i,
  .bee.gilded::before, .bee.gilded::after, .crown { animation: none !important; }
  .bird .down { opacity: 0; }
}
