/* 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}

/* Backyard Cornhole. A summer afternoon: the court is a full-bleed 3D yard, and everything laid
   over it is a bright scorecard. Navy ink, sunflower yellow for the one main action, red and royal
   blue like the bags, and a round, friendly display face. This file loads after the shared
   Dayplay styles, so it has the last word. */
:root{
  color-scheme:light;
  --ink:#1c2a44;--muted:#5b6880;--paper:#fbf6ea;--card:#fffdf7;--line:#e4dccb;
  --sun:#f6bc2e;--sun-deep:#e2a514;--navy:#1f3a6b;--red:#c22f28;--royal:#2353a3;--grass:#3f8a46;
  --chip:rgba(255,253,247,.94);--shadow:0 6px 20px rgba(20,28,48,.18);
  --display:ui-rounded,"SF Pro Rounded","Arial Rounded MT Bold","Nunito","Varela Round",system-ui,sans-serif;
  --dpf-line:#e2d9c4;--dpf-card:#fffdf7;--dpf-ink:#1c2a44;--dpf-accent:#1f3a6b;--dpf-muted:#5b6880;
  --lobby-accent:#f6bc2e;--lobby-accent-ink:#1c2a44;--lobby-ink:#1c2a44;--lobby-go:#3f8a46;
  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(--navy);outline-offset:3px}
