/* 1.0.2 polish pass (7 Nov 2026). Loaded last; every block stands alone so
   any one can be dropped without touching the others. */

/* Settings → Sign-in methods: a provider not yet linked is a row like the
   linked ones (icon · name · status), not a raised button with a border and
   shadow. "Connect" sits where a linked row says "Connected". */
:root:root #dlg-account .ys-auth .signin-provider-rows :is(.signin-apple,.signin-google){display:flex;align-items:center;gap:12px;width:100%;min-height:44px;margin:0;padding:10px 2px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--es-ink);font:inherit;text-align:left}
:root:root #dlg-account .ys-auth .signin-provider-rows :is(.signin-apple,.signin-google) .provider-icon{position:static;flex:0 0 22px;width:22px;height:22px}
:root:root #dlg-account .ys-auth .signin-provider-rows :is(.signin-apple,.signin-google) .signin-provider-name{flex:1;min-width:0;text-align:left;font-weight:400}
:root:root #dlg-account .ys-auth .signin-provider-rows .provider-icon{margin:0}
:root:root #dlg-account .ys-auth .signin-provider-rows :is(.signin-apple,.signin-google):active{background:var(--es-surface-2, transparent)}

/* Numerals sit on medal gradients. Perfect-score units keep their full ink on paper. */
:root[data-theme] #dlg-board :is(.gs-top .gs-top-place,.group-today .group-board.group-podium>li .rk){color:color-mix(in srgb,var(--band-text) 50%,#000)}
:is(.member-shots,.personal-shots) .es-perfect>small{opacity:1}

/* Social with no groups: one panel that says what groups are for, with both
   ways in side by side (the same pattern as the "Make it a daily thing" sheet). */
:root #dlg-board .social-empty.social-empty-panel{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%;justify-items:center;gap:12px;padding:24px 20px 20px;border:1px solid var(--es-line, var(--surface-border));border-radius:18px;background:var(--es-surface, var(--surface));text-align:center}
.social-empty-panel .social-empty-symbol{display:grid;place-items:center;width:56px;height:56px;border-radius:14px;background:var(--es-me, var(--surface-soft));color:var(--es-coral, var(--pencil))}
.social-empty-panel .social-empty-symbol svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6}
.social-empty-panel h4{margin:2px 0 0;max-width:100%;overflow-wrap:anywhere;font:800 min(1.75rem,11vw)/1.1 var(--display);letter-spacing:.005em;color:var(--es-ink, var(--ink))}
.social-empty-panel p{margin:0;max-width:30ch;color:var(--es-ink-2, var(--ink-2));font-size:1rem;line-height:1.45}
.social-empty-panel .social-empty-actions{display:grid;gap:10px;width:100%;margin-top:6px}
.social-empty-panel .social-empty-actions{min-width:0}
.social-empty-panel .social-empty-actions .btn{width:100%;min-width:0;margin:0;min-height:52px;white-space:normal;text-align:center}
.social-empty-panel .social-empty-actions .btn.ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.social-empty-panel .social-empty-actions .btn.ghost svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

