/* Billy's game and the homepage invitation, using the club's existing palette. */
.billy-teaser-section{border-block:1px solid var(--line);background:#e7edda}
.billy-hero-link{display:inline-block;margin-top:18px;font-size:.875rem;font-weight:800;text-decoration:underline;text-underline-offset:4px}
.billy-teaser{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;max-width:1120px}
.billy-teaser-art{position:relative;isolation:isolate;height:330px;overflow:hidden;border:2px solid var(--ink);background:#e5efdf;box-shadow:5px 5px 0 var(--ink);border-radius:54% 54% 4px 4px}
.billy-teaser-world{position:absolute;left:0;top:0;width:200%;height:300%;max-width:none;z-index:0}
.billy-teaser-art::before{content:'';position:absolute;inset:77% 0 0;background:linear-gradient(#dce9eb,#f4f6ef);z-index:1}
.billy-teaser-sprite{position:absolute;left:5%;bottom:-8px;width:76%;aspect-ratio:1;overflow:hidden;z-index:2}
.billy-teaser-sprite img{position:absolute;width:300%;max-width:none;left:0;bottom:0}
.billy-teaser-rail{position:absolute;right:8%;bottom:20px;width:66px;height:72px;border-inline:7px solid #f5f3e7;transform:rotate(3deg);z-index:1}
.billy-teaser-rail::after{content:'';position:absolute;left:-11px;top:22px;width:75px;height:12px;background:repeating-linear-gradient(90deg,var(--aqua) 0 25px,var(--paper) 25px 50px);border:2px solid var(--ink)}
.billy-teaser-copy h2{font-size:clamp(2.7rem,4.3vw,4rem)}
.billy-teaser-copy>p:not(.eyebrow){margin-top:21px;max-width:390px;line-height:1.7}
.billy-teaser-copy .button{margin-top:25px}
.billy-teaser-note{display:block;font-size:.875rem;color:var(--muted);margin-top:13px}
.billy-page .site-header{position:relative}
.billy-page .breadcrumb{padding-block:18px 0}
.billy-page .sally-widget{display:none!important}
.billy-game{max-width:1140px;padding-block:28px 58px}
.billy-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}
.billy-heading .eyebrow{font-size:.75rem;margin-bottom:11px}
.billy-heading h1{font-size:clamp(2.65rem,4.6vw,4.2rem);letter-spacing:-.025em;line-height:1.04}.billy-heading h1 .highlight{margin-left:.07em}
.billy-heading>p{font-size:1rem;line-height:1.6;max-width:310px;flex-shrink:0;padding-bottom:4px}
.billy-board{border:2px solid var(--ink);box-shadow:5px 6px 0 var(--ink);background:var(--paper);overflow:hidden;border-radius:3px}
.billy-scoreboard{display:flex;align-items:center;gap:32px;padding:15px 24px;border-bottom:2px solid var(--ink);background:var(--paper)}
.billy-scoreboard>div{display:flex;align-items:center;gap:10px}
.billy-scoreboard span span,.billy-record>span,.billy-time>span{display:block;font-size:.875rem;font-weight:800;line-height:1.25}
.billy-scoreboard strong{font:400 2rem/1 var(--font-head);display:block;margin-top:3px;font-variant-numeric:tabular-nums}
.billy-scoreboard .billy-record,.billy-scoreboard .billy-time{display:block}
.billy-score svg{width:42px;height:42px}
.billy-time{margin-left:auto}
.billy-time small{font:700 .875rem/1 var(--font-body)}
.billy-pause{display:flex;align-items:center;gap:7px;padding:10px 12px;border:1.5px solid var(--ink);background:var(--lilac);font-size:.875rem;font-weight:800;min-height:44px;touch-action:manipulation}
.billy-pause svg{width:16px;height:16px}
.billy-pause:disabled{opacity:.4}
.billy-stage{position:relative;height:clamp(350px,41vw,480px);isolation:isolate;background:#e7efdf}
.billy-canvas{display:block;width:100%;height:100%;outline-offset:-5px;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.billy-canvas:focus-visible{outline:3px solid #087c77}
.billy-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-end;padding:24px 6% 24px 23%;pointer-events:none}
.billy-overlay[hidden]{display:none}
.billy-card{pointer-events:auto;max-width:370px;width:100%;padding:26px 29px;background:var(--paper);border:2px solid var(--ink);box-shadow:5px 5px 0 var(--ink);transform:rotate(-1deg);text-align:left}
.billy-card:focus{outline:none}
.billy-card-kicker{font-size:.75rem;font-weight:900;letter-spacing:.09em;line-height:1.4;margin-bottom:10px}
.billy-card h2{font-size:2.7rem;line-height:.99;letter-spacing:-.015em}
.billy-card>p:not(.billy-card-kicker):not(.billy-start-hint):not(.billy-result){font-size:1rem;line-height:1.55;margin-top:15px}
.billy-card .billy-start{margin-top:21px;background:var(--aqua);color:var(--ink);font-size:1rem;padding:11px 19px;box-shadow:2px 3px 0 var(--ink);min-height:48px}
.billy-start:disabled{opacity:.65}
.billy-start-hint{font-size:.875rem;line-height:1.45;margin-top:13px;color:var(--muted)}
.billy-result{font:400 1.55rem/1.3 var(--font-head);margin-top:14px;padding:9px 12px;border:1px solid var(--ink);background:var(--lime)}
.billy-progress{height:6px;background:#d7dfca;border-top:1px solid var(--ink)}
.billy-progress>span{display:block;width:100%;height:100%;background:var(--aqua);transform-origin:left;will-change:transform}
.billy-controls{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:18px 24px}
.billy-controls p{font-size:.875rem;line-height:1.65}
.billy-controls p>span{display:block;color:var(--muted);margin-top:4px}
.billy-controls kbd{font:800 .8125rem/1.3 var(--font-body);padding:3px 7px;border:1px solid var(--ink);border-bottom-width:3px;border-radius:3px;background:#fffdf5}
.billy-jump{display:flex;gap:16px;align-items:center;justify-content:center;flex-shrink:0;border:2px solid var(--ink);background:var(--aqua);box-shadow:2px 3px 0 var(--ink);padding:12px 23px;font:400 1.65rem/1 var(--font-head);min-height:58px;touch-action:manipulation}
.billy-jump>span{font:800 .875rem/1 var(--font-body)}
.billy-jump:disabled{background:#dfe7d6;box-shadow:none;color:#6a7568}
.billy-jump:active:not(:disabled){transform:translateY(2px);box-shadow:none}
.billy-status{font-size:.9375rem;line-height:1.5;margin-top:19px;min-height:1.5em;font-weight:700}
.billy-footnote{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px 24px;font-size:.875rem;line-height:1.5;margin-top:8px;color:var(--muted)}
.billy-footnote a{font-weight:800}
.billy-noscript{margin-top:15px;padding:18px;border:1px solid var(--ink);background:var(--lilac)}
@media(max-width:850px){.billy-heading{display:block}.billy-heading>p{margin-top:17px;max-width:unset}.billy-heading>p br{display:none}.billy-game{padding-top:22px}.billy-overlay{padding-right:4%;padding-left:29%}.billy-card{padding:22px;max-width:330px}.billy-card h2{font-size:2.35rem}.billy-teaser{gap:38px}.billy-teaser-art{height:290px}.billy-controls{padding:15px 18px}.billy-jump{padding-inline:18px}}
@media(max-width:600px){
 .billy-game.wrap{width:calc(100% - 28px);padding-bottom:38px}.billy-heading{margin-bottom:20px}.billy-heading h1{font-size:2.8rem;max-width:340px}.billy-heading .eyebrow{font-size:.6875rem}.billy-heading>p{font-size:.9375rem;margin-top:14px;max-width:290px}
 .billy-scoreboard{padding:12px;gap:12px}.billy-scoreboard strong{font-size:1.6rem}.billy-scoreboard span span,.billy-record>span,.billy-time>span{font-size:.875rem}.billy-score svg{width:26px;height:29px}.billy-scoreboard>div{gap:4px}.billy-pause{width:40px;min-height:40px;padding:10px;justify-content:center}.billy-pause>span{display:none}.billy-scoreboard .billy-time{margin-left:auto}.billy-time small{font-size:.75rem}
 .billy-stage{height:350px}.billy-overlay{padding:14px 17px;justify-content:center;align-items:center;background:#e8efdc24}.billy-card{max-width:290px;max-height:calc(100% - 28px);overflow-y:auto;padding:18px 20px;box-shadow:3px 4px 0 var(--ink)}.billy-card h2{font-size:1.95rem;overflow-wrap:anywhere}.billy-card>p:not(.billy-card-kicker):not(.billy-start-hint):not(.billy-result){font-size:.9375rem;margin-top:11px}.billy-card-kicker{font-size:.6875rem;margin-bottom:8px}.billy-card .billy-start{margin-top:13px;min-height:45px;padding:10px 16px}.billy-start-hint{font-size:.8125rem;margin-top:10px}.billy-result{font-size:1.15rem;line-height:1.25;margin-top:10px;padding:8px}.billy-game[data-mode="ended"] .billy-start-hint{display:none}
 .billy-controls{flex-direction:column-reverse;align-items:stretch;gap:13px;padding:16px}.billy-jump{min-height:60px}.billy-controls p{text-align:center;font-size:.875rem}.billy-controls p>span{margin-top:6px}.billy-status{font-size:.875rem;margin-top:17px}.billy-footnote{font-size:.8125rem;gap:9px}
 .billy-teaser{grid-template-columns:1fr;gap:33px}.billy-teaser-art{height:270px;max-width:420px;width:100%;justify-self:center}.billy-teaser-sprite{width:68%;left:9%}.billy-teaser-copy h2{font-size:3rem}.billy-teaser-copy>p:not(.eyebrow){margin-top:17px}.billy-teaser-copy .button{margin-top:22px}.billy-teaser-section{padding-block:48px}
}
@media(prefers-reduced-motion:reduce){.billy-progress>span{will-change:auto}.billy-card{transform:none}.billy-jump:active:not(:disabled){transform:none}}

/* Winter adventure: the established club colours frame a richer painted world. */
.billy-stage{background:#d6e5e8}
.billy-scene-label{position:absolute;left:20px;top:18px;max-width:75%;padding:7px 12px;background:#f7f7e9e8;border:1px solid #49675b66;color:var(--ink);font:800 .875rem/1.4 var(--font-body);border-radius:3px;pointer-events:none}
.billy-chase-meter{position:absolute;right:20px;top:18px;width:155px;padding:8px 12px;background:#f5dfcaee;border:1px solid #8d6c52;border-radius:3px;font-size:.875rem;font-weight:900}
.billy-chase-meter[hidden]{display:none}.billy-chase-meter meter{width:100%;height:14px;margin-top:4px;display:block}
.billy-ending-caption{position:absolute;right:18px;top:60px;max-width:calc(100% - 36px);padding:12px 18px;border:2px solid #17392e;border-radius:3px;box-shadow:0 3px 0 #17392e;background:#fff7e6;color:#17392e;font:400 clamp(1.15rem,2.2vw,1.5rem)/1.25 var(--font-head);text-align:center;pointer-events:none}
.billy-ending-caption[hidden]{display:none}
.billy-chase-meter meter::-webkit-meter-bar{background:#d9c8ae;border:0}.billy-chase-meter meter::-webkit-meter-optimum-value{background:#6b9686}
.billy-sound-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:0 24px 18px}
.billy-sound-controls button{min-height:44px;padding:9px 14px;border:1px solid var(--ink);border-radius:3px;background:#e8ede0;font:800 .875rem/1.3 var(--font-body);color:var(--ink)}
.billy-sound-controls button[aria-pressed=false]{background:#f7f4e9;color:#59695f}.billy-sound-controls span{font-size:.875rem;line-height:1.4;color:var(--muted);margin-left:auto}
.billy-result{font:inherit;margin-top:15px;padding:12px;background:#e8edda}
.billy-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px 16px;margin:0}
.billy-result-grid>div{border-bottom:1px solid #829b7a55;padding-bottom:5px}
.billy-result-grid dt{font:700 .875rem/1.25 var(--font-body)}.billy-result-grid dd{font:400 1.55rem/1.2 var(--font-head);margin:2px 0 0}
.billy-game[data-mode=ended] .billy-overlay{justify-content:flex-start;padding-left:4%;padding-right:38%;background:linear-gradient(90deg,#dbe8df44,transparent)}
.billy-game[data-mode=ended] .billy-card{max-width:395px;transform:none;padding:20px 24px;max-height:calc(100% - 24px);overflow-y:auto}
.billy-game[data-mode=ended] .billy-card h2{font-size:2.1rem}.billy-game[data-mode=ended] .billy-card>p:not(.billy-card-kicker):not(.billy-start-hint){font-size:.9375rem;margin-top:9px}
.billy-game[data-mode=ended] .billy-card .billy-start{margin-top:14px}
.billy-game[data-mode=ended] .billy-card{display:flex;flex-direction:column;overflow:hidden}
.billy-game[data-mode=ended] .billy-card>*{flex-shrink:0}
.billy-game[data-mode=ended] .billy-result{flex:1 1 auto;min-height:45px;overflow:auto;overscroll-behavior:contain}
.billy-game[data-mode=ended] .billy-start{align-self:flex-start}
.billy-game[data-mode=ended] .billy-start-hint{display:none}
@media(max-width:700px){.billy-sound-controls{padding:0 16px 16px}.billy-sound-controls span{flex-basis:100%;margin-left:0}.billy-scene-label{left:12px;top:12px;max-width:65%;font-size:.875rem}.billy-chase-meter{top:60px;right:12px;width:140px}}
@media(max-width:600px){.billy-stage{height:400px}.billy-card{max-width:310px}.billy-game[data-mode=ended] .billy-overlay{padding:12px;justify-content:center}.billy-game[data-mode=ended] .billy-card{padding:17px 20px;max-width:320px}.billy-game[data-mode=ended] .billy-card h2{font-size:1.9rem}.billy-result-grid{gap:7px 14px}.billy-result-grid dd{font-size:1.3rem}.billy-heading h1{font-size:2.8rem}.billy-heading>p{max-width:340px}}