button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button{font:inherit;font-weight:700;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:#f6efdf}}
button:disabled{opacity:.55;cursor:default}
.primary{background:var(--sun);border-color:var(--sun);color:var(--ink)}
@media (hover:hover){.primary:hover{background:var(--sun-deep);border-color:var(--sun-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}
.topbar h1{display:flex;align-items:center;gap:8px;margin:0;flex:1;min-width:min-content;font:900 22px/1.15 var(--display);letter-spacing:-.01em}
.topbar .title-text{text-wrap:balance}
.home{display:grid;place-items:center;width:44px;min-height:44px;flex:none;border-radius:12px}
.top-actions{display:flex;align-items:center;gap:6px;margin-left:auto}
.start-choices{grid-template-columns:minmax(0,1fr)}
@media (max-width:260px){.start-choice .start-symbol{display:none}}
.profile{font-size:14px;display:flex;align-items:center;min-height:44px;padding:0 6px}
.icon-button{width:44px;padding:0;display:grid;place-items:center}
#sound[aria-pressed=true] .mute,#sound[aria-pressed=false] .wave{display:none}
.top-actions .fullscreen-toggle{display:flex;align-items:center;gap:6px;font-size:14px;padding:8px 12px}
main{padding:0 clamp(14px,3vw,40px)}

/* ---------- the court ---------- */
.stage{position:relative;overflow:hidden;border-radius:22px;background:#9fbe8a;height:clamp(250px,46vh,470px);isolation:isolate;container:stage/size}
.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;-webkit-tap-highlight-color:transparent;outline-offset:-4px}
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 #modes,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:700;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.35);background:linear-gradient(#a9c9e0,#9fbe8a 62%);z-index:1}
.spinner{width:20px;height:20px;border-radius:50%;border:3px solid rgba(255,255,255,.45);border-top-color:#fff;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.hero{display:none}
.stage.coaching .line{visibility:hidden}

/* ---------- scorecards over the court ---------- */
.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}
.hud-main{display:flex;gap:8px;min-width:0;flex:1 1 auto}
.chip{background:var(--chip);color:var(--ink);border-radius:16px;box-shadow:var(--shadow);padding:8px 13px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.score-chip{display:grid;grid-template-columns:auto auto;grid-template-areas:"mode score" "pips score" "bag bag";align-items:center;column-gap:14px;row-gap:5px;line-height:1.15}
#hud-mode{grid-area:mode;font-size:12.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
#hud-score{grid-area:score;font:900 34px/1 var(--display);font-variant-numeric:tabular-nums;color:var(--navy)}
#hud-bag{grid-area:bag;font-size:12.5px;font-weight:700;color:var(--muted);white-space:nowrap}
#hud-bag:empty{display:none}
.pips{grid-area:pips;display:flex;gap:5px;margin:0;padding:0;list-style:none}
.pips li{width:15px;height:15px;border-radius:4px;background:var(--red);box-shadow:inset 0 -2px 0 rgba(0,0,0,.2);transition:opacity .3s,transform .3s}
.pips li.gold{background:var(--sun);box-shadow:inset 0 -2px 0 rgba(120,80,0,.3)}
.pips li.used{opacity:.22;transform:scale(.82)}
.pips li.used.hole{background:var(--grass);opacity:1;transform:none;box-shadow:inset 0 0 0 2px #255f2c}
.pips li.used.board{opacity:.9;transform:scale(.9)}
.wind-chip{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.25;flex:none}
.wind-chip>span{display:grid}
#wind-mph{font:900 16px/1.15 var(--display)}
#wind-words{color:var(--muted);font-weight:600}
.wind-dial{width:40px;height:40px;flex:none}
.wind-dial circle{fill:#eef4fb;stroke:#c9d6e6;stroke-width:1.5}
.wind-dial .dial-board{fill:#c9a36d}
#wind-arrow path{fill:none;stroke:#e0622c;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
#wind-arrow{transform-origin:20px 20px;transition:transform .5s}
.wind-chip.calm #wind-arrow{opacity:0}
/* A match: one card per player, side by side; the one tossing is outlined 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.15;flex:1 1 0;min-width:0;max-width:11em;opacity:.8} /* line-break-ok: a scorecard per player */
.match-hud .seat.active{opacity:1;box-shadow:var(--shadow),inset 0 0 0 2.5px var(--seat,#c22f28)}
.match-hud .seat .who{grid-area:who;font-size:12.5px;font-weight:800;display:flex;align-items:center;gap:6px;overflow-wrap:anywhere}
.match-hud .seat .who::before{content:"";flex:none;width:11px;height:11px;border-radius:3px;background:var(--seat,#c22f28)}
.match-hud .seat .num{grid-area:num;font:900 28px/1 var(--display);font-variant-numeric:tabular-nums}
.match-hud .seat .sub{grid-area:sub;font-size:12px;color:var(--muted);padding-bottom:3px;overflow-wrap:anywhere}
.stage[data-mode=match] .score-chip{display:none}
.stage:not([data-mode=match]) .match-hud{display:none}
/* Daily and practice: the score chip's lines never wrap, so when it and the wind do not fit on one row (large text with a
   long twist or wind line) the wind takes its own row at the right instead of covering the score. */
.stage:not([data-mode=match]) .hud{flex-wrap:wrap}
.stage:not([data-mode=match]) .wind-chip{margin-left:auto}
.twist-chip{position:absolute;left:50%;top:calc(var(--hud-h,70px) + 18px);transform:translateX(-50%);z-index:3;padding:7px 14px;border-radius:999px;background:var(--sun);color:var(--ink);font:900 14px/1.2 var(--display);box-shadow:var(--shadow);white-space:nowrap;pointer-events:none;animation:glint 1.6s ease-in-out infinite}
@keyframes glint{50%{box-shadow:var(--shadow),0 0 0 6px rgba(246,188,46,.35)}}

/* Call-outs and floating points. */
.callout{position:absolute;left:50%;top:30%;transform:translate(-50%,-50%);z-index:4;pointer-events:none;text-align:center;color:#fff;font:900 clamp(34px,8.5vw,64px)/1 var(--display);letter-spacing:.01em;text-shadow:0 3px 0 var(--navy),0 8px 22px rgba(10,20,40,.45);opacity:0;white-space:nowrap}
.callout small{display:block;margin-top:8px;font-size:.4em;font-weight:900;letter-spacing:.04em;text-shadow:0 2px 0 var(--navy),0 4px 12px rgba(10,20,40,.4)}
.callout.show{animation:pop 1.5s cubic-bezier(.2,.9,.3,1) forwards}
.callout.big{color:var(--sun)}
@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%) scale(1)}}
.popups{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:hidden}
.popups span{position:absolute;transform:translate(-50%,-100%);font:900 17px/1 var(--display);color:#fff;padding:6px 10px;border-radius:999px;background:rgba(28,42,68,.86);white-space:nowrap;animation:rise 1.4s ease-out forwards}
.popups span.good{background:var(--navy)}
.popups span.great{background:var(--grass)}
@keyframes rise{0%{opacity:0;transform:translate(-50%,-60%)}15%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-190%)}}

/* A round's result: a banner across the top of the court, clear of the board. */
.endcard{position:absolute;left:50%;top:calc(var(--hud-h,70px) + 18px);transform:translateX(-50%);z-index:5;display:grid;grid-template-columns:auto auto;grid-template-areas:"title pts" "row pts" "total pts";align-items:center;column-gap:20px;row-gap:6px;padding:14px 20px;border-radius:20px;background:var(--card);box-shadow:0 18px 44px rgba(20,28,48,.3);animation:card .35s cubic-bezier(.2,.9,.3,1.2)}
.endcard h3{grid-area:title;margin:0;font-size:12.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.endcard .pts{grid-area:pts;font:900 46px/1 var(--display);color:var(--navy);font-variant-numeric:tabular-nums}
.endcard .row{grid-area:row;display:flex;gap:6px}
.endcard .row i{width:20px;height:20px;border-radius:5px;background:#dcd5c5}
.endcard .row i.hole{background:var(--grass);box-shadow:inset 0 0 0 2px #255f2c}
.endcard .row i.board{background:var(--red)}
.endcard .row i.gold.board,.endcard .row i.gold.hole{background:var(--sun);box-shadow:inset 0 0 0 2px #a57412}
.endcard p{grid-area:total;margin:0;font-size:14px;font-weight:700;color:var(--muted)}
@keyframes card{from{opacity:0;transform:translate(-50%,-14px) scale(.94)}to{opacity:1;transform:translate(-50%,0)}}

/* First-time coaching: a short line above the controls, never over them. */
.coach{position:absolute;left:50%;bottom:calc(var(--dock-h,140px) + 14px);transform:translateX(-50%);z-index:5;pointer-events:none;display:grid;justify-items:center;gap:12px}
.coach p{margin:0;padding:10px 16px;border-radius:14px;background:var(--navy);color:#fff;box-shadow:var(--shadow);font-weight:800;font-size:15.5px;line-height:1.35;text-align:center;width:max-content;max-width:calc(100cqw - 28px);text-wrap:balance} /* line-break-ok: a tip bubble sized to its line */
.coach-hand{width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.88);box-shadow:0 0 0 8px rgba(255,255,255,.3),var(--shadow);animation:swipe-up 1.6s ease-in infinite}
.coach.hold .coach-hand{display:none}
@keyframes swipe-up{0%{transform:translateY(30px);opacity:0}15%{opacity:1}70%{transform:translateY(-64px);opacity:1}100%{transform:translateY(-84px);opacity:0}}
/* A toss is a swipe: the hold button and its meter are the keyboard's way to throw, shown once the keys are used. */
.stage:not(.keys) .throw{visibility:hidden}
/* A swipe can start anywhere over the yard, the status line and the dock included. */
.stage[data-view="play"] .dock{touch-action:none}

.net{position:absolute;top:56%;left:50%;transform:translateX(-50%);z-index:5;margin:0;padding:9px 15px;border-radius:12px;background:var(--chip);box-shadow:var(--shadow);font-weight:700}
.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(--chip);border:0;box-shadow:var(--shadow);font-size:14px;padding:8px 12px}

/* The dock: the swing meter, one status line, then throw style, the big Hold button and Menu. */
.dock{position:absolute;left:0;right:0;bottom:0;z-index:4;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;container:dock/inline-size;padding:14px 12px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(rgba(16,24,12,0),rgba(16,24,12,.24) 40%,rgba(16,24,12,.4));pointer-events:none}
.dock>*{pointer-events:auto}
.line{justify-self:center;margin:0;padding:8px 15px;border-radius:13px;background:var(--chip);font-size:15px;font-weight:700;line-height:1.35;text-align:center;max-width:100%;box-shadow:var(--shadow);text-wrap:balance}
.line:empty{visibility:hidden}
.dock-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:10px}
.styles{display:flex;gap:4px;padding:4px;border-radius:16px;background:var(--chip);box-shadow:var(--shadow);justify-self:start}
.styles button{display:grid;justify-items:center;gap:2px;min-height:50px;min-width:66px;padding:6px 9px;border:0;border-radius:12px;background:transparent;font-size:13px;line-height:1.1}
.styles button svg{width:28px;height:14px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.styles button[aria-pressed=true]{background:var(--navy);color:#fff}
#menu-button{justify-self:end;background:var(--chip);border:0;box-shadow:var(--shadow);font-weight:700}
.throw{position:relative;width:88px;height:88px;border-radius:50%;padding:0;border:0;background:radial-gradient(circle at 50% 32%,#ffd665,var(--sun) 58%,var(--sun-deep));color:var(--ink);box-shadow:0 0 0 5px rgba(255,255,255,.92),0 10px 26px rgba(40,30,10,.38);display:grid;place-items:center;align-content:center;gap:4px;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;transition:transform .12s}
.throw .throw-bag{width:32px;height:26px;border-radius:9px;background:var(--seat,#c22f28);box-shadow:inset 0 -4px 0 rgba(0,0,0,.2),inset 0 3px 0 rgba(255,255,255,.2)}
.throw .throw-label{font:900 14px/1 var(--display);letter-spacing:.02em}
.throw.holding{transform:scale(.93);box-shadow:0 0 0 8px rgba(255,255,255,.95),0 6px 16px rgba(40,30,10,.38)}
.throw:disabled{opacity:.6}
/* The swing meter: sweep, then let go on the green. */
.meter{justify-self:center;width:min(360px,94%);display:grid;justify-items:center;gap:10px;opacity:0;transform:translateY(6px);transition:opacity .15s,transform .15s;pointer-events:none} /* line-break-ok: a meter control */
.meter.on{opacity:1;transform:none}
.meter-track{position:relative;width:100%;height:18px;border-radius:999px;background:linear-gradient(90deg,#e8836b,#f0c873 30%,#f0c873 70%,#e8836b);box-shadow:0 0 0 3px rgba(255,253,247,.95),var(--shadow)}
.meter-track .z{position:absolute;top:0;bottom:0;border-radius:999px}
.meter-track .good{left:35%;right:35%;background:#cfe57b}
.meter-track .great{left:42.5%;right:42.5%;background:#8fc84a}
.meter-track .perfect{left:47%;right:47%;background:#2f7d2a}
.meter-track .needle{position:absolute;top:-4px;bottom:-4px;width:6px;margin-left:-3px;left:0;border-radius:3px;background:var(--ink);box-shadow:0 0 0 2px #fff}
.meter-grade{min-height:20px;font:900 18px/1.2 var(--display);color:#fff;text-shadow:0 2px 0 rgba(20,28,48,.6),0 3px 10px rgba(0,0,0,.35)}
.meter-grade:empty{display:none}

/* ---------- 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:900 19px/1.2 var(--display)}
.start-choice .choice-meta{text-wrap:balance}
.start-choice .start-symbol{stroke:var(--navy);background:color-mix(in srgb,var(--navy) 8%,var(--card));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--navy) 14%,transparent)}
/* Today's 12 bags: a sunny card naming today's spot and twist. */
.start-choices>#daily.daily-choice{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"icon label arrow" "icon spot arrow" "icon meta arrow";align-items:center;column-gap:16px;row-gap:8px;padding:18px 18px 18px 16px;border:0;background:linear-gradient(135deg,#fff3c4,#ffe089 60%,#f8c94e);color:var(--ink);box-shadow:0 4px 0 #d9a21c,0 14px 28px rgba(60,40,0,.16)}
@media (hover:hover){.start-choices>#daily.daily-choice:hover{background:linear-gradient(135deg,#fff6d3,#ffe597 60%,#f9cf5f)}}
#daily .start-symbol{grid-area:icon;align-self:start;stroke:var(--navy)!important;background:rgba(255,255,255,.55)!important;box-shadow:none!important}
#daily .start-copy{display:contents}
#daily .start-label{grid-area:label;font:900 22px/1.1 var(--display)}
.daily-spot{grid-area:spot;display:flex;flex-wrap:wrap;gap:8px}
.daily-spot b{padding:6px 12px;border-radius:999px;font:900 15px/1.15 var(--display);background:var(--navy);color:#fff}
.daily-spot b.twist{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1.5px rgba(28,42,68,.18)}
#daily[data-twist=golden] .daily-spot b.twist{background:var(--sun-deep);color:var(--ink);box-shadow:none}
#daily[data-twist=blockers] .daily-spot b.twist{background:#4f7fb8;color:#fff;box-shadow:none}
#daily .choice-meta{grid-area:meta;color:#4a4430!important;opacity:1!important;font-size:14.5px}
#daily .start-arrow{grid-area:arrow;stroke:var(--navy)}
.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:84px;width:100%}
.mode-icon{grid-area:icon;width:44px;height:44px;padding:8px;border-radius:13px;fill:none;stroke:var(--navy);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;background:color-mix(in srgb,var(--navy) 8%,var(--card))}
.mode-tile .name{grid-area:name;font:900 19px/1.2 var(--display)}
.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:#fff0c2;color:#6b4d05;font-size:12.5px;font-weight:800}
.mode-tile .best:empty{display:none}
.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:60px;padding:10px 8px;border-radius:16px;text-align:center}
.picker b{font:900 26px/1 var(--display)}
.picker span{font-size:13.5px;font-weight:600;color:var(--muted);line-height:1.2}
.picker button[aria-checked=true]{background:var(--navy);border-color:var(--navy);color:#fff}
.picker button[aria-checked=true] span{color:rgba(255,255,255,.8)}
.picker button[aria-checked=true] b{color:var(--sun)}
.note{margin:14px 2px 20px;font-size:15px;color:var(--muted)}
.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:900 18px/1.2 var(--display)}
.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(--navy)}}
.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:900 18px/1.2 var(--display)}
.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:#efe7d4;position:relative;overflow:hidden}
.week .bar::after{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--h);background:var(--royal);border-radius:8px}
.week b{font-size:13px;color:var(--ink)}
.week .today .bar::after{background:var(--sun-deep)}
.week .fresh .bar::after{animation:grow .8s ease-out}
@keyframes grow{from{height:0}}
.help{margin:22px 0 28px;border:1.5px solid var(--line);border-radius:18px;background:var(--card)}
.help summary{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:6px 18px;cursor:pointer;font-weight:800;list-style:none}
.help summary::-webkit-details-marker{display:none}
.help summary::after{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .2s}
.help[open] summary::after{transform:rotate(-135deg)}
.help-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17em),1fr));gap:4px 28px;padding:0 18px 12px}
.help h3{margin:10px 0 4px;font:900 17px/1.2 var(--display)}
.help p{margin:0 0 12px;font-size:15.5px;line-height:1.55;color:#3d4659}
.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){
  .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}
}
@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}
  #daily .start-label{font-size:27px}
  .daily-spot b{font-size:17px;padding:8px 14px}
  .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:30px}
  .help summary{font-size:17px}
}

/* ---------- results pop-up ---------- */
.dp-results{border:0;padding:0;background:transparent;width:min(480px,calc(100vw - 20px));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(16,22,36,.5);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.r-card{position:relative;display:grid;background:var(--card);border-radius:26px;padding:22px 20px 14px;box-shadow:0 30px 70px rgba(16,22,40,.38);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:.07em;text-transform:uppercase;color:var(--muted)}
.r-card h2{margin:0 36px;font:900 clamp(26px,7vw,34px)/1.1 var(--display);text-wrap:balance}
.r-score{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:8px;margin:12px 0 4px}
.r-score strong{font:900 84px/.9 var(--display);color:var(--navy);font-variant-numeric:tabular-nums}
.r-score span{font:900 22px/1 var(--display);color:var(--muted);white-space:nowrap}
.r-pill{margin:8px 0 0;padding:5px 12px;border-radius:999px;background:#eef1f6;color:var(--ink);font-size:14px;font-weight:800}
.r-pill.best{background:var(--sun);color:var(--ink)}
.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:7px;justify-content:center;margin:16px 0 0}
.r-grid:empty{display:none}
.r-grid .end{display:flex;align-items:center;gap:7px}
.r-grid .end>span{width:66px;text-align:left;font-size:13px;color:var(--muted);font-weight:700}
.r-grid .end>b{width:34px;text-align:right;font:900 19px/1 var(--display);font-variant-numeric:tabular-nums}
.r-grid i{width:28px;height:28px;border-radius:8px;background:#e3dccb;display:block}
.r-grid i.board{background:var(--red);box-shadow:inset 0 -3px 0 rgba(0,0,0,.2)}
.r-grid i.hole{background:var(--grass);box-shadow:inset 0 0 0 3px #255f2c}
.r-grid i.gold.board,.r-grid i.gold.hole{background:var(--sun);box-shadow:inset 0 0 0 3px #a57412}
.r-grid i.pop{animation:tile .4s cubic-bezier(.2,.9,.3,1.4) backwards}
@keyframes tile{from{transform:scale(.3);opacity:0}}
.match-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.match-strip span{padding:8px 14px;border-radius:12px;background:#efe8d8;font:900 20px/1 var(--display)}
.match-strip span.won{background:var(--navy);color:var(--sun)}
.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:#efe8d8;font-size:13.5px;font-weight:700;color:#3d4659}
.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:800;border-radius:15px;max-width:100%;min-width:0;overflow-wrap:anywhere}
.r-actions.again-first #again{order:-1}
.r-actions button:not(.primary){background:transparent;border-color:color-mix(in srgb,var(--ink) 22%,transparent)}
.dp-results .r-actions button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.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-reminder:not([hidden]){display:flex;align-items:center;justify-content:center;min-height:44px;padding:6px 8px;color:var(--ink);font-size:15px;font-weight:700;text-align:center;text-wrap:balance}
.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:800;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:900 18px/1.2 var(--display)}
.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}
html.is-playing main.is-fullscreen .stage{height:100%;max-height:none;margin:0}
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}
  .topbar .profile{display:none}
  .topbar h1{font-size:19px;gap:6px}
  /* The shared header centres the name between the side buttons: on a phone the little mark steps
     aside so "Backyard Cornhole" stays on one line (enlarged text may still wrap it). */
  .topbar .game-mark{display:none}
  .top-actions .fullscreen-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .top-actions .fullscreen-toggle{padding:8px 10px}
  .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}
  #hud-score{font-size:30px}
  .match-hud .seat .num{font-size:25px}
  .wind-chip{font-size:12.5px;gap:7px}
  /* In a match the players' chips need the row: the wind keeps its dial and speed, the words go. */
  .stage[data-mode=match] #wind-words{display:none}
  /* Full screen gives the top row's right end to Exit, so the score chip needs the words' room too. */
  html.is-playing main.is-fullscreen #wind-words{display:none}
  .wind-dial{width:34px;height:34px}
  .dock{padding:12px 8px calc(12px + env(safe-area-inset-bottom));gap:10px}
  .styles button{min-width:58px;padding:5px 6px}
  .throw{width:80px;height:80px}
  .line{font-size:14.5px}
  .r-card{padding:20px 16px 12px}
  .r-score strong{font-size:74px}
  /* The 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:370px){html:not(.in-dayplay-app) header.topbar h1{font-size:16.5px}}
@media (max-width:350px){.wind-chip #wind-words{display:none}.styles button{min-width:52px;font-size:12px}#menu-button{padding:8px 10px}.topbar .game-mark{display:none}}
/* A phone held sideways: chips stay small and the dock moves to the side so the yard keeps the middle. */
/* A short, wide window (a laptop's 900x570): the score and the bags 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(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:18px 22px 12px}
  .r-body{margin-top:0}
}
@media (max-height:500px) and (orientation:landscape){
  /* A phone on its side: the menu's choices come first, so the picture steps aside. */
  .menu.start-art-layout>.start-art{display:none!important}
  html:not(.in-dayplay-app):not(:has(.game.is-fullscreen)) header.topbar{min-height:46px;padding-block:2px}
  .topbar h1{font-size:19px}
  html.is-playing .stage{height:calc(100vh - var(--chrome,46px) - 4px);height:calc(100dvh - var(--chrome,46px) - 4px);min-height:260px}
  .stage{height:clamp(220px,62vh,380px)}
  .hud{top:6px;right:calc(min(15.6em,36%) + 10px)}
  .chip{padding:5px 10px}
  #hud-score{font-size:25px}
  .dock{left:auto;right:0;top:0;width:min(15.6em,36%);align-content:end;padding:12px 10px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(90deg,rgba(16,24,12,0),rgba(16,24,12,.34))} /* line-break-ok: the game's control column beside the court */
  .dock-row{grid-template-columns:1fr auto;grid-template-areas:"styles throw" "menu throw"}
  .styles{grid-area:styles}
  #menu-button{grid-area:menu;justify-self:start}
  .throw{grid-area:throw;width:74px;height:74px}
  .line{font-size:13.5px}
  .callout{top:40%;left:calc(50% - min(7.8em,18%))}
  .twist-chip,.endcard{left:calc(50% - min(7.8em,18%))}
  .coach{left:calc(50% - min(7.8em,18%));bottom:16px}
  .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:60px}
  .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}
  #hud-score{font-size:clamp(36px,4.4cqh,52px)}
  .match-hud .seat{max-width:13em} /* line-break-ok: a scorecard per player */
  .match-hud .seat .num{font-size:clamp(30px,4cqh,46px)}
  .line{font-size:16px;padding:10px 18px}
  .dock{padding:16px 18px 18px}
  /* One centred cluster: throw style, Hold, Menu. */
  .dock-row{grid-template-columns:1fr auto auto auto 1fr;grid-template-areas:". styles throw menu ."}
  .styles{grid-area:styles}.throw{grid-area:throw;width:92px;height:92px}#menu-button{grid-area:menu;justify-self:start}
}
@media (min-width:1400px){
  .callout{font-size:clamp(64px,7cqh,100px)}
  .popups span{font-size:21px}
}
/* Enlarged text, or a zoomed phone: the throw styles take their own row, and the throw button and
   Menu share the next. The sizes are in em so they follow the text. */
@container dock (max-width:17em){
  .dock-row{grid-template-columns:1fr auto 1fr;grid-template-areas:"styles styles styles" ". throw menu"}
  .styles{grid-area:styles;justify-self:center;flex-wrap:wrap;justify-content:center;max-width:100%}
  .throw{grid-area:throw}
  #menu-button{grid-area:menu;justify-self:end}
}
@media (max-height:500px) and (orientation:landscape){
  @container dock (min-width:12.5em){
    .dock-row{grid-template-columns:1fr auto;grid-template-areas:"styles throw" "menu throw"}
    .styles{justify-self:start}
    #menu-button{justify-self:start}
  }
}
/* Enlarged text or a zoomed phone: the chips need more room than one row. The wind takes its own
   row at the right, under the score or the players, instead of covering them; the players share
   the full width. */
@container stage (max-width:16em){
  .hud{flex-wrap:wrap}
  .wind-chip{margin-left:auto}
  .match-hud .seat{max-width:none}
  /* The round label may wrap ("Round 1 / of 3"), so the score chip fits beside Exit in full screen. */
  .hud-main,.score-chip{min-width:0}
  #hud-mode{white-space:normal;text-wrap:balance}
}
/* A short yard for the text size: the swing meter takes the status line's place while it shows. */
@container stage (max-height:15em) or ((max-height:22em) and (orientation:portrait)){
  .meter,.line{grid-area:1/1}
  .meter{align-self:end;z-index:1}
  .meter.on+.line{opacity:0}
}
.week{grid-template-columns:repeat(7,minmax(0,1fr))}
.progress-card .small{text-wrap:pretty}
@media (max-width:300px){
  .hud .chip{min-width:0}
  #hud-bag,#wind-words,.wind-dial{display:none}
  #wind-mph{white-space:nowrap}
  .r-grid{justify-content:stretch}
  .r-grid .end{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 6px;align-items:center}
  .r-grid .end>span{grid-column:1/3;grid-row:1;width:auto;white-space:nowrap}
  .r-grid .end>b{grid-column:3/5;grid-row:1;width:auto;justify-self:end}
  .r-grid i{grid-row:2;justify-self:center}
  .week{grid-template-columns:repeat(auto-fill,minmax(40px,1fr))}
}
@media (prefers-reduced-motion:reduce){
  .callout.show{animation:still-callout 1.5s linear forwards}
  .popups span{animation:still-popup 1.4s linear forwards}
  .coach .coach-hand,.spinner,.twist-chip{animation:none}
  .r-grid i.pop,.week .fresh .bar::after,.endcard{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%,-100%)}100%{opacity:0;transform:translate(-50%,-100%)}}

/* 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,28,48,.26);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(--sun);color:var(--ink);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(--sun)}

@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)}
