/* Shared sizing and controls, with compact public game facts. */
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{overflow-wrap:break-word}
body:not(:has(.admin-shell)) main{width:100%;min-width:0}
.signin-link{display:inline-flex;margin-top:12px;padding:10px 18px;border-radius:9px;background:#16864b;color:#fff;text-decoration:none;font-weight:600}
header{position:relative}
.community-counter{position:relative;flex:none;margin-left:4px;color:#fff}
.community-counter summary{display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none;border-left:1px solid #ffffff30;padding-left:18px;min-height:40px}
.community-counter summary::-webkit-details-marker{display:none}
.community-counter summary>svg{width:23px;height:23px;color:#55cc91}
.community-counter strong{display:block;font-size:13px;font-weight:550;white-space:nowrap;line-height:1.4}
#community-count{font-size:20px;font-weight:650;font-variant-numeric:tabular-nums}
.community-counter small{display:block;color:#bbc7c0;font-size:10px;line-height:1.5}
.community-counter p{position:absolute;right:0;top:100%;z-index:10;width:280px;max-width:calc(100vw - 32px);padding:16px;margin:12px 0 0;background:#fff;color:#34453c;border:1px solid #e2e8e4;border-radius:12px;box-shadow:0 8px 24px #12221914;font-size:12px;line-height:1.6}
.hero{display:block!important;padding:36px 0 28px}
.hero h1{max-width:640px;font-size:40px}
.game-side time small{display:block;color:#76827a;font-size:10px;font-weight:400;margin-top:1px;text-align:right}
.game-duration{display:inline-flex;align-items:center;gap:4px;color:#276445;font-size:12px;font-weight:550;white-space:nowrap}
.game-duration svg{width:14px;height:14px;flex-shrink:0}
.game-side{gap:6px}
.game-price{font-variant-numeric:tabular-nums}
.game-link-notice{padding:12px 0;color:#276445;font-size:14px;border-bottom:1px solid #e2e9e5}
#how{padding:24px 0 12px;border-top:1px solid #e8eeea}
#how h2{font-size:23px}
#how .steps{gap:24px;margin:20px 0 0}
#how .step{display:grid;grid-template-columns:24px 1fr;gap:4px 10px;padding:0;border:0;border-radius:0;box-shadow:none;background:none;min-height:0}
#how .number{grid-row:1/3;font-size:14px;line-height:1.5;color:#16864b}
#how .step h3{font-size:15px;margin:0;font-weight:600}
#how .step p{grid-column:2;margin:0;font-size:13px;line-height:1.6}
#login-shell{padding-inline:24px!important}
#login-shell input{border:1px solid #dce5df!important;border-radius:9px!important;padding:12px!important;font-size:16px!important}
#login-shell .actions button{border-radius:9px!important}
@media(max-width:700px){
 body:not(:has(.admin-shell)) header:has(.community-counter){display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:2px 14px;padding:10px 16px}
 body:not(:has(.admin-shell)) header:has(.community-counter) nav{display:contents;font-size:12px}
 header:has(.community-counter) nav .organizer-link{grid-row:1;grid-column:3;display:inline-flex;align-items:center;min-height:32px;color:#fff}
 header:has(.community-counter) nav #account-button{grid-row:1;grid-column:2;min-height:32px}
 header:has(.community-counter) .turf-brand .turf-wordmark{width:132px!important;height:30px!important}
 .community-counter{grid-row:2;grid-column:1/-1;justify-self:end;margin:0}
 .community-counter summary{gap:6px;padding-left:0;border:0;min-height:24px}
 .community-counter summary>span{display:flex;align-items:baseline;gap:8px}
 .community-counter summary>svg{width:19px;height:19px}
 .community-counter strong{font-size:10px}
 #community-count{font-size:18px}
 .community-counter small{font-size:9px}
 .community-counter .counter-label{display:block;line-height:1.2}
 .community-counter strong{display:flex;gap:5px;align-items:center}
 .community-counter .counter-label{max-width:54px;white-space:normal}
 .hero{padding:22px 0 18px}
 .hero h1{font-size:28px}
 .game{grid-template-columns:62px minmax(0,1fr) 72px;gap:10px}
 .game-thumb{width:62px;height:82px}
 .game-duration{font-size:11px;gap:3px}
 .game-duration svg{width:13px;height:13px}
 .game-info .game-price{font-size:12px}
 #how .steps{display:grid;grid-template-columns:1fr;gap:16px}
 body .nav{left:0;right:0;width:100%}
}
@media(max-width:360px){.game{grid-template-columns:48px minmax(0,1fr) 67px;gap:8px}.game-thumb{width:48px;height:70px}.game-info h3{font-size:13px}.game-info .game-price{font-size:11px}.community-counter summary>svg{display:none}header:has(.community-counter) .turf-brand .turf-wordmark{width:112px!important;height:26px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{transition:none!important}}

/* Full-width game availability, without a selected-card background. */
.game,.game:hover,.game:focus,.game:focus-visible{background:#fff}
.game-capacity{grid-column:1/-1;min-width:0;width:100%;padding:0}
.capacity-labels{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:5px;font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums}
.player-count{color:#33473b;font-weight:550}
.game-capacity .spots{margin:0;padding:0;border:0;border-radius:0;background:none;color:#738078;font-size:12px;font-weight:400;white-space:nowrap}
.game-capacity .capacity-progress{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:3px;width:100%;max-width:none;height:6px;margin:0;background:none}
.game-capacity .capacity-progress span{display:block;height:100%;border-radius:999px;background:linear-gradient(to right,#208550 var(--filled),#e6ece8 var(--filled))}

/* Keep game facts together and use the space beneath the arrival time. */
.game{padding-block:10px;row-gap:7px}
.game-info{gap:2px}
.game-thumb{height:86px;align-self:start}
.game-side{gap:5px}
.game-side .game-tags{margin:0;gap:4px;align-items:center;white-space:nowrap}
.game-side .game-tags span{padding:0;border:0;background:none;border-radius:0;font-size:11px;line-height:1.4;color:#69756d}
.game-side .game-tags span+span::before{content:'·';margin-right:4px;color:#98a39c}
.game-group{margin-bottom:10px}
.game-group-title{margin-bottom:0}
@media(max-width:700px){
 .game{padding-block:8px;row-gap:6px}
 .game-thumb{height:70px}
 .game-side{gap:4px}
 .game-side .game-tags span{font-size:10px}
 .game-group{margin-bottom:6px}
 .game-group-title{margin-top:9px}
}

/* Header-matched actions and complete venue addresses. */
:root{--action-green:#202221;--action-hover:#303b35;--action-soft:#edf1ee}
.game-info .game-address{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
header nav .organizer-link{display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#fff;white-space:nowrap}
body :is(.button,.register,.signin-link,button.primary,button[type=submit],form button:not([type])){background:var(--action-green);color:#fff;border-color:var(--action-green)}
body :is(.button,.register,.signin-link,button.primary,button[type=submit],form button:not([type])):hover{background:var(--action-hover);color:#fff}
body :is(.secondary,.filter,.account-tab,.game-pagination button){background:var(--action-soft);color:var(--action-green)}
body :is(.secondary,.filter,.account-tab,.game-pagination button):hover{background:#dce5df;color:var(--action-green)}
body .filter[aria-pressed=true],#account-dialog .account-tab.active,.studio-view .segments button.selected{background:var(--action-green);color:#fff}
body #event-dialog .event-links :is(a,button){background:var(--action-soft);color:var(--action-green)}
body #account-dialog :is(.account-switches,.account-actions) button{color:var(--action-green)}
body #event-dialog>.join-options .secondary{background:var(--action-soft);color:var(--action-green)}
body #receipt-actions #add-friends{background:var(--action-green);border-color:var(--action-green);color:#fff}
body #receipt-actions button{color:var(--action-green)}
body header #account-button,body header #account-button:hover{background:transparent;color:#fff}
body .studio-view button.primary,body .studio-view button.primary:hover{background:var(--action-green);color:#fff}

body button.range-button,body #account-login-toggle,body #receipt-actions button,body #cancel{color:var(--action-green)}
