/* Scoped to Chicken Crossing. Existing games keep their own layout and styles. */
.chicken-page .market-ribbon{display:none!important}
.chicken-page main{max-width:none;margin:0;padding:24px clamp(14px,2.5vw,44px) 40px;background:radial-gradient(ellipse at 70% 0,rgba(160,124,255,.08),transparent 60%),#090e17}
.ch{--ch-lane:128px;--ch-text:#eef2fa;--ch-muted:#9aa8bc;--ch-border:rgba(192,211,244,.11);--ch-mint:#5be0b5;--ch-purple:#b69aff;max-width:1536px;margin:auto;color:var(--ch-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:16px;font-variant-numeric:tabular-nums}
.ch *{box-sizing:border-box}
.ch [hidden]{display:none!important}
.ch button,.ch input,.ch a{font:inherit}
.ch button{cursor:pointer;color:inherit}
.ch button:disabled{cursor:not-allowed;opacity:.45}
.ch button:focus-visible,.ch input:focus-visible,.ch a:focus-visible{outline:2px solid var(--ch-purple);outline-offset:4px}
.ch-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.ch-eyebrow{font-size:12px;font-weight:800;letter-spacing:.16em;color:var(--ch-purple)}
.ch h1{display:flex;align-items:center;gap:12px;font-size:clamp(27px,2.6vw,38px);line-height:1.2;letter-spacing:-.035em;margin:7px 0 8px;font-weight:850}
.ch-title-dot{display:block;width:10px;height:10px;background:#f8c868;box-shadow:0 0 22px #edaa2e66;border-radius:50%}
.ch-head p{font-size:16px;color:var(--ch-muted);margin:0;line-height:1.5}
.ch-tools{display:flex;gap:8px;flex-shrink:0}
.ch-tool{min-height:42px;border:1px solid var(--ch-border);border-radius:12px;padding:10px 14px;background:#131c2a;font-size:14px!important;font-weight:650!important;white-space:nowrap}
.ch-tool:hover{border-color:#b69aff66;background:#1c2638}
.ch-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:stretch}
.ch-controls{display:flex;flex-direction:column;gap:20px;background:linear-gradient(155deg,#182131,#101722);border:1px solid var(--ch-border);padding:22px;border-radius:20px;min-width:0}
.ch-control-top{display:flex;justify-content:space-between;align-items:center}
.ch-live-dot{width:7px;height:7px;border-radius:50%;background:var(--ch-mint);box-shadow:0 0 12px #5be0b544}
.ch-field{display:flex;flex-direction:column;gap:10px}
.ch-field label,.ch-label{font-size:15px;color:#c0ccdd;font-weight:650}
.ch-bet{display:flex;align-items:center;border:1px solid #324055;border-radius:11px;padding:4px 5px 4px 13px;background:#0b121e;min-width:0;height:52px;gap:4px}
.ch-bet:focus-within{border-color:var(--ch-purple);box-shadow:0 0 0 3px #b69aff0d}
.ch-bet>span{color:var(--ch-muted)}
.ch-bet input{color:#fff;font-weight:750;font-size:19px;border:0;background:transparent;width:100%;min-width:0;outline:0;padding:8px 4px;box-shadow:none}
.ch-bet button{height:36px;min-width:34px;border-radius:7px;border:1px solid #29364a;background:#1b2638;font-size:15px;font-weight:700}
.ch-bet button:hover{background:#2c3950}
.ch-field small{font-size:12px;color:var(--ch-muted)}
.ch-difficulties{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.ch-difficulties button{display:flex;align-items:center;gap:9px;background:#101927;border:1px solid #2a3649;border-radius:10px;min-height:44px;padding:9px 11px;font-size:14px;font-weight:650}
.ch-difficulties button[aria-pressed=true]{background:linear-gradient(125deg,#433559,#2b263e);border-color:#9d80d8;box-shadow:inset 0 0 0 1px #b69aff15;color:#e6d7ff}
.ch-bars{display:flex;align-items:flex-end;gap:2px;height:14px}
.ch-bars i{display:block;width:3px;background:#435168;border-radius:1px;height:5px}
.ch-bars i:nth-child(2){height:8px}.ch-bars i:nth-child(3){height:11px}.ch-bars i:nth-child(4){height:14px}
.ch-bars i.on{background:#a996c9}
.ch-difficulties button[aria-pressed=true] .on{background:#d6bdff}
.ch-next{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px;padding:16px;background:linear-gradient(110deg,#202839,#1b2231);border:1px solid var(--ch-border);border-radius:12px}
.ch-next>span{font-size:14px;color:var(--ch-muted)}
.ch-next strong{grid-row:span 2;color:#ffd788;font-size:25px;letter-spacing:-.03em}
.ch-next small{font-size:16px;font-weight:700}
.ch-actions{display:flex;flex-direction:column;gap:9px}
.ch-play,.ch-collect{display:flex;align-items:center;justify-content:center;gap:12px;min-height:54px;width:100%;border:0;border-radius:11px;padding:13px 14px;font-size:16px;font-weight:800!important;text-decoration:none;transition:background .15s,box-shadow .15s}
.ch .ch-play{background:linear-gradient(105deg,#b497f5,#caafff);color:#191126;box-shadow:0 4px 0 #69538c,0 8px 20px #a98bff12}
.ch .ch-play:hover:not(:disabled){background:linear-gradient(105deg,#c9aeff,#d8c0ff);box-shadow:0 4px 0 #69538c,0 8px 25px #a98bff30}
.ch-play>span{font-size:23px;line-height:1}
.ch .ch-collect{background:#17372f;border:1px solid #397e66;color:#85e4be;justify-content:space-between;margin-top:3px}
.ch-collect b{font-size:17px;color:#a4f6d4}
.ch .ch-collect:disabled{background:#16212b;border-color:#29394a;color:#8798ac;opacity:.65}
.ch-collect:disabled b{color:#91a1b2}
.ch-message{font-size:13px;line-height:1.4;min-height:37px;color:#ade7cd;margin-top:-6px}
.ch-message.bad{color:#ffada8}
.ch-control-foot{border-top:1px solid var(--ch-border);padding-top:15px;margin-top:auto;display:flex;justify-content:space-between;gap:8px;font-size:14px;color:var(--ch-muted)}
.ch-control-foot b{color:#f3d899}
.ch-stage{display:flex;flex-direction:column;border:1px solid #324054;border-radius:20px;overflow:hidden;min-width:0;background:#172532;box-shadow:0 14px 44px #0003}
.ch-stage-top{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:19px 23px;border-bottom:1px solid #42556555;background:linear-gradient(110deg,#243642,#1b2836);z-index:5}
.ch-road-sign{font-weight:900;font-size:17px;letter-spacing:.055em;color:#e9c988}
.ch-road-sign b{color:#f5f2e9}
.ch-progress{font-size:14px;font-weight:650;color:#bac8d2;white-space:nowrap}
.ch-viewport{position:relative;overflow:hidden;flex:1;min-height:460px;isolation:isolate;background:#263039}
.ch-viewport::after{content:'';pointer-events:none;position:absolute;inset:0;z-index:4;box-shadow:inset 20px 0 28px -24px #000,inset -20px 0 28px -24px #000}
.ch-world{display:flex;position:absolute;inset:0 auto 0 0;height:100%;width:max-content;transition:transform .5s cubic-bezier(.22,.7,.22,1);will-change:transform}
.ch-verge,.ch-lane{width:var(--ch-lane);flex:0 0 var(--ch-lane);height:100%;position:relative}
.ch-verge{background:radial-gradient(ellipse at 30% 30%,#506e4c22 0 20%,transparent 21%),repeating-linear-gradient(0deg,#45664d 0 2px,#486b4f 2px 5px);border-right:5px solid #a6aa8b;box-shadow:inset -7px 0 #283c32,inset 0 15px 30px #0002}
.ch-start::after{content:'';position:absolute;left:0;right:0;top:55%;height:100px;background:repeating-linear-gradient(90deg,#849785 0 29px,#607566 30px 31px);transform:translateY(-50%);opacity:.55}
.ch-start-label{position:absolute;left:0;right:0;top:18%;font-size:14px;font-weight:850;letter-spacing:.15em;text-align:center;color:#e0e5c2;transform:rotate(-90deg);opacity:.75}
.ch-curb{position:absolute;right:0;width:8px;height:100%;z-index:1;background:repeating-linear-gradient(0deg,#bebba5 0 24px,#4a5350 25px 26px)}
.ch-shrub{position:absolute;width:70px;height:70px;border-radius:39% 53% 44% 45%;background:radial-gradient(ellipse at 35% 30%,#6d985e,#3c6945 68%,#294c3c);box-shadow:0 6px 0 #203d3266,inset 0 5px #7b9f5e55,4px 10px 13px #132c3466;border:4px solid #547a4c;z-index:2}
.ch-shrub.one{top:7%;left:-25px;transform:rotate(15deg)}.ch-shrub.two{bottom:10%;left:18px;width:80px;height:68px;transform:rotate(-20deg)}
.ch-lane{background:linear-gradient(#25313b88,#25313b88),url('/chicken-assets/asphalt.png') center/320px 320px;border-right:1px solid #56616b55}
.ch-lane::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:repeating-linear-gradient(to bottom,#a9b2b966 0 29px,transparent 29px 58px);opacity:.5}
.ch-lane-number{position:absolute;left:0;right:0;top:17px;text-align:center;font-weight:800;color:#ffffff34;font-size:16px;letter-spacing:.08em;z-index:2}
.ch-lane-mark{position:absolute;top:31%;left:50%;width:17px;height:24px;transform:translateX(-50%);opacity:.13;background:#f6f3e5;clip-path:polygon(50% 0,100% 40%,68% 40%,68% 100%,32% 100%,32% 40%,0 40%)}
.ch-lane:nth-child(odd) .ch-lane-mark{transform:translateX(-50%) rotate(180deg)}
.ch-coin{position:absolute;top:55%;left:50%;width:89px;height:89px;transform:translate(-50%,-50%);display:grid;place-items:center;z-index:2;border-radius:50%;background:radial-gradient(ellipse at 50% 35%,#435060,#2d3745 80%);border:4px solid #79818a;box-shadow:0 5px 0 #151c25,0 0 0 3px #1c2630,inset 0 0 0 2px #a8adb322;white-space:nowrap;font-size:20px;font-weight:850;color:#dce4ed;text-shadow:0 2px 3px #0005;transition:background .2s,border-color .2s}
.ch-lane.safe .ch-coin{background:radial-gradient(ellipse at 50% 35%,#67ac8a,#2d6f5b);border-color:#90cda5;box-shadow:0 5px 0 #163f34,0 0 0 3px #233f38;color:#e1ffe9}
.ch-lane.current .ch-coin{box-shadow:0 5px 0 #183d34,0 0 25px #65e0b24d}
.ch-car{position:absolute;top:0;left:50%;width:93px;height:154px;z-index:3;transform:translate(-50%,-170px);animation:ch-traffic var(--drive) linear var(--delay) infinite;pointer-events:none}
.ch-car img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(5px 9px 4px #0008)}
.ch-car.reverse{animation-direction:reverse}.ch-car.reverse img{transform:rotate(180deg)}
.ch-lane.safe .ch-car,.ch-lane.crossing .ch-car{visibility:hidden}
.ch-barrier{position:absolute;left:16px;right:16px;top:38%;height:9px;border-radius:3px;background:repeating-linear-gradient(115deg,#eecb6e 0 10px,#343e46 10px 20px);border:2px solid #d3d8c6;box-shadow:0 4px 0 #121b24;opacity:0;transition:opacity .2s;z-index:3}
.ch-barrier::before,.ch-barrier::after{content:'';position:absolute;top:7px;width:5px;height:18px;background:#9bacae;border-radius:0 0 2px 2px}.ch-barrier::before{left:6px}.ch-barrier::after{right:6px}
.ch-lane.safe .ch-barrier{opacity:1}
.ch-lane.crashed .ch-coin{background:#773f42;border-color:#d27a72;color:#ffdad4}
.ch-lane.crashed .ch-car{animation:none;top:calc(55% - 145px);transform:translateX(-50%)}
.ch-lane.crashed .ch-car img{transform:none}
.ch-bird{position:absolute;left:64px;top:55%;width:105px;height:100px;transform:translate(-50%,-65%);z-index:4;transition:left .5s cubic-bezier(.22,.7,.22,1);pointer-events:none}
.ch-bird img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(2px 3px 1px #0004);animation:ch-breathe 2.5s ease-in-out infinite;transform-origin:50% 85%}
.ch-bird-shadow{position:absolute;left:20%;right:16%;bottom:4%;height:16px;border-radius:50%;background:#0005;filter:blur(4px)}
.ch-bird.hopping img{animation:ch-hop .5s ease-in-out}
.ch-bird.is-lost img{animation:ch-bump .45s ease-out forwards;opacity:.75;filter:grayscale(.5)}
.ch-feathers{display:none;position:absolute;inset:0;color:#ffe4a0;font-size:75px;text-align:center;text-shadow:0 0 24px #eec372}
.ch-bird.is-lost .ch-feathers{display:block;animation:ch-feathers .6s ease-out forwards}
.ch-bird.is-won img{animation:ch-breathe 1s ease-in-out infinite}
.ch-finish{border-right:0;border-left:8px solid #bfc5a2;background:repeating-conic-gradient(#c7d0b5 0 25%,#364b40 0 50%) 0 0/26px 26px}
.ch-finish span{position:absolute;top:18%;left:0;right:0;text-align:center;padding:8px 0;background:#163a31;font-size:15px;font-weight:850}
.ch-finish b{position:absolute;top:52%;left:50%;transform:translate(-50%,-50%);font-size:65px;color:#ffe08b;text-shadow:0 4px #937335}
.ch-result{position:absolute;z-index:6;left:50%;top:20px;transform:translateX(-50%);width:250px;max-width:calc(100% - 30px);text-align:center;padding:17px 20px;border:1px solid #559a7e;border-radius:15px;background:#102b27ed;box-shadow:0 10px 26px #0004;backdrop-filter:blur(12px)}
.ch-result>span{display:block;font-size:11px;letter-spacing:.18em;color:#9fdfbd;font-weight:800}
.ch-result strong{display:block;font-size:29px;margin:5px 0;color:#b9fbd6;letter-spacing:-.04em}
.ch-result small{font-size:14px;color:#b4d6c8}
.ch-result.lost{background:#34252ced;border-color:#8c5458}.ch-result.lost strong{font-size:25px;color:#ffd4cd}.ch-result.lost>span,.ch-result.lost small{color:#ddb6b5}
.ch-stage-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 20px;min-height:53px;font-size:13px;color:#b4c4d0;background:#1c2b37;border-top:1px solid #66798833;z-index:5}
.ch-stage-bottom>span:first-child{display:flex;align-items:center;gap:8px;font-weight:700;white-space:nowrap}
.ch-stage-bottom i{width:6px;height:6px;background:#93cdaa;border-radius:50%}
.ch-loading{min-height:560px;display:grid;place-content:center;gap:20px;text-align:center;color:#aebbd0}
.ch-loading button{background:#332d4b;color:#eee;border:1px solid #79688f;border-radius:10px;padding:12px}
.ch-dialog{width:min(540px,calc(100vw - 32px));border:1px solid #4b4966;border-radius:20px;background:#151e2d;color:#ebf0fa;padding:30px;box-shadow:0 20px 100px #0009}
.ch-dialog::backdrop{background:#030710bd;backdrop-filter:blur(5px)}
.ch-dialog h2{font-size:25px;line-height:1.2;letter-spacing:-.025em;margin:12px 0 20px}
.ch-dialog ol{padding-left:22px;margin:0 0 20px}.ch-dialog li{line-height:1.6;font-size:16px;margin:12px 0;padding-left:5px;color:#c0cbdb}.ch-dialog b{color:#eee}
.ch-dialog p{font-size:14px;line-height:1.6;color:#9eafc4}
.ch-close{position:absolute;right:13px;top:10px;border:0;background:transparent;font-size:28px!important;width:36px;height:36px;color:#aaa}
.ch-close-button{margin-top:22px}
@keyframes ch-traffic{from{transform:translate(-50%,-180px)}to{transform:translate(-50%,700px)}}
@keyframes ch-breathe{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-3px) rotate(1deg)}}
@keyframes ch-hop{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-27px) rotate(-10deg)}70%{transform:translateY(-10px) rotate(8deg)}}
@keyframes ch-bump{to{transform:translate(-7px,10px) rotate(-26deg) scale(.9)}}
@keyframes ch-feathers{0%{opacity:1;transform:scale(.3)}100%{opacity:0;transform:scale(1.6) rotate(35deg)}}
@media(min-width:1600px){.ch-viewport{min-height:490px}.ch-grid{grid-template-columns:320px minmax(0,1fr)}}
@media(max-width:1000px){.ch-grid{grid-template-columns:265px minmax(0,1fr);gap:12px}.ch-controls{padding:17px;gap:17px}.ch-head{align-items:flex-start}.ch-head p{max-width:440px}.ch-tools{padding-top:20px}.ch-stage-top{padding:19px 15px}.ch-road-sign{font-size:14px}.ch-progress{font-size:12px}.ch-stage-bottom{flex-wrap:wrap;gap:6px;padding:12px 15px}}
@media(max-width:760px){.chicken-page main{padding:18px 12px 28px}.ch{--ch-lane:112px}.ch-head{gap:12px;margin-bottom:18px;flex-wrap:wrap}.ch h1{font-size:29px}.ch-head p{font-size:14px;max-width:none}.ch-eyebrow{font-size:11px}.ch-tools{padding:0;gap:7px}.ch-tool{font-size:13px!important;min-height:38px;padding:8px 12px}.ch-grid{grid-template-columns:1fr;gap:12px}.ch-stage{grid-row:1;border-radius:16px}.ch-stage-top{padding:13px 16px}.ch-viewport{flex:none;height:310px;min-height:310px}.ch-stage-bottom{flex-wrap:nowrap;font-size:11px;min-height:44px;padding:11px 13px}.ch-stage-bottom>span:last-child{text-align:right}.ch-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px;border-radius:16px}.ch-control-top,.ch-control-foot{display:none}.ch-next{grid-column:1;grid-row:2;padding:11px;gap:4px;align-self:stretch}.ch-next strong{font-size:22px}.ch-next>span{font-size:12px}.ch-actions{grid-column:2;grid-row:2 / span 2;gap:7px}.ch-play,.ch-collect{font-size:14px;min-height:48px;padding:11px 12px;gap:7px}.ch-collect b{font-size:15px}.ch-message{grid-column:1;grid-row:3;min-height:30px;font-size:11px;margin:0}.ch-field{gap:8px}.ch-field label,.ch-label{font-size:13px}.ch-field small{font-size:11px}.ch-bet{height:44px;padding-left:9px;gap:1px}.ch-bet input{font-size:17px}.ch-bet button{min-width:27px;height:32px;font-size:13px}.ch-difficulties{gap:5px}.ch-difficulties button{padding:7px 8px;gap:6px;min-height:34px;font-size:12px}.ch-bars{gap:1px}.ch-bars i{width:2px}.ch-coin{height:78px;width:78px;font-size:18px}.ch-bird{width:92px;height:88px}.ch-car{width:79px;height:131px}.ch-result{width:205px;top:12px;padding:12px}.ch-result strong{font-size:25px}.ch-result.lost strong{font-size:21px}.ch-shrub.two{bottom:1%}.ch-barrier{top:32%}}
@media(max-width:380px){.ch h1{font-size:26px}.ch-controls{padding:12px;gap:10px}.ch-bet button{min-width:24px}.ch-difficulties button{font-size:11px;padding:6px}.ch-stage-bottom{font-size:10px}}
@media(prefers-reduced-motion:reduce){.ch *,.ch *::before,.ch *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.ch-car{transform:translate(-50%,-30px);opacity:.8}.ch-lane.crashed .ch-car{transform:translateX(-50%)}.ch-bird.is-lost img{transform:rotate(-25deg)}}

/* Keep secondary mobile copy readable without changing the fixed board size. */
@media(max-width:760px){.ch-field label,.ch-label{font-size:14px}.ch-field small{font-size:12px}.ch-difficulties button{font-size:13px;padding:7px 6px}.ch-message{font-size:12px;min-height:34px}.ch-stage-bottom{font-size:12px}}
@media(max-width:380px){.ch-stage-bottom{font-size:11px}.ch-difficulties button{gap:4px;font-size:12px}}

.ch-coin.ch-large{font-size:16px}.ch-next strong.long{font-size:18px}

/* ===== Traffic: spawned cars only (no car looping in every lane) ===== */
.ch .ch-car{animation:none!important;visibility:visible}
.ch .ch-driving{opacity:1}
.ch-lane.safe .ch-car,.ch-lane.crossing .ch-car{visibility:hidden}
/* the car that hits the chicken: drives in from its lane direction and stays parked */
.ch-hitcar{position:absolute;top:0;left:50%;z-index:5;width:93px;height:154px;transform:translate(-50%,-200px);pointer-events:none}
.ch-hitcar img{display:block;width:100%;height:100%;object-fit:contain}
.ch-hitcar.reverse img{transform:rotate(180deg)}
.ch-car img{filter:none}
@media(max-width:760px){.ch-hitcar{width:79px;height:131px}}

/* ===== Header tool icon ===== */
.ch-tool svg{width:15px;height:15px;margin:-2px 7px -2px 0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-2px}

/* ===== How to play: tabs + multiplier chart ===== */
.ch-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto}
.ch-rtabs{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin:-6px 0 18px;padding:3px;border-radius:12px;background:#0c131e;box-shadow:inset 0 0 0 1px #ffffff0d}
.ch-rtabs button{height:36px;border:0;border-radius:9px;background:transparent;color:#9aa8bc;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
.ch-rtabs button[aria-selected="true"]{color:#fff;background:linear-gradient(135deg,#9170ff55,#664dbe38);box-shadow:inset 0 0 0 1px #ae95ff4d}
.ch-rtabs button:focus-visible{outline:2px solid #b69aff;outline-offset:2px}
.ch-mtable{max-height:min(56vh,560px);overflow:auto;margin:0 -6px 12px;padding:0 6px;scrollbar-width:thin}
.ch-mgrid{display:grid;grid-template-columns:78px repeat(var(--cols),minmax(0,1fr));gap:6px 8px;align-items:center}
.ch-mh,.ch-mstep,.ch-mc{display:grid;place-items:center;height:32px;border-radius:8px;font-size:13px;font-weight:800;white-space:nowrap}
.ch-mh{position:sticky;top:0;z-index:1;color:#0b1120}
.ch-mh:nth-child(n+6){top:38px}
.ch-mlab{background:#2c3a4d;color:#dfe6f2;border-radius:99px}
.ch-mspan{grid-column:span var(--cols);background:#2c3a4d;color:#dfe6f2}
.ch-mstep{background:#243143;color:#c7d1df;border-radius:99px}
.ch-mh.ch-d-easy,.ch-mc.ch-d-easy{background:#5ad2f4;color:#06222e}
.ch-mh.ch-d-medium,.ch-mc.ch-d-medium{background:#2b7ff0;color:#fff}
.ch-mh.ch-d-hard,.ch-mc.ch-d-hard{background:#37d23c;color:#062a0a}
.ch-mh.ch-d-expert,.ch-mc.ch-d-expert{background:#f7b90e;color:#2a1b00}
.ch-mc.empty{background:transparent}
.ch-mh.cur{box-shadow:0 0 0 2px #fff,0 0 18px #ffffff40}
.ch-mc:not(.cur):not(.empty){opacity:.82}
.ch-mnote{margin:0 0 16px!important;font-size:13px!important}

/* ===== Provably fair window ===== */
.ch-fair{width:min(800px,calc(100vw - 24px));max-height:calc(100vh - 32px);padding:0;border:1px solid #ffffff24;border-radius:20px;background:#0e1420;color:#e8edf5;box-shadow:0 30px 80px #0009;overflow:hidden;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;font-variant-numeric:tabular-nums}
.ch-fair[open]{display:flex;flex-direction:column;animation:ch-fpop .22s cubic-bezier(.2,.8,.2,1)}
@keyframes ch-fpop{from{opacity:0;transform:translateY(10px) scale(.985)}}
.ch-fair::backdrop{background:#03060cb8;backdrop-filter:blur(4px)}
.ch-fhead{display:flex;flex:0 0 auto;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px 12px}
.ch-fhead h2{margin:0;font-size:20px;font-weight:800;letter-spacing:-.02em}
.ch-fhead p{margin:3px 0 0;color:#8794a8;font-size:13px}
.ch-fx{flex:0 0 auto;width:34px;height:34px;border:1px solid #ffffff14;border-radius:10px;background:transparent;color:#8794a8;font-size:18px;cursor:pointer}
.ch-fx:hover{color:#fff}
.ch-ftabs{display:flex;flex:0 0 auto;gap:2px;margin:0 22px;padding:3px;border-radius:12px;background:#0000004d;box-shadow:inset 0 0 0 1px #ffffff0d;overflow-x:auto;scrollbar-width:none}
.ch-ftabs button{flex:1 0 auto;height:34px;padding:0 14px;border:0;border-radius:9px;background:transparent;color:#8794a8;font:inherit;font-size:12.5px;font-weight:700;white-space:nowrap;cursor:pointer}
.ch-ftabs button:hover{color:#fff}
.ch-ftabs button[aria-selected="true"]{color:#fff;background:linear-gradient(135deg,#9170ff52,#664dbe38);box-shadow:inset 0 0 0 1px #ae95ff4d}
.ch-fair :focus-visible{outline:2px solid #b69aff;outline-offset:2px}
.ch-fbody{flex:1;min-height:0;padding:16px 22px 22px;overflow-y:auto;scrollbar-width:thin}
.ch-fpanel[hidden]{display:none}
.ch-fempty{display:grid;place-items:center;gap:4px;min-height:180px;padding:24px;border:1px dashed #ffffff24;border-radius:14px;color:#8794a8;font-size:13px;text-align:center}
.ch-fempty b{color:#e8edf5;font-size:15px}
.ch-fnote{margin:0 0 14px;color:#8794a8;font-size:13px;line-height:1.5}.ch-fnote b{color:#e8edf5}
.ch-kv{margin-bottom:10px}
.ch-kv label{display:block;margin-bottom:4px;color:#5d6a7e;font-size:11px;font-weight:700}
.ch-kv.two{display:grid;grid-template-columns:1fr 140px;gap:10px}
.ch-fair code{display:block;padding:9px 11px;border-radius:10px;background:#00000052;color:#cdd5e1;font:600 12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}
.ch-fair code mark{padding:0 2px;border-radius:3px;background:#42ddb940;color:#b5f5e4}
.ch-fair code b{font-family:Inter,sans-serif;font-weight:800}
.ch-fair .ok{color:#7ff0d3}.ch-fair .bad{color:#ff9d9d}.ch-fair .up{color:#42ddb9}.ch-fair .down{color:#ff8a8a}
.ch-flink{display:inline-block;margin-top:6px;color:#a98bff;font-size:12.5px;font-weight:700;text-decoration:none}
.ch-fround-top{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.ch-fround-top b{font-size:15px}.ch-fround-top small{color:#8794a8;font-size:12px}
.ch-res{padding:3px 10px;border-radius:99px;font-size:12px;font-weight:800}
.ch-res.win{background:#42ddb929;color:#7ff0d3}.ch-res.loss{background:#ff5a5a24;color:#ff9d9d}
.ch-fverify{margin-left:auto;padding:4px 10px;border-radius:99px;font-size:11.5px;font-weight:750;background:#ffffff0f;color:#b7c0ce}
.ch-fverify.ok{background:#42ddb924;color:#7ff0d3}.ch-fverify.bad{background:#ff5a5a24;color:#ff9d9d}
.ch-back{height:32px;margin-bottom:12px;padding:0 12px;border:1px solid #ffffff1a;border-radius:9px;background:#ffffff0a;color:#c3ccd8;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.ch-fsum{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin-bottom:12px;border:1px solid #ffffff14;border-radius:12px;overflow:hidden;background:#ffffff14}
.ch-fsum>div{padding:9px 12px;background:#111826}
.ch-fsum small{display:block;color:#5d6a7e;font-size:10.5px;font-weight:700}.ch-fsum b{font-size:14px;font-weight:800}
.ch-fviz{margin-bottom:14px;padding:12px 14px;border:1px solid #ffffff14;border-radius:14px;background:#ffffff05}
.ch-fviz>small{display:block;margin-bottom:8px;color:#5d6a7e;font-size:11px;font-weight:700}
.ch-lstrip{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:5px}
.ch-lcell{display:flex;flex-direction:column;align-items:center;justify-content:center;height:46px;border-radius:9px;background:#ffffff08;box-shadow:inset 0 0 0 1px #ffffff0f;color:#6f7c90}
.ch-lcell b{font-size:12px;font-weight:800}.ch-lcell small{font-size:10px;font-weight:700}
.ch-lcell.ok{background:#2f8f6f;color:#eafff6;box-shadow:none}
.ch-lcell.hit{background:#a33f47;color:#ffe3e3;box-shadow:none}
.ch-lcell.would{background:#42ddb914;color:#8ce9d2;box-shadow:inset 0 0 0 1.5px #42ddb966}
.ch-legend{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0 0;color:#8794a8;font-size:11.5px}
.ch-legend i{display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:3px;background:#ffffff14;vertical-align:-1px}
.ch-legend i.ok{background:#2f8f6f}.ch-legend i.hit{background:#a33f47}.ch-legend i.would{background:#42ddb914;box-shadow:inset 0 0 0 1.5px #42ddb966}
.ch-fmath{display:flex;flex-direction:column;gap:8px;margin:0 0 14px;padding:0;list-style:none;counter-reset:m}
.ch-fmath li{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:start;gap:10px;counter-increment:m}
.ch-fmath li>span{display:flex;align-items:center;gap:8px;padding-top:8px;color:#8794a8;font-size:12px;font-weight:700}
.ch-fmath li>span::before{content:counter(m);display:grid;place-items:center;flex:0 0 auto;width:20px;height:20px;border-radius:6px;background:#9170ff33;color:#d9ccff;font-size:10.5px;font-weight:800}
.ch-flist{display:flex;flex-direction:column;gap:6px}
.ch-frow{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 12px;border:1px solid #ffffff14;border-radius:12px;background:#ffffff06;color:inherit;font:inherit;text-align:left;cursor:pointer}
.ch-frow:hover{border-color:#a98bff66;background:#9170ff0f}
.ch-fdot{flex:0 0 auto;width:8px;height:32px;border-radius:4px}.ch-fdot.win{background:#42ddb9}.ch-fdot.loss{background:#ff7b7b}
.ch-frow-main{flex:1;min-width:0}.ch-frow-main b{display:block;font-size:13px}.ch-frow-main small{color:#5d6a7e;font-size:11.5px}
.ch-frow-val{font-size:13.5px;font-weight:800;white-space:nowrap}
.ch-steps{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;counter-reset:s}
.ch-steps li{position:relative;padding:12px 14px 12px 50px;border:1px solid #ffffff14;border-radius:14px;background:#ffffff06;counter-increment:s}
.ch-steps li::before{content:counter(s);position:absolute;top:12px;left:14px;display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#9170ff38;color:#d9ccff;font-size:12px;font-weight:800}
.ch-steps b{font-size:14px}.ch-steps p{margin:3px 0 8px;color:#8794a8;font-size:13px;line-height:1.5}
@media(max-width:640px){
  .ch-fair{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
  .ch-ftabs{margin:0 14px}.ch-ftabs button{padding:0 9px;font-size:12px}.ch-fhead{padding:16px 14px 10px}.ch-fbody{padding:14px}
  .ch-fsum{grid-template-columns:1fr 1fr}.ch-fmath li{grid-template-columns:1fr;gap:4px}.ch-fmath li>span{padding-top:0}.ch-kv.two{grid-template-columns:1fr}
  .ch-mgrid{grid-template-columns:52px repeat(var(--cols),minmax(0,1fr));gap:5px}.ch-mh,.ch-mstep,.ch-mc{font-size:11.5px;height:30px}
}
@media(prefers-reduced-motion:reduce){.ch-fair[open]{animation:none}}

/* bet state: obvious when a bet can't be placed */
.ch-field small#chLimits{display:block;height:2.8em;overflow:hidden;line-height:1.4}
.ch-field small#chLimits.bad{color:#ff9d9d;font-weight:700}
.ch-bet.bad{border-color:#ff6e6eb3;box-shadow:0 0 0 3px #ff5a5a1f}
.ch-bet.bad input{color:#ffb0b0}
.ch-bet.shake{animation:ch-shake .35s}
@keyframes ch-shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
.ch-bet button{min-width:30px;padding:0 6px;font-size:12.5px}
.ch-play.blocked{background:#ff5a5a24!important;color:#ffb0b0!important;box-shadow:inset 0 0 0 1px #ff6e6e73!important;cursor:not-allowed}
/* the message area keeps its size, whatever it says */
.ch-message{height:2.9em;min-height:0!important;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
/* walking back to the start after collecting */
.ch-bird.homeward{transition-duration:700ms!important}
/* fairness strip: where the car would have come */
.ch-lcell.miss{background:#ff5a5a1f;color:#ffb0b0;box-shadow:inset 0 0 0 1.5px #ff6e6e80}
.ch-legend i.miss{background:#ff5a5a1f;box-shadow:inset 0 0 0 1.5px #ff6e6e80}
.ch-safe-note{margin:10px 0 0;color:#cdd5e1;font-size:12.5px}.ch-safe-note b{color:#7ff0d3}
/* focus is shown on the whole bet box, not as a square around the number */
.ch .ch-bet input:focus,.ch .ch-bet input:focus-visible{outline:none;box-shadow:none}
.ch-bet:focus-within{border-color:#b69aff;box-shadow:0 0 0 3px #b69aff29}
.ch-bet.bad:focus-within{border-color:#ff6e6ecc;box-shadow:0 0 0 3px #ff5a5a29}

/* manual / auto */
.ch-seg{position:relative;display:grid;grid-template-columns:1fr 1fr;padding:3px;border-radius:12px;background:#0b121e;box-shadow:inset 0 0 0 1px #243042}
.ch-seg::before{content:"";position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:9px;background:#ffffff14;box-shadow:inset 0 0 0 1px #ffffff17;transition:transform .22s}
.ch-seg[data-active="auto"]::before{transform:translateX(100%)}
.ch-seg button{position:relative;z-index:1;height:34px;border:0;border-radius:9px;background:transparent;color:var(--ch-muted);font-size:13px;font-weight:700}
.ch-seg button[aria-pressed="true"]{color:#fff}
.ch-auto[hidden]{display:none}
.ch-auto{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid #243042;border-radius:14px;background:#0b121e99}
.ch-autorow{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}
.ch-autorow>span{flex:1 0 auto;color:var(--ch-muted);font-size:12px;font-weight:700}
.ch-autorow small{width:100%;color:var(--ch-muted);font-size:11.5px}
.ch-stepper{display:flex;align-items:center;border:1px solid #29364a;border-radius:9px}
.ch-stepper button{width:30px;height:30px;border:0;background:transparent;color:#cdd5e1;font-size:16px;font-weight:700}
.ch-stepper b{min-width:26px;text-align:center;font-size:14px}
.ch-chips5{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;padding:2px;border-radius:9px;background:#ffffff08}
.ch-chips5 button{height:28px;padding:0 7px;border:0;border-radius:7px;background:transparent;color:var(--ch-muted);font-size:12px;font-weight:700}
.ch-chips5 button[aria-pressed="true"]{background:#9170ff4d;color:#fff}
.ch-autogrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ch-mini{display:flex;flex-direction:column;gap:5px;min-width:0}
.ch-mini>span{color:var(--ch-muted);font-size:11.5px;font-weight:700}
.ch-mini>div{display:flex;align-items:center;gap:4px;height:34px;padding:0 9px;border:1px solid #29364a;border-radius:9px;background:#0b121e}
.ch-mini>div:focus-within{border-color:#b69aff}
.ch-mini em{color:var(--ch-muted);font-style:normal;font-size:12px;font-weight:700}
.ch .ch-mini input{flex:1;min-width:0;width:100%;height:100%;padding:0;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-size:13px;font-weight:700}
.ch .ch-mini input:focus-visible{outline:none}
.ch-mini input:disabled{opacity:.45}
.ch-onx{padding:0 7px 0 3px!important}
.ch-seg2{display:flex;gap:2px;padding:2px;border-radius:7px;background:#ffffff0a}
.ch-seg2 button{height:24px;padding:0 6px;border:0;border-radius:6px;background:transparent;color:var(--ch-muted);font-size:10.5px;font-weight:700}
.ch-seg2 button[aria-pressed="true"]{background:#9170ff4d;color:#fff}
.ch-onx input{width:32px!important;flex:0 0 auto!important;text-align:right}
.ch-play.stop{background:#ff8a8a!important;color:#1b0707!important}
.ch-collect[hidden]{display:none}
.ch-kbd{margin-top:10px}
.ch-replay{margin-left:auto;height:28px;padding:0 10px;border:1px solid #ffffff24;border-radius:8px;background:#ffffff0a;color:#cdd5e1;font-size:12px;font-weight:700}
.ch-replay:hover{color:#fff;border-color:#b69aff}
.ch-replay[hidden]{display:none}
.ch-stage-bottom{display:flex;align-items:center;gap:12px}
.ch-viewport .gx-bigwin{bottom:18px}
.ch-share{margin:0 0 0 8px!important}

/* on win / on loss rows use the full width so the % box fits */
.ch-autogrid .ch-mini:nth-child(n+3){grid-column:1/-1}
.ch-onx{justify-content:space-between}
.ch-onx input{width:48px!important}
/* Match Plinko: wider controls, stable road height and contained Auto options. */
.chicken-page main{background:linear-gradient(180deg,#090e17c9,#090e17f5 850px),url('/assets/game-backgrounds/chicken-inferno.webp') center top/cover no-repeat}
.ch-stage-top,.ch-stage-bottom{background:linear-gradient(#172532ed,#172532f5),url('/assets/game-backgrounds/chicken-inferno.webp') center/cover}
.ch .ch-bet input{flex:1 1 0;width:0;min-width:30px}
.ch .ch-bet button{flex:0 0 auto;min-width:38px;width:auto;padding:0 8px;white-space:nowrap;font-size:13px;line-height:1;display:grid;place-items:center}
.ch-head{margin-bottom:14px}.ch h1{margin:4px 0}.ch-head p{font-size:15px}
@media(min-width:1001px){
 .ch-grid{grid-template-columns:360px minmax(0,1fr);gap:14px;align-items:stretch}
 .ch-controls{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:9px;padding:14px;max-height:var(--gx-play-height,calc(100dvh - 190px));overflow-y:auto;scrollbar-width:thin}
 .ch-control-top,.ch-controls>.ch-seg,.ch-controls>.ch-field,.ch-auto,.ch-message,.ch-control-foot,.ch-kbd{grid-column:1/-1}
 .ch-control-top{display:none}.ch-field{gap:5px}.ch-difficulties{grid-template-columns:repeat(4,1fr);gap:4px}.ch-difficulties button{padding:7px 5px;font-size:13px;gap:5px}
 .ch-auto{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:9px}.ch-autorow{align-content:start;gap:4px}.ch-autorow>span{flex-basis:100%}.ch-autorow small{font-size:12px}.ch-autogrid{grid-column:1/-1;gap:7px}.ch-autogrid .ch-mini:nth-child(n+3){grid-column:auto}
 .ch-seg2 button{font-size:12px;padding:0 5px}.ch-onx input{width:35px!important}.ch-next{padding:10px;align-self:stretch}.ch-next strong{font-size:22px}.ch-actions{gap:5px}.ch .ch-play,.ch .ch-collect{min-height:42px;font-size:14px;padding:9px 10px;margin:0}
 .ch-control-foot{padding-top:6px;margin:0}.ch-kbd{margin:0}.ch-message{min-height:0;margin:0}.ch-message:empty{display:none}
 .ch-stage{height:var(--gx-play-height,calc(100dvh - 190px));max-height:640px;min-height:0}.ch-viewport{min-height:0;flex:1}.ch-stage-top{padding:12px 16px}.ch-stage-bottom{padding:10px 14px;flex-wrap:wrap}
}
@media(max-width:1000px){
 .ch-grid{grid-template-columns:1fr}.ch-stage{grid-row:1}.ch-viewport{min-height:310px;height:310px;flex:none}
 .ch-controls{display:flex;gap:12px;padding:14px}.ch-next,.ch-actions,.ch-field,.ch-auto{min-width:0}.ch-difficulties{grid-template-columns:repeat(4,minmax(0,1fr))}.ch-difficulties button{justify-content:center;font-size:13px;padding:8px 4px}.ch-bet{gap:3px}
}

/* Same narrow control rail as Plinko, with compact Auto rows. */
@media(min-width:1001px){
 .ch-controls{grid-auto-rows:max-content;align-self:start;gap:7px;padding:12px;overflow-x:hidden;scroll-padding:12px}
 .ch-auto{gap:6px;padding:8px}.ch-autogrid{gap:6px}
 .ch-autogrid .ch-mini:nth-child(n+3){grid-column:1/-1;display:grid;grid-template-columns:65px minmax(0,1fr);align-items:center;gap:5px}
 .ch-mini>span{font-size:12px}.ch-mini>div{height:32px}.ch-seg2{flex:1}.ch-seg2 button{flex:1;font-size:12px}
 .ch-field label,.ch-label{font-size:13px}.ch-field small{font-size:12px;line-height:1.3}
 .ch-bet{height:44px}.ch-difficulties button{min-height:34px;font-size:12px;gap:3px;padding:5px 3px}
 .ch-next{padding:8px}.ch-next>span{font-size:12px}.ch-next strong{font-size:20px}
 .ch-control-foot{font-size:12px;padding-top:5px}.ch-kbd{font-size:11px;gap:3px 8px}
 .ch-autorow>span,.ch-autorow small{font-size:12px}
}
@media(min-width:1001px) and (max-height:740px){.ch-controls{gap:5px;padding:10px}.ch-auto{gap:5px;padding:6px}.ch-field{gap:3px}}
