/* css/modes.css - daily, infinite, achievements, onboarding (wave 2, SPEC §14.6 step 3). Owner: modes and meta package.
   Same rules as style.css: no backdrop-filter, animate transform/opacity only, nothing animates on a hidden screen. Each mode
   screen sits over its painted background (assets/bg/daily.webp, infinite.webp, drawn by the renderer's menu scene) under a veil. */

/* ---------------------------------------------------------------- shared veil and column */
.screen-daily::before, .screen-infinite::before, .screen-achievements::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 6, 16, .50) 0%, rgba(4, 6, 16, .18) 26%, rgba(4, 6, 16, .34) 58%, rgba(4, 6, 16, .84) 100%);
}
.dly, .inf { width: min(100%, 500px); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.dly .card, .inf .card {
  background: linear-gradient(180deg, rgba(16, 24, 56, .80), rgba(7, 11, 28, .88));
  border-color: rgb(var(--wk-rgb, var(--ch-rgb)) / .26);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.screen-daily.is-active .dly > .card, .screen-infinite.is-active .inf > .card { animation: modeIn .5s var(--ease) both; }
.screen-daily.is-active .dly > .card:nth-child(2), .screen-infinite.is-active .inf > .card:nth-child(2) { animation-delay: 70ms; }
.screen-daily.is-active .dly > .card:nth-child(3), .screen-infinite.is-active .inf > .card:nth-child(3) { animation-delay: 140ms; }
@keyframes modeIn { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.985); } to { opacity: 1; transform: none; } }
.screen-daily { --ch-accent: #ffd36b; --ch-rgb: 255 211 107; }
.screen-infinite { --ch-accent: #8fd3ff; --ch-rgb: 143 211 255; }
.screen-achievements { --ch-accent: #ffd36b; --ch-rgb: 255 211 107; }

/* ---------------------------------------------------------------- daily: today */
.dly-hero { position: relative; padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 11px; overflow: hidden; }
.dly-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(110% 80% at 88% -12%, rgb(var(--wk-rgb) / .34), rgba(0, 0, 0, 0) 62%); }
.dly-hero > * { position: relative; }
.dly-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-dim); }
.dly-num { color: rgb(var(--wk-rgb)); text-shadow: 0 0 14px rgb(var(--wk-rgb) / .6); }
.dly-date { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dly-week { display: flex; align-items: center; gap: 10px; }
.dly-week .ic { width: 28px; height: 28px; padding: 5px; box-sizing: content-box; border-radius: 12px; color: rgb(var(--wk-rgb)); background: rgb(var(--wk-rgb) / .14); border: 1px solid rgb(var(--wk-rgb) / .45); box-shadow: 0 0 22px -6px rgb(var(--wk-rgb) / .8); }
.dly-week b { font-size: 15px; font-weight: 750; letter-spacing: .04em; color: #fff; }
.dly-name { margin: 2px 0 0; font-size: clamp(26px, 8.4vw, 36px); font-weight: 830; line-height: 1.04; letter-spacing: .005em; text-shadow: 0 0 28px rgb(var(--wk-rgb) / .55), 0 2px 12px rgba(0, 0, 0, .6); }
.dly-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 26px; }
.dly-pips { display: inline-flex; gap: 5px; align-items: center; }
.dly-pips i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.dly-pips i.on { background: rgb(var(--wk-rgb)); box-shadow: 0 0 9px rgb(var(--wk-rgb) / .9); }
.dly-new { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 14px; font-size: 12.5px; font-weight: 700; color: var(--gold); background: rgb(var(--gold-rgb) / .12); border: 1px solid rgb(var(--gold-rgb) / .4); }
.dly-new .ic { width: 16px; height: 16px; }
.dly-result { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.dly-result .stars .ic { width: 24px; height: 24px; }
.dly-crystal .ic { width: 20px; height: 20px; color: var(--crystal); filter: drop-shadow(0 0 7px rgb(var(--crystal-rgb) / .85)); }
.dly-pcs { color: var(--ink-dim); font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; }
.dly-play { margin-top: 2px; }
.dly-play.btn-primary { border-color: rgb(var(--wk-rgb)); background: linear-gradient(180deg, rgb(var(--wk-rgb)), rgb(var(--wk-rgb) / .72)); box-shadow: 0 10px 34px -10px rgb(var(--wk-rgb) / .8), 0 0 0 1px rgb(var(--wk-rgb) / .3), inset 0 1px 0 rgba(255, 255, 255, .55); }
.dly-share { width: 100%; }
.dly-share.is-done, .rx-share.is-done { border-color: var(--ok); color: var(--ok); }
.dly-warn { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: 13px; color: var(--ink-dim); background: rgb(var(--danger-rgb) / .12); border: 1px solid rgb(var(--danger-rgb) / .35); }

/* ---------------------------------------------------------------- daily: streak */
.dly-streak { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px; align-items: center; padding: 14px 16px; }
.dly-flame { grid-row: 1; width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.dly-flame .ic { width: 30px; height: 30px; }
.dly-flame.is-lit { color: #ffb347; background: radial-gradient(circle at 50% 70%, rgba(255, 140, 40, .38), rgba(255, 90, 20, .08) 70%); border-color: rgba(255, 170, 70, .6); box-shadow: 0 0 26px -4px rgba(255, 140, 40, .75); }
.dly-flame.is-lit .ic { filter: drop-shadow(0 0 8px rgba(255, 170, 60, .9)); }
.dly-streak-text { grid-row: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dly-streak-text b { font-size: 19px; font-weight: 780; }
.dly-streak-text small { font-size: 13px; color: var(--ink-dim); }
.dly-freezes { grid-row: 1; display: flex; gap: 6px; }
.dly-fz { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 255, 255, .2); }
.dly-fz .ic { width: 20px; height: 20px; }
.dly-fz.on { color: #bfe9ff; background: rgba(120, 200, 255, .16); border: 1px solid rgba(150, 215, 255, .6); box-shadow: 0 0 18px -4px rgba(120, 200, 255, .8); }
.dly-fz-note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--ink-faint); }

/* ---------------------------------------------------------------- daily: calendar */
.dly-cal { padding: 14px 12px 12px; }
.dly-cal-head { display: flex; align-items: center; gap: 8px; }
.dly-cal-title { flex: 1; min-width: 0; text-align: center; }
.dly-cal-title b { display: block; font-size: 17px; font-weight: 760; text-transform: capitalize; }
.dly-cal-title small { display: block; margin-top: 1px; font-size: 12.5px; color: rgb(var(--wk-rgb)); font-weight: 650; font-variant-numeric: tabular-nums; }
.dly-nav-next .ic { transform: scaleX(-1); }
.dly-nav[disabled] { opacity: .25; }
.dly-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.dly-wd { text-align: center; font-size: 11px; font-weight: 750; letter-spacing: .06em; color: var(--ink-faint); padding: 2px 0 3px; text-transform: uppercase; }
.dly-cell {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; min-height: 44px; padding: 0; border-radius: 13px;
  border: 1px solid transparent; background: rgba(255, 255, 255, .045); color: var(--ink); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: transform .14s var(--ease), background .2s ease;
}
.dly-cell:active { transform: scale(.93); }
.dly-cell.is-blank { background: none; pointer-events: none; }
.dly-cell.is-future, .dly-cell.is-unavail { opacity: .26; pointer-events: none; }
.dly-cell.is-today { border-color: rgb(var(--wk-rgb)); box-shadow: 0 0 0 1px rgb(var(--wk-rgb) / .35), 0 0 16px -3px rgb(var(--wk-rgb) / .75); }
.dly-cell:not(.is-solved):not(.is-blank):not(.is-future):not(.is-unavail):hover { background: rgba(255, 255, 255, .09); }
.dly-dn { position: relative; z-index: 1; }
.dly-gem {
  position: absolute; inset: 20%; border-radius: 6px; transform: rotate(45deg);
  background: linear-gradient(135deg, rgb(var(--gem-rgb)), rgb(var(--gem-rgb) / .5)); box-shadow: 0 0 14px -1px rgb(var(--gem-rgb) / .8), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .18);
}
.dly-cell.is-solved .dly-dn { color: #06101f; font-weight: 800; }
.dly-st { position: absolute; bottom: 2px; left: 0; right: 0; z-index: 1; text-align: center; font-size: 7px; line-height: 1; letter-spacing: -.5px; color: #fff3c4; text-shadow: 0 0 4px rgba(0, 0, 0, .7); }
.dly-cell.is-solved { background: rgb(var(--gem-rgb) / .08); }
.dly-ice { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(160, 215, 255, .55); }
.dly-ice .ic { width: 28px; height: 28px; }
.dly-cell.is-freeze .dly-dn { color: #d7efff; position: absolute; bottom: 3px; font-size: 10px; }
.dly-cell.is-freeze { background: rgba(120, 200, 255, .1); border-color: rgba(150, 215, 255, .3); }
.dly-check { position: absolute; top: 3px; right: 3px; z-index: 1; width: 14px; height: 14px; color: var(--ok); }
.dly-check .ic { width: 14px; height: 14px; }
.dly-cell.is-practice { background: rgba(107, 255, 176, .07); border-color: rgba(107, 255, 176, .22); }
.dly-cal-note { margin: 10px 4px 0; font-size: 12px; color: var(--ink-faint); line-height: 1.4; text-align: center; }

/* ---------------------------------------------------------------- infinite */
.inf-hero, .inf-run { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.inf-hero::before, .inf-run::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(100% 70% at 20% -10%, rgb(var(--ch-rgb) / .26), rgba(0, 0, 0, 0) 62%); }
.inf-hero > *, .inf-run > * { position: relative; }
.inf-eyebrow { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: rgb(var(--ch-rgb)); }
.inf-world { color: var(--ink-dim); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inf-mid { display: flex; align-items: center; gap: 18px; }
.inf-ring { position: relative; width: var(--sz, 150px); height: var(--sz, 150px); flex: none; }
.inf-ring svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ir-track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 5.5; }
.ir-fill { fill: none; stroke: rgb(var(--ch-rgb)); stroke-width: 5.5; stroke-linecap: round; filter: drop-shadow(0 0 5px rgb(var(--ch-rgb) / .9)); }
.inf-ring.is-idle .ir-fill { opacity: .32; filter: none; }
.ir-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ir-in small { font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.ir-depth { font-size: 50px; font-weight: 860; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 26px rgb(var(--ch-rgb) / .7); }
.inf-stats { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.is-row small { display: block; font-size: 12px; color: var(--ink-dim); font-weight: 650; letter-spacing: .04em; }
.is-row b { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.is-mult { color: var(--gold); }
.is-stars { display: inline-flex; align-items: center; gap: 6px; }
.is-stars .ic { width: 20px; height: 20px; color: var(--gold); }
.is-pips { display: inline-flex; gap: 9px; align-items: center; height: 26px; }
.is-pips i { width: 13px; height: 13px; border-radius: 4px; transform: rotate(45deg); background: rgba(255, 255, 255, .14); }
.is-pips i.on { background: rgb(var(--ch-rgb)); box-shadow: 0 0 10px rgb(var(--ch-rgb) / .9); }
.inf-next, .inf-sub { margin: 0; text-align: center; color: var(--ink-dim); font-size: 14px; line-height: 1.4; }
.inf-sub { text-align: left; font-size: 14.5px; color: var(--ink); opacity: .86; }
.inf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inf-row .btn { min-height: 48px; padding: 0 10px; font-size: 14px; gap: 8px; min-width: 0; }
.inf-row .btn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inf-row #inf-copy span:last-child { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; font-size: 13px; }
.inf-row .btn.is-done { border-color: var(--ok); color: var(--ok); }
.inf-uses { display: flex; flex-direction: column; gap: 8px; }
.inf-uses small { font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.inf-hint { margin: 0; font-size: 12.5px; color: var(--ink-faint); line-height: 1.4; }
.inf-mechs { display: flex; flex-wrap: wrap; gap: 6px; }
.inf-mech { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 255, 255, .14); }
.inf-mech .ic { width: 20px; height: 20px; }
.inf-mech.on { color: rgb(var(--mc-rgb)); background: rgb(var(--mc-rgb) / .13); border: 1px solid rgb(var(--mc-rgb) / .5); box-shadow: 0 0 16px -5px rgb(var(--mc-rgb) / .8); }
.inf-last { padding: 14px 16px; }
.inf-last h4, .inf-friend h4 { margin: 0 0 10px; font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); display: flex; align-items: center; gap: 8px; }
.inf-friend h4 .ic { width: 18px; height: 18px; color: rgb(var(--ch-rgb)); }
.il-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.il-grid small { display: block; font-size: 11px; color: var(--ink-faint); font-weight: 650; }
.il-grid b { font-size: 20px; font-weight: 780; font-variant-numeric: tabular-nums; }
.inf-friend { padding: 14px 16px 12px; }
.inf-code-row { display: flex; gap: 10px; }
.inf-code {
  flex: 1; min-width: 0; height: 48px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line-hi); background: rgba(0, 0, 0, .35); color: var(--ink);
  font: 750 17px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .1em; text-align: center; text-transform: uppercase;
  -webkit-user-select: text; user-select: text;
}
.inf-code::placeholder { color: var(--ink-faint); opacity: .7; }
.inf-code:focus-visible { outline: 2px solid rgb(var(--ch-rgb)); outline-offset: 1px; }
.inf-code.is-bad { border-color: var(--danger); }
.inf-err { margin: 6px 2px 0; min-height: 18px; font-size: 13px; color: var(--danger); }
.inf-fb { margin: 2px 2px 0; font-size: 12.5px; color: var(--ink-faint); }

/* in-run: score chip in the HUD's second line, the pause-menu skip entry, the board caption */
.hud-best .inf-chip { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.hud-best .inf-chip .ic { width: 14px; height: 14px; color: rgb(var(--ch-rgb)); }
.inf-chip b { font-weight: 800; }
.inf-chip i { font-style: normal; font-weight: 800; color: var(--ink-dim); }
.inf-chip i.is-hot { color: var(--gold); }
.inf-chip i.is-max { color: #fff; text-shadow: 0 0 10px rgb(var(--gold-rgb) / .95), 0 0 2px var(--gold); }
#menu-skip[hidden] { display: none; }
.inf-cap {
  position: fixed; left: 50%; top: calc(var(--hud-bar) + 8px); z-index: 19; max-width: min(92vw, 440px); padding: 9px 16px; border-radius: 16px; pointer-events: none;
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em; text-align: center; color: #fff; background: rgba(8, 12, 30, .86); border: 1px solid rgb(var(--ch-rgb) / .55);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .9), 0 0 24px -8px rgb(var(--ch-rgb) / .6);
  opacity: 0; transform: translate3d(-50%, -8px, 0); transition: opacity .25s ease, transform .35s var(--ease); display: none;
}
body[data-screen="play"] .inf-cap.is-on { display: block; opacity: 1; transform: translate3d(-50%, 0, 0); }

/* ---------------------------------------------------------------- results card extras (daily share, infinite score) */
.res-extra { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 8px 0 0; }
.rx-line { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14.5px; font-weight: 650; color: var(--ink-dim); }
.rx-line .ic { width: 20px; height: 20px; }
.rx-streak .ic { color: rgba(255, 255, 255, .3); }
.rx-streak.is-lit { color: #ffd2a0; }
.rx-streak.is-lit .ic { color: #ffb347; filter: drop-shadow(0 0 8px rgba(255, 170, 60, .9)); }
.rx-freeze { color: #bfe9ff; }
.rx-freeze .ic { color: #bfe9ff; }
.rx-share { margin-top: 2px; min-width: 180px; }
.rx-gain { gap: 10px; color: var(--ink); }
.rx-gain b { font-size: 26px; font-weight: 850; color: var(--gold); text-shadow: 0 0 16px rgb(var(--gold-rgb) / .6); font-variant-numeric: tabular-nums; }
.rx-mult { padding: 2px 9px; border-radius: 10px; font-weight: 800; background: rgb(var(--gold-rgb) / .14); color: var(--gold); border: 1px solid rgb(var(--gold-rgb) / .4); }
.rx-boss { color: var(--gold); }
.rx-boss .ic, .rx-best .ic { color: var(--gold); }
.rx-best { color: var(--gold); }

/* ---------------------------------------------------------------- achievements */
.ach-count { margin-left: auto; }
.ach-body { padding-top: 6px; }
.ach-hero { max-width: 500px; margin: 0 auto 6px; padding: 16px 18px; display: flex; align-items: center; gap: 18px; }
.ach-hero p { margin: 0; color: var(--ink-dim); font-size: 14.5px; line-height: 1.4; }
.ach-ring {
  --p: 0; flex: none; width: 84px; height: 84px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0);
}
.ach-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #0b1128; }
.ach-ring b, .ach-ring small { position: relative; }
.ach-ring b { font-size: 26px; font-weight: 850; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.ach-ring small { font-size: 11px; color: var(--ink-dim); margin-top: 2px; }
.ach-group { max-width: 500px; margin: 14px auto 0; }
.ach-group h3 { margin: 0 4px 8px; font-size: 12.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.ach-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ach { display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 11px; border-radius: 18px; background: linear-gradient(180deg, rgba(16, 24, 56, .74), rgba(8, 12, 30, .82)); border: 1px solid var(--line); }
.ach-badge { flex: none; width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.ach-badge .ic { width: 22px; height: 22px; }
.ach.is-earned { border-color: rgb(var(--gold-rgb) / .42); background: linear-gradient(180deg, rgba(48, 38, 16, .68), rgba(10, 14, 32, .86)); }
.ach.is-earned .ach-badge { color: var(--gold); background: rgb(var(--gold-rgb) / .14); border-color: rgb(var(--gold-rgb) / .5); box-shadow: 0 0 22px -6px rgb(var(--gold-rgb) / .8); }
.ach-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ach-name { font-size: 15.5px; font-weight: 740; line-height: 1.2; }
.ach:not(.is-earned) .ach-name { color: var(--ink-dim); }
.ach-desc { font-size: 12.5px; color: var(--ink-faint); line-height: 1.35; }
.ach-bar { margin-top: 5px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ach-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, rgb(var(--ch-rgb) / .7), rgb(var(--ch-rgb))); }
.ach-side { flex: none; text-align: right; }
.ach-side small { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ach.is-earned .ach-side small { color: var(--gold); }
.toast-ach { border-color: rgb(var(--gold-rgb) / .7); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .9), 0 0 26px -6px rgb(var(--gold-rgb) / .55); }
.toast-ach .toast-text::before { content: '\2605'; margin-right: 8px; color: var(--gold); }

/* ---------------------------------------------------------------- onboarding coach (levels 1-3) */
.coach {
  position: fixed; left: 50%; top: calc(var(--hud-bar) + 8px); z-index: 22; display: none; align-items: center; gap: 10px; width: max-content; max-width: min(92vw, 440px);
  padding: 11px 16px 11px 11px; border-radius: 18px; cursor: pointer; pointer-events: auto;
  background: linear-gradient(180deg, rgba(34, 48, 102, .97), rgba(14, 22, 54, .98)); border: 1px solid rgb(var(--ch-rgb) / .6);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .9), 0 0 30px -8px rgb(var(--ch-rgb) / .6);
  opacity: 0; transform: translate3d(-50%, -10px, 0) scale(.97); transition: opacity .25s ease, transform .4s var(--ease-back);
}
.coach.is-shown { display: flex; }
.coach.is-open { opacity: 1; transform: translate3d(-50%, 0, 0); }
.coach-ic { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: rgb(var(--ch-rgb) / .18); color: rgb(var(--ch-rgb)); }
.coach-ic .ic { width: 20px; height: 20px; }
.coach-text { font-size: 14.5px; font-weight: 600; line-height: 1.32; }
body:not([data-screen="play"]) .coach { display: none; }

@media (max-width: 359px) {
  .inf-mid { flex-direction: column; align-items: stretch; }
  .inf-ring { align-self: center; }
  .il-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dly-streak { grid-template-columns: auto 1fr; }
  .dly-freezes { grid-column: 1 / -1; grid-row: 2; }
  .dly-fz-note { grid-row: 3; }
}
@media (min-width: 700px) {
  .dly, .inf { width: min(100%, 560px); }
  .dly-st { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen-daily.is-active .dly > .card, .screen-infinite.is-active .inf > .card { animation: none; }
}
html[data-motion="reduced"] .screen-daily.is-active .dly > .card, html[data-motion="reduced"] .screen-infinite.is-active .inf > .card { animation: none; }

/* wide screens (desktop, tablet landscape): two columns instead of a long single one */
@media (min-width: 900px) and (min-height: 560px) {
  .dly { width: min(100%, 1000px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "hero cal" "streak cal"; grid-template-rows: min-content 1fr; align-content: start; align-items: start; gap: 16px; }
  .dly-hero { grid-area: hero; }
  .dly-streak { grid-area: streak; }
  .dly-cal { grid-area: cal; }
  .inf { width: min(100%, 1000px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: min-content; align-content: start; align-items: start; gap: 16px; }
  .inf > :first-child { grid-column: 1; grid-row: 1 / span 3; }
  .inf > :not(:first-child) { grid-column: 2; }
  .ach-group, .ach-hero { max-width: 760px; }
}