/* Stats on day one: one dot is not a trend, so say when the line starts. */
:root .trend-empty.is-first-day{min-height:0;height:auto;justify-content:flex-start;text-align:left;margin-top:8px;display:flex;align-items:center;gap:12px;padding:16px;border:1px dashed var(--es-line-strong, var(--surface-border));border-radius:14px;color:var(--es-ink-2, var(--ink-2))}
.trend-empty.is-first-day svg{flex:none;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.trend-empty.is-first-day p{margin:0;font-size:.94rem;line-height:1.4}

/* The sheet line wraps by whole parts. The dot between "Sheet No. 67" and the
   date is drawn in the gap, so a date that wraps starts its line clean instead
   of leaving "SHEET NO. 67 ·" dangling (long names, small phones, larger text). */
.sheet-head p{overflow:hidden;column-gap:16px}
.sheet-head p>span[aria-hidden="true"]{display:none}
.sheet-head p>span[aria-hidden="true"]+span{position:relative}
.sheet-head p>span[aria-hidden="true"]+span::before{content:"·"/"";position:absolute;left:-11px;top:0}
@media(max-width:359px){
  .home-blueprint .sheet-head{flex-wrap:wrap;column-gap:4px}
  .home-blueprint .sheet-head p{flex:1 0 min-content}
  .home-blueprint .sheet-head p>span:first-child{white-space:nowrap}
  body[data-phase="intro"] #controls>.btn.resume-cta{padding-inline:8px;column-gap:6px}
}

/* keen1 start buttons (Line's "Start", Metronome's "Watch the beat", the
   perform shots in Playground and Archive) wear the same cream pill as the
   canvas shots' "Show the dots" and "Start dot", and sit above the field art. */
body[data-phase="play"] #rotation-host .Shot_gate>.tap-prompt{position:relative;z-index:1;min-height:56px;padding:14px 26px;border:1px solid var(--btn);border-radius:12px;background:var(--btn);color:var(--btn-text);font:600 1rem/1.2 var(--font-ui);box-shadow:inset 0 1px 0 #ffffff20,0 3px 12px #00000024}
body[data-phase="play"] #rotation-host .Shot_gate>.tap-prompt:active{transform:scale(.98)}

/* Player profile: "Vs players" broke onto two lines beside "Daily results".
   Labels stay whole; if the row is too narrow the control drops below the heading. */
:root #dlg-board .player-metrics>button{white-space:nowrap}

/* Challenge edition lines wrap by whole parts, like the sheet line. */
.challenge-edition.is-parts{display:flex;flex-wrap:wrap;column-gap:16px;overflow:hidden}
.challenge-edition.is-parts>span{position:relative}
.challenge-edition.is-parts>span[aria-hidden="true"]{display:none}
.challenge-edition.is-parts>span[aria-hidden="true"]+span::before{content:"·"/"";position:absolute;left:-11px;top:0}

/* iPad and wide windows: the three tabs stay a centered cluster instead of
   thirds of the screen, so the selected highlight is tab-sized. */
@media (min-width:700px){
  :root body.native-app .app-nav{padding-left:max(12px,calc((100vw - 560px) / 2));padding-right:max(12px,calc((100vw - 560px) / 2))}
}

/* The standing strip holds its height while the day's field loads: an empty
   rank keeps its one line (an ID rule elsewhere collapsed it), so Challenge a
   friend never moves when the numbers arrive. */
:root[data-theme] body .result-sheet .sheet-standing #result-standing:empty{display:block;min-height:1lh}

/* The number a shot asks for (Angle's "24°") is the objective: bold, in the
   player's coral, so it reads before the rest of the line. */
#instr .instr-target{font-weight:800;color:var(--es-coral, var(--pencil));white-space:nowrap}

/* Start overlays (Show the dots, Show path, Start dot, and keen1's Start and
   Watch the beat) are a layer of their own: the field behind blurs and a
   shade drops over the panel, so the button and its line sit on top instead
   of reading as a band cut through the art (AJ, 8 Nov: Metronome's line hid
   half the ball in the panel's own colour). Both lift over the 220 ms the
   button takes to go. Legacy shots start their stimulus only after this
   fade (leaveGate in app.js), so a one-look shot loses no time. */
:root{--gate-shade:rgb(3 10 22 / .45)}
:root[data-theme="light"]{--gate-shade:rgb(16 36 64 / .11)}
body[data-phase="play"] #stage::after{content:"";position:absolute;inset:0;z-index:1;background:var(--gate-shade);opacity:0;pointer-events:none;transition:opacity .22s ease}
body[data-phase="play"] #stage:has(#stage-ui>.tap-prompt:not(.is-leaving),.Shot_gate)::after{opacity:1}
body[data-phase="play"] #stage-ui:has(>.tap-prompt),body[data-phase="play"] #rotation-host .Shot_overlay:has(>.Shot_gate){z-index:2}
body[data-phase="play"] #stage>#cv,body[data-phase="play"] #rotation-host svg.k-stage-svg{transition:filter .22s ease,opacity .22s ease}
body[data-phase="play"] #stage:has(#stage-ui>.tap-prompt:not(.is-leaving))>#cv,body[data-phase="play"] #rotation-host:has(.Shot_gate) svg.k-stage-svg{filter:blur(7px);opacity:.5}
body[data-phase="play"] #rotation-host .Shot_gateHint{padding:0;background:none;color:var(--ink);font-size:1.0625rem;text-shadow:0 0 14px var(--play-paper),0 0 4px var(--play-paper)}
body[data-phase="play"] #stage-ui>.tap-prompt{transition:opacity .22s ease,transform .22s ease}
body[data-phase="play"] #stage-ui>.tap-prompt.is-leaving{opacity:0;transform:scale(.96);pointer-events:none}
@media (prefers-reduced-motion:reduce){body[data-phase="play"] #stage::after,body[data-phase="play"] #stage>#cv,body[data-phase="play"] #rotation-host svg.k-stage-svg,body[data-phase="play"] #stage-ui>.tap-prompt{transition:none}}

/* Leaving a shot returns to the page it was opened from (Playground, Archive,
   a Shots page) in place: no entrance motion while it is restored. */
:root[data-restoring] dialog,:root[data-restoring] dialog::backdrop,:root[data-restoring] .page-dialog *{animation:none!important;transition:none!important}
:root[data-restoring] .segmented-control::before{transition:none!important}

/* A group with nobody else in it leads with its invitation: one card and one
   button, here and on its card in the list. */
#dlg-board .social-card.is-solo .social-card-rank small{color:var(--es-coral, var(--pencil))}
#dlg-board .group-invite-cta .btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9}

/* Stats: the three figures share the page's width. Their own padding once made
   the row wider than the page, which pushed the whole panel past the right
   margin on a phone. */
:root #dlg-stats .personal-progress{grid-template-columns:minmax(0,1fr)}
:root:not(.enlarged-text) #dlg-stats .period-summary>div{flex:0 1 auto;padding:0 clamp(8px,3.4vw,28px)}

/* The welcome's Terms line, on the invitation a new app player lands on when
   they arrive by a group invite instead. */
#dlg-board .invite-legal{margin:6px 0 0;text-align:center;font-size:.72rem;line-height:1.5;color:var(--es-ink-3, var(--ink-3))}
#dlg-board .invite-legal a{color:inherit;text-underline-offset:3px}

/* ---- Social with no groups yet: a three-row example of a group's day
   (1.0.3 polish, finish lane, C5). The dashed frame and its "Example" tag mark
   it as a sample; the rows wear the board's own marks. ---- */
#dlg-board .social-empty-panel .social-sample{position:relative;box-sizing:border-box;width:100%;margin:4px 0 6px;padding:12px 12px 4px;border:1.5px dashed var(--es-line-strong);border-radius:14px;text-align:left}
#dlg-board .social-empty-panel .social-sample-tag{position:absolute;top:-10px;left:12px;padding:0 7px;background:var(--es-surface);font:700 11px/20px var(--card-label,inherit);letter-spacing:.14em;text-transform:uppercase;color:var(--es-ink-3)}
#dlg-board .social-empty-panel .social-sample ol{display:grid;margin:0;padding:0;list-style:none}
#dlg-board .social-empty-panel .social-sample li{display:grid;grid-template-columns:16px 30px minmax(0,1fr) auto 38px;align-items:center;gap:9px;min-height:44px;border-bottom:1px solid var(--es-line)}
#dlg-board .social-empty-panel .social-sample li:last-child{border-bottom:0}
#dlg-board .social-empty-panel .social-sample .rk{font:900 18px/1 var(--display);color:var(--es-ink-2);text-align:center}
#dlg-board .social-empty-panel .social-sample .social-face{width:30px;height:30px;margin:0;border:0;background:var(--es-surface-2);box-shadow:inset 0 0 0 1.5px var(--es-line-strong);font:700 12px/1 var(--card-label,inherit);font-style:normal;color:var(--es-ink)}
#dlg-board .social-empty-panel .social-sample b{min-width:0;font:700 15px/1.2 var(--card-label,inherit);color:var(--es-ink)}
#dlg-board .social-empty-panel .social-sample .group-score-strip{grid-area:auto;display:flex;align-items:center;gap:4px;width:auto}
#dlg-board .social-empty-panel .social-sample .tot{font:900 21px/1 var(--display);text-align:right;color:var(--es-ink);font-variant-numeric:tabular-nums}
@media (max-width:359px){#dlg-board .social-empty-panel .social-sample{padding-inline:8px}#dlg-board .social-empty-panel .social-sample li{gap:6px}#dlg-board .social-empty-panel .social-sample .group-score-strip{gap:3px}}

