/* The next-generation Course Stamp card, ported from the /footage pitch page
   (pitch-pages/_footage_build/build.py, a generated single file that cannot be
   imported). Scoped `:is(#ng,#ng2,#ng3)` exactly as it is there, so the container on
   templates/gcs/home.html keeps the id `#ng` and the rules apply unchanged.

   Re-port rather than diverge if the pitch page's card changes: the section on
   golfcoursestamp.com exists to show the SAME object golfers see in the pitch.

   `cqw` units throughout: the card sizes everything from its own width via
   container queries, so one card scales from a phone to a desktop column
   without a single breakpoint. --cw on the container is the only dial. */
:root{ --paper:#ffffff; --mute:#5f6a65; --c-iv:#eeede6; --c-ink:#0c0d0e; }
/* next generation card */
.ngrow{display:grid;grid-template-columns:340px 1fr;gap:40px;align-items:center;margin-top:28px} @media(max-width:820px){.ngrow{grid-template-columns:1fr;justify-items:center}}
:is(#ng,#ng2,#ng3){perspective:1400px;display:flex;justify-content:center} :is(#ng,#ng2,#ng3) .cardwrap{--cw:320px;gap:0} :is(#ng,#ng2,#ng3) .cardcap{font:600 .8rem var(--display);color:var(--mute);margin-top:34px;position:relative;z-index:2;background:var(--paper);padding:6px 12px;border-radius:999px}
.ngsteps{display:grid;gap:12px} .ngsteps .step{counter-increment:none} .ngsteps .step::before{content:none}
:is(#ng,#ng2,#ng3){--cw:300px;--gold:#d4af37;--gold-hi:#f7e7a1;--gold-lo:#8f6f14;--volt:#c8ff3a;--red:#e0342c;--muted:#5f6a65;--line:#e3e6e2;--ink:#0c0d0e;--font-d:var(--display)}
/* ============ THE CARD ============ */
:is(#ng,#ng2,#ng3) .deck{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start;perspective:1400px}
:is(#ng,#ng2,#ng3) .card{background:transparent;border:0;padding:0;box-shadow:none;width:var(--cw);aspect-ratio:10/17;position:relative;container-type:inline-size;cursor:pointer;transform-style:preserve-3d;
  transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .18s ease-out;user-select:none;-webkit-tap-highlight-color:transparent}
:is(#ng,#ng2,#ng3) .card.sway{animation:sway 2.6s cubic-bezier(.25,.8,.3,1) 1}
@keyframes sway{
  0%{transform:rotateY(-70deg) rotateX(8deg) translateY(12px);opacity:0}
  18%{transform:rotateY(18deg) rotateX(-4deg);opacity:1}
  40%{transform:rotateY(-12deg) rotateX(3deg)}
  62%{transform:rotateY(7deg) rotateX(-2deg)}
  82%{transform:rotateY(-3deg) rotateX(1deg)}
  100%{transform:rotateY(0) rotateX(0)}
}
:is(#ng,#ng2,#ng3) .card-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .75s cubic-bezier(.2,.8,.2,1)}
:is(#ng,#ng2,#ng3) .card.flipped .card-inner{transform:rotateY(180deg)}
:is(#ng,#ng2,#ng3) .face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:6.5cqw;overflow:hidden;
  box-shadow:0 18cqw 30cqw -14cqw rgba(0,0,0,.45),0 2cqw 6cqw rgba(0,0,0,.12)}
:is(#ng,#ng2,#ng3) .face.back{transform:rotateY(180deg)}
/* the page-level .card{background:#fff} must not reach this card: a white plane at z=0 intersects the turning faces and paints the far half of every turn as a white slab */
:is(#ng,#ng2,#ng3) .face *{backface-visibility:hidden;-webkit-backface-visibility:hidden}
/* the edge: standard = design colour, verified = gold foil */
:is(#ng,#ng2,#ng3) .face::before{content:none;position:absolute;inset:0;border-radius:inherit;padding:2.4cqw;pointer-events:none;
  background:var(--edge,#cfd3cd);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
:is(#ng,#ng2,#ng3) .card.verified .face::before{content:none;padding:3.2cqw;background:linear-gradient(135deg,var(--gold-lo) 0%,var(--gold) 18%,var(--gold-hi) 36%,var(--gold) 52%,var(--gold-lo) 70%,var(--gold-hi) 88%,var(--gold) 100%);background-size:300% 300%;animation:foil 4s linear infinite}
@keyframes foil{0%{background-position:0% 0%}100%{background-position:100% 100%}}
.foil{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;opacity:.38;
  background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.5) 47%,rgba(255,255,255,.06) 51%,transparent 62%);background-size:260% 260%;background-position:var(--fx,80%) 0}
.card.sway .foil{animation:sheen 2.6s ease-out 1}
@keyframes sheen{0%{background-position:120% 0}100%{background-position:-40% 0}}
.card.verified .foil{background:linear-gradient(115deg,transparent 30%,rgba(255,236,170,.6) 46%,rgba(255,255,255,.12) 52%,transparent 68%);background-size:260% 260%}
/* front layout */
.front{display:flex;flex-direction:column;padding:9cqw 7cqw 6cqw;text-align:center;font-family:var(--font-d)}
.front .club{font-weight:800;font-size:9.2cqw;line-height:1.08;letter-spacing:-.02em;min-height:20cqw;display:flex;align-items:center;justify-content:center}
.front .par{font-weight:600;font-size:4.3cqw;letter-spacing:.18em;opacity:.55;margin-top:2.5cqw}
.front .stats{display:flex;justify-content:center;gap:12cqw;margin-top:6cqw}
.front .stats span{display:block;font-size:3.9cqw;letter-spacing:.2em;font-weight:700;color:var(--stat,inherit)}
.front .stats b{display:block;font-size:15cqw;font-weight:800;letter-spacing:-.04em;line-height:1.05}
.front .holes{flex:1;width:100%;margin-top:3cqw;min-height:0}
.front .holes path{fill:none;stroke:var(--lines,#22c55e);stroke-width:4.2;stroke-linecap:round;stroke-linejoin:round}
.front .holes circle{fill:var(--lines,#22c55e)}
.front .foot{display:flex;align-items:center;justify-content:space-between;font-size:3.6cqw;font-weight:600;opacity:.85;margin-top:2cqw}
.front .foot .wm{font-weight:800;font-size:4.6cqw;display:inline-flex;align-items:center;gap:1cqw}
.front .foot .wm i{width:0;height:0;border-left:3cqw solid var(--red);border-top:1.8cqw solid transparent;border-bottom:1.8cqw solid transparent}
.front .door{position:absolute;left:7cqw;bottom:14cqw;display:flex;gap:2cqw;align-items:center;font-size:2.9cqw;font-weight:600;opacity:.7}
.front .door .qr{width:9cqw;height:9cqw;background:
  conic-gradient(from 90deg at 50% 50%,currentColor 25%,transparent 0) 0 0/33% 33%;opacity:.9}
/* designs */
.design-lux{--edge:#d8c27a;--lines:#22c55e;--stat:#a88a2e}
.design-lux .front{background:#fff;color:#d6cdb3;text-shadow:0 1px 0 #fff,0 -1px 0 #a89f86,0 3px 8px rgba(0,0,0,.32)}
.design-lux .front .stats span{color:#b8963c;text-shadow:none}
.design-night{--edge:#c8ff3a;--lines:#c8ff3a;--stat:#c8ff3a}
.design-night .front{background:#0a0a0a;color:#fff}
.design-paper{--edge:#1f4d3a;--lines:#1f4d3a;--stat:#8a6d1f}
.design-paper .front{background:#f4efe3;color:#1f4d3a}
.design-glass{--edge:rgba(255,255,255,.55);--lines:#ffffff;--stat:#c8ff3a}
.design-glass .front{background:linear-gradient(160deg,#2b3a2f,#0f1712);color:#fff}
.design-volt{--edge:#0a0a0a;--lines:#0a0a0a;--stat:#0a0a0a}
.design-volt .front{background:var(--volt);color:#0a0a0a}
/* back layout */
.back{background:#0f1311;color:#fff;display:flex;flex-direction:column;font-family:var(--font-d)}
.back .sat{height:34%;position:relative;overflow:hidden;background:
  radial-gradient(60cqw 30cqw at 30% 40%,#3f7a3c 0,transparent 70%),
  radial-gradient(40cqw 26cqw at 70% 60%,#5b8f3e 0,transparent 70%),
  radial-gradient(26cqw 18cqw at 55% 25%,#87a86b 0,transparent 70%),
  linear-gradient(#2f5a30,#1e3d22)}
.back .sat::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(0,0,0,.08) 0 1px,transparent 1px 3px);mix-blend-mode:multiply}
.back .sat .pin{position:absolute;left:52%;top:44%;width:4cqw;height:4cqw;background:var(--volt);border-radius:50%;box-shadow:0 0 0 2cqw rgba(200,255,58,.25)}
.back .sat .lbl{position:absolute;left:5cqw;bottom:3cqw;font-size:3.2cqw;font-weight:700;letter-spacing:.14em;opacity:.8}
.back .body{padding:5cqw 6cqw 5cqw;display:flex;flex-direction:column;gap:3.4cqw;flex:1}
.back .seal{display:inline-flex;align-items:center;gap:2cqw;align-self:flex-start;font-size:3.2cqw;font-weight:800;letter-spacing:.12em;padding:2cqw 3.4cqw;border-radius:999px;
  background:linear-gradient(135deg,var(--gold-lo),var(--gold),var(--gold-hi),var(--gold));color:#2a2000}
.back .seal.plain{background:#2a2f2b;color:#c5cbc7}
.back .row{display:flex;justify-content:space-between;gap:3cqw;font-size:3.7cqw;border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:2.6cqw}
.back .row span{opacity:.6;font-weight:500}.back .row b{font-weight:700;text-align:right}
.back .who{font-size:3.6cqw;opacity:.7}
.back .sponsor{margin-top:auto;border:1px solid rgba(255,255,255,.14);border-radius:3cqw;padding:3cqw 3.6cqw;display:flex;justify-content:space-between;align-items:center}
.back .sponsor small{display:block;font-size:2.8cqw;letter-spacing:.16em;opacity:.55;font-weight:700}
.back .sponsor b{font-size:5cqw;font-weight:800;letter-spacing:-.02em}
.back .sponsor .logo{width:9cqw;height:9cqw;border-radius:2cqw;background:var(--volt)}
.back .sponsor.travel .logo{background:#6ec1ff}

/* ============ REAL CARDS (prod renders) ============ */
:is(#ng,#ng2,#ng3) .card{aspect-ratio:9/16}
.face.front.real{padding:0;display:block;position:absolute;text-align:left}
.front.real img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.front.real video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.front.real .scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.34) 60%,rgba(0,0,0,.55))}
.front.real .strip{position:absolute;left:0;right:0;bottom:0;height:calc(100% / 17);display:flex;align-items:center;justify-content:space-between;padding:0 5cqw;font:600 3.3cqw/1 var(--font-d);color:#fff;background:rgba(0,0,0,.55);backdrop-filter:blur(6px);letter-spacing:.02em}
.front.real .strip .door{display:inline-flex;align-items:center;gap:1.6cqw;font-size:2.6cqw;opacity:.85;position:static}
.front.real .strip .qr{width:5.5cqw;height:5.5cqw;background:conic-gradient(from 90deg at 50% 50%,#fff 25%,transparent 0) 0 0/33% 33%;display:inline-block}
.back .sat{background-size:cover;background-position:center;height:36%}
.back .sat::after{background:linear-gradient(180deg,rgba(0,0,0,0),rgba(15,19,17,.85))}
.back .sponsor .slogo{height:7cqw;max-width:34cqw;object-fit:contain}

/* club page theme for Rams Hill (brands.page_theme: Tenor Sans, #ff9c26) */
.theme-ramshill .btn.accent{background:#ff9c26;color:#1a1204}
.hero-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.6))}
.layouts figure{margin:0;text-align:center;font:600 .72rem var(--font-d);color:var(--muted)}
.layouts figcaption{margin-top:6px}

/* caption sits UNDER the card, never on it */
.cardwrap{display:inline-flex;flex-direction:column;align-items:center;gap:8px;perspective:1200px}
.cardcap{font:600 .74rem var(--font-d);color:var(--muted);display:flex;gap:8px;align-items:center;white-space:nowrap}
.cardcap .gv{display:inline-flex;align-items:center;gap:4px;font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:linear-gradient(135deg,var(--gold-lo),var(--gold),var(--gold-hi));color:#2a2000}
.front.real .strip{display:none}
/* the foil sheen is a landing/hover effect only, never a line */
.foil{opacity:.3}
.card:not(.sway):not(:hover) .foil{opacity:0}
.card.verified:hover .foil{opacity:.35}

/* ============ THE FRAMED CARD (v3): one thick frame, the brand's logo in the plate ============ */
:is(#ng,#ng2,#ng3) .card{aspect-ratio:9/16.6}
:is(#ng,#ng2,#ng3) .face{border-radius:6cqw}
.face.front.real{background:var(--frame,#0f1311)!important;padding:4.2cqw 4.2cqw 0}
.front.real .plate{position:absolute;left:4.2cqw;right:4.2cqw;top:4.2cqw;bottom:12.5cqw;border-radius:3.2cqw;overflow:hidden;background:var(--backing,#0a0a0a)}
.front.real .plate img,.front.real .plate video{position:absolute;inset:0;width:100%;height:100%}
.front.real .plate img{object-fit:contain}
.front.real .plate video{object-fit:cover}
.front.real .plate .scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.28) 60%,rgba(0,0,0,.5))}
.front.real .band{position:absolute;left:0;right:0;bottom:0;height:12.5cqw;display:flex;align-items:center;justify-content:space-between;padding:0 5.2cqw;color:var(--frame-ink,#fff)}
.front.real .band img{height:5.6cqw;max-width:40cqw;object-fit:contain;object-position:left}
.front.real .band .gcs{font:800 3.4cqw/1 var(--font-d);letter-spacing:.08em;display:inline-flex;align-items:center;gap:1.4cqw;opacity:.92}
.front.real .band .gcs i{width:0;height:0;border-left:3cqw solid var(--red);border-top:1.8cqw solid transparent;border-bottom:1.8cqw solid transparent}
.front.real .band .club{font:700 3.1cqw/1.15 var(--font-d);letter-spacing:.04em;text-transform:uppercase;opacity:.85;max-width:52cqw}
/* verified = gold foil frame */
.card.verified .face.front.real{background:linear-gradient(135deg,#7a5c10 0%,#c9a227 16%,#f6e7a6 34%,#d4af37 50%,#8f6f14 66%,#f1dd8f 84%,#c9a227 100%)!important;background-size:300% 300%!important;animation:foil 7s linear infinite;--frame-ink:#2a2000}
.card.verified .band .gcs i{border-left-color:#b8261f}
/* light frames need dark ink */
.card.frame-light{--frame-ink:#1a1a1a}
.front.real .strip{display:none}
.front.real>img{display:none}

/* ---- v3.1: band with the brand mark as the feature, aligned decks, scrolling phone bodies ---- */
:is(#ng,#ng2,#ng3) .card{aspect-ratio:9/17}
.front.real .plate{bottom:14.5cqw}
.front.real .band{height:14.5cqw;padding:0 5cqw;justify-content:space-between}
.front.real .band img{height:8.6cqw;max-width:54cqw;object-fit:contain;object-position:left center}
.front.real .band .gcs{font-size:3cqw;opacity:.7;gap:1.2cqw}
.front.real .band .gcs i{border-left-width:2.6cqw;border-top-width:1.6cqw;border-bottom-width:1.6cqw}
.front.real .band .club{font-size:3.4cqw;max-width:56cqw}
.cardwrap{width:var(--cw,200px);max-width:100%}
.cardwrap .card{width:100%}
.cardcap{white-space:normal;text-align:center;justify-content:center;line-height:1.3}
/* v3.2: the club mark is the band */
:is(#ng,#ng2,#ng3) .card{aspect-ratio:9/17.6}
.front.real .plate{bottom:17cqw}
.front.real .band{height:17cqw;padding:0 4.6cqw}
.front.real .band img{height:12cqw;max-width:62cqw}
.front.real .band .gcs{font-size:2.8cqw;opacity:.6}
/* v3.3: band logo alignment (the plate-image rule was catching the band's img) */
.front.real .band img{position:static;inset:auto;width:auto;height:12cqw;max-width:60cqw;object-fit:contain;object-position:left center;display:block}
.front.real .band{display:flex;align-items:center;justify-content:space-between;gap:3cqw}
.front.real .band .gcs{flex:0 0 auto;white-space:nowrap}
.share-out div{border:1px solid var(--line);border-radius:12px;padding:10px;font:600 .68rem var(--font-d);color:var(--muted);display:flex;flex-direction:column;gap:6px}
.share-out div.on{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
/* v3.4: bigger marks in the band */
:is(#ng,#ng2,#ng3) .card{aspect-ratio:9/18}
.front.real .plate{bottom:19cqw}
.front.real .band{height:19cqw;padding:0 4.6cqw}
.front.real .band img{height:14cqw;max-width:62cqw}
/* v3.5: card size is set on the CONTAINER so the caption wrapper inherits it */
.cardwrap{width:var(--cw,200px)}
/* ── the background picker and the tap hint ──────────────────────────────── */
/* From cinema.py: a golfer chooses club colour or the creator's footage behind
   their card, and the hint disappears the first time the card is turned. */
.bgpick{display:flex;flex-direction:column;align-items:center;gap:20px}
#ng2{--cw:270px;perspective:1400px;display:flex;justify-content:center}
/* same height as the reel phone beside it (290px wide phone = 590px tall; card is 9:18) */
#ng2 .cardwrap{--cw:295px}
/* "Click me / Tap me" hint beside the flip card, gone after the first turn */
.bgpick{position:relative}
.tapme{position:absolute;left:calc(50% + 150px);top:22%;display:flex;flex-direction:column;align-items:flex-start;color:#fff;pointer-events:none;transition:opacity .4s;animation:tapwiggle 2.4s ease-in-out infinite}
.tapme .tm-t{font:700 1.75rem/1 Caveat,"Comic Sans MS",cursive;transform:rotate(-8deg);margin-left:26px;white-space:nowrap}
.tapme svg{width:78px;height:56px;margin-top:2px;transform:scaleX(1)}
.tapme .tm-tap{display:none}
@media(hover:none){ .tapme .tm-click{display:none} .tapme .tm-tap{display:inline} }
@keyframes tapwiggle{0%,100%{transform:translate(0,0)}50%{transform:translate(-6px,4px)}}
.bgpick.flipped .tapme{opacity:0}
@media(max-width:760px){ .tapme{left:auto;right:18px;top:84px;flex-direction:row;align-items:center;gap:4px;z-index:3} .tapme .tm-t{margin:0;font-size:1.45rem;transform:rotate(-4deg);background:rgba(11,12,11,.72);padding:4px 12px 6px;border-radius:999px} .tapme svg{display:none} }
@media(prefers-reduced-motion:reduce){ .tapme{animation:none} }
#ng2 .plate video,#ng2 .plate .scrim{transition:opacity .7s ease}
#ng2.bgpick-colour .plate video,#ng2.bgpick-colour .plate .scrim{opacity:0}
.bgchips{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:4px;padding:5px;border-radius:999px;background:rgba(238,237,230,.07);border:1px solid rgba(238,237,230,.12)}
.bgchips .bgl{font:500 .64rem var(--display);letter-spacing:.18em;text-transform:uppercase;color:rgba(238,237,230,.55);padding:0 8px 0 12px}
.bgchips button{border:0;cursor:pointer;border-radius:999px;padding:9px 15px;font:500 .84rem var(--display);background:transparent;color:rgba(238,237,230,.82);transition:background .25s,color .25s,transform .18s}
.bgchips button[aria-pressed=true]{background:var(--c-iv);color:var(--c-ink)}
.bgchips button.tap{transform:scale(.92)}
.bgchips{flex-wrap:nowrap;white-space:nowrap}
@media(max-width:600px){ .bgpick .bgchips{order:-1} .bgchips .bgl{font-size:.56rem;padding:0 4px 0 10px} .bgchips button{padding:8px 12px;font-size:.8rem} }


/* ── the third face: the scorecard ───────────────────────────────────────── */
/* Ported with the rest of the card. It was missed on the first pass and the
   face rendered as unstyled markup: a two-sided card with three faces has to
   be told to lay the third one out, and `.card.three.side2 .face.score` is the
   only rule that ever displays it.

   The v2 restyle below (cream ground, standard notation, red under par) is the
   live look; it overrides the dark first cut deliberately, in the same order as
   the pitch page, so both are kept rather than merged. */
.card.three .face.score{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:6cqw;overflow:hidden;background:#0f1311;color:#fff;font-family:var(--font-d);display:none;flex-direction:column;padding:6cqw 5.5cqw 5cqw;gap:3.5cqw}
.card.three.side2 .face.score{display:flex}
.score .shead{display:flex;justify-content:space-between;align-items:flex-start;gap:3cqw}
.score .shead .k{display:block;font-size:2.8cqw;letter-spacing:.16em;opacity:.55;font-weight:700}
.score .shead b{display:block;font-size:5cqw;font-weight:800;letter-spacing:-.02em;line-height:1.1;margin-top:1cqw}
.score .shead .k2{display:block;font-size:3cqw;opacity:.6;margin-top:1cqw}
.score .shead .big{font-size:12cqw;font-weight:800;letter-spacing:-.05em;line-height:1;text-align:right}
.score .shead .big small{display:block;font-size:4cqw;letter-spacing:0;opacity:.7;font-weight:700}
.score .nine{border-top:1px solid rgba(255,255,255,.12);padding-top:3cqw}
.score .holes{display:grid;grid-template-columns:repeat(9,1fr);gap:1.2cqw}
.score .hole{display:flex;flex-direction:column;align-items:center;gap:.8cqw}
.score .hole small{font-size:2.6cqw;opacity:.5;font-weight:700}
.score .hole em{font-style:normal;font-size:2.6cqw;opacity:.45}
.score .tot{display:flex;align-items:baseline;gap:2.4cqw;margin-top:2.6cqw;font-size:3cqw;letter-spacing:.14em;opacity:.85}
.score .tot b{font-size:4.6cqw;letter-spacing:0}.score .tot small{font-size:2.8cqw;letter-spacing:.04em;opacity:.6}
/* the notation: no mark = par; ring = birdie; solid = eagle; framed solid = albatross; square = bogey; solid square = double; framed solid square = triple+ */
.score .sym{width:7.6cqw;height:7.6cqw;display:inline-flex;align-items:center;justify-content:center;font-size:3.9cqw;font-weight:800;box-sizing:border-box;position:relative}
.score .sym b{font-weight:800}
.score .sym.par,.score .sym.na{color:#fff}
.score .sym.bir{border:.55cqw solid #c8ff3a;border-radius:50%;color:#fff}
.score .sym.eag{background:#c8ff3a;border-radius:50%;color:#0a0a0a}
.score .sym.alb{background:#c8ff3a;border-radius:50%;color:#0a0a0a;box-shadow:0 0 0 .6cqw #0f1311,0 0 0 1.2cqw #c8ff3a}
.score .sym.bog{border:.55cqw solid rgba(255,255,255,.75);border-radius:1cqw;color:#fff}
.score .sym.dbl{background:rgba(255,255,255,.85);border-radius:1cqw;color:#0a0a0a}
.score .sym.tri{background:rgba(255,255,255,.85);border-radius:1cqw;color:#0a0a0a;box-shadow:0 0 0 .6cqw #0f1311,0 0 0 1.2cqw rgba(255,255,255,.85)}
.score .legend{margin-top:auto;display:flex;flex-wrap:wrap;gap:1.6cqw 3.4cqw;font-size:2.7cqw;opacity:.8}
.score .legend span{display:inline-flex;align-items:center;gap:1.4cqw}
.score .legend .sym{width:4.2cqw;height:4.2cqw;font-size:0}
.score .dots,.card.three .face .dots{display:flex;gap:1.4cqw;justify-content:center;margin-top:2.5cqw}
.dots i{width:1.6cqw;height:1.6cqw;border-radius:50%;background:rgba(255,255,255,.3)}.dots i.on{background:#fff}
/* light-face variant for a light kit */
.card.three.light .face.score{background:#f4efe3;color:#1f4d3a}

.score .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:2.4cqw;margin-top:2cqw}
.score .st{border:1px solid rgba(255,255,255,.14);border-radius:2.4cqw;padding:2.6cqw 3cqw}
.score .st b{display:block;font-size:6.5cqw;font-weight:800;letter-spacing:-.03em;line-height:1}
.score .st span{font-size:2.8cqw;letter-spacing:.1em;text-transform:uppercase;opacity:.6}
.score .snote{font-size:3cqw;opacity:.6;margin-top:1cqw}

/* ============ SCORECARD FACE v2: cream, standard notation, red under par ============ */
.card.three .face.score{background:#f8f5ec;color:#141614}
.score .shead .k,.score .shead .k2,.score .hole small,.score .hole em,.score .tot,.score .snote,.score .legend{opacity:1;color:#5f6a65}
.score .shead b,.score .shead .big,.score .tot b{color:#141614}
.score .nine{border-top:1px solid #e0dccd}
.score .st{border:1px solid #e0dccd;background:#fff}
.score .st b{color:#141614}.score .st span{color:#5f6a65;opacity:1}
.score .dots i{background:#d6d2c4}.score .dots i.on{background:#141614}
/* shapes: circles under par, squares over par; doubled outline = one more stroke; red under, ink over; par plain */
.score .sym{color:#141614;border-radius:0}
.score .sym.par,.score .sym.na{border:0;background:none}
.score .sym.bir{border:.6cqw solid #d0261d;border-radius:50%;background:none;color:#d0261d}
.score .sym.eag{border:.6cqw solid #d0261d;border-radius:50%;background:none;color:#d0261d;box-shadow:0 0 0 .7cqw #f8f5ec,0 0 0 1.3cqw #d0261d}
.score .sym.alb{border:.6cqw solid #d0261d;border-radius:50%;background:#d0261d;color:#fff;box-shadow:0 0 0 .7cqw #f8f5ec,0 0 0 1.3cqw #d0261d}
.score .sym.bog{border:.6cqw solid #141614;border-radius:.9cqw;background:none;color:#141614}
.score .sym.dbl{border:.6cqw solid #141614;border-radius:.9cqw;background:none;color:#141614;box-shadow:0 0 0 .7cqw #f8f5ec,0 0 0 1.3cqw #141614}
.score .sym.tri{border:.6cqw solid #141614;border-radius:.9cqw;background:#141614;color:#fff;box-shadow:0 0 0 .7cqw #f8f5ec,0 0 0 1.3cqw #141614}
.score .holes{gap:1.6cqw}
.score .hole{gap:1.4cqw}
.score .legend .sym{width:4.4cqw;height:4.4cqw}
.score .legend .sym.eag,.score .legend .sym.dbl,.score .legend .sym.alb,.score .legend .sym.tri{box-shadow:0 0 0 .5cqw #f8f5ec,0 0 0 .9cqw currentColor}
.score .legend .sym.eag,.score .legend .sym.alb{color:#d0261d}
.score .legend .sym.dbl,.score .legend .sym.tri{color:#141614}
.score .big small{color:#5f6a65}
.score .big.under{color:#d0261d}

.score .sym.par,.score .sym.na{color:#141614}

.score .hole.ace em{color:#d0261d;font-weight:800;letter-spacing:.1em}

/* Isolation from the host page. new.css (loaded on golfcoursestamp.com) styles
   a bare `.holes` for the old homepage's course-tour tiles: a tinted rounded
   box with 18px padding. That leaked into the scorecard face and pushed both
   rows of holes in from the left, out of line with OUT / IN beneath them.
   Reset everything that rule sets; the grid itself comes from the card rules. */
:is(#ng, #ng2, #ng3) .score .holes {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 0;
}

/* The course face's satellite strip squared off the card's top corners
   (owner 2026-09-16). Every descendant of a face gets backface-visibility, which
   gives it its own compositing layer, and in Chrome and Safari such a layer
   inside a 3D-turned parent escapes the face's overflow:hidden clip. So the
   strip carries the face's top radius itself instead of relying on the clip. */
:is(#ng,#ng2,#ng3) .back .sat,
:is(#ng,#ng2,#ng3) .back .sat::after { border-radius: 6cqw 6cqw 0 0; }
/* Belt and braces: clip-path clips composited descendants where overflow does not. */
:is(#ng,#ng2,#ng3) .face { clip-path: inset(0 round 6cqw); }

/* ── Stacked slab (owner 2026-09-16; docs/card-thickness.md) ─────────────────
   The card has real thickness. --slab is the full thickness as a share of the
   card width (cqw, the card is the container), so a 200px card is 10px thick
   and a 320px card 16px. Faces sit half of it in front of the centre plane in
   their own direction; eight edge layers, each the full rounded card shape,
   fill the gap, so the corners stay rounded all the way through. gcs-card.js
   writes the layers and adds .slab; data-slab="0" opts a card out. */
:is(#ng,#ng2,#ng3) .card { --slab: 5cqw; --slab-half: calc(var(--slab) / 2); }
:is(#ng,#ng2,#ng3) .card.slab .face { transform: translateZ(var(--slab-half)); }
:is(#ng,#ng2,#ng3) .card.slab .face.back { transform: rotateY(180deg) translateZ(var(--slab-half)); }
:is(#ng,#ng2,#ng3) .card.slab .slab-edge { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
:is(#ng,#ng2,#ng3) .card.slab .slab-edge i {
  position: absolute; inset: 0; border-radius: 6cqw;
  transform: translateZ(calc(var(--slab) * var(--k)));
  /* The frame colour, shaded darker at the ends and lit across the middle. */
  background-color: var(--frame, #d4af37);
  background-image: linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,.12) 30%, rgba(255,255,255,.18) 50%, rgba(0,0,0,.12) 70%, rgba(0,0,0,.42));
  filter: brightness(var(--edge-lit, .85));
}
:is(#ng,#ng2,#ng3) .card.slab.verified .slab-edge i {
  background-color: #b8912a;
  background-image: linear-gradient(90deg, #6f5510, #b8912a 30%, #e9d58b 50%, #b8912a 70%, #6f5510);
}
:is(#ng,#ng2,#ng3) .card.slab .face { filter: brightness(var(--lit, 1)); }

/* The tap-to-turn card (#ng, on golfcoursestamp.com and the atlas homepage) felt
   too snappy to be a real object (owner 2026-09-16). A slightly longer turn that
   eases out of rest and back into it, but still whips through the edge-on pass. */
#ng .card-inner { transition: transform .95s cubic-bezier(.62, .02, .32, 1); }
