/* Me (screens/me.js), 2026-10-13, round 2 (Luke: "break out of the box"): three objects you could hold, not a list of boxes.
   The bag tag (cream, real edge thickness, brass eyelet, leather strap; leans with the phone via --mx/--my, -1..1, set in me.js;
   a mouse leaves it still; name and club edited on the tag), a wallet of five cards in five materials that lift out when tapped,
   and a golf scorecard for the on-course settings with choices circled and boxes ticked in pencil. Loaded after dusk.css. */

.me { --tag-ink: #10241A; --tag-quiet: #5F5A4E; padding-bottom: 28px; }

/* ── The bag tag ─────────────────────────────────────────────────────────────────────────────── */
.me-stage { perspective: 900px; padding: 38px 0 16px; }
.me-tag { position: relative; max-width: 400px; margin: 0 auto; transform-style: preserve-3d;
  transform: rotateX(calc(var(--my, 0) * -5deg)) rotateY(calc(var(--mx, 0) * 6deg)); }
/* its shadow on the ground, sliding the other way as it leans */
.me-tag::after { content: ''; position: absolute; left: 7%; right: 7%; bottom: -22px; height: 34px; border-radius: 50%; z-index: -1;
  background: rgba(0, 0, 0, .7); filter: blur(16px); translate: calc(var(--mx, 0) * -12px) calc(var(--my, 0) * -5px); pointer-events: none; }

.me-tag-face { position: relative; z-index: 1; overflow: hidden; border-radius: 22px; padding: 40px 18px 0; color: var(--tag-ink);
  background: radial-gradient(130% 100% at 18% 0%, #FCF9F2 0%, #F3ECDD 52%, #E6DBC5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(120, 100, 70, .25),
    0 1px 0 #E0D5BF, 0 2px 0 #D6CAB0, 0 3px 0 #CBBEA2, 0 4px 0 #C0B193, 0 5px 0 #B3A384, 0 6px 0 #A39274,
    0 16px 26px -8px rgba(0, 0, 0, .55), 0 34px 60px -22px rgba(0, 0, 0, .6); }
/* light catching the card, moving as it leans */
.me-sheen { position: absolute; inset: -20% -40%; pointer-events: none; z-index: 0;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, 0) 58%);
  translate: calc(-14% + var(--mx, 0) * 16%) calc(var(--my, 0) * 6%); mix-blend-mode: soft-light; }

