/* Home — "first light on the fairway".
   Planes (far → near): hero video · sheet (content). The video drifts on
   tilt/scroll; text never moves.                                           */

.screen.home { padding: 0 0 calc(var(--tab-h) + var(--sab) + 28px); max-width: none; animation: none; }

.hero {
  position: sticky; top: 0; z-index: 0;
  height: clamp(300px, 38svh, 380px);
  overflow: hidden; background: #2d4a30;
  isolation: isolate;
}
/* The hero serves the state: when the round, the recap or today's block is the screen, the picture steps back to a strip. */
.home[data-state="round"], .home[data-state="finished"] { --hero-h: clamp(200px, 24svh, 240px); }
.home[data-state="round"] .hero, .home[data-state="finished"] .hero { height: var(--hero-h); }
.hero .photo {
  position: absolute; inset: -8% -6% -14% -6%;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.06);
  will-change: transform;
}
/* Framed on the top of the tower. The video's sky is plain blue, so it sits a little low (the gap above is the same
   sky) and the golfer on top stands clear of the logo chip. */
.hero .photo:has(.hero-vid) { background: linear-gradient(90deg, #4A80C2, #4B81BF 55%, #3770B4); }
.hero-vid { width: 100%; height: calc(100% - 44px); margin-top: 44px; object-fit: cover; object-position: 50% 0; display: block;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 48px); mask-image: linear-gradient(180deg, transparent, #000 48px); }
.hero .bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--sat) + 12px) 16px 0;
}
.chip-glass {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: rgba(251, 253, 249, 0.82); color: #10241a;
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  font-weight: 600; font-size: 14px; text-decoration: none; border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
/* The logo sits straight on the picture, no chip behind it (Luke, 2026-10-10); its own shadows keep it readable. */
.chip-brand { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 0 0 6px; }
.chip-brand .brand { font-size: 22px; }   /* was 28px: the top logo read too big (Luke, 2026-11-17) */
.chip-brand .brand .brand-planet { width: 1.5em; height: 1.5em; }   /* planet 1.75em -> 1.5em */
.chip-brand .brand .brand-dot { width: .22em; height: .22em; }   /* blue ball after the word .26em -> .22em */
.chip-glass.round { width: 44px; padding: 0; justify-content: center; min-height: 44px; }
.chip-glass .ico { width: 20px; height: 20px; }


.sheet-home {
  position: relative; z-index: 1; margin-top: -26px;
  background: linear-gradient(rgba(6,36,14,.42), rgba(6,36,14,.42)), url(/img/grass.jpg) center top / 460px auto; border-radius: 26px 26px 0 0;   /* a little see-through: the video shows faintly behind (Luke, 2026-10-10) */
  padding: 22px 16px 8px; min-height: 60svh;
  box-shadow: 0 -10px 30px rgba(8, 28, 16, .18);
}
.sheet-home .inner { max-width: 560px; margin: 0 auto; }

.idx { margin-top: 14px; }
.idx .label { margin-bottom: 2px; }
.idx .big3d {
  font-family: var(--serif); font-weight: 400; font-size: clamp(104px, 31vw, 148px); line-height: .92;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; font-variation-settings: "opsz" 144, "SOFT" 0;
  color: #0F2A1C;
  /* Thinner and plain: weight 600 with a green edge read as thick and blurred on a phone (Luke, 2026-10-10: "make it
     a little bit thinner, it looks very blurred"). No edge, no shadow. */
  text-shadow: none;
  margin-left: -2px;
}
.idx .big3d.none { font-size: 56px; color: var(--quiet); text-shadow: none; letter-spacing: -.02em; }
.idx .meta { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.idx .meta .num { font-size: 20px; }
.spark2 { width: 100%; height: 72px; margin-top: 6px; overflow: visible; }
.spark2 .line { fill: none; stroke: var(--brass); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1100ms .25s cubic-bezier(.2, .7, .2, 1) forwards; }
.spark2 .area { fill: url(#sparkfill); opacity: 0; animation: fadein 600ms 1s ease forwards; }
.spark2 .dot { fill: var(--ink); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop 400ms 1.2s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }

.rise { opacity: 0; transform: translateY(14px); animation: rise 520ms cubic-bezier(.2, .7, .2, 1) forwards; }
.rise.d1 { animation-delay: 120ms; } .rise.d2 { animation-delay: 240ms; } .rise.d3 { animation-delay: 360ms; } .rise.d4 { animation-delay: 480ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

.quick-home { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.qbtn { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.15; transition: transform 100ms ease-out; }
.qbtn:active { transform: scale(.98); }
.qi { flex: none; width: 36px; height: 36px; display: grid; place-items: center; }
.qi .gly { width: 36px; height: 36px; display: block; overflow: visible; }
/* Picture tile: the photo is the button. No text on the photo; the caption sits below it. */
.tile { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(8, 28, 16, .06), 0 8px 20px rgba(8, 28, 16, .07); transition: transform 120ms ease-out, box-shadow 160ms ease-out; -webkit-tap-highlight-color: transparent; }
.tile:active { transform: scale(.98); box-shadow: 0 1px 2px rgba(8, 28, 16, .08); }
.tile .ph { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 14px; min-height: 64px; }
.tile .cap .t { display: block; font-weight: 650; font-size: 16px; line-height: 1.2; }
.tile .cap .s { display: block; font-size: 13px; color: var(--quiet); margin-top: 2px; }
.tile-round .ph { aspect-ratio: 1.55 / 1; }   /* taller than a strip so the planet reads as a planet */
.tile-round .ph img { object-position: 60% 38%; }
.tile-round .cap { background: var(--ink); color: #fff; min-height: 56px; padding: 10px 14px; }
.tile-round .cap .t { font-size: 17px; }
.tile-round .cap .s { color: rgba(255, 255, 255, .72); }
.tile-round .cap .chev { color: rgba(255, 255, 255, .8); }

@media (prefers-reduced-motion: reduce) {
  .hero .photo { transform: scale(1.06) !important; }
  .spark2 .line { animation: none; stroke-dashoffset: 0; }
  .spark2 .area, .spark2 .dot, .rise { animation: none; opacity: 1; transform: none; }
}

/* Profile picture: shown in the top-right circle once chosen (the picker lives on Me). */
.chip-glass.has-photo { padding: 0; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 2px 8px rgba(0, 0, 0, .25); }
.chip-glass.has-photo .avatar { width: 100%; height: 100%; object-fit: cover; display: block; }

/* "Start a round" tile: the looping fairway fills the strip. */
.tile-vid { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }

/* Cards: the friends invite and the add-to-home-screen helper (on Me). */
/* Scoped to the Home cards: the scorecard TABLE elsewhere is also class "card" and must not turn into a flex box. */
section.card, a.card { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(8, 28, 16, .05), 0 8px 20px rgba(8, 28, 16, .05); }
.card-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.card-ico .ico { width: 22px; height: 22px; }
.card-body { min-width: 0; flex: 1; }
.card-body .label { margin-bottom: 2px; }
.card-line { font-size: 16px; line-height: 1.35; margin: 0; }
.card-line .num { font-size: 22px; letter-spacing: -.01em; }
section.card .hint, a.card .hint { margin: 4px 0 0; }
a.card.invite { align-items: center; }
a.card.invite .chev { color: var(--quiet); flex: none; }
.ts-part.target .card-ico { background: #E3F0E3; color: #1D5A32; }
.ts-part.today .card-ico { background: #E4EEF9; color: #1F5EFF; }
.ts-part.today .card-ico .ico { transform: rotate(var(--dir, 0deg)); transition: transform 600ms cubic-bezier(.16, 1, .3, 1); }
.ts-part.today.tone-tough .card-ico, .ts-part.today.tone-rough .card-ico { background: #FBEBD9; color: #A4510E; }

/* The Today block: target + weather as one strip, joined to the Start a round picture. One block, one edge. */
.today-block { margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 2px rgba(8, 28, 16, .06), 0 8px 20px rgba(8, 28, 16, .07); }
.today-strip[hidden] { display: none; }
.ts-part { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.today-strip > .ts-part + #today:not(:empty) { border-top: 1px solid var(--line); }
.today-block .tile-round { border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
.today-strip[hidden] + .tile-round { border-top: 0; }
.home[data-state="soon"] .tile-round .ph { aspect-ratio: 1.85 / 1; }   /* today's block is the screen: keep it all above the fold */
.why { margin: 10px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink-2, var(--ink)); }

/* Round in progress: a "Continue round" section under the greeting (Luke, 2026-10-13; it used to fill the whole screen). */
.resume-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 14px 14px 16px; border-radius: 20px;
  background: #FFFFFF; color: #10241A; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 14px 30px rgba(0, 0, 0, .35); }
.resume-card .rc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.resume-card .rc-k { font: 700 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #1F9A55; }
.resume-card .rc-t b { font: 400 24px/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-card #rsscore { font: 500 13px/1.3 var(--sans); color: rgba(16, 36, 26, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-card .rc-b { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.resume-card .rc-go { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #1F9A55; color: #fff; font: 650 15px var(--sans);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 50, 20, .3); }
.resume-card .rc-x { min-height: 32px; padding: 0 10px; border: 0; background: none; color: rgba(16, 36, 26, .6); font: 600 13px var(--sans); }
.resume-card.rc-out { transition: opacity 200ms ease-in, transform 200ms ease-in; opacity: 0; transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .resume-card.rc-out { transition: none; } }
/* on the mown-grass picture (Luke, 2026-10-13: "the cut grass we use… as the background"), under a green wash so the words read */
.resume-card { background: linear-gradient(90deg, rgba(6, 18, 30, .62), rgba(6, 18, 30, .34)), url(/img/hna-stream.webp) center / cover, #3B4A55; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 30px rgba(0, 0, 0, .4); }
@media (min-resolution: 2dppx) { .resume-card { background: linear-gradient(90deg, rgba(6, 18, 30, .62), rgba(6, 18, 30, .34)), url(/img/hna-stream.webp) center / cover, #3B4A55; } }
.resume-card .rc-k { color: rgba(255, 255, 255, .82); }
.resume-card .rc-t b { text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.resume-card #rsscore { color: rgba(255, 255, 255, .85); }
.resume-card .rc-go { background: #FFFFFF; color: #10241A; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.resume-card .rc-x { color: rgba(255, 255, 255, .85); }
.demo-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 0; padding: 4px 4px 4px 12px; border-radius: 12px; background: var(--paper); font-size: 13px; color: var(--quiet); }
.demo-note .btn { flex: none; }

/* Last round card: the course, the score, one dot per hole, the best hole, share. */
.lastcard { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 1px 2px rgba(8, 28, 16, .05), 0 8px 20px rgba(8, 28, 16, .05); overflow: hidden; }
.lc-main { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; color: var(--ink); text-decoration: none; }
.lc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lc-text .t { font-weight: 650; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-text .s, .lc-score .s { font-size: 13px; color: var(--quiet); }
.lc-score { display: flex; flex-direction: column; align-items: flex-end; }
.lc-score .num { font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.lc-strip { display: flex; gap: 4px; padding: 0 16px; min-height: 12px; }
.lc-dot { flex: 1; max-width: 22px; height: 12px; border-radius: 6px; background: var(--line); }
.lc-dot.eagle { background: #E0B23A; } .lc-dot.birdie { background: #3E9A55; } .lc-dot.par { background: #BFD0BE; }
.lc-dot.bogey { background: #E7A08A; } .lc-dot.none { background: var(--line); opacity: .5; }
.lc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 12px 16px; }
.lc-foot .btn { gap: 6px; }
.lc-foot .btn .ico { width: 16px; height: 16px; }

/* Friends feed. */
.avatar-dot { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 18px; }

/* Add to home screen helper. */
.a2hs-steps { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.45; color: var(--ink-2, var(--ink)); }
.a2hs-steps li { margin: 2px 0; }
.a2hs-ico { display: inline-grid; vertical-align: -5px; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line-2, var(--line)); border-radius: 6px; }
.a2hs-ico .ico { width: 14px; height: 14px; }
.a2hs-btns { display: flex; gap: 6px; margin-top: 10px; }

/* ── The arrival (once per launch; home.js adds .landing) ──────────────────────────────────────────────────────
   The tower video is already playing. The white sheet lifts up over it, like the course rising out of the ground,
   the logo comes in on the picture, the Index sharpens into place as it counts, and the cards follow. About a
   second in all; everything is visible by default and the end state is the normal layout. */
@keyframes land-sheet { from { transform: translateY(70svh); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes land-floor { to { opacity: 0; } }
@keyframes land-bar { from { opacity: 0; transform: translateY(-10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes land-settle { from { transform: scale(1.09); } to { transform: none; } }
@keyframes land-num { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
/* The first launch shows the whole tower video first (Luke, 2026-10-10: "see more of it, especially at the beginning"):
   the picture is the full screen and the sheet waits ~2.3 s before it lifts over it. */
/* Intro: the video fills the whole screen with nothing over it; the sheet then slides up and covers all but the hero strip. */
.landing .hero { overflow: visible; }
.landing .hero .photo { inset: 0 -6% auto -6%; height: 100svh; }
.landing::before { content: ''; position: fixed; inset: 0; z-index: 0; background: #10241A; animation: land-floor 500ms ease-out 2300ms both; }   /* no white while the video plays: the floor is dark until the sheet arrives */
.landing .sheet-home { animation: land-sheet 900ms cubic-bezier(.16, 1, .3, 1) 2300ms both; }
.landing .hero .bar { animation: land-bar 700ms cubic-bezier(.16, 1, .3, 1) 150ms both; }
.landing .hero-vid { transform-origin: 50% 12%; animation: land-settle 2400ms cubic-bezier(.16, 1, .3, 1) both; }
.landing .idx .big3d { animation: land-num 900ms cubic-bezier(.16, 1, .3, 1) 2700ms both; }
.landing .rise { animation-delay: 2600ms; }
.landing .rise.d1 { animation-delay: 2700ms; } .landing .rise.d2 { animation-delay: 2800ms; }
.landing .rise.d3 { animation-delay: 2900ms; } .landing .rise.d4 { animation-delay: 3000ms; }
@media (prefers-reduced-motion: reduce) {
  .landing::before { display: none; }
  .landing .sheet-home, .landing .hero .bar, .landing .hero-vid, .landing .idx .big3d { animation: none; }
}

/* Today icons: quiet, minimal drawn objects in the brand greens (Luke, 2026-10-10: "less loud, more sophisticated"). */
.card-ico.g3 { width: 40px; height: 40px; background: none !important; border-radius: 0; }
.card-ico.g3 .gly { width: 40px; height: 40px; overflow: visible; }

/* Grass sheet (preview): everything that sits straight on the grass is white (with a soft shadow); the white cards keep dark text. */
.sheet-home > .inner > .small, .sheet-home .idx .label, .sheet-home .idx .big3d, .sheet-home .idx .meta .small, .sheet-home .idx .meta .num,
.sheet-home .idx .why, .sheet-home .section > h2 { color: #fff; text-shadow: 0 1px 3px rgba(0, 30, 10, .5); }
.sheet-home .idx .big3d { text-shadow: 0 2px 6px rgba(0, 30, 10, .45); }
.sheet-home .idx .trend { color: #fff; background: rgba(6, 36, 14, .6); padding: 2px 10px; border-radius: 999px; text-shadow: none; }
.sheet-home .spark2 .line { stroke: #fff; } .sheet-home .spark2 .dot { fill: #fff; } .sheet-home .spark2 .area { opacity: 0; }
.sheet-home > .inner > .small, .sheet-home .idx .label { font-weight: 650; }


/* "Just finished": a small yellow dot, a bit of colour that says this one is fresh. */
.jf-dot { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; background: #E0B23A; vertical-align: 0; box-shadow: 0 0 0 3px rgba(224, 178, 58, .28); }

/* Link to HNA: a feature, not a list row. Solid white on the grass, big type, a gold edge. */
.hna-feature { position: relative; display: grid; gap: 4px; padding: 20px 56px 20px 20px; border-radius: 20px; background: #fff; color: #0A1F14; text-decoration: none;
  border-left: 6px solid var(--brass); box-shadow: 0 6px 22px rgba(4, 28, 12, .35); -webkit-tap-highlight-color: transparent; }
.hna-feature:active { transform: scale(.99); }
.hf-k { font-size: 13px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: #46584D; }
.hf-t { font-family: var(--serif); font-size: 30px; line-height: 1.05; font-variation-settings: "opsz" 144, "SOFT" 0; }
.hf-s { font-size: 15px; line-height: 1.4; color: #233629; }
.hf-go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #0A1F14; color: #fff; }
.hf-go .ico { width: 18px; height: 18px; }
.sheet-home .section:has(.hna-feature) > h2 { display: none; }

/* No sideways wobble: the full-screen intro picture is wider than the screen (parallax room), so clip it left and right only.
   Up and down stays open so the video is still seen full height behind the sheet. */
.screen.home { overflow-x: clip; }
.landing .hero { overflow-x: clip; overflow-y: visible; }

/* The Grass Bot lives in the top-right corner of the grass sheet, level with the greeting (Luke, 2026-10-10). */
.sheet-home .inner { position: relative; }
.sheet-home .bot-corner { position: absolute; top: -10px; right: 0; z-index: 2; }


/* The bottom of Home: one grass-framed panel (last round, three small tools, friends), then the Link to HNA banner on its own. */
.yr { display: grid; gap: 12px; margin-top: 18px; padding: 14px 12px 12px; border-radius: 22px; background: rgba(6, 36, 14, .34); border: 1px solid rgba(255, 255, 255, .2); }
.yr .section { margin: 0; }
.yr h2 { margin: 0 0 8px 4px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(0, 30, 10, .5); }
.yr .yr-last h2 .jf-dot { margin-right: 8px; }
.tools-home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tool { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 92px; padding: 10px 6px; border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none;
  font-weight: 650; font-size: 14px; line-height: 1.15; text-align: center; box-shadow: 0 1px 2px rgba(8, 28, 16, .1), 0 6px 14px rgba(4, 28, 12, .22); transition: transform 100ms ease-out; -webkit-tap-highlight-color: transparent; }
.tool:active { transform: scale(.97); }
.tool .qi { width: 36px; height: 36px; display: grid; place-items: center; }
.tool .qi .gly { width: 36px; height: 36px; display: block; overflow: visible; }
.tool .qi-friends { border-radius: 50%; background: #E3F0E3; color: #1D5A32; }
.tool .qi-friends .ico { width: 22px; height: 22px; }
.yr-friends .list { background: transparent; }
.yr-invite { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 14px; background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: 650; font-size: 15px; }
.yr-invite .ico { width: 20px; height: 20px; flex: none; } .yr-invite span { flex: 1; } .yr-invite .chev { opacity: .8; }
.hna-feature { margin-top: 6px; }

/* The grass runs to the very bottom of the page (the hero video used to show in the gap under it). */
.screen.home { padding-bottom: 0; }
.sheet-home { padding-bottom: calc(var(--tab-h) + var(--sab) + 28px); }


/* Target, Start a round and Conditions are three separate things (Luke, 2026-10-10). */
.target-line { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 14px; color: #fff; font-size: 16px; line-height: 1.35; text-shadow: 0 1px 3px rgba(0, 30, 10, .5); }
.target-line .tl-ico { flex: none; width: 34px; height: 34px; }
.target-line .tl-ico .gly { width: 34px; height: 34px; overflow: visible; }
.target-line .num { font-size: 22px; letter-spacing: -.01em; }
.target-line .tl-sub { display: block; font-size: 14px; opacity: .9; }
.start-tile { display: flex; margin-top: 16px; }
.cond { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 18px; background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgba(8, 28, 16, .06), 0 8px 20px rgba(4, 28, 12, .22); }
.cond-ico { flex: none; width: 44px; height: 44px; }
.cond-ico .gly { width: 44px; height: 44px; overflow: visible; }
.cond-body { min-width: 0; flex: 1; }
.cond-line { margin: 0; font-size: 16px; } .cond-line .num { font-size: 24px; letter-spacing: -.01em; }
.cond .hint { margin: 2px 0 0; }

/* The target gets a thin white frame, and the "differential" note under it room to breathe. */
.target-line { padding: 10px 14px 10px 10px; border: 1.5px solid rgba(255, 255, 255, .95); border-radius: 16px; margin: 14px 0 22px; align-items: center; }


/* ── Polish round (Luke, 2026-10-10): section backgrounds, a stronger Index, a real Start button, one type scale, depth, a video that fades into the grass ── */

/* 1. Each section sits on its own ground. The Index keeps the deep grass; the rest are lighter so they read as separate things. */
.cond { background: linear-gradient(160deg, #D9EBFB 0%, #F2F8FE 70%); }
.lastcard { background: repeating-linear-gradient(90deg, #E7F2DC 0 26px, #DDEBD0 26px 52px); }
.lastcard .lc-foot .btn { background: rgba(255, 255, 255, .88); }

/* 2. The Index is the hero: bigger, with a soft glow, and your best ever as a dotted line across the chart. */
.idx .big3d { font-size: clamp(116px, 35vw, 164px); text-shadow: 0 0 28px rgba(190, 255, 160, .35), 0 2px 6px rgba(0, 30, 10, .45); }
.spark2 .best { stroke: rgba(255, 255, 255, .75); stroke-width: 1.4; stroke-dasharray: 2 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* 3. Start a round gets a real button on the picture, with a ring that pulses a few times and then stops. */
.start-pill { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  background: #fff; color: #0A1F14; font: 700 16px/1 var(--sans, system-ui); box-shadow: 0 6px 16px rgba(4, 28, 12, .4); animation: start-ring 1.8s ease-out 3 1.2s; }
.start-pill .ico { width: 18px; height: 18px; }
@keyframes start-ring { 0% { box-shadow: 0 6px 16px rgba(4, 28, 12, .4), 0 0 0 0 rgba(255, 255, 255, .7); } 100% { box-shadow: 0 6px 16px rgba(4, 28, 12, .4), 0 0 0 16px rgba(255, 255, 255, 0); } }

/* 4. One type scale on Home: 13 for labels, 14 for small print, 16 for reading. */
.sheet-home .label, .sheet-home .hf-k, .yr h2, .sheet-home .section > h2 { font-size: 13px; }
.sheet-home .hint, .sheet-home .tl-sub, .sheet-home .tile .cap .s, .sheet-home .lc-text .s, .sheet-home .lc-score .s, .sheet-home .demo-note, .sheet-home .qt, .tool { font-size: 14px; }
.sheet-home .idx .why, .sheet-home .target-line, .sheet-home .cond-line, .sheet-home .hf-s { font-size: 16px; }

/* 5. A little depth: stronger shadows and a lit top edge on the white cards. */
.cond, .lastcard, .tool, .hna-feature, .tile { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 2px 3px rgba(4, 28, 12, .14), 0 12px 26px rgba(4, 28, 12, .3); }

/* 6. The tower video fades into the grass as you scroll. */
.hero .photo { opacity: var(--fade, 1); }
@media (prefers-reduced-motion: reduce) { .start-pill { animation: none; } }


/* Start a round: a still photo, not a video. */
.tile-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }

/* The Index comes first: once the intro has played, the picture settles to a slim strip (logo + profile) and the sheet starts right under it. */
.home[data-state="quiet"], .home[data-state="soon"] { --hero-h: clamp(96px, 12svh, 112px); }
.home[data-state="quiet"] .hero, .home[data-state="soon"] .hero { height: var(--hero-h); }
.home .sheet-home { padding-top: 12px; }
.home .sheet-home .inner > .small[data-block="greeting"] { margin-bottom: -4px; }
/* after Not now: the same card, down in Your round above the last round, no Not now */
.resume-card.rc-low { margin: 0 0 14px; }

/* The language button (js/lang-chip.js): beside the profile picture on Home, floating top right on Welcome. */
.bar-end { display: flex; align-items: flex-start; gap: 8px; }
.lang-wrap { position: relative; }
.lang-chip { min-height: 44px; padding: 0 14px 0 12px; gap: 7px; font-weight: 700; font-size: 15px; letter-spacing: .02em; cursor: pointer; }
.lang-chip .ico { width: 18px; height: 18px; }
.lang-menu { --lang-ink: #FFFFFF; --lang-ink-shadow: 0 1px 2px rgba(8, 40, 80, .55);
  position: fixed; width: 196px; z-index: 1000; padding: 7px; border-radius: 22px; display: flex; flex-direction: column; gap: 2px; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .40), rgba(185, 215, 248, .26)); border: 1px solid rgba(255, 255, 255, .7); color: var(--lang-ink); text-shadow: var(--lang-ink-shadow);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 3px rgba(255, 255, 255, .2), 0 14px 34px rgba(10, 40, 80, .32);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); }
.lang-menu::before { content: ""; position: absolute; z-index: -1; left: 6px; right: 6px; top: 3px; height: 22%; border-radius: 22px 22px 60% 60% / 100% 100% 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06)); pointer-events: none; }   /* the same gloss band as the button */
.lang-menu.ink-dark { --lang-ink: #0B1F14; --lang-ink-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.lang-menu[hidden] { display: none; }
.lang-opt { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 15px;
  background: none; color: inherit; text-shadow: inherit; font: 700 16px/1 var(--sans, system-ui); text-align: left; cursor: pointer; }
.lang-opt.on { background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .24)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.lang-opt:active { background: rgba(255, 255, 255, .3); }
.lang-opt:focus-visible, .lang-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lang-abs { position: absolute; top: calc(var(--sat, 0px) + 12px); right: 16px; z-index: 5; }

/* The language button (Luke, 2026-11-04): plain and still, a pure white pill with black writing and a great many tiny golf-ball dimples pressed into the white
   (4px dimples drawn here: white with just a hint of shade inside each rim, about half the contrast of the first try). The flags, clouds and weather that moved on it are gone: they distracted. */
.chip-glass.lang-chip { min-height: 36px; height: 36px; padding: 0 12px 0 10px; gap: 5px; margin: 0 4px 0 0; cursor: pointer; border: 0; color: #0A0A0A; font-weight: 800; font-size: 12px; letter-spacing: .04em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='6.93' viewBox='0 0 4 6.93'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.42' cy='.38' r='.68'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.55' stop-color='%23f4f5f8'/%3E%3Cstop offset='1' stop-color='%23cbd1d9'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='4' height='6.93' fill='%23fff'/%3E%3Cg fill='url(%23g)'%3E%3Ccircle cx='2' cy='1.73' r='1.75'/%3E%3Ccircle cx='0' cy='5.2' r='1.75'/%3E%3Ccircle cx='4' cy='5.2' r='1.75'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 4px auto repeat, #FFFFFF; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(0, 25, 10, .3); }
.lang-chip .ico { width: 15px; height: 15px; stroke-width: 2.3; }
.lang-chip:active { transform: translateY(1px); }

.lang-menu { border-radius: 14px; background: linear-gradient(180deg, rgba(8, 28, 48, .24), rgba(8, 28, 48, .16)); border: 0; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), inset 0 0 0 3px rgba(190, 225, 240, .18), inset 0 2px 3px rgba(255, 255, 255, .38), inset 0 -2px 3px rgba(150, 205, 230, .3), 0 14px 30px rgba(10, 40, 80, .3); }
.lang-menu::before { left: 0; right: 0; top: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, .10) 62%, rgba(255, 255, 255, .03) 100%); }   /* a soft sheen only: no hard line through the list */
.lang-opt { border-radius: 8px; }
.lang-opt.on { background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
