/* DrawPack games C: Chicken Dash (assets/arcade-games-c.js).
   Loaded after games-b.css. Use the game's world (--g1 --g2 --g3 --g4, --g-ink) for colour; shared chrome lives in src/game.html. */

/* ===== Chicken Dash =====
   A night street seen from above. The ground (tarmac, markings, verges, light pools) and the things overhead (darkness with holes
   under the lamps, signal gantry, lamp wires, foreground sign beam) are painted once into two canvases by the script; everything
   that moves or changes state is DOM on top. --zy is the crossing line, --gy the stop line where a cleared lane's car waits. */
.view[data-view="chicken"] { --rh: 460px; --lw: 96px; --vw: 168px; --ew: 204px; --cw: 52px; --hen: 100px; --pv: 28px; --kb: 9px; --gt: 18px; --gh: 26px; --bh: 40px;
  --zy: calc(var(--rh) * .64); --gy: calc(var(--rh) * .38); --ko: calc(var(--hen) * .38);
  --ck-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg stroke='%23120c00' stroke-opacity='.55' stroke-width='8'%3E%3Cpath d='M8 5l10 10-10 10M24 5l10 10-10 10M40 5l10 10-10 10'/%3E%3C/g%3E%3Cg stroke='%23ffd43d' stroke-width='5'%3E%3Cpath d='M8 5l10 10-10 10' opacity='.5'/%3E%3Cpath d='M24 5l10 10-10 10' opacity='.75'/%3E%3Cpath d='M40 5l10 10-10 10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --ck-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='6.5' cy='4.2' r='2.4' fill='%23ff4a3d'/%3E%3Ccircle cx='10' cy='3.2' r='2.7' fill='%23ff4a3d'/%3E%3Cpath d='M14 9.5l5.5 2L14 13.5z' fill='%23f58a0a'/%3E%3Ccircle cx='9' cy='11.5' r='7' fill='%23ffd43d' stroke='%237a4a00' stroke-width='.8'/%3E%3Ccircle cx='6.8' cy='9' r='2.6' fill='%23fff6b8' opacity='.75'/%3E%3Ccircle cx='11.6' cy='10.4' r='1.7' fill='%23191b33'/%3E%3Ccircle cx='12.1' cy='9.9' r='.55' fill='%23fff'/%3E%3C/svg%3E");
  --ck-ft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 26'%3E%3Cpath d='M6 1.5C2 5 1 13 3.4 20.5L6 22l2.6-1.5C11 13 10 5 6 1.5z' fill='%23fff' stroke='%2314162a' stroke-opacity='.45' stroke-width='.7'/%3E%3Cpath d='M6 1.5C10 5 11 13 8.6 20.5L6 22z' fill='%23d3daf0'/%3E%3Cpath d='M6 3v22.5' stroke='%238f98bd' stroke-width='.8' stroke-linecap='round'/%3E%3Cpath d='M6 7L3.4 9.200M6 10l-3.300 2.800M6 13l-3.300 2.800M6 16l-2.800 2.400M6 7l2.600 2.200M6 10l3.300 2.800M6 13l3.300 2.800M6 16l2.800 2.400' stroke='%238f98bd' stroke-opacity='.65' stroke-width='.5'/%3E%3Cpath d='M9.900 11.300l-2.200.3 2 1.400z' fill='%2314162a' fill-opacity='.4'/%3E%3Cpath d='M4.200 20.800q-1.500 1-1.200 2.600M7.800 20.800q1.500 1 1.200 2.600' stroke='%23fff' stroke-width='.7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --ck-fty: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 26'%3E%3Cpath d='M6 1.5C2 5 1 13 3.4 20.5L6 22l2.6-1.500C11 13 10 5 6 1.500z' fill='%23ffe680' stroke='%237a4a00' stroke-opacity='.55' stroke-width='.7'/%3E%3Cpath d='M6 1.500C10 5 11 13 8.600 20.500L6 22z' fill='%23ffb81c'/%3E%3Cpath d='M6 3v22.500' stroke='%23a86200' stroke-width='.8' stroke-linecap='round'/%3E%3Cpath d='M6 7L3.400 9.200M6 10l-3.300 2.800M6 13l-3.300 2.800M6 16l-2.800 2.400M6 7l2.600 2.200M6 10l3.300 2.800M6 13l3.300 2.800M6 16l2.800 2.400' stroke='%23a86200' stroke-opacity='.6' stroke-width='.5'/%3E%3Cpath d='M2.300 12.300l2.200.3-2 1.400z' fill='%237a4a00' fill-opacity='.45'/%3E%3Cpath d='M4.200 20.800q-1.500 1-1.200 2.600M7.800 20.800q1.500 1 1.200 2.600' stroke='%23fff3b0' stroke-width='.7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --ck-skid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 250' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23010208'%3E%3Cpath d='M38 4C41 84 28 150 27 246' stroke-width='2.600' stroke-opacity='.7' stroke-linecap='round' stroke-dasharray='22 6 40 4 58 7 200'/%3E%3Cpath d='M38 4C41 84 28 150 27 246' pathLength='100' stroke-width='5' stroke-opacity='.7' stroke-dasharray='0 36 21 2.500 17 2 30'/%3E%3Cpath d='M38 4C41 84 28 150 27 246' pathLength='100' stroke-width='8' stroke-opacity='.8' stroke-dasharray='0 66 13 1.500 30'/%3E%3Cpath d='M81 10C84 88 71 152 70 246' stroke-width='2.600' stroke-opacity='.7' stroke-linecap='round' stroke-dasharray='34 5 30 6 66 4 200'/%3E%3Cpath d='M81 10C84 88 71 152 70 246' pathLength='100' stroke-width='5' stroke-opacity='.7' stroke-dasharray='0 42 17 2 19 2.500 30'/%3E%3Cpath d='M81 10C84 88 71 152 70 246' pathLength='100' stroke-width='8' stroke-opacity='.8' stroke-dasharray='0 70 11 2 30'/%3E%3C/g%3E%3Cg fill='none' stroke='%23c8d2ff' stroke-opacity='.3' stroke-width='1'%3E%3Cpath d='M31.500 170Q31 210 31.500 246M74.500 176Q74 212 74.500 246'/%3E%3C/g%3E%3C/svg%3E");
  --ck-dent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath d='M3 1q12 8 24 0l-1.500 5.500q-10.500 5-21 0z' fill='%2305060d' fill-opacity='.66'/%3E%3Cpath d='M5 2.500q10 6 20 0' stroke='%23fff' stroke-opacity='.6' stroke-width='.8' fill='none'/%3E%3Cpath d='M9 4L6.500 8.500M15 5.500l.5 5M21 4l3 4' stroke='%2305060d' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M2 9l2.500 1-1 2zM26 10l2-1.500.5 2.500zM13 10.500l1.500-.5.3 1.800z' fill='%23fff3b0'/%3E%3C/svg%3E");
  --ck-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Crect x='3' y='6.5' width='10' height='7' rx='1' fill='%23ecd9aa'/%3E%3Cpath d='M8 .8L.8 7.4h14.4z' fill='%23e2463a'/%3E%3Cpath d='M8 1.6L2.6 6.6' stroke='%23fff' stroke-opacity='.6' stroke-width='.8'/%3E%3Cpath d='M6.4 13.5V10.4a1.6 1.6 0 0 1 3.2 0v3.1z' fill='%23ffc84a'/%3E%3C/svg%3E"); }
#chicken-cash[hidden] { display: none; } /* only while a round is live */
/* the play dock: a kerb under the road. Cross keeps the game's fill, Cash out beside it is a dark plate with the live value in gold */
.view[data-view="chicken"] .gdock { margin: 0 -18px; width: calc(100% + 36px); padding: 12px 18px 14px; background: linear-gradient(180deg, #0b0d1d, #070816); margin-bottom: -18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.view[data-view="chicken"] .gdock .big-btn { flex: 0 1 300px; min-height: 56px; }
.view[data-view="chicken"] .gdock #chicken-go:not(:disabled) { background: var(--g1); color: var(--g-ink); }
.view[data-view="chicken"] .gdock #chicken-cash { flex: 0 1 300px; background: #14173a; color: var(--gold); border: 1px solid #ffd43d66; box-shadow: 0 10px 22px -10px #000d; font-variant-numeric: tabular-nums; }
.view[data-view="chicken"] .gdock #chicken-cash:not(:disabled):hover { background: #1b1f4a; }
.view[data-view="chicken"] .gdock #chicken-cash:disabled { color: #ffffff80; border-color: #ffffff26; }
.view[data-view="chicken"] .board { scroll-margin-top: 76px; gap: 12px; justify-content: flex-start; border-color: #3d4680;
  background: radial-gradient(90% 50% at 50% 0, rgba(74, 86, 160, .5), transparent 70%), linear-gradient(180deg, #1c2044, #0d0f22 60%); }
#chicken-go[aria-disabled="true"] { filter: saturate(.7) brightness(.9); }
/* balance changes that land together (a win plus an achievement) queue under each other instead of overprinting */
body:has(.view[data-view="chicken"]:not([hidden])) .balance .delta ~ .delta { margin-top: 17px; }
body:has(.view[data-view="chicken"]:not([hidden])) .balance .delta ~ .delta ~ .delta { margin-top: 34px; }
body:has(.view[data-view="chicken"]:not([hidden])) .balance .delta ~ .delta ~ .delta ~ .delta { margin-top: 51px; }

/* ----- scoreboard: a bolted metal panel with a ring of bulbs, the multiplier in lights and a strip map of the road ----- */
.ck-score { position: relative; z-index: 1; padding: 17px 20px 15px; border-radius: 16px; border: 1px solid #55609e;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px), linear-gradient(180deg, #333a70, #1c2048 45%, #101228);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .55), inset 0 0 0 3px #0b0d1e, inset 0 0 0 4px rgba(130, 142, 210, .4), inset 0 12px 22px -12px rgba(150, 165, 255, .25), 0 8px 16px -6px rgba(2, 3, 10, .7); }
.ck-score::before, .ck-score::after { content: ""; position: absolute; left: 22px; right: 22px; top: 6px; bottom: 6px; pointer-events: none;
  background: radial-gradient(circle, #fff6cf 0 1.3px, #ffc23d 2px, rgba(255, 170, 40, .35) 3px, transparent 4.2px) 0 0 / 22px 8px repeat-x, radial-gradient(circle, #fff6cf 0 1.3px, #ffc23d 2px, rgba(255, 170, 40, .35) 3px, transparent 4.2px) 0 100% / 22px 8px repeat-x;
  animation: ckBulb 1.1s steps(1) infinite; }
.ck-score::after { left: 33px; animation-delay: -.55s; }
@keyframes ckBulb { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }
.ck-score.live::before, .ck-score.live::after { animation-duration: .8s; }
.ck-score.won::before, .ck-score.won::after { animation: ckBulb .3s steps(1) infinite, ckChase .9s linear infinite; }
.ck-score.won::after { animation-delay: -.15s, -.15s; }
.ck-score.won { border-color: color-mix(in srgb, var(--success) 60%, #55609e); }
.ck-score.top::before, .ck-score.top::after { animation-duration: .2s, .5s; }
.ck-score.lost::before { animation: ckBulbDie 2.2s steps(1) forwards; }
.ck-score.lost::after { animation: ckBulbDie 2.2s steps(1) -.35s forwards; }
.ck-score.lost { border-color: color-mix(in srgb, var(--g3) 55%, #55609e); animation: ckJolt 420ms linear; }
@keyframes ckChase { to { background-position: 22px 0, 22px 100%; } }
@keyframes ckBulbDie { 0%, 12%, 30%, 44%, 61% { opacity: 1; } 6%, 20%, 37%, 52% { opacity: .1; } 70%, 100% { opacity: .16; } 76% { opacity: .7; } }
@keyframes ckJolt { 20% { transform: translate(-3px, 2px) rotate(-.4deg); } 45% { transform: translate(3px, -1px) rotate(.3deg); } 70% { transform: translate(-2px, 0); } }
.ck-bolt { position: absolute; left: 7px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(40deg, transparent 44%, rgba(6, 7, 18, .8) 45% 55%, transparent 56%), radial-gradient(circle at 35% 30%, #f1f4ff, #8f98bd 55%, #454d74); box-shadow: 0 1px 1px rgba(0, 0, 0, .7), 0 0 0 1px rgba(6, 7, 18, .6); }
.ck-bolt.b { left: auto; right: 7px; } .ck-bolt.c { top: auto; bottom: 7px; } .ck-bolt.d { left: auto; right: 7px; top: auto; bottom: 7px; }
.ck-read { position: relative; display: flex; align-items: center; gap: 8px 16px; min-height: 62px; }
.ck-lcd { position: relative; flex: none; min-width: 172px; padding: 7px 18px 5px; border-radius: 12px; overflow: hidden; text-align: center; background: linear-gradient(180deg, #04050c, #0d0f20);
  box-shadow: inset 0 3px 10px #000, inset 0 0 0 1.5px #000, inset 0 -10px 18px -10px color-mix(in srgb, var(--lc, var(--g1)) 40%, transparent), 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 1px rgba(130, 142, 210, .35); }
.ck-lcd b { position: relative; display: inline-block; font: 800 50px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--lc, var(--g1)); text-shadow: 0 0 18px color-mix(in srgb, var(--lc, var(--g1)) 60%, transparent), 0 0 3px color-mix(in srgb, var(--lc, var(--g1)) 80%, transparent), 0 3px 0 rgba(0, 0, 0, .6); }
.ck-lcd b.pop { animation: ckPop 340ms var(--ease-pop); }
.ck-lcd::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 3px), linear-gradient(118deg, rgba(255, 255, 255, .13) 0 30%, transparent 30.5%); }
.ck-lcd::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 46px; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); transform: translateX(-80px) skewX(-18deg); }
.ck-read.t1 { --lc: #ffb52e; } .ck-read.t2 { --lc: #ff7a3d; } .ck-read.t3 { --lc: #ff5fd0; }
.ck-read.t2 .ck-lcd, .ck-read.t3 .ck-lcd { box-shadow: inset 0 3px 10px #000, inset 0 0 0 1.5px #000, inset 0 -14px 22px -8px color-mix(in srgb, var(--lc) 60%, transparent), 0 0 0 1.5px var(--lc), 0 0 18px color-mix(in srgb, var(--lc) 60%, transparent); }
.ck-read.t2 .ck-lcd b, .ck-read.t3 .ck-lcd b { background: linear-gradient(180deg, #fff6c4 12%, #ffc23d 45%, var(--lc) 82%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--lc) 75%, transparent)); }
.ck-read.t3 .ck-lcd b { background-image: linear-gradient(100deg, #7cf4ff, #fff6c4 25%, #ffc23d 45%, #ff5fd0 70%, #7cf4ff); background-size: 220% 100%; animation: ckHue 2.4s linear infinite; }
.ck-read.won { --lc: var(--success); }
.ck-read.won .ck-lcd::after { animation: ckShine 1.5s ease-in-out 2; }
.ck-read.lost { --lc: var(--g3); }
.ck-read.lost .ck-lcd b { text-shadow: 0 0 10px color-mix(in srgb, var(--g3) 40%, transparent), 0 3px 0 rgba(0, 0, 0, .6); animation: ckFlick 1.6s steps(1) 1; }
@keyframes ckPop { 0% { transform: scale(.82); } 45% { transform: scale(1.2); } 100% { transform: none; } }
@keyframes ckShine { 0% { transform: translateX(-80px) skewX(-18deg); opacity: 1; } 60%, 100% { transform: translateX(260px) skewX(-18deg); opacity: 1; } }
@keyframes ckHue { to { background-position: -220% 0; } }
@keyframes ckFlick { 0%, 14%, 28% { opacity: .35; } 7%, 21%, 35%, 100% { opacity: 1; } }
.ck-info { display: grid; gap: 5px; min-width: 0; justify-items: start; flex: none; }
.ck-info span { font: 700 11.5px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--g1); background: rgba(5, 6, 15, .75); padding: 5px 11px; border-radius: var(--r-pill); white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 2px 4px rgba(0, 0, 0, .6); }
.ck-info small { font: 600 13px var(--font-body); color: #d5daf2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-variant-numeric: tabular-nums; }
.ck-info span:empty { display: none; } /* nothing to say before a run */
.ck-read.won .ck-info span { color: var(--success); } .ck-read.lost .ck-info span { color: var(--danger); }
.ck-read.won .ck-info small { color: #fff; font-weight: 700; }
.ck-info small b { font: 800 16px var(--font-mono); color: var(--gold); letter-spacing: -.01em; text-shadow: 0 0 10px color-mix(in srgb, var(--gold) 45%, transparent); }
.ck-read.won .ck-info small b { color: var(--success); text-shadow: 0 0 10px color-mix(in srgb, var(--success) 50%, transparent); }
.ck-read.lost .ck-info small b { color: var(--danger); text-shadow: none; }
.ck-info .cn { display: inline-block; width: 15px; height: 15px; margin: 0 5px -2px 2px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8d0, #ffd43d 45%, #e08a00); box-shadow: inset 0 0 0 1.5px #a8690088, inset 0 0 0 3px #fff4, 0 1px 0 #7a4a00, 0 0 8px rgba(255, 212, 61, .45); }
/* the middle of the board: how busy the road is and what the next lane pays */
.ck-mid { margin-left: auto; display: flex; align-items: stretch; gap: 8px; flex: none; }
.ck-mid > span { display: grid; grid-template-columns: auto auto; align-items: center; gap: 1px 8px; padding: 6px 12px; border-radius: 12px; background: linear-gradient(180deg, rgba(5, 6, 15, .8), rgba(5, 6, 15, .5)); box-shadow: inset 0 0 0 1px rgba(150, 162, 230, .28), inset 0 2px 5px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .1); }
.ck-mid em { grid-column: 1 / -1; font: 700 9.5px var(--font-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #aab2d4; white-space: nowrap; }
.ck-mid b { font: 800 15px var(--font-mono); color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ck-mid small { font: 700 10.5px var(--font-mono); color: var(--success); white-space: nowrap; }
.ck-nx b { color: var(--g1); text-shadow: 0 0 10px color-mix(in srgb, var(--g1) 45%, transparent); }
#ck-top { margin-left: 0; }
.ck-read.won .ck-nx, .ck-read.lost .ck-nx, .ck-read.t3 .ck-nx { display: none; }
@media (max-width: 1560px) { .ck-nx small { display: none; } .ck-read { gap: 8px 12px; } }
@media (max-width: 1000px) and (min-width: 861px) { .ck-nx { display: none; } } /* the board is at its narrowest beside the controls: every lane still carries its own multiplier */
#ck-top { flex: none; display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 9px; padding: 6px 13px 6px 9px; border-radius: 12px; font-style: normal; background: linear-gradient(180deg, rgba(5, 6, 15, .8), rgba(5, 6, 15, .55)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent), inset 0 2px 5px rgba(0, 0, 0, .6); }
#ck-top::before { content: ""; grid-row: 1 / 3; width: 17px; height: 22px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 30% 24%, #fff 0 9%, transparent 10%), radial-gradient(circle at 36% 28%, #fffbe0, #ffe066 45%, #e79a00); box-shadow: 0 0 10px rgba(255, 212, 61, .6); }
#ck-top em u { text-decoration: none; }
#ck-top em { white-space: nowrap; font: 700 9.5px var(--font-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #aab2d4; }
#ck-top b { font: 800 16px var(--font-mono); color: var(--gold); font-variant-numeric: tabular-nums; }

/* strip map: coop, one stud per lane, golden egg. The little hen shows where you are. */
.ck-prog { position: relative; display: flex; align-items: center; gap: 3px; height: 16px; margin: 20px 2px 12px; }
.ck-prog i { position: relative; flex: 1; min-width: 0; height: 9px; border-radius: 5px; background: linear-gradient(180deg, #05060f, #171a36); box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255, 255, 255, .13); }
.ck-prog i::before { content: ""; position: absolute; inset: 1px; border-radius: 4px; transform: scaleX(0); transform-origin: 0 50%; transition: transform 260ms var(--ease); background: linear-gradient(180deg, color-mix(in srgb, var(--pc, var(--g2)) 55%, #fff), var(--pc, var(--g2)) 55%, color-mix(in srgb, var(--pc, var(--g2)) 70%, #000)); box-shadow: 0 0 8px color-mix(in srgb, var(--pc, var(--g2)) 70%, transparent); }
.ck-prog i.ok::before, .ck-prog i.bust::before, .ck-prog i.now::before { transform: none; }
.ck-prog i.now { --pc: var(--g1); } .ck-prog i.now::before { animation: ckPulse 1s ease-in-out infinite; }
.ck-prog i.bust { --pc: var(--g3); }
.ck-prog i[data-n] { height: 13px; }
.ck-prog i[data-n]::after { content: attr(data-n); position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 1px; font: 700 9px/1 var(--font-mono); font-style: normal; color: #8f98bd; }
.ck-home, .ck-goal { position: relative; flex: none; width: 18px; height: 16px; background: var(--ck-home) center / contain no-repeat; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.ck-goal { width: 13px; height: 16px; margin-left: 2px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 30% 24%, #fff 0 9%, transparent 10%), radial-gradient(circle at 36% 28%, #fffbe0, #ffe066 45%, #e79a00); filter: none; box-shadow: 0 0 8px rgba(255, 212, 61, .7); }
.ck-goal.won { animation: ckGoal .7s ease-in-out infinite; }
.ck-prog .at::after, .ck-prog i[data-n].at::after { content: ""; position: absolute; left: 50%; top: auto; bottom: 100%; width: 18px; height: 18px; margin: 0 0 1px -9px; transform: none; background: var(--ck-pin) center / contain no-repeat; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .6)); animation: ckPin .9s ease-in-out infinite; }
@keyframes ckPin { 50% { transform: translateY(-2.5px); } }
@keyframes ckGoal { 50% { transform: scale(1.3); box-shadow: 0 0 16px 4px rgba(255, 212, 61, .9); } }
@keyframes ckPulse { 50% { opacity: .45; } }

/* ----- the window on the road, and the things fixed to the window rather than the road ----- */
.ck-stage { position: relative; z-index: 1; width: calc(100% + 36px); margin: 0 -18px; border-top: 3px solid #05060f; box-shadow: 0 -1px 0 rgba(255, 255, 255, .14); }
.ck-view { position: relative; z-index: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.ck-view::-webkit-scrollbar { display: none; }
.ck-over { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.ck-over > * { position: absolute; }
.ck-vig { inset: 0; background: radial-gradient(115% 95% at 50% 52%, transparent 58%, rgba(3, 4, 16, .6) 100%); }
.ck-edge { top: 0; bottom: 0; width: 58px; transition: opacity 260ms linear; }
.ck-edge.l { left: 0; background: linear-gradient(90deg, rgba(7, 9, 24, .92), rgba(7, 9, 24, .5) 40%, transparent); }
.ck-edge.r { right: 0; width: 72px; background: linear-gradient(270deg, rgba(7, 9, 24, .92), rgba(7, 9, 24, .5) 40%, transparent); }
.ck-edge.r::after { content: ""; position: absolute; right: 7px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: var(--ck-chev) 86% 50% / 54px 27px no-repeat, radial-gradient(circle at 35% 28%, #3d4680, #14172f 62%, #090a17); border: 1.5px solid color-mix(in srgb, var(--g1) 75%, #fff); box-shadow: 0 3px 0 rgba(2, 3, 10, .7), 0 6px 10px rgba(2, 3, 10, .5), inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 0 color-mix(in srgb, var(--g1) 60%, transparent); animation: ckNudge 1.2s ease-in-out infinite; }
.ck-edge.r::before { content: ""; position: absolute; right: 0; bottom: 0; width: 100px; height: var(--bh); background: linear-gradient(270deg, rgba(7, 9, 24, .96), rgba(7, 9, 24, .7) 45%, transparent); }
.ck-over.atl .ck-edge.l, .ck-over.atr .ck-edge.r { opacity: 0; }
.ck-leaf { left: -34px; bottom: -40px; width: 128px; filter: blur(2px); transform: rotate(-2deg); }
.ck-leaf svg { display: block; width: 100%; }
.ck-leaf.r { left: auto; right: -30px; bottom: auto; top: -34px; width: 150px; transform: rotate(182deg); }

.ck-flash { inset: 0; opacity: 0; }
.ck-flash.go { animation: ckFlash 300ms ease-out; }
.ck-flash.w { background: #fff; }
.ck-flash.y { background: radial-gradient(70% 70% at 40% 60%, rgba(255, 226, 120, .75), transparent); }
.ck-flash.g { background: radial-gradient(90% 90% at 70% 60%, rgba(255, 236, 150, .95), rgba(255, 200, 80, .35) 60%, transparent); animation-duration: 520ms; }
@keyframes ckFlash { 0% { opacity: .85; } 100% { opacity: 0; } }
@keyframes ckNudge { 50% { transform: translateX(4px); } }
/* top prize: slow rays behind everything and paper raining in from both sides */
.ck-sun { right: 96px; top: 64%; width: 1300px; height: 1300px; margin: -650px -650px 0 0; border-radius: 50%; opacity: 0; transition: opacity 600ms linear; background: repeating-conic-gradient(rgba(255, 226, 120, .34) 0 7deg, transparent 7deg 18deg); -webkit-mask: radial-gradient(closest-side, #000 8%, transparent 70%); mask: radial-gradient(closest-side, #000 8%, transparent 70%); }
.ck-over.top .ck-sun { opacity: 1; animation: ckSpin 18s linear infinite; }
.ck-conf { inset: 0; }
.ck-conf i { position: absolute; left: 0; top: 0; width: var(--w); height: calc(var(--w) * .55); border-radius: 1.5px; background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 50%, rgba(0, 0, 0, .2)), var(--c); transform: translate(var(--x2), var(--y2)); animation: ckConf var(--t) var(--dl) both; }
.ck-conf i.rd { border-radius: 50%; height: var(--w); }
.ck-conf i.st { width: 5px; height: calc(var(--w) * 4.5); border-radius: 3px; background: repeating-linear-gradient(180deg, var(--c) 0 7px, color-mix(in srgb, var(--c) 55%, #fff) 7px 10px, color-mix(in srgb, var(--c) 70%, #000) 10px 14px); }
@keyframes ckConf { 0% { transform: translate(var(--x0), var(--y0)) rotate(0deg); animation-timing-function: cubic-bezier(.1, .7, .3, 1); } 42% { transform: translate(var(--x1), var(--y1)) rotate(calc(var(--r) * .5)) rotateX(200deg); animation-timing-function: cubic-bezier(.5, 0, .9, .7); } 100% { transform: translate(var(--x2), var(--y2)) rotate(var(--r)) rotateX(900deg); } }
/* title card: lands big in the clear space above the crossing, then tucks up into a small banner */
.ck-card { left: 50%; top: 13%; display: grid; justify-items: center; gap: 1px; max-width: calc(100% - 20px); padding: 12px 30px 13px; border-radius: 20px; text-align: center; white-space: nowrap; opacity: 0; transform: translate(-50%, 0); transform-origin: 50% 0; --kc: var(--gold);
  background: linear-gradient(180deg, rgba(44, 50, 98, .96), rgba(12, 14, 32, .96)); border: 2px solid var(--kc);
  box-shadow: 0 0 0 4px rgba(5, 6, 15, .7), 0 12px 0 -4px rgba(2, 3, 10, .6), 0 0 44px color-mix(in srgb, var(--kc) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -16px 24px -14px color-mix(in srgb, var(--kc) 45%, transparent); }
.ck-card > i { position: absolute; left: 50%; top: 50%; z-index: -1; width: 300px; height: 300px; margin: -150px; border-radius: 50%; opacity: .5; background: repeating-conic-gradient(color-mix(in srgb, var(--kc) 55%, transparent) 0 8deg, transparent 8deg 20deg); -webkit-mask: radial-gradient(closest-side, transparent 30%, #000 45%, transparent 76%); mask: radial-gradient(closest-side, transparent 30%, #000 45%, transparent 76%); }
.ck-card b { font: 800 34px/1.05 var(--font-display); letter-spacing: -.01em; color: #fff; text-shadow: 0 3px 0 rgba(2, 3, 10, .7), 0 0 22px color-mix(in srgb, var(--kc) 70%, transparent); }
.ck-card span { font: 700 13.5px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: #dfe4fa; }
.ck-card em { margin-top: 3px; font: 800 30px/1 var(--font-display); font-style: normal; font-variant-numeric: tabular-nums; color: var(--kc); text-shadow: 0 3px 0 rgba(2, 3, 10, .7), 0 0 18px color-mix(in srgb, var(--kc) 60%, transparent); }
.ck-card.top { top: 5%; left: 44%; padding: 14px 38px 15px; }
.ck-card.top b { font-size: 44px; color: #fff6c4; text-shadow: 0 4px 0 #7a4a00, 0 0 26px rgba(255, 212, 61, .8); }
.ck-card.top em { font-size: 42px; }
.ck-card.lost { --kc: var(--g3); transform: translate(-50%, 0) rotate(-3deg); }
.ck-card.lost b { font-size: 44px; color: var(--g1); text-shadow: 0 4px 0 #7a1410, 0 0 22px rgba(255, 74, 61, .7); letter-spacing: .01em; }
.ck-card.lost em { color: var(--danger); font-size: 24px; }
.ck-card.in { opacity: 1; animation: ckCard 520ms var(--ease-pop) backwards; }
.ck-card.in > i { animation: ckSpin 10s linear infinite; }
.ck-card.set { opacity: 1; top: calc(var(--gt) + var(--gh) + 12px); min-width: 276px; transform: translate(-50%, 0) scale(.82); transition: transform 420ms var(--ease), top 420ms var(--ease); }
.ck-card.lost.set { transform: translate(-50%, 0) scale(.82) rotate(-3deg); }
.ck-card.top.set { top: 6px; transform: translate(-50%, 0) scale(.74); }
.ck-card.set > i { display: none; }
@keyframes ckCard { 0% { opacity: 0; transform: translate(-50%, 30px) scale(.3); } 55% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } }
@keyframes ckSpin { to { transform: rotate(360deg); } }
/* coins that fly up to the header balance */
#ck-flyhost { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
#ck-flyhost s { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8d0, #ffd43d 45%, #e08a00); box-shadow: inset 0 0 0 1.5px #a8690088, inset 0 0 0 3.5px #fff4, 0 2px 3px rgba(2, 3, 10, .5), 0 0 10px rgba(255, 212, 61, .6); }

/* ----- the road ----- */
.ck-defs { position: absolute; }
.ck-road { position: relative; display: flex; width: max-content; min-width: 100%; height: var(--rh); overflow: hidden; background: #1f2340; }
.ck-bg, .ck-top { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.ck-top { z-index: 3; }
.ck-road.shake { animation: ckShake 480ms linear 120ms; }
@keyframes ckShake { 12% { transform: translate(-7px, 3px); } 26% { transform: translate(7px, -3px); } 40% { transform: translate(-5px, -2px); } 55% { transform: translate(4px, 2px); } 72% { transform: translate(-3px, 0); } 88% { transform: translate(1px, 1px); } }
/* after a result the rest of the street falls back and a pool of light stays on the chicken */
.ck-dim { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 600ms linear; background: radial-gradient(circle calc(var(--hen) * 2.3) at var(--hx, 0px) calc(var(--zy) + var(--hen) * .1), transparent 0 34%, rgba(5, 7, 24, .7) 100%); }
.ck-road.won .ck-dim { opacity: .8; }
.ck-road.top .ck-dim { opacity: .45; }
/* a bump: the street goes dark but for a hard spotlight on the car and the chicken, and the lane's red signal */
.ck-road.lost .ck-dim { opacity: 1; transition-delay: 420ms; background: radial-gradient(ellipse calc(var(--lw) * 1.02) calc(var(--hen) * 2.5) at var(--hx, 0px) calc(var(--zy) - var(--hen) * .5), rgba(255, 240, 200, .1) 0, rgba(255, 240, 200, .04) 70%, transparent 86%), rgba(5, 7, 22, .76);
  -webkit-mask: radial-gradient(ellipse calc(var(--lw) * 1.02) calc(var(--hen) * 2.5) at var(--hx, 0px) calc(var(--zy) - var(--hen) * .5), transparent 0 68%, #000 100%), radial-gradient(circle 62px at var(--hx, 0px) calc(var(--gt) + var(--gh) / 2), transparent 0 45%, #000 100%); -webkit-mask-composite: source-in;
  mask: radial-gradient(ellipse calc(var(--lw) * 1.02) calc(var(--hen) * 2.5) at var(--hx, 0px) calc(var(--zy) - var(--hen) * .5), transparent 0 68%, #000 100%), radial-gradient(circle 62px at var(--hx, 0px) calc(var(--gt) + var(--gh) / 2), transparent 0 45%, #000 100%); mask-composite: intersect; }
.ck-sweep { position: absolute; left: 0; top: 0; z-index: 4; width: 150px; height: 100%; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 226, 120, .1) 20%, rgba(255, 240, 180, .6) 50%, rgba(255, 226, 120, .1) 80%, transparent); }

/* verges and their props (the ground itself is painted on the canvas) */
.ck-verge { position: relative; flex: none; width: var(--vw); height: 100%; --gw: calc(var(--vw) - var(--pv) - var(--kb)); }
.ck-end { width: var(--ew); }
.ck-verge svg { position: absolute; display: block; overflow: visible; pointer-events: none; }
.ck-coop { left: 4px; top: 9%; width: calc(var(--vw) * .62); z-index: 1; }
.ck-coop .ck-door { animation: ckGlowDoor 3.4s ease-in-out infinite; }
.ck-start .ck-fence { left: 0; top: calc(var(--rh) * .09 + var(--vw) * .38); width: var(--gw); height: calc(var(--vw) * .16); }
.ck-mail { left: calc(var(--gw) - var(--hen) * .3); top: calc(var(--gy) - var(--hen) * .2); width: calc(var(--hen) * .25); }
.ck-start .ck-bush { left: -8px; top: 47%; width: calc(var(--hen) * .46); }
.ck-start .ck-bush ~ .ck-bush { left: 3px; top: 77%; width: calc(var(--hen) * .5); }
.ck-trough { left: calc(var(--gw) * .42); top: calc(var(--zy) + var(--hen) * .56); width: calc(var(--hen) * .46); }
.ck-lamp { z-index: 2; left: calc(var(--gw) + var(--pv) / 2 - 9px); top: calc(var(--gy) + 19px); width: 58px; }
.ck-end .ck-lamp { left: -24px; transform: scaleX(-1); }
.ck-end .ck-fence { right: 0; top: 7%; width: calc(var(--ew) * .5); height: calc(var(--vw) * .16); }
.ck-end .ck-bush { right: -6px; top: 15%; width: calc(var(--hen) * .5); }
.ck-end .ck-bush ~ .ck-bush { right: auto; left: calc(var(--kb) + 30px); top: 84%; width: calc(var(--hen) * .44); }
.ck-arch { left: calc(var(--kb) + 16px); top: calc(var(--zy) - var(--hen) * 1.325); width: calc(var(--hen) * 1.5); }
.ck-arch .ck-wave { transform-box: fill-box; transform-origin: 0 50%; animation: ckWave 1.5s ease-in-out infinite; }
.ck-road.top .ck-arch .ck-wave { animation-duration: .34s; }
.ck-arch .b1 { animation: ckBulb 0.9s steps(1) infinite; } .ck-arch .b2 { animation: ckBulb 0.9s steps(1) -.45s infinite; }
.ck-road.top .ck-arch .b1, .ck-road.top .ck-arch .b2 { animation-duration: .3s; }
.ck-nest { left: calc(var(--kb) + 22px + var(--hen) * 1.2); top: calc(var(--zy) - var(--hen) * .3); width: calc(var(--hen) * .86); margin-left: calc(var(--hen) * -.43); z-index: 2; }
.ck-nest .ck-tw, .ck-nest .eg-glint { transform-box: fill-box; transform-origin: center; animation: ckTwinkle 1.8s ease-in-out infinite; }
.ck-nest .eg-glint { animation-duration: 2.6s; }
.ck-nest .eg-top, .ck-nest .eg-chick { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 520ms var(--ease-pop) 300ms, opacity 200ms linear 300ms; }
.ck-nest .eg-chick { opacity: 0; transform: translateY(8px) scale(.7); }
.ck-nest .eg-crack { opacity: 0; transition: opacity 120ms linear 150ms; }
.ck-road.top .ck-nest .eg-crack { opacity: 1; }
.ck-road.top .ck-nest .eg-top { transform: translate(11px, -15px) rotate(34deg); }
.ck-road.top .ck-nest .eg-chick { opacity: 1; transform: none; animation: ckChick .5s ease-in-out 1s infinite; }
.ck-road.top .ck-nest .eg-glow { animation: ckEggGlow 1s ease-in-out infinite; }
.ck-road.top .ck-nest .ck-tw { animation-duration: .7s; }
.ck-rays { position: absolute; left: calc(var(--kb) + 22px + var(--hen) * 1.2); top: var(--zy); width: calc(var(--hen) * 2.6); height: calc(var(--hen) * 2.6); margin: calc(var(--hen) * -1.3) 0 0 calc(var(--hen) * -1.3); border-radius: 50%; pointer-events: none; opacity: .5; background: repeating-conic-gradient(rgba(255, 230, 120, .5) 0 9deg, transparent 9deg 22.5deg); -webkit-mask: radial-gradient(closest-side, #000 14%, transparent 74%); mask: radial-gradient(closest-side, #000 14%, transparent 74%); animation: ckSpin 26s linear infinite; }
.ck-road.top .ck-rays { opacity: 1; animation-duration: 8s; }
@keyframes ckTwinkle { 50% { transform: scale(.35) rotate(45deg); opacity: .4; } }
@keyframes ckWave { 0%, 100% { transform: skewY(-5deg) scaleX(1); } 50% { transform: skewY(6deg) scaleX(.93); } }
@keyframes ckChick { 50% { transform: translateY(-3px) rotate(-6deg); } }
@keyframes ckEggGlow { 0%, 100% { opacity: .25; } 50% { opacity: .6; } }
@keyframes ckGlowDoor { 50% { opacity: .72; } }
.ck-fly { position: absolute; z-index: 3; width: 3.5px; height: 3.5px; border-radius: 50%; background: #f6ffb0; box-shadow: 0 0 6px 2px rgba(236, 255, 120, .75); pointer-events: none; animation: ckFly var(--fd, 5s) ease-in-out var(--fl, 0s) infinite; }
@keyframes ckFly { 0%, 100% { transform: rotate(var(--fa)) translate(0, 0); opacity: 0; } 20% { opacity: 1; } 50% { transform: rotate(var(--fa)) translate(16px, -10px); opacity: .9; } 70% { opacity: .15; } 85% { transform: rotate(var(--fa)) translate(4px, 12px); opacity: 1; } }
/* START and TOP plates: enamel signs on the lawn */
.ck-plate, .ck-badge { position: absolute; z-index: 5; white-space: nowrap; font: 800 13.5px var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .01em; color: #ffeeb0; text-shadow: 0 0 8px rgba(255, 212, 61, .45), 0 1px 0 #000; border-radius: 8px; padding: 5px 9px 4px;
  background: linear-gradient(180deg, #353c74, #14172f 55%, #090a17); border: 1.5px solid rgba(190, 200, 255, .5); box-shadow: 0 3px 0 rgba(2, 3, 10, .7), 0 6px 8px rgba(2, 3, 10, .5), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -6px 8px -5px rgba(0, 0, 0, .7); }
.ck-plate { right: calc(var(--pv) + var(--kb) + 5px); bottom: 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 0 #000; transform: rotate(-3deg); }
.ck-end .ck-plate { right: 8px; display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); background: linear-gradient(180deg, #fff0a8, var(--gold) 50%, #e99a12); border-color: #fff9; transform: rotate(3deg); box-shadow: 0 3px 0 #8a5200, 0 6px 10px rgba(2, 3, 10, .5), 0 0 18px rgba(255, 212, 61, .4), inset 0 1px 0 #fff; }
.ck-end .ck-plate i { width: 11px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 36% 28%, #fff, #fff3b0 40%, #c97a00); box-shadow: 0 0 0 1px #8a520088; }
.ck-end .ck-plate::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); transform: translateX(-40px) skewX(-20deg); animation: ckGlint 3.2s ease-in-out infinite; }
@keyframes ckGlint { 0%, 55% { transform: translateX(-40px) skewX(-20deg); } 85%, 100% { transform: translateX(150px) skewX(-20deg); } }

/* ----- lanes ----- */
.ck-lanes { position: relative; display: flex; flex: none; }
.ck-lane { position: relative; flex: none; width: var(--lw); height: var(--rh); padding: 0; overflow: hidden; cursor: default; color: #fff; background: none; -webkit-tap-highlight-color: transparent; }
.ck-lane.next { cursor: pointer; }
.ck-lane:focus-visible { outline: 3px solid #fff; outline-offset: -4px; border-radius: 12px; }
/* state lighting painted over the tarmac without hiding it: an edge glow and soft underlight for a cleared lane,
   an impact flash and skid marks for the bump, a breathing pad for the lane you can take */
.ck-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ck-lane.ok .ck-glow { box-shadow: inset 7px 0 12px -7px var(--g2), inset -7px 0 12px -7px var(--g2); background: radial-gradient(70% 20% at 50% var(--zy), color-mix(in srgb, var(--g2) 26%, transparent), transparent), radial-gradient(60% 16% at 50% calc(var(--gt) + var(--gh) + 26px), color-mix(in srgb, var(--g2) 26%, transparent), transparent); }
.ck-lane.just .ck-glow::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 130px; opacity: 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--g2) 70%, #fff) 50%, transparent); animation: ckSweep 600ms var(--ease); }
.ck-lane.bust .ck-glow { background:
  radial-gradient(75% 22% at 50% calc(var(--zy) - var(--hen) * .1), rgba(255, 190, 90, .5), rgba(255, 74, 61, .34) 45%, transparent),
  var(--ck-skid) 50% calc(var(--zy) - var(--hen) * .3 - 262px) / 100% 250px no-repeat,
  radial-gradient(60% 13% at 50% calc(var(--zy) + var(--hen) * .2), rgba(255, 236, 190, .3), transparent),
  linear-gradient(180deg, color-mix(in srgb, var(--g3) 16%, transparent), transparent 30% 80%, color-mix(in srgb, var(--g3) 14%, transparent));
  box-shadow: inset 7px 0 12px -7px var(--g3), inset -7px 0 12px -7px var(--g3); }
.ck-lane.next .ck-glow { inset: calc(var(--gt) + var(--gh) + 10px) 7px calc(var(--bh) + 8px); border: 2.5px dashed color-mix(in srgb, var(--g1) 90%, transparent); border-radius: 16px; background: radial-gradient(90% 24% at 50% calc(var(--zy) - var(--gt) - var(--gh) - 10px), color-mix(in srgb, var(--g1) 42%, transparent), transparent), color-mix(in srgb, var(--g1) 8%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--g1) 40%, transparent), inset 0 0 22px color-mix(in srgb, var(--g1) 22%, transparent); animation: ckPad 1.3s ease-in-out infinite; }
.ck-lane.next:hover .ck-glow { background-color: color-mix(in srgb, var(--g1) 20%, transparent); }
.ck-chev { position: absolute; left: 50%; top: var(--zy); z-index: 4; width: 60px; height: 30px; margin: -15px 0 0 -30px; background: var(--ck-chev) center / contain no-repeat; opacity: 0; pointer-events: none; }
.ck-lane.next .ck-chev { opacity: 1; animation: ckChev .9s ease-in-out infinite; }
.ck-road.first .ck-lane.next .ck-chev::after { content: "TAP"; position: absolute; left: 50%; top: 100%; margin-top: 8px; transform: translateX(-50%); font: 800 12px var(--font-mono); font-style: normal; letter-spacing: .14em; color: var(--ink); background: linear-gradient(180deg, #fff0a8, var(--g1)); padding: 4px 9px 3px 11px; border-radius: var(--r-pill); box-shadow: 0 3px 0 rgba(2, 3, 10, .6); }
@keyframes ckPad { 50% { opacity: .55; } }
@keyframes ckChev { 0% { transform: translateX(-9px); opacity: .5; } 50% { opacity: 1; } 100% { transform: translateX(9px); opacity: .5; } }
@keyframes ckSweep { 0% { transform: translateY(calc(var(--zy) - 30px)); opacity: 1; } 100% { transform: translateY(-130px); opacity: .4; } }
/* the lit lens of each lane's signal, with its bloom on the road below the gantry */
.ck-sig { position: absolute; left: 50%; top: calc(var(--gt) + var(--gh) / 2 - 8px); z-index: 4; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 12%, transparent 22%), radial-gradient(circle, #fff 0 14%, color-mix(in srgb, var(--sc) 80%, #fff) 30%, var(--sc) 58%, color-mix(in srgb, var(--sc) 45%, #05060f) 100%);
  box-shadow: 0 0 0 1.5px #03040a, 0 0 10px 2px color-mix(in srgb, var(--sc) 75%, transparent), 0 0 22px 4px color-mix(in srgb, var(--sc) 35%, transparent); }
.ck-sig::after { content: ""; position: absolute; left: 50%; top: calc(var(--gh) / 2 + 8px); width: calc(var(--lw) * .9); height: 74px; margin-left: calc(var(--lw) * -.45); background: radial-gradient(50% 100% at 50% 0, color-mix(in srgb, var(--sc) 32%, transparent), transparent 76%); }
.ck-lane { --sc: var(--g3); } .ck-lane.next { --sc: var(--g1); } .ck-lane.ok { --sc: var(--g2); }
.ck-lane.next .ck-sig { animation: ckPulse .8s steps(2, jump-none) infinite; }
.ck-glow::after { content: ""; position: absolute; left: 50%; top: calc(var(--gt) + var(--gh) + 16px); width: 26px; height: 104px; margin-left: -13px; border-radius: 50%; opacity: .62; background: radial-gradient(closest-side, color-mix(in srgb, var(--sc) 70%, #fff), color-mix(in srgb, var(--sc) 62%, transparent) 38%, transparent);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 5px, #000 5px 10px, transparent 10px 11.5px, #000 11.5px 13px, transparent 13px 16px); mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 5px, #000 5px 10px, transparent 10px 11.5px, #000 11.5px 13px, transparent 13px 16px); }
.ck-lane.next .ck-glow::after { top: 6px; }
.ck-steam { position: absolute; left: 62%; top: calc((var(--zy) + 46px + var(--rh) - var(--bh)) / 2); z-index: 2; width: 0; height: 0; pointer-events: none; }
.ck-steam::before, .ck-steam::after { content: ""; position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(226, 232, 255, .46), rgba(226, 232, 255, .14) 60%, transparent); animation: ckSteam 3.4s ease-out infinite; }
.ck-steam::after { animation-delay: -1.7s; }
@keyframes ckSteam { 0% { transform: scale(.4); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(14px, -50px) scale(3.2); opacity: 0; } }
.ck-lane.ok .ck-sig::after, .ck-lane.next .ck-sig::after { height: 110px; background: radial-gradient(50% 100% at 50% 0, color-mix(in srgb, var(--sc) 46%, transparent), transparent 76%); }
.ck-lane.just .ck-sig { animation: ckSigPop 500ms ease-out; }
.ck-lane.bust .ck-sig { animation: ckSigBust .5s ease-in-out infinite; }
.ck-lane.bust .ck-sig::after { height: 170px; background: radial-gradient(50% 100% at 50% 0, color-mix(in srgb, var(--sc) 62%, transparent), transparent 78%); }
@keyframes ckSigBust { 50% { transform: scale(1.35); box-shadow: 0 0 0 1.5px #03040a, 0 0 18px 6px color-mix(in srgb, var(--sc) 85%, transparent), 0 0 44px 14px color-mix(in srgb, var(--sc) 45%, transparent); } }
.ck-road.won .ck-lane.ok .ck-sig { animation: ckSigWave .52s ease-in-out calc(var(--i) * 70ms) 4; }
@keyframes ckSigWave { 40% { transform: scale(1.7); box-shadow: 0 0 0 1.5px #03040a, 0 0 18px 7px color-mix(in srgb, var(--sc) 85%, #fff), 0 0 40px 12px color-mix(in srgb, var(--sc) 50%, transparent); } }
@keyframes ckSigPop { 0% { transform: scale(2.2); filter: brightness(2); } }
/* barrier that drops across a cleared lane */
.ck-gate { position: absolute; left: 11px; right: 11px; top: var(--gy); height: 12px; z-index: 4; border-radius: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .7), transparent 40%, rgba(0, 0, 0, .34)), repeating-linear-gradient(115deg, #fff 0 9px, var(--g3) 9px 18px); box-shadow: 0 0 0 1px rgba(2, 3, 10, .6), 3px 8px 5px rgba(2, 3, 10, .6); opacity: 0; transform: translateY(-34px) scaleX(.5); }
.ck-gate::before, .ck-gate::after { content: ""; position: absolute; top: -4px; width: 14px; height: 20px; border-radius: 5px; background: radial-gradient(circle at 42% 38%, #fff 0 1.2px, var(--warn) 2.4px 4px, #14162a 5px), linear-gradient(90deg, #3d4578, #14162a); box-shadow: inset 0 0 0 1.5px #05060f, inset 0 1px 0 1.5px rgba(255, 255, 255, .25), 0 0 10px color-mix(in srgb, var(--warn) 70%, transparent), 2px 4px 3px rgba(2, 3, 10, .6); }
.ck-gate::before { left: -8px; } .ck-gate::after { right: -8px; }
.ck-lane.ok .ck-gate::before { animation: ckGateLamp 1.2s steps(1) infinite; } .ck-lane.ok .ck-gate::after { animation: ckGateLamp 1.2s steps(1) -.6s infinite; }
@keyframes ckGateLamp { 50% { background: radial-gradient(circle at 42% 38%, #6b4a10 0 1.2px, #5a3c0a 2.4px 4px, #14162a 5px), linear-gradient(90deg, #3d4578, #14162a); box-shadow: inset 0 0 0 1.5px #05060f, inset 0 1px 0 1.5px rgba(255, 255, 255, .25), 2px 4px 3px rgba(2, 3, 10, .6); } }
.ck-lane.ok .ck-gate { opacity: 1; transform: none; }
.ck-lane.just .ck-gate { animation: ckGate 460ms cubic-bezier(.3, 0, .5, 1); }
@keyframes ckGate { 0% { opacity: 0; transform: translateY(-38px) scaleX(.6) rotate(-7deg); } 45% { opacity: 1; transform: translateY(4px) rotate(2deg) scaleY(.8); } 65% { transform: translateY(-7px) rotate(-1deg); } 82% { transform: translateY(2px); } 100% { transform: none; } }
/* price signs bolted to the foreground beam */
.ck-badge { left: 50%; bottom: calc((var(--bh) - 27px) / 2 - 1px); transform: translateX(-50%) rotate(-2deg); }
.ck-lane:nth-child(even) .ck-badge { transform: translateX(-50%) rotate(1.5deg); }
.ck-lane.ok .ck-badge { color: #04210f; text-shadow: 0 1px 0 rgba(255, 255, 255, .4); background: linear-gradient(180deg, color-mix(in srgb, var(--g2) 55%, #fff), var(--g2) 55%, color-mix(in srgb, var(--g2) 72%, #052)); border-color: #fff9; box-shadow: 0 3px 0 #0a5a26, 0 6px 8px rgba(2, 3, 10, .5), 0 0 14px color-mix(in srgb, var(--g2) 50%, transparent), inset 0 1px 0 #fff; }
.ck-lane.ok .ck-badge::before { content: "\2713"; margin-right: 3px; }
.ck-lane.just .ck-badge { animation: ckBadge 460ms var(--ease-pop); }
.ck-lane.next .ck-badge { color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); background: linear-gradient(180deg, #fff3b0, var(--g1) 55%, #e99a12); border-color: #fff9; box-shadow: 0 3px 0 #8a5200, 0 6px 8px rgba(2, 3, 10, .5), 0 0 16px color-mix(in srgb, var(--g1) 60%, transparent), inset 0 1px 0 #fff; }
.ck-lane.bust .ck-badge { color: #2a0503; text-shadow: none; background: linear-gradient(180deg, color-mix(in srgb, var(--g3) 70%, #fff), var(--g3) 55%, color-mix(in srgb, var(--g3) 75%, #400)); border-color: #fff9; box-shadow: 0 3px 0 #7a1410, 0 6px 8px rgba(2, 3, 10, .5), inset 0 1px 0 #fff8; }
.ck-lane.bust .ck-badge::before { content: "\00d7"; margin-right: 3px; }
.ck-lane.bust .ck-badge { transform: translateX(-50%) translateY(3px) rotate(7deg); animation: ckBadgeBust 760ms ease-out; }
.ck-lane.bust .ck-badge::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(90deg, #2a0503 0 60%, rgba(255, 255, 255, .7) 60%); clip-path: polygon(90% 0, 95% 0, 88% 30%, 94% 40%, 84% 68%, 89% 100%, 85% 100%, 79% 66%, 89% 42%, 82% 33%); }
@keyframes ckBadgeBust { 0% { transform: translateX(-50%) rotate(-2deg) scale(1.25); } 14% { transform: translateX(-56%) rotate(-9deg); } 28% { transform: translateX(-44%) rotate(8deg); } 42% { transform: translateX(-54%) rotate(-5deg); } 58% { transform: translateX(-48%) translateY(2px) rotate(10deg); } 76% { transform: translateX(-50%) translateY(4px) rotate(5deg); } }
.ck-road.won .ck-lane:not(.ok) .ck-badge { color: #7d86ad; text-shadow: none; text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgba(255, 110, 100, .8); border-style: dashed; border-color: rgba(150, 160, 215, .4); background: linear-gradient(180deg, #1c2044, #0b0d1e); box-shadow: 0 2px 0 rgba(2, 3, 10, .7), inset 0 2px 5px rgba(0, 0, 0, .6); animation: ckBadgeOff 520ms var(--ease) calc((var(--i) - 1) * 26ms) backwards; }
@keyframes ckBadgeOff { 0% { color: #ffeeb0; background: linear-gradient(180deg, #353c74, #14172f 55%, #090a17); border-style: solid; text-decoration-color: transparent; transform: translateX(-50%) rotateX(0deg); } 50% { transform: translateX(-50%) rotateX(90deg); color: #ffeeb0; text-decoration-color: transparent; } 51% { color: #7d86ad; } 100% { transform: translateX(-50%) rotateX(0deg) rotate(-2deg); } }
@keyframes ckBadge { 0% { transform: translateX(-50%) scale(.6); } 55% { transform: translateX(-50%) scale(1.3) rotate(-4deg); } }

/* ----- vehicles: scenery only. They drive from the top of the road to the bottom and out under the sign beam. ----- */
.ck-car { --ch: calc(var(--cw) * var(--ar, 1.66)); position: absolute; left: 50%; top: 0; z-index: 2; width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2); transform: translateY(var(--y0, 60px)); animation: ckDrive var(--d, 2.6s) linear var(--dl, 0s) infinite; pointer-events: none; }
.ck-car > * { position: absolute; }
.ck-car .bd { inset: 0; animation: ckWob var(--wb, 3s) ease-in-out infinite; }
.ck-car img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; user-select: none; }
.ck-car .cc { fill: var(--c, #ff5fa2); }
.ck-car .sh { left: 4%; right: -20%; top: 6%; bottom: -8%; border-radius: 30% / 16%; background: radial-gradient(closest-side, rgba(1, 2, 8, .72) 50%, rgba(1, 2, 8, .34) 76%, transparent); }
.ck-car .bm { left: -60%; right: -60%; top: 93%; height: calc(var(--cw) * 2.5 * var(--bl, 1)); background: conic-gradient(from 156deg at 37% 0, transparent 0deg, rgba(var(--bc, 255, 244, 210), .72) 15deg 33deg, transparent 48deg), conic-gradient(from 156deg at 63% 0, transparent 0deg, rgba(var(--bc, 255, 244, 210), .72) 15deg 33deg, transparent 48deg); -webkit-mask: radial-gradient(60% 100% at 50% 0, #000 6%, rgba(0, 0, 0, .45) 45%, transparent 96%); mask: radial-gradient(60% 100% at 50% 0, #000 6%, rgba(0, 0, 0, .45) 45%, transparent 96%); }
.ck-car.scoot .bm { background: conic-gradient(from 154deg at 50% 0, transparent 0deg, rgba(var(--bc, 255, 244, 210), .72) 15deg 37deg, transparent 52deg); }
.ck-car .tr { left: -14%; right: -14%; bottom: 94%; height: calc(var(--cw) * 1.15); background: radial-gradient(50% 100% at 50% 100%, rgba(255, 70, 56, .8), rgba(255, 60, 48, .26) 50%, transparent) 14% 0 / 42% 100% no-repeat, radial-gradient(50% 100% at 50% 100%, rgba(255, 70, 56, .8), rgba(255, 60, 48, .26) 50%, transparent) 86% 0 / 42% 100% no-repeat; }
.ck-car:is(.truck, .bus, .icecream, .pickup) .ex { animation: ckExh 1.3s ease-out var(--dl, 0s) infinite; }
/* the patrol car's light bar throws red and blue in turn */
.ck-car .pl { left: -34%; right: -34%; top: 24%; height: 34%; }
.ck-car .pl::before, .ck-car .pl::after { content: ""; position: absolute; top: 0; bottom: 0; width: 62%; border-radius: 50%; }
.ck-car .pl::before { left: 0; background: radial-gradient(closest-side, rgba(255, 80, 66, .9), rgba(255, 60, 48, .3) 50%, transparent); animation: ckCop .5s steps(1) infinite; }
.ck-car .pl::after { right: 0; background: radial-gradient(closest-side, rgba(80, 150, 255, .95), rgba(60, 130, 255, .3) 50%, transparent); animation: ckCop .5s steps(1) -.25s infinite; }
@keyframes ckCop { 0%, 100% { opacity: 1; } 50% { opacity: .06; } }
.ck-car.scoot .tr { background: radial-gradient(50% 100% at 50% 100%, rgba(255, 70, 56, .6), rgba(255, 60, 48, .18) 55%, transparent) 50% 0 / 40% 100% no-repeat; }
.ck-car.sport .tr { height: calc(var(--cw) * 1.2); }
.ck-car .bk { left: -16%; right: -16%; top: -15px; height: 32px; opacity: 0; background: radial-gradient(13px 11px at 30% 55%, #fff 0, rgba(255, 70, 56, .95) 30%, transparent), radial-gradient(13px 11px at 70% 55%, #fff 0, rgba(255, 70, 56, .95) 30%, transparent), radial-gradient(60% 100% at 50% 60%, rgba(255, 50, 40, .4), transparent); }
.ck-car.scoot .bk { background: radial-gradient(11px 11px at 50% 55%, #fff 0, rgba(255, 70, 56, .95) 30%, transparent); }
.ck-car .smk { left: -50%; right: -50%; top: 58%; height: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(226, 232, 255, .7), transparent) 8% 60% / 34% 60% no-repeat, radial-gradient(closest-side, rgba(226, 232, 255, .7), transparent) 92% 60% / 34% 60% no-repeat, radial-gradient(closest-side, rgba(226, 232, 255, .5), transparent) 22% 10% / 24% 50% no-repeat, radial-gradient(closest-side, rgba(226, 232, 255, .5), transparent) 78% 10% / 24% 50% no-repeat; }
.ck-car .ex { left: 64%; top: -8px; width: 11px; height: 11px; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(220, 226, 255, .55), transparent); }
.ck-car.parked { animation: none; transform: translateY(calc(var(--gy) - var(--ch) - 6px)); }
.ck-car.parked .bd { animation: ckIdle .24s steps(2, jump-none) infinite; }
.ck-car.parked.brk .bd { animation: ckBrake 560ms cubic-bezier(.2, .7, .3, 1) 240ms backwards, ckIdle .24s steps(2, jump-none) 800ms infinite; }
.ck-car.parked .bm { opacity: .55; height: calc(var(--cw) * 1.5); }
.ck-car.struck .tr { opacity: 0; } .ck-car.parked .tr { opacity: .85; height: calc(var(--cw) * .8); }
.ck-car.parked .bk { opacity: .9; }
.ck-car.parked.brk .bk { animation: ckFlare 700ms ease-out 200ms backwards; }
.ck-car.brk .smk { animation: ckSmoke 720ms ease-out 250ms; }
.ck-car.parked .ex { animation: ckExh 1.7s ease-out infinite; }
.ck-car.struck { animation: none; transform: translateY(calc(var(--zy) - var(--hen) * .3 - var(--ch))); }
.ck-car.struck .bd { animation: ckBrake 560ms cubic-bezier(.2, .7, .3, 1) 400ms backwards; }
.ck-car.struck .bm { animation: ckHonk .5s steps(2, jump-none) 4; opacity: .8; height: calc(var(--cw) * 1.5); }
.ck-car.struck .bk { opacity: 1; left: -22%; right: -22%; top: -12px; height: calc(100% + 24px); background: radial-gradient(11px 11px at 16% 14px, #ffb52e, transparent), radial-gradient(11px 11px at 84% 14px, #ffb52e, transparent), radial-gradient(11px 11px at 16% calc(100% - 14px), #ffb52e, transparent), radial-gradient(11px 11px at 84% calc(100% - 14px), #ffb52e, transparent); animation: ckPulse .7s steps(2, jump-none) infinite; }
.ck-car.gone { animation: none; }
/* now and then somebody flashes their lights */
.ck-lane:nth-child(4n+2) .ck-car:not(.parked):not(.struck) .bm { animation: ckBlip 6.3s steps(1) calc(var(--i) * -1.1s) infinite; }
.ck-road.stop .ck-car, .ck-road.stop .ck-car .bd, .ck-road.stop .ck-hen * { animation-play-state: paused; }
.ck-road.won .ck-car.parked .bm { opacity: 1; animation: ckHonk .3s steps(2, jump-none) calc(var(--i, 0) * 30ms) 4; }
.ck-road.lost .ck-car:not(.struck):not(.parked) { animation-play-state: paused; }
.ck-road.lost .ck-car:not(.struck) .bk { opacity: .9; transition: opacity 200ms linear 200ms; }
.ck-road.lost .ck-car:not(.struck) .tr { opacity: 0; }
.ck-road.top .ck-car.parked .bm { opacity: 1; height: calc(var(--cw) * 2.5); animation: ckHonk .36s steps(2, jump-none) calc(var(--i, 0) * 30ms) 9; }
.ck-road.top .ck-car.parked .bd { animation: ckCheer .36s ease-in-out 9; }
@keyframes ckDrive { from { transform: translateY(calc(-1 * var(--ch) - 60px)); } to { transform: translateY(calc(var(--rh) + 20px)); } }
@keyframes ckWob { 0%, 100% { transform: translateX(-1.6px) rotate(-.7deg); } 50% { transform: translateX(1.6px) rotate(.7deg); } }
@keyframes ckIdle { 50% { transform: translateY(1.1px) rotate(.35deg); } }
@keyframes ckBrake { 0% { transform: translateY(7px) scaleY(.94); } 40% { transform: translateY(-3px) scaleY(1.02); } 70% { transform: translateY(1.5px); } 100% { transform: none; } }
@keyframes ckFlare { 0% { opacity: 1; transform: scale(1.9); } 100% { opacity: .9; transform: none; } }
@keyframes ckSmoke { 0% { opacity: .9; transform: translateY(8px) scale(.5); } 100% { opacity: 0; transform: translateY(-14px) scale(1.5); } }
@keyframes ckExh { 0% { opacity: 0; transform: none; } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(5px, -22px) scale(2.6); } }
@keyframes ckHonk { 50% { opacity: .15; } }
@keyframes ckBlip { 0%, 80%, 86%, 92%, 100% { opacity: 1; } 83%, 89% { opacity: .2; } }
@keyframes ckCheer { 50% { transform: translateY(-3px) scale(1.04); } }

/* ----- the chicken ----- */
.ck-hen { position: absolute; left: 0; top: var(--zy); z-index: 6; width: var(--hen); height: var(--hen); margin: calc(var(--hen) * -.54) 0 0 calc(var(--hen) / -2); transform: translateX(var(--x, 50px)); transition: transform 320ms cubic-bezier(.3, .6, .4, 1); pointer-events: none; }
.ck-hen { --hr: #ffc874; }
/* contact shadow: a dark core under the feet, a soft skirt, and a spill of whatever colour the lane is lit in */
.ck-shadow { position: absolute; left: 8%; right: 4%; bottom: -4%; height: 21%; border-radius: 50%; background: radial-gradient(closest-side, rgba(1, 2, 8, .96) 0 30%, rgba(1, 2, 8, .62) 52%, rgba(1, 2, 8, .22) 78%, transparent); }
.ck-shadow::before { content: ""; position: absolute; inset: -45% -22%; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, transparent 40%, color-mix(in srgb, var(--hr) 34%, transparent) 62%, transparent); transition: opacity 300ms linear; }
.ck-hen .hrm { stroke: var(--hr); transition: stroke 240ms linear; }
.ck-hen .hbp, .ck-hen .hrf { display: none; }
.ck-trail { position: absolute; inset: 0; pointer-events: none; }
.ck-trail b { position: absolute; right: 58%; top: 28%; width: 62%; height: 5px; border-radius: 3px; opacity: 0; transform-origin: 100% 50%; background: linear-gradient(90deg, transparent, rgba(255, 246, 200, .55) 60%, rgba(255, 255, 255, .95)); }
.ck-trail b:nth-child(2) { top: 47%; width: 86%; height: 6px; right: 62%; } .ck-trail b:nth-child(3) { top: 66%; width: 54%; height: 4px; }
.ck-hen.hop .ck-trail b { animation: ckTrail 400ms ease-out; }
.ck-hen.hop .ck-trail b:nth-child(2) { animation-delay: 30ms; } .ck-hen.hop .ck-trail b:nth-child(3) { animation-delay: 60ms; }
@keyframes ckTrail { 0% { opacity: 0; transform: scaleX(.1); } 22% { opacity: 1; transform: translateY(-12px) scaleX(1); } 55% { opacity: .75; transform: translateY(-30px) scaleX(.9); } 100% { opacity: 0; transform: translateY(-6px) translateX(-14px) scaleX(.2); } }
.ck-jump { position: relative; width: 100%; height: 100%; transform-origin: 50% 94%; }
.ck-hen svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1.5px 0 rgba(90, 40, 0, .5)); }
.ck-hen .hb { transform-box: fill-box; transform-origin: 50% 100%; animation: ckBodyIdle 6.4s ease-in-out infinite; }
.ck-hen.run .hb { animation: ckBob 1.3s ease-in-out infinite; }
.ck-hen .hl2 { animation: ckScratch 6.4s ease-in-out infinite; }
.ck-hen.run .hl2, .ck-hen.dance .hl2, .ck-hen.dazed .hl { animation: none; }
.ck-hen .ht .tp { transform-origin: 23px 49px; transition: transform 200ms var(--ease-pop); }
.ck-hen .hd { transform-origin: 44px 42px; animation: ckHead 6.4s ease-in-out infinite; }
.ck-hen .hw { transform-origin: 39px 44px; }
.ck-hen .hw2 { transform-origin: 30px 38px; opacity: 0; }
.ck-hen .ht { transform-origin: 23px 48px; animation: ckWag 3.2s ease-in-out -1s infinite; }
.ck-hen .hl { transform-origin: 38px 62px; }
.ck-hen .hc { transform-origin: 51px 18px; animation: ckCombIdle 6.4s ease-in-out infinite; }
.ck-hen .hwt { transform-origin: 61px 38px; animation: ckWattle 1.6s ease-in-out infinite; }
.ck-hen .hb2 { transform-origin: 63px 34px; transition: transform 120ms var(--ease); }
.ck-hen .he, .ck-hen .hp { transform-box: fill-box; transform-origin: 50% 50%; }
.ck-hen .hy { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: ckBlink 4.3s linear infinite; }
.ck-hen .hp { animation: ckLook 7s ease-in-out infinite; }
.ck-hen .hbr, .ck-hen .hh, .ck-hen .hx, .ck-hen .hs, .ck-hen .hsw { display: none; }
/* faces and poses: run = eyes on the road, nerv = busy traffic, ant = crouch before the jump, scared = the car is coming, dance = cashed out, dazed = bumped */
.ck-hen.run .hbr { display: block; }
.ck-hen.run .hd { animation-name: ckScan; animation-duration: 3.6s; }
.ck-hen.run .hp { animation: none; transform: translate(1px, 0); }
.ck-hen.nerv .hsw { display: block; transform-origin: 38px 9px; animation: ckSweat 1.1s ease-in infinite; }
.ck-hen.nerv .hp { animation: ckDart 1.3s steps(1) infinite; }
.ck-hen.nerv .hb { animation: ckBob .5s ease-in-out infinite; }
.ck-hen.ant .ck-jump { transform: scale(1.16, .8); transition: transform 90ms ease-out; }
.ck-hen.ant .hw { transform: rotate(-9deg); }
.ck-hen.ant .ht .tp { transform: rotate(-8deg); }
.ck-hen.scared .hbr { display: none; }
.ck-hen.scared .he { transform: scale(1.3); }
.ck-hen.scared .hy { animation: none; }
.ck-hen.scared .hp { animation: none; transform: scale(.45); }
.ck-hen.scared .hb2 { transform: translateY(1.5px) rotate(24deg); }
.ck-hen.scared .hsw { display: block; }
.ck-hen.dance .he, .ck-hen.dance .hbr { display: none; }
.ck-hen.dance .hh { display: block; }
.ck-hen.dance .hb2 { transform: translateY(1px) rotate(18deg); }
.ck-hen.dance .hk { opacity: .95; }
.ck-hen.dance .hd { animation: none; transform: rotate(-8deg); }
.ck-hen.hop .ck-jump { animation: ckHop 400ms cubic-bezier(.3, .6, .4, 1); }
.ck-hen.hop .ck-shadow { animation: ckShade 400ms cubic-bezier(.3, .6, .4, 1); }
.ck-hen.hop .hw { animation: ckFlap 130ms ease-in-out 3; }
.ck-hen.hop .hw2 { animation: ckFlap2 130ms ease-in-out 3; }
.ck-hen.hop .hl { animation: ckTuck 380ms ease-in-out; }
.ck-hen.hop .hc { animation: ckComb 400ms ease-in-out; }
.ck-hen.hop .ht { animation: ckTailUp 400ms ease-in-out; }
.ck-hen.hop .hd { animation: ckNod 400ms ease-in-out; }
.ck-hen.dance .ck-jump { animation: ckDance 520ms ease-in-out 5, ckJoy 1s ease-in-out 2.6s infinite; }
.ck-hen.dance .ck-shadow { animation: ckShade 260ms ease-in-out 10, ckShade 1s ease-in-out 2.6s infinite; }
.ck-hen.dance .hw { animation: ckCheerW 260ms ease-in-out infinite; }
.ck-hen.dance .hw2 { animation: ckCheerW2 260ms ease-in-out infinite; }
.ck-hen.dance .ht { animation: ckWag .26s ease-in-out infinite; }
.ck-hen.dazed .ck-jump { transform: translate(8px, var(--ko)) rotate(-16deg); }
.ck-hen.dazed .ck-shadow { transform: translate(8px, var(--ko)) scale(1.1); transition: transform 300ms ease-out 360ms; }
.ck-hen.dazed .hb { animation: ckWobble 1.5s ease-in-out infinite; }
.ck-hen.dazed .ht, .ck-hen.dazed .hc { animation: none; }
.ck-hen.dazed .hd { animation: ckLoll 1.5s ease-in-out infinite; }
.ck-hen.dazed .he, .ck-hen.dazed .hbr { display: none; } .ck-hen.dazed .hx { display: block; }
.ck-hen.dazed .hb2 { transform: translateY(1px) rotate(14deg); }
.ck-hen.dazed .hw { transform: rotate(-24deg) translate(-1px, 2px); }
.ck-hen.dazed .hbp, .ck-hen.dazed .hrf { display: block; }
.ck-hen.dazed .hbp { transform-box: fill-box; transform-origin: 70% 80%; animation: ckThrob .75s ease-in-out infinite; }
.ck-hen.dazed .hc { transform: rotate(-22deg) skewX(14deg) scale(.94, .82); }
.ck-hen.dazed .ht { transform: rotate(-12deg); }
.ck-hen.dazed .ht > g:nth-child(2) .tp { transform: rotate(26deg) scaleY(.82); } .ck-hen.dazed .ht > g:nth-child(4) .tp { transform: rotate(-30deg) scaleY(.74); } .ck-hen.dazed .ht > g:nth-child(3) .tp { transform: rotate(9deg) skewX(-18deg); } .ck-hen.dazed .ht > g:nth-child(5) .tp { transform: rotate(-16deg) scaleY(.88); }
@keyframes ckThrob { 50% { transform: scale(1.22); } }
.ck-hen.dazed .hl { transform: rotate(-24deg); }
.ck-hen.dazed .hs { display: block; }
.ck-hen.dazed .hs g g { animation: ckOrbit 2s linear infinite; }
.ck-hen.dazed .hs g g:nth-child(2) { animation-delay: -.4s; } .ck-hen.dazed .hs g g:nth-child(3) { animation-delay: -.8s; } .ck-hen.dazed .hs g g:nth-child(4) { animation-delay: -1.2s; } .ck-hen.dazed .hs g g:nth-child(5) { animation-delay: -1.6s; }
@keyframes ckBob { 50% { transform: scale(1.035, .955); } }
/* at rest: breathe, then lean in for the double peck (in step with the head), then settle */
@keyframes ckBodyIdle { 0%, 25%, 50%, 70%, 100% { transform: none; } 12.5%, 37.5%, 62% { transform: scale(1.035, .955); } 77%, 85% { transform: rotate(8deg) translate(1px, 1px); } 81% { transform: rotate(3deg); } 91% { transform: scale(1.03, .96); } }
@keyframes ckScratch { 0%, 44%, 60%, 100% { transform: none; } 47%, 53% { transform: rotate(-26deg) translate(-1px, -1px); } 50%, 56% { transform: rotate(16deg); } }
@keyframes ckWag { 0%, 56%, 100% { transform: none; } 28% { transform: rotate(-9deg); } 66%, 80% { transform: rotate(-15deg); } 73%, 87% { transform: rotate(11deg); } }
@keyframes ckWattle { 50% { transform: rotate(-9deg); } }
@keyframes ckCombIdle { 0%, 68%, 100% { transform: none; } 78% { transform: rotate(9deg) scale(1.04, .94); } 86% { transform: rotate(-5deg); } }
@keyframes ckBlink { 0%, 93%, 100% { transform: scaleY(0); } 96.5% { transform: scaleY(2); } }
@keyframes ckLook { 0%, 38%, 62%, 100% { transform: none; } 44%, 56% { transform: translate(-2.6px, .4px); } }
@keyframes ckDart { 0%, 50% { transform: translate(1.4px, -.6px); } 25% { transform: translate(-2.4px, .2px); } 75% { transform: translate(1.2px, 1.4px); } }
@keyframes ckSweat { 0% { transform: translate(0, -3px) scale(.4); opacity: 0; } 25% { opacity: 1; transform: none; } 100% { transform: translate(-4px, 14px); opacity: 0; } }
/* idle: look about, then a quick double peck at the ground */
@keyframes ckHead { 0%, 22%, 44%, 66%, 100% { transform: none; } 28%, 38% { transform: rotate(-7deg) translate(-1px, 0); } 72% { transform: rotate(5deg); } 77% { transform: rotate(44deg) translate(4px, 3px); } 81% { transform: rotate(16deg); } 85% { transform: rotate(46deg) translate(4px, 3px); } 91% { transform: rotate(-3deg); } }
@keyframes ckScan { 0%, 40%, 100% { transform: rotate(3deg) translate(1px, 0); } 52%, 64% { transform: rotate(-8deg); } 76% { transform: rotate(6deg) translate(2px, 0); } }
@keyframes ckNod { 30% { transform: rotate(-10deg); } 82% { transform: rotate(12deg) translate(1px, 2px); } }
@keyframes ckHop { 0% { transform: scale(1.16, .8); } 20% { transform: translateY(-14px) scale(.86, 1.18) rotate(-9deg); } 48% { transform: translateY(-40px) scale(.95, 1.07) rotate(-3deg); } 76% { transform: translateY(0) scale(1.16, .82) rotate(4deg); } 89% { transform: translateY(-5px) scale(.95, 1.06); } 100% { transform: none; } }
@keyframes ckShade { 48% { transform: scale(.5); opacity: .4; } 76% { transform: scale(1.18); opacity: 1; } }
@keyframes ckFlap { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(82deg) scale(1.12); } }
@keyframes ckFlap2 { 0%, 100% { opacity: 1; transform: rotate(18deg) scale(.8); } 50% { opacity: 1; transform: rotate(-22deg) scale(1.1); } }
@keyframes ckCheerW { 0%, 100% { transform: rotate(62deg) scale(1.1); } 50% { transform: rotate(104deg) scale(1.16); } }
@keyframes ckCheerW2 { 0%, 100% { opacity: 1; transform: rotate(-8deg); } 50% { opacity: 1; transform: rotate(-30deg) scale(1.12); } }
@keyframes ckTuck { 25%, 62% { transform: rotate(38deg) scaleY(.6); } }
@keyframes ckTailUp { 30% { transform: rotate(16deg); } 80% { transform: rotate(-14deg); } }
@keyframes ckComb { 30% { transform: rotate(-12deg); } 80% { transform: rotate(10deg) scale(1.05, .9); } }
@keyframes ckDance { 0%, 100% { transform: scale(1.16, .8); } 25% { transform: translateY(calc(var(--hen) * -.36)) rotate(-13deg) scale(.92, 1.12); } 50% { transform: scale(1.18, .78); } 75% { transform: translateY(calc(var(--hen) * -.36)) rotate(13deg) scale(.92, 1.12); } }
@keyframes ckJoy { 0%, 100% { transform: scale(1.06, .93); } 45% { transform: translateY(-12px) scale(.97, 1.05); } }
@keyframes ckWobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes ckLoll { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(9deg); } }
@keyframes ckOrbit { 0% { transform: translate(-27px, 0) scale(.8) rotate(0deg); } 25% { transform: translate(0, -7.5px) scale(.5) rotate(90deg); opacity: .6; } 50% { transform: translate(27px, 0) scale(.8) rotate(180deg); opacity: 1; } 75% { transform: translate(0, 7.5px) scale(1.2) rotate(270deg); } 100% { transform: translate(-27px, 0) scale(.8) rotate(360deg); } }

/* ----- effects that follow the chicken: feathers, dust, rings, floating numbers, coins ----- */
.ck-fx { position: absolute; left: 0; top: var(--zy); z-index: 7; width: 0; height: 0; transform: translateX(var(--x, 0px)); pointer-events: none; }
.ck-fx i { position: absolute; left: -6px; top: -13px; width: 12px; height: 26px; background: var(--ck-ft) center / contain no-repeat; transform: translate(calc(var(--dx) * 1.2), var(--ry)) rotate(var(--rot)) scale(var(--s, 1), calc(var(--s, 1) * .82)); animation: ckPuff var(--t, 1600ms) cubic-bezier(.2, .6, .4, 1) backwards; }
.ck-fx i.y { background-image: var(--ck-fty); }
.ck-fx i.sm { width: 8px; height: 17px; left: -4px; top: 14px; opacity: 0; animation: ckPuffOut 800ms cubic-bezier(.1, .7, .3, 1); }
/* landing: low dust clouds rolling out to both sides and a few specks of gravel */
.ck-pf { position: absolute; left: -10px; top: calc(var(--hen) * .34); width: 20px; height: 15px; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(232, 236, 255, .8), rgba(206, 214, 245, .34) 62%, transparent); animation: ckPf 600ms ease-out var(--dl, 0ms); }
.ck-gv { position: absolute; left: -1.5px; top: calc(var(--hen) * .4); width: 3.5px; height: 3px; border-radius: 1px; opacity: 0; background: linear-gradient(135deg, #f1f4ff, #7f89b0); box-shadow: 0 1px 0 rgba(2, 3, 10, .7); animation: ckGv 540ms var(--dl, 0ms); }
@keyframes ckPf { 0% { transform: scale(.4); opacity: .95; } 100% { transform: translate(var(--dx), var(--dy)) scale(2.4); opacity: 0; } }
@keyframes ckGv { 0% { transform: translate(0, 0); opacity: 1; animation-timing-function: ease-out; } 45% { transform: translate(calc(var(--dx) * .6), var(--up)) rotate(120deg); opacity: 1; animation-timing-function: ease-in; } 100% { transform: translate(var(--dx), 5px) rotate(300deg); opacity: 0; } }
/* the bump, at the point where bumper met bird: sparks, tyre smoke and a startled driver */
.ck-spk { position: absolute; left: -1.5px; top: calc(var(--hen) * -.32); width: 3px; height: 15px; border-radius: 2px; opacity: 0; transform-origin: 50% 0; background: linear-gradient(180deg, #fff, #ffd43d 60%, #ff7a3d); animation: ckSpk 480ms ease-out; }
@keyframes ckSpk { 0% { transform: rotate(var(--a)) translateY(10px) scaleY(.4); opacity: 1; } 100% { transform: rotate(var(--a)) translateY(var(--d, 70px)) scaleY(1.3); opacity: 0; } }
.ck-smk { position: absolute; left: var(--sx); top: var(--sy); width: 28px; height: 28px; margin: -14px; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(236, 240, 255, .78), rgba(200, 208, 240, .32) 60%, transparent); animation: ckSmk var(--t, 1500ms) ease-out var(--dl, 0ms); }
@keyframes ckSmk { 0% { transform: scale(.3); opacity: .9; } 30% { opacity: .7; } 100% { transform: translate(var(--dx, 0px), -52px) scale(2.8); opacity: 0; } }
.ck-bang { position: absolute; left: calc(var(--cw) * .42); top: calc(var(--hen) * -.3 - var(--sch, 90px) * .56 - 30px); width: 30px; height: 30px; border-radius: 50% 50% 50% 8px; opacity: 0; text-decoration: none; text-align: center; font: 800 22px/30px var(--font-display); color: var(--g3); background: linear-gradient(180deg, #fff, #e6eaff); box-shadow: 0 0 0 2px #14162a, 0 4px 0 rgba(2, 3, 10, .5), 0 0 16px rgba(255, 255, 255, .4); transform-origin: 0 100%; animation: ckBang 2300ms var(--ease-pop) 260ms; }
@keyframes ckBang { 0% { transform: scale(0) rotate(-30deg); opacity: 0; } 9% { transform: scale(1.3) rotate(10deg); opacity: 1; } 16%, 24%, 32% { transform: rotate(-6deg); opacity: 1; } 20%, 28% { transform: rotate(6deg); } 40%, 88% { transform: none; opacity: 1; } 100% { transform: translateY(-8px) scale(.8); opacity: 0; } }
.ck-car.struck .bd::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -1%; aspect-ratio: 30 / 12; background: var(--ck-dent) center / 100% 100% no-repeat; }
.ck-fx.still i { animation: none; }
.ck-star { position: absolute; left: -76px; top: calc(var(--hen) * -.32 - 76px); width: 152px; height: 152px; opacity: 0; background: radial-gradient(circle, #fff 0 22%, var(--g1) 50%, var(--g3)); clip-path: polygon(50% 0, 60% 30%, 85% 12%, 72% 40%, 100% 50%, 72% 60%, 86% 88%, 60% 71%, 50% 100%, 40% 71%, 14% 88%, 28% 60%, 0 50%, 28% 40%, 15% 12%, 40% 30%); animation: ckStar 520ms ease-out; }
.ck-star.s2 { left: -40px; top: calc(var(--hen) * -.32 - 40px); width: 80px; height: 80px; background: #fff; animation: ckStar2 380ms ease-out; }
@keyframes ckStar2 { 0% { transform: scale(.3) rotate(30deg); opacity: 1; } 60% { opacity: 1; } 100% { transform: scale(1.25) rotate(-16deg); opacity: 0; } }
.ck-lines { position: absolute; left: -150px; top: calc(var(--hen) * -.32 - 150px); width: 300px; height: 300px; border-radius: 50%; opacity: 0; background: repeating-conic-gradient(#fff 0 2.5deg, transparent 2.5deg 13deg); -webkit-mask: radial-gradient(closest-side, transparent 30%, #000 44%, transparent 74%); mask: radial-gradient(closest-side, transparent 30%, #000 44%, transparent 74%); animation: ckLines 480ms ease-out; }
.ck-dust { position: absolute; left: calc(var(--hen) * -.45); top: calc(var(--hen) * .32); width: calc(var(--hen) * .9); height: calc(var(--hen) * .26); border-radius: 50%; border: 3px solid rgba(236, 240, 255, .7); box-shadow: 0 0 8px rgba(236, 240, 255, .4), inset 0 0 8px rgba(236, 240, 255, .3); opacity: 0; animation: ckDust 520ms ease-out; }
.ck-dust.d2 { border-width: 2px; animation-delay: 90ms; animation-duration: 620ms; }
.ck-okring { position: absolute; left: calc(var(--lw) * -.46); top: calc(var(--hen) * -.06); width: calc(var(--lw) * .92); height: calc(var(--hen) * .9); border-radius: 50%; border: 4px solid var(--g2); box-shadow: 0 0 16px var(--g2), inset 0 0 16px var(--g2); opacity: 0; animation: ckOkRing 620ms ease-out; }
.ck-okring.bad { border-color: var(--g3); box-shadow: 0 0 18px var(--g3), inset 0 0 18px var(--g3); }
.ck-up { position: absolute; left: 0; top: calc(var(--hen) * -1.08); z-index: 2; font: 800 24px/1 var(--font-display); font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; color: #04210f; background: linear-gradient(180deg, color-mix(in srgb, var(--g2) 45%, #fff), var(--g2) 60%, color-mix(in srgb, var(--g2) 75%, #052)); padding: 7px 14px 6px; border-radius: var(--r-pill); border: 2.5px solid #fff; box-shadow: 0 4px 0 #0a5a26, 0 8px 12px rgba(2, 3, 10, .5), 0 0 24px color-mix(in srgb, var(--g2) 70%, transparent), inset 0 1px 0 #fff; transform: translate(-50%, -46px); opacity: 0; animation: ckUp 950ms ease-out; }
.ck-up.won { top: calc(var(--hen) * -1.32); display: flex; align-items: center; gap: 7px; font-size: 22px; padding: 7px 16px 6px 9px; color: var(--ink); background: linear-gradient(180deg, #fff0a8, var(--gold) 55%, #f0a51e); box-shadow: 0 4px 0 #8a5200, 0 8px 12px rgba(2, 3, 10, .5), 0 0 30px color-mix(in srgb, var(--gold) 80%, transparent), inset 0 1px 0 #fff; transform: translate(-50%, 0); opacity: 1; animation: ckWonIn 480ms var(--ease-pop) backwards; }
.ck-up.won.top { display: none; }
.ck-up.won { min-width: 5.2ch; justify-content: center; }
.ck-up.won::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8d0, #ffd43d 45%, #e08a00); box-shadow: inset 0 0 0 2px #b8690066, inset 0 0 0 4px #fff3, 0 1px 0 #8a5200; }
.ck-fx.still .ck-up.won { animation: none; }
.ck-fx s { position: absolute; left: -9px; top: -4px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 8%, transparent 9%), radial-gradient(circle, transparent 0 44%, #b8690099 46% 52%, transparent 54%), radial-gradient(circle at 35% 30%, #fff8d0, #ffd43d 45%, #e08a00); box-shadow: inset 0 0 0 1.5px #a86900aa, 0 2px 0 #9a5c00, 0 4px 3px rgba(2, 3, 10, .45); opacity: 0; animation: ckCoin var(--t, 900ms) var(--dl, 0ms), ckFlip var(--fp, 300ms) linear infinite; }
.ck-fx s.sv { background: radial-gradient(circle at 35% 30%, #fff 0 8%, transparent 9%), radial-gradient(circle, transparent 0 44%, #c98a0099 46% 52%, transparent 54%), radial-gradient(circle at 35% 30%, #fffbe6, #ffe680 45%, #f0a51e); }
.ck-fx s.sp { border-radius: 0; box-shadow: none; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: ckCoin var(--t, 900ms) var(--dl, 0ms); }
/* coins that stay on the road after the fountain */
.ck-fx s.ld { top: calc(var(--hen) * .06); opacity: 1; transform: translate(var(--dx), var(--dn)) scale(var(--cs, 1), calc(var(--cs, 1) * .58)); box-shadow: inset 0 0 0 1.5px #a86900aa, 0 3px 0 #9a5c00, 0 5px 0 #7a4a00, 4px 8px 4px rgba(2, 3, 10, .55); animation: ckCoinLand 420ms var(--ease-pop) var(--dl, 0ms) backwards; }
.ck-fx.still s.ld { animation: none; }
@keyframes ckCoinLand { 0% { opacity: 0; transform: translate(var(--dx), calc(var(--dn) - 26px)) scale(var(--cs, 1)); } 60% { opacity: 1; transform: translate(var(--dx), var(--dn)) scale(calc(var(--cs, 1) * 1.15), calc(var(--cs, 1) * .5)); } }
.ck-twk { position: absolute; left: var(--tx); top: var(--ty); width: 16px; height: 16px; margin: -8px; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 4px #ffe680); animation: ckTwinkle 1.1s ease-in-out var(--td, 0s) infinite; }
.ck-fx.still .ck-twk { animation: none; }
.ck-ring { position: absolute; left: -26px; top: -30px; width: 52px; height: 52px; border-radius: 50%; border: 4px solid var(--gold); box-shadow: 0 0 16px var(--gold), inset 0 0 12px var(--gold); opacity: 0; animation: ckRing 700ms ease-out; }
.ck-ring.r2 { animation-delay: 160ms; border-color: #fff; }
.ck-ring.r3 { animation-delay: 340ms; border-width: 2px; }
@keyframes ckPuff { 0% { transform: translate(0, calc(var(--hen) * -.2)) scale(.3); animation-timing-function: cubic-bezier(.1, .8, .3, 1); } 20% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) * .5)) scale(var(--s, 1)); animation-timing-function: ease-in-out; } 40% { transform: translate(calc(var(--dx) * 1.3), calc(var(--dy) * .6 + var(--ry) * .3)) rotate(calc(var(--rot) * .7 + 34deg)) scale(var(--s, 1)); } 60% { transform: translate(calc(var(--dx) * 1.08), calc(var(--dy) * .2 + var(--ry) * .6)) rotate(calc(var(--rot) * .8 - 26deg)) scale(var(--s, 1)); } 80% { transform: translate(calc(var(--dx) * 1.28), calc(var(--ry) * .88)) rotate(calc(var(--rot) * .92 + 16deg)) scale(var(--s, 1)); } }
@keyframes ckPuffOut { 0% { transform: translate(0, 0) scale(.3); opacity: 1; } 70% { opacity: .9; } 100% { transform: translate(var(--dx), calc(var(--dy) + 14px)) rotate(var(--rot)); opacity: 0; } }
@keyframes ckStar { 0% { transform: scale(.2) rotate(-20deg); opacity: 1; } 55% { opacity: .95; } 100% { transform: scale(1.3) rotate(12deg); opacity: 0; } }
@keyframes ckLines { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes ckDust { 0% { transform: scale(.3); opacity: .95; } 100% { transform: scale(1.7, 1.3); opacity: 0; } }
@keyframes ckOkRing { 0% { transform: scale(.25); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes ckUp { 0% { transform: translate(-50%, 16px) scale(.4); opacity: 0; } 16% { transform: translate(-50%, 0) scale(1.2) rotate(-4deg); opacity: 1; } 30% { transform: translate(-50%, -4px) scale(1); } 72% { opacity: 1; } 100% { transform: translate(-50%, -46px); opacity: 0; } }
@keyframes ckWonIn { 0% { transform: translate(-50%, 30px) scale(.3); opacity: 0; } }
@keyframes ckCoin { 0% { transform: translate(0, 0) scale(.3); opacity: 0; animation-timing-function: cubic-bezier(.2, .7, .4, 1); } 10% { opacity: 1; } 38% { transform: translate(calc(var(--dx) * .5), var(--up)) scale(var(--cs, 1)); animation-timing-function: cubic-bezier(.6, 0, .9, .6); } 66% { transform: translate(calc(var(--dx) * .86), calc(var(--dn) + var(--hen) * .1)) scale(var(--cs, 1)); animation-timing-function: cubic-bezier(.1, .6, .4, 1); } 78% { transform: translate(calc(var(--dx) * .94), calc(var(--dn) + var(--hen) * .1 - var(--bn, 14px))) scale(var(--cs, 1)); animation-timing-function: cubic-bezier(.6, 0, .9, .6); } 90% { transform: translate(var(--dx), calc(var(--dn) + var(--hen) * .1)) scale(var(--cs, 1)); opacity: 1; } 100% { transform: translate(calc(var(--dx) * 1.05), calc(var(--dn) + var(--hen) * .1)) scale(var(--cs, 1)); opacity: 0; } }
@keyframes ckFlip { 50% { scale: .2 1; } }
@keyframes ckRing { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(4); opacity: 0; } }

:root[data-q="low"] .ck-leaf, :root[data-q="low"] .ck-hen svg { filter: none; }
:root[data-q="low"] .ck-car .tr, :root[data-q="low"] .ck-car .ex, :root[data-q="low"] .ck-fly, :root[data-q="low"] .ck-sig::after, :root[data-q="low"] .ck-sun, :root[data-q="low"] .ck-rays { display: none; }
:root[data-q="low"] .ck-leaf, :root[data-q="low"] .ck-steam::before, :root[data-q="low"] .ck-steam::after, :root[data-q="low"] .ck-car .pl::before, :root[data-q="low"] .ck-car .pl::after, :root[data-q="low"] .ck-lane.next .ck-glow, :root[data-q="low"] .ck-hen .hb, :root[data-q="low"] .ck-hen .ht, :root[data-q="low"] .ck-hen .hd, :root[data-q="low"] .ck-car .bd, :root[data-q="low"] .ck-nest .ck-tw, :root[data-q="low"] .ck-score::before, :root[data-q="low"] .ck-score::after, :root[data-q="low"] .ck-prog i.now::before { animation: none; }

@media (max-width: 860px) {
  .view[data-view="chicken"] { --rh: 372px; --lw: 86px; --vw: 122px; --ew: 176px; --cw: 44px; --hen: 86px; --pv: 20px; --kb: 7px; --gt: 12px; --gh: 24px; --bh: 36px; }
  .view[data-view="chicken"] .board { padding: 12px 12px 0; gap: 10px; }
  .ck-stage { width: calc(100% + 24px); margin: 0 -12px; }
  .ck-score { padding: 15px 14px 13px; }
  .ck-read { min-height: 48px; gap: 6px 12px; }
  .ck-lcd { min-width: 132px; padding: 6px 12px 4px; }
  .ck-lcd b { font-size: 38px; }
  .ck-plate, .ck-badge { font-size: 12.5px; padding: 4px 7px 3px; }
  .ck-plate { font-size: 11px; }
  .ck-up { font-size: 21px; }
  .ck-up.won { font-size: 19px; }
  .ck-card b { font-size: 28px; } .ck-card em { font-size: 26px; }
  .ck-card.top b { font-size: 29px; } .ck-card.top em { font-size: 31px; }
  .ck-card.lost b { font-size: 38px; }
  .ck-card span { font-size: 12.5px; }
  .ck-card.top { top: 3px; left: 50%; padding: 9px 18px 10px; } .ck-card.top span { font-size: 11px; }
  .ck-card.set { min-width: 236px; transform: translate(-50%, 0) scale(.88); } .ck-card.lost.set { transform: translate(-50%, 0) scale(.88) rotate(-3deg); } .ck-card.top.set { top: 2px; transform: translate(-50%, 0) scale(.8); }
  .ck-edge { width: 34px; } .ck-edge.r { width: 46px; }
  .ck-leaf { width: 96px; } .ck-leaf.r { width: 110px; }
  .ck-lamp { width: 50px; left: calc(var(--gw) + var(--pv) / 2 - 8px); } .ck-end .ck-lamp { left: -20px; }
  .ck-sun { right: 80px; }
}
@media (max-width: 699px) {
  .view[data-view="chicken"] { gap: 12px; }
  .ck-read { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "lcd info info" "lcd top top" "sub sub mid"; align-items: center; gap: 5px 10px; }
  .ck-lcd { grid-area: lcd; }
  .ck-info { display: contents; }
  .ck-info span { grid-area: info; justify-self: start; }
  .ck-info small { grid-area: sub; font-size: 12.5px; padding-left: 2px; }
  .ck-info small b { font-size: 14px; } .ck-info .cn { width: 13px; height: 13px; margin: 0 4px -2px 1px; }
  .ck-mid { grid-area: mid; margin: 0; }
  .ck-mid > span { display: flex; align-items: baseline; gap: 7px; padding: 3px 9px; border-radius: var(--r-pill); }
  .ck-mid em { font-size: 9px; } .ck-mid b { font-size: 12.5px; }
  #ck-top { grid-area: top; margin: 0; justify-self: start; display: flex; gap: 6px; padding: 3px 9px 3px 6px; border-radius: var(--r-pill); }
  #ck-top::before { width: 11px; height: 14px; }
  #ck-top b { font-size: 13px; }
  #ck-top em u { display: none; }
  .ck-prog { margin: 25px 0 11px; gap: 2px; }
  .ck-edge.r::after { width: 28px; height: 28px; margin-top: -14px; background-size: 44px 22px, auto, auto; right: 5px; }
  .view[data-view="chicken"] .board { scroll-margin-top: 60px; }
  .view[data-view="chicken"] .gdock { flex-wrap: nowrap; padding: 9px 12px 10px; }
  .view[data-view="chicken"] .gdock :is(#chicken-go, #chicken-cash) { flex: 1 1 0; min-height: 52px; line-height: 1.15; padding: 4px 8px; }
}
/* short phones: the road gives up a little height so the score, the road and the dock fit between the top bar and the tab bar */
@media (max-width: 699px) and (max-height: 780px) { .view[data-view="chicken"] { --rh: 346px; } }
@media (max-width: 359px) { .ck-mid em { display: none; } } /* the narrowest phones: the next lane's number alone, so nothing is cut */
@media (max-width: 860px) { .view[data-view="chicken"] .gdock { margin: 0 -12px 0; width: calc(100% + 24px); padding: 10px 12px 12px; } }

/* Phones: toasts sit under the top bar on these games, so they never cover the result line or the action buttons */
@media (max-width: 699px) {
  body:has(.view:is([data-view="chicken"], [data-view="blackjack"], [data-view="soccer"], [data-view="skydash"], [data-view="roadhop"]):not([hidden])):not(:has(.chat:not([hidden]))) #toasts { bottom: auto; top: calc(var(--top-h) + 8px + env(safe-area-inset-top, 0px)); }
  body:has(.view:is([data-view="chicken"], [data-view="blackjack"], [data-view="soccer"], [data-view="skydash"], [data-view="roadhop"]):not([hidden])) #toasts .toast:not(:last-child) { display: none; }
}