/* leather strap through a brass eyelet */
.me-strap { position: absolute; z-index: 2; left: 50%; top: -38px; width: 18px; height: 70px; translate: -50% 0; border-radius: 9px 9px 6px 6px;
  background: linear-gradient(90deg, #3E2312 0%, #7B4A27 38%, #8E5A31 52%, #5A3419 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .25); }
.me-strap::before { content: ''; position: absolute; inset: 4px 4px 10px; border-left: 1px dashed rgba(240, 210, 160, .45); border-right: 1px dashed rgba(240, 210, 160, .45); }
.me-eyelet { position: absolute; z-index: 3; left: 50%; top: 10px; width: 26px; height: 26px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 7px, #6E5020 7.5px, #F4DC9C 9px, #C9A14A 10.5px, #8A6828 12.5px, transparent 13px);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }

.me-tag-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.me-face { position: relative; flex: none; width: 80px; height: 80px; border-radius: 50%; padding: 0; border: 3px solid #FBF7EE; display: grid; place-items: center;
  background: #E7DECB; color: #8C8270; box-shadow: inset 0 2px 5px rgba(60, 45, 20, .3), 0 1px 0 rgba(255, 255, 255, .8), 0 6px 12px -4px rgba(60, 45, 20, .45); }
.me-face .ico { width: 36px; height: 36px; }
.me-face .avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.me-face:active { transform: scale(.97); transition: transform 100ms ease-out; }
.me-cam { position: absolute; right: -4px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #241A06;
  background: linear-gradient(160deg, #F6E1A6, #C9A14A 55%, #9A7630); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 3px 6px rgba(0, 0, 0, .35); }
.me-cam .ico { width: 16px; height: 16px; stroke-width: 2; }
.me-who { min-width: 0; }
.me-name { margin: 0; font-family: "DM Serif Display", var(--serif); font-size: 28px; line-height: 1.05; letter-spacing: -.01em; color: var(--tag-ink);
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.me-club { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--tag-quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.me-tag-nums { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  margin-top: 18px; padding: 14px 0 16px; border-top: 1px dashed rgba(16, 36, 26, .22); }
.me-tag-nums .k { display: block; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--tag-quiet); }
.me-tag-nums .v { display: block; margin-top: 4px; color: var(--tag-ink); line-height: .95; letter-spacing: .02em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  /* pressed out of the card: a short green extrusion, then its shadow */
  text-shadow: 1px 1px 0 #2C5139, 2px 2px 0 #24452F, 3px 3px 0 #1C3926, 4px 5px 6px rgba(16, 36, 26, .35); }
.me-idx .v { font-size: 58px; font-weight: 500; }
.me-idx .n { display: block; margin-top: 8px; font-size: 13px; color: var(--tag-quiet); }
.me-rounds { text-align: right; }
.me-rounds .v { font-size: 36px; font-weight: 500; }

.me-tag-band { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -18px; padding: 11px 18px;
  background: linear-gradient(#1A4029, #10291C); color: rgba(255, 255, 255, .82); font-size: 13px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.me-brand { display: inline-flex; align-items: center; gap: 8px; font-family: "DM Serif Display", var(--serif); font-size: 17px; color: #fff; }
.me-brand img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.me-status { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-status .ico { width: 15px; height: 15px; flex: none; color: #E2C27A; }

/* the one moment: the tag swings down onto its strap when the screen opens */
.me-in .me-tag { animation: me-swing 760ms cubic-bezier(.16, 1, .3, 1) backwards; transform-origin: 50% -38px; }
@keyframes me-swing { from { opacity: 0; rotate: x -24deg; translate: 0 -10px; } to { opacity: 1; rotate: x 0deg; translate: 0 0; } }

/* editing on the tag itself: the pencil in the corner turns the name and club into lines you write on */
.me-who { padding-right: 40px; }
.me-pen { position: absolute; z-index: 2; top: 8px; right: 8px; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 22px; display: grid; place-items: center;
  background: none; color: #6B6455; font: 650 14px/1 var(--sans); }
.me-pen .ico { width: 20px; height: 20px; }
.me-pen:active { transform: scale(.94); transition: transform 100ms ease-out; }
.me-pen.on { top: 10px; right: 12px; height: 36px; min-width: 0; padding: 0 16px; background: #10241A; color: #F4EFE4; box-shadow: 0 3px 8px rgba(16, 36, 26, .35); }
.me-editing { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.me-name-in, .me-club-in { width: 100%; min-height: 40px; padding: 0 2px; border: 0; border-bottom: 1.5px dashed rgba(16, 36, 26, .35); border-radius: 0; background: transparent; color: var(--tag-ink); outline: none; caret-color: #8A6828; }
.me-name-in { font: 400 25px/1.1 "DM Serif Display", var(--serif); }
.me-club-in { font: 600 16px/1.2 var(--sans); color: var(--tag-quiet); }
.me-name-in:focus, .me-club-in:focus { border-bottom: 1.5px solid #B88C38; }
.me-name-in::placeholder, .me-club-in::placeholder { color: rgba(16, 36, 26, .45); }
.me-tag-link { position: relative; z-index: 1; margin: 4px 0 0 96px; min-height: 44px; padding: 0; border: 0; background: none; color: #8A4A36; font: 600 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.me-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── The wallet: five cards, stacked, each a different material; tap one and it lifts out ──────────────── */
.me .card.a2hs { margin: 14px 0 0; }
.me-wallet { position: relative; margin-top: 30px; padding-bottom: 6px; }
.me-wallet::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -14px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(14px); z-index: -1; }
.me-wcard { --edge: rgba(255, 255, 255, .22); --fg: #fff; --fg-2: rgba(255, 255, 255, .78);
  position: relative; margin-top: -16px; border-radius: 18px; color: var(--fg); isolation: isolate;
  box-shadow: inset 0 1px 0 var(--edge), 0 -10px 18px -10px rgba(0, 0, 0, .7), 0 1px 0 rgba(0, 0, 0, .3);
  transition: translate 420ms cubic-bezier(.32, .72, 0, 1), box-shadow 420ms cubic-bezier(.32, .72, 0, 1); }
.me-wcard:first-child { margin-top: 0; }
.me-wcard:last-child { box-shadow: inset 0 1px 0 var(--edge), 0 -10px 18px -10px rgba(0, 0, 0, .7), 0 2px 0 rgba(0, 0, 0, .35), 0 18px 30px -14px rgba(0, 0, 0, .7); }
.me-wcard.open { translate: 0 -6px; z-index: 2;
  box-shadow: inset 0 1px 0 var(--edge), 0 -12px 22px -10px rgba(0, 0, 0, .7), 0 22px 36px -14px rgba(0, 0, 0, .8); }
/* the material sits on its own layer so grain and stitching never cover the words */
.me-wcard::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }

.me-whead { position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 68px; padding: 17px 18px 0; margin: 0;
  border: 0; background: none; color: inherit; text-align: left; font: inherit; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
.me-whead:focus-visible { outline: 2px solid #E2C27A; outline-offset: -4px; }
.me-wname { flex: 1; min-width: 0; font: 400 21px/1.15 "DM Serif Display", var(--serif); letter-spacing: -.005em; }
.me-wlogo { flex: none; width: 28px; height: 28px; margin-top: -2px; padding: 3px; border-radius: 8px; object-fit: contain; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.me-wstate { flex: none; margin-top: 1px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .2); color: var(--fg); font: 650 13px/1.1 var(--sans); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.me-whead .chev { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--fg-2); transition: rotate 320ms cubic-bezier(.32, .72, 0, 1); }
.me-wcard.open .me-whead .chev { rotate: 90deg; }

.me-wbody { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 420ms cubic-bezier(.32, .72, 0, 1), visibility 0s 420ms; }
.me-wcard.open .me-wbody { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 420ms cubic-bezier(.32, .72, 0, 1), visibility 0s; }
.me-wbody-in { min-height: 0; overflow: hidden; padding: 0 18px; }
.me-wbody-in > :first-child { margin-top: 2px; }
.me-wbody-in > :last-child { margin-bottom: 30px; }
.me-wbody-in p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.me-wbody-in p b { color: var(--fg); }
.me-wcard:last-child .me-wbody-in > :last-child { margin-bottom: 20px; }
.me-wbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 14px; padding: 0 20px; border-radius: 999px;
  border: 1px solid currentColor; background: none; color: var(--fg); font: 650 15px/1 var(--sans); text-decoration: none; }
.screen.dusk .me-wbtn { color: var(--fg); }
.me-wbtn.solid { border-color: transparent; background: var(--btn-bg, #F4EFE4); color: var(--btn-fg, #10241A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 10px -2px rgba(0, 0, 0, .4); }
.screen.dusk .me-wbtn.solid { color: var(--btn-fg, #10241A); }
.me-wbtn:active { transform: scale(.97); transition: transform 100ms ease-out; }
.me-wrow { display: flex; align-items: center; gap: 16px; }
.me-wmore { margin-top: 10px; }
.me-wmore summary { display: inline-flex; align-items: center; min-height: 44px; list-style: none; cursor: pointer; font: 650 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.me-wmore summary::-webkit-details-marker { display: none; }
.me-wmore p { font-size: 14px; }
.me-wlink { display: flex; align-items: center; gap: 12px; min-height: 60px; color: var(--fg); text-decoration: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.screen.dusk .me-wlink { color: var(--fg); }
.me-wlink:first-child { border-top: 0; }
.me-wlink span { flex: 1; font-size: 13px; color: var(--fg-2); }
.me-wlink b { display: block; margin-bottom: 2px; font-size: 16px; color: var(--fg); }
.me-wlink .chev { width: 18px; height: 18px; color: var(--fg-2); }

/* leather: real pebble-grain hide (lit bumps, not a flat tint), darkened edges, a stitched seam and a sheen.
   Each card is its own hide colour via --hide-hi / --hide-mid / --hide-lo; --stitch is the thread. */
.w-leather { --hide-hi: #A8622F; --hide-mid: #7A4120; --hide-lo: #4A2511; --stitch: rgba(246, 214, 160, .85);
  --fg: #FBEBD3; --fg-2: rgba(251, 235, 211, .84); --edge: rgba(255, 220, 180, .4); --btn-bg: #FBEBD3; --btn-fg: #3B2112; }
.w-leather::before { background:
    radial-gradient(130% 90% at 20% -10%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .28)),
    radial-gradient(150% 130% at 50% 50%, transparent 55%, rgba(0, 0, 0, .42)),
    url("/img/leather-grain.webp") 0 0 / 300px 300px,
    radial-gradient(120% 140% at 15% 0%, var(--hide-hi) 0%, var(--hide-mid) 48%, var(--hide-lo) 100%);
  background-blend-mode: normal, normal, normal, overlay, normal; }
/* the stitched seam: thread sits in a pressed groove, with a little shadow under each stitch */
.w-leather::after { content: ''; position: absolute; inset: 7px; z-index: -1; border-radius: 12px; pointer-events: none;
  border: 2px dashed var(--stitch);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .55), inset 0 1px 1px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .12);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }
.w-leather .me-wstate { background: rgba(0, 0, 0, .28); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .12); }
.w-leather .me-wname { text-shadow: 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .1); }
.w-leather .me-wlink { border-top-color: rgba(0, 0, 0, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.w-leather .me-wbody-in { padding: 0 24px; }
.w-leather .me-whead { padding-left: 24px; padding-right: 24px; }
.w-leather .me-wbtn:not(.solid) { border-color: var(--stitch); }
.w-leather .me-wbody-in p { color: var(--fg-2); }

/* four hides: cognac (backup), oxblood (Marker), navy (HNA), bag green (Friends), black (Pro) */
.w-marker { --hide-hi: #F0CB62; --hide-mid: #C9982F; --hide-lo: #7C5612; --stitch: rgba(60, 38, 4, .85);
  --fg: #1C1204; --fg-2: rgba(28, 18, 4, .82); --edge: rgba(255, 244, 190, .7); --btn-bg: #141008; --btn-fg: #F2CB2A; }
.w-hna { --hide-hi: #2D4F82; --hide-mid: #1C3459; --hide-lo: #0F1D35; --stitch: rgba(214, 226, 248, .85);
  --fg: #fff; --fg-2: rgba(255, 255, 255, .84); --btn-bg: #fff; --btn-fg: #13243D; }
.w-felt { --hide-hi: #2E6B47; --hide-mid: #1D4B31; --hide-lo: #0F2D1D; --stitch: rgba(232, 196, 110, .92);
  --fg: #F4EFE4; --fg-2: rgba(244, 239, 228, .84); --btn-bg: #F4EFE4; --btn-fg: #10241A; }
.w-metal { --hide-hi: #3A3633; --hide-mid: #232120; --hide-lo: #0F0E0E; --stitch: rgba(226, 194, 122, .9);
  --fg: #F0D594; --fg-2: rgba(240, 225, 190, .82); --btn-bg: #E2C27A; --btn-fg: #141008; }

/* Marker is gold hide: dark lettering, dark thread, the gold mark on a black tile, the stamp pressed in dark red */
.w-marker .me-wname { text-shadow: 0 1px 0 rgba(255, 240, 180, .5); }
.w-marker .me-wstate { background: rgba(28, 18, 4, .14); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.w-marker .me-wlink { border-top-color: rgba(28, 18, 4, .25); }
.me-wlogo.dark { padding: 2px; background: #141008; box-shadow: inset 0 0 0 1px rgba(242, 203, 42, .5), 0 2px 4px rgba(0, 0, 0, .35); }
.me-stamp { display: block; width: fit-content; margin: 2px 4px 14px auto; padding: 3px 8px; border: 2px solid #8E1F18; border-radius: 4px; color: #8E1F18; rotate: -7deg;
  font: 800 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: .9; box-shadow: 0 1px 0 rgba(255, 240, 180, .4); }
.me .w-marker .switch, .me .w-marker .switch[aria-checked="true"] { background: transparent; }
.w-marker .switch::before { background: rgba(28, 18, 4, .3); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4); }
.w-marker .switch[aria-checked="true"]::before { background: #141008; }
.w-marker .switch::after { background: linear-gradient(#fff, #EDE9DF); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }

/* ── The scorecard: cream card, green header, ruled rows, choices circled in pencil ───────────────────── */
.me-card-sc { --ink: #17271E; --ink-2: #625D50; --rule: #DCD2BE; --graphite: #2E3833;
  position: relative; margin-top: 40px; border-radius: 12px; overflow: hidden; color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(175deg, #FCF9F1 0%, #F6F0E2 100%);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #E2D8C3, 0 2px 0 #D3C7AE, 0 3px 0 #BFB195, 0 14px 24px -8px rgba(0, 0, 0, .5), 0 30px 50px -24px rgba(0, 0, 0, .55); }
.screen.dusk .me-card-sc h2 { color: #F4EFE4; }
.me-sc-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px 14px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 5px), linear-gradient(#22533A, #1A4330);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); }
.me-sc-head h2 { margin: 0; font: 400 23px/1.1 "DM Serif Display", var(--serif); letter-spacing: -.005em; }
.me-sc-flag { color: #E2C27A; }
.me-sc-flag .ico { width: 22px; height: 22px; }

.me-sc-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.me-sc-k { font: 650 15px/1.3 var(--sans); color: var(--ink); }
.me-sc-note { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--ink-2); }
/* choice rows: the label, then the options written across the card */
.me-sc-row:has([role="radiogroup"]) { grid-template-columns: 1fr; }
.me-sc-v[role="radiogroup"] { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 2px 0 0 -10px; }
.me-sc-v [role="radio"] { position: relative; min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; background: none; color: var(--ink-2); font: 600 16px/1 var(--sans); -webkit-tap-highlight-color: transparent; }
.me-sc-v [role="radio"][aria-checked="true"] { color: var(--ink); font-weight: 750; }
.me-sc-v [role="radio"]:focus-visible { outline: 2px solid #B88C38; outline-offset: 0; border-radius: 22px; }
.me-ring { position: absolute; left: -2px; top: 3px; width: calc(100% + 4px); height: calc(100% - 6px); overflow: visible; pointer-events: none; }
.me-ring path, .me-tick path { fill: none; stroke: var(--graphite); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; transition: stroke-dashoffset 0s; }
.me-ring path { stroke-width: 1.8; }
[aria-checked="true"] > .me-ring path, [aria-checked="true"] > .me-tick path { stroke-dashoffset: 0; transition: stroke-dashoffset 380ms cubic-bezier(.3, .1, .3, 1); }

/* tick boxes */
.me-box { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.me-box::before { content: ''; width: 24px; height: 24px; border: 1.6px solid #3F4B44; border-radius: 4px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 1px 2px rgba(60, 45, 20, .2); }
.me-box:focus-visible { outline: 2px solid #B88C38; outline-offset: -2px; border-radius: 8px; }
.me-tick { position: absolute; left: 9px; top: 0; width: 32px; height: 32px; overflow: visible; pointer-events: none; }
.me-tick path { stroke-width: 2.6; }
.me-box:active::before { transform: scale(.94); transition: transform 100ms ease-out; }

/* carry distances, written on ruled lines */
.me-sc-clubs { grid-template-columns: 1fr; }
.me-lines { width: 100%; margin-top: 4px; padding: 0 2px; border: 0; border-radius: 0; resize: none; outline: none; color: #24364F; caret-color: #24364F;
  font: 400 22px/34px "Vault Hand", cursive; background: repeating-linear-gradient(to bottom, transparent 0 33px, #CFC3AC 33px 34px); }
.me-lines::placeholder { color: rgba(36, 54, 79, .5); }
.me-lines:focus { background: repeating-linear-gradient(to bottom, transparent 0 33px, #B88C38 33px 34px); }

/* signed at the foot, in pen */
.me-sc-sign { display: flex; align-items: flex-end; gap: 12px; padding: 14px 18px 18px; }
.me-sc-sign .k { font: 650 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 6px; }
.me-sig { flex: 1; min-width: 0; min-height: 36px; padding: 0 6px; border-bottom: 1px solid #A39A86; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 400 27px/36px "Vault Hand", cursive; color: #1F3A6B; }

/* ── Foot: two quiet lines ──────────────────────────────────────────────────────────────────── */
.me-foot { margin-top: 34px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.me-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.me-quiet { flex: none; min-height: 44px; padding: 0 2px; border: 0; background: none; color: #E2C27A; font: 650 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.me-about summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px; list-style: none; cursor: pointer; }
.me-about summary::-webkit-details-marker { display: none; }
.me-about summary span { color: rgba(255, 255, 255, .62); }
.me-fine { padding: 0 4px; }
.me-fine p { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .64); }

/* the bits the browser draws */
.me ::selection { background: rgba(201, 161, 74, .45); color: #fff; }
.me-tag ::selection, .me-card-sc ::selection { background: rgba(184, 140, 56, .3); color: #10241A; }

@media (max-width: 389px) { .me-since { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .me-tag { transform: none; }
  .me-in .me-tag { animation: none; }
  .me-sheen, .me-tag::after { translate: none; }
  .me-wcard, .me-wbody, .me-wcard.open .me-wbody { transition: none; }
  .me-wcard.open { translate: none; }
  [aria-checked="true"] > .me-ring path, [aria-checked="true"] > .me-tick path { transition: none; }
}

/* ── Contours on Me (Luke, 2026-10-20) ───────────────────────────────────────────────────────────────────────────
   The ground behind the page is the same stacked terraces + contour lines as Stats and Courses (layer made in me.js backdrop()).
   The bag tag is black contour glass; the name, club, Index and rounds sit on dark-green digital screens so they read cleanly;
   the band under it is green contour. */
.screen.me-bg { position: relative; isolation: isolate; overflow-x: clip; }
.screen.me-bg > :not(.st-bg) { position: relative; z-index: 1; }
.screen.me-bg > .me-bgmap { --st-bg-tail: 0px; overflow: hidden; contain: paint; }
.me-bgmap .st-bg-map { inset: 0; background-size: 124% auto; background-position: 50% 0; }
.me-bgmap .me-terr { opacity: .92; }
.me-bgmap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 20, .35), rgba(10, 30, 20, 0) 30%, rgba(10, 30, 20, .25)); }

.me-tag-face { --tag-ink: #fff; --tag-quiet: rgba(255, 255, 255, .74); color: #fff; padding-bottom: 0;
  background-color: #070A09;
  background-image: linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 34%), var(--me-dark, none), linear-gradient(180deg, #1B221F 0%, #070A09 100%);
  background-size: auto, 100% auto, auto; background-repeat: no-repeat, repeat-y, no-repeat; background-position: 0 0, center top, 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 1px 0 #1B221F, 0 2px 0 #151B18, 0 3px 0 #101512, 0 4px 0 #0B0F0D, 0 5px 0 #070A09, 0 6px 0 #050706,
    0 16px 26px -8px rgba(0, 0, 0, .7), 0 34px 60px -22px rgba(0, 0, 0, .7); }
.me-sheen { mix-blend-mode: screen; opacity: .22; }
.me-pen { color: #fff; }
/* the digital screens the writing sits on */
.me-who, .me-idx, .me-rounds {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    radial-gradient(130% 90% at 50% 0%, #0E2318 0%, #07140D 55%, #040B07 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .9), inset 0 2px 8px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .1); border-radius: 14px; }
.me-who { flex: 1; padding: 12px 14px; }
.me-idx, .me-rounds { padding: 10px 14px 12px; }
.me-tag-nums { border-top: 0; align-items: stretch; padding: 14px 0 16px; }
.me-name { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.me-club { color: rgba(255, 255, 255, .78); }
.me-tag-nums .k { color: rgba(140, 240, 185, .72); }
.me-tag-nums .v { color: #FFD97A; text-shadow: 0 0 10px rgba(255, 190, 70, .35), 0 2px 0 rgba(0, 0, 0, .6); }
.me-idx .n { color: rgba(255, 255, 255, .72); }
.me-face { border-color: #1B221F; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .22), 0 6px 12px -4px rgba(0, 0, 0, .7); }
/* the band: green contour, the same green lines laid over a deep green */
.me-tag-band { background-color: #16351F;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 60%), var(--me-green, none), linear-gradient(180deg, #2B5B3D 0%, #16351F 100%);
  background-size: auto, 100% auto, auto; background-repeat: no-repeat, repeat-y, no-repeat; background-position: 0 0, center top, 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.me-who.me-editing input { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .32); caret-color: #FFD97A; }
.me-who.me-editing input::placeholder { color: rgba(255, 255, 255, .5); }
.me-tag ::selection { background: rgba(255, 217, 122, .35); color: #fff; }

/* ── The wallet is a whole wallet (Luke, 2026-10-20) ─────────────────────────────────────────────────────────────
   One black leather body sits behind every card, a little wider than they are, and runs on down behind "On the course", which slides in
   front of it like a card in the pocket. Its bottom edge is hidden behind the scorecard, so you never see where it ends. */
.me-wallet { --wing: 12px; isolation: isolate; }
.me-wallet::before { content: ''; position: absolute; z-index: -1; top: -12px; bottom: -34px; left: calc(var(--wing) * -1); right: calc(var(--wing) * -1);
  border-radius: 26px 26px 0 0; filter: none; height: auto; background:
    radial-gradient(130% 70% at 20% -4%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .35)),
    url("/img/leather-grain.webp") 0 0 / 300px 300px,
    radial-gradient(120% 140% at 15% 0%, #3A3633 0%, #1B1918 48%, #0B0A0A 100%);
  background-blend-mode: normal, normal, overlay, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(0, 0, 0, .6), 0 18px 34px -12px rgba(0, 0, 0, .75); }
/* its stitched seam, running down both sides and over the top */
.me-wallet::after { content: ''; position: absolute; z-index: -1; top: -5px; bottom: -34px; left: calc(var(--wing) * -1 + 5px); right: calc(var(--wing) * -1 + 5px);
  height: auto; filter: none; background: none; border: 2px dashed rgba(226, 194, 122, .85); border-bottom: 0; border-radius: 21px 21px 0 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .55); pointer-events: none; }
.me-wcard:last-child { padding-bottom: 40px; }     /* the Pro card carries on down into the wallet */
.me-card-sc { z-index: 3; margin: -24px calc(var(--wing, 12px) * -1) 0; }
.me-wallet { margin-bottom: 0; padding-bottom: 6px; }

/* ════ Tone-on-tone stitching (Luke, 2026-10-25): each wallet card is sewn in a lighter shade of its own hide, so the seam still shows as a pattern
   but never shouts: brown on brown, gold on gold, blue on blue, green on green, grey on black. ═════════════════════════════════════════════ */
.w-leather { --stitch: rgba(206, 142, 92, .9); }
.w-marker { --stitch: rgba(158, 110, 20, .9); }
.w-hna { --stitch: rgba(104, 140, 202, .92); }
.w-felt { --stitch: rgba(92, 160, 122, .92); }
.w-metal { --stitch: rgba(118, 112, 106, .92); }

/* Scratch Pro in black crocodile (Luke, 2026-10-25), the same skin first tried on the Courses bars, with black stitching (Luke).
   Picture: Luke's, licence unknown, demo only until replaced. */
.me-wcard.w-metal::before { background:
    linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, .35) 100%),
    url("/img/croc-black.webp") center / cover no-repeat, #0B0B0B;
  background-blend-mode: normal; }
.me-wcard.w-metal { --stitch: rgba(0, 0, 0, .92); }
.me-wcard.w-metal::after { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .14)); }   /* black thread, a faint light edge so it reads on the dark hide */
.w-metal .me-wname { text-shadow: 0 2px 6px rgba(0, 0, 0, .85); }
/* no seam round the wallet itself any more (Luke, 2026-10-25): each card keeps its own stitching, the wallet body behind them is plain */
.me-wallet::after { content: none; }

/* ════ Card skins (Luke, 2026-10-25): what the bag tag is made of, picked under the tag while editing (me.js SKINS). No data-skin =
   the original black contour. The same looks paint the little swatches in the picker. ════════════════════════════════════════ */
:is(.me-tag-face, .me-skin-sw)[data-skin] { background-size: auto; background-repeat: no-repeat; background-position: 0 0; background-blend-mode: normal; }
:is(.me-tag-face, .me-skin-sw)[data-skin^="leather-"] {
  background-image: radial-gradient(130% 90% at 20% -10%, rgba(255, 255, 255, .16), transparent 55%), radial-gradient(150% 130% at 50% 50%, transparent 55%, rgba(0, 0, 0, .4)),
    url("/img/leather-grain.webp"), var(--skin);
  background-size: auto, auto, 300px 300px, auto; background-repeat: no-repeat, no-repeat, repeat, no-repeat; background-blend-mode: normal, normal, overlay, normal; }
:is(.me-tag-face, .me-skin-sw)[data-skin="leather-black"] { --skin: radial-gradient(120% 140% at 15% 0%, #34322E 0%, #1A1917 48%, #0A0A09 100%); background-color: #0A0A09; }
:is(.me-tag-face, .me-skin-sw)[data-skin="leather-white"] { --skin: radial-gradient(120% 140% at 15% 0%, #FBF8F1 0%, #E4DFD3 50%, #BDB6A7 100%); background-color: #E4DFD3; }
:is(.me-tag-face, .me-skin-sw)[data-skin="leather-red"] { --skin: radial-gradient(120% 140% at 15% 0%, #C8343A 0%, #8E161D 50%, #45080D 100%); background-color: #8E161D; }
:is(.me-tag-face, .me-skin-sw)[data-skin="leather-yellow"] { --skin: radial-gradient(120% 140% at 15% 0%, #F8D452 0%, #D9A41A 50%, #8A6208 100%); background-color: #D9A41A; }
/* the grass behind the Estimated Index on Home (home2.css .idx-band) */
:is(.me-tag-face, .me-skin-sw)[data-skin="grass"] { background-color: #1F4A26;
  background-image: linear-gradient(rgba(6, 36, 14, .5), rgba(6, 36, 14, .5)), url("/img/grass.jpg"); background-size: auto, 460px auto; background-repeat: no-repeat, repeat; background-position: 0 0, center; }
:is(.me-tag-face, .me-skin-sw)[data-skin^="croc-"] {
  background-image: radial-gradient(150% 130% at 50% 50%, transparent 55%, rgba(0, 0, 0, .45)), var(--skin); background-size: auto, cover; background-position: 0 0, center; }
:is(.me-tag-face, .me-skin-sw)[data-skin="croc-black"] { --skin: url("/img/croc-black.webp"); background-color: #0B0B0B; }
:is(.me-tag-face, .me-skin-sw)[data-skin="croc-red"] { --skin: url("/img/croc-red.webp"); background-color: #4A0A10; }
:is(.me-tag-face, .me-skin-sw)[data-skin="croc-brown"] { --skin: url("/img/croc-brown.webp"); background-color: #3A1C0B; }
:is(.me-tag-face, .me-skin-sw)[data-skin="zebra"] { background-color: #F2F0EA;
  background-image: radial-gradient(150% 130% at 50% 50%, transparent 55%, rgba(0, 0, 0, .35)), url("/img/btn-zebra.webp"); background-size: auto, auto 192px; background-repeat: no-repeat, repeat; background-position: 0 0, center; }
/* on the light skins the pen goes dark so it still shows */
.me-tag-face:is([data-skin="leather-white"], [data-skin="leather-yellow"], [data-skin="zebra"]) .me-pen { color: #10281B; }

/* the picker: a row of swatches under the tag, scrolling sideways on narrow phones */
.me-skins { max-width: 400px; margin: 18px auto 0; }
.me-skins-h { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); text-align: center; }
.me-skins-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.me-skins-row::-webkit-scrollbar { display: none; }
.me-skin { flex: none; display: grid; justify-items: center; gap: 5px; width: 62px; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
.me-skin-sw { display: block; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 3px 8px rgba(0, 0, 0, .45);
  background: linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 34%), var(--me-dark, none) center / 300% auto, linear-gradient(180deg, #1B221F 0%, #070A09 100%); }
.me-skin-sw[data-skin] { background-size: auto, auto, 150px 150px, auto; }
.me-skin-sw[data-skin="grass"] { background-size: auto, 230px auto; }
.me-skin-sw:is([data-skin^="croc-"], [data-skin="zebra"]) { background-size: auto, cover; }
.me-skin-l { font-size: 11px; font-weight: 650; line-height: 1.15; text-align: center; color: rgba(255, 255, 255, .85); }
.me-skin[aria-checked="true"] .me-skin-sw { box-shadow: 0 0 0 2px #070A09, 0 0 0 4px #E6C98A, 0 3px 8px rgba(0, 0, 0, .45); }
.me-skin[aria-checked="true"] .me-skin-l { color: #F1D98F; }
.me-skin:focus-visible { outline: none; }
.me-skin:focus-visible .me-skin-sw { box-shadow: 0 0 0 2px #070A09, 0 0 0 4px #fff; }
/* Your club (js/club-link.js): the same paper card as "On the course". */
.me-club-link { margin-top: 16px; }
.me-club-link .cl-intro { margin: 0 0 4px; padding: 0 2px; }
.me-club-link .cl-opts[hidden], .me-club-link [hidden] { display: none; }
.me-club-link select.me-club-in { width: 100%; min-height: 44px; box-sizing: border-box; }
.me-club-link .cl-msg { min-height: 1.2em; margin: 6px 2px 0; }
.me-club-link .cl-btns { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.me-club-link .cl-btns .btn { min-height: 46px; padding: 0 22px; }
.me-club-link .btn.primary { background: #1A4330; border-color: #1A4330; color: #fff; }
