body{color:var(--pfb-text);font:13px var(--pfb-font-mono);background:radial-gradient(ellipse at top,#3e230e,#090603 70%);min-height:100dvh}button,a,input,select{-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;background:#24170e;color:var(--pfb-text);border:1px solid #806037;border-radius:7px;min-height:44px;padding:10px 14px}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #fff1b0;outline-offset:3px}[hidden]{display:none!important}header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;color:#c9aa7b;font-size:11px}header a{color:var(--pfb-gold);text-decoration:none;min-height:44px;display:flex;align-items:center}#derby{max-width:1100px;margin:auto;padding:env(safe-area-inset-top) max(14px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom))}h1,h2,.primary{font-family:var(--pfb-font-display);font-weight:400}h1{font-size:clamp(34px,5vw,64px);line-height:1.1;margin:15px 0}h1 span{color:var(--pfb-gold)}h2{font-size:30px;line-height:1.15}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--pfb-gold)}.lobby{display:grid;grid-template-columns:minmax(0,440px) 1fr;gap:40px;align-items:center;max-width:960px;margin:auto}.splash{padding:0;border:1px solid #b47b2e;overflow:hidden;box-shadow:0 12px 55px #0008;background:#201209}.splash img{display:block;width:100%;height:auto}.entry{display:grid;gap:12px}.entry>p{line-height:1.7}.entry label,.controls label{color:#d8bc90;font-size:10px;letter-spacing:1px}.entry input,.entry select{width:100%;background:#150e08;color:var(--pfb-text);padding:12px;border:1px solid #73552f;border-radius:6px;min-height:44px}.primary{background:linear-gradient(#ffdc72,#efa629);color:#231302;border:1px solid #fff0af;box-shadow:0 4px 0 #754109;font-size:20px;letter-spacing:.6px}.instructions{font-size:11px;color:#c4ae94;line-height:1.7}.marquee{text-align:center;border:1px solid #967143;border-radius:12px 12px 0 0;padding:12px;background:radial-gradient(circle,#573514,#231507);box-shadow:inset 0 0 0 4px #1b1008}.marquee h2{margin-top:6px;color:#ffe4a1}.race{padding:8px 12px 12px;border:1px solid #967143;border-top:0;background:#1b130c;border-radius:0 0 12px 12px}.lane{position:relative;height:66px;border-bottom:1px solid #836039;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(10% - 1px),#bba47816 10%),linear-gradient(#384027,#171e13);padding:5px 8px}.lane:nth-child(even){background-color:#3d2b1c}.lane-label{position:relative;z-index:2;font-size:10px;color:#fce6b5;text-shadow:0 1px 3px #000}.lane-label b{float:right}.runway{position:absolute;left:8px;right:58px;bottom:1px;height:47px}.runner{position:absolute;left:0;width:64px;height:48px;transition:left .4s ease-out;filter:drop-shadow(0 4px 2px #0009)}.runner svg{width:100%;height:100%;overflow:visible}.runner.gallop svg{animation:gallop .16s ease-in-out 3}.lane:after{content:'';position:absolute;right:45px;top:0;bottom:0;width:10px;background:conic-gradient(#fff1ca 25%,#21180e 0 50%,#fff1ca 0 75%,#21180e 0) 0 0/10px 10px;opacity:.7}.runner:after{content:'✦';position:absolute;left:-12px;bottom:3px;color:#ddb66a;opacity:0}.runner.gallop:after{animation:dust .4s}.play-area{display:grid;grid-template-columns:1fr .7fr;gap:22px;margin-top:18px;align-items:center}.board-wrap{border:2px solid #9f7138;border-radius:14px;overflow:hidden;box-shadow:0 8px 30px #0007}.board-title{display:flex;justify-content:space-between;gap:8px;padding:10px;background:#20130a;font-size:10px}.board-title b{color:#ffd368}.board{height:300px;position:relative;overflow:hidden;touch-action:none;user-select:none;background:repeating-linear-gradient(93deg,#ffffff04 0 2px,#00000005 3px 8px),linear-gradient(110deg,#573219,#bb8648 48%,#603416);box-shadow:inset 12px 0 0 #291609,inset -12px 0 0 #291609,inset 18px 0 0 #c08f4f,inset -18px 0 0 #c08f4f}.hole{position:absolute;transform:translate(-50%,-50%);width:48px;height:40px;border-radius:50%;border:4px solid #d0a966;background:radial-gradient(ellipse at bottom,#312416,#050301 70%);box-shadow:0 3px 0 #4a280f,0 0 0 2px #583915;color:#ffe6a4;display:grid;place-items:center;font:bold 20px var(--pfb-font-display)}.hole.lit{box-shadow:0 0 25px #ffe18a;border-color:#fff6c4;color:#fff}.ball{position:absolute;left:50%;top:88%;width:27px;height:27px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 30% 25%,#fff 0,#ddd 16%,#89949a 37%,#293138 68%,#b6c0c3 95%);box-shadow:3px 8px 7px #0007;z-index:3;pointer-events:none}.board-brand{position:absolute;top:61%;left:50%;transform:translateX(-50%);font:30px var(--pfb-font-display);color:#3e210e88;text-align:center;pointer-events:none}.board-brand small{font:9px var(--pfb-font-mono);letter-spacing:3px}.controls{display:grid;gap:13px}.controls>p:not(.eyebrow){line-height:1.6}.controls input{width:100%;min-height:44px;accent-color:#f5b030}.minor{display:flex;gap:10px}.minor button{flex:1}.result{position:fixed;z-index:10;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(92%,460px);max-height:90dvh;overflow:auto;background:linear-gradient(135deg,#44290e,#140d07);border:2px solid #ffcf69;box-shadow:0 0 0 100vmax #000b,0 0 70px #f5b03040;border-radius:16px;padding:26px;display:grid;gap:16px}.result h2{font-size:38px;color:#ffd470}.result ol{list-style-position:inside;line-height:2}.result li:first-child{color:#ffdb78}.result.celebrate:before{content:'✦ 🍺 ✦ 🏆 ✦ 🍺 ✦';text-align:center;font-size:25px;animation:gallop .7s infinite alternate}#cinema{text-align:center}video{display:block;margin:0 auto 15px;max-width:100%;max-height:75dvh;border-radius:12px}#aim-line{position:absolute;left:50%;top:70%;height:50px;border-left:2px dashed #fff9;transform-origin:bottom;opacity:0}@keyframes gallop{50%{transform:translateY(-4px) rotate(-3deg)}}@keyframes dust{50%{opacity:.8;transform:translateX(-9px)}}@media(max-width:650px){header>span{display:none}.lobby{grid-template-columns:1fr;gap:20px}.splash{max-width:360px;margin:auto}.entry{max-width:440px;margin:auto;width:100%}.entry h1{font-size:34px}.play-area{grid-template-columns:1fr;gap:14px}.board{height:240px}.controls h2{display:none}.controls{gap:7px}.lane{height:57px}.runway{height:40px}.runner{width:56px;height:43px}.marquee h2{font-size:24px}.marquee .eyebrow{font-size:8px;letter-spacing:1px}.controls .instructions{font-size:10px}}@media(orientation:landscape) and (max-height:600px){.lobby{grid-template-columns:200px 1fr}.play-area{grid-template-columns:1fr 1fr}.board{height:220px}.lane{height:50px}.splash{max-height:80dvh}.splash img{max-height:80dvh;width:auto}.controls h2{display:none}}@media(prefers-reduced-motion:reduce){.runner,.runner svg,.result:before{animation:none!important;transition:none!important}}
/* Keep horses and throwing controls together on short phones. */
@media(max-width:650px) and (max-height:950px){
  #derby{padding-bottom:8px}header{padding:4px 0}
  .marquee{padding:7px 3px}.marquee h2{font-size:19px;margin-top:3px}.marquee .eyebrow{font-size:7px;letter-spacing:.5px}
  .race{padding:3px 8px 5px}.lane{height:34px;padding:2px 4px}.lane-label{font-size:8px}.runway{height:28px;right:48px}.runner{width:42px;height:31px;bottom:-3px}.lane:after{right:33px}
  .play-area{margin-top:7px;gap:5px}.board{height:142px}.board-title{padding:7px;font-size:9px}.hole{width:39px;height:31px;border-width:3px;font-size:17px}.ball{width:22px;height:22px}.board-brand{font-size:19px}.board-brand small{font-size:7px;letter-spacing:1px}
  .controls{gap:4px}.controls .eyebrow,.controls>p,.controls>label{display:none}.controls input{min-height:25px;height:25px}.controls .primary{min-height:44px;padding:7px;font-size:19px}.minor button{padding:5px;font-size:10px}
}
@media(max-width:650px) and (min-height:751px){.lane{height:48px}.runway{height:37px}.runner{width:52px;height:40px}.board{height:210px}.controls .eyebrow{display:block}.controls input{min-height:44px}}
@media(orientation:landscape) and (max-height:600px) and (min-width:651px){
  #derby{padding-bottom:8px}header{padding:4px 0}#game{display:grid;grid-template-columns:1fr 1fr;gap:8px}.marquee{grid-column:1/-1;padding:5px}.marquee h2{font-size:20px;margin-top:2px}.marquee .eyebrow{font-size:8px}.race{border-top:1px solid #967143;border-radius:10px;padding:5px}.lane{height:25%}.play-area{margin:0;grid-template-columns:1fr;gap:3px}.board{height:120px}.board-title{padding:5px}.hole{width:39px;height:31px;font-size:17px}.controls{gap:3px}.controls>p,.controls>label{display:none}.controls input{min-height:25px;height:25px}.controls button{padding:6px}.controls .primary{font-size:18px}.board-brand{font-size:20px}.board-brand small{font-size:7px}
}
.confetti{position:fixed;inset:0;z-index:11;pointer-events:none;overflow:hidden}.confetti i{position:absolute;top:-20px;width:7px;height:13px;background:var(--color);animation:confetti-fall 2.5s var(--delay) ease-in forwards;left:var(--left)}@keyframes confetti-fall{to{transform:translateY(105dvh) rotate(540deg)}}@media(prefers-reduced-motion:reduce){.confetti{display:none}}
/* Crew edition: articulated horses, readable race calls and an honest aim preview. */
.crew-preview{display:flex;align-items:center;gap:12px;background:#20160d;border:1px solid #745329;padding:12px;border-radius:9px}.crew-preview img{object-fit:cover;border:2px solid #e8bc65;border-radius:50%;flex:none}.crew-preview p{font-size:11px;line-height:1.7}
.marquee{position:relative;background:radial-gradient(circle at 50% 0,#714b20,#231507 75%);border-color:#d3a653}.marquee:before{content:'';position:absolute;left:10px;right:10px;top:0;height:5px;background:radial-gradient(circle,#fff0b0 1px,#d39e39 2px,transparent 3px) 0 0/18px 5px;filter:drop-shadow(0 0 4px #ffc354)}
#race-call{font-size:11px;color:#e6cfa9;min-height:2.7em;line-height:1.35;margin-top:6px;max-width:650px;margin-inline:auto}
.lane{height:76px;isolation:isolate}.lane.leading{box-shadow:inset 3px 0 var(--silk),inset 0 0 28px #f0cc5c16}.lane-photo{position:absolute;left:6px;top:25px;width:35px;height:35px;object-fit:cover;border-radius:50%;border:2px solid var(--silk);z-index:3}.lane-label{display:flex;justify-content:space-between;gap:6px}.lane-label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lane-label b{flex:none}.runway{left:42px;right:89px;height:55px}.runner{width:88px;height:58px;bottom:0;transition:left .48s cubic-bezier(.2,.65,.4,1)}.finish-pils{position:absolute;right:8px;bottom:13px;font-size:22px}.lane:after{right:31px;z-index:-1}.runner.gallop svg{animation:none}.horse-tail{transform-origin:35px 39px}.leg.back{transform-origin:43px 51px}.leg.front{transform-origin:83px 49px}.horse-body{transform-origin:68px 45px}.runner.gallop .leg{animation:leg-stride .24s ease-in-out 2}.runner.gallop .leg.far{animation-direction:reverse}.runner.gallop .leg.front{animation-delay:-.12s}.runner.gallop .horse-body{animation:horse-bob .24s ease-in-out 2}.runner.gallop .horse-tail{animation:tail-swish .24s ease-in-out 2}.runner.gallop .horse-shadow{animation:shadow-stride .24s ease-in-out 2}.runner.gallop:after{content:'· ˙ ·';font-size:24px;animation:dust .48s}.paused *{animation-play-state:paused!important}.last-stretch .marquee{border-color:#fff2ac;box-shadow:inset 0 0 0 4px #1b1008,0 0 17px #edb14c40}
@keyframes leg-stride{0%,100%{transform:rotate(-18deg)}50%{transform:rotate(25deg)}}@keyframes horse-bob{50%{transform:translateY(-3px) rotate(-1deg)}}@keyframes tail-swish{50%{transform:rotate(14deg)}}@keyframes shadow-stride{50%{opacity:.45}}
.aim-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px}.aim-controls label{font-size:10px;color:#e6c79e}.aim-controls input{display:block}.aim-controls output{color:#ffdc84;float:right}#trajectory{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}#trajectory-path{fill:none;stroke:#fff2b1;stroke-width:.6;stroke-dasharray:2 2;opacity:.7}#target-dot{fill:none;stroke:#fff6d2;stroke-width:.6}.hole.targeted{outline:1px dashed #fff0b6;outline-offset:4px}.rolling #trajectory{opacity:.15}.power-gauge{position:absolute;right:5px;bottom:10px;width:6px;height:45%;background:#21150e;border-radius:8px;overflow:hidden;box-shadow:0 0 0 1px #c2924c}.power-gauge i{display:block;position:absolute;bottom:0;width:100%;background:linear-gradient(#fff2a0,#ef9824);border-radius:8px}.board-title{align-items:center}.board-title>*{white-space:nowrap}
.trophy{display:flex;justify-content:center;align-items:flex-end;gap:15px;height:130px}.trophy>img{object-fit:cover;border-radius:50%;border:3px solid #e7bc62;margin-bottom:10px}.pils-glass{width:67px;height:115px;position:relative;background:linear-gradient(90deg,#aa5d08,#ffe58a 25%,#f9b921 65%,#af6513);border:3px solid #ffeec0;border-radius:6px 6px 19px 19px;box-shadow:inset 5px 0 #ffffff60,0 7px 16px #0007;transform:rotate(-7deg);overflow:hidden}.pils-glass>span{position:absolute;top:40%;width:100%;text-align:center;font:25px var(--pfb-font-display);color:#693e09}.pils-foam{position:absolute;top:0;left:0;right:0;height:24px;background:#fff4dc;border-radius:0 0 45% 20%;box-shadow:0 3px 7px #fff1b788}.pils-glass i{position:absolute;bottom:0;left:20%;width:4px;height:4px;background:#fff9;border-radius:50%;animation:pils-bubble 1.8s linear infinite}.pils-glass i:nth-of-type(2){left:72%;animation-delay:.6s}.pils-glass i:nth-of-type(3){left:48%;animation-delay:1.1s}@keyframes pils-bubble{to{transform:translateY(-90px);opacity:0}}.result.celebrate:before{display:none}#race-stats{font-size:10px;color:#d4b889}
@media(max-width:650px){.runner{width:72px;height:49px}.runway{left:35px;right:72px}.lane{height:61px}.lane-photo{width:28px;height:28px;top:24px;left:3px}.finish-pils{font-size:17px;right:3px}.lane:after{right:24px}.controls .aim-controls input{min-height:32px}.aim-controls{gap:10px}}
@media(max-width:650px) and (max-height:950px){
  #race-call{font-size:9px;margin-top:3px;min-height:2.7em}.lane{height:39px}.lane-photo{width:22px;height:22px;top:14px}.runway{left:26px;right:53px;height:29px}.runner{width:56px;height:36px;bottom:-3px}.finish-pils{font-size:14px;bottom:6px}.lane:after{right:19px}.controls .aim-controls label{font-size:8px}.controls .aim-controls input{height:25px;min-height:25px}.board{height:117px}.board-title{font-size:8px;padding:6px}.trophy{height:100px}.pils-glass{height:90px;width:54px}.result{gap:10px;padding:18px}.result h2{font-size:30px}
}
@media(max-width:650px) and (min-height:751px){.lane{height:58px}.lane-photo{width:30px;height:30px;top:23px}.runway{left:36px;right:70px;height:44px}.runner{width:74px;height:48px}.board{height:190px}.controls .aim-controls input{min-height:36px}}
@media(orientation:landscape) and (max-height:600px) and (min-width:651px){
  #race-call{font-size:9px;min-height:1.35em;margin-top:2px}.lane{height:25%}.lane-photo{width:27px;height:27px;top:24px}.runway{left:32px;right:65px;height:44px}.runner{width:69px;height:47px}.finish-pils{font-size:17px;right:4px}.lane:after{right:22px}.board{height:100px}.controls .aim-controls label{font-size:8px}.controls .aim-controls input{height:25px;min-height:25px}.trophy{height:80px}.pils-glass{height:76px;width:45px}
}
@media(prefers-reduced-motion:reduce){.runner *,.pils-glass i{animation:none!important;transition:none!important}}
/* Rolling table and Zielwasser are one loop: land, refill, choose the next shot. */
.return-guides{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.return-guides path{fill:none;stroke:#6b421e;stroke-width:2;stroke-linecap:round;filter:drop-shadow(0 1px 0 #f9d894)}.ball:after{content:'';position:absolute;inset:5px;border:1px solid #ffffff50;border-left-color:#16202899;border-radius:50%;transform:rotate(35deg)}.board.boosted{box-shadow:inset 12px 0 #291609,inset -12px 0 #291609,inset 18px 0 #ffce61,inset -18px 0 #ffce61,0 0 24px #f8d17266}.board.contact .ball{filter:brightness(1.25)}.bot-state{margin-left:auto;color:var(--silk);font-size:8px;white-space:nowrap}.throw-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:7px}.throw-actions .primary{font-size:17px;padding:8px}#zielwasser{display:flex;align-items:center;justify-content:center;gap:8px;padding:7px;background:#2b1b0d;font-family:var(--pfb-font-display);font-size:14px;border-color:#8c6735}#zielwasser small{display:block;font:8px var(--pfb-font-mono);margin-top:3px}#zielwasser.full{background:#4c320e;border-color:#ffe692;box-shadow:inset 0 0 20px #f9cd4825;opacity:1}#zielwasser.active{border-color:#82c8b0;color:#bbffe5;opacity:1}.mini-pils{width:22px;height:31px;border:2px solid #e9d7b5;border-top:4px solid #fff6dd;border-radius:2px 2px 6px 6px;position:relative;overflow:hidden;flex:none}.mini-pils i{position:absolute;bottom:0;left:0;width:100%;background:linear-gradient(90deg,#d58c13,#ffda5d);transition:height .25s}.drinking .mini-pils{animation:pils-sip .8s}@keyframes pils-sip{40%{transform:rotate(-65deg) translateY(-5px)}80%{transform:rotate(-30deg)}}
@media(max-width:650px) and (max-height:950px){.board{height:155px}.lane{height:34px}.controls .throw-actions .primary{font-size:15px}.bot-state{font-size:7px}#zielwasser{font-size:12px;gap:5px}#zielwasser small{font-size:7px}.board-title{font-size:7px}}
@media(max-width:650px) and (min-height:751px){.board{height:210px}.lane{height:54px}}
@media(orientation:landscape) and (max-height:600px) and (min-width:651px){.board{height:120px}.lane{height:25%}.throw-actions .primary{font-size:15px}#zielwasser{font-size:12px}}
@media(prefers-reduced-motion:reduce){.drinking .mini-pils{animation:none}.mini-pils i{transition:none}}
