/* Home — "the clubhouse at dusk" (docs/HOME-COURSES-REDESIGN.md). Loaded last. One deep pine ground, the grass photo once (behind the Index),
   dark frosted cards with a light rim, two cream raised cards (Start a round, Link to HNA), brass as the only accent. */
.screen.home { background: #0F2A1C; }
.home .sheet-home { background: linear-gradient(rgba(8, 28, 18, .34), rgba(8, 28, 18, .2)),   /* shade, so the white writing stays readable over the lit terraces */
    var(--ground-lines, none) center top / 124% auto repeat-y, var(--ground-terr, none) center top / 124% auto repeat-y,   /* green contours behind everything below the Index (Luke, 2026-10-20) */
    linear-gradient(#10281B, #13331F 40%, #0F2A1C); box-shadow: 0 -10px 30px rgba(0, 0, 0, .35); padding-bottom: calc(var(--tab-h) + var(--sab) + 28px); }
.home .sheet-home .inner { --brass2: #C9A14A; }
.home .sheet-home .section > h2, .home .yr h2 { color: rgba(255, 255, 255, .62); font-size: 13px; letter-spacing: .1em; text-shadow: none; }

/* The day: the greeting and one sentence. */
.day { position: relative; margin-top: 4px; padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.day-hi { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; color: #fff; font-variation-settings: "opsz" 144; text-shadow: none; }
.day-line { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .78); min-height: 1.4em; }

/* The Index: the one place the grass photo appears. It fades into the ground at the top and bottom. */
.idx-band { position: relative; margin: 14px -16px 0; padding: 40px 16px 34px; background: linear-gradient(rgba(6, 36, 14, .5), rgba(6, 36, 14, .5)), url(/img/grass.jpg) center / 460px auto;
  -webkit-mask-image: linear-gradient(transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.idx-band .big3d::after { content: ''; display: block; width: 64px; height: 2px; margin-top: 8px; background: var(--brass2, #C9A14A); }
.idx-notes { margin-top: 8px; }
.idx-notes .why { margin: 0 0 10px; color: rgba(255, 255, 255, .72); font-size: 15px; text-shadow: none; }
.idx-notes .demo-note { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .78); }
.idx-notes .demo-note .btn { color: #fff; }

/* Start a round: the first raised card (cream, brass edge). Luke's golf-ball planet stands on the right and rises over the card's top edge. */
.home .start-tile { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; min-height: 148px; margin-top: 18px; padding: 14px 12px 20px 20px; overflow: visible;
  border: 0; border-left: 4px solid var(--brass2, #C9A14A); border-radius: 18px; background: #F4EFE4; color: #10241A; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.home .start-copy { position: relative; z-index: 1; display: grid; gap: 4px; justify-items: start; align-content: center; }
.home .start-copy .t { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.1; font-variation-settings: "opsz" 144; color: #10241A; }
.home .start-copy .s { font-size: 14px; color: #46584D; line-height: 1.35; max-width: 17ch; }
.home .start-pill { position: static; flex: none; margin-top: 10px; background: #10281B; color: #fff; box-shadow: none; animation: none; min-height: 44px; }
.home .start-art { position: relative; flex: none; align-self: center; width: 120px; height: 120px; margin: 0 10px 0 0; }
.home .start-art::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 86px; height: 16px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(0, 0, 0, .35), transparent 70%); z-index: 0; }
.home .start-ball { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
@media (min-width: 720px) { .home .start-art { width: 160px; height: 160px; } }

/* Last round, tools, friends: frosted, then quiet. */
.home .yr { background: none; border: 0; padding: 0; margin-top: 22px; gap: 16px; }
.home .lastcard { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); color: #fff; }
.home .lc-main, .home .lc-text .t, .home .lc-score .num { color: #fff; }
.home .lc-text .s, .home .lc-score .s, .home .lc-foot .small { color: rgba(255, 255, 255, .7); }
.home .lc-dot { background: rgba(255, 255, 255, .22); } .home .lc-dot.birdie { background: #4FBF6E; } .home .lc-dot.par { background: rgba(255, 255, 255, .5); }
.home .lc-foot .btn { background: transparent; border: 0; box-shadow: none; color: var(--brass2, #C9A14A); font-weight: 650; }
.home .tools-home { gap: 8px; }
.home .tool { background: none; box-shadow: none; color: #fff; min-height: 0; gap: 8px; padding: 4px 0; }
.home .tool .qi { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.home .tool .qi .gly { width: 30px; height: 30px; } .home .tool .qi-friends { background: rgba(255, 255, 255, .1); color: #fff; }
.home .tool .qt { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.home .yr-friends .item { background: none; border-top: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.home .yr-friends .item .s, .home .yr-friends .quiet { color: rgba(255, 255, 255, .65); }
.home .yr-invite { background: none; border-top: 1px solid rgba(255, 255, 255, .14); border-radius: 0; color: rgba(255, 255, 255, .85); }

/* Link to HNA: the second raised card. */
.home .hna-feature { background: #F4EFE4; border-left-color: var(--brass2, #C9A14A); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.home .hna-feature .hf-go { background: #10281B; }

/* Room for the video: once the intro has played the picture settles to about a third of the screen, with the sheet starting below it
   (Luke, 2026-10-11: "quite a lot of room to see the video… don't pull it up too high, we scroll down anyway"). */
.home[data-state="quiet"], .home[data-state="soon"] { --hero-h: clamp(250px, 34svh, 320px); }
.home[data-state="quiet"] .hero, .home[data-state="soon"] .hero { height: var(--hero-h); }
.home .sheet-home { padding-top: 18px; }

/* The sky behind The day: a plate for the weather at the club, a wash for the hour, a reading gradient so the words always read. */
.day { overflow: hidden; isolation: isolate; }
.day > :not(.day-sky) { position: relative; z-index: 2; }
.day-sky { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms ease-out; animation: sky-drift 90s linear infinite alternate; }
.day-sky.on { opacity: 1; }
.day[data-sky]::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 26, 20, .10) 0%, rgba(5, 26, 20, .36) 45%, rgba(5, 26, 20, .60) 100%); }
/* Photos are dimmed per plate so white words keep 5:1 or better on every one (measured; docs/DUSK-ROLLOUT-PLAN.md §2a). */
.day[data-sky="clear"] .day-sky { filter: brightness(.9) saturate(1.25); }
.day[data-sky="partly"] .day-sky { filter: brightness(.76) saturate(1.25); }
.day[data-sky="windy"] .day-sky { filter: brightness(.88) saturate(1.2); }
.day[data-sky="overcast"] .day-sky { filter: brightness(.8); }
.day[data-sky="fog"] .day-sky { filter: brightness(.74); }
.day[data-sky="storm"] .day-sky { filter: brightness(.8); }
.day[data-sky="rain"] .day-sky { filter: brightness(1); }
.day[data-sky="night"] .day-sky { filter: saturate(1.1); }
.day[data-sky="drizzle"] .day-sky { filter: brightness(.82); }
.day[data-sky="showers"] .day-sky { filter: brightness(.72) saturate(1.1); }
.day[data-sky="snow"] .day-sky { filter: brightness(.74); }
.day[data-sky="hail"] .day-sky { filter: brightness(.82); }
/* With the picture brighter, a soft dark halo keeps the white words readable over bright cloud. */
.day[data-sky] .day-hi, .day[data-sky] .day-line { text-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 0 14px rgba(0, 0, 0, .45); }
.day[data-sky][data-hour="golden"]::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(255, 160, 70, .18), rgba(120, 40, 20, .18)); }
.day[data-sky][data-hour="night"]::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(4, 10, 20, .55); }
.day[data-sky^="night"][data-hour="night"]::after { background: transparent; }   /* the night photos are already night */
.day[data-sky] { background: #0F2A1C; }
/* The picture is 12% wider than the card and drifts at most 4%, so no edge ever shows (it used to leave a gap on the right). */
@keyframes sky-drift { from { transform: scale(1.12) translateX(2.5%); } to { transform: scale(1.12) translateX(-2.5%); } }
.day-sky { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .day-sky { animation: none; } }

/* The HNA mark, small, beside "Link to HNA" (demo only: config HNA_LOGO). */
.hf-t { display: flex; align-items: center; gap: 10px; }
.hf-mark { flex: none; width: 36px; height: 36px; object-fit: contain; display: block; }
.hna-title { display: inline-flex; align-items: center; gap: 8px; }
.hna-title .hf-mark { width: 34px; height: 34px; padding: 4px; border-radius: 50%; background: #fff; }

/* Link to HNA: the golfer on his floating fairway, full width, melting into the dark ground top and bottom. */
.hna-hero { margin: 4px calc(-1 * var(--gutter)) 14px; aspect-ratio: 4 / 3; max-height: 62svh; overflow: hidden; background: #2A3330;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); }
.hna-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* Last round: the whole course from above, behind the card, under a dark wash so the score and the hole dots stay readable. */
.home .lastcard { position: relative; overflow: hidden; isolation: isolate; }
.home .lastcard > :not(.lc-aerial) { position: relative; z-index: 2; }
.lc-aerial { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: 0; transition: opacity 400ms ease-out; background: #1B3A27; }
.lc-aerial.on { opacity: 1; }
.lc-aerial img { position: absolute; max-width: none; filter: saturate(1.1) brightness(.85); }
.lc-aerial::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 26, 20, .38), rgba(5, 26, 20, .66)); }
.home .lastcard .lc-text .t, .home .lastcard .lc-score .num, .home .lastcard .lc-text .s, .home .lastcard .lc-score .s, .home .lastcard .lc-foot .small { text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }

/* The Index chart is always there: with fewer than two points it shows a dotted guide and one line of words. */
.spark-empty .dot { animation: none; opacity: 1; }
.spark-note { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 3px rgba(0, 30, 10, .5); }

/* "Live": the weather is real and current. Small, top right of The day. */
.day > .day-live { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; min-height: 20px; padding: 0 8px 0 6px; border-radius: 999px;
  background: rgba(5, 26, 20, .55); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: 700 13px/1 var(--sans); letter-spacing: .02em; text-shadow: none; }
.day-live svg { width: 11px; height: 11px; display: block; color: #5DDB8A; }
.day:has(.day-live) .day-hi { padding-right: 58px; }
@media (max-width: 380px) { .day:has(.day-live) .day-hi { font-size: 24px; } }

/* The video keeps about a third of the screen above the sheet (Luke, 2026-10-11): quiet, soon and just-finished. */
.home[data-state="quiet"], .home[data-state="soon"], .home[data-state="finished"] { --hero-h: clamp(270px, 36svh, 380px); }
.home[data-state="quiet"] .hero, .home[data-state="soon"] .hero, .home[data-state="finished"] .hero { height: var(--hero-h); }

/* Link to HNA, a size smaller (Luke, 2026-10-11): tighter card, smaller title, logo and text. */
.home .hna-feature { gap: 2px; padding: 14px 50px 14px 16px; border-radius: 18px; }
.home .hna-feature .hf-k { font-size: 13px; }
.home .hna-feature .hf-t { font-size: 24px; gap: 8px; }
.home .hna-feature .hf-mark { width: 28px; height: 28px; }
.home .hna-feature .hf-s { font-size: 14px; }
.home .hna-feature .hf-go { width: 28px; height: 28px; right: 14px; }

/* Calculator on Home: a chalkboard of maths in the circle behind the drawn calculator (Luke, 2026-10-11). */
.home .tool .qi.qi-maths { background: url(/img/tool-maths-96.webp) center / cover; background-image: image-set(url(/img/tool-maths-96.webp) 1x, url(/img/tool-maths-192.webp) 2x);
  border-color: rgba(255, 255, 255, .28); overflow: hidden; }
.home .tool .qi.qi-maths .calc-photo { display: block; width: auto; height: 40px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); transform: rotate(-8deg); }
.home .tool .qi.qi-maths .calc-photo { height: 33px; }   /* about 18% smaller (Luke) */
/* Post a score: the scorecard picture the app shares, whole, as a tiny card. */
.home .tool .qi.qi-card .card-photo { display: block; width: auto; height: 36px; border-radius: 3px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .55)); transform: rotate(6deg); }

/* At night the reading wash is navy, not green, so the card reads as a night sky. */
.day[data-sky^="night"]::before { background: linear-gradient(180deg, rgba(3, 7, 20, .05) 0%, rgba(3, 7, 20, .35) 45%, rgba(3, 7, 20, .62) 100%); }
.day[data-sky^="night"] { background: #070B18; }

/* The weather like a phone's weather app: icon, temperature, the plain word. */
.day-now { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; vertical-align: -6px; }   /* the icon + temperature + word in the day line (was .day-wx, which clashed with the weather-system layer) */
.day-now .wx-ico { width: 28px; height: 30px; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.day-now b { font-size: 20px; color: #fff; }
.day-now-l { color: #fff; font-weight: 600; }

/* "See it with twenty rounds": soft sage, a lighter green between the pine ground and the cream cards (Luke, 2026-10-11). */
.home .panel.demo-panel { background: linear-gradient(160deg, #D6E8CC 0%, #BFD9B3 100%); border: 0; border-radius: 20px; padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 12px 26px rgba(0, 0, 0, .3); }
.home .panel.demo-panel h3 { color: #10281B; font-family: var(--serif); font-weight: 400; font-size: 22px; font-variation-settings: "opsz" 144; }
.home .panel.demo-panel .small, .home .panel.demo-panel .quiet { color: #2E4A37; }
.home .panel.demo-panel .btn.brass { background: #10281B; border-color: #10281B; color: #F4EFE4; }

/* Start a round: crisp pure white (Luke, 2026-10-11), brass edge kept. */
.home .start-tile { background: #FFFFFF; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 14px 30px rgba(0, 0, 0, .42); }
.home .start-copy .s { color: #3F5247; }

/* Start a round: an aerial golf hole behind the card, no white wash (Luke, 2026-10-12); the ball stays on the right. */
.home .start-tile { background: url(/img/start-aerial.webp) 50% 50% / cover, #FFFFFF; }   /* flat golf-hole scene, ball picture stays on top at the right */

/* Link to HNA: the wind-blown grass (animated) behind the card, under a deep green wash so the white words read. */
.home .hna-feature { background: linear-gradient(90deg, rgba(6, 18, 30, .62), rgba(6, 18, 30, .34)), url(/img/hna-stream.webp) center / cover, #3B4A55; color: #FFFFFF; }   /* running water (Luke's GIF, 2026-10-25; licence unknown, demo only) */
.home .hna-feature .hf-k { color: rgba(255, 255, 255, .85); }
.home .hna-feature .hf-t, .home .hna-feature .hf-s { color: #FFFFFF; text-shadow: 0 1px 3px rgba(0, 20, 8, .45); }
.home .hna-feature .hf-mark { background: #FFFFFF; border-radius: 50%; padding: 3px; }
.home .hna-feature .hf-go { background: #F4EFE4; color: #10281B; }
.home .start-copy .t, .home .start-copy .s { text-shadow: 0 0 10px rgba(255, 255, 255, .95), 0 0 3px rgba(255, 255, 255, .9); }
.home .start-copy .s { color: #000; font-weight: 600; }

/* Start a round: words in solid black, bold, over the open sky (clear of the trees on the left); Luke 2026-10-12. */
.home .start-tile { padding-left: 96px; }
.home .start-copy .t { color: #000; font-weight: 700; }
.home .start-copy .t, .home .start-copy .s { text-shadow: 0 0 6px rgba(255, 255, 255, .55); }

/* Post a score: a rounded square filled with the shared scorecard (big gross, net, points); Friends: a triangle (Luke, 2026-10-12). */
.home .tool .qi.qi-card { border-radius: 14px; border: 1px solid rgba(255, 255, 255, .5); overflow: hidden; background: #F3F8F3; display: grid; grid-template-rows: 1.35fr 1fr; justify-items: center; padding: 3px 4px 4px; box-sizing: border-box; color: #10241A; font-family: var(--serif); font-variation-settings: "opsz" 144; line-height: 1; }
.home .tool .qi-card b { font-weight: 500; font-variant-numeric: tabular-nums; }
.home .tool .qi-card .sc-g { font-size: 29px; align-self: end; }
.home .tool .qi-card .sc-row { display: flex; justify-content: space-between; width: 100%; padding: 0 2px; align-self: end; }
.home .tool .qi-card .sc-c { display: grid; justify-items: center; gap: 1px; }
.home .tool .qi-card .sc-n, .home .tool .qi-card .sc-p { font-size: 13px; }
.home .tool .qi-card i { font: 700 5px/1 var(--sans, system-ui); letter-spacing: .06em; color: #7D8B82; font-style: normal; }
.home .tool .qi-card .tick { animation: sc-tick .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes sc-tick { from { transform: translateY(-45%); opacity: 0; } to { transform: none; opacity: 1; } }
.home .tool .qi.qi-friends { border: 0; border-radius: 0; clip-path: polygon(50% 3%, 97% 93%, 3% 93%); background: #E3F0E3; color: #1D5A32; align-content: end; padding-bottom: 9px; box-sizing: border-box; }
.home .tool .qi.qi-friends .ico { width: 24px; height: 24px; }

/* Calculator on Home: the real calculator photo fills the whole circle, nothing drawn on top (Luke, 2026-10-12). */
.home .tool .qi.qi-maths { background: url(/img/tool-calcface-112.webp) center / cover; background-image: image-set(url(/img/tool-calcface-56.webp) 1x, url(/img/tool-calcface-112.webp) 2x, url(/img/tool-calcface-168.webp) 3x); border-color: rgba(255, 255, 255, .28); overflow: hidden; }

/* Start a round on the painted-golfers picture: dark green ground, so the words go white (the ball stays on the right). */
.home .start-tile { padding-left: 20px; }
.home .start-copy .t, .home .start-copy .s { color: #FFFFFF; text-shadow: 0 1px 4px rgba(0, 20, 8, .7); }

/* Start a round: the ball a little smaller (Luke, 2026-10-12). */
.home .start-art { width: 98px; height: 98px; }
.home .start-art::after { width: 70px; }
@media (min-width: 720px) { .home .start-art { width: 130px; height: 130px; } }

/* Start a round on the rolling-hills picture: pale sky behind the words, so they go back to solid black (Luke, 2026-10-12). */
.home .start-tile { background: url(/img/start-aerial.webp) 50% 0% / cover, #EEF1EA; }
.home .start-copy .t, .home .start-copy .s { color: #000; text-shadow: none; }

/* Start a round: taller card, mostly hills with a strip of sky; words sit up in the sky, the ball stays right (Luke, 2026-10-12). */
.home .start-tile { min-height: 196px; background-position: 50% 100%; align-items: stretch; }
.home .start-copy { align-self: start; padding-top: 4px; }
.home .start-art { align-self: center; }

/* New 3D courses card (Luke, 2026-10-12): the Oubaai flyover with the slope overlay, words rising in one by one the first time it
   scrolls into view. Sits above Link to HNA; same radius and go-button as that card. */
.home .n3d { position: relative; isolation: isolate; display: grid; align-content: end; gap: 6px; min-height: 208px; padding: 18px 60px 18px 18px; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; background: #0B0F0D center / cover url(/img/brand/new3d-poster.jpg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 12px 26px rgba(4, 28, 12, .3); -webkit-tap-highlight-color: transparent; transition: transform 150ms cubic-bezier(.2, .8, .2, 1); }
.home .n3d:active { transform: scale(.985); }
.home .n3d:focus-visible { outline: 2px solid var(--brass, #E6C98A); outline-offset: 3px; }
.home .n3d-vid, .home .n3d-shade { position: absolute; inset: 0; z-index: -1; }
.home .n3d-vid { width: 100%; height: 100%; object-fit: cover; }
.home .n3d-shade { background: linear-gradient(180deg, rgba(4, 12, 8, 0) 18%, rgba(4, 12, 8, .55) 58%, rgba(4, 12, 8, .88) 100%); }
.home .n3d-h { font-family: var(--serif); font-size: 30px; line-height: 1.04; letter-spacing: -.01em; font-variation-settings: "opsz" 144; text-wrap: balance; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.home .n3d-s { font-size: 14px; line-height: 1.4; max-width: 30ch; color: rgba(255, 255, 255, .9); text-wrap: pretty; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.home .n3d .hf-go { position: absolute; right: 16px; bottom: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #F4EFE4; color: #10281B; }
/* the words rise in order, once, when the card is first on screen; visible from the start without JS or with reduced motion */
.home .n3d.armed .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(4px); }
.home .n3d.armed.on .w { animation: n3d-rise 700ms cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes n3d-rise { to { opacity: 1; transform: none; filter: none; } }
/* halfway through the video the words step aside so the whole picture shows (home.js new3dReveal) */
.home .n3d-h, .home .n3d-s, .home .n3d-shade, .home .n3d .hf-go { transition: opacity 700ms ease; }
.home .n3d.clear .n3d-h, .home .n3d.clear .n3d-s, .home .n3d.clear .n3d-shade, .home .n3d.clear .hf-go { opacity: 0; }

/* Last round aerial: much lighter wash so the course colour comes through (Luke, 2026-10-12); words keep a firmer shadow instead. */
.lc-aerial img { filter: saturate(1.25) brightness(.97); }
.lc-aerial::after { background: linear-gradient(180deg, rgba(5, 26, 20, .12), rgba(5, 26, 20, .4)); }
.home .lastcard .lc-text .t, .home .lastcard .lc-score .num, .home .lastcard .lc-text .s, .home .lastcard .lc-score .s, .home .lastcard .lc-foot .small { text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 12px rgba(0, 0, 0, .45); }

/* Last round hole dots: solid fills with a thin dark ring and a lift, so they hold up on the brighter aerial (Luke, 2026-10-12). */
.home .lastcard .lc-dot { opacity: 1; background: rgba(255, 255, 255, .38); box-shadow: 0 0 0 1.5px rgba(4, 16, 10, .55), 0 2px 4px rgba(0, 0, 0, .45); }
.home .lastcard .lc-dot.par { background: #FFFFFF; }
.home .lastcard .lc-dot.birdie { background: #46D876; }
.home .lastcard .lc-dot.eagle { background: #F2C14E; }
.home .lastcard .lc-dot.bogey { background: #F4A487; }

/* The 3D card's go button sits bottom-right like the words' baseline, not centred like the HNA card's. */
.home .n3d .hf-go { top: auto; transform: none; }

/* Last round: the small words (date · tee · holes, pts, best hole) near-white and a touch heavier so they read on the aerial;
   Share scorecard becomes its own brass-edged pill on a dark glass backing (Luke, 2026-10-12). */
.home .lastcard .lc-text .s, .home .lastcard .lc-score .s, .home .lastcard .lc-foot .small, .home .lastcard .lc-foot .small.quiet { color: rgba(255, 255, 255, .96); font-weight: 500; }
.home .lastcard .lc-foot .btn { padding: 0 12px; min-height: 34px; border-radius: 999px; background: rgba(8, 20, 13, .62); border: 1.5px solid #E6C98A; color: #F1D9A0; font-weight: 650; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.home .lastcard .lc-foot .btn:active { transform: scale(.97); }


/* Start button: mown, criss-cross grass inside the pill under a light dark wash so "Start" stays white and crisp (Luke, 2026-10-12). Flat: no glow. */
.home .start-pill { background: linear-gradient(rgba(6, 22, 12, .3), rgba(6, 22, 12, .3)), url(/img/start-pill-grass.webp) center / cover, #2F6B35; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.home .start-pill .ico { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }

/* Start a round, typeset strong (Luke, 2026-10-12, after the scripts): heading and the line under it both black, both in the sky; the Start button on the hills. Luke picked DM Serif Display (SIL OFL 1.1, licence in docs/design/src/), a club-house serif. */
@font-face { font-family: "DM Serif Display"; src: url(/fonts/dmserifdisplay-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
.home .start-copy { gap: 0; }
.home .start-copy .t { font-family: "DM Serif Display", var(--serif); font-size: 36px; font-weight: 400; line-height: 1; letter-spacing: -.01em; white-space: nowrap; color: #000; text-shadow: none; -webkit-text-stroke: 0; font-variation-settings: normal; }
.home .start-copy .s { margin-top: 30px; max-width: 19ch; font-family: var(--sans, system-ui); font-size: 15px; font-weight: 700; line-height: 1.3; color: #fff; -webkit-text-stroke: 0; text-shadow: 0 1px 3px rgba(0, 24, 8, .75), 0 0 10px rgba(0, 24, 8, .45); }
.home .start-copy .s .sep { font: inherit; vertical-align: baseline; }
.home .start-copy .start-pill { margin-top: 12px; }
.home .start-copy .s { text-wrap: balance; }
.home .start-copy .s { margin-top: 6px; max-width: none; white-space: nowrap; font-size: 14px; font-weight: 700; color: #000; text-shadow: none; }
.home .start-copy .start-pill { margin-top: 26px; }
.home .start-copy .s { font-size: min(14px, 3.55vw); }   /* stays one line, clear of the ball, on 360-375 px phones */
/* the line under the heading a little smaller and tucked up closer to it (Luke, 2026-10-12) */
.home .start-copy .s { margin-top: 2px; font-size: min(12.5px, 3.2vw); }
.home .start-copy .t { margin-top: -4px; }
.home .start-copy .s { font-size: min(11.5px, 2.95vw); letter-spacing: .01em; }   /* always shorter than the heading above it (Luke) */
.home .start-copy .s { justify-self: center; }   /* centred under the heading, equal space either side (Luke) */

/* Last round's differential: a small block in the top-right of the Index band that opens for the explanation (Luke, 2026-10-12). */
.idx-band .dchip { position: absolute; top: 34px; right: 16px; z-index: 3; }
.dchip .dc-btn { display: grid; grid-template-columns: auto auto; grid-template-areas: "k i" "v v"; align-items: center; justify-items: start; gap: 2px 8px; min-height: 44px; padding: 7px 11px 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(6, 20, 12, .55); color: #fff; font: inherit; text-align: left; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); -webkit-tap-highlight-color: transparent; transition: background-color 150ms ease-out, transform 150ms ease-out; }
.dchip .dc-btn:active { transform: scale(.97); }
.dchip .dc-btn[aria-expanded="true"] { background: rgba(6, 20, 12, .8); border-color: #E6C98A; }
.dchip .dc-btn:focus-visible { outline: 2px solid #E6C98A; outline-offset: 2px; }
.dchip .dc-k { grid-area: k; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.dchip .dc-v { grid-area: v; font-size: 24px; line-height: 1; letter-spacing: -.01em; font-variation-settings: "opsz" 144; }
.dchip .dc-i { grid-area: i; justify-self: end; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.25px solid rgba(255, 255, 255, .7); font: italic 700 10px/1 var(--serif); color: #fff; }
.dchip .dc-pop { position: absolute; top: calc(100% + 8px); right: 0; width: min(270px, calc(100vw - 48px)); padding: 14px 14px 12px; border-radius: 14px; background: #0E2318; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); color: rgba(255, 255, 255, .86); font-size: 13.5px; line-height: 1.45; transform-origin: top right; animation: dc-in 180ms cubic-bezier(.2, .8, .2, 1); }
.dchip .dc-pop[hidden] { display: none; }
.dchip .dc-pop p { margin: 0 0 8px; }
.dchip .dc-pop .dc-h { font-size: 15px; font-weight: 650; color: #fff; }
.dchip .dc-pop .dc-h b { font-family: var(--serif); font-weight: 400; font-size: 18px; margin-left: 4px; }
.dchip .dc-st { display: inline-block; margin-top: 2px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .1); }
.dchip .dc-st.on { color: #10281B; background: #E6C98A; }
/* The Last round popup is black leather with gold stitching, and its "counts" line is a pill of the green contours with white writing
   (Luke, 2026-10-24). Same hide as the hole-in-one card; plain green when the course has no height file. */
.dchip .dc-pop { padding: 16px 16px 14px; border: 0; color: #fff;
  background:
    radial-gradient(130% 90% at 20% -10%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)),
    radial-gradient(150% 130% at 50% 50%, transparent 55%, rgba(0, 0, 0, .5)),
    url("/img/leather-grain.webp") 0 0 / 300px 300px,
    radial-gradient(120% 140% at 15% 0%, #34322E 0%, #1A1917 48%, #0A0A09 100%);
  background-blend-mode: normal, normal, normal, overlay, normal; }
.dchip .dc-pop::after { content: ""; position: absolute; inset: 5px; border: 1.5px dashed rgba(246, 214, 160, .75); border-radius: 10px; pointer-events: none;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }
.dchip .dc-pop .dc-h { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, .5); }
.dchip .dc-pop p { color: #fff; }
.dchip .dc-pop .dc-h b { color: #F1D98F; }
.dchip .dc-st { position: relative; z-index: 0; isolation: isolate; margin-top: 6px; padding: 6px 12px; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 4px rgba(0, 0, 0, .7); background: none; box-shadow: none; }
/* the pill is a patch of the sand bunker used behind Post a score and the Handicap calculator (Luke, 2026-10-25), darkened a touch so the thick white words read clearly */
.dchip .dc-st::before { content: ""; position: absolute; inset: -2px -3px; z-index: -1; border-radius: 999px; filter: url(#dc-fuzz);
  background: linear-gradient(rgba(58, 36, 10, .5), rgba(58, 36, 10, .5)), url(/img/tools-sand-480.webp) center / cover, #B89A6A; box-shadow: inset 0 0 0 1.5px rgba(255, 244, 214, .45); }
.dchip .dc-st.on { color: #fff; }   /* the older gold-pill rule turned "Counts" dark green, unreadable on the sand (Luke, 2026-10-25) */
.dchip .dc-st { white-space: nowrap; padding: 6px 10px; font-size: 12px; letter-spacing: 0; }   /* always one line: "Counts · one of your best 8 of 20" was wrapping "20" (Luke, 2026-10-25) */
.dchip .dc-st.on::before { box-shadow: inset 0 0 0 1.5px rgba(230, 201, 138, .9); }
.dchip .dc-defs { position: absolute; width: 0; height: 0; pointer-events: none; }
@keyframes dc-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dchip .dc-pop { animation: none; } }

/* 3D card, second cut (Luke, 2026-10-12): the whole flyover through the holes, graded bright with fine grain; the card is taller so the
   holes show, the wash only sits under the words so the colour stays vivid. */
.home .n3d { min-height: 250px; }
.home .n3d-vid { object-position: 50% 42%; }
.home .n3d-shade { background: linear-gradient(180deg, rgba(4, 12, 8, 0) 45%, rgba(4, 12, 8, .5) 72%, rgba(4, 12, 8, .82) 100%); }

/* Last round aerial, round three (Luke, 2026-10-12): no milky look; the photo itself is pushed to vivid greens and the wash is only a
   thin shade at the very bottom, so the whole course reads in colour. The words carry their own shadow. */
.lc-aerial img { filter: saturate(1.6) contrast(1.14) brightness(1.02); }
.lc-aerial::after { background: linear-gradient(180deg, rgba(5, 26, 20, .06) 0%, rgba(5, 26, 20, .1) 55%, rgba(5, 26, 20, .38) 100%); }

/* Share scorecard: sunshine-yellow pill, the app's deep green words (Luke, 2026-10-12). */
.home .lastcard .lc-foot .btn { background: #FFD22E; border-color: #FFD22E; color: #10281B; text-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .lastcard .lc-foot .btn .ico { color: #10281B; }
.home .lastcard .lc-foot .btn { min-height: 30px; padding: 0 11px; font-size: 13px; gap: 5px; }   /* a size smaller (Luke) */
.home .lastcard .lc-foot .btn .ico { width: 14px; height: 14px; }

/* Birdie and eagle dots breathe in their own colour (Luke, 2026-10-12): a soft halo grows and fades behind the dot; an eagle's is bigger,
   brighter and quicker. Halo is a pseudo-element animating only transform + opacity; still for reduced motion. */
.home .lastcard .lc-dot.birdie, .home .lastcard .lc-dot.eagle { position: relative; }
.home .lastcard .lc-dot.birdie::after, .home .lastcard .lc-dot.eagle::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; opacity: 0; z-index: -1; pointer-events: none; }
.home .lastcard .lc-dot.birdie::after { animation: lc-breathe 2.4s cubic-bezier(.2, .7, .3, 1) infinite; }
.home .lastcard .lc-dot.eagle::after { animation: lc-breathe-eagle 1.6s cubic-bezier(.2, .7, .3, 1) infinite; }
.home .lastcard .lc-dot.birdie { animation: lc-swell 2.4s ease-in-out infinite; }
.home .lastcard .lc-dot.eagle { animation: lc-swell-eagle 1.6s ease-in-out infinite; }
@keyframes lc-breathe { 0% { opacity: .85; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2); } }
@keyframes lc-breathe-eagle { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes lc-swell { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } }
@keyframes lc-swell-eagle { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.16); } }
@media (prefers-reduced-motion: reduce) { .home .lastcard .lc-dot, .home .lastcard .lc-dot::after { animation: none !important; } }

/* The week ahead (Luke, 2026-10-12): tap The day card → a sheet rises with the club's next seven days. Sky photo header with today
   large, then one row a day: drawn weather icon, rain chance, low–high bar against the week's range, wind with an arrow. */
.home .day[data-week] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.home .day[data-week]:active { transform: scale(.99); }
.home .day[data-week]:focus-visible { outline: 2px solid #E6C98A; outline-offset: 3px; }
.home .day .day-week { position: absolute; right: 14px; bottom: 12px; z-index: 2; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; color: #fff; background: rgba(6, 20, 12, .45); border: 1px solid rgba(255, 255, 255, .3); }
.wk-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.wk-scrim { position: absolute; inset: 0; background: rgba(2, 10, 6, .55); opacity: 0; transition: opacity 220ms ease-out; }
.wk-panel { position: relative; width: min(560px, 100%); max-height: 88svh; overflow: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; background: #0D2117; color: #fff; box-shadow: 0 -16px 40px rgba(0, 0, 0, .45); transform: translateY(100%); transition: transform 320ms cubic-bezier(.16, 1, .3, 1); padding-bottom: max(14px, env(safe-area-inset-bottom)); outline: none; }
.wk-sheet.on .wk-scrim { opacity: 1; } .wk-sheet.on .wk-panel { transform: none; }
.wk-head { position: relative; padding: 10px 18px 18px; background: linear-gradient(180deg, rgba(4, 16, 10, .15), rgba(13, 33, 23, .92) 96%), var(--sky) center / cover, #2B5C8A; border-radius: 22px 22px 0 0; }
.wk-grip { display: block; width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.wk-head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wk-head h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.1; font-variation-settings: "opsz" 144; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.wk-sub { margin: 2px 0 0; font-size: 14px; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.wk-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(6, 20, 12, .5); color: #fff; cursor: pointer; }
.wk-x .ico { width: 18px; height: 18px; }
.wk-x:focus-visible { outline: 2px solid #E6C98A; outline-offset: 2px; }
.wk-hero:empty { min-height: 96px; }
.wk-now { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.wk-now .wk-big { width: 72px; height: 76px; flex: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.wk-now-t { display: grid; gap: 2px; }
.wk-now-t b { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: .95; font-variation-settings: "opsz" 144; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.wk-now-t span { font-size: 15px; font-weight: 600; }
.wk-now-t .wk-hl { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .82); }
.wk-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wk-facts span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(6, 20, 12, .45); border: 1px solid rgba(255, 255, 255, .18); }
.wk-facts .ico { width: 15px; height: 15px; } .wk-drop { width: 10px; height: 12px; flex: none; }
.wk-list { list-style: none; margin: 0; padding: 6px 12px 0; }
.wk-row { display: grid; grid-template-columns: 52px 34px 40px 30px 1fr 30px; grid-template-areas: "d ic rain lo bar hi" ". . w w wind wind"; align-items: center; column-gap: 8px; row-gap: 2px; padding: 11px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.wk-row:last-child { border-bottom: 0; }
.wk-d { grid-area: d; font-size: 15px; font-weight: 650; }
.wk-ic { grid-area: ic; display: grid; place-items: center; } .wk-ic .wx-ico { width: 30px; height: 32px; }
.wk-rain { grid-area: rain; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 650; color: #9BD3F7; }
.wk-lo { grid-area: lo; text-align: right; font-size: 15px; color: rgba(255, 255, 255, .62); }
.wk-hi { grid-area: hi; font-size: 15px; }
.wk-bar { grid-area: bar; position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.wk-bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #7CC4F2, #F2C14E 70%, #F28C4E); }
.wk-w { grid-area: w; font-size: 12px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-wind { grid-area: wind; justify-self: end; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.wk-arrow { width: 11px; height: 11px; color: rgba(255, 255, 255, .8); }
.wk-wait { padding: 26px 8px; text-align: center; color: rgba(255, 255, 255, .72); font-size: 14px; }
.wk-credit { margin: 6px 18px 0; font-size: 11px; color: rgba(255, 255, 255, .45); }
@media (prefers-reduced-motion: reduce) { .wk-panel, .wk-scrim { transition: none; } }
/* "7-day" tag: lower in the corner, solid white with the app green and a small calendar mark (Luke, 2026-10-12). */
.home .day .day-week { bottom: 7px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; background: #FFFFFF; border: 0; color: #10281B; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.home .day .day-week svg { width: 14px; height: 14px; }
/* "7-day" tag, take two: frosted sky glass instead of white — the clouds behind blur through, a thin bright edge gives it its own
   border, and it is a size smaller (Luke, 2026-10-12). */
.home .day .day-week { padding: 3px 8px 3px 6px; gap: 4px; font-size: 11px; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .14)); border: 1px solid rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 6px rgba(0, 20, 40, .25); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); text-shadow: 0 1px 2px rgba(0, 20, 40, .4); }
.home .day .day-week svg { width: 12px; height: 12px; }
.home .day .day-week .cal-ico { width: 16px; height: 16px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }   /* full-colour calendar (Luke) */
/* room under the sentence for the 7-day tag, so it never sits on the words (Luke, 2026-10-12) */
.home .day[data-week] { padding-bottom: 40px; }

/* Moving sky (Luke, 2026-10-12): the plate drifts enough to see (about 40 s a sweep) and a mirrored copy drifts the other way, softly
   blended, so the clouds roll rather than slide. Only transform/opacity animate; still for reduced motion. */
.day-sky { animation: sky-roll 38s ease-in-out infinite alternate; }
.day-sky.day-sky-b { opacity: 0; mix-blend-mode: soft-light; animation: sky-roll-b 26s ease-in-out infinite alternate; }
.day-sky.day-sky-b.on { opacity: .55; }
@keyframes sky-roll { from { transform: scale(1.22) translate3d(6%, 1%, 0); } to { transform: scale(1.22) translate3d(-6%, -1%, 0); } }
@keyframes sky-roll-b { from { transform: scale(1.3) scaleX(-1) translate3d(-8%, 0, 0); } to { transform: scale(1.3) scaleX(-1) translate3d(8%, 2%, 0); } }
@media (prefers-reduced-motion: reduce) { .day-sky, .day-sky.day-sky-b { animation: none; } .day-sky.day-sky-b.on { opacity: 0; } }

/* Last round block: white with the app green, the reverse of before (Luke, 2026-10-12). */
.dchip .dc-btn { background: #FFFFFF; border-color: #FFFFFF; color: #10281B; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.dchip .dc-btn[aria-expanded="true"] { background: #FFFFFF; border-color: #E6C98A; }
.dchip .dc-k { color: #2E4A3A; }
.dchip .dc-i { border-color: #10281B; color: #10281B; }
/* Back to the small two-line block in the corner (the pill reached over the Index number); white with the green kept (Luke, 2026-10-12). */
.dchip .dc-btn { border-radius: 14px; }
.home .day { border-radius: 30px; }   /* softer, rounder corners on the weather card (Luke, 2026-10-12) */
.home .sheet-home { border-radius: 40px 40px 0 0; }   /* rounder top of the green sheet so it melts into the picture above (Luke, 2026-10-12) */
/* iPhone Safari does not clip moving (transformed) children to a rounded overflow box, so the drifting sky showed square corners;
   clip-path + mask clip it on every engine (Luke, 2026-10-12). Same guard on the other cards with moving or tiled backdrops. */
.home .day { clip-path: inset(0 round 30px); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.home .lastcard { clip-path: inset(0 round 18px); }
.home .n3d { clip-path: inset(0 round 18px); }
.home .sheet-home { padding-top: 9px; } .home .day { margin-top: 2px; }   /* green strip above the weather card halved (Luke, 2026-10-12) */

/* Hole-in-one challenge card (Luke, 2026-10-12): Scratch X's island green behind, the golfer's balls top-right, today's
   top three, one Play button, and the deal in one line (10 free balls per posted round). Sits under the 3D card. */
/* Hole-in-one card, the black card (Luke, 2026-10-24): black leather body with gold stitching, the island in a brass ring on green
   contours, today's board on green contours with black-leather rows. Same hide as the Me wallet (leather-grain.webp). */
.home .hio { --gold: #E6C98A; --cream: #F3E4BD; position: relative; isolation: isolate; display: block; padding: 0 0 12px; border-radius: 20px; overflow: hidden; clip-path: inset(0 round 20px); color: var(--cream);
  background:
    radial-gradient(130% 90% at 20% -10%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)),
    radial-gradient(150% 130% at 50% 50%, transparent 55%, rgba(0, 0, 0, .5)),
    url("/img/leather-grain.webp") 0 0 / 300px 300px,
    radial-gradient(120% 140% at 15% 0%, #34322E 0%, #1A1917 48%, #0A0A09 100%);
  background-blend-mode: normal, normal, normal, overlay, normal;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35); }
.home .hio::after { content: ""; position: absolute; inset: 7px; z-index: 5; border: 2px dashed rgba(246, 214, 160, .85); border-radius: 14px; pointer-events: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .55), inset 0 1px 1px rgba(0, 0, 0, .45); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }
/* the green contours, as behind the tab bar and the Home sheet; plain green when the course has no height file */
.home .hio-win, .home .hio-board { background: var(--ground-lines, none) center top / 124% auto repeat-y, var(--ground-terr, none) center top / 124% auto repeat-y, linear-gradient(180deg, #1B4029, #0F2A1C); }
.home .hio-win { display: flex; justify-content: center; padding: 14px 0 13px; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .5), inset 0 2px 4px rgba(0, 0, 0, .4); }
.home .hio-ring { width: 104px; height: 104px; border-radius: 50%; padding: 4px; background: conic-gradient(from 200deg, #8A6A2C, #F1DBA0, #A98640, #F6E6B4, #8A6A2C); box-shadow: 0 8px 20px rgba(0, 0, 0, .6); }
.home .hio-ring picture { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .55); }
.home .hio-ring img { display: block; width: 170%; height: 100%; max-width: none; object-fit: cover; object-position: 46% 60%; filter: saturate(1.25) contrast(1.05); }
.home .hio-mid { padding: 10px 16px 2px; text-align: center; }
.home .hio-h { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.1; color: var(--cream); text-shadow: 0 -1px 0 rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .08); }
.home .hio-s { margin: 2px 0 0; font-size: 12.5px; color: rgba(243, 228, 189, .8); }
.home .hio-balls { margin-top: 8px; }
.home .hio-dots { display: flex; justify-content: center; gap: 5px; }
.home .hio-dots i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #D9D9D4 60%, #A9A9A3); box-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.home .hio-dots i.u { background: #161614; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .9), 0 0 0 1px rgba(230, 201, 138, .3); }
.home .hio-cap { display: block; margin-top: 5px; font: 600 10.5px/1 var(--sans, system-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.home .hio-balls.out .hio-cap { color: #F4A487; }
.home .hio-board { list-style: none; margin: 10px 14px 0; padding: 7px; display: grid; gap: 4px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(150, 220, 180, .25), inset 0 2px 6px rgba(0, 0, 0, .5); }
.home .hio-board li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 9px; font-size: 12.5px; color: var(--cream);
  background: radial-gradient(130% 120% at 20% -20%, rgba(255, 255, 255, .14), transparent 60%), url("/img/leather-grain.webp") 0 0 / 300px 300px, linear-gradient(180deg, #232220, #0E0E0D); background-blend-mode: normal, overlay, normal; }
.home .hio-board li.me { box-shadow: inset 0 0 0 1px rgba(230, 201, 138, .7); }
.home .hio-board .r { font-weight: 700; color: var(--gold); text-align: center; }
.home .hio-board .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.home .hio-board .d { font-family: var(--serif); font-size: 14px; font-weight: 400; }
.home .hio-board .ace { font: 800 9px/1 var(--sans, system-ui); padding: 2px 5px; border-radius: 4px; background: var(--gold); color: #10281B; margin-left: 4px; vertical-align: 2px; }
.home .hio-board .hio-empty { display: block; grid-template-columns: none; background: none; padding: 2px 0; text-align: center; color: rgba(243, 228, 189, .78); }
.home .hio-foot { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 16px 0; }
.home .hio-go { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px 0 13px; border: 0; border-radius: 999px; background: linear-gradient(#F0D9A0, #D9B86C); color: #10281B; font: 700 15px/1 var(--sans, system-ui); cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform 150ms ease-out; }
.home .hio-go .ico { width: 18px; height: 18px; }
.home .hio-go:active { transform: scale(.97); }
.home .hio-go:disabled { opacity: .6; }
.home .hio-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.home .hio-earn { font-size: 11px; line-height: 1.3; color: rgba(243, 228, 189, .8); text-align: left; }
.home .hio-how { margin: 2px 18px 0; text-align: center; }

/* "The Clubhouse": the heading over the 3D course and the hole-in-one game, the same small caps as the other Home headings. */
.home .home-group { margin: 30px 0 -2px; }
.home .home-group h2 { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }

/* The three Home tools as one set (Luke, 2026-10-12): the same cream rounded square as Post a score, each a tiny live card.
   Calculator = your course handicap at your club, cycling through the tees. Friends = faces, a count, a dot for recent play. */
.home .tool .qi.qi-shots, .home .tool .qi.qi-faces { border-radius: 14px; border: 1px solid rgba(255, 255, 255, .5); background: #F3F8F3; color: #10241A; overflow: hidden; box-sizing: border-box; clip-path: none; }
.home .tool .qi-shots { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; padding: 4px 3px 4px; line-height: 1; }
.home .tool .qi-shots .sh-n { align-self: end; font-family: var(--serif); font-size: 27px; font-weight: 500; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 144; }
.home .tool .qi-shots .sh-k { font: 700 5.5px/1 var(--sans, system-ui); letter-spacing: .08em; color: #7D8B82; font-style: normal; margin-top: 1px; }
.home .tool .qi-shots .sh-t { display: flex; align-items: center; gap: 2px; max-width: 100%; margin-top: 3px; font: 600 6px/1 var(--sans, system-ui); color: #33473B; white-space: nowrap; overflow: hidden; }
.home .tool .qi-shots .sh-t:empty { display: none; }
.home .tool .qi-shots .sh-dot { flex: none; width: 5px; height: 5px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .3); }
.home .tool .qi-shots .tick { animation: sc-tick .32s cubic-bezier(.2, .8, .2, 1); }
.home .tool .qi-faces { display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 6px 2px 4px; }
.home .tool .qi-faces .fc-stack { display: flex; align-items: center; }
.home .tool .qi-faces .fc-f { position: relative; display: grid; place-items: center; width: 22px; height: 22px; margin-left: -7px; border-radius: 50%; border: 2px solid #F3F8F3; background: #E6C98A; color: #10241A; font: 700 8.5px/1 var(--sans, system-ui); box-sizing: content-box; }
.home .tool .qi-faces .fc-f:first-child { margin-left: 0; }
.home .tool .qi-faces .fc-f.me { background: #10281B; color: #F4EFE4; }
.home .tool .qi-faces .fc-f.plus { background: #F3F8F3; color: #10281B; border-color: #10281B; border-style: dashed; border-width: 1.5px; font-size: 12px; }
.home .tool .qi-faces .fc-live { position: absolute; right: -2px; bottom: -1px; width: 7px; height: 7px; border-radius: 50%; background: #2FBF5F; border: 1.5px solid #F3F8F3; }
.home .tool .qi-faces .fc-n { font: 700 9px/1 var(--sans, system-ui); color: #33473B; }
.home .tool .qi-faces .fc-n:empty { display: none; }
.home .tool .qi-faces .fc-f { width: 17px; height: 17px; margin-left: -6px; font-size: 7px; border-width: 1.5px; }
.home .tool .qi-faces .fc-f:first-child { margin-left: 0; }
.home .tool .qi-faces .fc-f.plus { font-size: 10px; }
.home .tool .qi-faces .fc-live { width: 6px; height: 6px; right: -2px; bottom: -1px; }
.home .tool .qi-faces .fc-f { width: 18px; height: 18px; margin-left: -5px; font-size: 9px; }
.home .tool .qi-faces .fc-f:first-child { margin-left: 0; z-index: 3; }
.home .tool .qi-faces .fc-f:nth-child(2) { z-index: 2; }
.home .tool .qi-faces .fc-f:nth-child(3) { z-index: 1; }
.home .tool .qi-faces .fc-live { z-index: 4; right: -3px; top: -2px; bottom: auto; }

/* Calculator tile reads as a calculator (Luke, 2026-10-12): maths symbols drift faintly behind, the real handicap sum types out
   on a little display line, the answer below it. Symbols move by transform/opacity only; still under reduced motion. */
.home .tool .qi-shots { position: relative; grid-template-rows: auto 1fr auto; padding: 4px 3px 4px; }
.home .tool .qi-shots .sh-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.home .tool .qi-shots .sh-fx i { position: absolute; font: 600 11px/1 var(--serif); font-style: normal; color: #2E6B47; opacity: 0;
  left: calc(6% + var(--k) * 13%); top: 70%; animation: sh-float 4.2s ease-in-out infinite; animation-delay: calc(var(--k) * -0.6s); }
@keyframes sh-float { 0% { opacity: 0; transform: translateY(0) rotate(-8deg); } 30% { opacity: .2; } 70% { opacity: .14; } 100% { opacity: 0; transform: translateY(-34px) rotate(8deg); } }
.home .tool .qi-shots .sh-eq { position: relative; min-height: 8px; max-width: 100%; padding: 1px 4px; border-radius: 3px; background: #DCE8DE; font: 600 6.5px/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: #10241A; white-space: nowrap; overflow: hidden; }
.home .tool .qi-shots .sh-eq:empty { visibility: hidden; }
.home .tool .qi-shots .sh-n { position: relative; align-self: center; font-size: 24px; }
.home .tool .qi-shots .sh-n::before { content: '='; font-size: 13px; margin-right: 1px; color: #5F7066; vertical-align: 4px; }
.home .tool .qi-shots .sh-t { position: relative; margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .home .tool .qi-shots .sh-fx i { animation: none; opacity: .12; top: 40%; } }
.home .tool .qi-shots .sh-eq { font-size: 6px; padding: 1px 3px; letter-spacing: -.02em; }
.home .tools-home .tool .qi-eqs .eq-list i.lg { font-size: 9px; }   /* the long ones (sin²θ+cos²θ=1) would run off the ball */

/* The three tools on raked bunker sand (Luke, 2026-10-12): one rounded panel behind all three, picture centred so the
   footprints sit evenly; labels go dark ink on the sand with a soft light halo so they read. */
.home .tools-home { position: relative; margin-top: 14px; padding: 16px 10px 12px; border-radius: 20px; overflow: hidden; clip-path: inset(0 round 20px);
  background: url(/img/tools-sand-480.webp) center / cover, #B89A6A; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 22px rgba(4, 28, 12, .3); }
@media (min-resolution: 2dppx) { .home .tools-home { background-image: url(/img/tools-sand-960.webp); } }
.home .tools-home::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(255, 246, 225, .12), rgba(60, 40, 15, .18)); pointer-events: none; }
.home .tools-home .tool { position: relative; }
.home .tools-home .tool .qt { color: #1E170C; font-weight: 700; text-shadow: 0 0 6px rgba(255, 244, 220, .85), 0 0 2px rgba(255, 244, 220, .9); }
.home .tools-home .tool .qi { box-shadow: 0 4px 10px rgba(50, 32, 10, .35); }
/* Labels read on the sand (Luke, 2026-10-12): the lower part of the panel fades into shadow, labels white and a touch bigger. */
.home .tools-home::before { background: linear-gradient(180deg, rgba(20, 14, 6, 0) 0%, rgba(20, 14, 6, .05) 45%, rgba(20, 14, 6, .62) 100%); }
.home .tools-home .tool .qt { color: #FFFFFF; font-size: 14.5px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 10px rgba(0, 0, 0, .45); }

/* The three tiles hover over the sand in 3D (Luke, 2026-10-12): each floats a few px up with its own soft shadow cast on the sand
   below it, bobs slowly (staggered), and tilts with the phone (the hero's tilt/pointer drives --tlx/--tly, -1..1) while the
   sand shifts the other way. Transform-only; still under reduced motion. */
.home .tools-home { perspective: 600px; background-position: calc(50% - var(--tlx, 0) * 6px) calc(50% - var(--tly, 0) * 4px); }
.home .tools-home .tool { position: relative; z-index: 1; }
.home .tools-home .tool .qi { position: relative; z-index: 2; transform-style: preserve-3d;
  transform: translate3d(calc(var(--tlx, 0) * 3px), calc(var(--tly, 0) * 2px), 0) rotateY(calc(var(--tlx, 0) * 9deg)) rotateX(calc(var(--tly, 0) * -7deg));
  transition: transform 120ms linear;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 -1px 0 rgba(0, 0, 0, .08) inset, 0 2px 4px rgba(40, 26, 8, .22);
  animation: tile-hover 4.4s ease-in-out infinite; }
.home .tools-home .tool:nth-child(2) .qi { animation-delay: -1.4s; }
.home .tools-home .tool:nth-child(3) .qi { animation-delay: -2.8s; }
@keyframes tile-hover { 0%, 100% { translate: 0 -5px; } 50% { translate: 0 -9px; } }
/* the cast shadow on the sand: an ellipse under each tile that shrinks and fades as the tile rises, and slides against the tilt */
.home .tools-home .tool::before { content: ''; position: absolute; z-index: 1; left: 50%; top: 58px; width: 50px; height: 10px; margin-left: -25px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(38, 24, 6, .55), rgba(38, 24, 6, 0));
  transform: translateX(calc(var(--tlx, 0) * -4px)); animation: tile-shadow 4.4s ease-in-out infinite; pointer-events: none; }
.home .tools-home .tool:nth-child(2)::before { animation-delay: -1.4s; }
.home .tools-home .tool:nth-child(3)::before { animation-delay: -2.8s; }
@keyframes tile-shadow { 0%, 100% { opacity: .85; scale: 1; } 50% { opacity: .55; scale: .82; } }
.home .tools-home .tool:active .qi { translate: 0 -2px; animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .home .tools-home .tool .qi { animation: none; translate: 0 -5px; transform: none; }
  .home .tools-home .tool::before { animation: none; }
}
.home .tools-home .tool::before { top: 63px; width: 58px; height: 13px; margin-left: -29px; background: radial-gradient(closest-side, rgba(28, 16, 2, .78), rgba(28, 16, 2, .35) 55%, rgba(28, 16, 2, 0)); }
.home .tools-home .tool { gap: 16px; }                      /* room between the floating tile and its label for the shadow on the sand */
.home .tools-home .tool::before { top: 58px; }
.home .tools-home .tool::before { width: 50px; height: 10px; margin-left: -25px; top: 60px; background: rgba(24, 13, 1, .7); filter: blur(5px); }
.home .tools-home .tool::before { width: 54px; height: 9px; margin-left: -27px; top: 59px; background: rgba(12, 6, 0, .92); filter: blur(3.5px); }
@keyframes tile-shadow { 0%, 100% { opacity: .9; scale: 1; } 50% { opacity: .62; scale: .84; } }
.home .tool .qi-shots .sh-t { display: block; text-align: center; text-overflow: ellipsis; padding: 0 2px; }
.home .tool .qi-shots .sh-dot { display: inline-block; vertical-align: -.5px; margin-right: 2px; }
.home .tools-home .tool::before { width: 62px; height: 16px; margin-left: -31px; top: 55px; filter: none; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(10, 5, 0, .9) 0%, rgba(10, 5, 0, .55) 45%, rgba(10, 5, 0, 0) 100%); }
.home .tools-home .tool::before { width: 66px; height: 18px; margin-left: -33px; top: 54px; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(8, 4, 0, .95) 0%, rgba(8, 4, 0, .8) 35%, rgba(8, 4, 0, 0) 100%); }
/* Cast shadow, take two: the tile's own shape, dropped onto the sand below and against the tilt (a separate ellipse washed out on
   the rake lines). The ellipse is retired. */
.home .tools-home .tool::before { display: none; }
.home .tools-home .tool .qi { filter: drop-shadow(calc(var(--tlx, 0) * -5px) 14px 7px rgba(22, 12, 0, .58)) drop-shadow(0 3px 3px rgba(22, 12, 0, .3)); }
.home .tools-home .tool .qi { filter: drop-shadow(calc(var(--tlx, 0) * -6px) 16px 6px rgba(14, 7, 0, .72)) drop-shadow(0 2px 2px rgba(14, 7, 0, .35)); }
.home .tools-home .tool .qi { filter: drop-shadow(0 16px 6px rgba(14, 7, 0, .72)) drop-shadow(0 2px 2px rgba(14, 7, 0, .35)); }   /* fixed offset: a var() inside drop-shadow did not apply once the tilt set it */
.home .tools-home .tool .qi { transform-style: flat; }   /* preserve-3d dropped the cast shadow once tilted; the tiles have no 3D children */
/* Cast shadow, final: a soft dark ellipse on the sand under each tile, drawn by the (untilted) tool itself, so it stays put on
   the sand while the tile above it tilts and bobs; it shrinks and lightens as the tile rises. */
.home .tools-home .tool .qi { filter: none; }
.home .tools-home .tool::before { display: block; content: ''; position: absolute; z-index: 0; left: 50%; top: 60px; width: 64px; height: 16px; margin-left: -32px; border-radius: 50%; filter: none;
  background: radial-gradient(closest-side, rgba(10, 5, 0, .85), rgba(10, 5, 0, .5) 50%, rgba(10, 5, 0, 0));
  transform: translateX(calc(var(--tlx, 0) * -5px)); animation: tile-shadow 4.4s ease-in-out infinite; pointer-events: none; }
.home .tools-home .tool::before { top: 58px; width: 70px; height: 20px; margin-left: -35px; background: radial-gradient(closest-side, rgba(6, 3, 0, .95), rgba(6, 3, 0, .7) 45%, rgba(6, 3, 0, 0)); }
@keyframes tile-shadow { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .7; scale: .86; } }
.home .tools-home .tool .qi { box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 -2px 0 rgba(0, 0, 0, .1) inset, 0 3px 6px rgba(30, 18, 2, .35); }

/* Calculator tile, famous equations (Luke, 2026-10-12): E=mc², a²+b²=c², e^iπ+1=0, F=ma… each fades in, rises and drifts out
   in turn behind the answer, one or two on screen at a time, so it reads as maths rather than a grey haze. */
.home .tool .qi-shots .sh-fx i { font: italic 600 7.5px/1 var(--serif); white-space: nowrap; color: #1E5A3A; opacity: 0;
  left: calc(4% + mod(var(--k) * 37, 62) * 1%); top: 72%; animation: sh-eqn 9.9s ease-in-out infinite; animation-delay: calc(var(--k) * -0.9s); }
@keyframes sh-eqn {
  0% { opacity: 0; transform: translateY(0) scale(.85) rotate(-6deg); }
  10% { opacity: .5; }
  30% { opacity: .42; transform: translateY(-22px) scale(1) rotate(0deg); }
  42% { opacity: 0; transform: translateY(-34px) scale(1.05) rotate(5deg); }
  100% { opacity: 0; transform: translateY(-34px); }
}
@media (prefers-reduced-motion: reduce) { .home .tool .qi-shots .sh-fx i { animation: none; opacity: 0; } .home .tool .qi-shots .sh-fx i:nth-child(1), .home .tool .qi-shots .sh-fx i:nth-child(2) { opacity: .3; } }
/* fewer at once (about three), so the answer stays the hero */
.home .tool .qi-shots .sh-fx i { animation: sh-eqn2 13.2s ease-in-out infinite; animation-delay: calc(var(--k) * -1.2s); }
@keyframes sh-eqn2 {
  0% { opacity: 0; transform: translateY(0) scale(.85) rotate(-6deg); }
  7% { opacity: .5; }
  20% { opacity: .4; transform: translateY(-22px) scale(1) rotate(0deg); }
  27% { opacity: 0; transform: translateY(-32px) scale(1.05) rotate(5deg); }
  100% { opacity: 0; transform: translateY(-32px); }
}

/* Tiles barely move (Luke, 2026-10-12: "90% less"): bob 0.4 px instead of 4, tilt a tenth, shadow breathes a tenth. */
@keyframes tile-hover { 0%, 100% { translate: 0 -5px; } 50% { translate: 0 -5.4px; } }
@keyframes tile-shadow { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .97; scale: .986; } }
.home .tools-home .tool .qi { transform: translate3d(calc(var(--tlx, 0) * .3px), calc(var(--tly, 0) * .2px), 0) rotateY(calc(var(--tlx, 0) * .9deg)) rotateX(calc(var(--tly, 0) * -.7deg)); }
.home .tools-home .tool::before { transform: translateX(calc(var(--tlx, 0) * -.5px)); }
.home .tools-home { background-position: calc(50% - var(--tlx, 0) * .6px) calc(50% - var(--tly, 0) * .4px); }

/* Every card stands a little off the page (Luke, 2026-10-12): the card is raised a few px over its own shadow on the ground
   (a soft wide one plus a tight contact one at its foot). Tilting the phone moves the card one way and the shadow the other,
   driven by the hero's --tlx/--tly (-1..1, see parallax() in home.js). No bobbing; with a mouse it stays still; reduced motion
   never sets the tilt, so it rests lifted. The .lift wrapper comes from lift() in home.js. */
.home .lift { position: relative; isolation: isolate; }
.home .lift > * { position: relative; z-index: 1; translate: calc(var(--tlx, 0) * 5px) calc(-6px + var(--tly, 0) * 4px); will-change: translate; }
.home .lift::before, .home .lift::after { content: ''; position: absolute; z-index: 0; pointer-events: none; will-change: translate; }
.home .lift::before { inset: 26px 3% -18px; border-radius: 28px; background: rgba(0, 0, 0, .82); filter: blur(16px);
  translate: calc(var(--tlx, 0) * -10px) calc(var(--tly, 0) * -6px); }
.home .lift::after { left: 6%; right: 6%; bottom: -9px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, .85); filter: blur(7px);
  translate: calc(var(--tlx, 0) * -3px) calc(var(--tly, 0) * -2px); }
.idx-band .dchip { translate: calc(var(--tlx, 0) * 4px) calc(-2px + var(--tly, 0) * 3px); box-shadow: 0 12px 20px -8px rgba(0, 0, 0, .6), 0 3px 6px rgba(0, 0, 0, .28); }
@media (hover: hover) and (pointer: fine) {
  .home .lift > * { translate: 0 -6px; }
  .home .lift::before, .home .lift::after { translate: none; }
  .idx-band .dchip { translate: 0 -2px; }
}

/* Calculator tile = pure maths (Luke, 2026-10-12: "take that major number away and just bring out the equations"). A drawn
   Pythagoras triangle (a, b, c, θ) at the top; below it the famous equations take turns, one at a time, big and dark enough to read
   on the small tile, sliding up into place and out again. */
.home .tool .qi.qi-eqs { position: relative; display: grid; grid-template-rows: auto 1fr; justify-items: center; align-items: center; padding: 5px 3px 4px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .5); background: #F3F8F3; color: #10241A; overflow: hidden; box-sizing: border-box; }
.home .tool .qi-eqs .eq-tri { width: 30px; height: 22px; color: #1E5A3A; }
.home .tool .qi-eqs .eq-tri text { fill: #1E5A3A; font-family: var(--serif); font-style: italic; }
.home .tool .qi-eqs .eq-list { position: relative; width: 100%; height: 22px; }
.home .tool .qi-eqs .eq-list i { position: absolute; inset: 0; display: grid; place-items: center; font: italic 600 10.5px/1 var(--serif); letter-spacing: -.01em; color: #10241A; white-space: nowrap; opacity: 0;
  animation: eq-turn 26.4s cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: calc(var(--k) * 2.2s); }
@keyframes eq-turn { 0% { opacity: 0; transform: translateY(8px) scale(.92); } 1.5% { opacity: 1; transform: none; } 7% { opacity: 1; transform: none; } 8.33% { opacity: 0; transform: translateY(-8px) scale(.96); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .home .tool .qi-eqs .eq-list i { animation: none; } .home .tool .qi-eqs .eq-list i:first-child { opacity: 1; } }
.home .tool .qi-eqs .eq-tri { width: 36px; height: 22px; }

/* The bunker gets a neatly trimmed grass collar all round (Luke, 2026-10-12): a ring of mown grass, rounded corners, then a crisp
   cut lip down onto the sand (a thin dark edge + a soft inner shadow, as a freshly edged bunker looks). */
.home .tools-home { border: 11px solid transparent; border-radius: 26px; clip-path: inset(0 round 26px);
  background: url(/img/tools-sand-480.webp) center / cover padding-box, url(/img/tools-grass-900.webp) center / cover border-box, #3E6B2A border-box;
  box-shadow: inset 0 0 0 1.5px rgba(40, 30, 10, .55), inset 0 6px 10px rgba(30, 20, 5, .45), inset 0 -2px 6px rgba(30, 20, 5, .25), 0 10px 22px rgba(4, 28, 12, .3); }
@media (min-resolution: 2dppx) { .home .tools-home { background: url(/img/tools-sand-960.webp) center / cover padding-box, url(/img/tools-grass-900.webp) center / cover border-box, #3E6B2A border-box; } }
.home .tools-home::before { border-radius: 15px; }
/* Even collar (Luke, 2026-10-12): the grass is an evenly lit, seamless strip repeated all round, so no corner shows a darker patch. */
.home .tools-home, .home .tools-home:is(*) { background: url(/img/tools-sand-480.webp) center / cover padding-box, url(/img/tools-grass-900.webp) 0 0 / 240px auto repeat border-box, #4A7A2E border-box; }
@media (min-resolution: 2dppx) { .home .tools-home, .home .tools-home:is(*) { background: url(/img/tools-sand-960.webp) center / cover padding-box, url(/img/tools-grass-900.webp) 0 0 / 240px auto repeat border-box, #4A7A2E border-box; } }

/* Start a round gets a raked-sand collar all round (Luke, 2026-10-12), the same trimmed edge as the tools bunker: an even sand
   band on all four sides, rounded corners, a crisp lip onto the picture. The old brass left edge goes (it broke the symmetry). */
.home .start-tile { border: 11px solid transparent; border-radius: 26px;
  background: url(/img/start-aerial.webp) 50% 8% / 112% auto padding-box, url(/img/start-sand-strip.webp) 0 0 / 240px auto repeat border-box, #C4A574 border-box;
  box-shadow: inset 0 0 0 1.5px rgba(70, 50, 20, .55), inset 0 6px 10px rgba(50, 35, 10, .35), 0 14px 30px rgba(0, 0, 0, .4); }

/* Clouds holding the weather card up, and its small weather system (see cloudRing in home.js). Subtle on purpose. */
.home .lift.on-clouds { margin-bottom: 24px; }
.home .day-clouds, .home .day-wx { position: absolute; inset: 0; pointer-events: none; }
.home .day-clouds.back, .home .day-wx { z-index: 0; }
.home .day-clouds.front { z-index: 3; }
.home .day-clouds .cl { position: absolute; display: block; height: auto; max-width: none; opacity: 0;
  animation: cloud-life calc(var(--d) * var(--spd, 1)) ease-in-out infinite; animation-delay: calc(var(--k) * -2.1s); }
.home .day-clouds .cl.twin { animation-delay: calc(var(--k) * -2.1s - var(--d) * var(--spd, 1) / 2); }
.home .day-clouds .cl[hidden] { display: none; }
@keyframes cloud-life {   /* forms, holds, then thins and spreads away; a short clear gap before the next life */
  0%   { opacity: 0;   transform: translateX(calc(-8px * var(--drift, 1))) scale(.86, .84); }
  22%  { opacity: .95; transform: translateX(calc(-3px * var(--drift, 1))) scale(.98); }
  55%  { opacity: .9;  transform: translateX(calc(3px * var(--drift, 1))) scale(1.03); }
  86%  { opacity: 0;   transform: translateX(calc(9px * var(--drift, 1))) scale(1.12, 1.06); }
  100% { opacity: 0;   transform: translateX(calc(10px * var(--drift, 1))) scale(1.12, 1.06); }
}
.home .lift.on-clouds > .day { animation: rise 520ms cubic-bezier(.2, .7, .2, 1) forwards, day-float 7s ease-in-out 600ms infinite alternate; }
@keyframes day-float { from { translate: calc(var(--tlx, 0) * 5px) calc(-5px + var(--tly, 0) * 4px); } to { translate: calc(var(--tlx, 0) * 5px) calc(-10px + var(--tly, 0) * 4px); } }
.home .lift.on-clouds::before, .home .lift.on-clouds::after { opacity: .35; }
/* per weather */
.home .lift[data-wx="overcast"] .cl { filter: grayscale(.45) brightness(.8); }
.home .lift[data-wx="rain"] .cl { filter: grayscale(.4) brightness(.72); }
.home .lift[data-wx="storm"] .cl:not([src*="storm"]) { filter: grayscale(.5) brightness(.5); }
.home .lift[data-wx="fog"] .cl { filter: brightness(.96) blur(1.5px); }
.home .lift[data-wx^="night"] .cl { filter: brightness(.42) saturate(.5) sepia(.25) hue-rotate(185deg); }
.home .lift[data-wx="windy"] { --spd: .6; --drift: 2.6; }
.home .lift[data-wx="storm"] { --spd: .8; --drift: 1.6; }
.home .day-wx > * { position: absolute; display: block; opacity: 0; }
.home .wx-sun { left: -46px; top: -50px; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 180, .55), rgba(255, 214, 140, .22) 45%, rgba(255, 214, 140, 0)); }
.home .lift:is([data-wx="clear"], [data-wx="partly"]):not([data-hour="night"]) .wx-sun { opacity: 1; animation: sun-breathe 9s ease-in-out infinite alternate; }
.home .lift[data-hour="golden"] .wx-sun { background: radial-gradient(closest-side, rgba(255, 196, 120, .6), rgba(255, 160, 90, .22) 45%, rgba(255, 160, 90, 0)); }
@keyframes sun-breathe { from { transform: scale(.94); } to { transform: scale(1.06); } }
.home .wx-rain { left: 8%; right: 8%; bottom: -36px; height: 46px;
  background: repeating-linear-gradient(104deg, transparent 0 7px, rgba(220, 232, 245, .55) 7px 8px, transparent 8px 15px);
  background-size: 15px 26px; -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 55%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 55%, transparent); }
.home .lift:is([data-wx="rain"], [data-wx="storm"]) .wx-rain { opacity: .6; animation: rain-fall .5s linear infinite; }
@keyframes rain-fall { to { background-position: -6px 26px; } }
.home .wx-bolt { right: -9%; bottom: -26%; width: 30%; height: auto; }
.home .lift[data-wx="storm"] .wx-bolt { animation: bolt 9s steps(1, end) infinite; }
@keyframes bolt { 0%, 90%, 93%, 95%, 100% { opacity: 0; } 91% { opacity: .95; } 94% { opacity: .7; } }
.home .wx-mist { left: -6%; right: -6%; bottom: -20px; height: 46px; z-index: 4; border-radius: 50%;
  background: radial-gradient(60% 50% at 50% 50%, rgba(235, 240, 245, .5), rgba(235, 240, 245, 0)); filter: blur(4px); }
.home .lift[data-wx="fog"] .wx-mist { opacity: 1; animation: mist 16s ease-in-out infinite alternate; }
@keyframes mist { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) {
  .home .day-clouds .cl { animation: none; opacity: .9; } .home .day-clouds .cl.twin { display: none; }
  .home .lift.on-clouds > .day, .home .day-wx > * { animation: none !important; }
}
.home .day[data-week] { padding: 24px 24px 50px; }
.home .day .day-live { top: 20px; right: 22px; }
.home .day .day-week { right: 22px; bottom: 18px; }
.home .day .day-hi { padding-right: 70px; }
.home .day { margin: 14px 0 8px; }
.home .sheet-home { overflow-x: clip; }

/* Start a round: a wider sand frame, the same width on every side (Luke, 2026-10-12). */
.home .start-tile { border-width: 20px; border-radius: 32px; }
/* Lightning on thunder showers (Luke, 2026-10-12): every few seconds a double flicker lights the card, in step with the bolt. */
.home .wx-flash { position: absolute; inset: 0; z-index: 4; border-radius: 30px; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 85% 100%, rgba(255, 244, 220, .55), rgba(220, 230, 255, .18) 60%, rgba(220, 230, 255, 0)); }
.home .lift[data-wx="storm"] .wx-flash { animation: bolt 9s steps(1, end) infinite; }
.home .lift[data-wx="storm"] .wx-bolt { animation-name: bolt; }
@keyframes bolt { 0%, 90%, 93%, 95%, 100% { opacity: 0; } 91% { opacity: .9; } 94% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .home .wx-flash { animation: none !important; } }

/* Start a round (Luke, 2026-10-12 late): the sand frame read as "something else", so the edge is now a close-mown putting
   green (img/green-edge.webp, tools/make_green_edge.py), and the card is tall enough to show the whole hills-and-clouds picture. */
.home .start-tile { border-width: 14px; border-radius: 30px; aspect-ratio: 3 / 2; min-height: 0;
  background: url(/img/start-aerial.webp) 50% 50% / cover padding-box, url(/img/green-edge.webp) 0 0 / 180px auto repeat border-box, #3E8034 border-box;
  box-shadow: inset 0 0 0 1px rgba(10, 40, 12, .55), inset 0 4px 10px rgba(10, 30, 10, .35), 0 14px 30px rgba(0, 0, 0, .4); }
.home .start-tile .start-art { position: absolute; right: 16.5%; bottom: 23%; width: 24%; height: auto; aspect-ratio: 1; margin: 0; }   /* up on the crest of the near hill, a little in from the corner; sized with the card so it lands on the same spot on every phone */
/* Last round: one golf ball on a striped green behind the card, for every course (Luke, 2026-10-12). Ball kept clear at the
   bottom left; a light wash at the top so the words read. */
.lc-aerial.lc-ball img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 72%; filter: none; }
.lc-aerial.lc-ball::after { background: linear-gradient(180deg, rgba(5, 26, 12, .38) 0%, rgba(5, 26, 12, .12) 50%, rgba(5, 26, 12, .3) 100%); }
/* The ball sits in its own space under the club crest: the dots and the bottom line start where the course name starts. */
.home .lastcard { --lc-indent: 60px; }
.home .lastcard .lc-foot .small { min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home .lastcard .lc-strip { padding-left: var(--lc-indent); }
.home .lastcard .lc-foot { padding-left: var(--lc-indent); }
.lc-aerial.lc-ball img { object-position: 0% 100%; }

/* 3D card, third version (Luke, 2026-10-12): three phones in a meadow under a blue sky, one 4:5 video. The words sit in the
   sky above the phones in dark navy (they read on both the blue and the cloud), so there is no dark wash and nothing to step
   aside halfway. */
.home .n3d.trio { aspect-ratio: 4 / 5; min-height: 0; align-content: start; gap: 4px; padding: 16px 18px; color: #0B2540; background: #8CCBEB center / cover url(/img/brand/new3d-trio-poster.jpg); }
.home .n3d.trio .n3d-vid { object-position: 50% 50%; }
.home .n3d.trio .n3d-h { max-width: 24ch; font-size: 22px; line-height: 1.1; color: #0B2540; text-shadow: 0 0 14px rgba(255, 255, 255, .65), 0 1px 1px rgba(255, 255, 255, .5); }
/* the D of "3D": right half of the planet logo (its planet fills 210 of the video's 240 px, centred at 50.2% / 50.6%), so the
   cut edge is the D's straight back (solid, no hole: Luke, 2026-10-12) */
.home .n3d.trio .n3d-dee { position: relative; display: inline-block; width: .4em; height: .8em; margin-left: .03em; vertical-align: -.02em; overflow: hidden;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0A50 50 0 0 1 0 100Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0A50 50 0 0 1 0 100Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.home .n3d.trio .n3d-dee video { position: absolute; width: .914em; height: .914em; left: -.459em; top: -.063em; max-width: none; object-fit: cover; }
.home .n3d.trio .hf-go { right: 14px; bottom: 14px; background: #FFFFFF; color: #0B2540; box-shadow: 0 2px 8px rgba(4, 28, 12, .25); }

/* Hole-in-one card: the real Scratch logo (planet, word, crossed tees) in the top-left instead of the "Scratch X" pill (Luke, 2026-10-12). */
/* Hole-in-one "How it works" (Luke, 2026-10-12): a quiet line under Play that opens to three short steps; small on purpose. */
.home .hio-how { margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.home .hio-how summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; list-style: none; font-weight: 650; color: #E6C98A; }
.home .hio-how summary::-webkit-details-marker { display: none; }
.home .hio-how summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 150ms ease-out; }
.home .hio-how[open] summary::after { transform: translateY(1px) rotate(225deg); }
.home .hio-how summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.home .hio-how ol { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.home .hio-how p { margin: 6px 0 0; color: rgba(255, 255, 255, .6); }
/* the logo sits in clear sky above the palms (Luke, 2026-10-13: no dark glow, keep the picture clear): the picture sits a
   little lower so the palms clear the logo while the island and flag stay in view, and the logo rides higher and smaller */

/* Link to HNA on a band of crisscross mown grass (the Start pill's grass, docs/design/src/start-pill-grass.jpg). */
.home .grass-band { position: relative; margin: 22px -16px 0; padding: 22px 16px 26px;
  background: linear-gradient(rgba(6, 26, 12, .12), rgba(6, 26, 12, .28)), url(/img/band-grass-900.webp) center / cover, #3E7A3A;
  box-shadow: inset 0 10px 14px -10px rgba(0, 0, 0, .45), inset 0 -10px 14px -10px rgba(0, 0, 0, .45); }
.home .grass-band > .section { margin-top: 0; }
.home .grass-band > .section + .section { margin-top: 18px; }
.home .grass-band { padding: 30px 16px 34px; background: linear-gradient(rgba(6, 26, 12, .06), rgba(6, 26, 12, .2)), url(/img/band-grass-900.webp) 50% 0 / 100% auto no-repeat, #3E7A3A; }
.home .grass-band > .section + .section { margin-top: 24px; }
.home .grass-band .lift::before, .home .grass-band .lift::after { opacity: .3; }
.home .grass-band .hna-feature { box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }

/* The eagle on Start a round (Luke, 2026-10-13, js/eagle.js): its canvas reaches up from the card for the fly-off; the card
   gets room above it so the perched bird never sits on the words of the card above. */
.home .lift.has-eagle { margin-top: 30px; }   /* Luke 13 Oct: the 96 px gap was too big; the bird may stand up into the space above, on the right where there are no words */
.home .lift:has(> .start-tile) { transition: margin-top 700ms cubic-bezier(.2, .8, .2, 1); }   /* the gap closes softly once the eagle has flown */
.home .lift > .eagle-cv { position: absolute; left: 0; z-index: 3; pointer-events: none; }
.home .grass-band { padding: 26px 16px 30px; }

/* Marker · The Vault sits on a band of the gold Aztec sun stone, turned on its side (Luke), the face centred behind the card (Luke's picture,
   docs/design/src/vault-sunstone-luke-supplied.jpg, licence unknown: demo-only until replaced). */
.home .vault-band { position: relative; margin: 22px -16px 0; padding: 34px 16px 38px;
  background: radial-gradient(130% 100% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .25) 100%), url(/img/vault-sunstone-900.webp) 53% 50% / cover, #6B5418;
  box-shadow: inset 0 10px 14px -10px rgba(0, 0, 0, .55), inset 0 -10px 14px -10px rgba(0, 0, 0, .55); }
.home .vault-band > .section { margin-top: 0; }
.home .vault-band + .grass-band { margin-top: 0; }

/* Marker band = our own embossed gold (Luke's reference was Versace's Barocco: their trademark, not used), and a dark
   bronze threshold strip with the Aztec stepped band where the gold meets the grass, like brass between marble and lawn. */
.home .vault-band { background: radial-gradient(130% 100% at 50% 50%, rgba(255, 245, 210, .18) 0%, rgba(0, 0, 0, 0) 55%, rgba(70, 40, 0, .22) 100%), url(/img/marker-emboss.webp) 0 0 / 240px auto repeat, #D6A83E; padding-bottom: 46px; }
.home .vault-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cg fill='none' stroke-width='1.4' stroke-linecap='square'%3E%3Cpath d='M0 11.3H24M2 11.3V8H6V4.6H10V1.2H21V8.4H14.2V5H17.4' stroke='%23F2CF74' stroke-opacity='.95'/%3E%3C/g%3E%3C/svg%3E") 0 3px / 24px 12px repeat-x, linear-gradient(#5A3C0A, #2E1E04);
  box-shadow: 0 -1px 0 rgba(255, 236, 170, .55), 0 3px 6px rgba(0, 0, 0, .5); }

/* the same bronze strip along the top of the gold, so it is framed both sides (Luke) */
.home .vault-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cg fill='none' stroke-width='1.4' stroke-linecap='square'%3E%3Cpath d='M0 11.3H24M2 11.3V8H6V4.6H10V1.2H21V8.4H14.2V5H17.4' stroke='%23F2CF74' stroke-opacity='.95'/%3E%3C/g%3E%3C/svg%3E") 0 3px / 24px 12px repeat-x, linear-gradient(#5A3C0A, #2E1E04);
  box-shadow: 0 1px 0 rgba(255, 236, 170, .55), 0 -3px 6px rgba(0, 0, 0, .5); }
.home .vault-band { padding-top: 48px; }
/* under Link to HNA: a strip of dark green leather with gold stitching, like the trim of a golf bag */
.home .grass-band { padding-bottom: 46px; }
.home .grass-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(232, 196, 110, .95) 0 7px, transparent 7px 12px) 0 50% / 100% 1.6px no-repeat,
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, rgba(0, 0, 0, .06) 2px 4px),
    linear-gradient(#1F4A2A, #0E2A17);
  box-shadow: 0 -1px 0 rgba(150, 210, 150, .35), inset 0 1px 2px rgba(255, 255, 255, .08), 0 3px 6px rgba(0, 0, 0, .5); }
/* the same green leather trim with its gold stitching along the top edge too (Luke, 2026-10-25) */
.home .grass-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(232, 196, 110, .95) 0 7px, transparent 7px 12px) 0 50% / 100% 1.6px no-repeat,
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, rgba(0, 0, 0, .06) 2px 4px),
    linear-gradient(#1F4A2A, #0E2A17);
  box-shadow: 0 1px 0 rgba(150, 210, 150, .35), inset 0 -1px 2px rgba(255, 255, 255, .08), 0 3px 6px rgba(0, 0, 0, .5); }
.home .grass-band { padding-top: 46px; }

/* The tablecloth over the top of the weather card (see cloudRing). Behind: clouds along the top edge, rising and settling.
   Front: two clouds that roll over the lip and sink a little way down, faded out downwards so they stay clear of the words.
   Each one is there for about half its cycle, so the cloth comes and goes. */
.home .day-cloth { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; }
.home .day-cloth.back { z-index: 0; }
.home .day-cloth.front { z-index: 3; }
.home .day-cloth .clc { position: absolute; display: block; height: auto; max-width: none; opacity: 0; bottom: -18px;
  animation: cloth-back var(--d) ease-in-out var(--dl) infinite; }
.home .day-cloth.front .clc { bottom: auto; top: -26px;
  -webkit-mask-image: linear-gradient(#000 35%, transparent 80%); mask-image: linear-gradient(#000 35%, transparent 80%);
  animation-name: cloth-spill; }
.home .day-cloth .clc[hidden] { display: none; }
@keyframes cloth-back {
  0%   { opacity: 0;   transform: translate(-14px, 10px) scale(.92); }
  22%  { opacity: .9;  transform: translate(-4px, 0) scale(1); }
  45%  { opacity: .85; transform: translate(8px, -3px) scale(1.04); }
  60%  { opacity: 0;   transform: translate(14px, -6px) scale(1.08); }
  100% { opacity: 0;   transform: translate(14px, -6px) scale(1.08); }
}
@keyframes cloth-spill {
  0%, 18% { opacity: 0;   transform: translate(-16px, -10px) scale(.95); }
  34%     { opacity: .85; transform: translate(-4px, 0) scale(1); }
  52%     { opacity: .7;  transform: translate(8px, 12px) rotate(1.5deg) scale(1.04); }
  66%     { opacity: 0;   transform: translate(14px, 20px) rotate(2deg) scale(1.08); }
  100%    { opacity: 0;   transform: translate(14px, 20px) rotate(2deg) scale(1.08); }
}
.home .lift[data-wx="overcast"] .clc { filter: grayscale(.45) brightness(.8); }
.home .lift[data-wx="rain"] .clc { filter: grayscale(.4) brightness(.72); }
.home .lift[data-wx="fog"] .clc { filter: brightness(.96) blur(1.5px); }
.home .lift[data-wx^="night"] .clc { filter: brightness(.42) saturate(.5) sepia(.25) hue-rotate(185deg); }
.home .lift[data-wx="windy"] .clc { animation-duration: calc(var(--d) * .6); }
@media (prefers-reduced-motion: reduce) { .home .day-cloth { display: none; } }
/* realism (Luke): soft edges all round, and the higher a wisp rises the more see-through it gets; thin wisps may cross the words */
.home .day-cloth.back .clc { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 62%, #000 45%, transparent 100%), linear-gradient(to top, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 62%, #000 45%, transparent 100%), linear-gradient(to top, #000 35%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.home .day-cloth.front .clc { -webkit-mask-image: radial-gradient(ellipse 50% 46% at 50% 38%, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse 50% 46% at 50% 38%, #000 35%, transparent 100%); }
@keyframes cloth-back {
  0%   { opacity: 0;   transform: translate(-14px, 10px) scale(.92); }
  22%  { opacity: .75; transform: translate(-4px, 0) scale(1); }
  45%  { opacity: .6;  transform: translate(8px, -6px) scale(1.04); }
  60%  { opacity: 0;   transform: translate(14px, -14px) scale(1.1); }
  100% { opacity: 0;   transform: translate(14px, -14px) scale(1.1); }
}
@keyframes cloth-spill {
  0%, 18% { opacity: 0;   transform: translate(-16px, -10px) scale(.95); }
  34%     { opacity: .6;  transform: translate(-4px, 0) scale(1); }
  52%     { opacity: .45; transform: translate(8px, 14px) rotate(1.5deg) scale(1.04); }
  66%     { opacity: 0;   transform: translate(14px, 24px) rotate(2deg) scale(1.08); }
  100%    { opacity: 0;   transform: translate(14px, 24px) rotate(2deg) scale(1.08); }
}

/* Daytime overcast (Luke, 2026-10-13): grey and heavy, but clearly daytime, with a little light breaking through the cloud, never a night
   sky. Only the day-and-overcast case changes; night, rain, storm and fog keep their own looks. The sky is lifted only a little (white
   words measured 4.7:1 on the day line, 4.1:1 on the big greeting, against 5.3 / 4.7 before; a bigger lift washed them out) and the daylight
   comes from a soft pale sun glowing through the cloud in the top-right, where no words sit. */
.day[data-sky="overcast"][data-hour="day"] .day-sky { filter: brightness(.86) contrast(.95) saturate(.9); }
.day[data-sky="overcast"][data-hour="day"]::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle 84px at 83% 11%, rgba(255, 252, 240, .78) 0, rgba(255, 246, 220, .46) 18%, rgba(255, 238, 196, .2) 48%, rgba(255, 238, 196, 0) 100%);
  animation: sun-break 16s ease-in-out infinite alternate; }
@keyframes sun-break { from { opacity: .72; transform: translateX(-8px); } to { opacity: 1; transform: translateX(5px); } }
.home .lift[data-wx="overcast"]:not([data-hour="night"]) .cl { filter: grayscale(.25) brightness(.96); }
@media (prefers-reduced-motion: reduce) { .day[data-sky="overcast"][data-hour="day"]::after { animation: none; } }

/* Sun rays (Luke, 2026-10-13): beams fanning out from where the sun really is, stronger the harder it shines. Sits above the sky picture and
   below the words; fades away from the sun so the greeting side stays readable. Static under reduced motion. */
.day > .day-rays { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: block; opacity: calc(.2 + .45 * var(--rs, .5));
  background:
    radial-gradient(circle at var(--rx) var(--ry), var(--rw) 0, rgba(255, 255, 255, 0) 38%),
    repeating-conic-gradient(from 160deg at var(--rx) var(--ry), rgba(255, 255, 255, .55) 0 2.5deg, rgba(255, 255, 255, 0) 2.5deg 7deg, rgba(255, 255, 255, .3) 7deg 8.5deg, rgba(255, 255, 255, 0) 8.5deg 13deg);
  -webkit-mask-image: radial-gradient(ellipse 75% 95% at var(--rx) var(--ry), #000 0, rgba(0, 0, 0, .55) 45%, transparent 85%);
          mask-image: radial-gradient(ellipse 75% 95% at var(--rx) var(--ry), #000 0, rgba(0, 0, 0, .55) 45%, transparent 85%);
  animation: ray-breathe 9s ease-in-out infinite alternate; }
@keyframes ray-breathe { from { opacity: calc(.2 + .45 * var(--rs, .5)); } to { opacity: calc(.12 + .35 * var(--rs, .5)); } }
@media (prefers-reduced-motion: reduce) { .day > .day-rays { animation: none; } }

/* The heads-up line under the day (rain in 25 min, rain at a nearby airport). Small, same reading shadow as the day line. */
.day-note { margin: 3px 0 0; font-size: 13.5px; line-height: 1.35; font-weight: 600; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 0 14px rgba(0, 0, 0, .45); }
.day-note[hidden] { display: none; }

/* Lightning inside the clouds (Luke, 2026-10-13): in a storm, three soft patches deep in the card's cloud light up in quick double flickers, each in
   its own place and on its own beat so it never looks like a loop. CSS only (opacity); hidden unless the sky is a storm; off under reduced motion. */
.day > .wx-glow { display: none; position: absolute; z-index: 1; pointer-events: none; opacity: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 240, 255, .8), rgba(190, 208, 255, .34) 45%, rgba(190, 208, 255, 0)); }
.day:is([data-sky="storm"], [data-sky="night-storm"], [data-sky="hail"]) > .wx-glow { display: block; }
.day > .wx-glow.g1 { left: -8%; top: -30%; width: 55%; height: 95%; }
.day > .wx-glow.g2 { left: 32%; top: 10%; width: 50%; height: 90%; }
.day > .wx-glow.g3 { right: -12%; top: -20%; width: 48%; height: 85%; }
.day:is([data-sky="storm"], [data-sky="night-storm"], [data-sky="hail"]) > .wx-glow.g1 { animation: glow-a 7.3s steps(1, end) infinite; }
.day:is([data-sky="storm"], [data-sky="night-storm"], [data-sky="hail"]) > .wx-glow.g2 { animation: glow-b 11.1s steps(1, end) infinite -3s; }
.day:is([data-sky="storm"], [data-sky="night-storm"], [data-sky="hail"]) > .wx-glow.g3 { animation: glow-c 8.9s steps(1, end) infinite -6s; }
@keyframes glow-a { 0%, 38%, 40%, 41.5%, 43%, 100% { opacity: 0; } 39% { opacity: .75; } 41% { opacity: .35; } 42% { opacity: .6; } }
@keyframes glow-b { 0%, 71%, 73.5%, 75%, 100% { opacity: 0; } 72% { opacity: .85; } 74% { opacity: .4; } }
@keyframes glow-c { 0%, 12%, 14%, 15%, 17%, 100% { opacity: 0; } 13% { opacity: .6; } 16% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .day > .wx-glow { animation: none !important; } }
.home .grass-band + .vault-band { margin-top: 0; }
/* With the eagle perched on Start a round (right-hand side), the demo note keeps its words and "Clear them" on the left
   and leaves the right of the box empty for the bird to stand over. */
.home .idx-notes:has(+ .lift.has-eagle) .demo-note, .home .idx-notes:has(~ .lift.has-eagle) .demo-note { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 120px 8px 12px; }
.home .idx-notes:has(+ .lift.has-eagle) .demo-note .btn, .home .idx-notes:has(~ .lift.has-eagle) .demo-note .btn { padding-left: 0; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }

/* the weather card: the green contour lines sit behind the glass and the clouds (Luke, 2026-10-20) */
.day::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .85;
  background: var(--ground-lines, none) center top / 124% auto repeat-y; }
/* labels that now sit straight on the contours */
.home .home-group h2 { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 3px rgba(0, 20, 10, .75); }

/* Weather card as one thick, glossy pane of glass (Luke, 2026-10-23: "one glass, with the thickness of the inner slab"): a bright top lip, a bevelled inner edge, a soft sheen and a deeper shadow. Looks only — no layout, so the card keeps its size. */
.day { background: linear-gradient(165deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .03) 62%, rgba(255, 255, 255, .14) 100%);
  border: 1px solid rgba(255, 255, 255, .50);
  -webkit-backdrop-filter: blur(10px) saturate(1.25); backdrop-filter: blur(10px) saturate(1.25);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .10), inset 0 3px 0 rgba(255, 255, 255, .65), inset 0 -4px 10px rgba(0, 0, 0, .26), inset 0 0 24px rgba(255, 255, 255, .12), 0 10px 24px rgba(0, 0, 0, .30); }

/* ════ First-visit film (Luke, 2026-10-24): "Map. Then satellite. Now the course itself, in 3D." pops up once, ever ═════════════════════════ */
.intro3d { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 18px; background: rgba(4, 12, 8, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: i3-in 220ms ease-out; }
.intro3d .i3-card { position: relative; width: min(100%, 360px); max-height: 100%; overflow: auto; border-radius: 20px; padding: 14px 14px 16px; color: #F3E4BD;
  background:
    radial-gradient(130% 90% at 20% -10%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)),
    url("/img/leather-grain.webp") 0 0 / 300px 300px,
    radial-gradient(120% 140% at 15% 0%, #34322E 0%, #1A1917 48%, #0A0A09 100%);
  background-blend-mode: normal, normal, overlay, normal; box-shadow: 0 24px 50px rgba(0, 0, 0, .7); }
.intro3d .i3-vid { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; background: #000; }
.intro3d .i3-h { margin: 12px 4px 4px; font-family: var(--serif); font-size: 20px; line-height: 1.2; text-align: center; color: #F3E4BD; }
.intro3d .i3-foot { display: grid; gap: 8px; margin-top: 12px; }
.intro3d .i3-go, .intro3d .i3-later { min-height: 46px; border: 0; border-radius: 999px; font: 700 16px/1 var(--sans, system-ui); cursor: pointer; }
.intro3d .i3-go { background: linear-gradient(#F0D9A0, #D9B86C); color: #10281B; box-shadow: 0 2px 6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
.intro3d .i3-later { background: none; color: rgba(243, 228, 189, .85); box-shadow: inset 0 0 0 1.5px rgba(243, 228, 189, .4); }
.intro3d .i3-x { position: absolute; top: 6px; right: 6px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.intro3d .i3-x .ico { width: 20px; height: 20px; }
.intro3d button:focus-visible { outline: 2px solid #E6C98A; outline-offset: 2px; }
@keyframes i3-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .intro3d { animation: none; } }

/* ════ The Clubhouse brass door sign (Luke, 2026-10-25): black leather, gold stitching, gold lettering, the crest beside it ═════════════════════ */
.home .home-group { margin: 30px 0 14px; }
.home .home-group .cb-sign { position: relative; padding: 16px 14px 14px; border-radius: 14px; text-align: center; color: #F3E4BD;
  background:
    radial-gradient(130% 90% at 20% -10%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)),
    url("/img/leather-grain.webp") 0 0 / 300px 300px,
    radial-gradient(120% 140% at 15% 0%, #34322E 0%, #1A1917 48%, #0A0A09 100%);
  background-blend-mode: normal, normal, overlay, normal; box-shadow: 0 8px 18px rgba(0, 0, 0, .55); }
.home .home-group .cb-sign::after { content: ""; position: absolute; inset: 5px; border: 1.5px dashed rgba(246, 214, 160, .75); border-radius: 10px; pointer-events: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }
.home .home-group .cb-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.home .home-group .ch-crest { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
.home .home-group .ch-orb { border-radius: 50%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.home .home-group h2 { margin: 0; font: 800 clamp(24px, 7.6vw, 29px)/1 "Cinzel", Georgia, serif; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(180deg, #FFF3B8, #E9B93A 50%, #9A6A0E); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
.home .home-group .cb-sign p { margin: 9px 0 0; font: 600 10.5px/1.2 var(--sans, system-ui); letter-spacing: .28em; text-transform: uppercase; color: #F3E4BD; }

/* ════ The hole-in-one band (Luke, 2026-10-25): the same full-width footprint as the Marker band, green contours with the green leather trim and gold
   stitching along top and bottom, the card sitting in the middle at the same inner width as Marker's. ════════════════════════════════════════ */
.home .hio-band { position: relative; margin: 14px -16px 0; padding: 50px 16px 54px;
  background: var(--ground-lines, none) center top / 124% auto repeat-y, var(--ground-terr, none) center top / 124% auto repeat-y, linear-gradient(180deg, #1B4029, #0F2A1C); }
.home .hio-band > .section { margin: 0; }
.home .hio-band::before, .home .hio-band::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(232, 196, 110, .95) 0 7px, transparent 7px 12px) 0 50% / 100% 1.6px no-repeat,
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, rgba(0, 0, 0, .06) 2px 4px),
    linear-gradient(#1F4A2A, #0E2A17); }
.home .hio-band::before { top: 0; box-shadow: 0 1px 0 rgba(150, 210, 150, .35), inset 0 -1px 2px rgba(255, 255, 255, .08), 0 3px 6px rgba(0, 0, 0, .5); }
.home .hio-band::after { bottom: 0; box-shadow: 0 -1px 0 rgba(150, 210, 150, .35), inset 0 1px 2px rgba(255, 255, 255, .08), 0 3px 6px rgba(0, 0, 0, .5); }

/* the Clubhouse sign, about 40% smaller (Luke, 2026-10-25): a compact brass plate in the middle, not a full-width banner */
.home .home-group { margin: 18px 0 10px; text-align: center; }
.home .home-group .cb-sign { display: inline-block; padding: 9px 20px 8px; border-radius: 10px; }
.home .home-group .cb-sign::after { inset: 3px; border-radius: 7px; border-width: 1px; }
.home .home-group .cb-row { gap: 8px; }
.home .home-group .ch-crest { width: 36px; height: 36px; }
.home .home-group h2 { font-size: clamp(16px, 5vw, 19px); letter-spacing: .1em; }
.home .home-group .cb-sign p { margin: 5px 0 0; font-size: 7.5px; letter-spacing: .22em; }
/* the small line sits right under the word CLUBHOUSE, centred on it rather than on the orb + word (Luke, 2026-10-25); the indent balances the
   letter-spacing after the last letter so it is truly centred */
.home .home-group .cb-words { display: flex; flex-direction: column; align-items: center; }
.home .home-group .cb-words p { margin: 3px 0 0; font-size: 6.5px; letter-spacing: .2em; text-indent: .2em; }

/* ════ Clubhouse News (Luke, 2026-10-25, "the broadsheet"): a folded newspaper front page at the top of the Clubhouse, above Marker. Old-English masthead with
   boxed ears, a ruled date line, a big serif headline, the lead picture printed black-and-white with a halftone screen, and two justified
   columns fading into the fold. Tap it to open: the columns run in full and the other stories follow. Pictures are free-licence and credited. */
@font-face { font-family: "Clubhouse Blackletter"; src: url(/fonts/unifraktur-maguntia-latin.woff2) format("woff2"); font-display: swap; }   /* OFL, fonts/UnifrakturMaguntia-OFL.txt */
@font-face { font-family: "Clubhouse Headline"; src: url(/fonts/playfair-display-latin-var.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }   /* OFL, fonts/PlayfairDisplay-OFL.txt */
.home .news-col { margin-top: 12px; }
.home .nw-paper { --ink: #1B1914; --ink-soft: #4A443A; --rule: rgba(27, 25, 20, .3); --kick: #B5261B;
  --head: "Clubhouse Headline", Georgia, serif; --text: Georgia, "Times New Roman", serif;
  position: relative; overflow: hidden; padding: 12px 14px 12px; border-radius: 2px; color: var(--ink);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .34  0 0 0 0 .22  0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, #F2EAD6, #E8DCBF);
  box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .8), 0 2px 4px rgba(0, 0, 0, .35); }
.home .nw-paper:not([open])::after { content: ""; position: absolute; left: 0; right: 0; top: 62%; height: 26px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(80, 60, 20, .1) 48%, rgba(255, 255, 255, .35) 52%, transparent); }   /* the fold */
.home .nw-front { display: block; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.home .nw-front::-webkit-details-marker { display: none; }
.home .nw-front:focus-visible { outline: 2px solid var(--kick); outline-offset: 4px; }
.home .nw-front > span { display: block; }
.home .nw-mast { display: grid !important; grid-template-columns: 62px minmax(0, 1fr) 62px; align-items: center; gap: 4px; }
.home .nw-ear { display: grid; place-items: center; min-height: 34px; padding: 3px; border: 1px solid var(--ink); text-align: center;
  font: 700 7.5px/1.2 var(--sans, system-ui); letter-spacing: 0; text-transform: uppercase; color: var(--ink-soft); }
.home .nw-badge { display: inline-flex; align-items: baseline; padding: 0 1px 1px; border-bottom: 2px solid var(--kick); font: 400 19px/.9 "DM Serif Display", Georgia, serif; letter-spacing: -.04em; text-transform: none; }
.home .nw-badge b { font-weight: 400; color: var(--ink); } .home .nw-badge b + b { color: var(--kick); }
.home .nw-name { text-align: center; font: 400 clamp(21px, 7vw, 29px)/1 "Clubhouse Blackletter", "Old English Text MT", Georgia, serif; color: var(--ink); white-space: nowrap; }
.home .nw-line { display: flex !important; justify-content: space-between; gap: 8px; margin-top: 7px; padding: 4px 0; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink);
  font: 600 11px/1.2 var(--sans, system-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.home .nw-line b { color: var(--kick); white-space: nowrap; }
.home .nw-lk { margin: 10px 0 3px; text-align: center; font: 700 11px/1 var(--sans, system-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--kick); }
.home .nw-lh { text-align: center; font: 900 27px/1.02 var(--head); letter-spacing: -.01em; text-wrap: balance; color: var(--ink); }
.home .nw-deck { margin-top: 6px; text-align: center; font: italic 400 13px/1.3 var(--text); color: var(--ink-soft); }
.home .nw-ph { display: block; margin: 9px 0 0; }
.home .nw-pic { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--ink); filter: grayscale(1) contrast(1.18) sepia(.12); }
.home .nw-ph::after { content: none; }
.home .nw-cap { display: block; margin-top: 4px; font: italic 400 12px/1.3 var(--text); color: var(--ink-soft); }
.home .nw-cap small { font: 600 10px/1 var(--sans, system-ui); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.home .nw-cols { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--rule); columns: 2; column-gap: 14px; column-rule: 1px solid var(--rule);
  font: 400 12.5px/1.4 var(--text); text-align: left; color: var(--ink); }   /* narrow columns: justified text left rivers between the words */
.home .nw-cols::first-letter { float: left; margin: 2px 4px 0 0; font: 900 30px/.85 var(--head); }
/* folded it stays short (Luke, 2026-10-25: "a smaller section"): no picture until it opens, and only the opening lines */
.home .nw-paper:not([open]) .nw-front .nw-ph { display: none; }
.home .nw-paper:not([open]) .nw-cols { height: 72px; overflow: hidden; -webkit-mask: linear-gradient(180deg, #000 65%, transparent); mask: linear-gradient(180deg, #000 65%, transparent); }
.home .nw-foot { display: flex !important; justify-content: space-between; align-items: center; gap: 10px; min-height: 30px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ink);
  font: 700 11px/1.25 var(--sans, system-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.home .nw-on { flex: none; display: inline-flex; align-items: center; min-height: 32px; color: var(--kick); }
.home .nw-paper:not([open]) .nw-fold, .home .nw-paper[open] .nw-shut { display: none; }
.home .nw-inside { margin-top: 4px; }
.home .nw-leadsrc { margin: 0; padding: 8px 0 4px; font: 600 11px/1.3 var(--sans, system-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.home .nw-story { padding: 12px 0 10px; border-top: 1px solid var(--rule); }
.home .nw-story .nw-ph { margin: 0 0 9px; }
.home .nw-story .nw-pic { aspect-ratio: 3 / 2; object-position: center 25%; }
.home .nw-k { margin: 0 0 4px; font: 700 11px/1.2 var(--sans, system-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--kick); }
.home .nw-h { margin: 0; font: 900 19px/1.15 var(--head); color: var(--ink); text-wrap: balance; }
.home .nw-b { margin: 6px 0 0; font: 400 14px/1.45 var(--text); color: var(--ink-soft); }
.home .nw-src { display: inline-flex; align-items: center; min-height: 32px; margin-top: 2px; font: 700 11px/1 var(--sans, system-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.home .nw-leadsrc .nw-src { min-height: 32px; margin: 0 0 0 4px; font-size: 11px; }
.home .nw-src:active { opacity: .6; }
.home .nw-src:focus-visible { outline: 2px solid var(--kick); outline-offset: 2px; }
@media (max-width: 360px) { .home .nw-mast { grid-template-columns: 56px minmax(0, 1fr) 56px; } .home .nw-ear { font-size: 7px; padding: 2px; } .home .nw-lh { font-size: 24px; } }
@media (max-width: 340px) { .home .nw-mast { grid-template-columns: 52px minmax(0, 1fr); } .home .nw-ear:not(.nw-ear-cn) { display: none; } }   /* smallest phones: the title needs the room */
/* A very old newspaper (Luke, 2026-11-08: "I want that paper to look old ... like a very old newspaper"): yellowed, foxed pulp with darkened
   edges, a coffee ring, worn fold creases, faded brown-black ink and an oxblood kicker, and the pictures printed sepia through a coarse halftone screen. */
.home .nw-paper { --ink: #2A2014; --ink-soft: #54452E; --rule: rgba(60, 40, 15, .35); --kick: #7E2A1C;
  background:
    radial-gradient(circle at 86% 14%, transparent 0 25px, rgba(122, 76, 24, .16) 26px 28px, rgba(122, 76, 24, .06) 29px 31px, transparent 33px),
    radial-gradient(ellipse 9px 7px at 14% 31%, rgba(130, 84, 30, .22), transparent 70%),
    radial-gradient(ellipse 5px 4px at 71% 57%, rgba(130, 84, 30, .2), transparent 70%),
    radial-gradient(ellipse 12px 9px at 38% 83%, rgba(130, 84, 30, .16), transparent 70%),
    radial-gradient(ellipse 4px 4px at 92% 72%, rgba(130, 84, 30, .24), transparent 70%),
    radial-gradient(ellipse 60% 40% at 8% 96%, rgba(120, 78, 26, .22), transparent 70%),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(90, 60, 20, .12) 50%, rgba(255, 248, 230, .25) calc(50% + 1px), transparent calc(50% + 3px)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' seed='11'/><feColorMatrix values='0 0 0 0 .38  0 0 0 0 .27  0 0 0 0 .12  0 0 0 .2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .3  0 0 0 0 .1  0 0 0 .32 0'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>"),
    linear-gradient(180deg, #E6D3A3, #D9C08A 60%, #CDB077);
  box-shadow: inset 0 0 28px rgba(96, 58, 14, .55), inset 0 0 4px rgba(70, 40, 10, .5), 0 18px 30px -14px rgba(0, 0, 0, .8), 0 2px 4px rgba(0, 0, 0, .35); }
.home .nw-paper .nw-name, .home .nw-paper .nw-lh, .home .nw-paper .nw-h { text-shadow: 0 0 .6px rgba(42, 32, 20, .55); }
.home .nw-paper .nw-cols, .home .nw-paper .nw-b, .home .nw-paper .nw-deck { text-shadow: 0 0 .4px rgba(42, 32, 20, .4); }
.home .nw-ph { position: relative; }
.home .nw-pic { filter: grayscale(1) sepia(.75) contrast(1.25) brightness(.92); border-color: rgba(42, 32, 20, .7); }
.home .nw-ph::after { content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; pointer-events: none; mix-blend-mode: multiply; opacity: .45;
  background: radial-gradient(circle, rgba(40, 26, 10, .55) 0.8px, transparent 1.3px) 0 0 / 3px 3px; }
.home .nw-story .nw-ph::after { aspect-ratio: 3 / 2; }
.home .nw-paper:not([open])::after { background: linear-gradient(180deg, transparent, rgba(90, 58, 16, .2) 46%, rgba(255, 246, 220, .35) 52%, transparent); }

/* Three white golf balls (Luke, 2026-11-04, an experiment on `accents`): the Post a score / Calculator / Friends tiles each show a white dimpled ball
   (img/brand/ball-white-198.webp, the same ball as Hole Info), with what used to fill the little cards printed on it in green ink (the ticking score, the
   turning equations, the friends' faces; multiply blend, so the dimples show through the print). The balls hover, each out of step, over a small shadow that
   tightens as the ball rises; still for reduced motion. */
.home .tools-home .tool .qi, .home .tools-home .tool .qi.qi-card, .home .tools-home .tool .qi.qi-eqs, .home .tools-home .tool .qi.qi-faces {
  position: relative; top: 5px; width: 60px; height: 60px; margin-bottom: 10px; border: 0; border-radius: 50%; overflow: visible; clip-path: none; box-sizing: border-box;
  background: url(/img/brand/ball-white-198.webp) center / 100% 100% no-repeat; box-shadow: none; color: #10241A; line-height: 1;
  font-family: var(--serif); font-variation-settings: "opsz" 144; animation: tool-hover 6.5s ease-in-out infinite; }
.home .tools-home .tool .qi.qi-card { display: grid; grid-template-rows: 1.3fr 1fr; justify-items: center; padding: 12px 9px 9px; }
.home .tools-home .tool .qi.qi-eqs { display: grid; grid-template-rows: auto 1fr; justify-items: center; align-items: center; padding: 12px 6px 10px; }
.home .tools-home .tool .qi.qi-faces { display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 14px 6px 9px; }
.home .tools-home .tool .qi > * { zoom: .72; mix-blend-mode: multiply; }
/* the ball hovers a clear gap off the ground (11px) and drifts only 2px up and down; its shadow is pinned to the ground (counter-moved) and shrinks as the ball climbs */
.home .tools-home .tool .qi::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -8px; height: 9px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 20, 8, .5), rgba(0, 20, 8, 0)); animation: tool-shadow 6.5s ease-in-out infinite; }
.home .tools-home .tool:nth-child(2) .qi, .home .tools-home .tool:nth-child(2) .qi::after { animation-delay: -1.5s; }
.home .tools-home .tool:nth-child(3) .qi, .home .tools-home .tool:nth-child(3) .qi::after { animation-delay: -3.1s; }
.home .tools-home .tool:active .qi { transform: scale(.94); animation-play-state: paused; }
/* Post a score ball: only the ticking score, large and centred (the NET / POINTS pair is gone). Calculator ball: a bigger angle diagram and bolder, larger equations. */
.home .tools-home .tool .qi.qi-card { display: grid; place-items: center; padding: 0; grid-template-rows: none; }
.home .tools-home .tool .qi-card .sc-row { display: none; }
.home .tools-home .tool .qi-card .sc-g { zoom: 1.3; font-size: 29px; font-weight: 600; align-self: center; line-height: 1; }
.home .tools-home .tool .qi.qi-eqs { padding: 6px 4px 14px; }
.home .tools-home .tool .qi-eqs .eq-tri { zoom: 1.05; width: 42px; height: 26px; margin-top: 1px; }
.home .tools-home .tool .qi-eqs .eq-list { zoom: .86; height: 20px; }
.home .tools-home .tool .qi-eqs .eq-list i { font-size: 11px; font-weight: 800; color: #08170F; letter-spacing: -.02em; }
@keyframes tool-hover { 0%, 100% { transform: translateY(-11px); } 50% { transform: translateY(-13px); } }
@keyframes tool-shadow { 0%, 100% { transform: translateY(11px) scale(1); opacity: .95; } 50% { transform: translateY(13px) scale(.95); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .home .tools-home .tool .qi, .home .tools-home .tool .qi::after { animation: none; } }

/* Invite a friend (Luke, 2026-11-04, "do something cool, surprise me"): a pane of glass in a double mirror frame, two white golf balls and a dashed "+" for the friend to come,
   and a glint that sweeps across now and then. Only shows while there are no friends yet. Still for reduced motion. */
.home .yr-invite { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; margin-top: 12px; padding: 0 14px 0 12px; border-radius: 20px; overflow: hidden; isolation: isolate;
  color: #fff; font-weight: 650; font-size: 15px; line-height: 1.25; text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .10) 46%, rgba(255, 255, 255, .26) 62%, rgba(255, 255, 255, .08));
  backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 4px rgba(255, 255, 255, .07), inset 0 0 0 5px rgba(255, 255, 255, .34), 0 10px 20px rgba(0, 25, 10, .4); }
.home .yr-invite .iv-t { flex: 1; min-width: 0; text-shadow: 0 1px 2px rgba(0, 25, 10, .55); }
.home .yr-invite .chev { flex: none; color: #fff; opacity: 1; width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0, 25, 10, .5)); }
.home .yr-invite .iv-balls { position: relative; flex: none; width: 58px; height: 32px; }
.home .yr-invite .iv-balls i { position: absolute; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: url(/img/brand/ball-white-198.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 2px 3px rgba(0, 25, 10, .45)); }
.home .yr-invite .iv-balls i:nth-child(1) { left: 0; } .home .yr-invite .iv-balls i:nth-child(2) { left: 15px; }
.home .yr-invite .iv-balls b { position: absolute; right: -6px; top: 3px; width: 26px; height: 26px; display: grid; place-items: center; border: 1.6px dashed rgba(255, 255, 255, .9); border-radius: 50%; font-size: 15px; font-weight: 700; }
.home .yr-invite::after { content: ""; position: absolute; inset: -20% -30%; z-index: -1; opacity: 0; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .5) 50%, transparent 58%); animation: iv-glint 8s ease-in-out infinite; }
@keyframes iv-glint { 0%, 58% { transform: translateX(-60%); opacity: 0; } 66% { opacity: 1; } 92%, 100% { transform: translateX(60%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .home .yr-invite::after { animation: none; } }

/* Window-pane glass (Luke, 2026-11-04, from his reference picture): clear, no frosting, no tint worth the name; a bright thin rim all round with a slightly thicker pale edge inside it,
   one soft diagonal reflection across the face, and small glints at the ends of the edges. Used on the invite panel. */
.home .yr-invite { border-radius: 10px; background: linear-gradient(180deg, rgba(225, 240, 250, .07), rgba(225, 240, 250, .03)); backdrop-filter: none; -webkit-backdrop-filter: none; border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), inset 0 0 0 3px rgba(190, 225, 240, .17), inset 0 2px 3px rgba(255, 255, 255, .4), inset 0 -2px 3px rgba(150, 205, 230, .35), 0 8px 18px rgba(0, 25, 10, .3); }
.home .yr-invite::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, .10) 62%, rgba(255, 255, 255, .03) 100%); }
.home .yr-invite::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 1; animation: none; pointer-events: none; transform: none;
  background: radial-gradient(20px 2.5px at 3px 50%, rgba(255, 255, 255, .95), transparent), radial-gradient(20px 2.5px at calc(100% - 3px) 50%, rgba(255, 255, 255, .95), transparent),
    radial-gradient(34px 3px at 22% calc(100% - 1px), rgba(255, 255, 255, .85), transparent), radial-gradient(34px 3px at 78% 1px, rgba(255, 255, 255, .7), transparent); }
