/* Source Serif 4 (SIL Open Font License), self-hosted so no visitor data goes to Google. latin + latin-ext only. */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(fonts/source-serif-4-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(fonts/source-serif-4-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Forest green and hunter orange on a deep green-black base (dark, in the spirit of Sleeper). */
  --green: #1f8a4c;            /* forest green: buttons, brand surfaces */
  --green-dark: #17703d;
  --green-bright: #4cc98a;     /* forest green for text and icons on dark */
  --green-deep: #0e1a14;
  --green-soft: #1b2e24;       /* green-tinted surface */
  --yellow: #ff6a13;           /* hunter orange: the accent (kept under its old name) */
  --yellow-soft: #2d1c11;
  --orange: #ff6a13;
  --on-orange: #1d0d02;
  --paper: #0b120e;            /* page */
  --card: #131e18;             /* cards */
  --surface-2: #1a2920;        /* raised surfaces */
  --ink: #eef4f0;
  --muted: #92a79b;
  --line: #243529;
  --danger: #ff6b5e;
  --r: 12px;
  --serif: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;   /* headings and numbers: bold sans */
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --stripe: repeating-linear-gradient(100deg, #12563a 0 26px, #17613f 26px 52px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 800; margin: 0; color: var(--ink); letter-spacing: -0.005em; line-height: 1.2; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
a { color: var(--green-bright); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .tiny { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-bright); font-weight: 700; margin-bottom: 6px; }

/* Icons */
.i { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.22em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i.fill { fill: currentColor; }

/* Shell */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--surface-2); color: #fff; padding: 26px 0 20px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 22px 26px; font-family: var(--serif); font-size: 24px; font-weight: 600; color: #fff; text-decoration: none; line-height: 1.1; }
.brand svg { flex: none; }
.brand small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--yellow); margin-top: 3px; }
.nav { display: flex; flex-direction: column; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 12px 22px; color: #a9c2b4; text-decoration: none; font-weight: 500; font-size: 15px; border-left: 3px solid transparent; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { color: #fff; font-weight: 600; border-left-color: var(--yellow); background: rgba(255, 255, 255, .08); }
.nav a.active .i { color: var(--yellow); }
.nav .i { width: 21px; height: 21px; }
.side .me { margin: auto 14px 10px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; color: #fff; }
.side .me .small { color: #a9c2b4; font-size: 13px; }
.side > .btn { margin: 0 14px; }
.main { padding: 32px 36px 64px; max-width: 1180px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 52ch; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 28px; align-items: start; }

/* Cards & controls */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush.feed { overflow: visible; }
.card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.card-title a { font-size: 14px; font-weight: 600; }
.btn { border: 1px solid var(--green); background: var(--green); color: #fff; padding: 0 18px; min-height: 42px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.alt { background: var(--yellow); border-color: var(--yellow); color: var(--on-orange); }
.btn.alt:hover { background: #f0c10f; border-color: #f0c10f; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--green-soft); border-color: var(--green); }
.btn.danger { background: transparent; color: var(--danger); border-color: #6a2f2a; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.on { background: var(--green-soft); color: var(--green-bright); border-color: var(--green); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 4px; font-size: 13px; font-weight: 600; background: var(--green-soft); color: var(--green-bright); white-space: nowrap; }
.chip.yellow { background: var(--yellow-soft); color: var(--yellow); }
.chip.gray { background: var(--surface-2); color: var(--muted); }
.chip.red { background: #3a1d1b; color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); outline-offset: 0; border-color: var(--green); }
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.empty { text-align: center; padding: 30px; color: var(--muted); }

/* Avatar */
.av { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; flex: none; object-fit: cover; font-family: var(--serif); }

/* Stories */
.stories { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 10px; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; width: 68px; flex: none; font-size: 13px; color: var(--ink); }
.story .ring { padding: 2px; border-radius: 50%; border: 2px solid var(--green); display: inline-flex; }
.story .ring .av { border: 2px solid var(--paper); }
.story.add .ring { border-style: dashed; border-color: var(--muted); }
.story.add .plus { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--green); }
.story-view { border-radius: var(--r); min-height: 360px; display: grid; place-items: center; text-align: center; padding: 28px; }
.story-view span { background: rgba(11, 46, 34, .88); color: #fff; padding: 12px 18px; font-family: var(--serif); font-size: 24px; font-weight: 600; border-radius: 4px; }

/* Posts */
.composer textarea { border: 0; padding: 4px 0; min-height: 66px; font-size: 16px; }
.composer textarea:focus { outline: none; }
.preview { position: relative; border-radius: var(--r); overflow: hidden; margin: 8px 0; max-width: 320px; }
.preview img, .preview video { width: 100%; display: block; }
.post { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post .body { margin: 10px 0 10px; font-size: 16px; white-space: pre-wrap; word-wrap: break-word; }
.media { border-radius: 6px; overflow: hidden; margin: 6px 0 10px; }
.media img, .media video { width: 100%; display: block; max-height: 460px; object-fit: cover; }
.media.art { aspect-ratio: 16/8; display: flex; align-items: flex-end; }
.media.art span { background: rgba(11, 46, 34, .88); color: #fff; padding: 6px 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.actions { display: flex; gap: 4px; margin-left: -10px; }
.actions button { background: none; border: 0; color: var(--muted); min-height: 36px; padding: 0 10px; border-radius: 6px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.actions button:hover { background: var(--green-soft); color: var(--green-bright); }
.actions button.liked { color: #ff6b5e; }
.comments { margin-top: 8px; padding-left: 14px; border-left: 2px solid var(--yellow); display: flex; flex-direction: column; gap: 8px; }
.comment { font-size: 14.5px; }

/* Profile */
.banner { height: 104px; background: var(--stripe); }
.profile-top { padding: 0 24px 22px; margin-top: -46px; position: relative; z-index: 1; }
.profile-top .av { border: 4px solid var(--card); }
.profile-top .after { margin-top: 56px; }
.hcp-badge { text-align: center; background: var(--paper); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 10px 20px; }
.hcp-badge b { display: block; font-family: var(--serif); font-weight: 600; font-size: 32px; color: var(--yellow); line-height: 1.1; }
.hcp-badge span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kv { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bag { list-style: none; margin: 0; padding: 0; }
.bag li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; font-size: 15px; }
.bag li:last-child { border-bottom: 0; }
.dot { width: 6px; height: 6px; background: var(--yellow); border: 1px solid var(--green); border-radius: 50%; flex: none; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.media-grid .tile { aspect-ratio: 1; border-radius: 4px; overflow: hidden; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.media-grid .tile span { background: rgba(11, 46, 34, .88); color: #fff; padding: 3px 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.score-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: 0; }
.score-num { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--green-bright); width: 44px; text-align: center; }

/* People */
.person { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person a.name { color: var(--ink); font-weight: 600; text-decoration: none; }
.person a.name:hover, .post a.name:hover { text-decoration: underline; }
.post a.name { color: var(--ink); font-weight: 600; text-decoration: none; }
.filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; align-items: end; }

/* Handicap */
.big-index { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: repeating-linear-gradient(100deg, #0b2e22 0 40px, #0d3427 40px 80px); color: #fff; border-radius: var(--r); padding: 26px 30px; }
.big-index .num { font-family: var(--serif); font-size: 68px; font-weight: 600; color: var(--yellow); line-height: 1; }
.big-index .lbl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat { text-align: center; padding: 0 12px; }
.stat b { display: block; font-family: var(--serif); font-weight: 600; font-size: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); }
tr.counted td { background: var(--yellow-soft); }
tr.counted td:first-child { box-shadow: inset 3px 0 0 var(--yellow); }
.tbl-wrap { overflow-x: auto; }
details { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; background: var(--card); }
details summary { cursor: pointer; font-weight: 600; font-family: var(--serif); font-size: 17px; color: var(--ink); }
details p, details li { font-size: 14.5px; color: #34453c; }
.formula { font-family: ui-monospace, Menlo, monospace; background: var(--green-soft); padding: 8px 12px; border-radius: 4px; font-size: 13px; display: block; margin: 8px 0; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.cal .dow { background: var(--surface-2); color: #fff; font-size: 12px; text-align: center; padding: 9px 0; letter-spacing: .12em; text-transform: uppercase; }
.cal .day { min-height: 96px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 6px; font-size: 12.5px; background: var(--card); }
.cal .day:nth-child(7n+1) { border-left: 0; }
.cal .day.off { background: var(--surface-2); color: #8d9a92; }
.cal .day.today .dn { background: var(--yellow); color: var(--ink); }
.cal .dn { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 600; }
.cal .ev { display: block; width: 100%; text-align: left; margin-top: 3px; padding: 4px 6px; border-radius: 3px; background: var(--green); color: #fff; border: 0; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .ev.past { background: #6c7f74; }
.event-card { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.event-card:last-child { border-bottom: 0; }
.date-box { width: 54px; text-align: center; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); flex: none; background: var(--card); }
.date-box b { display: block; background: var(--green); color: #fff; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; padding: 2px 0; }
.date-box span { display: block; font-family: var(--serif); font-weight: 600; font-size: 24px; padding: 3px 0; }
.vote { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; }
.vote .bar { height: 5px; background: var(--green-soft); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.vote .bar i { display: block; height: 100%; background: var(--green); }
.vote.chosen { border-color: var(--green); background: var(--green-soft); }
.team { border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.team.a { border-top: 4px solid var(--green); } .team.b { border-top: 4px solid var(--yellow); }
.team .p { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; }

/* Communities & market */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.comm-card { display: flex; flex-direction: column; gap: 12px; }
.mono { width: 48px; height: 48px; border-radius: 6px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 24px; color: #fff; flex: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.listing .thumb { height: 132px; display: flex; align-items: flex-end; }
.listing .thumb span { background: rgba(11, 46, 34, .88); color: #fff; padding: 5px 11px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.listing .info { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--green-bright); }
.fair { font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 4px; align-self: flex-start; }
.fair.good { background: var(--green-soft); color: #17602f; } .fair.high { background: var(--yellow-soft); color: #7d520d; } .fair.even { background: var(--surface-2); color: var(--muted); }
.cres { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; padding: 10px 12px; margin-top: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; gap: 1px; }
.cres:hover { border-color: var(--green); background: var(--green-soft); }

/* Modal & toast */
#modal { position: fixed; inset: 0; background: rgba(11, 46, 34, .6); display: none; align-items: flex-start; justify-content: center; padding: 5vh 14px; overflow-y: auto; z-index: 50; }
#modal.open { display: flex; }
.sheet { background: var(--card); border-radius: var(--r); width: 100%; max-width: 520px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.sheet.wide { max-width: 720px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--surface-2); color: #fff; }
.sheet-head h3 { color: #fff; }
.sheet-head button { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; min-width: 44px; min-height: 44px; margin-right: -10px; }
.sheet-body { padding: 22px; }
#toast { position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface-2); color: #fff; padding: 11px 18px; border-radius: 6px; font-size: 14.5px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 60; border-left: 4px solid var(--yellow); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }

/* ---------- Motion components ----------
   CSS ports of Subframe Motion examples (sliding-tabs, slider-detents, optic-toggle, filter-builder, press-depth).
   One motion language: --ease-out for things that enter/respond, 120-200ms; exits ~1/3 faster. */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }

/* Press + hover feedback (press-depth, simplified to a flat press) */
.btn, .icon-btn, .actions button, .story, .cres, .nav a, .seg button, .menu-pop > * {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out), box-shadow 140ms ease;
}
.btn:active:not([disabled]), .icon-btn:active, .actions button:active, .cres:active { transform: scale(.97); }
.story:active .ring { transform: scale(.95); }
.story .ring { transition: transform 120ms var(--ease-out); }
@media (hover: hover) { .btn:hover:not([disabled]):not(.on) { box-shadow: 0 1px 0 rgba(11, 46, 34, .16); } }

/* Switch (optic-toggle): thumb slides 200ms ease-out, grows slightly while pressed */
.switch-row { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; font-weight: 500; font-size: 15px; color: var(--ink); cursor: pointer; }
.switch-row.split { justify-content: space-between; }
.switch-row .muted { font-weight: 400; }
input.sw { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; height: 28px; margin: 0; border-radius: 14px; background: var(--line); border: 1px solid #5a6e61; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease; }
input.sw::before { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgba(11, 46, 34, .35); transition: transform 200ms var(--ease-out), width 120ms var(--ease-out); }
input.sw::after { content: ''; position: absolute; top: 10px; left: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); transition: transform 200ms var(--ease-out), background-color 180ms ease; }
input.sw:checked { background: var(--green); border-color: var(--green-dark); }
input.sw:checked::before { transform: translateX(18px); }
input.sw:checked::after { transform: translateX(18px); background: var(--yellow); }
input.sw:active::before { width: 26px; }
input.sw:checked:active::before { transform: translateX(14px); }
input.sw:focus, input.sw:focus-visible { outline: none; border-color: inherit; }
input.sw:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
input.sw:checked:focus-visible { border-color: var(--green-dark); }

/* Range slider (slider-detents): native input restyled, ticks mark the stops it snaps to while dragging */
.range { position: relative; padding-bottom: 20px; }
input[type=range] { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 36px; margin: 0; padding: 0; background: transparent; cursor: grab; border: 0; min-height: 0; border-radius: 0; touch-action: pan-y; }
input[type=range]:active { cursor: grabbing; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--green) calc(10px + (100% - 20px) * var(--p)), var(--surface-2) calc(10px + (100% - 20px) * var(--p))); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--surface-2); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--green); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 24px; margin-top: -8px; border-radius: 7px; background: var(--green); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(11, 46, 34, .45); transition: transform 120ms var(--ease-out); }
input[type=range]::-moz-range-thumb { width: 18px; height: 20px; border-radius: 7px; background: var(--green); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(11, 46, 34, .45); transition: transform 120ms var(--ease-out); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type=range]:active::-moz-range-thumb { transform: scale(1.1); }
input[type=range]:focus { outline: none; }
input[type=range]:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; pointer-events: none; font-size: 11.5px; color: var(--muted); }
.ticks span { position: absolute; left: calc(11px + (100% - 22px) * var(--p)); top: 0; transform: translateX(-50%); padding-top: 7px; font-variant-numeric: tabular-nums; transition: color 140ms ease; }
.ticks span::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 5px; margin-left: -1px; background: var(--muted); transition: background-color 140ms ease; }
.ticks span:first-child { transform: none; margin-left: 0; left: 4px; }
.ticks span:first-child::before { left: 7px; margin-left: 0; }
.ticks span:last-child { transform: translateX(-100%); left: calc(100% - 4px); }
.ticks span:last-child::before { left: auto; right: 7px; margin: 0; }
.ticks span.hit { color: var(--ink); font-weight: 700; }
.ticks span.hit::before { background: var(--green); }

/* Segmented control (sliding-tabs): one pill that slides between options */
.seg { display: flex; width: fit-content; max-width: 100%; position: relative; margin-bottom: 12px; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.sheet .seg { margin-bottom: 0; }
.seg-pill { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: inset 0 -2px 0 var(--yellow), 0 1px 2px rgba(11, 46, 34, .1); pointer-events: none; transition: transform 260ms var(--ease-out), width 260ms var(--ease-out); }
.seg button { position: relative; z-index: 1; flex: none; background: none; border: 0; min-height: 36px; padding: 0 14px; border-radius: 6px; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg button[aria-checked="true"] { color: var(--ink); }
@media (hover: hover) { .seg button[aria-checked="false"]:hover { color: var(--ink); } }
.seg button:focus-visible { outline-offset: -2px; }

/* Action menu (filter-builder popover): grows from its trigger, 4-6px travel, scale from .97; exit is faster */
.menu { position: relative; flex: none; }
.menu.open { z-index: 30; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; background: none; border: 0; border-radius: 6px; color: var(--muted); padding: 0; margin: -4px -6px -4px 0; }
.icon-btn:hover { background: var(--green-soft); color: var(--green-bright); }
.menu.open > .icon-btn { background: var(--green-soft); color: var(--green-bright); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 4px); min-width: 196px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 28px rgba(11, 46, 34, .16); transform-origin: top right; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms; }
.menu.open > .menu-pop { opacity: 1; visibility: visible; transform: none; transition: opacity 150ms ease-out, transform 180ms var(--ease-out), visibility 0s; }
.menu-pop > * { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 5px; background: none; text-align: left; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.menu-pop > *:hover, .menu-pop > *:focus-visible { background: var(--green-soft); color: var(--ink); }
.menu-pop > *:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.menu-pop > *:active { transform: scale(.98); }
.menu-pop > .danger { color: var(--danger); }
.menu-pop > .danger:hover, .menu-pop > .danger:focus-visible { background: #3a1d1b; color: var(--danger); }
.menu-pop .i { color: var(--muted); }
.menu-pop > .danger .i { color: inherit; }

/* Modal entrance (200ms, only when opened, not when refreshed in place) */
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
#modal.open { animation: fade-in 160ms ease-out; }
.sheet.pop { animation: pop-in 220ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .btn:active:not([disabled]), .icon-btn:active, .actions button:active, .cres:active, .menu-pop > *:active, .story:active .ring { transform: none; }
}

.mobile-top { display: none; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .cols { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .app { display: block; }
  .side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; flex-direction: row; padding: 0 0 env(safe-area-inset-bottom); z-index: 40; justify-content: space-around; gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .brand, .side .me, .side > .btn { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-around; }
  .nav a { flex-direction: column; gap: 3px; padding: 9px 2px 8px; font-size: 11px; flex: 1; justify-content: center; border-left: 0; border-top: 3px solid transparent; min-height: 54px; }
  .nav a.active { border-top-color: var(--yellow); background: none; }
  .nav .i { width: 22px; height: 22px; }
  .main { padding: 18px 16px 110px; }
  h1 { font-size: 26px; }
  .cal .day { min-height: 64px; padding: 3px; }
  .cal .ev { font-size: 10.5px; padding: 3px; }
  .grid2 { grid-template-columns: 1fr; }
  .big-index { padding: 20px; }
  .big-index .num { font-size: 56px; }
  .mobile-top { display: flex; }
  .page-head { padding-bottom: 14px; }
  .card { padding: 16px; }
  .profile-top { padding: 0 16px 18px; }
}
@media (max-width: 560px) {
  .filters { grid-template-columns: 1fr; gap: 12px; }
  .filters > div:empty { display: none; }
}

/* Accounts: sign up, log in, onboarding */
body.auth-mode .app { display: none; }
#auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--paper); }
#auth[hidden] { display: none; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: var(--r); padding: 28px 28px 24px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); margin-bottom: 20px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card > p.muted { margin: 0 0 18px; }
.auth-msg:empty { display: none; }
.auth-msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 6px; font-size: 14px; line-height: 1.45; background: #3a1d1b; color: var(--danger); border: 1px solid #6a2f2a; }
.auth-msg.ok { background: var(--green-soft); color: var(--green-bright); border-color: var(--line); }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-foot { margin: 18px 0 0; text-align: center; color: var(--muted); line-height: 2; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--green-bright); font: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--green-bright); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 0 0 14px; }
.check input { margin-top: 4px; flex: none; }
.field .hint { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 400; }
@media (max-width: 480px) { .auth-card { padding: 22px 18px 20px; } #auth { align-items: flex-start; padding-top: 20px; } }

/* Friends */
.invite-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 0 2px; border-top: 1px solid var(--line); margin-top: 12px; }
.invite-row input { flex: 1 1 100%; min-width: 0; font-size: 13px; }

/* Calendar: seven equal columns; long round names are shortened instead of stretching a column */
.cal .day { min-width: 0; }
.cal .ev { overflow: hidden; text-overflow: ellipsis; }

/* Calendar entries: mine are outlined green, friends' are yellow */
.cal .ev.entry { background: var(--card); color: var(--green-bright); box-shadow: inset 0 0 0 1.5px var(--green); }
.cal .ev.friend { background: var(--yellow-soft); color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.cal .ev.entry.past, .cal .ev.friend.past { opacity: .6; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

@media (max-width: 760px) { .profile-top .grow.after ~ .after { margin-top: 0; } }

/* Availability ("I'm open to play") */
.cal .ev.open { background: var(--green-soft); color: var(--green-bright); box-shadow: inset 0 0 0 1px var(--line); }
.cal .ev.open.friends { background: var(--card); box-shadow: none; border: 1.5px dashed var(--green); padding: 2.5px 4.5px; }
.avail-day { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 9px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.avail-day:first-of-type { border-top: 0; }
.avail-day.static { display: block; cursor: default; }
.avail-day.static .row { margin-top: 6px; }
form:has([name=courseMode][value=any]:checked) .pickcourse { display: none; }
button.chip { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
button.chip:hover { filter: brightness(.96); }

/* Open-day rows (join / create round). Named oslot, not slot: the bag screen's club rows already use .slot (a 3-column grid) further down. */
.oslot { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-start; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); }
.avail-day.static > b + .oslot { border-top: 0; }
.oslot .grow { min-width: 0; flex: 1 1 190px; }
.oslot-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-start; flex: 0 1 auto; max-width: 100%; }
.oslot-actions .btn { white-space: nowrap; padding-left: 9px; padding-right: 9px; }

/* ---- Top bar, feed, profile tabs ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px -4px 14px; padding: 8px 4px; background: var(--paper); border-bottom: 1px solid var(--line); }
.tb-prof { display: none; position: absolute; inset: 0; z-index: 1; flex-direction: column; justify-content: center; padding: 0 14px; background: var(--paper); min-width: 0; }
.topbar.prof .tb-prof { display: flex; }
.tb-prof b { font-size: 17px; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-prof span { font-size: 13px; color: var(--muted); }
.tb-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; text-decoration: none; }
.tb-btn:hover { background: rgba(11, 46, 34, .07); }
.tb-btn .i { width: 26px; height: 26px; }
.tb-brand .logo-word { height: 52px; }
@media (max-width: 760px) { .tb-brand .logo-word { height: 44px; } }
.tb-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink); text-decoration: none; }
.tb-right { display: flex; gap: 2px; }
.badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d64545; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.badge[hidden] { display: none; }
.fpost { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.fpost:last-child { border-bottom: 0; }
.fpost-body { margin: 4px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.fpost-actions { display: flex; gap: 18px; }
.fpost-actions .act { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 4px 2px; }
.fpost-actions .act:hover { color: var(--ink); }
.fpost-actions .act.on { color: #d64545; }
.fpost-actions .act .i.fill { fill: currentColor; }
.comment { padding: 10px 0; border-top: 1px solid var(--line); }
.pstats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.pstat { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pstat b { font-size: 18px; color: var(--ink); }
.pstat span { font-size: 12.5px; color: var(--muted); }
.ptabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.ptabs button { flex: 1 1 0; min-width: 0; padding: 12px 2px; text-align: center; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.ptabs button.on { color: var(--ink); border-bottom-color: var(--yellow); }
@media (max-width: 760px) { .topbar { margin: -14px -14px 12px; padding: 8px 10px; } }

/* ---- Photos and stories ---- */
.pimg-wait { display: block; width: 100%; height: 100%; min-height: 120px; background: var(--green-soft); }
.pmedia { display: grid; gap: 3px; margin: 6px 0 8px; border-radius: 8px; overflow: hidden; }
.pmedia.n1 { grid-template-columns: 1fr; }
.pmedia.n2, .pmedia.n3, .pmedia.n4 { grid-template-columns: 1fr 1fr; }
.pmedia.n3 .pimg:first-child { grid-row: span 2; }
.pimg { display: block; padding: 0; border: 0; background: var(--green-soft); cursor: zoom-in; overflow: hidden; }
.pimg img { display: block; width: 100%; height: 100%; object-fit: cover; max-height: 460px; }
.pmedia.n1 .pimg img { max-height: 520px; }
.pmedia.n2 .pimg img, .pmedia.n3 .pimg img, .pmedia.n4 .pimg img { aspect-ratio: 1; }
.pmedia.n3 .pimg:first-child img { aspect-ratio: auto; height: 100%; }
.lb-img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 6px; }
.pprevs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pprevs:empty { display: none; }
.pprev { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; }
.pprev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pprev-x { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(11, 46, 34, .75); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pprev-x .i { width: 14px; height: 14px; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.mtile { position: relative; padding: 0; border: 0; aspect-ratio: 1; background: var(--green-soft); cursor: pointer; overflow: hidden; }
.mtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcount { position: absolute; top: 5px; right: 5px; display: inline-flex; gap: 3px; align-items: center; padding: 2px 6px; border-radius: 10px; background: rgba(11, 46, 34, .7); color: #fff; font-size: 12px; }
.mcount .i { width: 12px; height: 12px; }
.storybar { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 4px; scrollbar-width: none; }
.storybar::-webkit-scrollbar { display: none; }
.stile { position: relative; flex: 0 0 auto; width: 68px; text-align: center; }
.stile span { display: block; margin-top: 5px; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sring { display: block; margin: 0 auto; padding: 3px; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; }
.sring.unseen { background: linear-gradient(135deg, var(--yellow), #e8a400 55%, var(--green)); }
.sring.seen { background: var(--line); }
.sring.none { background: none; padding: 3px; box-shadow: inset 0 0 0 1.5px var(--line); }
.sring .av { border: 2px solid var(--paper); box-sizing: content-box; }
.sadd { position: absolute; right: 2px; top: 38px; width: 22px; height: 22px; padding: 0; border: 2px solid var(--paper); border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sadd .i { width: 12px; height: 12px; }
.sviewer { position: relative; width: min(440px, 100vw); height: min(780px, 100vh); margin: auto; background: #111; color: #fff; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; }
.sbars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
.sbars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; }
.sbars i.done::after { content: ''; position: absolute; inset: 0; background: #fff; }
.sbars i.cur::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: sfill 5s linear forwards; }
@keyframes sfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .sbars i.cur::after { animation: none; } }
.shead { position: absolute; top: 18px; left: 10px; right: 8px; display: flex; align-items: center; gap: 8px; z-index: 3; font-size: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.shead span { opacity: .8; font-size: 12.5px; }
.sbtn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sstage { flex: 1; display: flex; align-items: center; justify-content: center; background: #000; }
.simg { width: 100%; height: 100%; object-fit: contain; }
.scap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font-size: 16px; z-index: 2; text-align: center; }
.snav { position: absolute; top: 60px; bottom: 0; width: 40%; border: 0; background: none; cursor: pointer; z-index: 2; }
.snav.prev { left: 0; } .snav.next { right: 0; }
.snav:focus-visible { outline: 2px solid var(--yellow); }

/* ---- Scorecard ---- */
.rsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.rsum > div, .rcap > div { background: var(--surface-2); color: #fff; border-radius: var(--r); padding: 10px 8px; text-align: center; display: flex; flex-direction: column; }
.rsum b, .rcap b { font-family: var(--serif); font-size: 26px; color: var(--yellow); line-height: 1.1; }
.rsum span, .rcap span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #a9c2b4; }
.rcap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.hole { margin-bottom: 14px; }
.scorebig { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 12px 0 4px; }
.scorebig .sv { min-width: 96px; text-align: center; font-family: var(--serif); font-size: 76px; line-height: 1; color: var(--ink); }
.step { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--green); background: var(--card); color: var(--green-bright); font-size: 32px; line-height: 1; cursor: pointer; }
.step:active { background: var(--green-soft); }
.hgrid { display: grid; gap: 8px; }
.hrow { display: grid; grid-template-columns: 34px repeat(9, minmax(0, 1fr)) 34px; gap: 3px; align-items: stretch; }
.hlbl, .htot { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.hc { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 2px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; font: inherit; }
.hc small { font-size: 10px; color: var(--muted); }
.hc b { font-size: 16px; min-height: 19px; }
.hc em { font-size: 9.5px; font-style: normal; color: var(--muted); }
.hc.bird { background: var(--green-soft); border-color: #7bbd92; }
.hc.par { background: var(--card); }
.hc.bog { background: var(--yellow-soft); border-color: var(--yellow); }
.hc.dbl { background: #3a1d1b; border-color: #8a3b33; }
.hc.cur { outline: 2px solid var(--green); outline-offset: 1px; }
@media (max-width: 480px) { .hrow { grid-template-columns: 26px repeat(9, minmax(0, 1fr)) 26px; gap: 2px; } .hc b { font-size: 14px; } .scorebig .sv { font-size: 64px; } }
.qrow { display: flex; gap: 6px; margin: 12px 0; }
.qrow .btn { flex: 1 1 0; min-width: 0; padding-left: 0; padding-right: 0; justify-content: center; }

/* ---- Notifications ---- */
.notif { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 0; border-top: 1px solid var(--line); }
.notif.unread { background: var(--yellow-soft); }
.notif-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 10px 6px 10px 18px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.notif-main .grow { min-width: 0; overflow-wrap: anywhere; }
.notif.unread .notif-main::before { content: ''; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: -12px; margin-right: 4px; }
@media (max-width: 560px) { .notif { flex-wrap: wrap; } .notif-main { flex: 1 1 100%; } .notif > .row, .notif > .btn { margin: -2px 0 12px 76px; } }

/* ---- Direct messages ---- */
.nav a[data-page=messages] { position: relative; }
.navbadge { position: absolute; top: 6px; left: 54%; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #d64545; color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.navbadge[hidden] { display: none; }
@media (min-width: 761px) { .navbadge { top: 50%; left: auto; right: 18px; transform: translateY(-50%); } }
.conv { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.conv:first-child { border-top: 0; }
.conv:hover { background: var(--green-soft); }
.conv b.normal { font-weight: 600; }
.conv-last { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.conv-last.on { color: var(--ink); font-weight: 600; }
.conv-last .i { width: 15px; height: 15px; }
.badge-dot { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.person.pick { width: 100%; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.thread { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 380px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.thread-head .icon-btn { font-size: 28px; line-height: 1; text-decoration: none; color: var(--ink); width: 34px; text-align: center; }
.thread-head .name { text-decoration: none; color: inherit; min-width: 0; }
.msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); }
.dsep { text-align: center; margin: 10px 0 4px; font-size: 12px; color: var(--muted); }
.bubble-row { display: flex; }
.bubble-row.mine { justify-content: flex-end; }
.bubble { max-width: min(78%, 420px); padding: 8px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.bubble.mine { background: var(--green); color: #fff; border-color: var(--green); }
.btxt { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.btime { font-size: 11px; opacity: .7; display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.unsend { border: 0; background: none; color: inherit; padding: 0; cursor: pointer; opacity: .6; display: inline-flex; }
.unsend:hover { opacity: 1; }
.unsend .i { width: 13px; height: 13px; }
.bubble-img { display: block; padding: 0; border: 0; background: var(--green-soft); border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.bubble-img img { display: block; max-width: 100%; max-height: 300px; }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--card); }
.composer input[type=text] { flex: 1; min-width: 0; margin: 0; }
.composer.off { justify-content: center; padding: 14px; }
.dmprev { padding: 8px 12px 0; background: var(--card); }
.dmprev:empty { display: none; }
@media (max-width: 760px) { .thread { height: calc(100vh - 190px); } }

/* Loading placeholders and steadier photo boxes */
.skel-row { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.skel-row:last-child { border-bottom: 0; }
.skel-av { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.skel-lines { flex: 1; display: grid; gap: 9px; align-content: start; padding-top: 4px; }
.skel-lines i { display: block; height: 11px; border-radius: 6px; }
.skel-lines i.short { width: 55%; }
.skel-av, .skel-lines i { background: linear-gradient(90deg, var(--green-soft) 25%, var(--surface-2) 50%, var(--green-soft) 75%); background-size: 200% 100%; animation: skel 1.3s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel-av, .skel-lines i { animation: none; } }
.pmedia.n1 .pimg-wait { min-height: 280px; }

/* Posts: Instagram-style photo posts, carousel, likes */
.phead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.phead .name { font-weight: 700; }
.fpost.media { padding: 14px 0 12px; }
.fpost.media .phead, .fpost.media .fpost-actions, .fpost.media .likes-line, .fpost.media .cap, .fpost.media .viewall { padding-left: 18px; padding-right: 18px; }
.fpost.media .fpost-actions { padding-top: 8px; }
.likes-line { font-weight: 700; font-size: 14px; min-height: 0; }
.likes-line:empty { display: none; }
.cap { margin: 4px 0 2px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.cap .name { font-weight: 700; margin-right: 4px; }
.viewall { display: block; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; padding-top: 4px; padding-bottom: 0; cursor: pointer; }
.car { position: relative; width: 100%; background: var(--green-soft); overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.car-track { display: flex; position: absolute; inset: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.car-slide img, .car-slide .pimg-wait { width: 100%; height: 100%; max-height: none; object-fit: cover; display: block; min-height: 0; -webkit-user-drag: none; }   /* max-height none: the older `.media img` cap (460px) must not shrink photos inside their box */
.car-count { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.car-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.car-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.car-dots i.on { background: #fff; }
.burst { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; color: #fff; pointer-events: none; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45)); animation: burst 850ms ease-out forwards; }
.burst .i, .burst svg { width: 100%; height: 100%; }
@keyframes burst { 0% { transform: scale(.3); opacity: 0; } 18% { transform: scale(1.15); opacity: 1; } 32% { transform: scale(.95); } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.1); opacity: 0; } }
.act.pop svg, .act.pop .i { animation: pop 320ms ease-out; }
@keyframes pop { 0% { transform: scale(.7); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .burst { animation: none; opacity: 0; } .act.pop svg, .act.pop .i { animation: none; } }

/* Making a post */
.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font: inherit; color: var(--ink); cursor: pointer; }
.choice:hover { border-color: var(--green); }
.choice-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--ink); }
.choice-ic svg { width: 24px; height: 24px; }
.mstep-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.next-btn, .send-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--green); color: #fff; cursor: pointer; }
.next-btn svg, .send-btn svg { width: 22px; height: 22px; }
.next-btn:disabled { opacity: .35; cursor: default; }
.addzone { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 12px; border: 2px dashed var(--line); border-radius: 14px; background: none; font: inherit; color: var(--ink); cursor: pointer; margin-top: 8px; }
.addzone svg { width: 28px; height: 28px; color: var(--ink); }
.pprevs.sm .pprev { width: 64px; height: 80px; }

/* Profile grid: tall tiles like Instagram's (3:4) */
.mtile { aspect-ratio: 3 / 4; }

/* Message likes and shared posts */
.bubble { position: relative; }
.bubble .mheart { display: none; position: absolute; bottom: -9px; right: 8px; width: 22px; height: 22px; padding: 0; border: 2px solid var(--paper); border-radius: 50%; background: #fff; color: #e5484d; cursor: pointer; place-items: center; }
.bubble.mine .mheart { right: auto; left: 8px; }
.bubble.liked .mheart { display: grid; }
.bubble.liked { margin-bottom: 8px; }
.mheart svg { width: 12px; height: 12px; }
.bubble-img { position: relative; }
.bubble-img .expand { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; display: grid; place-items: center; cursor: pointer; }
.bubble-img .expand svg { width: 14px; height: 14px; }
.bubble, .bubble-img { user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.sharedpost { display: flex; flex-direction: column; width: 220px; max-width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); color: var(--ink); font: inherit; padding: 0; cursor: pointer; margin-bottom: 4px; }
.sharedpost.off { padding: 10px 12px; flex-direction: row; gap: 6px; align-items: center; cursor: default; }
.sp-img { display: block; aspect-ratio: 4 / 5; background: var(--green-soft); overflow: hidden; }
.sp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-body { display: block; padding: 8px 10px 10px; }
.sp-who { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sp-text { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.subhead { margin: 4px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sharelist { max-height: 220px; overflow-y: auto; margin-bottom: 14px; }
.sharebtns { display: flex; flex-wrap: wrap; gap: 8px; }

/* What's in the bag */
.witb { display: grid; }
.witb-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.witb-row:last-child { border-bottom: 0; }
.witb-thumb { flex: none; width: 66px; height: 66px; border-radius: 12px; background: var(--green-soft); color: var(--ink); display: grid; place-items: center; overflow: hidden; }
.witb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.witb-thumb svg { width: 26px; height: 26px; opacity: .55; }
.witb-name { display: block; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.witb-type { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--green-bright); }
.witb-slot { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slots { display: grid; gap: 10px; }
.slot { display: grid; grid-template-columns: 26px 1fr 64px; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.slot-n { font-weight: 700; color: var(--muted); text-align: center; }
.slot-fields { display: grid; gap: 6px; min-width: 0; }
.slot-fields select, .slot-fields input { margin: 0; width: 100%; min-width: 0; }
.slot-photo { position: relative; width: 64px; height: 64px; }
.slot-thumb, .slot-add { width: 64px; height: 64px; padding: 0; border-radius: 12px; overflow: hidden; border: 1px dashed var(--line); background: var(--green-soft); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.slot-thumb { border-style: solid; }
.slot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.slot-x svg { width: 12px; height: 12px; }
.slot-add svg { width: 22px; height: 22px; }
.ptabs { overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button { white-space: nowrap; }

/* ---- Theme finishing: bolder type, rounder controls ---- */
h1 { font-size: 28px; letter-spacing: -0.03em; }
.btn { border-radius: 999px; }
.chip { border-radius: 999px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea { border-radius: 10px; background: var(--surface-2); color: var(--ink); }
::placeholder { color: #66796e; }
a.name, .fpost a.name, .cap a.name, .person a.name { color: var(--ink); text-decoration: none; font-weight: 700; }
a.name:hover { text-decoration: underline; }
.fpost .phead .name { font-size: 15px; }

.ptabs button { font-size: 14px; letter-spacing: -0.01em; }
@media (min-width: 560px) { .ptabs button { font-size: 15px; } }

/* Bag editor: quick tools */
.bagtools { display: grid; gap: 10px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.bulk { display: grid; grid-template-columns: 1fr; gap: 8px; }
.bulk select, .bulk input { margin: 0; }
@media (min-width: 560px) { .bulk { grid-template-columns: 1.1fr 1.2fr auto; align-items: center; } }

/* Handicap ranks (see ranks.js): an animated operator emblem on the profile, a small still tag in lists. */
.rankemb { display: block; width: 132px; padding: 0; border: 0; background: none; font: inherit; color: var(--muted); text-align: center; cursor: pointer; }
.rankemb svg { display: block; width: 100%; height: auto; overflow: visible; }   /* no live filter here: a blur on a moving image is redone every frame */
.rankemb .rk-info { display: block; margin-top: 4px; }
.rankemb small { display: block; font-size: 12px; line-height: 1.35; }
.rankemb .rk-pos { font-size: 13px; font-weight: 800; color: var(--ink); }
.rankemb .rk-next { opacity: .85; }
.emb text { font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Black', sans-serif; font-weight: 400; }
.emb .enum { font-weight: 900; }
.emb .enam { letter-spacing: 1.4px; }
/* Motion: only transform and opacity (cheap), each rank adds more. Off for reduced motion; paused when scrolled out of view (.off). */
.emb .cv { animation: embChevPulse 3.4s ease-in-out infinite; }
.emb.cascade .cv { animation: embChevCascade 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * .2s); }
.emb .glint { animation: embGlint var(--gd, 6s) ease-in-out infinite; animation-delay: var(--gl, 1s); opacity: 0; }
.emb .tw { animation: embTw 3.2s ease-in-out infinite; }
.emb .wingL { transform-origin: 54px 78px; animation: embFlapL 3.6s ease-in-out infinite; }
.emb .wingR { transform-origin: 106px 78px; animation: embFlapR 3.6s ease-in-out infinite; }
.emb .scan { animation: embScan 3.8s linear infinite; opacity: 0; }
.emb .sp { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: embSp 3.4s ease-in-out infinite; }
.emb .edge { animation: embEdge 1.5s ease-in-out infinite; }
.emb .ember { animation: embEmber 3s ease-out infinite; opacity: 0; }
.emb .spk { transform-box: fill-box; transform-origin: 50% 100%; animation: embTremble 2.2s ease-in-out infinite; }
.emb .float { animation: embFloat 4.2s ease-in-out infinite; }
.emb .halo { transform-origin: 80px 84px; animation: embSpin 26s linear infinite; }
.emb .orbit { transform-origin: 80px 84px; animation: embSpin 6s linear infinite; }
.emb .irisB { animation: embFadeB 5s ease-in-out infinite alternate; }
.emb.still *, .emb.still { animation: none !important; }
.emb.off *, .emb.off { animation-play-state: paused !important; }
@keyframes embChevPulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes embChevCascade { 0%, 100% { opacity: .3; } 30% { opacity: 1; } 60% { opacity: .5; } }
@keyframes embGlint { 0%, 55% { transform: translateX(-90px); opacity: 0; } 62% { opacity: .85; } 82% { transform: translateX(120px); opacity: 0; } 100% { transform: translateX(120px); opacity: 0; } }
@keyframes embTw { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes embFlapL { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
@keyframes embFlapR { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(4deg); } }
@keyframes embScan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .75; } 90% { opacity: .75; } 100% { transform: translateY(110px); opacity: 0; } }
@keyframes embSp { 0%, 72%, 100% { transform: scale(0); opacity: 0; } 82% { transform: scale(1); opacity: 1; } 92% { transform: scale(.35); opacity: .6; } }
@keyframes embEdge { 0%, 100% { opacity: .1; } 50% { opacity: 1; } }
@keyframes embEmber { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .95; } 100% { transform: translateY(-36px); opacity: 0; } }
@keyframes embTremble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(2.5deg); } }
@keyframes embFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.5px); } }
@keyframes embSpin { to { transform: rotate(360deg); } }
@keyframes embFadeB { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .emb *, .emb { animation: none !important; } .emb .glint, .emb .scan, .emb .ember, .emb .sp { display: none; } }
/* The small tag */
.rktag { --ra: #f0b27a; --rb: #b7702f; --rc: #5e3615; --ri: #ffe3c4; display: inline-flex; align-items: stretch; vertical-align: middle; background: #080d11; border: 1px solid var(--rb); box-shadow: 0 0 0 1px #05080a;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.rktag .rk-blk { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 30px; padding: 5px 0; background: linear-gradient(180deg, var(--ra), var(--rb) 50%, var(--rc)); }
.rktag .rk-blk i { display: block; width: 14px; height: 4px; margin: 0 0 2px; background: #06090b; clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 40%, 50% 140%, 0 40%); }
.rktag .rk-txt { display: block; padding: 4px 14px 4px 9px; background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .55) 0 .8px, transparent 1px), radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .4) 0 .7px, transparent 1px), radial-gradient(circle at 45% 85%, rgba(255, 255, 255, .5) 0 .7px, transparent 1px); background-size: 34px 22px, 29px 24px, 41px 28px; }
.rktag .rk-num { display: block; font: 900 italic 18px/1 Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Black', sans-serif; color: var(--ri); letter-spacing: .5px; }
.rktag .rk-nm { display: block; margin-top: 2px; font: 900 9.5px/1.2 Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Black', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--rb); white-space: nowrap; }
.rktag.sm .rk-blk { width: 24px; padding: 3px 0; }
.rktag.sm .rk-blk i { width: 11px; height: 3px; margin-bottom: 2px; }
.rktag.sm .rk-txt { padding: 3px 12px 3px 7px; }
.rktag.sm .rk-num { font-size: 15px; }
.rktag.sm .rk-nm { font-size: 8.5px; }
.rk-t1 { --ra: #f0b27a; --rb: #b7702f; --rc: #5e3615; --ri: #ffe3c4; }
.rk-t2 { --ra: #e3edf5; --rb: #8aa0b4; --rc: #3f4f5e; --ri: #f2f8fd; }
.rk-t3 { --ra: #ffffff; --rb: #b3bcc6; --rc: #59636e; --ri: #ffffff; }
.rk-t4 { --ra: #fff3b0; --rb: #efb91e; --rc: #8a5c00; --ri: #fff6c9; }
.rk-t5 { --ra: #e9fffb; --rb: #5fd8c6; --rc: #17655e; --ri: #dcfff9; }
.rk-t6 { --ra: #e6f8ff; --rb: #4cc3ff; --rc: #0b4a8c; --ri: #ffffff; }
.rk-t7 { --ra: #ffb3b3; --rb: #d41b2c; --rc: #4a0610; --ri: #ffd9d9; }
.rk-t8 { --ra: #ffffff; --rb: #c9a6ff; --rc: #3a2a7a; --ri: #ffffff; }
.rk-t8 .rk-blk { background: linear-gradient(135deg, #ff7ad9, #7affd9, #ffe97a, #7ab8ff, #d27aff); }
.rkrows { display: flex; flex-direction: column; gap: 10px; }
.rkrow { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.rkrow.on { border-color: var(--yellow); background: var(--yellow-soft); }
.rkrow .rktag { flex: none; min-width: 188px; }
@media (max-width: 480px) { .rkrow { flex-wrap: wrap; } .rkrow .rktag { min-width: 0; } }

/* Story aura: a ring around a profile picture anywhere in the app when that person has a story I can see. Bright = unseen, plain = seen. */
.aura { display: inline-flex; flex: none; padding: 3px; margin: -3px; border-radius: 50%; line-height: 0; cursor: pointer; vertical-align: middle; }
.aura:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.aura.unseen { background: linear-gradient(135deg, var(--yellow), #e8a400 55%, var(--green-bright)); box-shadow: 0 0 12px rgba(255, 106, 19, .5); }
.aura.seen { background: var(--line); }
.aura .av { box-shadow: 0 0 0 2px var(--card); }
.auth-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 6px; font-size: 14px; line-height: 1.45; background: var(--green-soft); color: var(--ink); border: 1px solid var(--green); }

/* Reposts */
.reposted { display: flex; align-items: center; gap: 6px; padding: 8px 14px 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.reposted .i { width: 15px; height: 15px; }
.reposted a { color: inherit; text-decoration: none; }
.reposted a:hover { text-decoration: underline; }
.act.on { color: var(--green-bright); }
.act.static { cursor: default; opacity: .8; }
button.pstat { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
button.pstat:hover b { text-decoration: underline; }

/* Profile look: a color scheme (set on .look-<name>) and a banner style (.bn-<name>) that uses the scheme's two colors. */
.look { --lk-a: #12563a; --lk-b: #17613f; }
.look-fairway { --lk-a: #12563a; --lk-b: #17613f; }
.look-sunrise { --lk-a: #c2571a; --lk-b: #e8934a; --lk-acc: #ffb454; --lk-bg: #1d130b; }
.look-sunset { --lk-a: #7a2a63; --lk-b: #d4524a; --lk-acc: #ff8a5c; --lk-bg: #1b0f1a; }
.look-ocean { --lk-a: #0f4c75; --lk-b: #1b7aa8; --lk-acc: #5ed0ff; --lk-bg: #0a1620; }
.look-links { --lk-a: #7a6a3a; --lk-b: #a99a62; --lk-acc: #e8d28a; --lk-bg: #17150c; }
.look-midnight { --lk-a: #1a1f4d; --lk-b: #2b3380; --lk-acc: #8fa0ff; --lk-bg: #0c0e1f; }
.look-azalea { --lk-a: #a02a5c; --lk-b: #d9578c; --lk-acc: #ff9ec4; --lk-bg: #1e0e16; }
.look-autumn { --lk-a: #8a3b12; --lk-b: #b9651f; --lk-acc: #ffb14d; --lk-bg: #1c1209; }
.look-tour { --lk-a: #14110a; --lk-b: #5a4712; --lk-acc: #ffd24a; --lk-bg: #100e08; }
.look-mint { --lk-a: #1b7a68; --lk-b: #3fbf9f; --lk-acc: #8ff0d4; --lk-bg: #0b1a17; }
.look:not(.look-fairway):not(.lookprev):not(.swatch):not(.bntile) { --yellow: var(--lk-acc); background: var(--lk-bg); border-radius: 16px; padding: 10px; margin: -4px -4px 0; }
.look:not(.look-fairway):not(.lookprev):not(.swatch):not(.bntile) .card { background: color-mix(in srgb, var(--lk-bg) 70%, var(--card)); }
.look:not(.look-fairway):not(.lookprev):not(.swatch):not(.bntile) .profile-top .av { border-color: color-mix(in srgb, var(--lk-bg) 70%, var(--card)); }
.banner.bn-stripes { background: repeating-linear-gradient(100deg, var(--lk-a) 0 26px, var(--lk-b) 26px 52px); }
.banner.bn-diagonal, .bntile .bn-diagonal { background: repeating-linear-gradient(45deg, var(--lk-a) 0 18px, var(--lk-b) 18px 36px); }
.banner.bn-checker, .bntile .bn-checker { background: conic-gradient(var(--lk-a) 25%, var(--lk-b) 0 50%, var(--lk-a) 0 75%, var(--lk-b) 0) 0 0 / 44px 44px; }
.banner.bn-dots, .bntile .bn-dots { background: radial-gradient(var(--lk-b) 24%, transparent 26%) 0 0 / 22px 22px, var(--lk-a); }
.banner.bn-waves, .bntile .bn-waves { background: repeating-radial-gradient(circle at 50% 160%, var(--lk-a) 0 14px, var(--lk-b) 14px 28px); }
.banner.bn-topo, .bntile .bn-topo { background: repeating-radial-gradient(ellipse at 30% 40%, var(--lk-a) 0 9px, var(--lk-b) 9px 11px); }
.banner.bn-plain, .bntile .bn-plain { background: linear-gradient(100deg, var(--lk-a), var(--lk-b)); }
.banner.bn-sunburst, .bntile .bn-sunburst { background: repeating-conic-gradient(from 0deg at 50% 140%, var(--lk-a) 0 9deg, var(--lk-b) 9deg 18deg); }
.bntile .bn-stripes { background: repeating-linear-gradient(100deg, var(--lk-a) 0 12px, var(--lk-b) 12px 24px); }
.banner.photo { background: var(--line); }
.banner.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lookprev { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 4px; background: var(--card); }
.lookprev .banner { height: 76px; }
.lp-body { padding: 10px 14px; display: flex; flex-direction: column; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.swatch { display: flex; height: 38px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.swatch i { flex: 1; }
.swatch i:first-child { background: var(--lk-a); }
.swatch i:last-child { background: var(--lk-b); }
.swatch.on { border-color: var(--ink); }
.bntiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bntile { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 2px solid var(--line); border-radius: 10px; background: none; cursor: pointer; color: var(--muted); font: inherit; }
.bntile span { display: block; height: 34px; border-radius: 6px; }
.bntile small { font-size: 11px; text-align: center; }
.bntile.on { border-color: var(--ink); color: var(--ink); }
@media (max-width: 480px) { .swatches { grid-template-columns: repeat(5, 1fr); } .bntiles { grid-template-columns: repeat(2, 1fr); } }

/* Home feed buttons (icons only), "looking for a group" posts, suggestions, the availability bell */
.feedbar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.feedtabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.ftab { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.ftab .i { width: 18px; height: 18px; }
.ftab:hover { color: var(--ink); }
.ftab.on { background: var(--yellow); color: var(--on-orange); }
.fpost.looking .lookbody { display: flex; gap: 12px; align-items: flex-start; padding: 6px 14px 12px; }
.lookicon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green-bright); }
.lookicon .i { width: 22px; height: 22px; }
.fpost.looking .fpost-actions { gap: 8px; }
.bellbtn.on { color: var(--yellow); border-color: var(--yellow); }
.feedcluster { display: inline-flex; align-items: center; gap: 10px; }
.feedname { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--muted); white-space: nowrap; opacity: 0; animation: feedname 2.4s ease forwards; }
@keyframes feedname { 0% { opacity: 0; transform: translateX(6px); } 10% { opacity: 1; transform: none; } 72% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .feedname { animation-name: feedname-fade; } @keyframes feedname-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } } }

/* Friends list on a phone: name, bell and menu on the first line, the rank plate on its own line under the name */
.person.fr .grow { min-width: 0; }
.person.fr .frank { flex: none; }
@media (max-width: 640px) {
  .person.fr { flex-wrap: wrap; row-gap: 8px; }
  .person.fr .grow { flex: 1 1 0; }
  .person.fr .frank { order: 10; flex: 0 0 100%; padding-left: 60px; }
}

/* Home on a wide screen: one centered column (like a phone feed), so photos keep a sensible shape. */
.homecol { max-width: 680px; margin: 0 auto; }

/* A faint, still drawing of a putting green (slopes, break arrows, one putt) behind the Home feed, in the empty space beside the column.
   One cached image, no script, no motion; fixed behind the content (z-index -1) so the feed scrolls over it. Desktop only. */
.homeart { display: none; }
@media (min-width: 1400px) {   /* narrower than this the feed column would cover most of the drawing */
  .homeart { display: block; position: fixed; z-index: -1; top: 0; bottom: 0; left: 232px; width: 1208px; max-width: calc(100vw - 232px); pointer-events: none;
    background: url(home-bg-1.svg) left center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 76%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 76%, transparent 100%); }
}

/* Profile on a phone: shorter banner, smaller picture, and the rank emblem as one compact row (small emblem + the rank text) instead of a big block. */
@media (max-width: 640px) {
  .banner { height: 84px; }
  .profile-top { padding: 0 16px 16px; margin-top: -38px; }
  .profile-top .av { width: 80px !important; height: 80px !important; font-size: 30px !important; border-width: 3px; }
  .profile-top .row { gap: 12px !important; }
  .profile-top .grow.after { margin-top: 46px; min-width: 0 !important; flex: 1 1 0; }
  .profile-top .grow.after h1 { font-size: 24px; line-height: 1.15; }
  .rankemb, .profile-top .rankemb.after { display: flex; align-items: center; gap: 12px; flex: 1 0 100%; width: 100%; margin-top: 0; padding: 8px 12px 8px 6px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
  .rankemb svg { flex: none; width: 84px; }
  .rankemb .rk-info { flex: 1; min-width: 0; margin-top: 0; }
  .rankemb .rk-pos { font-size: 15px; }
  .rankemb small { font-size: 12.5px; }
  .profile-top .kv { margin-top: 10px; }
  .pstats { gap: 20px; margin-top: 12px; }
}

/* The motto: under the sidebar name on desktop, a faint one-liner under "Home" on phones (where there is no sidebar), and on the login screen. */
.motto { display: none; font-size: 11.5px; line-height: 1.2; color: var(--muted); opacity: .75; margin-top: -2px; letter-spacing: .02em; }
@media (max-width: 760px) { .motto { display: block; } }
.auth-motto { margin: -12px 0 18px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* ---------- Moderation (migration 032): the notice a banned person sees, and the moderator screen ---------- */
#banbar { background: #3a1d1b; border: 1px solid #6a2f2a; border-radius: var(--r); color: #ffd9d4; padding: 12px 16px; margin-bottom: 14px; font-size: 15px; line-height: 1.45; }
#banbar[hidden] { display: none; }
#banbar .small { color: #f0b9b2; margin-top: 2px; }
.modmark { display: inline-flex; align-items: center; gap: 5px; align-self: center; margin-right: 6px; padding: 2px 8px; border-radius: 4px; background: #3a1d1b; color: var(--danger); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.modmark .i { width: 14px; height: 14px; }
@media (max-width: 480px) { .modmark span { display: none; } .modmark { padding: 3px 6px; } }
.modflag, .modlog { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modflag:last-child, .modlog:last-child { border-bottom: 0; }
.modbody .card + .card { margin-top: 14px; }
.mf-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mf-top .muted { margin-left: auto; }
.mf-body { margin: 10px 0; font-size: 16px; overflow-wrap: anywhere; white-space: pre-wrap; }
.mf-author { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mf-author a.name { color: var(--ink); font-weight: 600; text-decoration: none; }
.mf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mf-quote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--paper); border-radius: 0 6px 6px 0; color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.modlog a.name { color: var(--ink); font-weight: 600; text-decoration: none; }
.modbody form.row { gap: 8px; flex-wrap: wrap; }
.modbody form.row input[type=text] { flex: 1 1 180px; width: auto; }
.durs { display: flex; flex-wrap: wrap; gap: 8px; }
.dur { position: relative; margin: 0; cursor: pointer; }
.dur input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dur span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-weight: 600; font-size: 14.5px; color: var(--muted); }
.dur input:checked + span { border-color: var(--yellow); color: var(--ink); background: var(--yellow-soft); }
.dur input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
@media (max-width: 760px) { .nav a[data-page=mod] span { font-size: 10px; letter-spacing: -.01em; } }

/* The Fayd logo image (the "fayd" lettering). */
.logo-word { display: block; width: auto; flex: none; }
.brand { gap: 14px; padding-bottom: 22px; }
.brand small { margin-top: 0; max-width: 92px; line-height: 1.3; font-size: 11px; }
.auth-brand { margin-bottom: 12px; }
.auth-motto { margin: 0 0 18px; }

/* ---------- Community rules page (rules.html) and its links ---------- */
.rules { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.rules-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--ink); font-family: var(--serif); font-weight: 800; font-size: 22px; text-decoration: none; }
.rules h1 { font-size: 32px; margin-bottom: 12px; }
.rules h2 { font-size: 19px; margin: 30px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.rules-lead { font-size: 17px; color: var(--muted); margin: 0; }
.rules-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rules-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.rules-list b { color: var(--ink); }
.rules-foot { margin-top: 32px; color: var(--muted); }
.ruleslink { display: block; margin: 0 14px 10px; font-size: 13px; color: #b5cfc2; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .side .ruleslink { display: none; } .rules h1 { font-size: 26px; } }
#banbar a { color: #ffd9d4; text-decoration: underline; }

/* ---------- Reporting: the report sheet and the reports line in the moderator queue ---------- */
.reasons { display: grid; gap: 8px; }
.reason { position: relative; margin: 0; cursor: pointer; }
.reason input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.reason span { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-weight: 600; font-size: 15px; }
.reason input:checked + span { border-color: var(--yellow); background: var(--yellow-soft); }
.reason input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.mf-reports { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-size: 14.5px; }
.mf-reports .mf-quote { margin-top: 6px; }

/* ---------- Group scorecards ---------- */
.gtag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 9px; border-radius: 999px; background: #3a1f0a; color: var(--yellow); }
.gsched { border-color: #5a3512; background: linear-gradient(135deg, #1b1209, var(--card)); }
.gfaces { display: flex; margin: 10px 0; padding-left: 6px; } .gface { margin-left: -8px; border-radius: 50%; border: 2px solid var(--card); display: inline-flex; }
.gbadge { border-color: #5a3512; background: #1b1209; }
.gsync { font-size: 12.5px; color: var(--muted); } .gsync.ok { color: var(--green-bright); } .gsync.bad { color: #ffb4a8; }
.gtees { display: grid; gap: 8px; } .gtee { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 12px; padding: 11px 13px; font: inherit; cursor: pointer; }
.gtee.on { border-color: var(--yellow); background: var(--yellow-soft); } .gtee span { color: var(--muted); font-size: 12.5px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; } .seg button { background: none; color: var(--ink); border: 0; padding: 7px 14px; font: 700 13px inherit; cursor: pointer; } .seg button.on { background: var(--yellow); color: var(--on-orange); }
.gcard { padding: 12px 10px; } .gcard .gtitle { margin: 0 4px 8px; }
.gcrow { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 10px 6px; border-radius: 12px; margin-bottom: 7px; background: #0f1914; border: 1px solid var(--line); }
.gcrow .pos { font: 900 18px/1 inherit; text-align: center; color: var(--muted); } .gcrow .sc { text-align: right; } .gcrow .sc b { font-size: 22px; display: block; line-height: 1; } .gcrow .sc small { color: var(--muted); font-size: 11px; }
.gcard.mini .gcrow { padding: 7px 5px; margin-bottom: 5px; } .gcard.mini .nfx { font-size: 14.5px; } .gcard.mini .sc b { font-size: 17px; }
.gcrow.p1 { background: linear-gradient(100deg, #2a1204, #130a05); border-color: #7a3a10; box-shadow: 0 0 22px rgba(255, 110, 0, .18); }
.gcrow.p2 { border-color: #1d4f7a; background: linear-gradient(100deg, #081a2a, #0a1118); }
.gcrow.p3 { border-color: #1d5f58; background: linear-gradient(100deg, #082320, #0a1411); }
.gcrow.plast { border-color: #3a3328; background: #14120e; }
.nfx { font-weight: 900; font-size: 17px; letter-spacing: .01em; overflow-wrap: anywhere; }
.gcrow.p1 .nfx { background: linear-gradient(180deg, #fff6b0, #ffb12e 40%, #ff3d00); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; filter: drop-shadow(0 0 6px rgba(255, 90, 0, .6)); animation: gcflick 1.3s ease-in-out infinite; }
.gcrow.p2 .nfx { color: #d6f1ff; text-shadow: 0 0 3px #5ac8ff, 0 0 10px #1b8cff; font-style: italic; animation: gczap 2.2s steps(1) infinite; }
.gcrow.p3 .nfx { color: #bdeee4; text-shadow: 0 0 8px rgba(80, 220, 190, .35); }
.gcrow.plast .nfx { color: #a79d86; }
.gcrow.gc-sA .nfx::after { content: ' \1F4A9'; }
.gcrow.gc-sB .nfx::before { content: '\2601\FE0F '; } .gcrow.gc-sB .nfx { color: #9fb2bf; font-style: italic; animation: gcdrip 3s ease-in-out infinite; }
.gcrow.gc-sC .nfx { color: #c9c3b3; text-decoration: line-through wavy #7a6f58; text-decoration-thickness: 1.5px; animation: gcglitch 3.2s steps(1) infinite; }
.gcrow .flame { display: inline-block; animation: gclick 1s ease-in-out infinite; transform-origin: 50% 100%; } .crown { font-size: 15px; margin-left: 4px; }
@keyframes gcflick { 0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 90, 0, .5)); } 50% { filter: drop-shadow(0 0 12px rgba(255, 140, 0, .9)); } }
@keyframes gclick { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.18, 1.3) rotate(5deg); } }
@keyframes gczap { 0%, 90%, 100% { text-shadow: 0 0 3px #5ac8ff, 0 0 10px #1b8cff; } 92% { text-shadow: 0 0 6px #fff, 0 0 20px #4cf; } 95% { text-shadow: 0 0 3px #5ac8ff, 0 0 10px #1b8cff; } }
@keyframes gcdrip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1.5px); } }
@keyframes gcglitch { 0%, 94%, 100% { transform: translate(0); } 95% { transform: translate(-2px, 1px); } 97% { transform: translate(2px, -1px); } }
@media (prefers-reduced-motion: reduce) { .gcrow .nfx, .gcrow .flame { animation: none !important; } }
.gsheetwrap { overflow-x: auto; margin-top: 8px; } .gsheet { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; min-width: 300px; } .gsheet th, .gsheet td { text-align: center; padding: 3px 0; } .gsheet th { color: var(--muted); font-weight: 600; }
.gsheet tr + tr td { border-top: 1px solid #1c2c22; } .gsheet .sub td { color: var(--muted); } .gsheet .tot { font-weight: 800; } .gsheet .nm { text-align: left; padding-left: 2px; width: 56px; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsheet .bd { color: #7fe3a8; font-weight: 800; } .gsheet .bg { color: #ff8f7a; }

/* ---------- Fancy banners: rank banners (earned) and dark matter (premium). Motion is transform and opacity only. ---------- */
.bnr { position: relative; overflow: hidden; isolation: isolate; background: #05080a; }
.banner.bnr { border-radius: 0; }
.bnr > svg.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bnr .shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .34) 50%, transparent 58%); transform: translateX(-130%); }
.bnr .glow { position: absolute; inset: -20%; z-index: 1; pointer-events: none; opacity: 0; }
.bnr .irid { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: linear-gradient(115deg, #ff7ad9, #7ad7ff, #8dff9e, #ffe27a, #ff7ad9) 0 0 / 300% 100%; }
.bnr .ember { position: absolute; z-index: 2; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: #ff9a7a; opacity: 0; }
/* Rank motion grows with rank: 1 still, 2-3 a slow shine, 4+ twinkling stars, 5+ a glow, 6+ drifting light, 7 embers, 8 iridescent. */
.rk2 .shine { animation: bnsweep 9s linear infinite; } .rk3 .shine { animation: bnsweep 7s linear infinite; } .rk4 .shine { animation: bnsweep 6s linear infinite; }
.rk5 .shine { animation: bnsweep 5s linear infinite; } .rk6 .shine { animation: bnsweep 4.2s linear infinite; } .rk7 .shine { animation: bnsweep 3.6s linear infinite; } .rk8 .shine { animation: bnsweep 3.2s linear infinite; }
.rk4 .tw, .rk5 .tw, .rk6 .tw, .rk7 .tw, .rk8 .tw { animation: bntwink 3s ease-in-out infinite; }
.rk5 .glow, .rk6 .glow, .rk7 .glow, .rk8 .glow { animation: bnpulse 4s ease-in-out infinite; }
.rk6 .art g.drift, .rk7 .art g.drift, .rk8 .art g.drift, .rk6 .art polygon.drift, .rk7 .art polygon.drift, .rk8 .art polygon.drift { animation: bndrift 14s ease-in-out infinite alternate; }
.rk7 .ember { animation: bnrise 3.4s ease-in infinite; }
.rk8 .irid { opacity: .32; animation: bnirid 7s linear infinite; }
@keyframes bnsweep { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }
@keyframes bntwink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes bnpulse { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
@keyframes bndrift { from { transform: translateX(-10px); } to { transform: translateX(14px); } }
@keyframes bnrise { 0% { transform: translateY(0) scale(1); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-120px) scale(.3); opacity: 0; } }
@keyframes bnirid { to { background-position: 300% 0; } }
.dm { --c1: #5b2bd9; --c2: #1d4fff; --c3: #b33bff; --gl: #c7a6ff; background: #04030a; }
.dm.solar { --c1: #ff5a00; --c2: #ffb300; --c3: #ff2d00; --gl: #ffd9a0; } .dm.aurora { --c1: #0fd6a0; --c2: #1aa7ff; --c3: #7affc9; --gl: #bfffe8; }
.dm.cryo { --c1: #36d9ff; --c2: #2a6bff; --c3: #aef2ff; --gl: #e2f7ff; } .dm.rift { --c1: #ff2a55; --c2: #7a00ff; --c3: #ff7a9a; --gl: #ffc2d0; }
.dm .neb { position: absolute; width: 200%; height: 220%; left: -50%; top: -60%; z-index: 0;
  background: radial-gradient(ellipse 30% 26% at 22% 38%, var(--c1), transparent 72%), radial-gradient(ellipse 28% 30% at 74% 62%, var(--c2), transparent 72%), radial-gradient(ellipse 22% 20% at 52% 30%, var(--c3), transparent 72%), radial-gradient(ellipse 18% 22% at 88% 26%, var(--c1), transparent 74%), radial-gradient(ellipse 16% 14% at 40% 78%, var(--c2), transparent 74%);
  animation: bnnebdrift 22s ease-in-out infinite alternate; }
.dm .neb.b { opacity: .7; mix-blend-mode: screen; animation-duration: 31s; animation-direction: alternate-reverse; transform: scale(1.1) rotate(8deg); }
.dm .stars { position: absolute; inset: 0; width: 200%; height: 100%; z-index: 1; animation: bnstarflow 60s linear infinite; } .dm .stars.far { opacity: .55; animation-duration: 110s; }
.dm .veins { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; animation: bnpulse 5s ease-in-out infinite; mix-blend-mode: screen; }
.dm .sp { position: absolute; z-index: 3; width: 10px; height: 10px; background: var(--gl); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; animation: bnsparkle 4.5s ease-in-out infinite; }
.dm .vig { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .45) 100%); }
@keyframes bnnebdrift { from { transform: translate(-6%, -4%) rotate(0deg); } to { transform: translate(6%, 5%) rotate(10deg); } }
@keyframes bnstarflow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bnsparkle { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 82% { opacity: 1; transform: scale(1) rotate(45deg); } }
.bnr.off *, .bnr.off { animation-play-state: paused !important; }
.bntile:not(.on):not(:hover) .bnr *, .bntile:not(.on):not(:hover) .bnr { animation-play-state: paused !important; }   /* only the picked tile (or the one under the cursor) moves */
@media (prefers-reduced-motion: reduce) { .bnr, .bnr * { animation: none !important; } .bnr .shine { display: none; } }
/* tiles in the customize screen */
.bntiles.fxgrid { margin-bottom: 14px; }
.bntile.fx { position: relative; align-items: stretch; padding: 0; overflow: hidden; text-align: left; }
.bntile.fx .bnr { height: 52px; border-radius: 0; display: block; }
.bntile.fx small { text-align: left; padding: 5px 8px 7px; color: var(--ink); line-height: 1.2; } .bntile.fx small i { display: block; font-style: normal; color: var(--muted); font-size: 10.5px; }
.bntile.fx.locked .bnr { filter: saturate(.6) brightness(.85); } .bntile.fx.locked.on .bnr, .bntile.fx.locked .dm, .bntile.fx.locked .bnr.dm { filter: none; }
.bntile .lockdot, .lockdot { height: 22px; border-radius: 50%; }
.lockdot { position: absolute; top: 6px; right: 6px; z-index: 6; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .62); display: grid; place-items: center; } .lockdot svg { width: 12px; height: 12px; }
.looknote { margin: 12px 0 10px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; border: 1px solid #6b4a1a; background: #1d1509; } .looknote.prem { border-color: #5a3aa0; background: #130d24; } .looknote b { display: block; margin-bottom: 2px; }
@media (max-width: 560px) { .bntiles.fxgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Bag tags (tags.js): leather tags hanging from a strap, in the rank metals ---------- */
.t-bronze { --mat: linear-gradient(145deg, #f6c08c, #b7702f 50%, #5e3615); --hi: #f0b27a; }
.t-silver { --mat: linear-gradient(145deg, #fff, #b3bcc6 50%, #59636e); --hi: #e3edf5; }
.t-gold { --mat: linear-gradient(145deg, #fff3b0, #efb91e 50%, #8a5c00); --hi: #ffd75e; }
.t-plat { --mat: linear-gradient(145deg, #e9fffb, #5fd8c6 50%, #17655e); --hi: #7ff0dd; }
.t-iri { --mat: linear-gradient(135deg, #ff7ad9, #7affd9 28%, #ffe97a 52%, #7ab8ff 76%, #d27aff); --hi: #e6d4ff; }
.bt-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 4px; margin-bottom: 10px; }
.bt-strap { position: absolute; left: -4px; right: -4px; top: 8px; height: 13px; border-radius: 7px; background: repeating-linear-gradient(90deg, #3d2c1d 0 12px, #35261a 12px 24px); box-shadow: 0 2px 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1); }
.bt-strap::after { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; border-top: 1.5px dashed rgba(255, 255, 255, .22); }
.bt { position: relative; margin-top: 26px; border-radius: 12px 12px 16px 16px; padding: 3px; background: var(--mat); transform-origin: 50% -18px; transform: rotate(var(--rot)); min-width: 0; }
.bt.on { animation: btsway 7s ease-in-out infinite; animation-delay: var(--d); box-shadow: 0 8px 16px rgba(0, 0, 0, .4); }
@keyframes btsway { 0%, 100% { transform: rotate(calc(var(--rot) - 1.4deg)); } 50% { transform: rotate(calc(var(--rot) + 1.4deg)); } }
.bt.off { background: none; border: 2px dashed #34463b; padding: 0; }
.bt .btloop { position: absolute; left: 50%; top: -19px; width: 24px; height: 22px; margin-left: -12px; border: 5px solid #3d2c1d; border-bottom: 0; border-radius: 14px 14px 0 0; }
.bt .btgrom { position: absolute; left: 50%; top: 7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle, #06100b 0 3px, #9aa 3.5px 5px, #556 6px); z-index: 2; }
.bt .btface { position: relative; min-height: 118px; border-radius: 10px 10px 13px 13px; background: linear-gradient(#222d25, #18221b); padding: 28px 10px 12px; text-align: center; color: var(--hi); }
.bt.off .btface { background: #111b15; color: #4d6256; }
.bt .btface::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(255, 255, 255, .14); border-radius: 8px; pointer-events: none; }
.bt .gl { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt .gt { display: inline-block; height: 30px; font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 30px; }
.bt h5 { margin: 6px 0 1px; font-size: 14px; color: #fff; } .bt.off h5 { color: #8aa094; }
.bt p { margin: 0; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.bt .btbar { height: 5px; border-radius: 3px; background: #0b130e; margin: 8px 6px 0; overflow: hidden; } .bt .btbar u { display: block; height: 100%; background: var(--orange); }
.bt .btsp { margin-top: 6px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--hi); opacity: .85; }
.btseal { position: absolute; right: -7px; bottom: -7px; width: 20px; height: 20px; border-radius: 50%; background: #1f8a4c; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 900; font-style: normal; border: 2px solid var(--card); }
.btseal.inline { position: static; display: inline-grid; width: 16px; height: 16px; font-size: 10px; vertical-align: -3px; border-width: 1px; }
.bt.shine { overflow: hidden; } .bt.shine::after { content: ""; position: absolute; inset: -30% -10%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .5) 50%, transparent 58%); transform: translateX(-130%); animation: btsweep 5s ease-in-out infinite; pointer-events: none; }
@keyframes btsweep { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.bt.shine .btseal { right: 4px; bottom: 4px; }

/* Confirming a card on the group scorecard */
.confrow { margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.confd { font-size: 12px; font-weight: 700; color: var(--green-bright); }
.gcrow .conf { min-height: 30px; padding: 4px 12px; font-size: 12.5px; }

/* The pop-up after a round */
.rc { text-align: center; }
.rc-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rc-big { font-size: 78px; font-weight: 900; line-height: 1.05; color: #ffd75e; margin: 2px 0; }
.rc-ribbon { display: inline-block; background: var(--orange); color: var(--on-orange); font-weight: 900; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 14px; transform: skewX(-8deg); }
.rc-tags { max-width: 320px; margin: 10px auto 0; }
.rc .bt { animation: btdrop 800ms cubic-bezier(.22, 1.3, .36, 1) both; } .rc .bt.on { box-shadow: none; }
.rc .bt + .bt { animation-delay: 160ms; } .rc .bt-row + .bt-row .bt { animation-delay: 320ms; }
@keyframes btdrop { 0% { transform: translateY(-80px) rotate(-8deg) scale(.7); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(var(--rot)) scale(1); } }
.rc-line { margin: 10px 0 0; font-size: 14px; } .rc .good { color: var(--green-bright); }
.rc-box { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); text-align: left; font-size: 13.5px; } .rc-box b { display: block; }
@media (max-width: 560px) { .bt-row { gap: 10px; } .bt .btface { padding: 28px 6px 10px; } .rc-big { font-size: 64px; } }
@media (prefers-reduced-motion: reduce) { .bt, .bt::after, .rc .bt { animation: none !important; } .bt.shine::after { display: none; } }
@media (max-width: 560px) { .ptabs button { flex: 1 0 auto; padding: 12px 9px; font-size: 14px; } }   /* six tabs on a phone: size to the label, scroll if needed */
.bt { display: flex; flex-direction: column; } .bt .btface { flex: 1; }   /* the face fills the tag when its neighbour has more text */

/* ---------- The napkin (napkin.js): head to head on a friend's profile ---------- */
.napcard { max-width: 440px; margin: 0 auto 16px; }
.napwrap { filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)); transform: rotate(-1.2deg); }
.napkin { position: relative; background: repeating-linear-gradient(#0000 0 25px, rgba(60, 100, 170, .16) 25px 26px), #f1e7c9; color: #2a2a35; padding: 16px 16px 34px; overflow: hidden;
  font-family: 'Bradley Hand', 'Segoe Print', 'Noteworthy', 'Comic Sans MS', cursive;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 96% 99%, 92% 96%, 88% 99%, 84% 96%, 80% 99%, 76% 96%, 72% 99%, 68% 96%, 64% 99%, 60% 96%, 56% 99%, 52% 96%, 48% 99%, 44% 96%, 40% 99%, 36% 96%, 32% 99%, 28% 96%, 24% 99%, 20% 96%, 16% 99%, 12% 96%, 8% 99%, 4% 96%, 0 99%); }
.napkin .coffee { position: absolute; right: -26px; top: -22px; width: 110px; height: 110px; border-radius: 50%; border: 5px solid rgba(120, 70, 20, .22); box-shadow: inset 0 0 0 2px rgba(120, 70, 20, .1); }
.napkin h5 { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #2a2a35; transform: rotate(-1deg); }
.napkin table { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.napkin td, .napkin th { padding: 2px 4px; text-align: center; height: 26px; color: #2a2a35; } .napkin th { font-weight: 700; font-size: 13px; color: #5a5a6a; } .napkin td:first-child, .napkin th:first-child { text-align: left; }
.napkin td a { color: #2a2a35; text-decoration: none; border-bottom: 1px dotted rgba(42, 42, 53, .4); }
.napkin .circ { display: inline-block; border: 2px solid #1f4fc4; border-radius: 52% 46% 55% 42% / 60% 50% 50% 45%; padding: 0 7px; transform: rotate(-4deg); }
.napkin .nmore { margin-top: 4px; font-size: 14px; color: #5a5a6a; }
.napkin .tl { margin-top: 12px; font-size: 21px; font-weight: 700; display: flex; gap: 14px; flex-wrap: wrap; } .napkin .tl span:nth-child(2) { color: #b3361b; }
.napkin .owes { margin-top: 4px; font-size: 17px; color: #b3361b; transform: rotate(-1.5deg); }
.napnote { text-align: center; margin: 10px 0 0; }
@media (max-width: 560px) { .napkin table { font-size: 15px; } .napkin td, .napkin th { padding: 2px 2px; } }

/* ---------- Rivalry Cups (cups.js): the match play scoreboard ---------- */
.chip.prem { background: #2a1f4d; color: #cbb8ff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; vertical-align: middle; }
.cup { border: 1px solid #3a2a12; border-radius: 16px; background: linear-gradient(180deg, #1c1409, #120d06); padding: 14px; position: relative; overflow: hidden; }
.cuphd { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-family: Georgia, 'Times New Roman', serif; }
.cuphd b { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #f0d08a; } .cuphd em { font-style: normal; font-size: 11px; color: #b99c63; letter-spacing: .06em; white-space: nowrap; }
.cupnames { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; font-weight: 700; } .cupnames span:first-child { color: #8fe3b6; } .cupnames span:last-child { color: #ffb07a; }
.cflaps { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 6px 0 4px; }
.cflap { position: relative; min-width: 52px; height: 74px; padding: 0 6px; border-radius: 8px; background: linear-gradient(#262626 50%, #1b1b1b 50%); color: #fff; font: 900 50px/74px 'SF Mono', Menlo, Consolas, monospace; text-align: center; box-shadow: 0 5px 0 #000; }
.cflap.two { min-width: 84px; }
.cflap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #000; }
.cdash { color: #7d6a42; font-size: 26px; font-weight: 900; }
.matchpt { text-align: center; margin: 10px 0 6px; } .matchpt span { display: inline-block; background: var(--orange); color: var(--on-orange); font-weight: 900; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; transform: skewX(-8deg); }
.matchpt p { margin: 6px 0 0; font-size: 12.5px; color: #cdb98a; }
.cupmsg { text-align: center; margin: 10px 0 4px; font-size: 13px; color: #cdb98a; } .cupmsg.muted { color: #9a8a63; }
.cupwin { margin: 12px auto 4px; text-align: center; font-weight: 900; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #ffd75e; } .cupwin svg { width: 20px; height: 20px; vertical-align: -4px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cupdots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.cdot { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 900; color: #06100b; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .28), 0 2px 0 rgba(0, 0, 0, .5); flex: none; }
.cdot.w { background: linear-gradient(145deg, #9bf0c3, #2fae70); } .cdot.l { background: linear-gradient(145deg, #ffc08c, #e06a1c); } .cdot.h { background: linear-gradient(145deg, #e6ece8, #8a9a90); }
.cdot.n { background: transparent; border: 2px dashed #6b5a38; box-shadow: none; }
.dotsub { text-align: center; font-size: 10.5px; color: #8b7748; letter-spacing: .1em; text-transform: uppercase; }
.cupstakes { margin-top: 12px; text-align: center; font-size: 12.5px; color: #cdb98a; border-top: 1px dashed #3a2a12; padding-top: 10px; } .cupstakes b { color: #f0d08a; }
.cup.compact .cflap { min-width: 40px; height: 56px; font-size: 38px; line-height: 56px; } .cup.compact .cflap.two { min-width: 66px; }
.cuplink { display: block; max-width: 440px; margin: 0 auto 16px; color: inherit; text-decoration: none; } .cuplink .cupopen { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--green-bright); } .cuplink .cupopen svg { width: 14px; height: 14px; }
.cupstart { max-width: 440px; margin: 0 auto 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cuprow { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: inherit; text-decoration: none; border-top: 1px solid var(--line); } .cuprow-s { font-weight: 800; font-variant-numeric: tabular-nums; }
.cmatch { display: grid; grid-template-columns: 52px 1fr auto 34px; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 14px; } .cmatch:first-of-type { border-top: 0; }
.cm-d { color: var(--muted); } .cm-c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cm-s { font-weight: 700; font-variant-numeric: tabular-nums; }
.cup-ic svg { width: 44px; height: 44px; fill: none; stroke: #ffd75e; stroke-width: 1.6; }
@media (max-width: 560px) { .cflap { min-width: 46px; height: 66px; font-size: 44px; line-height: 66px; } .cflap.two { min-width: 76px; } }

/* ---------- Inside the iPhone app (html.native, set in config.js): keep clear of the status bar and Dynamic Island ---------- */
html.native body { padding-top: env(safe-area-inset-top); }
html.native::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--paper); z-index: 100; pointer-events: none; }
html.native .topbar { top: env(safe-area-inset-top); }
html.native #modal { padding-top: calc(5vh + env(safe-area-inset-top)); }

/* Delete account */
.btn.danger { background: transparent; color: #ff7b72; border: 1px solid #7a2d2a; } .btn.danger:hover:not([disabled]) { background: #3a1513; }
form[data-form=deleteaccount] .btn.danger { background: #b3261e; color: #fff; border-color: #b3261e; } form[data-form=deleteaccount] .btn.danger:hover:not([disabled]) { background: #c93128; }

/* ---------- Rankings (rankings.js): the podium ---------- */
.rkctl { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.rkpod { max-width: 520px; margin: 0 auto 16px; background: radial-gradient(120% 70% at 50% 0%, #2a2160, #0b0e1d 70%); border: 1px solid #3a3a6a; border-radius: 20px; padding: 14px 10px 10px; overflow: hidden; }
.rkhead { text-align: center; } .rkhead b { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #a7a1e3; } .rkhead p { margin: 2px 0 0; font-size: 12px; color: #8f8bc8; }
.rkpodium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 6px; align-items: end; margin: 12px 4px 0; }
.rkcol { text-align: center; color: inherit; text-decoration: none; min-width: 0; display: block; } .rkcol.empty { min-height: 1px; }
.rkemb { width: 84px; margin: 0 auto; } .rkemb.big { width: 106px; } .rkemb .emb { width: 100%; height: auto; display: block; }
.rkn { margin-top: 4px; font-weight: 800; font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rkv { font-weight: 900; font-size: 18px; color: #ffd75e; font-variant-numeric: tabular-nums; } .rkcol small { display: block; color: #9a96d4; font-size: 11px; }
.rkblock { margin-top: 6px; border-radius: 10px 10px 0 0; display: grid; place-items: start center; padding-top: 6px; font-weight: 900; font-size: 28px; line-height: 1; color: rgba(255, 255, 255, .9); background: linear-gradient(#4a42a8, #282270); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25); }
.rkblock.g1 { height: 76px; background: linear-gradient(#f3c63c, #9a6a06); color: #3a2600; } .rkblock.g2 { height: 56px; background: linear-gradient(#e6eef5, #7c8a97); color: #1e262d; } .rkblock.g3 { height: 42px; background: linear-gradient(#e5a46a, #7b4a1d); color: #2b1505; }
.rklist { background: rgba(255, 255, 255, .05); border-radius: 0 0 14px 14px; margin: 0 4px; }
.rkrow { display: grid; grid-template-columns: 32px 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-top: 1px solid rgba(255, 255, 255, .08); color: inherit; text-decoration: none; }
.rkp { font-weight: 800; color: #b9b5ee; } .rkname { min-width: 0; } .rkname b { display: block; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rkname small { display: block; color: #9a96d4; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rkval { font-weight: 900; font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }
.rkrow.me { background: rgba(255, 106, 19, .22); outline: 1px solid rgba(255, 106, 19, .65); }
.rkgap { text-align: center; color: #8f8bc8; letter-spacing: .4em; padding: 2px 0 4px; }
.rkyou { margin: 8px 4px 0; background: linear-gradient(90deg, #ff6a13, #ff9a4d); color: #1d0d02; border-radius: 12px; padding: 10px 12px; font-weight: 800; font-size: 13.5px; } .rkyou small { display: block; font-weight: 600; opacity: .85; font-size: 12px; }
@media (max-width: 480px) { .rkchip { display: none; } .rkrow { grid-template-columns: 32px 34px minmax(0, 1fr) auto; } .rkemb { width: 74px; } .rkemb.big { width: 92px; } }
.rkbanner { max-width: 520px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 106, 19, .45); background: rgba(255, 106, 19, .1); font-size: 13.5px; }
.rkbanner b { display: block; } .rkbanner span { color: var(--muted); } .rkbanner.quiet { border-color: var(--line); background: var(--card); }
.rkpoints { max-width: 520px; margin: 0 auto 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.rkmonth { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); } .rkbig { font-size: 44px; font-weight: 900; line-height: 1.05; color: #ffd75e; } .rkbig small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 8px; }
.rkbrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13.5px; margin: 10px 0 0; } .rkbar { grid-column: 1 / -1; height: 7px; background: #0a110d; border-radius: 4px; overflow: hidden; } .rkbar i { display: block; height: 100%; background: linear-gradient(90deg, #ff6a13, #ffb347); }
.rknext { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 106, 19, .14); border: 1px solid rgba(255, 106, 19, .4); font-size: 13.5px; }
.rkprev { margin: 10px 0; border: 1px dashed #3a5a46; border-radius: 12px; padding: 10px 12px; font-size: 13px; } .rkprev-h { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.rkprev .r { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--muted); } .rkprev .r b { color: var(--ink); text-align: right; } .rkprev .rkno { color: #ff9b5e; }

/* Preview bar across the top of your profile while you try on a banner */
.lookbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid #6b4a1a; background: #1d1509; }
.lookbar b { display: block; font-size: 14px; } .lookbar span { display: block; font-size: 12.5px; opacity: .8; }

/* Your rounds list on the Handicap page: one row per round with a Delete button that stays on screen */
.rdlist { display: flex; flex-direction: column; } .rdrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, rgba(255,255,255,.08)); } .rdrow:first-child { border-top: 0; }
.rdinfo { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .rdinfo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rdrow .btn { flex: none; }

/* ---------- Hole stats on the scorecard ---------- */
.mgtrack .mgrow { margin: 10px 0 0; } .mgtrack .mgrow .eyebrow { display: block; margin: 0 0 6px; }
.mgopts { display: grid; gap: 8px; } .mgopts.o5 { grid-template-columns: repeat(5, 1fr); } .mgopts.o3 { grid-template-columns: repeat(3, 1fr); }
.mgopt { height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 800 15px/1 inherit; cursor: pointer; }
.mgopt.on { background: var(--orange); border-color: var(--orange); color: #1a0d04; } .mgopt.good.on { background: #1f6a49; border-color: #1f6a49; color: #eafff3; }
.mgpen { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .mgpen > .eyebrow { margin: 0; }
.step.sm { width: 38px; height: 38px; font-size: 20px; } .mgpv { font-size: 20px; min-width: 18px; text-align: center; }

/* ---------- My Game ---------- */
.mgbar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; } .mgbar h1 { margin: 0; font-size: 22px; flex: 1; } .mgback { font-size: 26px; color: var(--muted); text-decoration: none; padding: 0 6px; }
.mgpills { display: flex; gap: 8px; overflow-x: auto; margin: 0 -2px 14px; padding: 2px; scrollbar-width: none; } .mgpills::-webkit-scrollbar { display: none; }
.mgpill { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #2c4d3c; color: #bfe3d0; font-size: 13px; font-weight: 650; background: transparent; text-decoration: none; cursor: pointer; font-family: inherit; }
.mgpill.on { background: var(--orange); border-color: var(--orange); color: #1b0e05; font-weight: 800; } .mgpill.lock { opacity: .8; }
.mgnebula { border-radius: 22px; border: 1px solid #3b3472; padding: 14px; margin-bottom: 12px; background:
  radial-gradient(1.2px 1.2px at 18px 26px, #fff9, transparent), radial-gradient(1px 1px at 92px 70px, #fff7, transparent), radial-gradient(1.4px 1.4px at 240px 40px, #fff9, transparent), radial-gradient(1px 1px at 300px 150px, #fff8, transparent), radial-gradient(1.2px 1.2px at 40px 220px, #fff7, transparent),
  radial-gradient(130px 100px at 18% 10%, rgba(122,92,255,.35), transparent 70%), radial-gradient(150px 120px at 92% 90%, rgba(242,107,29,.28), transparent 70%), #0b0f1c; }
.mgsk { display: grid; grid-template-columns: 78px 1fr 40px; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); } .mgsk:first-of-type { border-top: 0; }
.mgnm { font-weight: 700; font-size: 13.5px; } .mgnm small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.mgzone { height: 10px; border-radius: 99px; position: relative; background: linear-gradient(90deg, #7a2f2f 0 33%, #6f5d22 33% 66%, #1f6a49 66% 100%); }
.mgzone i { position: absolute; top: -4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); transform: translateX(-50%); box-shadow: 0 2px 6px #000a; } .mgzone u { position: absolute; left: 60%; top: -2px; width: 2px; height: 14px; background: #fff8; }
.mgrt { font-weight: 850; font-size: 17px; text-align: right; }
.mgleak { background: linear-gradient(135deg, #2a170a, var(--card)); box-shadow: 0 0 0 1px rgba(242,107,29,.45), 0 10px 40px rgba(242,107,29,.14); } .mgleakh { font-size: 17px; font-weight: 800; margin: 4px 0 6px; line-height: 1.25; }
.mgbig { font-size: 40px; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.mgstack { display: flex; height: 16px; border-radius: 99px; overflow: hidden; margin: 0 0 6px; }
.mgfair { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; text-align: center; } .mgfair > div { border-radius: 14px; padding: 14px 6px; display: flex; flex-direction: column; gap: 2px; } .mgfair b { font-size: 22px; } .mgfair span { font-size: 12px; opacity: .85; }
.mgf-l, .mgf-r { background: #3a2a16; } .mgf-h { background: #1f6a49; }
.mgpr { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); } .mgpr:first-child { border-top: 0; } .mgpr b { font-size: 13.5px; display: block; } .mgpr span { font-size: 11.5px; color: var(--muted); }
.mgmedal { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #ffe08a, #b8821a); color: #2a1a00; font-weight: 900; font-size: 12px; flex: none; }
.mgblur { filter: blur(3px) saturate(.95); opacity: .9; pointer-events: none; }
.mglock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 14px; background: linear-gradient(180deg, rgba(6,12,8,0), rgba(6,12,8,.62)); } .mglock b { display: block; font-size: 15px; } .mglock span { display: block; color: #cfe0d6; font-size: 12.5px; margin: 2px 0 10px; }
.btn.mgvio { background: linear-gradient(90deg, #4b3bb0, #7a5cff); border-color: transparent; color: #fff; }
.btn.mgb { gap: 8px; padding: 7px 14px 7px 8px; } .btn.mgb .mgbt { line-height: 1.05; text-align: left; } .btn.mgb .mgbt b { display: block; font-size: 14px; } .btn.mgb .mgbt small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.btn.mgb.pro { border-color: #7a5cff; background: linear-gradient(90deg, rgba(75,59,176,.5), rgba(242,107,29,.22)); box-shadow: 0 0 22px rgba(122,92,255,.3); } .btn.mgb.pro .mgbt small { color: #d9d2ff; }
@keyframes mgsweep { from { stroke-dashoffset: var(--c); } to { stroke-dashoffset: var(--o); } } .arc { animation: mgsweep 1.4s cubic-bezier(.2,.8,.2,1) backwards; transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }
@keyframes mgtw { 0%, 100% { opacity: .5; } 50% { opacity: 1; } } .star { animation: mgtw 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .arc, .star { animation: none; } }

/* ---------- Quests, level, round report ---------- */
.mgxp { height: 10px; border-radius: 99px; background: #22372b; margin-top: 10px; overflow: hidden; } .mgxp.sm { height: 7px; margin-top: 8px; } .mgxp i { display: block; height: 100%; background: linear-gradient(90deg, #F26B1D, #ffd978); border-radius: 99px; }
.mgq { padding: 10px 0; border-top: 1px solid var(--line); } .mgq:first-of-type { border-top: 0; } .mgq.off { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 12px; cursor: pointer; padding: 0; }
.mgrp { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; } .mgreport .mgpr { margin-top: 4px; }

/* ---------- Stat duels ---------- */
.mgmir { display: grid; grid-template-columns: 1fr 86px 1fr; align-items: center; gap: 6px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; } .mgmir:first-of-type { border-top: 0; }
.mgmir .l, .mgmir .r { height: 24px; display: flex; align-items: center; font-weight: 800; padding: 0 8px; border-radius: 7px; } .mgmir .l { justify-content: flex-end; background: linear-gradient(270deg, #1b3a2b, #142319); } .mgmir .r { background: linear-gradient(90deg, #33241a, #1c1510); color: #d9c7b8; }
.mgmir .l.w { background: linear-gradient(270deg, var(--orange), #8a3b10); color: #1b0e05; } .mgmir .r.w { background: linear-gradient(90deg, var(--orange), #8a3b10); color: #1b0e05; } .mgmir .c { text-align: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.mgnap { background: #efe7cf; color: #3b2f1d; border-radius: 8px; padding: 12px 14px; font-family: Georgia, serif; transform: rotate(-1deg); box-shadow: 0 8px 20px #0008; margin: 6px 0 12px; }

.rkpro { font-size: 9px; font-weight: 900; letter-spacing: .08em; padding: 1px 5px; border-radius: 999px; background: #2a2160; color: #c3b8ff; margin-left: 4px; vertical-align: 1px; }


/* Bag cards: every club is a card; the strip scrolls sideways. The distance curve is a row of bars. */
.deck { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; margin: 0 -2px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
.deck::-webkit-scrollbar { display: none; }
.deck .cx { flex: none; width: 142px; padding: 0; border: 0; background: none; scroll-snap-align: start; cursor: pointer; font: inherit; }
.deck .cx svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.witb-spec { display: flex; gap: 6px; margin-top: 5px; }
.witb-spec span { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green-bright); }
.slot-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bagcurve { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 6px; }
.bagcurve .b { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.bagcurve .b i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(#ffffff44, #6f8cff); border: 1.5px solid rgba(0, 0, 0, .55); }
.bagcurve .b.gap i { background: linear-gradient(#ffffff44, #ffb02e); }
.bagcurve .b em { font-style: normal; font-size: 10px; font-weight: 800; }
.bagcurve .b span { font-size: 10px; font-weight: 700; color: var(--muted); }
.chip.pro { background: linear-gradient(135deg, #fff1a8, #e6a92c); color: #4a3004; font-weight: 800; }
.slot-num { display: grid; gap: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.slot-num input { font-size: 15px; }
.yard-img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.cfd-out { margin-top: 12px; font-size: 15px; }
.cfd-out .big { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.cfd-out .alt { margin-top: 5px; color: var(--muted); font-size: 14px; }
.cfd-out .alt b { color: var(--ink); }

/* Tags drawn as cards (cards.js) */
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.fc { min-width: 0; text-align: center; }
.fc-svg { display: block; width: 100%; height: auto; overflow: hidden; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.fc.off .fc-svg { filter: none; }
.fc-sub { margin-top: 7px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.fc-bar { height: 6px; border-radius: 99px; background: #26263a; overflow: hidden; margin-top: 6px; }
.fc-bar u { display: block; height: 100%; background: linear-gradient(90deg, #F26B1D, #ffd978); }
.rc-tags .fc-grid { grid-template-columns: repeat(2, 1fr); max-width: 340px; margin: 0 auto; }

/* Course cards: face-down cards glow in their rarity colour; the binder header */
.fc.sealed { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.fc.sealed .fc-svg { filter: drop-shadow(0 0 8px var(--a)) drop-shadow(0 0 20px var(--a)); }
.fc-lock { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 5 / 7; display: grid; place-items: center; background: rgba(5, 5, 12, .3); border-radius: 8px; }
.fc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 12px; }
.rch { display: inline-block; font-family: Impact, 'Arial Black', sans-serif; font-style: italic; font-size: 12px; padding: 1px 8px; border-radius: 5px; color: #111; }
.fc-banner { margin: 0 0 14px; padding: 10px 12px; border: 1px dashed #4a4a78; border-radius: 12px; font-size: 13.5px; }
.fc-banner .btn { margin-left: 6px; }
.rc-pull { max-width: 190px; margin: 10px auto 4px; }
.rc-pull .fc.sealed, .rc-pull .fc { margin-top: 8px; }

/* Player card on the profile */
.pcard { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; margin-bottom: 16px; }
.pcsvg { padding: 0; border: 0; background: none; cursor: pointer; display: block; width: 150px; }
.pcsvg .fc-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
@media (max-width: 380px) { .pcard { grid-template-columns: 120px 1fr; } .pcsvg { width: 120px; } }

/* Showcase deck */
.scase { margin-bottom: 16px; }
.show-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.show-strip::-webkit-scrollbar { display: none; }
.show-it { flex: none; width: 124px; }
.show-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.show-pick { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; font: inherit; color: inherit; }
.show-pick.sel { outline: 3px solid #F26B1D; outline-offset: 2px; }
.show-pick.sel::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: #F26B1D; color: #1b0e05; font-weight: 900; display: grid; place-items: center; }
.show-lockd { opacity: .85; }

/* Moment cards: a stack behind a course card that has moments, and the after-round list */
.fc.has-moments { position: relative; }
.fc.has-moments .fc-svg { filter: drop-shadow(6px 5px 0 #2a2a42) drop-shadow(11px 9px 0 #1a1a2c) drop-shadow(0 10px 10px rgba(0, 0, 0, .5)); }
.fc-badge { position: absolute; right: 8px; top: 17%; white-space: nowrap; padding: 3px 9px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff3d6e, #F26B1D); color: #fff; font: 800 11px/1.3 -apple-system, system-ui, sans-serif; letter-spacing: .02em; cursor: pointer; box-shadow: 0 2px 6px #0008; }
.rc-moments { margin: 12px auto 4px; text-align: center; }
.rc-moments .fc-grid { grid-template-columns: repeat(2, 1fr); max-width: 340px; margin: 8px auto 0; }

/* Location check badge on a round (1 Arrived, 2 On course, 3 Full round) */
.chk { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; margin-top: 4px; width: fit-content; align-self: flex-start; }
.chk svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chk-1 { background: rgba(110, 190, 220, .14); color: #8fd3ea; border-color: rgba(110, 190, 220, .35); }
.chk-2 { background: var(--green-soft); color: var(--green-bright); border-color: rgba(70, 200, 130, .4); }
.chk-3 { background: linear-gradient(135deg, rgba(255, 196, 70, .22), rgba(255, 140, 40, .18)); color: #ffd36b; border-color: rgba(255, 196, 70, .55); }
.rc .chk { margin-top: 0; }

/* ---- Daily streak and quests (daily.js) ---- */
.dstrip { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 8px 12px 8px 8px; border: 1px solid #3a2a14; border-radius: 16px; color: var(--ink); text-decoration: none; overflow: hidden;
  background: radial-gradient(120px 70px at 24px 50%, rgba(255, 106, 19, .32), transparent 70%), linear-gradient(90deg, #1c1409, var(--card) 60%); }
.dstrip:hover { border-color: #6b3a14; }
.dstrip.risk { border-color: #7a4416; box-shadow: 0 0 0 1px rgba(255, 106, 19, .25), 0 0 22px rgba(255, 106, 19, .16); }
.dstrip.ready { border-color: var(--orange); background: radial-gradient(160px 80px at 24px 50%, rgba(255, 106, 19, .5), transparent 70%), linear-gradient(90deg, #2d1809, #1a2018 70%); }
.dstrip.ready::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 30px rgba(255, 106, 19, .55); opacity: .35; animation: dGlow 2.2s ease-in-out infinite; pointer-events: none; }
@keyframes dGlow { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.dmini { flex: none; width: 46px; display: block; } .dmini svg { width: 46px; height: auto; display: block; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .55)); }
.dtx { flex: 1; min-width: 0; line-height: 1.2; } .dtx b { display: block; font-size: 17px; font-weight: 900; font-style: italic; letter-spacing: -.01em; } .dtx small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.dstrip.ready .dtx small { color: #ffbb7a; font-weight: 700; }
.dr { flex: none; display: block; } .dgo { color: var(--muted); display: inline-flex; }
.dhero { position: relative; overflow: hidden; border-color: #4a3216; background: radial-gradient(420px 260px at 22% 30%, rgba(255, 106, 19, .30), transparent 70%), radial-gradient(300px 200px at 100% 100%, rgba(76, 201, 138, .12), transparent 70%), #0e1410; }
.dhero.cold { border-color: var(--line); background: #0e1410; }
.dhero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 58% 12%, #fff6, transparent), radial-gradient(1.4px 1.4px at 86% 30%, #fff9, transparent), radial-gradient(1px 1px at 72% 70%, #fff6, transparent), radial-gradient(1px 1px at 38% 84%, #fff5, transparent), radial-gradient(1.2px 1.2px at 94% 88%, #fff7, transparent); pointer-events: none; }
.dheroin { position: relative; display: flex; align-items: center; gap: 14px; }
.dem { flex: none; width: 160px; } .dem svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)); }
.dside { min-width: 0; } .dtier { font-size: 30px; font-weight: 900; font-style: italic; line-height: 1.05; letter-spacing: -.02em; color: #ffd8a8; text-shadow: 0 2px 14px rgba(255, 106, 19, .5); }
.dshs { display: inline-flex; gap: 4px; } .dsh { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px dashed #3a5a46; color: #3a5a46; } .dsh .i { width: 16px; height: 16px; }
.dsh.on { border: 1px solid #1f5a38; background: var(--green-soft); color: var(--green-bright); box-shadow: 0 0 12px rgba(76, 201, 138, .35); }
.ddays { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; text-align: center; font-size: 11px; color: var(--muted); }
.ddays > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ddays b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0a100d; border: 1px solid var(--line); color: var(--on-orange); }
.ddays b .i { width: 18px; height: 18px; }
.ddays .on b { background: radial-gradient(circle at 50% 35%, #ffb35c, var(--orange) 70%); border-color: #ffb35c; box-shadow: 0 0 12px rgba(255, 106, 19, .55); }
.ddays .cov b { background: var(--green-soft); border-color: #1f5a38; color: var(--green-bright); box-shadow: 0 0 10px rgba(76, 201, 138, .3); }
.ddays .td b { outline: 2px solid rgba(255, 150, 60, .55); outline-offset: 2px; }
.dnote { position: relative; margin: 14px 0 0; font-size: 13px; color: #b9cdc1; }
.dq3 .dqwrap { display: flex; align-items: center; gap: 16px; }
.dring { flex: none; display: block; filter: drop-shadow(0 0 14px rgba(255, 106, 19, .22)); }
.dqlist { flex: 1; min-width: 0; }
.dq { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); } .dq:first-child { border-top: 0; }
.dq .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.dq .dqt { font-size: 14px; line-height: 1.25; display: block; } .dq.done .dqt { color: var(--muted); text-decoration: line-through; }
.dcount { font-size: 12px; font-weight: 800; color: var(--muted); } .dok { color: var(--green-bright); display: inline-flex; } .dok .i { width: 18px; height: 18px; }
.dchestrow { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.dchest { flex: none; width: 96px; perspective: 600px; }
.dcard3 { position: relative; transform: rotate(-4deg); transition: transform 200ms var(--ease-out); } .dcard3 svg { display: block; width: 100%; height: auto; border-radius: 8px; }
.dchest.locked .dcard3 { filter: saturate(.35) brightness(.55); }
.dchest.opened .dcard3 { filter: saturate(.5) brightness(.7); transform: rotate(-4deg) scale(.94); }
.dchest.ready .dcard3 { animation: dChest 2.4s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(255, 106, 19, .75)); }
.dlk { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; } .dlk .i { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px #000); } .dlk.ok { color: var(--green-bright); }
.dsay { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .dsay b { font-size: 17px; font-weight: 900; font-style: italic; } .dsay small { color: var(--muted); font-size: 13px; }
.dsay .btn { margin-top: 6px; }
.dweek { background: linear-gradient(90deg, #12201a, var(--card)); } .dweek.done { border-color: #1f5a38; box-shadow: 0 0 20px rgba(76, 201, 138, .18); }
.dwr { flex: none; } .dwr svg { display: block; }
.dmap { display: block; width: 100%; height: auto; } .dstar { filter: drop-shadow(0 0 6px #ffb02e); animation: dTw 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.dfl { transform-box: fill-box; transform-origin: 50% 100%; animation: dFlick 1.6s ease-in-out infinite; }
.emb.still .dfl { animation: none; }
@keyframes dFlick { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(.95, 1.05); } }
@keyframes dPulse { 0%, 100% { box-shadow: 0 0 20px rgba(255, 106, 19, .28); } 50% { box-shadow: 0 0 34px rgba(255, 106, 19, .5); } }
@keyframes dChest { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-5px); } }
@keyframes dTw { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .dstrip.ready::after, .dchest.ready .dcard3, .dstar, .dfl { animation: none; } }
@media (max-width: 380px) { .dem { width: 132px; } .dtier { font-size: 25px; } }
.dgolf { display: inline-block; margin: 0 0 3px; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--green-soft); color: var(--green-bright); border: 1px solid #1f5a38; }
.dprac { padding: 5px 14px; flex: none; }

/* Two-way switch (Friends / Global, Net / Gross): the orange fills its whole half of the pill and slides across when you switch. */
.seg.segfill { position: relative; display: flex; width: min(100%, 260px); max-width: none; padding: 0; gap: 0; margin-bottom: 0; overflow: hidden; border: 0; border-radius: 999px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.seg.segfill::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--yellow); transition: transform 240ms var(--ease-out); pointer-events: none; }
.seg.segfill:has(button:nth-child(2).on)::before { transform: translateX(100%); }
.seg.segfill button { position: relative; z-index: 1; flex: 1 1 0; min-height: 42px; padding: 0 16px; border-radius: 0; background: none; color: var(--ink); font-size: 14.5px; font-weight: 700; transition: color 200ms ease; }
.seg.segfill button.on { background: none; color: var(--on-orange); }
@media (prefers-reduced-motion: reduce) { .seg.segfill::before { transition: none; } }

/* The Premium badge after a name (premium.js) */
.pbd { display: inline-flex; flex: none; width: 1.08em; height: 1.08em; min-width: 15px; min-height: 15px; margin-left: 5px; vertical-align: -3px; cursor: pointer; text-decoration: none; }
.pbd svg { width: 100%; height: 100%; display: block; }
h1 .pbd, .page-head h1 .pbd { width: .85em; height: .85em; min-width: 22px; min-height: 22px; vertical-align: -2px; }
.fpost .name .pbd, .comment .name .pbd { margin-left: 4px; }

/* ---- Next up: today's planned round (nextup.js) ---- */
.nu { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid #2c4435; border-radius: 18px; color: var(--ink); background: radial-gradient(180px 90px at 36px 50%, rgba(242, 112, 29, .22), transparent 70%), #111b15; }
.nu.now { border-color: var(--orange); box-shadow: 0 0 22px rgba(242, 112, 29, .3); }
.nu.done { border-color: #1f5a38; background: radial-gradient(180px 90px at 36px 50%, rgba(79, 227, 160, .16), transparent 70%), #111b15; }
.nu-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.nu-rg { flex: none; display: block; line-height: 0; }
.nu-tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.2; }
.nu-eb { display: flex; align-items: center; gap: 8px; font: 800 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #ffb066; }
.nu.done .nu-eb { color: #7ee0a8; }
.nu-hd { font: italic 900 22px/1.05 Impact, 'Arial Black', sans-serif; text-transform: uppercase; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nu-sb { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nu-more { padding: 2px 7px; border-radius: 99px; background: #2a1608; border: 1px solid #6b3a14; color: #ffb066; font-size: 11px; letter-spacing: 0; text-decoration: none; }
.nu-go { flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 8px 15px; border: 0; border-radius: 11px; background: var(--orange); color: var(--on-orange); font: italic 900 14px/1 Impact, 'Arial Black', sans-serif; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 #a74a0d; }
.nu-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #a74a0d; }
@media (max-width: 380px) { .nu-hd { font-size: 19px; } .nu-go { padding: 8px 12px; } }

/* Smooth screens: a new screen fades in once; bars glide to new values instead of jumping */
.pgin { animation: pgin .18s ease-out; }
@keyframes pgin { from { opacity: 0; } to { opacity: 1; } }
.mgxp i, .pbar i { transition: width .6s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .pgin { animation: none; } .arc { transition: none; } }

/* The daily chest (daily.js): locked, ready, opened. The lid, glow and sparks only move; opening plays once. */
.ch { position: relative; flex: none; width: 118px; height: 104px; overflow: visible; }
.ch svg { width: 100%; height: 100%; overflow: visible; display: block; }
.ch .lid { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.2, .9, .3, 1.3); }
.ch.locked { filter: saturate(.5) brightness(.75); }
.ch.ready { animation: chBob 2.2s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(255, 150, 40, .6)); }
.ch.ready .lid { transform: translateY(-2px) rotate(-3deg); }
.ch.opened .lid { transform: translateY(-22px) rotate(-14deg); }
.ch .glow { opacity: 0; transition: opacity .4s; }
.ch.ready .glow { opacity: .5; animation: chGlow 1.6s ease-in-out infinite; }
.ch.opened .glow { opacity: .9; }
.ch.opened:not(.pop) { filter: saturate(.7) brightness(.85); }
.ch .shard { opacity: 0; transform-box: fill-box; transform-origin: center; }
.ch.opened.pop .shard { animation: chRise 2.4s ease-out 1 both; }
.ch.opened .lock, .ch.ready .lock { opacity: 0; }
@keyframes chBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes chGlow { 0%, 100% { opacity: .3; } 50% { opacity: .85; } }
@keyframes chRise { 0% { opacity: 0; transform: translateY(12px) scale(.6); } 18% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .ch.ready, .ch.ready .glow { animation: none; } .ch.opened.pop .shard { animation: none; opacity: 1; } .ch .lid { transition: none; } }

/* The daily reward as a putt (cupdrop.js): a wide picture above the words. Morph leaves the canvas alone; the box around it carries the state. */
.dchestrow.cup { flex-direction: column; align-items: stretch; gap: 12px; }
.dchestrow.cup .dsay { align-items: center; text-align: center; }
.cupd { position: relative; width: 100%; max-width: 400px; margin: 0 auto; aspect-ratio: 340 / 262; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 28px rgba(0, 0, 0, .35); }
.cupd canvas { display: block; width: 100%; height: 100%; }
.cupd.ready { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cupd.locked canvas { filter: saturate(.8); }
.dring.dpulse { animation: dPulse .5s ease-out; }
@keyframes dPulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); filter: drop-shadow(0 0 18px rgba(255, 190, 90, .9)); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dring.dpulse { animation: none; } }

/* ---------- Integrity (supabase/067): the seal, the profile bubble and strip, and the page ---------- */
.seal { display: inline-block; line-height: 0; vertical-align: middle; flex: none; } .seal svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55)); }
.seal.t1 svg.c { filter: drop-shadow(0 0 8px rgba(79, 120, 238, .55)) drop-shadow(0 3px 5px rgba(0, 0, 0, .5)); } .seal.t2 svg.c { filter: drop-shadow(0 0 9px rgba(255, 106, 19, .5)) drop-shadow(0 3px 5px rgba(0, 0, 0, .5)); }
.seal.t3 svg.c { filter: drop-shadow(0 0 10px rgba(34, 168, 98, .55)) drop-shadow(0 3px 5px rgba(0, 0, 0, .5)); } .seal.t4 svg.c { filter: drop-shadow(0 0 16px rgba(241, 188, 34, .75)) drop-shadow(0 3px 5px rgba(0, 0, 0, .5)); }
.seal .rot { transform-box: view-box; transform-origin: 80px 80px; animation: sealSpin 24s linear infinite; } .seal .rotr { transform-box: view-box; transform-origin: 80px 80px; animation: sealSpin 17s linear infinite reverse; } .seal .orbit { transform-box: view-box; transform-origin: 80px 80px; animation: sealSpin 4.2s linear infinite; }
.seal .pulse { animation: sealPulse 2.6s ease-in-out infinite; } .seal .tw { animation: sealTw 2.4s ease-in-out infinite; } .seal svg.mini * { animation: none !important; }
@keyframes sealSpin { to { transform: rotate(360deg); } } @keyframes sealPulse { 50% { opacity: .3; } } @keyframes sealTw { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .seal * { animation: none !important; } }
.btn.mgb.itg { border-color: #7a3a14; background: linear-gradient(90deg, rgba(255, 106, 19, .26), rgba(255, 106, 19, .05)); box-shadow: 0 0 18px rgba(255, 106, 19, .18); padding: 5px 12px 5px 6px; }
@media (max-width: 560px) { .pacts { display: grid; grid-template-columns: 1fr 1fr; } .pacts > .btn[data-a="editProfile"] { grid-column: 1 / -1; } .pacts > .btn.mgb { width: 100%; justify-content: flex-start; } }
.itgstrip { display: flex; align-items: center; gap: 12px; flex: 1 0 100%; width: 100%; padding: 8px 12px 8px 8px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; background: linear-gradient(120deg, #2d1c11, var(--paper)); border: 1px solid #6a3a17; border-radius: 10px; }
.itgstrip .itgi { flex: 1; min-width: 0; } .itgstrip b { display: block; font-size: 16px; font-weight: 900; font-style: italic; } .itgstrip small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.itgchip { background: #2d1c11; color: #ffb27a; } .itghero { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: radial-gradient(120% 140% at 0% 0%, #3a1c0a 0%, var(--card) 62%); }
.itgbig { font-size: 54px; line-height: 1; font-weight: 900; font-style: italic; letter-spacing: -.02em; white-space: nowrap; } .itgbig small { font-size: 13px; font-style: normal; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.itgscale { position: relative; margin: 12px 2px 20px; } .itgbar { height: 10px; border-radius: 6px; background: #0a110d; border: 1px solid var(--line); overflow: hidden; } .itgbar i { display: block; height: 100%; background: var(--orange); } .itgbar.sm { height: 7px; } .itgbar.sm i { background: var(--green-bright); }
.itgscale .tk { position: absolute; top: -3px; width: 2px; height: 16px; background: #3b5446; } .itgscale .tl { position: absolute; top: 16px; transform: translateX(-50%); font-size: 9.5px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.itgpips { max-width: 400px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 8px 0; } .itgpips .pip { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #07100b; }
.itgpips .pip.w { background: var(--green-bright); } .itgpips .pip.f { background: #5b86ff; } .itgpips .pip.p { border: 2px dashed #66736c; color: #66736c; } .itgpips .pip.now { outline: 2px solid var(--ink); outline-offset: 2px; }
.itgleg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); } .itgleg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; } .itgleg i.w { background: var(--green-bright); } .itgleg i.f { background: #5b86ff; } .itgleg i.p { border: 2px dashed #66736c; }
.itgsig { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; } .itgsig:first-of-type { border-top: 0; } .itgsig span { color: var(--muted); font-size: 12px; } .itgsig .itgbar { grid-column: 1 / -1; }
.itgspark { width: 100%; height: 86px; display: block; }
.itgln { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; padding: 5px 0; font-size: 13px; align-items: center; } .itgln em { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: #16382a; color: var(--green-bright); display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.itgln.miss { color: #ffb27a; } .itgln.miss em { background: #2d1c11; color: #ffb27a; } .itgln .pp { font-weight: 900; } .itgln .pp small { color: var(--muted); font-weight: 600; } .good { color: var(--green-bright); }
.itgrd { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 0; border-top: 1px solid var(--line); } .itgrd:first-of-type { border-top: 0; } .itgrd .nm { font-weight: 800; } .itgrd .dl { font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; } .itgrd .dl.up { color: var(--green-bright); } .itgrd .dl.dn { color: var(--danger); } .itgrd .itgch { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.itgtr { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); } .itgtr:first-of-type { border-top: 0; } .itgtr.on { background: rgba(255, 106, 19, .08); border-radius: 10px; padding-left: 6px; padding-right: 6px; } .itgtiers { margin-top: 4px; }
.chip.o { background: #2d1c11; color: #ffb27a; }

.itgask { grid-column: 1 / -1; margin-top: 8px; } .itgfr { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); } .itgfr:first-of-type { border-top: 0; }
.itgwait { border-color: #6a3a17; background: linear-gradient(120deg, #2d1c11, var(--card)); }
table.itgcard { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; font-weight: 800; } .itgcard td { border: 1px solid var(--line); padding: 4px 0 5px; font-size: 15px; } .itgcard td small { display: block; font-size: 9.5px; font-weight: 700; color: var(--muted); }
.itgcard td.gd { color: var(--green-bright); } .itgcard td.bd { color: #ff9a5e; }
