/* Game Time: live Open Play board (Claude, 24 Oct 2026; for Codex review after Sunday).
   Styles the markup produced by gameTimeHeader()/gameTime() in live.mjs. Loaded after polish.css and glass.css.
   Live is Rally blue; red stays reserved for destructive actions. Content on solid surfaces; glass only on the
   end-time strip (a control). Fallbacks: reduced motion, reduced transparency, increased contrast. */
.gt-head{padding-bottom:12px}
.gt-headrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-top:6px}
.gt-live{white-space:nowrap}
.gt-live{display:inline-flex;align-items:center;gap:8px;padding:5px 12px;border-radius:999px;background:rgba(0,113,227,.12);color:#0066cc;font-size:13px;line-height:18px;font-weight:600;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.gt-live i{width:8px;height:8px;border-radius:50%;background:#0071e3;animation:gt-pulse 2s ease-out infinite}
.gt-live.gt-done{background:rgba(120,120,128,.12);color:#6e6e73}.gt-live.gt-done i{animation:none;background:#8e8e93}
@keyframes gt-pulse{0%{box-shadow:0 0 0 0 rgba(0,113,227,.45)}70%{box-shadow:0 0 0 8px rgba(0,113,227,0)}100%{box-shadow:0 0 0 0 rgba(0,113,227,0)}}
.gt-head .gt-title{margin:12px 0 4px;font-size:30px;line-height:1.1;font-weight:700;letter-spacing:-.022em;color:#1d1d1f}
.gt-head .gt-sub{margin:0;font-size:15px;line-height:1.35;color:#6e6e73}
.gt-head .gt-meta{margin:8px 0 0;font-size:14px;line-height:1.45;font-weight:500;color:#6e6e73;font-variant-numeric:tabular-nums}
.gt-head .gt-dot{color:#aeaeb2;margin:0 2px}

.gt{display:grid;gap:16px;margin:8px 0 32px;color:#1d1d1f}
.gt-main,.gt-side{display:grid;gap:16px;align-content:start;min-width:0}
.gt-section{display:grid;gap:12px;min-width:0}
.gt-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:8px 4px 0}
.gt-h h2{margin:0;font-size:22px;line-height:1.2;font-weight:600;letter-spacing:-.012em;color:#1d1d1f}
.gt-h>span{font-size:14px;color:#6e6e73;font-variant-numeric:tabular-nums}
.gt-h:has(.gt-tools-link){flex-wrap:wrap;gap:4px 12px}
.gt-h:has(.gt-tools-link)>span{margin-right:auto}
.gt-tools-link{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:600;color:var(--r-link)}
#gt-session-h{scroll-margin-top:20px}
.gt-capsule{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:rgba(120,120,128,.12);color:#6e6e73;font-size:13px;line-height:18px;font-weight:600;white-space:nowrap}
.gt-capsule.amber{background:#fff4e5;color:#7a4b00}
.gt-you{display:inline-flex;margin-left:6px;padding:1px 8px;border-radius:999px;background:#0071e3;color:#fff;font-size:12px;line-height:18px;font-weight:600;vertical-align:1px}

/* End-time strip (control: Extend). */
.gt-strip{display:flex;align-items:center;gap:12px;margin:0;padding:12px 12px 12px 16px;border-radius:20px;background:rgba(255,255,255,.78);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 0 0 .5px rgba(0,0,0,.06),0 6px 20px -10px rgba(0,0,0,.18)}
.gt-strip>svg{flex:0 0 22px;color:#0071e3}
.gt-strip>div{flex:1;min-width:0}
.gt-strip b{display:block;font-size:16px;line-height:1.3;font-weight:600;color:#1d1d1f;font-variant-numeric:tabular-nums}
.gt-strip small{display:block;margin-top:2px;font-size:13px;line-height:1.35;color:#6e6e73}
.gt-strip .btn{flex:0 0 auto;background:rgba(0,113,227,.12)!important;color:#0066cc!important;font-weight:600}

/* Live counts and personal stats. */
.gt-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
.gt-mine-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.gt-metric{background:#fff;border-radius:18px;box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.04),0 8px 24px -12px rgba(0,0,0,.12);padding:12px 10px 10px;min-width:0}
.gt-metric b{display:block;font-size:26px;line-height:1;font-weight:700;letter-spacing:-.02em;color:#1d1d1f;font-variant-numeric:tabular-nums}
.gt-metric span{display:block;margin-top:6px;font-size:12px;line-height:1.25;font-weight:500;color:#6e6e73}
.gt-metric.amber b{color:#a35a00}

/* Court tiles: numeral badge, title, live state; teams and Record result keep their existing markup. */
.gt-courts{display:grid;gap:16px}
.gt .livecourt.gt-court{border-radius:24px;padding:18px;gap:0}
.gt .livecourt.gt-court>header{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.gt .livecourt.gt-court>header .gt-num{flex:0 0 52px;height:52px;padding:0;border-radius:16px;display:grid;place-items:center;background:#1d1d1f;color:#fff;font-size:28px;line-height:1;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.gt .livecourt.gt-court>header .gt-num::before{display:none}
.gt-court-title{flex:1;min-width:0}
.gt-court-title b{display:block;font-size:20px;line-height:1.2;font-weight:600;letter-spacing:-.012em;color:#1d1d1f}
.gt-court-title small{display:block;margin-top:2px;font-size:13px;line-height:1.3;color:#6e6e73}
.gt .livecourt.gt-court:has(>.courtmatch>p)>header .gt-num{background:rgba(120,120,128,.18);color:#6e6e73}
.gt .livecourt .court-team h3{position:relative;display:flex;align-items:center;min-height:46px;margin:0;padding:11px 14px;font-size:16px;line-height:1.3;font-weight:500;color:#1d1d1f}
.gt .livecourt .court-team h3+h3::before{content:"";position:absolute;top:0;left:14px;right:0;height:.5px;background:rgba(60,60,67,.16)}
.gt .livecourt.gt-mine{box-shadow:0 0 0 2px #0071e3,0 8px 24px -12px rgba(0,113,227,.35)}
.gt .livecourt.gt-deck{border-radius:24px;padding:16px 18px}

/* Queue */
.gt-list{margin:0;padding:0;list-style:none;background:#fff;border-radius:22px;box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.04),0 8px 24px -12px rgba(0,0,0,.12);overflow:hidden}
.gt-row{position:relative;display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 16px;font-size:16px;line-height:1.3;color:#1d1d1f}
.gt-row+.gt-row::before{content:"";position:absolute;top:0;left:56px;right:0;height:.5px;background:rgba(60,60,67,.16)}
.gt-row.gt-me{background:rgba(0,113,227,.06)}
.gt-pos{flex:0 0 28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(120,120,128,.12);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.gt-grow{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:500}
.gt-muted{flex:0 0 auto;font-size:14px;color:#6e6e73;font-variant-numeric:tabular-nums}

/* Session tools: one grouped card; outlook folded; End last and destructive. */
.gt-tools{display:grid;gap:12px;background:#fff;border-radius:22px;padding:8px 16px 16px;box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.04),0 8px 24px -12px rgba(0,0,0,.12)}
.gt-outlook{border-radius:16px}
.gt-outlook>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:8px 0;cursor:pointer;list-style:none;font-size:16px;font-weight:600;color:#1d1d1f}
.gt-outlook>summary::-webkit-details-marker{display:none}
.gt-outlook>summary small{display:block;font-size:13px;font-weight:400;color:#6e6e73;margin-top:2px}
.gt-outlook>summary::after{content:"Show";flex:0 0 auto;font-size:15px;font-weight:500;color:#0066cc}
.gt-outlook[open]>summary::after{content:"Hide"}
.gt-outlook>summary:focus-visible{outline:2px solid #0071e3;outline-offset:2px;border-radius:12px}
.gt-outlook .capacitystrip{box-shadow:none!important;padding:0;margin:0 0 8px;background:transparent}
.gt-tools>.gt-outlook+*{border-top:.5px solid rgba(60,60,67,.16);padding-top:12px}
.gt-tools .guest-save-banner,.gt-tools>.callout{margin:0;padding:14px 16px;box-shadow:none!important;background:#f2f2f7!important;border-radius:16px}
.gt-tools .guest-save-banner{display:grid!important;gap:10px;grid-template-columns:1fr!important}
.gt-tools .guest-save-banner h3{margin:0 0 4px;font-size:17px;line-height:1.3;font-weight:600}
.gt-tools .guest-save-banner p{margin:0;font-size:14px;line-height:1.45;color:#6e6e73}
.gt-tools .guest-save-banner .btn{justify-self:start}
.gt-toolrow{display:flex;flex-wrap:wrap;gap:8px}
.gt-toolrow.gt-end{border-top:.5px solid rgba(60,60,67,.16);padding-top:12px}
.gt-section>.gt-outlook{background:#fff;padding:0 16px;box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.04),0 8px 24px -12px rgba(0,0,0,.12);border-radius:22px}

/* Player hero: one glanceable answer. White text on Rally blue (≥4.5:1 at the lightest stop). */
.gt-hero{border-radius:28px;padding:22px;color:#fff;background:radial-gradient(120% 140% at 0% 0%,#0071e3 0%,#0060c9 45%,#0a3f8f 100%);box-shadow:0 18px 40px -18px rgba(0,80,170,.6),inset 0 1px 0 rgba(255,255,255,.25)}
.gt-hero>small{display:block;font-size:13px;line-height:1.2;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#fff}
.gt-hero .gt-big{display:block;margin:8px 0 4px;font-size:clamp(44px,15vw,64px);line-height:.98;text-wrap:balance;font-weight:800;letter-spacing:-.04em;color:#fff;font-variant-numeric:tabular-nums}
.gt-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.gt-hero .gt-hero-status{margin:8px 0 0;font-size:17px;line-height:1.35;font-weight:600;color:#fff}
.gt-hero-teams{display:grid;gap:8px;margin-top:16px}
.gt-hero-teams>div{padding:12px 14px;border-radius:16px;background:rgba(0,0,0,.18);font-size:16px;line-height:1.35;font-weight:500;color:#fff;overflow-wrap:anywhere}
.gt-hero-teams>div b{color:#fff;font-weight:700}
.gt-hero-teams>.gt-hero-vs{padding:0;background:none;text-align:center;font-size:12px;font-weight:700;letter-spacing:.14em;opacity:.8}
.gt-hero .actions{margin-top:16px;display:flex;flex-wrap:wrap;gap:8px}
.gt-hero .btn,.gt-hero .btn.primary,.gt-hero .danger-quiet{background:#fff!important;color:#0058b0!important;box-shadow:none!important;font-weight:600}
.gt-hero .danger-quiet{color:#b0000e!important}
.gt-hero .arrival-tag,.gt-hero .arrivaltag{color:#fff}

@media (min-width:980px){
 .gt{grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start}
 .gt-side{position:sticky;top:16px}
 .gt-courts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gt-head .gt-title{font-size:40px}
 .gt-hero .gt-big{font-size:72px}
}
@media (max-width:360px){.gt-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.gt-mine-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.gt-hero .gt-big{font-size:56px}}
/* Keep session identity and organizer attribution, with less space before the task. */
@media(max-width:700px){
 .liveapp:has(.gt-head)>.app-header{min-height:60px;padding:8px 0}
 .liveapp .sessionhero.gt-head{padding-top:8px;padding-bottom:8px;margin-bottom:0}
 .gt-head .backlink{margin:0;min-height:44px}
 .gt-head .gt-headrow{margin-top:0;gap:6px 12px}
 .gt-head .gt-title{font-size:26px;line-height:1.15;margin:8px 0}
 .gt-head .gt-sub,.gt-head>.sheettext,.gt-head .gt-meta{margin:6px 0;font-size:14px;line-height:1.4}
 .gt-head .rolebadge{max-width:100%;overflow-wrap:anywhere;margin-top:0}
 .gt-head+.sessiontoolbar{margin-top:8px}
 .gt .gt-strip{padding:12px;gap:8px}
 .gt .gt-strip b{font-size:15px}
 .gt .livecourt.gt-court>header{gap:8px;flex-wrap:wrap}
 .gt .livecourt.gt-court>header .gt-num{flex-basis:44px;height:44px;font-size:24px}
 .gt .livecourt .court-team h3{overflow-wrap:anywhere;min-width:0}
 .gt-court-title b{font-size:18px}
}
@media (prefers-reduced-motion:reduce){.gt-live i{animation:none}}
@media (prefers-reduced-transparency:reduce){.gt-strip{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}}
@media (prefers-contrast:more){
 .gt-strip,.gt-metric,.gt-list,.gt-tools,.gt .livecourt.gt-court{box-shadow:none!important;border:1px solid #6e6e73!important}
 .gt-hero{background:#00438f}.gt-hero-teams>div{background:rgba(0,0,0,.35)}}

/* Live session visual hierarchy. Native system type; restrained weights; inset list rules.
   Title 24/29 semibold, section 20/26 semibold, row 17/23 regular,
   identity 17/23 semibold, context 13/18 regular. Touch areas remain at least44px. */
.liveapp:has(.gt-head){font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.liveapp:has(.gt-head) :is(button,input,select,textarea){font-family:inherit}
.liveapp .gt-back{margin:4px 0;font-size:15px;font-weight:400}
.liveapp .sessionhero.gt-head{padding:16px 16px 0;margin:0;background:#fff;border-radius:16px 16px 0 0}
.gt-head .gt-headrow{margin:0;gap:6px 12px}
.gt-head .gt-live{padding:0;background:none;font-size:13px;font-weight:500;letter-spacing:0;gap:6px}
.gt-head .gt-live i{width:6px;height:6px;animation:none}
.gt-head .rolebadge{padding:0;background:none!important;font-size:13px;font-weight:400;color:var(--r-ink-2);line-height:18px}
.gt-head .gt-title{font-size:24px;line-height:1.2;font-weight:600;letter-spacing:-.02em;margin:10px 0 6px}
.gt-head .gt-sub{margin:0;font-size:15px;line-height:1.4;font-weight:400;color:var(--r-ink-2)}
.gt-head .gt-facts{margin:8px 0 0;display:flex;flex-wrap:wrap;gap:4px 7px;font-size:13px;font-weight:400;line-height:1.4;color:var(--r-ink-2)}
.gt-facts>span{white-space:nowrap}.gt-facts>span+span:before{content:'·';margin-right:7px}
.gt-facts .rally-price{font-weight:400!important}
.gt-session-details{margin:4px 0 0;font-size:14px;color:var(--r-ink-2)}
.gt-session-details>summary{display:flex;align-items:center;gap:7px;min-height:44px;list-style:none;cursor:pointer;color:var(--r-link);font-weight:400}
.gt-session-details>summary::-webkit-details-marker{display:none}
.gt-session-details>summary:after{content:'⌄';margin-left:auto;font-size:18px;color:var(--r-ink-2)}
.gt-session-details[open]>summary:after{content:'⌃'}
.gt-session-details dl{margin:0;padding:4px 0 12px;display:grid;gap:12px}
.gt-session-details dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px}
.gt-session-details dt{font-weight:400}.gt-session-details dd{margin:0;overflow-wrap:anywhere;color:var(--r-ink)}
.liveapp:has(.gt-head) .sessiontoolbar{margin:0 0 24px;padding:0 12px;background:#fff;border-radius:0 0 16px 16px}
.liveapp:has(.gt-head) .livetabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px!important;padding:0!important;background:transparent!important;border-radius:0!important;border-top:1px solid var(--r-line)!important;overflow:visible}
.liveapp:has(.gt-head) .livetabs>button,.session-more>summary{position:relative;display:flex;align-items:center;justify-content:center;gap:4px;padding:8px 2px;min-height:48px;font-family:inherit;font-size:15px;line-height:20px;font-weight:400!important;white-space:normal;text-align:center;background:transparent!important;box-shadow:none!important;border:0;border-radius:0!important;color:var(--r-ink-2)!important;cursor:pointer}
.liveapp:has(.gt-head) .livetabs>button.selected,.session-more>summary.selected{font-weight:600!important;color:var(--r-ink)!important}
.liveapp:has(.gt-head) .livetabs>button.selected:after,.session-more>summary.selected:after{content:'';position:absolute;left:8px;right:8px;bottom:0;height:2px;background:var(--r-blue);border-radius:1px}
.session-more{position:relative;min-width:0}
.session-more>summary{list-style:none;height:100%}
.session-more>summary::-webkit-details-marker{display:none}
.session-more>div{position:absolute;top:100%;right:0;z-index:35;width:200px;padding:6px;background:#fff;border:1px solid var(--r-line);border-radius:12px;box-shadow:0 8px 24px #0002}
.liveapp .livetabs .session-more button{display:block;width:100%;min-height:48px;text-align:left;padding:12px;font-size:17px;font-weight:400!important;white-space:normal;color:var(--r-ink)!important;box-shadow:none!important;background:transparent!important;border-radius:8px!important}
.liveapp .livetabs .session-more button.selected{background:var(--r-bg)!important;font-weight:600!important}
.session-more>summary:focus-visible{outline:2px solid var(--r-blue);outline-offset:-2px;border-radius:6px}

.host-player-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;min-width:0}
.host-player-prompt b{font-size:17px;line-height:23px;font-weight:400}
.host-player-prompt small{display:block;font-size:13px;line-height:18px;color:var(--r-ink-2);margin-top:2px}
.host-player-prompt .btn{flex-shrink:0}
.roster-tools{margin:0 0 20px;padding:0;background:transparent;border-radius:0}
.liveapp .roster-tools .sectionhead{margin:0 4px 12px;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px}
.liveapp .roster-tools .sectionhead h2{font-size:20px;line-height:26px;font-weight:600;letter-spacing:-.015em;margin:0}
.roster-count{font-size:15px;font-weight:400;color:var(--r-ink-2);margin-left:4px}
.liveapp .roster-tools .sectionhead .btn{font-size:17px;font-weight:400;background:transparent!important;color:var(--r-link)!important;box-shadow:none!important;border:0;padding:8px 0;min-height:44px}
.roster-secondary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:white;border-radius:16px;padding:0 16px}
.roster-secondary .host-player-prompt{flex:1 1 280px}
.roster-secondary:empty{display:none}
.roster-secondary .btn{font-size:15px;font-weight:400;background:transparent!important;color:var(--r-link);box-shadow:none!important;border:0;padding:8px 0;min-height:44px}
.roster-secondary>.btn{font-size:17px;color:var(--r-ink)!important}
.roster-secondary>.btn:after{content:'›';font-size:24px;line-height:1;color:#8a8a8e;margin-left:auto}
.liveapp .participantlist{border:0!important;border-radius:16px!important;box-shadow:none!important;overflow:hidden}
.liveapp .participant{padding:16px;gap:8px 12px;background:linear-gradient(var(--r-line),var(--r-line)) no-repeat right bottom/calc(100% - 70px) 1px}
.liveapp .participant:last-child{background:none}
.liveapp .participant>.og-avatar,.liveapp .participant>.avatar{align-self:start;margin-top:2px}
.liveapp .participantname>b{display:block;font-size:17px;line-height:23px;font-weight:600;letter-spacing:-.01em}
.liveapp .rally-identity{font-size:13px;line-height:18px;color:var(--r-ink-2);margin-top:4px}
.liveapp .participant-skill{margin-top:4px;align-items:center}
.liveapp .participant-skill small{font-size:13px;line-height:18px;font-weight:400}
.liveapp .participant-skill .skill-edit{font-size:14px;font-weight:400;padding:4px 8px;background:transparent;border:0;border-radius:8px;min-height:44px;color:var(--r-link)}
.liveapp .participant .attendance-status{font-size:12px;font-weight:400;padding:3px 8px;line-height:16px;margin-top:4px}
.liveapp .participant .participant-actions{gap:0 16px;margin-top:4px}
.liveapp .participant .participant-actions>.btn,.liveapp .participant .participant-actions>.textbutton{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:8px!important;font-size:15px;font-weight:400;padding:8px 0;min-height:44px;color:var(--r-link)}
.liveapp .participant .participant-actions>.danger-quiet{color:var(--g-red)!important}
@media(max-width:700px){
 .roster-secondary{gap:0}
 .roster-secondary .host-player-prompt{flex-basis:100%}
 .roster-secondary>.btn{width:100%;min-height:52px;border-top:1px solid var(--r-line)!important;border-radius:0!important;text-align:left;display:flex;align-items:center;justify-content:space-between;padding:8px 0}
}
@media(prefers-contrast:more){.liveapp .participantlist,.roster-secondary{border:1px solid var(--r-ink-2)!important}}
