/* Courtin app. Layout: the films' phone screen made real; one column, a gold header, the deck as the hero,
   a tab bar of courtroom words. Single dark theme by design (the brand is black and gold). */
:root {
  --ground: #0A0908;
  --surface: #141210;
  --surface-2: #1C1915;
  --raise: #26221D;
  --line: rgba(233, 211, 155, .16);
  --line-strong: rgba(233, 211, 155, .42);
  --ivory: #F3EEE4;
  --ivory-2: rgba(243, 238, 228, .82);
  --muted: #8C857A;
  --gold: #E9D39B;
  --gold-mid: #D9BC7C;
  --gold-deep: #B8924A;
  --ink-on-gold: #1A140A;
  --declined: #C8102E;
  --declined-soft: #FF6B75;
  --zone: #E65A5A;
  --zone-fill: rgba(170, 40, 40, .32);
  --water: #0A1113;
  --ok: #9BE3B5;
  --paper: #F2ECDD;
  --legal: #1B1B1B;
  --biro: #1E3A8A;
  --tape: #E9DFC0;
  --sticker: #FF7A1A;
  --scrim: rgba(6, 5, 4, .93);
  --gold-grad: linear-gradient(100deg, #B8924A 0%, #D9BC7C 18%, #F1E2B8 34%, #E9D39B 50%, #C9A55E 66%, #EAD7A3 82%, #B8924A 100%);
  --wordmark: 'Bodoni Moda', 'Playfair Display', 'Didot', Georgia, serif;
  --display: 'Playfair Display', 'Didot', Georgia, serif;
  --ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --legal-face: 'Courier Prime', 'Courier New', Courier, monospace;
  --marker: 'Permanent Marker', 'Marker Felt', 'Comic Sans MS', cursive;
  --hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;
  --tab-h: 62px;
  --top-h: 54px;
  --r-card: 22px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; background: var(--ground); -webkit-text-size-adjust: 100%; }
body { height: 100%; margin: 0; background: var(--ground); color: var(--ivory); font-family: var(--ui); font-size: 15px; line-height: 1.4;
  overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
input { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.gold { background: var(--gold-grad); background-size: 170% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.serif { font-family: var(--display); }
.caps { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- shell ---------- */
#app { position: relative; height: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, rgba(184, 146, 74, .10), rgba(184, 146, 74, 0) 60%), var(--ground); }
.top { flex: none; height: var(--top-h); position: relative; z-index: 5; }
.top-in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { grid-column: 2; display: inline-flex; align-items: center; gap: 9px; justify-self: center; }
.brand svg { display: block; }
.wm { font-family: var(--wordmark); font-weight: 500; font-size: 15px; letter-spacing: .34em; padding-left: .34em; line-height: 1; }
.tally { grid-column: 1; justify-self: start; font-size: 10px; font-weight: 600; letter-spacing: .2em; color: var(--muted); white-space: nowrap; }
.tally b { color: var(--declined-soft); font-weight: 700; font-variant-numeric: tabular-nums; display: inline-block; }
.tally b.bump { animation: bump .6s ease; }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.7); color: #fff; } 100% { transform: scale(1); } }
.goldpill { grid-column: 3; justify-self: end; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; color: var(--gold); display: inline-flex; align-items: center; gap: 5px; }
.goldpill.on { background: var(--gold-grad); color: var(--ink-on-gold); border-color: transparent; }

#view { flex: 1; min-height: 0; position: relative; }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.screen.fill { overflow: hidden; display: flex; flex-direction: column; }
.screen-in { padding-block: 6px 28px; }

.tabs { flex: none; height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: rgba(12, 11, 10, .96); position: relative; z-index: 6; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); position: relative; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--gold); }
.tab .dot { position: absolute; top: 9px; left: calc(50% + 9px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--declined);
  color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }

/* ---------- buttons, chips ---------- */
.btn { height: 50px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; letter-spacing: .02em; white-space: nowrap; border: 1.5px solid var(--line-strong); color: var(--gold);
  transition: transform .12s ease, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--gold-grad); color: var(--ink-on-gold); border: none; }
.btn.ghost { border-color: rgba(243, 238, 228, .3); color: var(--ivory); }
.btn.red { border-color: rgba(230, 90, 90, .6); color: var(--declined-soft); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(233, 211, 155, .45);
  font-size: 12.5px; color: var(--gold); white-space: nowrap; line-height: 1.2; }
.chip.v { background: rgba(233, 211, 155, .12); }
.chip.red { border-color: rgba(255, 90, 100, .6); color: #FF8A92; }
.chip.ivory { border-color: rgba(243, 238, 228, .28); color: var(--ivory-2); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pick { cursor: pointer; padding: 9px 14px; font-size: 14px; border-color: rgba(243, 238, 228, .24); color: var(--ivory-2); transition: all .15s; }
.pick.on { background: var(--gold-grad); color: var(--ink-on-gold); border-color: transparent; font-weight: 600; }

/* ---------- splash ---------- */
.splash { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 24px 36px; gap: 0; }
.splash .emb { margin-bottom: 22px; }
.splash .big { font-family: var(--wordmark); font-weight: 700; font-size: 42px; letter-spacing: .3em; padding-left: .3em; line-height: 1; }
.splash .tag { margin-top: 18px; font-family: var(--display); font-style: italic; font-size: 22px; color: var(--ivory); }
.splash .mem { margin-top: 8px; font-size: 13px; color: var(--muted); }
.splash .cta { margin-top: 44px; width: min(320px, 100%); }
.splash .fine { margin-top: 18px; font-size: 11px; color: var(--muted); max-width: 300px; line-height: 1.5; }
.emb-draw .r1, .emb-draw .r2 { stroke-dasharray: 214; stroke-dashoffset: 214; animation: draw 1.3s cubic-bezier(.2, .7, .2, 1) forwards; }
.emb-draw .r2 { animation-delay: .25s; }
.emb-draw .chain, .emb-draw .gem { opacity: 0; animation: fadein .5s ease forwards 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.rise { opacity: 0; transform: translateY(10px); animation: rise .7s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- onboarding ---------- */
.ob { min-height: 100%; display: flex; flex-direction: column; padding-block: 8px 24px; }
.ob .stepcap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.ob .dots { display: flex; gap: 6px; }
.ob .dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(243, 238, 228, .16); }
.ob .dots i.on { background: var(--gold); }
.ob h1 { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.15; margin: 0 0 10px; text-wrap: balance; }
.ob .help { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.ob .field { width: 100%; height: 56px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 18px;
  font-family: var(--display); font-size: 22px; color: var(--ivory); outline: none; }
.ob .field::placeholder { color: rgba(243, 238, 228, .28); }
.ob .grow { flex: 1; min-height: 20px; }
.ob .nav { display: flex; gap: 10px; }
.ob .nav .btn { flex: 1; }
.ob .note { margin-top: 14px; font-size: 12.5px; color: var(--muted); font-style: italic; font-family: var(--display); }
.verify { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.vrow { display: flex; gap: 12px; align-items: flex-start; opacity: 0; transform: translateY(6px); transition: all .4s ease; }
.vrow.on { opacity: 1; transform: none; }
.vrow .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-size: 12px; margin-top: 1px; }
.vrow b { display: block; font-weight: 600; font-size: 14.5px; }
.vrow span { font-size: 13px; color: var(--muted); }
.approved { margin-top: 26px; text-align: center; opacity: 0; transition: opacity .6s; }
.approved.on { opacity: 1; }
.approved .serif { font-style: italic; font-size: 26px; }

/* ---------- deck ---------- */
.deckwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-block: 2px 12px; }
.deckmeta { display: flex; justify-content: space-between; align-items: center; height: 22px; margin-bottom: 8px; }
.stack { position: relative; flex: 1; min-height: 0; }
.card { position: absolute; inset: 0; border-radius: var(--r-card); overflow: hidden; background: linear-gradient(160deg, #1C1915, #121110);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: flex; flex-direction: column; touch-action: none; user-select: none;
  -webkit-user-select: none; will-change: transform; }
.card.behind { transform: scale(.955) translateY(12px); opacity: .7; pointer-events: none; }
.card.behind2 { transform: scale(.91) translateY(24px); opacity: .35; pointer-events: none; }
.card .photo { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #1a1714; }
.card .photo img, .detail .photo img, .ph-img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.card .photo .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 8, 0) 46%, rgba(10, 9, 8, .6) 72%, rgba(10, 9, 8, .96) 100%); }
.card .nm { position: absolute; left: 18px; right: 90px; bottom: 40px; font-family: var(--display); font-size: 31px; line-height: 1.05; color: var(--ivory); }
.card .loc { position: absolute; left: 19px; right: 16px; bottom: 16px; font-size: 13px; color: var(--ivory-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .info { flex: none; padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 9px; }
.card .bio { font-size: 14px; line-height: 1.38; color: rgba(243, 238, 228, .92); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .chips { flex-wrap: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.card .stamp { position: absolute; top: 34px; padding: 6px 14px; border: 4px solid; border-radius: 10px; font-family: var(--display); font-weight: 600; font-size: 28px;
  letter-spacing: .12em; text-transform: uppercase; opacity: 0; pointer-events: none; }
.card .stamp.yes { left: 22px; color: var(--gold); border-color: var(--gold); transform: rotate(-12deg); }
.card .stamp.no { right: 22px; color: var(--declined-soft); border-color: var(--declined-soft); transform: rotate(12deg); }
.card .stamp.up { left: 50%; top: auto; bottom: 120px; color: #F4E6BE; border-color: #F4E6BE; transform: translateX(-50%) rotate(-4deg); font-size: 20px; }
.card .banner { position: absolute; left: 0; right: 0; top: 0; padding: 10px 16px; background: rgba(10, 9, 8, .82); font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: .04em; }
.ring { position: absolute; right: 12px; top: 12px; width: 70px; height: 70px; border-radius: 50%; background: rgba(10, 9, 8, .62); }
.ring svg { position: absolute; inset: 0; }
.ring .pc { position: absolute; left: 0; right: 0; top: 19px; text-align: center; font-weight: 600; font-size: 18px; color: var(--ivory); font-variant-numeric: tabular-nums; }
.ring .lb { position: absolute; left: 0; right: 0; top: 41px; text-align: center; font-weight: 600; font-size: 7.5px; letter-spacing: .24em; padding-left: .24em; color: var(--gold); }
.price { position: absolute; display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%; background: var(--sticker);
  color: #1A0E00; font-family: var(--marker); font-size: 19px; line-height: 1; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); transform: rotate(-12deg); text-align: center; }
.card .price { left: 14px; top: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ok); }
.actions { flex: none; display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.actions .x { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(243, 238, 228, .25); display: grid; place-items: center; color: var(--ivory-2); }
.actions .x svg { width: 18px; height: 18px; }
.actions .btn { flex: 1; padding: 0 10px; font-size: 13px; }
.actions .btn.ghost { flex: .92; }
.deckend { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 20px 6px; }
.deckend .serif { font-size: 25px; font-style: italic; line-height: 1.25; text-wrap: balance; }
.slider { width: 100%; margin-top: 10px; }
.slider input { width: 100%; accent-color: var(--gold); }
.slider .stops { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.slider .now { margin-top: 10px; font-family: var(--display); font-size: 20px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: flex; align-items: center; justify-content: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  animation: fadein .25s ease forwards; opacity: 0; }
.verdict { width: min(420px, 100%); background: linear-gradient(160deg, #1C1915, #100F0D); border: 1px solid rgba(233, 211, 155, .32); border-radius: 26px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .75); padding: 26px 22px 20px; text-align: center; position: relative; animation: pop .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.verdict .vk { font-size: 10.5px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; margin-top: 10px; }
.verdict .vm { font-family: var(--display); font-style: italic; font-size: 34px; line-height: 1.1; margin: 12px 0 8px; }
.verdict .vl { font-size: 14px; color: var(--ivory-2); margin: 0 auto 6px; max-width: 300px; }
.verdict .vs { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.verdict .who { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin: 0 auto; border: 2px solid var(--line-strong); position: relative; }
.verdict .who .ph-img { filter: grayscale(.85); }
.verdict .tally { position: absolute; top: 14px; right: 16px; }
.dstamp { position: absolute; left: 50%; top: 70px; transform: translateX(-50%) rotate(-10deg); padding: 4px 12px; border: 3px solid var(--declined); color: var(--declined);
  font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .14em; border-radius: 8px; background: rgba(10, 9, 8, .6); animation: stamp .45s cubic-bezier(.2, .9, .3, 1.3) .15s both; }
@keyframes stamp { from { transform: translateX(-50%) rotate(-10deg) scale(2.2); opacity: 0; } to { transform: translateX(-50%) rotate(-10deg) scale(1); opacity: 1; } }
.letter { background: var(--paper); color: var(--legal); font-family: var(--legal-face); text-align: left; border-radius: 6px; padding: 18px 18px 16px; margin: 6px 0 16px;
  font-size: 13px; line-height: 1.5; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.letter .hd { font-weight: 700; letter-spacing: .12em; font-size: 11px; border-bottom: 1.5px solid var(--legal); padding-bottom: 6px; margin-bottom: 10px; }
.letter .wp { display: inline-block; background: #F7E27A; padding: 1px 5px; font-weight: 700; font-size: 11px; margin-bottom: 8px; }
.letter .sig { font-family: var(--hand); font-size: 24px; color: var(--biro); margin-top: 6px; }

.match { width: 100%; max-width: 420px; text-align: center; }
.match .pair { position: relative; height: 150px; margin: 0 auto 8px; width: 290px; }
.match .av { position: absolute; top: 10px; width: 128px; height: 128px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); background: var(--surface-2); }
.match .av.l { left: 0; animation: slideL .7s cubic-bezier(.2, .8, .2, 1) both; }
.match .av.r { right: 0; animation: slideR .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slideL { from { transform: translateX(-80px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideR { from { transform: translateX(80px); opacity: 0; } to { transform: none; opacity: 1; } }
.match .chain { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); opacity: 0; animation: fadein .4s ease .6s forwards; }
.match .me { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-size: 48px; color: var(--gold); background: radial-gradient(circle at 50% 35%, #2a241c, #12100d); }
.match .big { font-family: var(--display); font-style: italic; font-size: 46px; line-height: 1.05; margin: 14px 0 6px; }
.match .rise2 { font-family: var(--display); letter-spacing: .4em; font-size: 14px; text-transform: uppercase; color: var(--ivory); padding-left: .4em; }
.match .ln { margin: 14px auto 24px; color: var(--ivory-2); font-size: 14px; max-width: 320px; }
.match .row { display: flex; flex-direction: column; gap: 10px; }

.sheet { position: fixed; inset: 0; z-index: 30; background: var(--ground); overflow-y: auto; overscroll-behavior: contain; animation: up .32s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-in { max-width: 520px; margin: 0 auto; }
.closebar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; height: calc(52px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px); background: linear-gradient(180deg, rgba(10, 9, 8, .96), rgba(10, 9, 8, .82)); }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(243, 238, 228, .2); color: var(--ivory); background: rgba(10, 9, 8, .5); }
.iconbtn svg { width: 18px; height: 18px; }

/* ---------- profile detail ---------- */
.detail .photo { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r-card); overflow: hidden; background: #1a1714; }
.detail .photo .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 8, 0) 55%, rgba(10, 9, 8, .9) 100%); }
.detail .nm { position: absolute; left: 18px; bottom: 38px; right: 16px; font-family: var(--display); font-size: 34px; line-height: 1.05; }
.detail .loc { position: absolute; left: 19px; bottom: 15px; right: 16px; font-size: 13px; color: var(--ivory-2); }
.detail .price { right: 16px; bottom: 18px; left: auto; top: auto; }
.sect { margin-top: 22px; }
.sect h3 { margin: 0 0 10px; }
.headline { font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.3; margin-top: 18px; }
.bioP { margin-top: 10px; font-size: 15px; color: var(--ivory-2); line-height: 1.5; }
.conds { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.conds li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.conds li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--gold); }
.junk { display: flex; flex-wrap: wrap; gap: 12px 10px; padding-top: 4px; }
.mtape { display: inline-block; padding: 7px 16px 5px; background: var(--tape); color: var(--biro); font-family: var(--hand); font-size: 22px; line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  clip-path: polygon(0 8%, 4% 0, 9% 6%, 14% 0, 20% 5%, 26% 0, 32% 6%, 38% 0, 44% 5%, 50% 0, 56% 6%, 62% 0, 68% 5%, 74% 0, 80% 6%, 86% 0, 92% 5%, 97% 0, 100% 8%, 100% 92%, 96% 100%, 91% 94%, 85% 100%, 79% 95%, 73% 100%, 67% 94%, 61% 100%, 55% 95%, 49% 100%, 43% 94%, 37% 100%, 31% 95%, 25% 100%, 19% 94%, 13% 100%, 7% 95%, 3% 100%, 0 92%); }
.mtape:nth-child(2n) { transform: rotate(1.6deg); }
.mtape:nth-child(2n+1) { transform: rotate(-1.4deg); }
.qa { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--surface); }
.qa + .qa { margin-top: 10px; }
.qa .q { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.qa .a { font-family: var(--display); font-size: 19px; margin-top: 6px; line-height: 1.3; }
.listing { font-family: var(--legal-face); background: var(--paper); color: var(--legal); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.45; }
.listing b { font-weight: 700; }
.detail .actions { position: sticky; bottom: 0; padding-block: 12px calc(4px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(10, 9, 8, 0), var(--ground) 30%); }
.report { margin-top: 22px; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- map ---------- */
.maphead { text-align: center; padding-top: 4px; }
.maphead h2 { font-family: var(--display); font-weight: 500; font-size: 26px; margin: 0; }
.maphead p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.mapbox { position: relative; margin-top: 14px; border-radius: 20px; overflow: hidden; background: #100F0D; box-shadow: inset 0 0 0 1px rgba(233, 211, 155, .12); aspect-ratio: 590 / 540; max-width: 100%; }
.mapbox svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mapbox .pin { cursor: pointer; }
.pulse { animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { transform: scale(1); opacity: .85; } to { transform: scale(3.2); opacity: 0; } }
.mlbl { font-family: var(--ui); font-weight: 600; font-size: 13px; letter-spacing: .04em; fill: var(--ivory); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.mini { margin-top: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 12px; display: flex; gap: 12px; align-items: center; animation: up .25s ease; }
.mini .av { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; flex: none; background: var(--surface-2); }
.mini .t { flex: 1; min-width: 0; }
.mini .t b { font-family: var(--display); font-weight: 500; font-size: 18px; display: block; }
.mini .t span { font-size: 12.5px; color: var(--muted); display: block; }
.mini .t em { font-style: normal; font-size: 12.5px; color: var(--gold); display: block; margin-top: 2px; }
.setrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(243, 238, 228, .08); }
.setrow .l { min-width: 0; }
.setrow .l b { display: block; font-weight: 600; font-size: 15px; }
.setrow .l span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tog { flex: none; width: 52px; height: 31px; border-radius: 16px; background: rgba(243, 238, 228, .16); position: relative; transition: background .25s; }
.tog i { position: absolute; top: 3px; left: 3px; width: 25px; height: 25px; border-radius: 50%; background: var(--ivory); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .25s cubic-bezier(.3, .8, .3, 1.2); }
.tog.on { background: var(--gold-mid); }
.tog.on i { transform: translateX(21px); }
.tog.lock { opacity: .9; }
.sharp { font-family: var(--display); font-style: italic; font-size: 22px; margin-top: 10px; }
.synced { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(243, 238, 228, .1); font-size: 13px; color: var(--muted); }
.synced b { color: var(--gold); }

/* ---------- matches ---------- */
.tallycard { border: 1px solid rgba(200, 16, 46, .35); border-radius: 22px; padding: 18px; background: linear-gradient(160deg, #1C1312, #110D0C); display: flex; align-items: center; gap: 16px; }
.tallycard .n { font-family: var(--display); font-size: 58px; line-height: 1; color: var(--declined-soft); font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.tallycard .t b { display: block; font-size: 11px; letter-spacing: .26em; color: var(--declined-soft); }
.tallycard .t span { display: block; font-family: var(--display); font-style: italic; font-size: 17px; margin-top: 6px; line-height: 1.3; }
.h2 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 26px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.h2 small { font-family: var(--ui); font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(243, 238, 228, .08); }
.row .av { flex: none; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: var(--surface-2); position: relative; }
.row .av.grey .ph-img { filter: grayscale(1); opacity: .6; }
.row .t { flex: 1; min-width: 0; }
.row .t b { font-weight: 600; font-size: 15px; display: block; }
.row .t span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t span.wrap { white-space: normal; }
.row .go { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--gold); font-size: 12.5px; font-weight: 600; }
.row .go.solid { background: var(--gold-grad); color: var(--ink-on-gold); border: none; }
.row .unread { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.empty { padding: 26px 18px; border: 1px dashed rgba(243, 238, 228, .16); border-radius: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .serif { color: var(--ivory); font-style: italic; font-size: 19px; display: block; margin-bottom: 6px; }

/* ---------- court list ---------- */
.board { background: var(--paper); color: var(--legal); font-family: var(--legal-face); border-radius: 10px; padding: 16px 14px 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.board .ct { text-align: center; font-weight: 700; letter-spacing: .14em; font-size: 13px; }
.board .cs { text-align: center; font-size: 12px; margin-top: 3px; }
.board table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px; }
.board th { text-align: left; font-weight: 700; border-bottom: 1.5px solid var(--legal); padding: 4px 4px; font-size: 10.5px; letter-spacing: .1em; }
.board td { padding: 6px 4px; border-bottom: 1px dotted rgba(27, 27, 27, .35); vertical-align: top; }
.board td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.board tr.you td { background: #F7E27A; }
.board .ft { font-size: 10.5px; margin-top: 10px; text-align: center; }
.alert { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.alert + .alert { margin-top: 10px; }
.alert .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: #0A0908; border: 1px solid rgba(233, 211, 155, .25); display: grid; place-items: center; }
.alert .bd { flex: 1; min-width: 0; }
.alert .hd { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.alert .tt { font-weight: 600; font-size: 14.5px; margin-top: 2px; }
.alert .bx { font-size: 14px; color: var(--ivory-2); }

/* ---------- notification banner ---------- */
.notif { position: fixed; z-index: 50; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); top: calc(8px + env(safe-area-inset-top, 0px));
  max-width: 500px; margin: 0 auto; display: flex; gap: 12px; padding: 12px 14px; border-radius: 22px; background: rgba(38, 34, 29, .97); border: 1px solid rgba(233, 211, 155, .18);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6); transform: translateY(-140%); transition: transform .45s cubic-bezier(.2, .9, .3, 1.1); cursor: pointer; }
.notif.on { transform: none; }
.notif .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: #0A0908; border: 1px solid rgba(233, 211, 155, .25); display: grid; place-items: center; }
.notif .bd { flex: 1; min-width: 0; }
.notif .hd { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.notif .tt { font-weight: 600; font-size: 14.5px; margin-top: 2px; }
.notif .bx { font-size: 14px; color: var(--ivory-2); }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); opacity: 0;
  max-width: min(360px, calc(100% - 32px)); width: max-content; padding: 11px 16px; border-radius: 14px; background: rgba(38, 34, 29, .97); border: 1px solid rgba(233, 211, 155, .25);
  font-size: 13.5px; text-align: center; transition: all .3s ease; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.toast em { font-family: var(--display); font-size: 15px; }

/* ---------- me / chambers ---------- */
.plea { border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: linear-gradient(160deg, #1C1915, #121110); }
.plea .nm { font-family: var(--display); font-size: 30px; }
.plea .vf { margin-top: 2px; }
.plea .lbl { margin: 14px 0 7px; }
.fine-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ivory-2); }
.fine-list li:last-child { color: var(--gold); }
.about { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.confirm { margin-top: 12px; padding: 14px; border-radius: 16px; border: 1px solid rgba(230, 90, 90, .4); background: rgba(200, 16, 46, .08); }
.confirm p { margin: 0 0 12px; font-family: var(--display); font-style: italic; font-size: 18px; }
.confirm .r { display: flex; gap: 10px; }
.confirm .r .btn { flex: 1; height: 44px; }

/* ---------- gold ---------- */
.goldcard { border-radius: 24px; padding: 24px 20px; background: radial-gradient(120% 90% at 20% 0%, rgba(241, 226, 184, .22), rgba(184, 146, 74, .06) 55%, rgba(0, 0, 0, 0)), linear-gradient(160deg, #1E1A14, #0F0D0B);
  border: 1px solid rgba(233, 211, 155, .4); text-align: center; }
.goldcard .gw { font-family: var(--wordmark); font-weight: 600; font-size: 30px; letter-spacing: .26em; padding-left: .26em; }
.goldcard .gs { font-family: var(--display); font-style: italic; font-size: 17px; margin-top: 8px; color: var(--ivory-2); }
.perks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.perks li { display: flex; gap: 12px; font-size: 14.5px; align-items: flex-start; }
.perks li::before { content: '✓'; flex: none; color: var(--ink-on-gold); background: var(--gold-grad); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 1px; }
.plans { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 20px; }
.plan { border: 1px solid rgba(243, 238, 228, .2); border-radius: 16px; padding: 12px 6px; text-align: center; min-width: 0; }
.plan.on { border-color: var(--gold); background: rgba(233, 211, 155, .1); }
.plan b { display: block; font-family: var(--display); font-size: 19px; }
.plan span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.paybox { margin-top: 16px; }
.payline { margin-top: 12px; text-align: center; font-family: var(--display); font-style: italic; font-size: 18px; min-height: 27px; }

/* ---------- chat ---------- */
.chat { position: fixed; inset: 0; z-index: 35; background: var(--ground); display: flex; flex-direction: column; animation: up .28s ease; }
.chat-in { flex: 1; min-height: 0; max-width: 520px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; }
.chathead { flex: none; display: flex; align-items: center; gap: 12px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chathead .av { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface-2); }
.chathead .t { flex: 1; min-width: 0; }
.chathead .t b { font-family: var(--display); font-weight: 500; font-size: 19px; display: block; line-height: 1.1; }
.chathead .t span { font-size: 12px; color: var(--ok); }
.chathead .t span.off { color: var(--muted); }
.msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-block: 14px 8px; display: flex; flex-direction: column; gap: 6px; }
.msgs .day { align-self: center; font-size: 10.5px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; margin: 4px 0 10px; text-align: center; }
.b { max-width: 78%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; animation: bub .22s ease; }
@keyframes bub { from { transform: translateY(6px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.b.them { align-self: flex-start; background: var(--raise); border-bottom-left-radius: 6px; }
.b.me { align-self: flex-end; background: var(--gold-grad); color: var(--ink-on-gold); border-bottom-right-radius: 6px; }
.b.sys { align-self: center; max-width: 92%; background: none; border: 1px solid rgba(200, 16, 46, .4); color: var(--declined-soft); font-size: 12.5px; text-align: center; border-radius: 12px; letter-spacing: .02em; }
.b.typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.b.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.b.typing i:nth-child(2) { animation-delay: .15s; }
.b.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.sugg { flex: none; display: flex; gap: 8px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.sugg::-webkit-scrollbar { display: none; }
.sugg button { flex: none; }
.composer { flex: none; display: flex; gap: 8px; align-items: center; padding-top: 6px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.composer input { flex: 1; min-width: 0; height: 46px; border-radius: 23px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 16px; font-size: 16px; color: var(--ivory); outline: none; }
.composer input::placeholder { color: rgba(243, 238, 228, .32); }
.composer .send { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--gold-grad); color: var(--ink-on-gold); display: grid; place-items: center; }
.composer .send svg { width: 18px; height: 18px; }
.closed { flex: none; text-align: center; font-size: 13px; color: var(--muted); padding-top: 12px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }

@media (max-height: 700px) {
  :root { --top-h: 48px; --tab-h: 56px; }
  .card .nm { font-size: 27px; bottom: 36px; }
  .card .info { padding: 9px 14px 11px; gap: 7px; }
  .card .bio { -webkit-line-clamp: 1; }
  .actions { margin-top: 8px; }
  .btn { height: 46px; }
  .actions .x { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* monogram for a member without a photo */
.mono { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #2C251C, #12100D 75%); container-type: size; }
.mono span { font-family: var(--display); font-size: 40px; font-size: 34cqmin; color: var(--gold); letter-spacing: .04em; line-height: 1; }
