/* dayplay-footer:start — shared Dayplay Games footer and waiting card (lib/dayplay-footer.css; synced into every
   game stylesheet, checked by lib/dayplay-footer.test.mjs). Each game sets --dpf-* in its own
   :root so the footer wears the game's colours; structure and spacing stay the same everywhere. */
/* A quiet page ending, centered and bounded by the same content gutter as the game. */
footer.dp-footer{box-sizing:border-box;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 24px;width:min(100% - 32px,1120px);margin:24px auto 0;padding:16px 0 max(18px,env(safe-area-inset-bottom));border:0;border-top:1px solid var(--dpf-line,#d8d2c4);background:none;box-shadow:none;clip-path:none;color:var(--dpf-muted,#5f5a52);font-size:15px;line-height:1.45;text-align:center;overflow-wrap:normal}
footer.dp-footer>*{margin:0}
footer.dp-footer>:not(.dp-home,.dp-links){flex:1 0 100%}
.dp-footer .dp-home{box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;flex:none;max-width:100%;min-height:44px;margin:0;padding:4px 8px;border:0;border-radius:12px;background:none;color:var(--dpf-ink,#2c2a26);font:inherit;text-decoration:none;box-shadow:none}
.dp-footer .dp-home img{display:block;flex:none;width:27px;height:27px;margin:0;padding:0;border-radius:7px;background:none;box-shadow:none}
.dp-footer .dp-home-text{display:flex;flex-direction:column;min-width:0;gap:1px}
.dp-footer .dp-home-text strong{font-size:15px;font-weight:700;line-height:1.25;color:var(--dpf-ink,#2c2a26)}
.dp-footer .dp-home-text span{font-size:14px;line-height:1.3;color:var(--dpf-muted,#5f5a52)}
.dp-footer .dp-home svg{flex:none;width:16px;height:16px;color:var(--dpf-accent,currentColor);transition:transform .16s}
.dp-footer .dp-home:hover{background:color-mix(in srgb,var(--dpf-accent,currentColor) 6%,transparent)}
.dp-footer .dp-home:hover svg{transform:translateX(2px)}
.dp-footer .dp-home:focus-visible,.dp-footer .dp-links a:focus-visible,.dp-footer .dp-links button:focus-visible{outline:3px solid var(--dpf-accent,currentColor);outline-offset:2px}
.dp-footer .dp-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;flex:0 1 auto;gap:0 4px;min-width:0;margin:0;padding:0;max-width:100%}
.dp-footer .dp-links .dp-legal{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 4px;max-width:100%}
.dp-footer .dp-links a,.dp-footer .dp-links button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;flex-shrink:0;max-width:100%;overflow-wrap:normal;margin:0;padding:8px;border:0;border-radius:8px;background:none;box-shadow:none;font:inherit;font-size:14px;font-weight:500;line-height:1.35;color:var(--dpf-muted,#5f5a52);text-decoration:none;cursor:pointer;white-space:normal;text-wrap:balance}
.dp-footer .dp-links a:hover,.dp-footer .dp-links button:hover{color:var(--dpf-ink,#2c2a26);text-decoration:underline;text-underline-offset:4px}
.dp-footer .dp-note{font-size:13px;line-height:1.45;color:var(--dpf-muted,#5f5a52)}
.dp-footer .dp-note:empty,.dp-footer .dp-note[hidden]{display:none}
@media(max-width:759px){footer.dp-footer{flex-direction:column;gap:4px;padding-top:12px}.dp-footer .dp-links{max-width:min(100%,360px)}.dp-footer .dp-legal{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.dp-footer .dp-home,.dp-footer .dp-home svg{transition:none}.dp-footer .dp-home:hover svg{transform:none}}
/* The installed collection already supplies the app itself. */
.in-dayplay-app .dp-footer .dp-links a[href="https://dayplaygames.com/?install=1"]{display:none}
/* The "someone wants to play" card (lib/game-presence.mjs), in the footer's colours: it sits at the
   bottom of any game page, over the game, until the player picks Play or Not now. It never grows
   past the screen: with very large text it scrolls inside, so its first line and both buttons stay reachable. */
.dp-wait{position:fixed;z-index:1000;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);box-sizing:border-box;width:min(100% - 24px,420px);margin:0;padding:14px 16px;border:1.5px solid var(--dpf-line,#d8d2c4);border-radius:14px;background:var(--dpf-card,#fffdf8);color:var(--dpf-ink,#2c2a26);box-shadow:0 10px 30px rgba(20,16,10,.24);font-size:16px;line-height:1.4;text-align:left;overflow-wrap:anywhere;max-height:calc(100vh - 24px);max-height:calc(100dvh - 12px - max(12px,env(safe-area-inset-bottom)));overflow-y:auto;overscroll-behavior:contain}
.dp-wait p{margin:0}
.dp-wait .dp-wait-text{font-weight:700}
.dp-wait .dp-wait-about{margin-top:2px;font-size:14px;color:var(--dpf-muted,#5f5a52)}
.dp-wait .dp-wait-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.dp-wait button{min-height:44px;min-width:44px;margin:0;padding:0 18px;border-radius:10px;font:inherit;font-weight:700;line-height:1.2;cursor:pointer;box-shadow:none}
.dp-wait .dp-wait-go{border:1.5px solid var(--dpf-ink,#2c2a26);background:var(--dpf-ink,#2c2a26);color:var(--dpf-card,#fffdf8)}
.dp-wait .dp-wait-later{border:1.5px solid var(--dpf-line,#d8d2c4);background:transparent;color:var(--dpf-ink,#2c2a26)}
.dp-wait button:focus-visible{outline:3px solid var(--dpf-accent,currentColor);outline-offset:2px}
/* The small Dayplay home button at the top of every game page (the dp mark, linking to the Dayplay
   home). It sits at the end of the game's own header so the game's name still leads. */
.dp-top{box-sizing:border-box;position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;margin:0;padding:0;border:1.5px solid var(--dpf-line,#d8d2c4);border-radius:12px;background:var(--dpf-card,#fffdf8);text-decoration:none;box-shadow:none;transition:border-color .15s}
.dp-top svg{display:block;width:24px;height:24px;margin:0;color:var(--dpf-ink,currentColor)}
.dp-top:hover{border-color:var(--dpf-accent,currentColor)}
.dp-top:focus-visible{outline:3px solid var(--dpf-accent,currentColor);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.dp-top{transition:none}}
/* Inside the installed app the bar above the game frame already leads home (lib/dayplay-app-frame.mjs). */
.in-dayplay-app .dp-top{display:none!important}
/* Line breaks, in every game (this block is the one stylesheet every game shares): headings, buttons,
   labels and short lines (taglines, card details, captions) wrap into even lines; longer paragraphs
   avoid leaving one word alone on the last line. :where() keeps this under any rule a game sets, and
   the -style longhand leaves white-space:nowrap alone. */
:where(p,li,dd,td,blockquote){text-wrap-style:pretty}
:where(h1,h2,h3,h4,h5,h6,dt,label,legend,summary,figcaption,caption,th,button,small,.lede,.tagline,.hook,.meta,.eyebrow,.choice-meta,.dpt-text){text-wrap-style:balance}
/* dayplay-footer:end */

/* Inline catalogue invitation belongs to the result, including the very first game. */
.dp-more-games,.dp-more-games *{box-sizing:border-box}
a.dp-more-games{display:flex;align-items:center;gap:12px;grid-column:1/-1;width:100%;margin:12px 0 0;padding:13px 14px;border:2px solid #5943a8;border-radius:14px;background:#5943a8;color:#fff8ef;font:16px/1.35 system-ui,sans-serif;text-align:left;text-decoration:none;white-space:normal;min-height:64px;box-shadow:none}
a.dp-more-games:hover{background:#463387;border-color:#463387;color:#fff8ef}
a.dp-more-games:focus-visible{outline:3px solid #302741;outline-offset:3px}
.dp-more-games svg{flex:0 0 30px;width:30px;height:30px;fill:#d3f36b}
.dp-more-games>span{min-width:0;flex:1}
.dp-more-games strong{display:block;font:750 17px/1.3 system-ui,sans-serif;text-wrap:balance}
.dp-more-games span span{display:block;margin-top:4px;font:14px/1.4 system-ui,sans-serif;text-wrap:pretty}
.overlay[data-kind=result] .dp-more-games{order:10}
#overlay:not([data-kind=result]) .dp-more-games,#feedback-box:not([data-kind=won]) .dp-more-games{display:none}
/* Same optional, nonmodal card on the collection and game recap. */
.dp-install,.dp-install *{box-sizing:border-box}.dp-install[hidden],.dp-install [hidden]{display:none!important}
.dp-install{position:fixed;z-index:100;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:min(360px,calc(100% - 24px));min-height:min(338px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:22px 18px 18px;border:1.5px solid #302741;border-radius:20px;background:#faf7ef;color:#302741;box-shadow:0 8px 32px #2c224026;font:15px/1.4 system-ui,sans-serif;text-align:left;isolation:isolate;overflow-wrap:break-word}
.dp-install h2{color:inherit;font:750 23px/1.15 system-ui,sans-serif;letter-spacing:-.035em;margin:0 26px 8px 0;text-wrap:pretty}.dp-install p{color:inherit;font:inherit;margin:0 0 12px}.dp-install .dp-phone{display:block;width:184px;height:100px;margin:-5px auto 9px;fill:none}.dp-install button,.dp-install a{font:inherit}.dp-install .dp-install-close{position:absolute;display:grid;place-items:center;right:3px;top:3px;width:44px;height:44px;min-height:44px;padding:12px;border:0;border-radius:9px;background:transparent;color:inherit;box-shadow:none;cursor:pointer}.dp-install-close svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.dp-install .dp-guide{font-size:14px;line-height:1.65}.dp-platform{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.dp-platform svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;vertical-align:middle}
.dp-install .dp-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dp-install .dp-actions button{min-height:44px;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:inherit;cursor:pointer}.dp-install .dp-primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1.5px solid #302741!important;border-radius:9px;background:#d4f76b!important;color:#302741!important;font-weight:750;text-decoration:none;padding:9px 12px;cursor:pointer;white-space:normal}.dp-install .dp-entry{display:flex;gap:8px;flex-wrap:wrap}.dp-entry input{flex:1 1 145px;min-width:0;width:100%;min-height:44px;border:1px solid #a59db3;border-radius:9px;background:#fff;padding:9px 10px;color:#302741;font:16px/1.4 system-ui,sans-serif}.dp-install .dp-consent{display:flex;align-items:center;gap:9px;margin:7px 0;min-height:44px;font:14px/1.4 system-ui,sans-serif;cursor:pointer}.dp-consent input{appearance:auto;flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:#6752ad}.dp-install .dp-note{font-size:13px;line-height:1.5}.dp-install .dp-note a{display:inline-block;color:#6752ad;padding-block:7px}.dp-install #welcome-status{margin:12px 0;font-size:15px}.dp-install .dp-label,.dp-install .dp-hp{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.dp-install :focus-visible{outline:3px solid #6752ad;outline-offset:3px}.dp-install button:disabled{opacity:.6;cursor:wait}
.dp-app-icon{animation:dp-add 3.8s ease-in-out 3;transform-origin:107px 56px}.dp-ring{opacity:0;animation:dp-ring 3.8s ease-out 3;transform-origin:107px 56px}.dp-trail{animation:dp-trail 3.8s ease 3}@keyframes dp-add{0%,10%{transform:translate(-64px,24px) rotate(-12deg) scale(.8);opacity:0}30%,75%,100%{transform:translate(0,0) rotate(0) scale(1);opacity:1}40%{transform:scale(1.12)}50%{transform:scale(1)}}@keyframes dp-ring{32%{opacity:.7;transform:scale(.7)}60%,100%{opacity:0;transform:scale(1.25)}}@keyframes dp-trail{0%,15%{opacity:1}50%,100%{opacity:0}}@media(prefers-reduced-motion:reduce){.dp-app-icon,.dp-ring,.dp-trail{animation:none}.dp-ring,.dp-trail{display:none}}

.dp-platform svg{animation:dp-guide-button 3.8s ease 3;transform-origin:center}.dp-platform:nth-of-type(2) svg{animation-delay:.7s}@keyframes dp-guide-button{0%,15%,75%,100%{transform:translateY(0);color:#302741}30%,50%{transform:translateY(-3px);color:#6752ad}}@media(prefers-reduced-motion:reduce){.dp-platform svg{animation:none}}
.dp-steps{margin:10px 0 0;padding:0 0 0 1.4em}.dp-steps .dp-platform{display:inline;white-space:normal}.dp-steps .dp-nw{white-space:nowrap}.dp-steps .dp-platform svg{display:inline-block;vertical-align:-.3em;margin-right:4px}.dp-ios-steps:focus{outline:none}.dp-steps li{padding-left:2px}.dp-steps li+li{margin-top:4px}
.dp-guide-more{margin:8px 0 0;font-size:14px;line-height:1.5}.dp-guide-more summary{cursor:pointer;font-weight:650;min-height:24px}.dp-guide-more p{margin:6px 0 0}

/* One simple mode chooser, themed by each game's existing footer palette. */
.start-home,.start-panel{width:100%}.start-heading{text-align:center;font-size:20px;line-height:1.3;margin:0 0 16px!important;letter-spacing:0;font-weight:750}
.start-choices{display:grid;gap:12px}
button.start-choice{display:flex;align-items:center;gap:14px;width:100%;min-height:84px;margin:0;padding:16px;border:1.5px solid var(--dpf-line);border-radius:14px;background:var(--dpf-card);color:var(--dpf-ink);font:inherit;text-align:left;box-shadow:none;cursor:pointer}
button.start-choice:hover:not(:disabled){border-color:var(--dpf-accent);background:color-mix(in srgb,var(--dpf-accent) 6%,var(--dpf-card))}
button.start-choice:focus-visible,.start-back:focus-visible{outline:3px solid var(--dpf-accent);outline-offset:3px}
.start-choice:disabled{opacity:.6;cursor:default}.start-copy{flex:1;min-width:0;display:grid;gap:4px}.start-label{font-size:19px;font-weight:800;line-height:1.25;hyphens:auto;overflow-wrap:anywhere}.start-choice .choice-meta{font-size:14px;line-height:1.4;color:var(--dpf-muted);margin:0}
.start-symbol{width:28px;height:28px;flex:none;fill:none;stroke:var(--dpf-accent);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}.start-arrow{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.start-menu>.lede,.start-menu>.group,.start-menu>.group-row:empty,.start-online-source{display:none!important}
.start-panel-head{display:flex;align-items:center;gap:14px;margin:0 0 16px}.start-panel-head h2{font-size:20px;line-height:1.3;letter-spacing:0;margin:0}.start-back{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 8px 0 0;border:0;background:none;box-shadow:none;color:inherit;font:inherit;font-size:15px;font-weight:650;cursor:pointer}.start-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.start-menu>.menu-tools{margin-top:16px}.start-menu>.small{margin-top:16px}.start-menu>.start-panel{margin-top:0}
.start-preferences{margin-top:16px;font-size:14px}.start-preferences>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:650;list-style:none;text-decoration:underline;text-underline-offset:3px}.start-preferences[open]>summary{margin-bottom:8px}
.start-panel .levels.versus{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5.5em),1fr));gap:10px}.start-panel .group{margin-top:0}
.start-home[hidden],.start-panel[hidden]{display:none!important}
@media(min-width:700px){button.start-choice{min-height:88px;padding:18px}.start-choices{gap:14px}}

.start-menu{margin-top:0!important;padding-top:8px!important}.start-menu .start-home{margin-bottom:0}
#view-select>.start-preferences{margin-top:12px}#view-select .step>.start-choices{margin:0}
#view-select:has(#step-solo:not([hidden]),#step-computer:not([hidden]))>#select-title{display:none}

#view-select .start-panel-head{justify-content:flex-start}#view-select .start-back{border:0;border-radius:0;background:none;box-shadow:none}#view-select .start-panel-head .step-title{font-size:20px}

.start-choice[hidden]{display:none!important}.start-menu>#online-slot{margin:0}.start-menu>#online-slot:has(.online-waits:not([hidden])){margin:16px 0}

.start-panel #level-list .level{min-width:0;min-height:56px;padding:12px 8px}.start-panel #level-list .name{font-size:16px;line-height:1.3}.start-panel #level-list .meta:empty{display:none}
#step-computer #level-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5.5em),1fr));gap:10px}
#step-computer .level-choice{min-width:0;min-height:56px;padding:12px 8px;text-align:center}#step-computer .level-choice .choice-name{font-size:16px;line-height:1.3}#step-computer .level-choice .choice-meta{display:none}
.start-panel-head{flex-wrap:wrap;gap:8px 14px}.start-panel-head h2{flex:1 1 9em;min-width:0}
#view-select .course-actions button{white-space:normal;min-width:0;max-width:100%}
#view-select .course-card .meta .item{white-space:normal}

/* Tactile mode badges and compact preference pills, colored by each game. */
.start-choice .start-symbol{box-sizing:content-box;width:25px;height:25px;padding:9px;border-radius:13px;background:color-mix(in srgb,var(--dpf-accent) 10%,var(--dpf-card));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dpf-accent) 13%,transparent)}
button.start-choice{box-shadow:0 2px 0 color-mix(in srgb,var(--dpf-line) 55%,transparent)}
.start-preferences>summary{display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:6px 13px;border:1px solid color-mix(in srgb,var(--dpf-accent) 32%,var(--dpf-line));border-radius:999px;background:color-mix(in srgb,var(--dpf-accent) 7%,var(--dpf-card));color:var(--dpf-ink);font-size:14px;font-weight:750;line-height:1.3;text-decoration:none;max-width:100%;box-sizing:border-box}
.start-preferences>summary:hover{background:color-mix(in srgb,var(--dpf-accent) 13%,var(--dpf-card))}.start-preferences>summary:focus-visible{outline:3px solid var(--dpf-accent);outline-offset:3px}
.profile-control .profile-avatar{width:28px;height:28px;flex:none;color:var(--dpf-accent)}.profile-control .profile-chevron{width:16px;height:16px;flex:none;margin-left:2px}.profile-control[open] .profile-chevron{transform:rotate(180deg)}
.profile-body{padding:14px;border:1px solid var(--dpf-line);border-radius:14px;background:var(--dpf-card)}.profile-body .player-choice{border:0;padding:0}.profile-body .player-choice-actions{gap:8px}.profile-body .player-choice-actions button{flex:1 1 8em;font-size:14px;line-height:1.3;border-width:1px;border-color:var(--dpf-line);border-radius:10px;background:var(--dpf-card);padding:10px 12px}.profile-body #player-named{border-color:var(--dpf-accent);background:var(--dpf-accent);color:var(--dpf-card)}
.profile-manage{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:6px;font-size:14px;font-weight:650;text-decoration:none}.profile-manage svg{width:16px;height:16px}.profile-manage:hover{text-decoration:underline}

/* The first menu, October 21: the game's cover art, one clear first choice and quiet extras.
   The art (startArt(), or static markup in Golf) is the game's Dayplay tile illustration with no text on it.
   The illustration stays centered above the choices at every width. On a wider screen the choices
   form a row or a balanced two-column grid, while the decorative illustration has its own compact size.
   On a phone a chosen mode's options take its place; on a wider screen they follow it. Golf's course lists need the whole width and hide it (app.mjs).
   On a phone the banner never takes more than 22% of the screen's height, so the first choice stays in view
   on a short screen or with larger text. */
.start-art{box-sizing:border-box;display:block;width:100%;margin:4px 0 18px;aspect-ratio:var(--start-art-crop,2.2);overflow:hidden;border-radius:18px;background:var(--dpf-card);box-shadow:0 0 0 1.5px var(--dpf-line),0 3px 0 1.5px color-mix(in srgb,var(--dpf-line) 55%,transparent)}
.start-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--start-art-focus,50% 50%)}
.start-art[hidden]{display:none!important}
@media (max-width:759px){.start-art{max-height:22vh;max-height:22svh}.start-art-layout[data-start]:not([data-start=home])>.start-art{display:none}}
.start-art-layout>.start-art+.start-home .start-heading,.start-art-layout>.start-art~#select-title{margin-top:0!important}
@media (min-width:760px){
 .game:has(>.start-art-layout:not([hidden])>.start-art:not([hidden])){width:min(100%,var(--start-wide,1000px));max-width:none}
 .game:has(>.start-art-layout:not([hidden])>.start-art:not([hidden]))>.top{max-width:none}
 .start-art-layout:has(>.start-art:not([hidden])){display:flow-root;max-width:none}
 .start-home .start-choices{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
 .start-home .start-choices:has(>.start-choice:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
 /* The footer's content lines up with the wider menu too (a game whose page gutter differs sets --start-footer). */
 body:has(.game>.start-art-layout:not([hidden])>.start-art:not([hidden])) footer.dp-footer{width:var(--start-footer,min(100% - 24px,976px))}
 .start-art-layout>.start-art{width:min(100%,520px,calc(28svh * 1200 / 630));aspect-ratio:var(--start-art-ratio,1200/630);max-height:28svh;margin:4px auto 18px}
 .start-art-layout:has(>.start-art:not([hidden]))>:not(.start-art){box-sizing:border-box;width:auto;margin-left:0!important}
}
/* A menu shorter than the screen (a desktop window) keeps its footer at the bottom edge instead of halfway up. */
body:has(>.game>.start-art-layout:not([hidden])>.start-art:not([hidden])){display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body:has(>.game>.start-art-layout:not([hidden])>.start-art:not([hidden]))>.game{flex:1 0 auto}
/* The first available mode is the main way in, in the game's accent colour; the others stay quiet. */
.start-choices>.start-choice:first-child:not(:disabled),.start-choices>.start-choice[hidden]:first-child+.start-choice:not(:disabled){border-color:var(--dpf-accent);background:var(--dpf-accent);color:var(--start-primary-ink,#fff);box-shadow:0 3px 0 color-mix(in srgb,var(--dpf-accent) 60%,#000)}
.start-choices>.start-choice:first-child:not(:disabled):hover,.start-choices>.start-choice[hidden]:first-child+.start-choice:not(:disabled):hover{border-color:color-mix(in srgb,var(--dpf-accent) 86%,#000);background:color-mix(in srgb,var(--dpf-accent) 90%,#000)}
.start-choices>.start-choice:first-child .start-symbol,.start-choices>.start-choice[hidden]:first-child+.start-choice .start-symbol{stroke:currentColor;background:color-mix(in srgb,#fff 16%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,#fff 30%,transparent)}
.start-choices>.start-choice:first-child .choice-meta,.start-choices>.start-choice[hidden]:first-child+.start-choice .choice-meta{color:inherit;opacity:.88}
/* Extras after the choices (player name, rules, the tutorial, the card) are one family of pills. */
.start-menu>.menu-tools,#view-select>.tutorial-row{display:flex;flex-wrap:wrap;gap:10px;margin-block:14px 0}
.start-menu>.menu-tools:empty{display:none}
.start-menu>.menu-tools>button,#view-select>.tutorial-row>.dpt-open{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:46px;margin:0;padding:6px 16px;border:1px solid color-mix(in srgb,var(--dpf-accent) 32%,var(--dpf-line));border-radius:999px;background:var(--dpf-card);color:var(--dpf-ink);box-shadow:none;font:inherit;font-size:14px;font-weight:750;line-height:1.3}
.start-menu>.menu-tools>button:hover,#view-select>.tutorial-row>.dpt-open:hover{background:color-mix(in srgb,var(--dpf-accent) 8%,var(--dpf-card))}
.start-menu>.menu-tools>button:focus-visible,#view-select>.tutorial-row>.dpt-open:focus-visible{outline:3px solid var(--dpf-accent);outline-offset:3px}
.start-menu>.start-preferences,#view-select>.start-preferences{margin-block:14px 0}
.start-preferences>summary{background:var(--dpf-card)}

/* Full-screen play grids reserve the remaining height for a board. Menus keep
   their own layout instead of exposing their children to those stretched rows. */
.game.is-fullscreen:has(>.start-art-layout:not([hidden])){display:block;width:auto}
.game.is-fullscreen>.start-art-layout:not([hidden]){display:flow-root;width:100%;max-width:none}
.game.is-fullscreen .start-panel-head{min-height:max(46px,calc(1.5rem + 20px));padding-inline-end:max(76px,calc(3.5rem + 20px))}

/* A quiet, labelled full-screen control in the page header. Native Exit stays in-game. */
/* The installed app owns the game identity. Keep this header for useful game actions only. */
.in-dayplay-app :is(.top>.title,.topbar>.brand,.topbar>h1,.topbar>.home,.app-header>.app-brand,.masthead>.wordmark,.masthead>.prototype-label,.masthead>.game-brand){display:none!important}
.in-dayplay-app :is(.top,.topbar,.app-header,.masthead){justify-content:flex-end;min-height:44px;padding-top:0;padding-bottom:0}
/* On illustrated choosers the utilities sit in the sky of the postcard, leaving the artwork room. */
.in-dayplay-app body:has(.start-art-layout:not([hidden])) :is(header.top,header.topbar){position:absolute;top:6px;right:14px;z-index:4;width:auto;margin:0;padding:0;background:none;border:0}
.in-dayplay-app body:has(.start-art-layout:not([hidden])) :is(header.top,header.topbar) button{background:#fffdf9;border:1px solid #d9d4c9;border-radius:12px;box-shadow:0 2px 4px #252a2310}
@media(min-width:760px){.in-dayplay-app body:has(.start-art-layout:not([hidden])) :is(header.top,header.topbar){top:14px;right:max(14px,calc((100% - min(520px,calc(28svh * 1200 / 630))) / 2 + 8px))}}
.top-actions[data-fullscreen-controls]{display:flex;align-items:center;gap:4px;flex:none}
.top:has([data-fullscreen-controls]) .title{flex:1;min-width:0}
.fullscreen-toggle.fullscreen-top{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:1px solid transparent;border-radius:10px;background:transparent;color:inherit;box-shadow:none}
.fullscreen-toggle.fullscreen-top:hover{background:color-mix(in srgb,currentColor 8%,transparent)}
.fullscreen-top .fullscreen-label{position:absolute;min-width:0;max-width:1px;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.fullscreen-top[hidden]{display:none}
.fullscreen-top svg{width:20px;height:20px;flex:none}
.fullscreen-top:focus-visible{outline:3px solid currentColor;outline-offset:2px}
@media(max-width:420px){
 .app-header:has([data-fullscreen-controls]) .app-brand{gap:5px;min-width:0}
 .app-header:has([data-fullscreen-controls]) .app-brand img{width:26px;height:26px}
 .app-header:has([data-fullscreen-controls]) .app-brand strong{font-size:14px;line-height:1.15;white-space:normal}
 .app-header:has([data-fullscreen-controls]) .app-brand span{max-width:74px}
 .app-header:has([data-fullscreen-controls]) .app-brand small{display:none}
 .app-header [data-fullscreen-controls]{gap:0}
}

/* Browser play gets the same geometric center as the installed app. Utility controls occupy
   symmetric side slots; the title is never pushed sideways by a different number of buttons. */
html:not(.in-dayplay-app):not(:has(.game.is-fullscreen)) :is(header.top,header.topbar,header.app-header,header.masthead){box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;gap:0;width:100%;max-width:1120px;min-height:64px;margin:0 auto;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));border:0}
html:not(.in-dayplay-app):not(:has(.game.is-fullscreen)) :is(header.top,header.topbar,header.app-header,header.masthead)>:is(.title,.brand,h1,.app-brand,.wordmark,.game-brand){flex:0 1 auto;min-width:0;max-width:calc(100% - 176px);margin:0;text-align:center}
html:not(.in-dayplay-app):not(:has(.game.is-fullscreen)) :is(.game-name,.topbar .brand,.app-header .app-brand,.masthead .wordmark,.game-title a){display:flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;margin:0;white-space:normal;text-decoration:none}
html:not(.in-dayplay-app) :is(header.top,header.topbar,header.app-header,header.masthead) :is(h1,.wordmark,.brand,.app-brand strong){font-size:18px;line-height:1.2;letter-spacing:-.025em}
html:not(.in-dayplay-app) :is(header.top,header.topbar,header.app-header,header.masthead) :is(.game-mark,.brand-mark,.brand-spark,.app-brand img,.brand img,.wordmark svg){flex:none;width:34px;height:34px}
html:not(.in-dayplay-app) :is(header.top,header.topbar,header.app-header,header.masthead) :is(.top-actions,.header-actions){display:flex;align-items:center;justify-content:flex-end;gap:4px;position:absolute;right:8px;top:50%;transform:translateY(-50%);min-width:44px;min-height:44px}
html:not(.in-dayplay-app) :is(header.top,header.topbar,header.app-header,header.masthead) :is(.dp-top,.home){position:absolute;left:8px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid var(--dpf-line,#d8d2c4);border-radius:14px;background:var(--dpf-card,#fffdf8);color:inherit}
html:not(.in-dayplay-app) :is(header.top,header.topbar,header.app-header,header.masthead)>:is(#sound,#help-open,#rules-open,#boards-open){position:absolute;left:56px;top:50%;transform:translateY(-50%);width:44px;min-width:44px;height:44px;padding:10px;border:0;border-radius:12px;background:none;box-shadow:none}
html:not(.in-dayplay-app) :is(header.top,header.topbar,header.app-header,header.masthead) .fullscreen-top{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:none}
html:not(.in-dayplay-app) :is(header.app-header) .settings-menu{position:relative;right:auto;top:auto;transform:none;margin:0}
html:not(.in-dayplay-app) :is(header.top,header.topbar,header.app-header,header.masthead) :is(.help-long,.boards-label,.prototype-label,.tagline,.app-brand small,.profile){display:none}
html:not(.in-dayplay-app) .help-short{display:inline}
html:not(.in-dayplay-app) .app-header .app-brand span{max-width:none}
@media(max-width:350px){html:not(.in-dayplay-app) :is(header.top,header.topbar,header.app-header,header.masthead) :is(.game-mark,.brand-mark,.brand-spark,.app-brand img,.brand img,.wordmark svg){display:none}html:not(.in-dayplay-app) :is(header.top,header.topbar,header.app-header,header.masthead) :is(h1,.wordmark,.brand,.app-brand strong){font-size:16px}}

html:not(.in-dayplay-app) header.topbar>h1{display:flex;align-items:center;justify-content:center;gap:8px}

html:not(.in-dayplay-app) :is(header.top,header.topbar,header.app-header) :is(.top-actions,.header-actions) .fullscreen-top{position:static;transform:none}

:is(header.app-header,header.masthead) :is(#help-open,#rules-open) svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* Large text uses a dedicated utility row above the centered name. */
html:not(.in-dayplay-app):not(:has(.game.is-fullscreen)) :is(header.top,header.topbar,header.app-header,header.masthead).dp-header-roomy{padding-top:60px;min-height:108px}
html:not(.in-dayplay-app):not(:has(.game.is-fullscreen)) .dp-header-roomy>:is(.title,.brand,h1,.app-brand,.wordmark,.game-brand){max-width:100%}
html:not(.in-dayplay-app):not(:has(.game.is-fullscreen)) .dp-header-roomy>:is(.dp-top,.home,#sound,#help-open,#rules-open,#boards-open,.top-actions,.header-actions){top:8px;transform:none}
html:not(.in-dayplay-app):not(:has(.game.is-fullscreen)) header.dp-header-roomy>.fullscreen-top{top:8px;transform:none}

:is(header.app-header) .settings-menu summary{box-sizing:border-box;width:44px;height:44px}

/* Optional result feedback stays secondary to replay and sharing. */
button.result-feedback{display:block;min-height:44px;max-width:100%;margin:8px auto 0;padding:8px 14px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px;box-shadow:none;cursor:pointer;white-space:normal;text-wrap:balance}
button.result-feedback:hover{background:color-mix(in srgb,currentColor 7%,transparent)}

button.result-feedback[hidden]{display:none!important}

/* The online sheets (lib/multiplayer/lobby-ui.mjs) for Dayplay's sports games, Daily Darts and
   Backyard Cornhole. Each game themes them with its own --lobby-* colours (falling back to the
   footer's --dpf-* palette), so the sheets look like part of that game. Built into each game's
   stylesheet by its build script. */
.sheet-dialog{--l-ink:var(--lobby-ink,var(--dpf-ink,#201c18));--l-muted:var(--lobby-muted,var(--dpf-muted,#6b6157));--l-card:var(--lobby-card,var(--dpf-card,#fffaf2));--l-line:var(--lobby-line,var(--dpf-line,#e2d5c1));--l-accent:var(--lobby-accent,var(--dpf-accent,#b7322a));--l-accent-ink:var(--lobby-accent-ink,#fff);--l-soft:var(--lobby-soft,color-mix(in srgb,var(--l-accent) 7%,var(--l-card)));--l-go:var(--lobby-go,#1f6b46)}
.sheet-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:22px 20px 18px;border:0;border-radius:24px;background:var(--l-card);color:var(--l-ink);box-shadow:0 30px 70px rgba(12,8,4,.42);overflow-y:auto;overscroll-behavior:contain;font:inherit;line-height:1.45} /* line-break-ok: a dialog sized to its sheet */
.sheet-dialog::backdrop{background:rgba(16,12,8,.58);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.sheet-dialog>*+*{margin-top:14px}
.sheet-dialog h2{margin:0;font-size:24px;line-height:1.15;font-weight:800;letter-spacing:-.01em;text-wrap:balance}
.sheet-dialog h3{margin:22px 0 8px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--l-muted)}
.sheet-dialog :where(p){margin:0}
.sheet-dialog .small{font-size:14.5px;color:var(--l-muted);line-height:1.45}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sheet-head h2{flex:1 1 auto;min-width:0}
.sheet-dialog button{box-sizing:border-box;min-height:46px;padding:10px 16px;border:1.5px solid var(--l-line);border-radius:14px;background:var(--l-card);color:var(--l-ink);font:inherit;font-weight:700;line-height:1.25;cursor:pointer}
.sheet-dialog button:hover{background:var(--l-soft)}
.sheet-dialog button.primary{border-color:var(--l-accent);background:var(--l-accent);color:var(--l-accent-ink)}
.sheet-dialog button.primary:hover{background:color-mix(in srgb,var(--l-accent) 86%,#000)}
.sheet-dialog button.quiet{border-color:transparent;background:transparent;text-decoration:underline;text-underline-offset:4px;text-decoration-color:color-mix(in srgb,var(--l-ink) 30%,transparent)}
.sheet-dialog button.sheet-close{flex:none;text-decoration:none;border-color:var(--l-line)}
.sheet-dialog button:disabled{opacity:.5;cursor:default}
.sheet-dialog button:focus-visible,.sheet-dialog input:focus-visible{outline:2px solid var(--l-ink);outline-offset:2px}
.sheet-dialog label{display:block;font-weight:750;margin-bottom:6px}
.sheet-dialog input{box-sizing:border-box;width:100%;min-height:50px;margin:0;padding:0 14px;border:1.5px solid var(--l-line);border-radius:14px;background:#fff;color:var(--l-ink);font:inherit;font-size:17px}
.sheet-form{display:grid;gap:8px}
.sheet-form .small{margin-top:2px}
.sheet-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.sheet-actions button{flex:1 1 8rem;min-width:0}
.sheet-error{color:#a3271d;font-weight:650}
.sheet-link{display:inline-flex;align-items:center;min-height:44px;color:var(--l-ink);font-weight:700;text-underline-offset:4px}
.sheet-sub{margin-top:4px!important}
.invite-status{color:var(--l-muted)}
.play-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10em),1fr));gap:10px}
.sheet-dialog .tile{display:grid;align-content:center;gap:4px;min-height:80px;padding:14px 16px;border-radius:18px;text-align:left}
.tile-name{font-size:17px;font-weight:800;line-height:1.2}
.tile-meta{font-size:14px;font-weight:600;line-height:1.3;opacity:.85}
.match-settings{display:grid;gap:8px;padding:14px 16px;border-radius:18px;background:var(--l-soft)}
.match-settings h3{margin:0}
.match-settings .small{margin:2px 0 0}
.setting-choice{display:grid;gap:10px}
.choice-pills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sheet-dialog button.choice-pill{min-height:46px;padding:8px 6px;border-radius:12px;font-size:14.5px;line-height:1.2;text-align:center}
.sheet-dialog button.choice-pill[aria-checked=true]{border-color:var(--l-ink);background:var(--l-ink);color:var(--l-card)}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}
.switch-label{font-weight:750}
.switch-value{font-weight:600;color:var(--l-muted)}
.sheet-dialog button.switch{flex:none;position:relative;width:60px;min-height:44px;height:44px;padding:0;border:0;background:none}
.switch::before{content:"";position:absolute;left:2px;right:2px;top:7px;bottom:7px;border-radius:16px;background:var(--l-line);transition:background .15s}
.switch-knob{position:absolute;top:10px;left:6px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0005;transition:transform .15s}
.switch[aria-checked="true"]::before{background:var(--l-go)}
.switch[aria-checked="true"] .switch-knob{transform:translateX(24px)}
.listed-row .small{margin-top:4px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.people{display:grid;gap:0}
.people .small{margin:6px 0}
.person{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 10px;padding:10px 0;border-bottom:1px solid var(--l-line)}
.person-name{font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.person-status{grid-column:1;grid-row:2;font-size:13.5px;color:var(--l-muted)}
.person-status.online{color:var(--l-go)}
.person-actions{grid-column:2;grid-row:1/3;display:flex;gap:6px}
.person-actions button{min-height:44px;padding:4px 12px}
.person-note{grid-column:1/-1;font-size:13.5px;color:var(--l-muted)}
.person-note:empty{display:none}
.person.two .person-actions{grid-column:1/-1;grid-row:3}
.person.two .person-actions button{flex:1 1 0}
.find-form{display:flex;gap:8px}
.find-form input{flex:1 1 auto;min-width:0}
.find-form button{flex:none}
#invite-link{font-size:14px;color:var(--l-muted)}
/* The waiting card and the online entry in the menu. */
.online-waits{display:grid;gap:8px;margin:12px 0 0;padding:14px 16px;border:1.5px solid var(--l-line,var(--dpf-line,#e2d5c1));border-radius:18px;background:var(--dpf-card,#fffaf2);text-align:left}
.online-waits[hidden]{display:none}
.online-waits .wait-row+.wait-row{padding-top:8px;border-top:1px solid var(--dpf-line,#e2d5c1)}
.wait-text{font-weight:650}
.wait-link{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
/* The opponent's name, friend and report buttons under a finished online match. */
.result-social .sheet-actions{margin:4px 0 0;gap:8px}
.result-social .sheet-actions button{flex:1 1 7em;min-width:0;min-height:44px;padding:6px 8px;font-size:14px;border:1.5px solid var(--dpf-line,#e2d5c1);border-radius:12px;background:transparent}
.result-social .small{font-size:14px;color:var(--dpf-muted,#6b6157)}
@media (max-width:360px){.choice-pills{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-dialog{padding:18px 14px 14px}}
@media (prefers-reduced-motion:reduce){.switch::before,.switch-knob{transition:none}}
/* The simple sheets (mountLobby {simple: true}): two plain buttons, and friends folded under one row. */
.sheet-dialog .tile:not(:has(.tile-meta)){min-height:58px;justify-items:center;text-align:center}
.sheet-more{border-top:1.5px solid var(--l-line)}
.sheet-more>summary{display:flex;align-items:center;gap:12px;min-height:54px;cursor:pointer;list-style:none;font-weight:800}
.sheet-more>summary::-webkit-details-marker{display:none}
.sheet-more>summary::after{content:"";flex:none;width:8px;height:8px;margin:0 6px 4px 0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.sheet-more[open]>summary::after{margin-bottom:-4px;transform:rotate(-135deg)}
.sheet-more>summary:focus-visible{outline:2px solid var(--l-ink);outline-offset:2px;border-radius:8px}
.sheet-more-sub{margin-left:auto;font-size:14px;font-weight:600;color:var(--l-muted);text-align:right}
.sheet-more>*+*{margin-top:10px}
.sheet-more>:last-child{margin-bottom:6px}

/* Daily Darts. A pub games room: the board is a full-bleed 3D scene, and everything laid over it
   is chalk on slate like the cabinet's scoreboards. The page around it is warm cream paper with
   dartboard red for the one main action and brass for highlights. Numbers use a condensed
   scoreboard face. This file loads after the shared Dayplay styles, so it has the last word. */
:root{
  color-scheme:light;
  --ink:#201c18;--muted:#6b6157;--paper:#f4ecdf;--card:#fffaf2;--line:#e2d5c1;
  --red:#b7322a;--red-deep:#8f2219;--green:#1f6b46;--brass:#c8963a;--brass-ink:#5b3f0e;--brass-soft:#f6e6c3;
  --slate:rgba(24,33,29,.9);--slate-solid:#1c2622;--chalk:#f4f2ea;--chalk-dim:rgba(244,242,234,.7);
  --shadow:0 8px 22px rgba(40,24,10,.24);--room:#e9dcc7;
  --display:"DIN Condensed","Avenir Next Condensed","Bahnschrift SemiBold Condensed","Bahnschrift","Arial Narrow","Roboto Condensed","sans-serif-condensed",system-ui,sans-serif;
  --dpf-line:#e0d2bd;--dpf-card:#fffaf2;--dpf-ink:#201c18;--dpf-accent:#b7322a;--dpf-muted:#6b6157;
  font:16px/1.45 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;-webkit-text-size-adjust:100%;
}
*{box-sizing:border-box}
body{margin:0;background:var(--paper)}
a{color:inherit;text-underline-offset:4px}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--red);outline-offset:3px}
button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button{font:inherit;font-weight:650;color:inherit;background:var(--card);border:1.5px solid var(--line);padding:10px 16px;border-radius:14px;min-height:44px;cursor:pointer}
@media (hover:hover){button:hover{background:#f7efe2}}
button:disabled{opacity:.5;cursor:default}
.primary{background:var(--red);border-color:var(--red);color:#fff}
@media (hover:hover){.primary:hover{background:var(--red-deep);border-color:var(--red-deep)}}
.ghost{background:transparent;border-color:transparent}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- header ---------- */
.topbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 14px}
html:not(.in-dayplay-app) header.topbar .brand{font:700 25px/1 var(--display);letter-spacing:.02em;text-transform:uppercase;padding-top:3px}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;flex:1;min-width:min-content}
.brand img{flex:none}
.header-actions{display:flex;align-items:center;gap:6px;margin-left:auto}
.icon-button{width:44px;padding:0;display:grid;place-items:center}
#sound[aria-pressed=true] .mute,#sound[aria-pressed=false] .wave{display:none}
.header-actions .fullscreen-toggle{display:flex;align-items:center;gap:6px;font-size:14px;padding:8px 12px}
.fullscreen-toggle svg{width:18px;height:18px}
main{padding:0 clamp(10px,3vw,40px)}
/* Zoomed or very narrow screens: the start cards may shrink below their text's natural width and drop the decorative icon. */
.start-choices{grid-template-columns:minmax(0,1fr)}
@media (max-width:260px){.start-choice .start-symbol{display:none}}

/* ---------- the room ---------- */
.stage{position:relative;overflow:hidden;border-radius:22px;background:var(--room);height:clamp(260px,50vh,480px);isolation:isolate;container:stage/size}
.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;outline-offset:-4px}
/* In play the room fills the screen under the header. The header's height is measured (--chrome),
   since enlarged text can wrap it onto more lines. */
html.is-playing .stage{height:calc(100vh - var(--chrome,60px) - 8px);height:calc(100dvh - var(--chrome,60px) - 8px);min-height:300px}
html.is-playing main{padding:0 clamp(6px,1.4vw,18px)}
html.is-playing #menu,html.is-playing .help,html.is-playing .dp-footer{display:none}
html.is-playing body{overscroll-behavior:none}
.loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;font-weight:650;color:var(--ink);background:radial-gradient(circle at 50% 40%,#f7eedf,var(--room));z-index:1}
.spinner{width:20px;height:20px;border-radius:50%;border:3px solid rgba(183,50,42,.22);border-top-color:var(--red);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.hero{display:none}

/* ---------- chips over the room: chalk on slate ---------- */
.hud{position:absolute;top:10px;left:10px;right:10px;display:flex;justify-content:space-between;align-items:flex-start;gap:8px;pointer-events:none;z-index:3;container:hud/inline-size}
/* Chips short of room for the text size (enlarged text, a zoomed phone): the target keeps "aim for"
   and drops the visit count, which the chalkboard and the darts in the chip already show. */
@container hud (max-width:12em){.round-of{display:none}}
.chip{background:var(--slate);color:var(--chalk);border-radius:14px;box-shadow:0 6px 18px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.08);padding:8px 13px 7px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.target-chip{display:grid;grid-template-columns:auto auto;grid-template-areas:"label label" "num darts";align-items:center;column-gap:12px;row-gap:2px;line-height:1.1}
#round-label{grid-area:label;font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--chalk-dim);text-wrap:balance}
#target{grid-area:num;font:700 34px/1 var(--display);color:#f3cf72;white-space:nowrap;padding-top:1px}
#target:empty{display:none}
.target-chip:has(#target:empty){grid-template-areas:"label" "darts";grid-template-columns:auto}
.darts-left{grid-area:darts;display:flex;gap:5px;align-items:end}
.darts-left i{width:6px;height:24px;border-radius:3px 3px 1px 1px;background:linear-gradient(#e3ad3c 0 36%,#c9cdd1 36% 82%,#7c8288 82%)}
.darts-left i.used{opacity:.2}
.score-chip{display:grid;justify-items:end;line-height:1.1;flex:none;row-gap:2px}
#score-label{font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--chalk-dim)}
#score{font:700 34px/1 var(--display);font-variant-numeric:tabular-nums;padding-top:1px}
#best-chip{font-size:12px;color:var(--chalk-dim);white-space:nowrap}
#best-chip:empty{display:none}
/* A match: one chip per player, the one throwing lit in their colour. */
.match-hud{display:flex;gap:8px;min-width:0;flex:1 1 auto}
.match-hud .seat{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"who who" "num sub";align-items:end;column-gap:8px;row-gap:3px;line-height:1.1;flex:1 1 0;min-width:0;opacity:.78;transition:opacity .2s}
.match-hud .seat.active{opacity:1;box-shadow:0 6px 18px rgba(0,0,0,.28),inset 0 0 0 2px var(--seat,#e3ad3c)}
.match-hud .seat .who{grid-area:who;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--chalk-dim);display:flex;align-items:center;gap:6px;overflow-wrap:anywhere}
.match-hud .seat .who::before{content:"";flex:none;width:9px;height:9px;border-radius:50%;background:var(--seat,#e3ad3c)}
.match-hud .seat .num{grid-area:num;font:700 30px/1.05 var(--display);font-variant-numeric:tabular-nums;padding-top:1px}
.match-hud .seat.active .num{color:#f3cf72}
.match-hud .seat .sub{grid-area:sub;font-size:12px;color:var(--chalk-dim);padding-bottom:3px;overflow-wrap:anywhere}
.stage[data-mode=match] .target-chip,.stage[data-mode=match] .score-chip{display:none}
.stage[data-mode=match][data-format=daily] .target-chip{display:grid}
.stage:not([data-mode=match]) .match-hud{display:none}
/* Today's nine darts against someone, short of room (a zoomed phone, enlarged text): the two
   players keep the row, and the target steps aside. The status line under the board says
   "aim for 15" and the board lights the bed, so nothing is lost. */
@container hud (max-width:18em){
  .stage[data-mode=match][data-format=daily] .target-chip{display:none}
  /* Short of room the chips keep each player's name and number; the second line ("Dart 1", "0/4
     closed") steps aside rather than squeezing beside the number or doubling the chip's height. */
  .match-hud .seat .sub{display:none}
  .match-hud .seat{padding-inline:9px}
  .match-hud .seat .who{letter-spacing:.02em;gap:5px}
  .match-hud .seat .who::before{width:7px;height:7px}
}

.callout{position:absolute;left:50%;top:30%;transform:translate(-50%,-50%);z-index:4;pointer-events:none;text-align:center;color:#f6d27c;font:700 clamp(40px,10vw,76px)/.95 var(--display);text-transform:uppercase;letter-spacing:.02em;text-shadow:0 3px 0 #2a1607,0 8px 26px rgba(0,0,0,.6);opacity:0;white-space:nowrap}
.callout small{display:block;margin-top:8px;font:800 .34em/1 ui-sans-serif,system-ui,sans-serif;letter-spacing:0;text-transform:none;color:#fff;text-shadow:0 2px 0 #2a1607,0 4px 12px rgba(0,0,0,.5)}
.callout.show{animation:pop 1.6s cubic-bezier(.2,.9,.3,1) forwards}
@keyframes pop{0%{opacity:0;transform:translate(-50%,-30%) scale(.6)}14%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}24%{transform:translate(-50%,-50%) scale(1)}78%{opacity:1}100%{opacity:0;transform:translate(-50%,-62%)}}
.popups{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:hidden}
.popups span{position:absolute;transform:translate(-50%,-150%);font:700 19px/1 var(--display);letter-spacing:.03em;color:#2a1a05;padding:6px 10px 4px;border-radius:999px;background:#f3cf72;white-space:nowrap;box-shadow:0 3px 10px rgba(0,0,0,.35);animation:rise 1.5s ease-out forwards}
.popups span.plain{background:var(--chalk);color:var(--ink)}
.popups span.zero{background:var(--slate-solid);color:var(--chalk)}
@keyframes rise{0%{opacity:0;transform:translate(-50%,-110%)}15%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-260%)}}
.coach{position:absolute;left:50%;top:calc(var(--below,62%) + 8px);transform:translateX(-50%);z-index:5;pointer-events:none;display:grid;grid-auto-flow:column;align-items:center;justify-content:center;gap:12px}
.coach p{margin:0;padding:10px 16px;border-radius:14px;background:var(--slate);color:var(--chalk);box-shadow:var(--shadow);font-weight:700;font-size:16px;line-height:1.3;text-align:center;width:max-content;max-width:calc(100cqw - 32px);text-wrap:balance} /* line-break-ok: a coach bubble sized to its short tip */
.coach-hand{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 0 0 7px rgba(255,255,255,.28),var(--shadow);animation:press 1.6s ease-in-out infinite}
@keyframes press{0%,100%{transform:scale(1)}50%{transform:scale(.78)}}
.coach.flick .coach-hand{animation:flick 1.2s cubic-bezier(.5,0,.2,1) infinite}
@keyframes drag{0%,100%{transform:translateX(-40px)}50%{transform:translateX(40px)}}
@keyframes flick{0%{transform:translateY(12px);opacity:1}55%{transform:translateY(-26px);opacity:0}100%{transform:translateY(12px);opacity:0}}
.net{position:absolute;top:56%;left:50%;transform:translateX(-50%);z-index:5;margin:0;padding:9px 15px;border-radius:12px;background:var(--slate);color:var(--chalk);box-shadow:var(--shadow);font-weight:650}
.fs-slot{position:absolute;top:10px;right:10px;z-index:6}
.fs-slot:empty{display:none}
.fs-slot .fullscreen-toggle{display:flex;align-items:center;gap:6px;background:var(--slate);color:var(--chalk);border:0;box-shadow:var(--shadow);font-size:14px;padding:8px 12px}

.dock{position:absolute;left:0;right:0;bottom:0;z-index:4;display:grid;gap:8px;padding:10px 12px calc(12px + env(safe-area-inset-bottom));pointer-events:none}
/* Only the buttons take touches: a flick that starts low on the screen still reaches the board. */
.dock>*{pointer-events:none}
.dock button{pointer-events:auto}
/* The keyboard's power meter: a bar up the right side, hard at the top (it flies higher). */
.meter{position:absolute;z-index:4;right:12px;top:calc(var(--below,60%) + 10px);bottom:calc(66px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 7px;border-radius:14px;background:var(--slate);box-shadow:var(--shadow);font-size:12px;font-weight:800;color:var(--chalk-dim);pointer-events:none}
.stage.wide>.meter{top:22%;bottom:22%}
.stage[data-view=menu]>.meter{display:none}
.meter .track{position:relative;flex:1;min-height:60px;width:14px;border-radius:7px;background:linear-gradient(0deg,#e8c27a,#f3cf72 50%,#d0634f)}
.meter .mark{position:absolute;top:50%;left:-3px;right:-3px;height:2px;margin-top:-1px;background:var(--chalk);opacity:.5}
.meter .needle{position:absolute;top:50%;left:-5px;right:-5px;height:4px;margin-top:-2px;border-radius:2px;background:#fff}
.dock-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dock-row button{background:var(--slate);color:var(--chalk);border:0;box-shadow:0 6px 16px rgba(0,0,0,.24);padding:10px 18px}
@media (hover:hover){.dock-row button:hover{background:var(--slate-solid)}}
.keyboard-throw{visibility:hidden}
.stage.keys .keyboard-throw{visibility:visible}

/* ---------- the menu ---------- */
.menu{margin-top:12px}
.start-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0!important}
.start-art{border-radius:20px!important;box-shadow:0 0 0 1.5px var(--line)!important}
button.start-choice{border-color:var(--line);border-radius:18px;min-height:80px;gap:16px}
.start-choice .start-label{font-size:18px;font-weight:800}
.start-choice .choice-meta{text-wrap:balance}
.start-choice .start-symbol{stroke:var(--red);background:color-mix(in srgb,var(--red) 9%,var(--card));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--red) 16%,transparent)}
/* Solo games: three tiles. */
.mode-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13em),1fr));gap:12px}
.mode-tile{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"icon name" "icon meta" "icon best";align-items:center;column-gap:14px;row-gap:3px;text-align:left;padding:16px;border-radius:18px;min-height:88px}
.mode-icon{grid-area:icon;width:44px;height:44px;padding:9px;border-radius:13px;fill:none;stroke:var(--red);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;background:color-mix(in srgb,var(--red) 9%,var(--card))}
.mode-icon .fill{fill:var(--red);stroke:none}
.mode-tile .name{grid-area:name;font-size:18px;font-weight:800;line-height:1.2}
.mode-tile .meta{grid-area:meta;font-size:14px;font-weight:500;color:var(--muted);line-height:1.35;text-wrap:balance}
.mode-tile .best{grid-area:best;justify-self:start;margin-top:4px;padding:3px 9px;border-radius:999px;background:var(--brass-soft);color:var(--brass-ink);font-size:12.5px;font-weight:750}
.mode-tile .best:empty{display:none}
/* Matches: pick a game, then an opponent. */
.list-label{margin:6px 0 10px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.picker button{display:grid;justify-items:center;align-content:center;gap:4px;min-height:58px;padding:10px 6px;border-radius:16px;text-align:center}
.picker b{font:700 27px/1 var(--display);letter-spacing:.02em;padding-top:2px}
.picker span{font-size:13px;font-weight:600;color:var(--muted);line-height:1.2}
.picker button[aria-checked=true]{background:var(--ink);border-color:var(--ink);color:var(--chalk)}
.picker button[aria-checked=true] span{color:var(--chalk-dim)}
.picker button[aria-checked=true] b{color:#f3cf72}
.note{margin:14px 2px 20px;font-size:15px;color:var(--muted);text-wrap:pretty}
.opponents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.opponents .level{justify-items:center;align-content:center;text-align:center;min-height:56px;padding:10px 12px}
.level{display:grid;justify-items:start;gap:3px;text-align:left;width:100%;padding:14px 16px;border-radius:16px}
.level .name{font-size:17px;font-weight:800}
.level .meta{font-size:14px;color:var(--muted);font-weight:500;text-wrap:balance}
@media (hover:hover){.level:hover,.mode-tile:hover{border-color:var(--red)}}
.choice-list{display:grid;gap:12px}
.small{font-size:14px;color:var(--muted);margin:2px 0}
.progress-card{border:1.5px solid var(--line);border-radius:18px;padding:16px;background:var(--card)}
.progress-card h3{margin:0 0 4px;font:700 22px/1 var(--display);letter-spacing:.04em;text-transform:uppercase;padding-top:2px}
.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:12px 0 0;padding:0;list-style:none}
.week li{display:grid;justify-items:center;gap:4px;font-size:12px;color:var(--muted);position:relative}
.week .bar{width:100%;height:46px;border-radius:8px;background:#efe5d5;position:relative;overflow:hidden}
.week .bar::after{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--h);background:var(--brass);border-radius:8px}
.week b{font-size:13px;color:var(--ink)}
.week .today .bar::after{background:var(--red)}
.week .fresh .bar::after{animation:grow .8s ease-out}
@keyframes grow{from{height:0}}
.help-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17em),1fr));gap:4px 28px;padding:0 18px 12px}
.document{margin:0 auto;padding:16px clamp(16px,5vw,64px);line-height:1.65}
.document h1{font-size:30px}
.document h2{font-size:22px;margin-top:28px}
.document a{overflow-wrap:anywhere}
@media (min-width:900px) and (max-height:700px){
  /* A short, wide window (a laptop): the art on the left, the ways in on the right, so they fit without scrolling.
     A taller screen, an iPad either way up included, stacks them under the centered art as in Mini Golf
     (Nov 16: on a tablet the side-by-side menu left the art in the top-left corner over empty space). */
  .menu.start-art-layout:has(>.start-art:not([hidden])){display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);column-gap:clamp(24px,3vw,48px);align-items:start}
  .menu.start-art-layout>.start-art{grid-column:1;grid-row:1 / span 3;width:100%!important;max-height:none!important;margin:4px 0 0!important}
  .menu.start-art-layout>:not(.start-art){grid-column:2}
  .menu .start-home .start-choices{grid-template-columns:minmax(0,1fr)!important}
}

/* ---------- results pop-up ---------- */
.dp-results{border:0;padding:0;background:transparent;width:min(480px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 20px);overflow:auto;color:var(--ink);overscroll-behavior:contain} /* line-break-ok: a dialog sized to its card */
.dp-results::backdrop{background:rgba(18,12,6,.58);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.r-card{position:relative;display:grid;gap:0;background:var(--card);border-radius:26px;padding:22px 20px 14px;box-shadow:0 30px 70px rgba(10,6,4,.45);text-align:center;transform:translateY(26px) scale(.96);opacity:0;transition:transform .34s cubic-bezier(.2,.9,.3,1.15),opacity .22s}
.dp-results.shown .r-card{transform:none;opacity:1}
.dp-results.closing .r-card{transform:translateY(14px) scale(.98);opacity:0}
.r-close{position:absolute;top:10px;right:10px;width:44px;height:44px;padding:0;border:0;background:transparent;border-radius:50%;display:grid;place-items:center}
.r-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.r-head{display:grid;justify-items:center}
.r-eyebrow{margin:0 44px 6px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.r-card h2{margin:0 36px;font:700 clamp(30px,8vw,40px)/1 var(--display);letter-spacing:.02em;text-transform:uppercase;text-wrap:balance;padding-top:4px}
.r-score{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:8px;margin:12px 0 4px}
.r-score strong{font:700 88px/.82 var(--display);color:var(--red);font-variant-numeric:tabular-nums;padding-top:8px}
.r-score span{font-size:17px;font-weight:700;color:var(--muted);white-space:nowrap}
.r-pill{margin:8px 0 0;padding:5px 12px;border-radius:999px;background:#efe5d5;color:var(--ink);font-size:14px;font-weight:750}
.r-pill.best{background:#f3cf72;color:#2a1a05}
.r-copy{margin:12px 8px 0;color:var(--muted);font-size:15px;text-wrap:balance}
.r-copy:empty{display:none}
.r-grid{display:grid;gap:6px;justify-content:center;margin:16px 0 0;width:100%;container-type:inline-size}
.r-grid:empty{display:none}
.r-grid .visit{display:grid;grid-template-columns:52px repeat(3,minmax(0,52px)) 44px;align-items:center;gap:6px}
.r-grid .visit>span:first-child{text-align:left;font:700 18px/1 var(--display);letter-spacing:.03em;color:var(--muted);padding-top:2px}
.r-grid .visit>b{text-align:right;font:700 22px/1 var(--display);font-variant-numeric:tabular-nums;padding-top:2px}
.r-grid i{min-height:30px;padding:2px 6px 0;border-radius:9px;display:grid;place-items:center;font:700 17px/1 var(--display);letter-spacing:.03em;font-style:normal;background:transparent;color:#9b8f80;box-shadow:inset 0 0 0 1.5px #e0d3bf}
.r-grid i.single{background:#f1e7d6;color:var(--ink);box-shadow:none}
.r-grid i.double{background:var(--green);color:#fff;box-shadow:none}
.r-grid i.treble{background:var(--red);color:#fff;box-shadow:none}
.r-grid i.outer{background:#d9ecdf;color:#1d5236;box-shadow:inset 0 0 0 1.5px var(--green)}
.r-grid i.bull{background:#f8dcd8;color:#8f2219;box-shadow:inset 0 0 0 1.5px var(--red)}
.r-grid i.skipped{background:#f6ead0;color:#a28545;box-shadow:none}
.r-grid i.open{opacity:.5}
.r-grid i.pop{animation:tile .4s cubic-bezier(.2,.9,.3,1.4) backwards}
@keyframes tile{from{transform:scale(.3);opacity:0}}
.clock-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.match-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.match-strip span{padding:8px 14px 6px;border-radius:12px;background:#f1e7d6;font:700 22px/1 var(--display);letter-spacing:.03em}
.match-strip span.won{background:var(--ink);color:#f3cf72}
.r-feats{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:14px 0 0;padding:0;list-style:none}
.r-feats:empty{display:none}
.r-feats li{padding:4px 11px;border-radius:999px;background:#f1e7d6;font-size:13.5px;font-weight:700;color:#4a3f33}
.r-body{display:grid;margin-top:18px}
.r-actions{display:flex;flex-wrap:wrap;gap:10px}
.r-actions button{flex:1 1 7em;min-height:50px;font-size:16.5px;font-weight:750;border-radius:15px;max-width:100%;min-width:0;overflow-wrap:anywhere}
.r-actions.again-first #again{order:-1}
.dp-results .r-actions button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.r-actions button:not(.primary){background:transparent;border-color:color-mix(in srgb,var(--ink) 22%,transparent)}
.r-status{margin:10px 0 0;font-size:14px}
.r-status:empty{display:none}
.r-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:0 6px;margin-top:10px}
.r-links>*{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;font-size:15px;font-weight:700;color:var(--ink);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--ink) 30%,transparent);text-underline-offset:4px}
.r-links button.link{border:0;background:none;border-radius:8px}
.r-details{border-top:1.5px solid var(--line);margin-top:8px}
.r-details>summary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:46px;font-size:14.5px;font-weight:750;color:var(--muted);cursor:pointer;list-style:none}
.r-details>summary::-webkit-details-marker{display:none}
.r-details>summary svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.r-details[open]>summary svg{rotate:180deg}
.r-details-body{text-align:left;display:grid;gap:10px;padding:0 0 8px}
.r-details:not(:has(#r-progress:not([hidden]),#r-more:not(:empty))){display:none}
.r-next{margin:0;font-size:13.5px;color:var(--muted)}
.r-board{font-size:14px}
.r-board:empty{display:none}
.r-progress{margin:0;display:grid;gap:8px}
/* The streak and the countdown on one row (the countdown drops under the streak when there is no room). */
.r-week-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 14px}
.r-week-head h3{margin:0;font:700 20px/1.1 var(--display);letter-spacing:.04em;text-transform:uppercase;padding-top:2px}
.r-progress .week{margin:0;gap:5px}
.r-progress .week li{gap:2px}
.r-progress .week .bar{height:30px;border-radius:6px}
.r-progress .week .bar::after{border-radius:6px}
/* The games link at the foot of the week: one line. */
.r-more .dp-more-games{margin:0;min-height:46px;padding:8px 14px}
.r-more .dp-more-games span span{display:none}
/* A named player's leaderboard line: one quiet centred line. Its link opens the same board as Leaderboard above. */
#r-board .board-score-confirmation{margin:0!important;font-size:14px!important;line-height:1.45!important;text-align:center;color:var(--muted);text-wrap:balance}
#r-board .board-score-confirmation a{display:none!important}
.result-social{margin-top:12px;text-align:left}

/* ---------- full screen ---------- */
.game-fullscreen-lock{overflow:hidden}
.fullscreen-fit{display:contents}
main.is-fullscreen{position:fixed;inset:0;z-index:10000;width:100%;height:100dvh;margin:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:var(--paper);overflow:auto}
main.is-fullscreen .stage{border-radius:0;margin:0 -12px}
html.is-playing main.is-fullscreen{padding:0;overflow:hidden;background:var(--room)}
html.is-playing main.is-fullscreen .stage{height:100%;max-height:none;margin:0}
/* Exit sits in the top right corner in full screen; the chips keep clear of its measured width. */
html.is-playing main.is-fullscreen .hud{top:max(10px,env(safe-area-inset-top));right:calc(var(--exit,62px) + 22px)}
html.is-playing main.is-fullscreen .fs-slot{top:max(10px,env(safe-area-inset-top))}
.fullscreen-tip{position:absolute;z-index:7;top:60px;left:12px;right:12px;background:var(--card);padding:12px;border-radius:14px;box-shadow:var(--shadow)}
.fullscreen-tip p{margin:0 36px 0 0}
.fullscreen-tip button{position:absolute;top:6px;right:6px;width:40px;padding:0}

/* ---------- sizes ---------- */
@media (max-width:430px){
  .topbar{gap:4px;padding:6px 8px}
  .brand img{width:32px;height:32px}
  html:not(.in-dayplay-app) header.topbar .brand{font-size:23px}
  .stage{border-radius:18px}
  html.is-playing main{padding:0 4px}
  html.is-playing .stage{height:calc(100vh - var(--chrome,56px) - 4px);height:calc(100dvh - var(--chrome,56px) - 4px)}
  .hud{top:8px;left:8px;right:8px}
  .chip{padding:7px 11px 6px}
  #target,#score{font-size:31px}
  .match-hud .seat .num{font-size:27px}
  .dock{padding:8px 8px calc(10px + env(safe-area-inset-bottom));gap:7px}
  .r-card{padding:20px 16px 12px}
  .r-score strong{font-size:78px}
  /* The three links share one row on a phone instead of leaving the last one alone on a second. */
  .r-links{gap:0}
  .r-links>*{padding:0 8px;font-size:14px}
}
@media (max-width:360px){
  .header-actions .fullscreen-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .header-actions .fullscreen-toggle{padding:8px 10px}
  .picker b{font-size:24px}
}
@media (max-height:500px) and (orientation:landscape){
  /* A phone on its side: the menu's choices come first, so the picture steps aside; match chips size to their text. */
  .menu.start-art-layout>.start-art{display:none!important}
  .match-hud{flex:0 1 auto}
  .match-hud .seat{min-width:9.5em}
  html:not(.in-dayplay-app):not(:has(.game.is-fullscreen)) header.topbar{min-height:48px;padding-block:2px}
  html:not(.in-dayplay-app) header.topbar .brand{font-size:21px}
  html.is-playing .stage{height:calc(100vh - var(--chrome,48px) - 4px);height:calc(100dvh - var(--chrome,48px) - 4px);min-height:260px}
  .stage{height:clamp(220px,62vh,380px)}
  .hud{top:6px}
  .chip{padding:5px 10px 4px}
  #target,#score{font-size:27px}
  .match-hud .seat .num{font-size:24px}
  .callout{top:36%}
  /* The first-throw tips sit beside the board, so the board can use the height. */
  .dock{grid-template-columns:minmax(0,1fr) auto;align-items:end}
  .coach{left:14px;top:auto;bottom:14px;transform:none;justify-content:start}
  .coach p{text-align:left;max-width:calc(30cqw - 14px)} /* line-break-ok: the tip bubble beside the board */
  /* Results: the score on the left, what next on the right, so both fit a phone on its side. */
  .dp-results{width:min(840px,calc(100vw - 24px));max-height:calc(100dvh - 16px)} /* line-break-ok: a dialog sized to its two-column card */
  .r-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 24px;align-items:center;padding:16px 18px 12px}
  .r-score strong{font-size:64px}
  .r-body{margin-top:0}
}
@media (min-width:900px){
  .topbar{padding:10px 18px}
  html.is-playing .stage{height:calc(100vh - var(--chrome,64px) - 16px);height:calc(100dvh - var(--chrome,64px) - 16px)}
  .hud{top:16px;left:16px;right:16px}
  .chip{padding:10px 16px 9px;border-radius:16px}
  #target,#score{font-size:clamp(38px,4.6cqh,58px)}
  #round-label,#score-label,.match-hud .seat .who{font-size:13px}
  .match-hud{flex:0 1 auto}
  .match-hud .seat{min-width:11em}
  .match-hud .seat .num{font-size:clamp(34px,4.2cqh,52px)}
  .dock{padding:14px 18px 18px}
}
@media (min-width:1200px){
  .menu{margin-top:20px}
  button.start-choice{min-height:96px;padding:20px 22px}
  .start-choice .start-label{font-size:21px}
  .start-choice .choice-meta{font-size:16px}
  .mode-tile .name,.level .name{font-size:20px}
  .mode-tile .meta,.level .meta,.note{font-size:16px}
  .picker button{min-height:68px}
  .picker b{font-size:32px}
}
@media (min-width:1400px){
  .callout{font-size:clamp(64px,7cqh,104px)}
  .popups span{font-size:24px}
}
/* A short, wide window (a laptop's 900x570): the score and the darts on the left, what next and the
   week on the right, so opening the week needs little or no scrolling. */
@media (min-width:760px) and (max-height:640px){
  .dp-results{width:min(880px,calc(100vw - 24px));max-height:calc(100dvh - 16px)} /* line-break-ok: a dialog sized to its two-column card */
  .r-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 28px;align-items:center;padding:18px 22px 12px}
  .r-body{margin-top:0}
}
/* Short screens: the whole card fits without scrolling, sizes step down together. */
@media (max-height:740px) and (orientation:portrait),(max-height:740px) and (max-width:599px){
  .r-card{padding:16px 16px 10px}
  .r-eyebrow{margin-bottom:4px}
  .r-card h2{font-size:28px}
  .r-score{margin:8px 0 2px}.r-score strong{font-size:64px}
  .r-pill{margin-top:6px;padding:4px 11px;font-size:13.5px}
  .r-grid{margin-top:12px;gap:5px}.r-grid i{min-height:27px}
  .r-feats{margin-top:10px}
  .r-body{margin-top:12px}
  .r-actions button{min-height:46px}
  .r-links{margin-top:4px}
}
@media (max-height:580px) and (orientation:portrait){
  .r-card{padding:12px 14px 6px}
  .r-card h2{font-size:24px}
  .r-score strong{font-size:52px}
  .r-grid{margin-top:8px;gap:4px}.r-grid i{min-height:25px}
  .r-feats{margin-top:8px}.r-feats li{padding:3px 9px}
  .r-body{margin-top:8px}
  .r-details>summary{min-height:44px}
}
@media (max-height:500px) and (orientation:landscape){
  .r-card{padding:12px 16px 8px}
  .r-card h2{font-size:26px}
  .r-score strong{font-size:50px}
  .r-grid{margin-top:8px;gap:4px}.r-grid i{min-height:27px}.r-feats{margin-top:8px}
}
/* 200% zoom on a phone leaves about 195 CSS pixels. Text keeps its size: chips wrap or drop their
   second line, the result card wraps instead of clipping, the week folds into rows. */
.r-score{flex-wrap:wrap}
.progress-card .small{text-wrap:balance}
@media (max-width:300px){
  .hud .chip:not(.target-chip){min-width:0}
  .target-chip{max-width:58%} /* line-break-ok: the target chip keeps room for the score chip beside it */
  #round-label,#best-chip{white-space:normal}
  .picker{grid-template-columns:repeat(2,minmax(0,1fr))}
  .week{grid-template-columns:repeat(auto-fill,minmax(40px,1fr))}
}
@container (max-width:15em){
  .r-grid .visit{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 6px}
  .r-grid .visit>span:first-child{grid-column:1/3;grid-row:1}
  .r-grid .visit>b{grid-column:3;grid-row:1}
  .r-grid i{grid-row:2;min-width:0}
  .clock-strip{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){
  /* Feedback still shows, it just does not move: words fade in place, tiles and bars stay still. */
  .callout.show{animation:still-callout 1.6s linear forwards}
  .popups span{animation:still-popup 1.5s linear forwards}
  .coach .coach-hand,.coach.flick .coach-hand,.spinner{animation:none}
  .r-grid i.pop,.week .fresh .bar::after{animation:none}
  .r-card{transition:none}
}
@keyframes still-callout{0%,80%{opacity:1;transform:translate(-50%,-50%)}100%{opacity:0;transform:translate(-50%,-50%)}}
@keyframes still-popup{0%,80%{opacity:1;transform:translate(-50%,-150%)}100%{opacity:0;transform:translate(-50%,-150%)}}

/* The analytics consent card (lib/consent-prompt.mjs places it; the look is ours). */
.privacy-consent{padding:14px 16px;border-radius:16px;border:1.5px solid var(--line);background:var(--card);box-shadow:0 12px 32px rgba(20,12,4,.28);display:grid;gap:10px;color:var(--ink);max-width:min(360px,calc(100vw - 24px));z-index:20} /* line-break-ok: a floating consent card */
.privacy-consent p{margin:0;font-size:15px;line-height:1.4;overflow-wrap:break-word}
.privacy-consent-actions{display:flex;flex-wrap:wrap;gap:8px}
.privacy-consent-allow{flex:1;background:var(--red);color:#fff;border:0}
.privacy-consent-decline{background:transparent;color:var(--ink);border:0}
.privacy-consent a{color:var(--ink)}
/* The share button's one pulse when the share sheet opens by itself (lib/dayplay-auto-share.mjs) rings in the game's own colour. */
#share{--dp-cue:var(--red)}

/* Menu and scorecard review: keep the pub-room identity, with less menu chrome. */
.menu .start-home .start-choices{gap:10px}
.menu .start-home button.start-choice:not(.daily-choice){min-height:70px;padding:12px 16px;gap:14px}
.menu .start-home .start-choice:not(.daily-choice) .start-symbol{width:36px;height:36px;padding:7px}
.menu .start-home .start-choice:not(.daily-choice) .choice-meta{font-size:.875rem;line-height:1.4}
@media(max-width:599px) and (orientation:portrait){
 .menu.start-art-layout>.start-art{margin-bottom:16px!important}
 .menu .start-home .start-choice:not(.daily-choice) .start-label{font-size:1.1rem}
}
.r-score{width:100%;padding:12px 16px 8px;border-radius:16px;background:var(--slate-solid);gap:10px}
.r-score strong{color:#f3cf72}
.r-score span{color:var(--chalk)}
.visit-labels{display:grid;grid-template-columns:52px minmax(0,168px) 44px;gap:6px;color:var(--muted);font-size:.8rem;font-weight:700;text-align:left}
.visit-labels span:nth-child(2){text-align:center}.visit-labels span:last-child{text-align:right}
.r-feats li{background:transparent;padding:2px 6px;font-size:.875rem}
.r-links #r-boards{justify-content:center;gap:8px;text-decoration:none;border:1.5px solid var(--line);border-radius:12px;background:#f1e7d6}
@media(min-height:700px) and (orientation:portrait){
 .r-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px}
 .r-links #r-boards{grid-column:1/-1;grid-row:1;min-height:46px}
 .r-links>button{justify-content:center;padding-inline:4px}
}
html:has(#results[open]) :is(.hud,.dock,.dock *,#status,#coach,#callout){visibility:hidden}
/* Once the player picks up a dart, keep the hint from covering it as it follows their finger. */
.stage:has(#canvas:active) #status{opacity:0}
@media(max-height:580px){.r-score{padding:6px 10px 4px}.visit-labels{font-size:.75rem}}

@media(min-width:900px) and (max-height:700px){
 .in-dayplay-app body:has(#menu:not([hidden])) header.topbar{right:calc(50% + 16px);top:28px}
}
@media(max-height:580px) and (orientation:portrait){
 .visit-labels{display:none}
 .r-score{padding:4px 8px 2px;margin:6px 0 2px}
 .r-feats{gap:2px 4px;margin-top:6px}
}
@container (max-width:15em){.r-grid .visit-labels{display:none}}
.menu .start-choices{container:menu-choices / inline-size}
@container menu-choices (max-width:15em){
 .start-choice:not(.daily-choice){flex-wrap:wrap}
}

/* Play choices come first; the daily board finishes the start menu, as in Mini Golf. */
.daily-board{min-width:0;text-align:left;padding:8px 12px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.daily-board-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.daily-board h3{margin:0;font:700 1rem/1.2 var(--body-font, sans-serif);text-transform:none;letter-spacing:0}
.daily-board-head button{min-height:44px;padding:4px 0;border:0;background:transparent;font-size:.875rem;text-decoration:underline;text-underline-offset:3px}
.daily-board ol{margin:0;padding:0;list-style:none}
.daily-board li{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:29px;padding:6px 10px;font-size:.875rem;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}
.daily-board li span:nth-child(2){overflow-wrap:anywhere}.daily-board li span:last-child{font-weight:800}
.daily-board li.you{background:#efe0ad;border-radius:5px}
.daily-board-note{margin:5px 0 1px;font-size:.75rem;line-height:1.4;color:var(--muted)}
#menu-leaders{margin-top:12px}
.r-ceiling{margin:3px 0 0;font-size:.875rem;color:var(--muted)}
.r-grid .visit .visit-bonus{grid-column:1/-1;text-align:right;margin-top:-2px;color:#8f2d23;font-size:.75rem;font-weight:700;line-height:1.2}
#result-leaders{margin:0 0 12px}
.r-card:has(#result-leaders:not([hidden])) #r-boards{display:none}
.r-card:has(#result-leaders:not([hidden])) .r-links{display:flex;justify-content:center;flex-wrap:wrap}
.darts-share{width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:24px;border:2px solid var(--ink);border-radius:24px;background:var(--card);color:var(--ink);text-align:center;overflow:auto}
.darts-share::backdrop{background:#151c18a8}
.darts-share h2{font-size:2rem;line-height:1.05;margin:10px 0}
.darts-share p{font-size:1rem;line-height:1.5;margin:12px 0;text-wrap:pretty}
.darts-share>button:not(.r-close){width:100%;min-height:48px;margin-top:8px}
.share-dart{width:88px;height:72px;fill:none;stroke:var(--red);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
#darts-share-status{font-size:.875rem;overflow-wrap:anywhere;white-space:pre-line}
/* Where the banner is cropped (a small tablet), keep the top of the board in it. */
.menu.start-art-layout>.start-art{--start-art-focus:50% 32%}
/* A phone held upright: a short banner and compact rows, so Quick Play and every mode fit the first screen.
   A small tablet (an iPad mini is 744 wide) has the room for the full rows. */
@media(max-width:599px) and (orientation:portrait){
 .menu.start-art-layout>.start-art{height:110px;margin-bottom:12px!important}
 .menu.start-art-layout>.start-art img{height:100%;object-fit:cover;object-position:center 45%}
 .menu .start-home .start-choices{gap:8px}
 .menu .start-home button.start-choice:not(.daily-choice){min-height:48px;padding:6px 12px;gap:10px}
 .menu .start-home .start-choice:not(.daily-choice) .choice-meta{display:none}
 .menu .start-home .start-choice:not(.daily-choice) .start-symbol{width:30px;height:30px;padding:5px}
}
@media(max-width:759px) and (orientation:portrait){
 .r-card:has(#result-leaders:not([hidden])){padding:16px}
 .r-card:has(#result-leaders:not([hidden])) h2{font-size:28px}
 .r-card:has(#result-leaders:not([hidden])) .r-score strong{font-size:58px}
 .r-card:has(#result-leaders:not([hidden])) .r-score{padding:5px 12px 3px;margin:8px 0 2px}
 .r-card:has(#result-leaders:not([hidden])) .r-grid{margin-top:10px;gap:3px}
 .r-card:has(#result-leaders:not([hidden])) .r-grid i{min-height:25px}
 .r-card:has(#result-leaders:not([hidden])) .r-feats{display:none}
 .r-card:has(#result-leaders:not([hidden])) .r-body{margin-top:10px}
}

.daily-board-head{flex-wrap:wrap}
.dart-case-open{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:4px 12px;margin:12px auto 0;background:var(--card);border:1px solid var(--line);border-radius:24px;font-size:.875rem}
.dart-case-open .dart-preview{width:48px;height:30px;object-fit:contain}.dart-case-open small{color:var(--muted);font-size:inherit}
.dart-unlocked{margin:0 0 10px;padding:8px 12px;border-radius:12px;background:#efe0ad;font-size:.875rem;font-weight:700}
.dart-case{width:min(560px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:20px;border:1.5px solid var(--ink);border-radius:24px;background:var(--card);color:var(--ink);overflow:auto}
.dart-case::backdrop{background:#151c18a8}
.dart-case header{display:flex;justify-content:space-between;align-items:start;gap:12px;margin:0 0 16px}
.dart-case h2{margin:0;font:700 2rem/1 var(--display)}.dart-case header p{margin:8px 0 0;font-size:.875rem;line-height:1.4}
.dart-case header button{min-height:44px;padding:8px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--ink);font-size:.875rem}
.dart-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dart-design{display:flex;flex-direction:column;align-items:center;min-width:0;gap:4px;padding:10px 8px;border:1.5px solid var(--line);border-radius:16px;background:var(--card);color:var(--ink);text-align:center}
.dart-design[aria-pressed=true]{border-color:var(--green);background:#e5eedf}
.dart-design:disabled{opacity:1;color:var(--muted);cursor:default}
.dart-design .dart-preview{width:100%;height:68px;object-fit:contain;filter:drop-shadow(0 3px 2px #221c1818)}.dart-design b{font-size:1rem}.dart-design span{font-size:.8rem;line-height:1.4}
.dart-account{margin:0 0 14px;font-size:.875rem;line-height:1.5;text-align:center;overflow-wrap:anywhere}.dart-account button{display:block;margin:8px auto;min-height:44px}
@media(max-width:340px){.dart-case{padding:14px}.dart-design{padding:10px 5px}}

/* ---------- the first menu, in Mini Golf's shape: Quick Play, the two dailies, the ways to play, the small things ---------- */
.menu .start-home{container:menu-home/inline-size}
#quick-play.quick-play{display:block;width:100%;min-height:56px;margin:0 0 12px;padding:10px 16px;border:1.5px solid var(--red-deep);border-radius:16px;background:linear-gradient(145deg,#c53c31,#8f2219);color:#fff;font-size:1.15rem;font-weight:800;box-shadow:0 4px 0 #6a160f,inset 0 1px 0 #ffffff30;text-wrap:balance}
@media (hover:hover){#quick-play.quick-play:hover{background:linear-gradient(145deg,#b6332a,#801d15)}}
#quick-play.quick-play:active{transform:translateY(2px);box-shadow:0 2px 0 #6a160f}
.daily-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 12px}
button.daily-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-width:0;min-height:64px;margin:0;padding:8px 10px 8px 9px;border:2px solid var(--green);border-radius:18px;background:#e3efe4;color:var(--ink);box-shadow:0 3px 0 #b5cdb9;text-align:left;font-weight:650}
@media (hover:hover){button.daily-bar:hover{background:#d5e7d8}}
button.daily-bar:active{transform:translateY(2px);box-shadow:0 1px 0 #b5cdb9}
.daily-bar .bar-art{display:flex;line-height:0}
.daily-bar .bar-art svg{display:block;width:40px;height:40px}
.daily-bar .bar-words{display:grid;gap:3px;line-height:1.2;min-width:0}
.daily-bar .bar-title{font-size:1.05rem;font-weight:800;color:var(--green)}
.daily-bar .bar-meta{display:flex;flex-wrap:wrap;align-items:center;gap:3px 10px;font-size:.86rem;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.daily-bar .targets{display:inline-flex;gap:4px}
.daily-bar .targets b{display:inline-grid;place-items:center;min-width:27px;min-height:24px;padding:3px 6px 0;border-radius:7px;background:#f3cf72;color:#2a1a05;font:700 1.08rem/1 var(--display)}
.daily-bar .targets b.bull{background:var(--red);color:#fff;font-size:.92rem;letter-spacing:.03em}
.daily-bar .bar-go{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--green);color:#fff;box-shadow:0 2px 0 #134a2f}
.daily-bar .bar-go svg{width:24px;height:24px;margin-left:2px}
button.daily-bar.pop-bar{border-color:#b98a00;background:#fff3c4;box-shadow:0 3px 0 #e6d38f}
@media (hover:hover){button.daily-bar.pop-bar:hover{background:#ffeba8}}
button.daily-bar.pop-bar:active{box-shadow:0 1px 0 #e6d38f}
.pop-bar .bar-title{color:#7a5200}
.pop-bar .bar-go{background:#b98a00;box-shadow:0 2px 0 #7a5b00}
/* The round arrow shows only where each tile has room for it beside its words. */
@container menu-home (max-width:34em){.daily-row .bar-go{display:none}button.daily-bar{grid-template-columns:auto minmax(0,1fr);gap:8px}}
@media (max-width:519px){.daily-bar .bar-art svg{width:34px;height:34px}.daily-bar .bar-title{font-size:1rem}}
@media (max-width:399px){button.daily-bar{gap:7px;padding-inline:8px}.daily-bar .bar-art svg{width:28px;height:28px}.daily-bar .bar-title{font-size:.95rem}}
/* Short of room for the text size (enlarged text, a zoomed phone): one daily to a row. */
@container menu-home (max-width:19em){.daily-row{grid-template-columns:minmax(0,1fr)}}
.menu-extras{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:14px 0 0}
.menu-extras>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;margin:0;padding:6px 16px;border:1.5px solid var(--line);border-radius:12px;background:var(--card);font-size:14px;font-weight:750;line-height:1.3}
.daily-board h3 span{margin-left:6px;font-weight:600;font-size:.875rem;color:var(--muted)}

/* ---------- in play, as in Mini Golf: the line and Menu above the room ---------- */
.playbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;padding:0 2px 8px}
.play-line{margin:0;font-size:1rem;font-weight:700;line-height:1.3;color:var(--ink);text-wrap:balance}
.hud-button{min-height:44px;padding:6px 14px;border:2px solid var(--ink);border-radius:12px;background:var(--card);color:var(--ink);font-size:.95rem;font-weight:800}
html.is-playing .stage{border:2px solid var(--ink);border-radius:18px;height:calc(100vh - var(--chrome,60px) - var(--bar,54px) - 8px);height:calc(100dvh - var(--chrome,60px) - var(--bar,54px) - 8px)}
@media (max-width:430px){html.is-playing .stage{height:calc(100vh - var(--chrome,56px) - var(--bar,54px) - 4px);height:calc(100dvh - var(--chrome,56px) - var(--bar,54px) - 4px)}}
@media (min-width:900px){
  html.is-playing .stage{height:calc(100vh - var(--chrome,64px) - var(--bar,58px) - 16px);height:calc(100dvh - var(--chrome,64px) - var(--bar,58px) - 16px)}
  .playbar{padding:0 4px 10px}.play-line{font-size:1.15rem}
}
/* Full screen: the bar keeps its place above the room, clear of the notch. */
html.is-playing main.is-fullscreen{display:flex;flex-direction:column;background:var(--paper)}
/* Exit keeps its top right corner (lib/game-fullscreen.mjs): Menu sits beside it, and the chips have the room's full width again. */
html.is-playing main.is-fullscreen .playbar{min-height:64px;padding:max(8px,env(safe-area-inset-top)) calc(var(--exit,62px) + 22px + env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left))}
html.is-playing main.is-fullscreen .hud{top:10px;right:10px}
html.is-playing main.is-fullscreen .stage{flex:1 1 0;height:auto;min-height:0;border-width:2px 0 0;border-radius:0}
/* A phone on its side has no height to spare: the line and Menu sit over the room's foot, either side of the hand. */
@media (max-height:500px) and (orientation:landscape){
  html.is-playing main:not(.is-fullscreen){position:relative}
  html.is-playing .stage{height:calc(100vh - var(--chrome,48px) - 4px);height:calc(100dvh - var(--chrome,48px) - 4px);min-height:260px}
  /* In full screen the room is the whole screen: Exit is over its top right corner, as it always was, and the chips keep clear of it. */
  html.is-playing main.is-fullscreen .stage{flex:1 1 0;height:auto;min-height:0;border-width:0}
  html.is-playing main.is-fullscreen .hud{top:max(6px,env(safe-area-inset-top));right:calc(var(--exit,62px) + 22px)}
  .playbar,html.is-playing main.is-fullscreen .playbar{position:absolute;z-index:5;left:14px;right:14px;bottom:calc(10px + env(safe-area-inset-bottom));min-height:0;padding:0;align-items:end;pointer-events:none}
  .playbar>*{pointer-events:auto}
  .play-line{justify-self:start;max-width:30%;padding:8px 13px;border-radius:13px;background:var(--slate);color:var(--chalk);font-size:14.5px;font-weight:600;box-shadow:0 6px 18px rgba(0,0,0,.24);pointer-events:none} /* line-break-ok: the status beside the board, clear of it */
  .hud-button{border:0;background:var(--slate);color:var(--chalk);box-shadow:0 6px 16px rgba(0,0,0,.24)}
  /* The first-throw tip sits where the line does: the line waits for it. */
  .playbar:has(+.stage.coaching) .play-line{visibility:hidden}
}
html:has(#results[open]) .playbar{visibility:hidden}

/* ---------- the pause menu and how to play: sheets, as in Mini Golf ---------- */
.pause,.help-sheet{margin:auto;padding:18px;border:2px solid var(--ink);border-radius:18px;background:var(--card);color:var(--ink);overflow:auto}
.pause::backdrop,.help-sheet::backdrop{background:#151c18a8}
.pause{width:min(92vw,360px);max-height:min(90svh,640px)} /* line-break-ok: dialog */
.pause h2,.help-sheet h2{margin:0;font:700 1.9rem/1 var(--display);letter-spacing:.04em;text-transform:uppercase;padding-top:3px}
.pause h2{margin-bottom:12px;text-align:center}
.pause-actions{display:grid;gap:8px}
.pause-actions button{width:100%}
.pause-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pause-row>button[hidden]+button,.pause-row>button:has(+button[hidden]){grid-column:1/-1}
.pause .toggle{position:relative;padding-inline:14px 52px;text-align:left}
.pause .toggle::before{content:"";position:absolute;right:12px;top:50%;width:32px;height:18px;margin-top:-9px;border-radius:9px;background:#9c927e;transition:background .15s}
.pause .toggle::after{content:"";position:absolute;right:28px;top:50%;width:14px;height:14px;margin-top:-7px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:right .15s}
.pause .toggle[aria-pressed="true"]::before{background:var(--green)}
.pause .toggle[aria-pressed="true"]::after{right:14px}
@media (prefers-reduced-motion:reduce){.pause .toggle::before,.pause .toggle::after{transition:none}}
@media (max-height:520px){.pause{padding:12px 16px;max-height:calc(100dvh - 16px)}.pause h2{font-size:1.5rem;margin-bottom:8px}.pause-actions{gap:6px}}
.help-sheet{width:min(94vw,760px);max-height:min(92svh,760px)} /* line-break-ok: dialog */
.help-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.help-head .r-close{position:static;flex:none}
.help-sheet .help-body{padding:0}
.help-sheet h3{margin:10px 0 4px;font:700 19px/1.1 var(--display);letter-spacing:.05em;text-transform:uppercase;padding-top:2px}
.help-sheet p{margin:0 0 12px;font-size:15.5px;line-height:1.55;color:#3d362f}
/* Quick Play is the one filled button on the menu: Play solo is a row like the others. */
.menu .start-choices>.start-choice:first-child:not(:disabled){border-color:var(--line);background:var(--card);color:var(--ink);box-shadow:0 2px 0 color-mix(in srgb,var(--line) 55%,transparent)}
.menu .start-choices>.start-choice:first-child:not(:disabled):hover{border-color:var(--red);background:color-mix(in srgb,var(--red) 6%,var(--card))}
.menu .start-choices>.start-choice:first-child .start-symbol{stroke:var(--red);background:color-mix(in srgb,var(--red) 9%,var(--card));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--red) 16%,transparent)}
.menu .start-choices>.start-choice:first-child .choice-meta{color:var(--muted);opacity:1}
/* Balloon Pop's results: one dot a dart, in the order thrown: a pop is filled, a miss is a ring. */
.r-grid[data-mode=pop] .clock-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.r-grid[data-mode=pop] .clock-strip i{flex:none;width:18px;height:18px;min-width:0;min-height:0;padding:0;border-radius:50%;font-size:0;background:#e23b3b;box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)}
.r-grid[data-mode=pop] .clock-strip i.open{opacity:1;background:transparent;box-shadow:inset 0 0 0 2px #b9ad98}
/* In play the menu is gone at every width: the wide layout's own grid rule must not bring it back under the room. */
html.is-playing #menu{display:none!important}

/* Before the scripts arrive the menu shows its picture and quiet stand-ins shaped like Quick Play, today's two
   games and the ways to play, never the raw mode lists the scripts later move into their panels (Nov 16: an
   iPad on a slow connection showed the 101/201/301 picker and opponents for five seconds). */
.menu:not(.start-menu)>.choice-list,.menu:not(.start-menu)>.online-slot{display:none}
.menu-wait{display:grid;gap:12px}
.menu-wait i{display:block;min-width:0;height:66px;border-radius:16px;background:color-mix(in srgb,var(--line) 55%,var(--paper));animation:menu-wait 1.4s ease-in-out infinite alternate}
.menu-wait .wait-play{height:56px;border-radius:14px}
.menu-wait .wait-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.menu-wait .wait-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.menu-wait .three i{height:92px;animation-delay:.2s}
@media(max-width:599px) and (orientation:portrait){.menu-wait .wait-row.three{grid-template-columns:minmax(0,1fr)}.menu-wait .three i{height:48px}}
@media(min-width:900px) and (max-height:700px){.menu-wait .wait-row.three{grid-template-columns:minmax(0,1fr)}.menu-wait .three i{height:70px}}
@keyframes menu-wait{to{opacity:.55}}
@media(prefers-reduced-motion:reduce){.menu-wait i{animation:none}}
.start-menu>.menu-wait{display:none}
/* On a wide screen the menu lines up with the header and the footer (both 1120px boxes) instead of running past them. */
main:has(>#menu:not([hidden])){padding-inline:max(clamp(10px,3vw,40px),calc((100% - 1120px) / 2))}

@font-face {font-family:ClubOutfit;src:url('./cluboutfit.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
@font-face {font-family:ClubPublic;src:url('./clubpublic.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
/* The individual games retain their own boards and themes. */
html[data-play-skin] {
  color-scheme:light;
  --play-paper:#fff8ed;
  --play-brand:#135b78;
  --play-accent:#edbd69;
  --play-ink:color-mix(in srgb,var(--play-brand) 39%,#17231e);
  --play-muted:color-mix(in srgb,var(--play-brand) 36%,#525852);
  --play-mist:color-mix(in srgb,var(--play-brand) 9%,var(--play-paper));
  --play-rule:color-mix(in srgb,var(--play-brand) 28%,var(--play-paper));
  --play-white:#fffaf0;
  background:var(--play-paper);
}
html[data-play-skin="golf"] { --play-paper:#f9f7ec;--play-brand:#205639;--play-accent:#eaca70 }
html[data-play-skin="darts"] { --play-paper:#fcf6e9;--play-brand:#743127;--play-accent:#f2cc72 }
html[data-play-skin="corn"] { --play-paper:#fbf6e7;--play-brand:#365e43;--play-accent:#efc658 }
html[data-play-skin="bubble"] { --play-paper:#f7f3ea;--play-brand:#316668;--play-accent:#c3e3d6 }
html[data-play-skin="tumble"] { --play-paper:#f8f2e5;--play-brand:#7c4a31;--play-accent:#ebc780 }
html[data-play-skin="oddpin"] { --play-paper:#fcf5eb;--play-brand:#553b71;--play-accent:#edc980 }
html[data-play-skin="mahjong"] { --play-paper:#fcf6e6;--play-brand:#24594c;--play-accent:#e4c586 }
html[data-play-skin="relay"] { --play-paper:#fbf7ef;--play-brand:#4b3c6b;--play-accent:#e9c478 }
html[data-play-skin="drift"] { --play-paper:#f5f5e8;--play-brand:#225e6a;--play-accent:#e3c477 }
html[data-play-skin="glimmer"] { --play-paper:#fbf7f3;--play-brand:#57447a;--play-accent:#f1cb77 }

html[data-play-skin] body {
  background:var(--play-paper);color:var(--play-ink);
  font-family:ClubPublic,system-ui,sans-serif;
}
html[data-play-skin] :is(header.top,header.topbar,header.app-header,header.masthead,header.site-header) {
  background:var(--play-paper);color:var(--play-ink);
  border-color:var(--play-rule);box-shadow:inset 0 -1px var(--play-rule);
}
html[data-play-skin] :is(header h1,header .game-name,header .app-brand,header .wordmark,header .brand,header .game-title,header .game-brand,header .title-text) {
  color:var(--play-ink);font-family:ClubOutfit,system-ui,sans-serif;font-weight:760;letter-spacing:-.025em;
}
html[data-play-skin] header :is(.dp-top,.dayplay-link,.fullscreen-top,.icon-button,.header-button,.home) {
  background:transparent;border-color:transparent;box-shadow:none;color:var(--play-brand);
}
html[data-play-skin] :is(.hud-button,.menu-button,.tool-button,.action-bar button:not(.primary)) {
  font-family:ClubPublic,system-ui,sans-serif;border-color:var(--play-rule);color:var(--play-ink);background:var(--play-white);box-shadow:none;border-radius:8px;
}
html[data-play-skin] :is(.dp-tabs,.drift-tabs,.mode-tabs,.mode-buttons) {background:var(--play-mist);border-color:var(--play-rule);box-shadow:none}
html[data-play-skin] :is(.dp-tabs,.drift-tabs,.mode-tabs,.mode-buttons) button {font-family:ClubPublic,system-ui,sans-serif}
html[data-play-skin] :is(.dp-tabs,.drift-tabs,.mode-tabs,.mode-buttons) :is([aria-pressed="true"],[aria-selected="true"],.active) {
  background:var(--play-brand);color:var(--play-white);box-shadow:none;
}
html[data-play-skin] :is(.action-bar,.controls-panel,.play-controls) button:is(.primary,.hold):enabled {
  background:var(--play-brand);border-color:var(--play-brand);color:var(--play-white);box-shadow:none;
}
html[data-play-skin] footer.dp-footer {color:var(--play-muted);border-color:var(--play-rule);background:var(--play-paper);font-family:ClubPublic,system-ui,sans-serif}
html[data-play-skin] .dp-footer .dp-home {color:var(--play-brand);font-family:ClubOutfit,system-ui,sans-serif}
html[data-play-skin] .dp-footer .dp-links a {color:var(--play-muted)}

/* Rally Connect. Warm timber, deep blue enamel and a scoreboard that identifies the turn. */
html[data-play-skin="rally"] .hud .side {background:var(--play-mist);border-color:var(--play-rule);color:var(--play-ink);border-radius:8px;box-shadow:none}
html[data-play-skin="rally"] .hud .side.turn {background:var(--play-brand);border-color:var(--play-brand);color:var(--play-white)}
html[data-play-skin="rally"] .hud .side.turn .who {color:var(--play-white)}
html[data-play-skin="rally"] .hud .side.turn .clock {color:var(--play-accent)}
html[data-play-skin="rally"] #table {border-color:var(--play-brand);border-radius:10px;box-shadow:none}

/* Golf keeps the green, ball, obstacles and aiming guide as drawn by the course. */
html[data-play-skin="golf"] :is(#view-play,#view-duel) {color:var(--play-ink)}
html[data-play-skin="golf"] :is(#line-text,#hud-text,.play-controls) {font-family:ClubPublic,system-ui,sans-serif}
html[data-play-skin="golf"] .hud-button {color:var(--play-brand);background:var(--play-mist)}
html[data-play-skin="golf"] :is(#course,#duel-course) {border-color:var(--play-brand);box-shadow:0 0 0 1px var(--play-rule);border-radius:9px}

/* On the two full-bleed throwing games the theme travels with the floating scoreboard. */
html:is([data-play-skin="corn"],[data-play-skin="darts"]) #hud .chip,
html:is([data-play-skin="corn"],[data-play-skin="darts"]) #coach p {
  color:var(--play-white);background:var(--play-brand);border-radius:9px;box-shadow:0 1px 3px #201a1826;
}
html:is([data-play-skin="corn"],[data-play-skin="darts"]) #hud .chip :is(span,strong,b,small) {color:inherit}
html:is([data-play-skin="corn"],[data-play-skin="darts"]) #hud .chip :is(strong,.num) {font-family:ClubOutfit,system-ui,sans-serif;color:var(--play-accent)}
html:is([data-play-skin="corn"],[data-play-skin="darts"]) #hud .seat:not(.active):not(.turn) {background:var(--play-paper);color:var(--play-ink)}
html:is([data-play-skin="corn"],[data-play-skin="darts"]) #hud .seat:not(.active):not(.turn) .num {color:var(--play-brand)}
html[data-play-skin="corn"] #dock .styles {background:var(--play-paper);border-color:var(--play-rule)}
html[data-play-skin="corn"] #dock .styles [aria-pressed="true"] {background:var(--play-brand);color:var(--play-white)}
html[data-play-skin="darts"] #playbar {background:var(--play-paper);color:var(--play-ink);border-color:var(--play-rule)}
html[data-play-skin="darts"] #stage {border-color:var(--play-brand)}

/* Puzzle pieces and their state colors stay legible against the board surround. */
html[data-play-skin="bubble"] #board-wrap {background:var(--play-mist);border-radius:12px;box-shadow:inset 0 0 0 1px var(--play-rule)}
html[data-play-skin="bubble"] .play-controls {background:var(--play-paper);border-color:var(--play-rule);box-shadow:none}
html[data-play-skin="tumble"] section.game,html[data-play-skin="glimmer"] section.game {background:var(--play-mist);border-color:var(--play-rule);box-shadow:none}
html:is([data-play-skin="tumble"],[data-play-skin="glimmer"]) .hud {
  background:var(--play-brand);color:var(--play-white);border-radius:8px;font-family:ClubPublic,system-ui,sans-serif;
}
html:is([data-play-skin="tumble"],[data-play-skin="glimmer"]) .hud :is(.hud-label,.hud-label b,.hud-totals,span:not(.sr-only),b,small) {color:var(--play-white)}
html:is([data-play-skin="tumble"],[data-play-skin="glimmer"]) .hud :is(strong,#hand-score,#target) {color:var(--play-accent);font-family:ClubOutfit,system-ui,sans-serif}
html[data-play-skin="glimmer"] .hud > div {text-align:center}
html[data-play-skin="tumble"] .hud-goal {padding-inline-start:6px}
html[data-play-skin="tumble"] .hud-totals {padding-inline:6px}
html[data-play-skin="relay"] :is(.board-panel,.controls-panel) {background:var(--play-mist);border-color:var(--play-rule);box-shadow:none}
html[data-play-skin="relay"] .board-wrap {background:var(--play-paper);border-color:var(--play-rule)}
html[data-play-skin="relay"] :is(.board-heading h2,.switch-heading h2) {font-family:ClubOutfit,system-ui,sans-serif;color:var(--play-brand)}
html[data-play-skin="drift"] .river-panel {background:var(--play-paper);border-color:var(--play-rule);box-shadow:none}
html[data-play-skin="drift"] .action-bar {background:var(--play-mist);border-color:var(--play-rule)}
html[data-play-skin="drift"] #course-title {color:var(--play-brand);font-family:ClubOutfit,system-ui,sans-serif}
html[data-play-skin="oddpin"] .bowler {background:var(--play-paper);border-color:var(--play-rule);box-shadow:none}
html[data-play-skin="oddpin"] .bowler.turn {background:var(--play-mist);border-color:var(--play-brand)}
html[data-play-skin="oddpin"] .bowler .who :is(.total,.name) {color:var(--play-brand);font-family:ClubOutfit,system-ui,sans-serif}
html[data-play-skin="oddpin"] #lane {border-color:var(--play-brand);border-radius:9px;box-shadow:none}
html[data-play-skin="mahjong"] .hud {background:var(--play-mist);border-radius:8px}
html[data-play-skin="mahjong"] .hand-info {color:var(--play-brand);font-family:ClubOutfit,system-ui,sans-serif}
html[data-play-skin="mahjong"] #table {background:linear-gradient(135deg,#24594c,#153e35);border-color:#173c32}
html[data-play-skin="mahjong"] #mine {border-color:var(--play-rule);background:var(--play-paper)}
html[data-play-skin="glimmer"] #lives .pane {background:var(--play-accent)}
html[data-play-skin="glimmer"] #lives .pane.spent {background:#aba0b8}
html[data-play-skin="tumble"] .hud #shop-open :is(span,b,small) {color:var(--play-ink)}

/* Rally match chrome, shared with the first-menu design. The canvas keeps the native size and input space. */
html[data-play-skin="rally"] body:has(#game[data-view="play"]) {
  min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;
}
html[data-play-skin="rally"] #game[data-view="play"]:not(.is-fullscreen) {padding-top:0}
html[data-play-skin="rally"] #game[data-view="play"]:not(.is-fullscreen) header.top {
  display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:0;
  min-height:56px;margin:0 -12px;padding:4px 12px 4px 4px;border:0;
}
html[data-play-skin="rally"] #game[data-view="play"]:not(.is-fullscreen) header .dp-top,
html[data-play-skin="rally"] #game[data-view="play"]:not(.is-fullscreen) header .top-actions {
  position:static;inset:auto;transform:none;flex:none;margin:0;
}
html[data-play-skin="rally"] #game[data-view="play"] header .dp-top {
  display:grid;place-items:center;background:none;border:0;box-shadow:none;color:var(--play-brand);
}
html[data-play-skin="rally"] #game[data-view="play"] header .title {
  max-width:none;
  display:flex;align-items:center;justify-content:flex-start;flex:1 1 auto;min-width:0;margin:0;padding:0;
  font:690 23px/1.08 ClubOutfit,system-ui,sans-serif;letter-spacing:-.045em;
}
html[data-play-skin="rally"] #game[data-view="play"] header .title .game-name {display:flex;justify-content:flex-start;gap:7px;color:var(--play-ink);font:inherit}
html[data-play-skin="rally"] #game[data-view="play"] header .game-mark {width:25px;height:25px;flex:none}
html[data-play-skin="rally"] #game[data-view="play"] .fullscreen-top {background:none;color:var(--play-brand);border:0;box-shadow:none}
html[data-play-skin="rally"] #game:not(.is-fullscreen) #view-play {padding-top:clamp(10px,2.4dvh,24px)}
html[data-play-skin="rally"] #game:not(.is-fullscreen) #view-play .hud {
  width:min(100%,max(230px,calc((100dvh - 225px)*var(--ratio))));margin:0 auto;
  background:#174a5c;color:#fff8ed;border-radius:10px 10px 0 0;align-items:center;
  column-gap:4px;row-gap:2px;padding:4px 6px;
}
html[data-play-skin="rally"] #game:not(.is-fullscreen) .hud .side {
  flex:1 1 54px;align-items:flex-start;color:#e1ebeb;background:none;border:0;border-radius:0;box-shadow:none;padding:2px 6px;
}
html[data-play-skin="rally"] #game:not(.is-fullscreen) .side .who {font:600 14px/1.25 ClubPublic,system-ui,sans-serif;color:inherit}
html[data-play-skin="rally"] #game:not(.is-fullscreen) .side.turn .who {
  color:#fff8ed;font-weight:750;text-decoration:underline;text-decoration-color:#edbd69;text-underline-offset:5px;text-decoration-thickness:2px;
}
html[data-play-skin="rally"] #game:not(.is-fullscreen) .who::before {border-color:rgba(255,255,255,.52)}
html[data-play-skin="rally"] #game:not(.is-fullscreen) .hud .hud-button {background:#235668;color:#fff8ed;border:1px solid #799a9c;box-shadow:none;border-radius:7px;min-width:48px}
html[data-play-skin="rally"] #game:not(.is-fullscreen) #table {border-radius:0 0 10px 10px;box-shadow:none}
html[data-play-skin="rally"] footer.dp-footer.match-footer {
  width:100%;max-width:none;flex:none;display:block;margin:auto 0 0;padding:0;border:0;background:var(--play-paper);
}
html[data-play-skin="rally"] .match-footer .match-shortcuts,
html[data-play-skin="rally"] .match-footer .match-legal {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0;
}
html[data-play-skin="rally"] .match-footer .match-shortcuts {
  background:var(--play-mist);border-top:1px solid var(--play-rule);padding-inline:max(12px,calc((100% - 500px)/2));
}
html[data-play-skin="rally"] .match-footer .match-shortcuts a {
  flex:1 1 72px;display:flex;align-items:center;justify-content:center;gap:6px;min-height:47px;padding:0 4px;
  font:650 13px/1.15 ClubPublic,system-ui,sans-serif;color:var(--play-brand);text-decoration:none;
}
html[data-play-skin="rally"] .match-footer .match-shortcuts svg {display:block;width:22px;height:22px;flex:none}
html[data-play-skin="rally"] .match-footer .cf-spot {fill:var(--play-accent)}
html[data-play-skin="rally"] .match-footer .cf-paper {fill:var(--play-paper)}
html[data-play-skin="rally"] .match-footer .cf-ink {fill:var(--play-brand)}
html[data-play-skin="rally"] .match-footer .match-legal {gap:4px;padding-bottom:env(safe-area-inset-bottom,0px)}
html[data-play-skin="rally"] .match-footer .match-legal a {
  display:grid;place-items:center;min-width:44px;min-height:44px;padding-inline:4px;
  font:520 12px/1.2 ClubPublic,system-ui,sans-serif;color:var(--play-muted);text-decoration:none;
}
html[data-play-skin="rally"] .match-footer a:focus-visible {outline:2px solid var(--play-brand);outline-offset:-3px}
@media (max-height:510px) and (orientation:landscape) {
  html[data-play-skin="rally"] #game:not(.is-fullscreen) #view-play .hud {width:auto;margin:6px 0;border-radius:8px}
  html[data-play-skin="rally"] #game:not(.is-fullscreen) #table {border-radius:8px}
}

html[data-play-skin="rally"] #game[data-view="play"]:not(.is-fullscreen) header.top {
  display:grid;grid-template-columns:44px minmax(0,1fr) 44px;width:calc(100% + 24px);max-width:none;
}
html[data-play-skin="rally"] #game[data-view="play"] header .top-actions {grid-column:3;justify-self:end}
html[data-play-skin="rally"] #game[data-view="play"] header .top-actions .fullscreen-top {position:static;inset:auto;transform:none}
@media (orientation:portrait), (min-height:511px) {
  html[data-play-skin="rally"] #game:not(.is-fullscreen) #view-play .hud {width:var(--match-board-width,100%)}
}
@media (max-height:730px) and (orientation:portrait) {
  html[data-play-skin="rally"] #game[data-view="play"]:not(.is-fullscreen) {padding-bottom:0}
  html[data-play-skin="rally"] #game[data-view="play"]:not(.is-fullscreen) header.top {height:auto;min-height:44px;padding-block:0}
  html[data-play-skin="rally"] #game:not(.is-fullscreen) #view-play {padding-top:4px}
  html[data-play-skin="rally"] #game:not(.is-fullscreen) #view-play .hud {padding-block:0}
}

html[data-play-skin="rally"] #game[data-view="play"] header .top-actions {display:flex;align-items:center}
@media (max-height:730px) and (orientation:portrait) {
  html[data-play-skin="rally"] #game:not(.is-fullscreen) #view-play {padding-top:0}
}

/* Shared footer from the approved first menus. Keep it in document flow during play. */
html[data-play-skin] body:has(>footer.play-footer) {
  display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;height:auto;
}
html[data-play-skin] body > footer.dp-footer.play-footer {
  box-sizing:border-box;position:relative;inset:auto;display:block;width:100% !important;max-width:none;min-width:0;
  flex:none;clear:both;align-self:stretch;margin:auto 0 0;padding:24px 0 0;border:0;box-shadow:none;
  color:var(--play-muted);background:var(--play-paper);font-family:ClubPublic,system-ui,sans-serif;text-align:center;
}
html[data-play-skin] footer.play-footer .match-shortcuts,html[data-play-skin] footer.play-footer .match-legal {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0;max-width:none;margin:0;
}
html[data-play-skin] footer.play-footer .match-shortcuts {
  background:var(--play-mist);border-top:1px solid var(--play-rule);
  padding:0 max(12px,calc((100% - 500px)/2));
}
html[data-play-skin] footer.play-footer .match-shortcuts a {
  box-sizing:border-box;flex:1 1 72px;display:flex;align-items:center;justify-content:center;gap:6px;
  min-height:47px;min-width:44px;padding:0 4px;margin:0;border:0;box-shadow:none;background:none;
  font:650 13px/1.15 ClubPublic,system-ui,sans-serif;color:var(--play-brand);text-decoration:none;
}
html[data-play-skin] footer.play-footer .match-shortcuts svg {display:block;width:22px;height:22px;flex:none}
html[data-play-skin] footer.play-footer .cf-spot {fill:var(--play-accent)}
html[data-play-skin] footer.play-footer .cf-paper {fill:var(--play-paper)}
html[data-play-skin] footer.play-footer .cf-ink {fill:var(--play-brand)}
html[data-play-skin] footer.play-footer .match-legal {gap:4px;padding:0 0 env(safe-area-inset-bottom,0px)}
html[data-play-skin] footer.play-footer .match-legal :is(a,button) {
  box-sizing:border-box;display:grid;place-items:center;min-width:44px;min-height:44px;
  margin:0;padding:0 4px;box-shadow:none;background:none;border:0;color:var(--play-muted);
  font:520 12px/1.2 ClubPublic,system-ui,sans-serif;text-decoration:none;
}
html[data-play-skin] footer.play-footer :is(a,button):focus-visible {outline:2px solid var(--play-brand);outline-offset:-3px}
html[data-play-skin] footer.play-footer .share-row {display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin:0;padding:8px}
html[data-play-skin] footer.play-footer .share-row [role="status"]:empty {display:none}
html[data-play-skin="bubble"] body:has(>footer.play-footer) > main {flex:0 0 calc(100dvh - var(--bubble-header-height,56px))}
html[data-play-skin="bubble"] body > footer.dp-footer.play-footer {margin-top:calc(-1 * var(--bubble-unused,0px))}
html[data-play-skin] body:has(.is-fullscreen) > footer.play-footer,html[data-play-skin]:has(:fullscreen) body > footer.play-footer {display:none}
/* Space for native game controls beneath the header. */
@media (orientation:portrait), (min-height:501px) {
  html[data-play-skin="darts"] main:not(.is-fullscreen) #playbar {
    padding:10px clamp(8px,1vw,14px);
  }
}
html[data-play-skin="oddpin"] .game:not(.is-fullscreen) #view-play > .hud {
  margin-block-start:max(10px,env(safe-area-inset-top));
}
@media (max-height:730px) and (orientation:portrait) {
  html[data-play-skin="rally"] #game:not(.is-fullscreen) #view-play .hud {
    padding-block:6px;
  }
}
html[data-play-skin="bubble"] .status-line:has(#status:empty) {
  min-height:24px;
}
html[data-play-skin="bubble"] #status:empty {
  min-height:0;
  margin:0;
}
html[data-play-skin="relay"] #level-subtitle:empty {margin:0}
html[data-play-skin="relay"] .intro h1 {margin-block-end:0}
html[data-play-skin="golf"] .game:not(.is-fullscreen) #view-play > .hud {
  padding-block-start:10px;
}
html[data-play-skin="golf"] .game:not(.is-fullscreen) #view-duel > .duel-hud {
  padding-block-start:max(10px,calc(1.2rem - 6px));
}
html[data-play-skin="glimmer"] header.app-header {z-index:30}
@media (max-width:600px) {
  html[data-play-skin="glimmer"] header.app-header .header-actions > .settings-menu {position:static}
}
@media (max-width:600px) {
  html[data-play-skin="tumble"] header.app-header .header-actions > .settings-menu {position:static}
}
html[data-play-skin="mahjong"] .game:not(.is-fullscreen) #view-play > .hud {
  padding:8px;
}
@media (orientation:portrait), (min-height:501px) {
  html[data-play-skin="bubble"] .board-heading {padding-block-start:8px}
}

/* Wide-screen gameplay controls. */
@media (min-width:1000px) {
  html[data-play-skin="rally"] #game:not(.is-fullscreen) #view-play :is(.hud,#controls) {
    width:min(100%,max(230px,calc((100dvh - 225px) * var(--ratio))));
    margin-inline:auto;
  }
  html[data-play-skin="golf"] .game:not(.is-fullscreen) :is(#view-play,#view-duel).play {
    grid-template-columns:var(--stage-course) clamp(264px,20vw,312px);
    column-gap:clamp(26px,2.2vw,38px);
  }
  html[data-play-skin="golf"] .game:not(.is-fullscreen) #view-duel .duel-tools {margin-top:8px}
  html[data-play-skin="golf"] #online-sheet {
    width:min(440px,calc(100% - 48px));
    padding:24px;
  }
  html[data-play-skin="relay"] .game-layout:not(.is-fullscreen) .controls-panel {
    padding:18px 4px;
    background:transparent;
    border:0;
  }
  html[data-play-skin="relay"] .game-layout:not(.is-fullscreen) #feedback-box[data-kind="playing"] {
    min-height:0;
    height:0;
    margin:0;
    padding:0;
  }
  html[data-play-skin="relay"] .game-layout:not(.is-fullscreen) .board-wrap {margin-top:10px}
  html[data-play-skin="tumble"] .app-shell:has(.game:not(.is-fullscreen)) {
    width:min(calc(100% - 48px),960px);
  }
  html[data-play-skin="tumble"] .game:not(.is-fullscreen) {
    display:grid;
    grid-template-columns:minmax(0,538px) minmax(330px,1fr);
    justify-content:center;
    background:transparent;
    border-color:transparent;
    box-shadow:none;
    grid-template-rows:auto auto 1fr;
    gap:0 24px;
    align-items:start;
    padding-inline:12px;
  }
  html[data-play-skin="tumble"] .game:not(.is-fullscreen) .well {
    grid-column:1;
    grid-row:1 / 5;
    margin-inline:0;
    justify-self:end;
  }
  html[data-play-skin="tumble"] .game:not(.is-fullscreen) .hud {grid-column:2;grid-row:1}
  html[data-play-skin="tumble"] .game:not(.is-fullscreen) .play-controls {grid-column:2;grid-row:2}
  html[data-play-skin="tumble"] .game:not(.is-fullscreen) .status {grid-column:2;grid-row:3}
  html[data-play-skin="drift"] .game-layout:not(.is-practice,.is-fullscreen):not(:has(.is-fullscreen)):has(> #river-panel:not([hidden])) {
    display:grid;
    grid-template-rows:repeat(7,auto) minmax(0,1fr);
    row-gap:0;
  }
  html[data-play-skin="drift"] .game-layout:not(.is-practice,.is-fullscreen):not(:has(.is-fullscreen)) > #river-panel:not([hidden]) {
    display:contents;
  }
  html[data-play-skin="drift"] .game-layout:not(.is-practice,.is-fullscreen):not(:has(.is-fullscreen)) > #river-panel:not([hidden]) #river {
    grid-column:1;
    grid-row:1 / 9;
    width:calc(100% - 2px);
    margin-inline:1px;
  }
  html[data-play-skin="drift"] .game-layout:not(.is-practice,.is-fullscreen):not(:has(.is-fullscreen)):has(> #river-panel:not([hidden])) {
    & #river-panel > :is(.course-heading,.current-guide,.action-bar,.dispatch-status,.practice-offer,.result), & > .desk {grid-column:2}
    & .course-heading {grid-row:1;padding:8px 0}
    & .current-guide {grid-row:2;margin:0 0 12px;padding-inline:0}
    & .action-bar {grid-row:3;padding:0}
    & .dispatch-status {grid-row:4}
    & .practice-offer {grid-row:5}
    & .result {grid-row:6}
    & > .desk {grid-row:7;margin-block-start:16px}
  }
}

/* Mode selectors use each game's own controls, cover art, and accent color. */
html[data-play-skin] .start-menu[data-start="home"] {
  width:min(100%,960px); max-width:960px; margin-inline:auto;
}
html[data-play-skin] .start-menu[data-start="home"] > .start-art {
  box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr) minmax(90px,38%);
  width:100%; max-width:none; max-height:none; aspect-ratio:auto; min-height:148px;
  margin:0 auto 12px; padding:0; overflow:hidden; color:var(--play-white); background:var(--play-brand);
  border:1px solid var(--play-brand); border-radius:14px; box-shadow:none;
}
html[data-play-skin] .start-art .club-cover-copy {
  align-self:center; padding:clamp(14px,3vw,28px); min-width:0; text-align:left;
}
html[data-play-skin] .club-cover-copy :is(p,h2) {margin:0; color:inherit; text-wrap:balance;overflow-wrap:anywhere}
html[data-play-skin] .club-cover-copy .club-kicker {font:700 .76rem/1.3 ClubPublic,system-ui,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:var(--play-accent)}
html[data-play-skin] .club-cover-copy h2 {margin:5px 0;font:750 clamp(1.65rem,4vw,2.8rem)/1.06 ClubOutfit,system-ui,sans-serif;letter-spacing:-.035em}
html[data-play-skin] .club-cover-copy p:last-child {font:500 clamp(.9rem,2vw,1rem)/1.35 ClubPublic,system-ui,sans-serif}
html[data-play-skin] .start-menu[data-start="home"] > .start-art > img {width:100%;height:100%;max-height:208px;min-height:100%;object-fit:cover;object-position:center}
html[data-play-skin] .club-featured {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 14px}
html[data-play-skin] .club-featured > button {
  box-sizing:border-box; display:grid; align-content:center; gap:3px; min-width:0; min-height:62px;
  padding:10px 12px; text-align:left; color:var(--play-ink); background:var(--play-mist);
  border:1px solid var(--play-rule); border-radius:10px; box-shadow:none; white-space:normal;
}
html[data-play-skin] .club-featured > button:first-child {background:var(--play-accent);color:#28271d;border-color:var(--play-accent)}
html[data-play-skin] .club-featured > button strong {font:750 1.07rem/1.15 ClubOutfit,system-ui,sans-serif}
html[data-play-skin] .club-featured > button span {font:500 .85rem/1.3 ClubPublic,system-ui,sans-serif}
html[data-play-skin="oddpin"] #quick-bowl[hidden] {display:none}
html[data-play-skin="rally"] .start-home:has(.club-featured) #start-online {display:none}
html[data-play-skin] .start-home .start-heading {text-align:left;font:750 1.16rem/1.3 ClubOutfit,system-ui,sans-serif;color:var(--play-ink);margin:14px 0 7px!important}
html[data-play-skin] .start-home .start-choices {gap:6px}
html[data-play-skin] .start-home .start-choices .start-choice {min-height:54px;padding:9px 12px;border:1px solid var(--play-rule);border-radius:9px;background:var(--play-white);color:var(--play-ink);box-shadow:none}
html[data-play-skin] .start-home .start-choice .choice-meta {color:var(--play-muted);font-size:.87rem}
html[data-play-skin] .start-home .start-choice .start-label {font:700 1.03rem/1.2 ClubOutfit,system-ui,sans-serif}
html[data-play-skin] .start-home .start-choice svg {color:var(--play-brand)}
html[data-play-skin] :is(.start-home,.start-panel,.club-standings) :is(button,a):focus-visible {outline:3px solid var(--play-brand);outline-offset:2px}
html[data-play-skin] .start-menu:not([data-start="home"]) > .start-art .club-cover-copy {display:none}
html[data-play-skin] .club-standings {text-align:start;box-sizing:border-box;width:100%;margin:14px 0;padding:12px 0;color:var(--play-ink);font-family:ClubPublic,system-ui,sans-serif;text-align:left;border-block-start:1px solid var(--play-rule)}
html[data-play-skin] .club-standings-head {display:flex;align-items:center;justify-content:space-between;gap:12px}
html[data-play-skin] .club-standings h3 {margin:0;line-height:1.18;text-wrap:balance;color:var(--play-ink);font:750 1.22rem/1.2 ClubOutfit,system-ui,sans-serif}
html[data-play-skin] .club-standings a {display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:var(--play-brand);font:700 .86rem/1.3 ClubPublic,system-ui,sans-serif}
html[data-play-skin] .club-standings :is(ol,p) {margin:0;padding:0}
html[data-play-skin] .club-standings .club-board-unit {text-align:right;color:var(--play-muted);font-size:.8rem}
html[data-play-skin] .club-standings .club-board-note {color:var(--play-muted);font-size:.92rem;line-height:1.4}
html[data-play-skin] .club-standings li {display:grid;grid-template-columns:1.5em minmax(0,1fr) auto;gap:8px;align-items:center;padding:5px 4px;font-size:.94rem;line-height:1.3;border-block-end:1px solid var(--play-rule)}
html[data-play-skin] .club-standings li .club-place {display:grid;place-items:center;border-radius:50%;width:1.5em;height:1.5em;font-size:.8rem;background:var(--play-mist);color:var(--play-brand);font-weight:750}
html[data-play-skin] .club-standings li:first-child .club-place {background:var(--play-accent);color:#292716}
html[data-play-skin] .club-standings li.is-player {background:var(--play-mist)}
html[data-play-skin] .club-standings li span:nth-child(2) {overflow-wrap:anywhere}
html[data-play-skin] .board-score-confirmation {text-align:left}
html[data-play-skin] .dp-footer.play-footer {display:block;padding:0;margin-block-end:0;color:var(--play-ink);background:var(--play-paper);border:0;border-radius:0;box-shadow:none}
html[data-play-skin] .play-footer :is(.match-shortcuts,.match-legal,.dp-legal) {display:flex;flex-wrap:wrap;align-items:center;justify-content:center}
html[data-play-skin] .play-footer .match-shortcuts {gap:0;background:var(--play-mist);border-block:1px solid var(--play-rule)}
html[data-play-skin] .play-footer .match-shortcuts a {display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:1 1 5.5rem;max-width:14rem;min-height:48px;padding:4px;color:var(--play-brand);font:700 .9rem/1.15 ClubPublic,system-ui,sans-serif;text-decoration:none}
html[data-play-skin] .play-footer .match-legal {gap:4px;margin:0;padding:0}
html[data-play-skin] .play-footer .match-legal :is(a,button) {display:inline-flex;align-items:center;min-height:44px;padding:3px 6px;color:var(--play-muted);font:520 .8rem/1.3 ClubPublic,system-ui,sans-serif}
html[data-play-skin] .play-footer .match-shortcuts svg {width:25px;height:25px;flex:none}
html[data-play-skin]:has(.is-fullscreen,:fullscreen) footer.play-footer {display:none}
@media (min-width:1000px) {
  html[data-play-skin] .start-menu[data-start="home"] {display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);gap:12px 24px;align-items:start}
  html[data-play-skin] .start-menu[data-start="home"] > .start-art {grid-column:1;grid-row:1;margin:0;min-height:212px}
  html[data-play-skin] .start-menu[data-start="home"] > .start-home {grid-column:2;grid-row:1 / span 3}
  html[data-play-skin] .start-menu[data-start="home"] > :not(.start-art,.start-home) {grid-column:1}
  html[data-play-skin] .start-menu[data-start="home"] > .start-art > img {max-height:none}
}
@media (max-width:359px) {
  html[data-play-skin] .start-menu[data-start="home"] > .start-art {min-height:124px}
  html[data-play-skin] .club-cover-copy h2 {font-size:1.5rem}
}

/* The native results retain their scores, controls, recap and feedback actions. */
html[data-play-skin] :is(dialog.dp-results,dialog#result[open],#view-play > #result.sheet,.overlay[data-kind="result"] .overlay-card,#river-panel > .result) {
  border:1px solid var(--play-rule);
  border-radius:16px;
  box-shadow:0 12px 38px color-mix(in srgb,var(--play-brand) 15%,transparent);
  background:var(--play-paper);
  color:var(--play-ink);
}
html[data-play-skin] :is(dialog.dp-results,dialog#result,#view-play > #result,.overlay[data-kind="result"],#river-panel > .result,#feedback-box[data-kind="won"]) :is(h2,h3) {color:var(--play-brand);font-family:ClubOutfit,system-ui,sans-serif;text-wrap:balance}
html[data-play-skin] :is(dialog.dp-results,dialog#result,.overlay[data-kind="result"],#view-play > #result,#river-panel > .result) :is(button.primary,.r-primary) {background:var(--play-brand);color:var(--play-white);border-color:var(--play-brand);box-shadow:none}
html[data-play-skin] :is(dialog.dp-results,dialog#result,.overlay[data-kind="result"],#view-play > #result) :is(p,button) {text-wrap:pretty}

html[data-play-skin] .r-card:has(.club-standings) #r-boards {display:none}

.arcade-entry[hidden]{display:none!important}
[data-entry-menu] .arcade-entry-native{display:none!important}
html[data-entry-menu] body{min-height:100vh;min-height:100dvh;height:auto;display:flex;flex-direction:column;overflow:auto;background:var(--play-paper);color:var(--play-ink)}
html[data-entry-menu] main.app-shell{width:100%;min-height:0;height:auto;display:flex;flex:1;flex-direction:column;overflow:visible}
html[data-entry-menu] .dp-footer{margin-top:auto}
.arcade-entry{display:grid;align-content:start;gap:16px;box-sizing:border-box;width:min(100%,860px);margin:0 auto;padding:16px clamp(14px,3vw,32px) 20px;color:var(--play-ink);font-family:ClubPublic,system-ui,sans-serif}
.arcade-entry-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;overflow:hidden;border-radius:13px;background:var(--play-brand);color:#fffaf0}
.arcade-entry-hero img{display:block;width:100%;height:clamp(112px,23vw,200px);object-fit:cover}
.arcade-entry-copy{padding:14px clamp(14px,2.6vw,28px);min-width:0}
.arcade-entry-copy p{color:inherit;margin:0 0 6px;font:600 .85rem/1.3 ClubPublic,system-ui}
.arcade-entry-copy h2{color:inherit;margin:0;font:700 clamp(1.75rem,4vw,3.4rem)/1.02 ClubOutfit,system-ui;letter-spacing:-.045em;text-wrap:balance}
.arcade-entry-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.arcade-entry-actions button{display:grid;align-content:center;justify-items:start;gap:4px;padding:12px 14px;min-height:58px;margin:0;border-radius:10px;border:1px solid var(--play-rule);box-shadow:none;color:var(--play-ink);background:var(--play-mist);text-align:start;cursor:pointer}
.arcade-entry-actions button.entry-primary{background:var(--play-brand);color:#fffaf0}
.arcade-entry-actions strong{color:inherit;font:690 1.05rem/1.18 ClubOutfit,system-ui}
.arcade-entry-actions span{color:inherit;font:520 .875rem/1.28 ClubPublic,system-ui}
.arcade-entry-actions button:nth-child(3){grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:46px;background:var(--play-white)}
.arcade-entry-standings{min-height:1px}
.arcade-entry-standings[hidden]{display:none}
@media(min-width:860px){.arcade-entry{padding-block:26px 34px;gap:21px}.arcade-entry-actions button{padding:15px 20px}}

html[data-play-skin] footer.play-footer .match-shortcuts a {flex-basis:max-content;padding-inline:6px}

html[data-entry-menu] .arcade-entry{flex:1 0 auto}
html[data-entry-menu] footer .share-row{display:none}

.entry-personal{border-block:1px solid var(--play-rule);padding:14px 0;color:var(--play-ink)}
.entry-personal h3{margin:0;font:670 1.12rem/1.3 ClubOutfit,system-ui}
.entry-personal p{margin:5px 0 10px;font:500 .9rem/1.4 ClubPublic,system-ui;color:var(--play-muted)}
.entry-sheets{display:flex;gap:6px}.entry-sheets i{height:7px;width:30px;border:1px solid var(--play-rule);border-radius:4px;background:var(--play-mist)}
.entry-sheets i.done{background:var(--play-brand)}
