/* Kings Court styles.css | assembled from parts/ in contract order: core, home, courts, profile, play, social, admin */

/* Kings Court rebuild core styles. Black and gold flagship theme,
   plus the Queens Court light feminine theme under body.qc.
   Adapted from the original theme (theme-original.css). */

:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-2: #0a0a0b;
  --surface: #121214;
  --surface-2: #1a1a1e;
  --surface-3: #232329;
  --text: #faf7ee;
  --text-2: #efe9d8;
  --dim: #a8a195;
  --dim-2: #7d786d;
  --border: #26262c;
  --border-strong: #35353e;
  --border-gold: rgba(212,175,55,.38);
  --accent: #d4af37;
  --accent-2: #f5d76e;
  --accent-3: #fff3c4;
  --gold-deep: #8a6d1f;
  --gold-foil: linear-gradient(105deg, #8a6d1f 0%, #d4af37 28%, #fff3c4 50%, #d4af37 72%, #8a6d1f 100%);
  --danger: #ff4d4f;
  --sport: var(--accent); --sport-2: var(--accent-2); --sport-deep: var(--gold-deep);
  --chrome: #050506; --chrome-2: #0c0c0e;
  --radius: 18px; --radius-lg: 24px; --radius-sm: 10px;
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -16px rgba(0,0,0,.85);
  --shadow-sheet: 0 -20px 60px rgba(0,0,0,.75);
  --shadow-nav: 0 18px 40px rgba(0,0,0,.65), 0 0 0 1px rgba(212,175,55,.14);
  --shadow-gold: 0 8px 28px rgba(212,175,55,.28);
}

html, body { background: var(--bg); color: var(--text); font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; overscroll-behavior-x: none; }
input, textarea, select { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; }
::placeholder { color: #8a867c; }
::selection { background: var(--accent); color: #0a0800; }
button { -webkit-tap-highlight-color: transparent; transition: transform .14s cubic-bezier(.2,.8,.2,1), filter .16s ease, opacity .16s ease; }
button:active { transform: scale(.97); }
img { max-width: 100%; }
.hidden { display: none !important; }
.font-display { font-family: "Oswald", "Arial Narrow", system-ui, sans-serif; letter-spacing: .03em; }
.tnum { font-variant-numeric: tabular-nums; }
.kc-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-2); }
.kc-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--border-gold), transparent); }
.kc-dim { color: var(--dim); }
.kc-small { font-size: 12px; line-height: 1.45; }

/* sport accent tints */
body[data-sport="basketball"] { --sport: #ff7a1a; --sport-2: #ffb37a; --sport-deep: #7a3405; }
body[data-sport="pickleball"] { --sport: #b8e62e; --sport-2: #d8f77e; --sport-deep: #4a6108; }
body[data-sport="tennis"] { --sport: #3fae5a; --sport-2: #7ed491; --sport-deep: #14532d; }
body[data-sport="golf"] { --sport: #14b8a6; --sport-2: #5eead4; --sport-deep: #134e4a; }
body[data-sport="billiards"] { --sport: #5b9dff; --sport-2: #a8c8ff; --sport-deep: #1e3a5f; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; font-family: "Oswald", "Arial Narrow", system-ui, sans-serif; font-size: .98rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; box-sizing: border-box; }
.btn-sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(180deg,#ffe98a 0%,#f5d76e 18%,var(--accent) 55%,#b8921f 100%); color: #100c00; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 0 rgba(80,58,0,.55), 0 10px 26px rgba(212,175,55,.28); }
.btn-secondary { background: linear-gradient(180deg,#232329,#17171b); border-color: var(--border-strong); color: var(--text); }
.btn-outline-gold { background: rgba(212,175,55,.06); border-color: var(--border-gold); color: var(--accent-2); }
.btn:disabled, button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.gold-cta { position: relative; overflow: hidden; background: linear-gradient(180deg, #ffe98a 0%, #f5d76e 18%, var(--accent) 55%, #b8921f 100%); color: #100c00; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 0 rgba(80,58,0,.55), 0 10px 26px rgba(212,175,55,.30); }
.gold-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 62%); transform: translateX(-120%); animation: kc-shine 3.8s ease-in-out infinite; pointer-events: none; }
@keyframes kc-shine { 0%,55% { transform: translateX(-120%); } 85%,100% { transform: translateX(120%); } }
.sport-cta { background: linear-gradient(180deg, var(--sport-2) 0%, var(--sport) 55%, var(--sport-deep) 135%); color: #0b0b0b; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: linear-gradient(180deg,#1e1e23,#121214); color: var(--text); position: relative; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); cursor: pointer; }
.icon-btn-gold { border-color: var(--border-gold); color: var(--accent-2); background: radial-gradient(circle at 50% 0%, rgba(212,175,55,.28), rgba(212,175,55,.08) 62%), #17150a; }
.gear-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--border-strong); color: var(--text); background: linear-gradient(180deg,#232329,#121214); cursor: pointer; }

/* cards + pills */
.card { background: linear-gradient(180deg, #17171b 0%, #111113 100%); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card-gold { border-color: var(--border-gold); background: linear-gradient(180deg, rgba(212,175,55,.09), rgba(212,175,55,.02) 42%, #121214); }
.pill { display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; padding: .32rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: #17171b; font-size: .8rem; font-weight: 700; color: var(--dim); }

/* ---------------- shell ---------------- */
#kc-app { min-height: 100dvh; }
#kc-header { position: sticky; top: 0; z-index: 30; background: rgba(5,5,6,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(212,175,55,.18); box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.kc-head-inner { max-width: 560px; margin: 0 auto; padding: 10px 16px 10px; }
.kc-head-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.kc-brand-logo { height: 38px; width: auto; max-width: 120px; object-fit: contain; flex-shrink: 0; display: block; }
.kc-crowns-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 14px; border: 1px solid rgba(255,243,196,.6); color: #100c00; background: linear-gradient(180deg,#ffe98a 0%,#f5d76e 18%,var(--accent) 55%,#b8921f 100%); font-weight: 800; font-size: 15px; cursor: pointer; }
.kc-head-actions { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.kc-head-actions .icon-btn { width: 34px; height: 34px; }
.kc-avatar-btn { width: 36px; height: 36px; border-radius: 999px; border: 2px solid var(--border-gold); overflow: hidden; background: #000; cursor: pointer; flex-shrink: 0; padding: 0; }
.kc-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-avatar-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg,#f5d76e,#d4af37 55%,#8a6d1f); color: #100c00; font-weight: 800; font-size: 13px; font-family: "Oswald", sans-serif; }
.kc-preview-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; border-radius: 12px; border: 1px solid rgba(214,51,132,.4); background: linear-gradient(90deg,#ffe3ef,#f6d9fb 50%,#e7dbff); color: #5b1030; padding: 8px 12px; }
.kc-preview-bar p { flex: 1; font-size: 11px; line-height: 1.4; margin: 0; }
.kc-preview-bar button { border: 0; border-radius: 999px; background: #b0255f; color: #fff; font-weight: 700; font-size: 11px; text-transform: uppercase; padding: 6px 12px; cursor: pointer; }

#kc-sportbar { position: relative; z-index: 5; background: rgba(5,5,6,.94); border-bottom: 1px solid var(--border); }
.kc-sportbar-inner { max-width: 560px; margin: 0 auto; display: flex; gap: 6px; padding: 10px 16px; }
.kc-sport-pill { flex: 1; min-width: 0; border-radius: 999px; padding: 10px 4px; font-family: "Oswald", "Arial Narrow", system-ui, sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; border: 1px solid transparent; color: var(--dim); background: transparent; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-sport-pill.on { color: #0b0b0b; }

#kc-main { max-width: 560px; margin: 0 auto; padding: 16px 16px 200px; position: relative; z-index: 1; }

#kc-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 12px max(12px, env(safe-area-inset-bottom)); pointer-events: none; }
.kc-dock-inner { max-width: 560px; margin: 0 auto; pointer-events: auto; }
.kc-dock-nav { display: flex; gap: 4px; border-radius: 28px; border: 1px solid rgba(212,175,55,.20); background: rgba(5,5,6,.95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 6px; box-shadow: var(--shadow-nav); }
.kc-dock-btn { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 22px; padding: 8px 2px; background: transparent; border: 0; color: var(--dim); font-size: 11px; font-weight: 700; cursor: pointer; }
.kc-dock-btn.on { background: linear-gradient(180deg, rgba(212,175,55,.22), rgba(212,175,55,.08)); color: var(--accent-2); }
.kc-dock-ic { display: flex; align-items: center; justify-content: center; width: 40px; height: 30px; border-radius: 999px; }
.kc-dock-btn.on .kc-dock-ic { background: var(--sport); color: #0b0b0b; }

#kc-signup-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); pointer-events: none; }
#kc-signup-cta .kc-cta-bar { pointer-events: auto; flex-direction: column; gap: 2px; min-height: 56px; font-size: 1.1rem; }
.kc-cta-sub { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: none; opacity: .85; }

/* ---------------- bottom sheet ---------------- */
#kc-sheet .kc-sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72); }
#kc-sheet .kc-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 560px; margin: 0 auto; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--border-gold); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-sheet); padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); }

/* ---------------- toast ---------------- */
#kc-toast { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%) translateY(12px); z-index: 80; max-width: min(92vw, 520px); background: #1a1a1e; color: var(--text); border: 1px solid var(--border-gold); border-radius: 14px; padding: 12px 18px; font-size: 14px; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; box-shadow: 0 12px 30px rgba(0,0,0,.6); }
#kc-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- auth ---------------- */
#kc-auth { position: fixed; inset: 0; z-index: 60; }
#kc-auth .kc-auth-wrap { position: absolute; inset: 0; background: rgba(0,0,0,.8); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 16px; }
.kc-auth-card { position: relative; width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border-gold); border-radius: 24px; padding: 24px 22px; margin-top: 4vh; box-shadow: var(--shadow-sheet); }
.kc-auth-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; }
.kc-auth-logo { display: block; height: 44px; width: auto; margin: 0 auto 8px; }
.kc-auth-tabs { display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin: 14px 0 18px; }
.kc-auth-tabs button { flex: 1; border: 0; border-radius: 999px; padding: 10px; background: transparent; color: var(--dim); font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; cursor: pointer; }
.kc-auth-tabs button.on { background: var(--accent); color: #100c00; }
.kc-form { display: flex; flex-direction: column; gap: 12px; }
.kc-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.kc-field legend { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.kc-radio-row { display: flex; gap: 10px; }
.kc-radio { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px; font-weight: 700; cursor: pointer; }
.kc-radio input { width: auto; margin: 0; accent-color: var(--accent); }
.kc-radio:has(input:checked) { border-color: var(--accent); background: rgba(212,175,55,.08); }
.kc-form-error { color: #ff9a9b; font-size: 13px; font-weight: 600; min-height: 0; margin: 0; }
.kc-form-error:not(:empty) { min-height: 18px; }

/* ---------------- tutorial ---------------- */
#kc-tutorial .kc-tut-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.78); display: flex; align-items: flex-end; justify-content: center; }
.kc-tut-card { position: relative; width: 100%; max-width: 560px; max-height: 94dvh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--border-gold); border-radius: 24px 24px 0 0; padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); }
.kc-tut-head { padding-top: 4px; }
.kc-tut-logo { display: block; height: 44px; width: auto; margin: 0 auto; }
.kc-tut-headrow { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; }
.kc-tut-title { font-family: "Oswald", sans-serif; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--accent-2); }
.kc-tut-resume { display: inline-block; margin-top: 8px; border-radius: 999px; background: rgba(212,175,55,.15); border: 1px solid var(--border-gold); color: var(--accent-2); font-size: 11px; font-weight: 700; padding: 4px 10px; }
.kc-tut-progress { display: flex; gap: 4px; margin-top: 12px; }
.kc-tut-progress span { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-3); }
.kc-tut-progress span.on { background: var(--accent); }
.kc-tut-step-wrap { margin-top: 16px; }
.kc-tut-visual { position: relative; height: 176px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.kc-tut-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kc-tut-badge { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(0,0,0,.6); color: var(--accent-2); border: 1px solid var(--border-gold); }
.kc-tut-caption { position: absolute; left: 12px; bottom: 12px; border-radius: 999px; background: var(--accent); color: #100c00; font-family: "Oswald", sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: 6px 12px; }
.kc-tut-simple { display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 16px; }
.kc-tut-sports { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kc-tut-sport { height: 56px; border-radius: 12px; background-size: cover; background-position: center; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font-family: "Oswald", sans-serif; text-transform: uppercase; font-weight: 700; letter-spacing: .14em; font-size: 14px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.9); }
.kc-tut-gold { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 10px; font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; }
.kc-tut-tiles { display: flex; justify-content: center; }
.kc-tut-rows { display: flex; flex-direction: column; gap: 8px; }
.kc-tut-row { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.3); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.kc-tut-loadmore { text-align: center; border: 1px solid var(--accent); border-radius: 10px; padding: 8px; font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 13px; color: var(--accent-2); }
.kc-tut-dot { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; }
.kc-tut-dot .kc-tut-caption { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.kc-tut-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kc-tut-step { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kc-tut-step > span:first-child { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 18px; }
.kc-tut-step strong { font-family: "Oswald", sans-serif; font-size: 11px; text-transform: uppercase; font-weight: 600; line-height: 1.2; }
.kc-tut-step em { font-style: normal; font-size: 10px; color: var(--dim); line-height: 1.2; }
.kc-tut-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; justify-items: center; align-items: center; height: 100%; color: var(--accent-2); }
.kc-tut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kc-tut-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 12px 8px; text-align: center; }
.kc-tut-cell strong { font-family: "Oswald", sans-serif; font-size: 12px; text-transform: uppercase; }
.kc-tut-cell em { font-style: normal; font-size: 11px; color: var(--dim); }
.kc-tut-chip { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; color: var(--accent-2); border: 1px solid var(--border-gold); flex-shrink: 0; }
.kc-tut-wager { display: flex; flex-direction: column; gap: 12px; }
.kc-tut-whead { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.kc-tut-whead .tnum { color: var(--accent-2); }
.kc-tut-wtrack { position: relative; height: 8px; border-radius: 999px; background: rgba(0,0,0,.5); margin-top: 6px; }
.kc-tut-wtrack div { height: 100%; border-radius: 999px; background: var(--accent); }
.kc-tut-wpot { text-align: center; font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--accent-2); }
.kc-tut-bar { display: flex; align-items: center; justify-content: center; gap: 10px; }
.kc-tut-dock { display: flex; gap: 10px; border: 1px solid var(--border); border-radius: 18px; padding: 8px 12px; }
.kc-tut-dock span { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--dim); }
.kc-tut-dock em { font-style: normal; font-size: 9px; font-weight: 700; }
.kc-tut-gear { width: 40px; height: 40px; }
.kc-tut-body { padding: 16px 4px 0; }
.kc-tut-h { font-size: 30px; font-weight: 700; text-transform: uppercase; line-height: 1.02; margin: 6px 0 0; }
.kc-tut-line { margin: 8px 0 0; font-size: 15px; font-weight: 500; line-height: 1.4; }
.kc-tut-points { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kc-tut-points li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--dim); line-height: 1.4; }
.kc-tut-points li svg { color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.kc-tut-body .btn { margin-top: 14px; }
.kc-tut-dots { display: flex; gap: 6px; margin-top: 16px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.kc-tut-dots::-webkit-scrollbar { display: none; }
.kc-tut-dots button { height: 10px; border-radius: 999px; border: 0; background: var(--surface-3); width: 10px; flex-shrink: 0; cursor: pointer; padding: 0; }
.kc-tut-dots button.on { width: 28px; background: var(--accent); }
.kc-tut-dots button.done { background: rgba(212,175,55,.5); }
.kc-tut-nav { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.kc-tut-skip { background: transparent; border: 0; color: var(--dim); font-size: 14px; font-weight: 600; padding: 12px 8px; cursor: pointer; }
.kc-tut-spacer { flex: 1; }

@keyframes kc-tut-r { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: translateX(0); } }
.kc-tut-in-r { animation: kc-tut-r .34s cubic-bezier(.2,.8,.2,1) both; }
@keyframes kc-tut-l { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: translateX(0); } }
.kc-tut-in-l { animation: kc-tut-l .34s cubic-bezier(.2,.8,.2,1) both; }
@keyframes kc-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.kc-bob { animation: kc-bob 2.6s ease-in-out infinite; }
@keyframes kc-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.kc-rise { animation: kc-rise .38s cubic-bezier(.2,.8,.2,1) both; }

/* confetti */
.kc-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.kc-particle { position: absolute; top: -16px; color: var(--accent); animation-name: kc-fall; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes kc-fall { 0% { transform: translateY(-4vh) rotate(0deg); opacity: 0; } 8% { opacity: 1; } 100% { transform: translateY(100vh) rotate(360deg); opacity: .9; } }

/* you-are-here pin (device only, never shared) */
.you-pin { position: relative; width: 26px; height: 26px; display: inline-block; }
.you-pin-halo { position: absolute; inset: -8px; border-radius: 999px; background: rgba(30,123,255,.16); border: 1px solid rgba(30,123,255,.22); }
.you-pin-pulse { position: absolute; inset: 0; border-radius: 999px; background: rgba(30,123,255,.38); animation: kc-you-pulse 2.2s cubic-bezier(.2,.6,.35,1) infinite; }
.you-pin-dot { position: absolute; left: 50%; top: 50%; width: 17px; height: 17px; transform: translate(-50%,-50%); border-radius: 999px; background: #1e7bff; border: 3px solid #fff; box-shadow: 0 1px 7px rgba(0,0,0,.6); }
@keyframes kc-you-pulse { 0% { transform: scale(.55); opacity: .8; } 75%,100% { transform: scale(2); opacity: 0; } }

/* sport ghost backdrop */
.sport-ghost { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
.sport-ghost img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .55; filter: grayscale(.18) brightness(.95) contrast(1.07); }
.sport-ghost::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,6,.52) 0%, rgba(5,5,6,.40) 34%, rgba(5,5,6,.50) 62%, rgba(5,5,6,.70) 100%); }

@media (prefers-reduced-motion: reduce) {
  .gold-cta::after, .kc-tut-in-r, .kc-tut-in-l, .kc-bob, .kc-particle, .kc-rise, .you-pin-pulse { animation: none; }
}

/* ==================================================================
   QUEENS COURT light feminine theme. Body gets .qc automatically on
   login, signup, and boot when the user is a woman, or when the
   session-only Preview Queens Court toggle is on. Same layout, same
   features: white and blush surfaces, gold kept royal, pink and
   violet accents. Ported from the original theme-original.css.
   ================================================================== */
body.qc {
  color-scheme: light;
  --bg: #fdf6f9;
  --bg-2: #fbeef4;
  --surface: #ffffff;
  --surface-2: #fdf0f6;
  --surface-3: #f9e2ee;
  --text: #2e1223;
  --text-2: #451c31;
  --dim: #84506a;
  --dim-2: #a37189;
  --border: #e28bb6;
  --border-strong: #c95d94;
  --border-gold: rgba(176, 124, 16, 0.62);
  --accent: #b07c10;
  --accent-2: #8f6408;
  --accent-3: #6f5208;
  --gold-deep: #96690f;
  --gold-foil: linear-gradient(105deg, #a86bb5 0%, #d4af37 30%, #f7cfe2 50%, #d4af37 70%, #8b5fbf 100%);
  --chrome: #fffafd;
  --chrome-2: #fdf0f6;
  --shadow-card: 0 0 0 1px rgba(161, 46, 104, 0.10), inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(201, 93, 148, 0.18), 0 2px 6px rgba(161, 46, 104, 0.10), 0 14px 30px -14px rgba(161, 46, 104, 0.35);
  --shadow-sheet: 0 -2px 0 rgba(201, 93, 148, 0.55), 0 -24px 60px rgba(161, 46, 104, 0.35);
  --shadow-nav: 0 14px 34px rgba(161, 46, 104, 0.32), 0 0 0 1.5px rgba(161, 46, 104, 0.35), inset 0 1px 0 #ffffff;
  --shadow-gold: 0 0 0 1px rgba(176, 124, 16, 0.35), 0 10px 28px rgba(233, 150, 190, 0.55);
}
body.qc .card {
  border: 1.5px solid var(--border-strong);
  background: linear-gradient(180deg, #ffffff 0%, #fffafd 55%, #fdf0f6 100%);
  box-shadow: var(--shadow-card), inset 0 2px 0 rgba(212, 175, 55, 0.55);
}
body.qc .card-gold {
  border: 1.5px solid #b07c10;
  background: linear-gradient(180deg, rgba(249, 217, 118, 0.20), rgba(249, 168, 212, 0.14) 45%, #ffffff 100%);
  box-shadow: 0 0 0 1px rgba(249, 217, 118, 0.65), 0 0 0 3px rgba(201, 93, 148, 0.22), inset 0 1px 0 #ffffff, 0 16px 34px -14px rgba(161, 46, 104, 0.42);
}
body.qc .gold-cta {
  background: linear-gradient(180deg, #ffdcee 0%, #f6b9d6 24%, #eec964 60%, #d9a83f 100%);
  color: #3d1030;
  border: 1px solid rgba(143, 100, 8, 0.65);
}
body.qc .btn-primary { border: 1px solid rgba(143, 100, 8, 0.65); }
body.qc .btn-secondary {
  background: linear-gradient(180deg, #ffffff, #fdeef6);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  box-shadow: inset 0 1px 0 #ffffff, 0 6px 16px -6px rgba(161, 46, 104, 0.35);
}
body.qc .btn-outline-gold { background: rgba(249, 168, 212, 0.14); border: 1.5px solid var(--border-gold); color: var(--accent-2); }
body.qc .icon-btn {
  background: linear-gradient(180deg, #ffffff, #fdeef6);
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 5px 14px rgba(161, 46, 104, 0.30), inset 0 1px 0 #ffffff;
}
body.qc .icon-btn-gold {
  border: 1.5px solid #b07c10;
  background: radial-gradient(circle at 50% 0%, rgba(249, 217, 118, 0.45), rgba(249, 168, 212, 0.18) 62%), #fff7e0;
}
body.qc .gear-btn {
  background: linear-gradient(180deg, #ffffff, #fde9f3);
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 5px 14px rgba(161, 46, 104, 0.30), inset 0 1px 0 #ffffff;
}
body.qc .pill { background: #fdf0f6; border: 1.5px solid var(--border); color: var(--text-2); }
body.qc #kc-header { border-bottom: 2px solid var(--border-strong); box-shadow: 0 10px 28px rgba(161, 46, 104, 0.20), inset 0 -1px 0 rgba(212, 175, 55, 0.55); }
body.qc .kc-dock-nav { border: 1.5px solid var(--border-strong); box-shadow: var(--shadow-nav); }
body.qc input, body.qc textarea, body.qc select { border-color: var(--border-strong); background: #fff; color: var(--text); }
body.qc ::selection { background: #f472b6; color: #2e1223; }
body.qc .kc-eyebrow { color: #b0255f; }
body.qc .kc-rule { height: 2px; background: linear-gradient(90deg, transparent, #d6336c 30%, #d4af37 50%, #d6336c 70%, transparent); }
body.qc .kc-radio:has(input:checked) { border-color: #b0255f; background: rgba(249, 168, 212, .15); }
body.qc .kc-auth-tabs button.on { background: #b0255f; color: #fff; }
body.qc .kc-tut-progress span.on { background: #d6336c; }
body.qc .kc-tut-title { color: #b0255f; }
body.qc .kc-tut-dots button.on { background: #d6336c; }
body.qc .kc-tut-caption { background: #d6336c; color: #fff; }
body.qc .kc-preview-bar { border: 2px solid #b0255f; }
body.qc .sport-ghost::after {
  background:
    linear-gradient(180deg, rgba(253, 246, 249, 0.74) 0%, rgba(253, 240, 246, 0.64) 34%, rgba(253, 240, 246, 0.70) 62%, rgba(251, 238, 244, 0.88) 100%),
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.4), transparent 70%);
}
/* Queens trophy finish: shared trophy artwork gets the Queens rose-gold
   wash on the women's side. Inert on the Kings side. */
body.qc .qc-art { position: relative; isolation: isolate; }
body.qc .qc-art img { filter: saturate(1.14) brightness(1.04); }
body.qc .qc-art::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(155deg, rgba(244, 114, 182, 0.55), rgba(168, 85, 247, 0.28) 52%, rgba(212, 175, 55, 0.38));
  mix-blend-mode: overlay; opacity: 0.55;
}
body.qc .qc-art::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(214, 51, 108, 0.40), inset 0 0 30px rgba(244, 114, 182, 0.30);
}
/* Queens cosmetics helpers (used by shop/profile builders) */
.kc-tag { display: inline-block; vertical-align: middle; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.kc-tag.tag-hero { background: linear-gradient(90deg,#8a6d1f,#d4af37); color: #100c00; }
.kc-tag.tag-queen { background: linear-gradient(90deg,#a855f7,#ec4899); color: #fdf4ff; }
.kc-tag.tag-rosegold { background: linear-gradient(90deg,#e8a87c,#d98a94); color: #3d1408; }
.kc-tag.tag-hercourt { background: linear-gradient(90deg,#f9a8d4,#f472b6); color: #4a0e2e; }
.qc-hero { position: relative; overflow: hidden; background: linear-gradient(115deg,#f9a8d4 0%,#e879a9 22%,#a78bfa 52%,#d4af37 82%,#f6c3a0 100%); }

/* part: home styles */
/* Kings Court home screen styles. All colour goes through theme
   variables so the Queens Court light theme (body .qc from the shell)
   applies cleanly. No hardcoded dark-only surfaces except the hero
   photo overlay, which is a photo treatment in both interfaces. */

.kc-home { padding-bottom: 1rem; }

/* Hero ------------------------------------------------------------- */
.kc-hero {
  position: relative; margin-top: 1rem; overflow: hidden;
  border-radius: 24px; border: 1px solid rgba(212,175,55,.28);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.9);
}
.kc-hero--queens {
  border: 2px solid #d6336c;
  box-shadow: 0 0 0 2px rgba(212,175,55,.75), 0 0 0 5px rgba(214,51,108,.30),
    0 28px 54px -16px rgba(161,46,104,.65);
}
.kc-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kc-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.45) 55%, rgba(0,0,0,.1));
}
.kc-hero-inner { position: relative; display: flex; flex-direction: column; min-height: 198px; padding: 1rem; }
.kc-hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.kc-hero-brand {
  display: inline-flex; align-items: center; gap: .375rem;
  border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.55);
  color: #fff; border-radius: 999px; padding: .375rem .75rem;
  font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.kc-hero-sport {
  background: var(--sport); color: #0b0b0b; border-radius: 999px;
  padding: .375rem .625rem; font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.kc-hero-body { margin-top: auto; padding-top: 1.5rem; }
.kc-eyebrow--sport { color: var(--sport-2); }
.kc-hero-title {
  margin-top: .375rem; font-family: "Oswald", sans-serif;
  font-size: 34px; font-weight: 700; text-transform: uppercase;
  line-height: .95; color: #fff;
}
.kc-hero-welcome { margin-top: .625rem; font-size: 14px; color: rgba(255,255,255,.85); }
.kc-hero-welcome strong { color: #fff; }
.kc-hero-loc { display: block; margin-top: .125rem; font-size: 12px; color: rgba(255,255,255,.65); }
.kc-hero-stats { margin-top: .75rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .375rem; text-align: center; }
.kc-hero-stat {
  border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.55);
  border-radius: 12px; padding: .5rem .25rem; backdrop-filter: blur(2px);
}
.kc-hero-stat-v {
  font-family: "Oswald", sans-serif; font-size: 18px; font-weight: 700;
  line-height: 1; color: var(--sport-2); font-variant-numeric: tabular-nums;
}
.kc-hero-stat-l {
  margin-top: .25rem; font-size: 9px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65);
}

/* Start a challenge CTA -------------------------------------------- */
.kc-cta-big {
  margin-top: 1rem; width: 100%; display: flex; align-items: center; gap: .75rem;
  border: 0; border-radius: 16px; padding: 1rem 1.25rem; text-align: left;
  cursor: pointer; font: inherit;
}
.kc-cta-ic {
  display: flex; width: 44px; height: 44px; flex-shrink: 0;
  align-items: center; justify-content: center; border-radius: 999px;
  background: rgba(0,0,0,.25);
}
.kc-cta-body { flex: 1; min-width: 0; }
.kc-cta-title {
  display: block; font-family: "Oswald", sans-serif; font-size: 22px;
  font-weight: 700; text-transform: uppercase; line-height: 1;
}
.kc-cta-sub { display: block; margin-top: .25rem; font-size: 13px; font-weight: 600; opacity: .8; }
.kc-cta-arrow { font-family: "Oswald", sans-serif; font-size: 24px; font-weight: 700; }

/* Four tiles -------------------------------------------------------- */
.kc-tiles { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.kc-tile {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius, 16px); padding: 1rem .25rem; text-align: center;
  cursor: pointer; font: inherit; color: var(--text);
}
.kc-tile-ic {
  margin: 0 auto; display: flex; width: 44px; height: 44px;
  align-items: center; justify-content: center; border-radius: 999px;
  background: radial-gradient(circle at 50% 0%, rgba(212,175,55,.35), rgba(212,175,55,.10));
  color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--border-gold, rgba(212,175,55,.4));
}
.kc-tile-ic--sport { background: linear-gradient(180deg, var(--sport-2), var(--sport) 55%, var(--sport-deep, var(--sport))); color: #0b0b0b; }
.kc-tile-title {
  display: block; margin-top: .5rem; font-family: "Oswald", sans-serif;
  font-size: 11px; font-weight: 600; text-transform: uppercase; line-height: 1.15;
}
.kc-tile-sub { display: block; margin-top: .125rem; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* Quick Play / Suggest row ------------------------------------------ */
.kc-row2 { margin-top: .5rem; display: flex; gap: .5rem; }
.kc-row2-btn {
  flex: 1; display: flex; align-items: center; gap: .75rem;
  padding: .75rem .875rem; text-align: left; cursor: pointer; font: inherit; color: var(--text);
}
.kc-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius, 16px); }
.kc-card-gold { border-color: var(--border-gold, rgba(212,175,55,.4)); }
.kc-row2-title { display: block; font-family: "Oswald", sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; line-height: 1.2; }
.kc-row2-sub { display: block; font-size: 11px; color: var(--dim); }

/* Sponsor banner ------------------------------------------------------ */
.kc-sponsor {
  position: relative; margin-top: 1rem; display: block; width: 100%;
  overflow: hidden; border-radius: 20px; border: 2px dashed var(--accent);
  background: linear-gradient(180deg, #1a1708, #0f0e06);
  padding: .875rem 1rem; text-align: center; cursor: pointer; font: inherit;
}
body.qc .kc-sponsor { background: linear-gradient(180deg, #fdf3f8, #fbe9f3); }
.kc-sponsor-ic {
  margin: 0 auto; display: flex; width: 32px; height: 32px;
  align-items: center; justify-content: center; border-radius: 999px;
  border: 1px solid var(--border-gold, rgba(212,175,55,.4));
  background: rgba(0,0,0,.4); color: var(--accent-2);
}
body.qc .kc-sponsor-ic { background: rgba(255,255,255,.6); }
.kc-sponsor-kicker {
  display: block; margin-top: .375rem; font-size: 10px; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase; color: var(--dim);
}
.kc-sponsor-title {
  display: block; margin-top: .125rem; font-family: "Oswald", sans-serif;
  font-size: 26px; font-weight: 700; text-transform: uppercase; line-height: 1;
}
.kc-sponsor-sub { display: block; margin-top: .375rem; font-size: 12px; color: var(--dim); }
.ad-flash { animation: kc-ad-flash 1.7s ease-in-out infinite; }
@keyframes kc-ad-flash {
  0%, 100% { border-color: rgba(212,175,55,.65); box-shadow: 0 0 0 0 rgba(212,175,55,0), inset 0 0 24px rgba(212,175,55,.04); }
  50% { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(212,175,55,.28), 0 0 32px 4px rgba(212,175,55,.38), inset 0 0 28px rgba(212,175,55,.10); }
}

/* Sections ------------------------------------------------------------ */
.kc-section-head {
  margin-top: 1.25rem; margin-bottom: .5rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
}
.kc-section-head h3 {
  font-family: "Oswald", sans-serif; font-size: 19px; font-weight: 600;
  text-transform: uppercase; color: var(--text);
}
.kc-link {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--accent-2);
}
.kc-dim { font-size: 14px; color: var(--dim); }
.kc-dim-sm { font-size: 12px; color: var(--dim); }
.kc-list { display: flex; flex-direction: column; gap: .5rem; }

/* Court cards (shared with courts part look) --------------------------- */
.kc-court-card {
  display: flex; width: 100%; align-items: center; gap: .75rem;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius, 16px); padding: .75rem .875rem;
  text-align: left; cursor: pointer; font: inherit; color: var(--text);
}
.kc-court-thumb {
  display: block; width: 56px; height: 56px; flex-shrink: 0; overflow: hidden;
  border-radius: 10px; background: var(--surface-2, var(--surface));
  box-shadow: inset 0 0 0 1px var(--border);
}
.kc-court-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kc-court-body { flex: 1; min-width: 0; }
.kc-court-name {
  display: block; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kc-court-sub { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-court-arrow { font-family: "Oswald", sans-serif; font-size: 20px; color: var(--accent-2); flex-shrink: 0; }

/* Tournament rows ------------------------------------------------------- */
.kc-tournament-row {
  display: flex; width: 100%; align-items: center; gap: .75rem;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius, 16px); padding: .75rem .875rem;
  text-align: left; cursor: pointer; font: inherit; color: var(--text);
  margin-top: .5rem;
}

/* Golf home -------------------------------------------------------------- */
.kc-golf-teeup {
  margin-top: 1rem; border: 1px solid var(--accent); border-radius: var(--radius, 16px);
  background: linear-gradient(135deg, #241c07, var(--surface)); padding: 1rem;
}
body.qc .kc-golf-teeup { background: linear-gradient(135deg, #fdf6ec, var(--surface)); }
.kc-golf-teeup-kicker {
  display: flex; align-items: center; gap: .375rem;
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-2);
}
.kc-payout-grid {
  margin-top: .75rem; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; overflow: hidden; border-radius: 8px;
  border: 1px solid var(--border); background: var(--border); text-align: center;
}
.kc-payout-cell { background: var(--surface); padding: .5rem .25rem; }
.kc-payout-v { font-family: "Oswald", sans-serif; font-size: 14px; font-weight: 600; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.kc-payout-l { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.kc-golf-teeup-cta {
  margin-top: .75rem; width: 100%; border: 0; border-radius: 12px; padding: .75rem;
  font-size: 18px; font-weight: 600; text-transform: uppercase;
  cursor: pointer; font: inherit; font-family: "Oswald", sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .ad-flash { animation: none; }
}

/* part: courts styles */
/* Courts list, Leaflet map pins, court profile, match ceremony sheet,
   celebration overlay, and suggest-a-court styles. Map pin styles are
   ported from the original theme.css pin set. All theme colours go
   through shell variables so the Queens Court light theme applies. */

.kc-page-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .5rem; }
.kc-page-title { font-family: "Oswald", sans-serif; font-size: 26px; font-weight: 600; text-transform: uppercase; color: var(--text); }
.kc-gold-pill {
  display: inline-flex; align-items: center; gap: .25rem; flex-shrink: 0;
  background: var(--accent); color: #100c00; border: 0; border-radius: 999px;
  padding: .375rem .75rem; font-size: 14px; font-weight: 700; cursor: pointer; font: inherit;
}

/* Search + filters ------------------------------------------------- */
.kc-search-wrap { position: relative; margin-top: .75rem; }
.kc-search-wrap svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.kc-search {
  width: 100%; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); border-radius: 8px; padding: .625rem .75rem .625rem 2.25rem;
  font-size: 14px; font: inherit;
}
.kc-filter-row { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.kc-seg { display: flex; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 2px; }
.kc-seg-btn {
  border: 0; background: transparent; border-radius: 999px; padding: .25rem .625rem;
  font-size: 12px; font-weight: 600; color: var(--dim); cursor: pointer; font: inherit;
}
.kc-seg-btn--on { background: var(--sport); color: #0b0b0b; }
.kc-verified-toggle {
  display: inline-flex; align-items: center; gap: .375rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--dim);
  border-radius: 999px; padding: .25rem .75rem; font-size: 12px; font-weight: 600;
  cursor: pointer; font: inherit;
}
.kc-verified-toggle--on { border-color: var(--accent); background: var(--accent); color: #100c00; }
.kc-verified-dot {
  display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent); color: #100c00;
}
.kc-verified-toggle--on .kc-verified-dot { background: rgba(0,0,0,.15); }
.kc-verified-note { margin-top: .5rem; }
.kc-verified-inline { font-weight: 600; color: var(--accent-2); }

/* Map --------------------------------------------------------------- */
.kc-map {
  width: 100%; height: 288px; margin-top: .75rem; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius, 16px);
  background: var(--surface);
}
.kc-map--mini { height: 176px; }
.kc-map--aerial { height: 224px; }
.kc-map--pin { height: 224px; position: relative; }
.kc-map .leaflet-container { background: #0b0f14; }
.kc-map-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; padding: 1rem; text-align: center;
}
.kc-map-fallback-note { font-size: 13px; color: var(--dim); }
.kc-grid-pins { display: flex; flex-wrap: wrap; gap: .375rem; justify-content: center; }
.kc-grid-pin {
  width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: #121214; color: var(--accent-2); font-size: 11px; font-weight: 700;
  font-family: "Oswald", sans-serif; cursor: pointer;
}
body.qc .kc-grid-pin { background: #fdf3f8; }
.kc-grid-pin--mine { background: var(--accent); color: #100c00; }
.kc-grid-pin--king { border-color: var(--accent-2); }
.kc-you-note { display: flex; align-items: center; gap: .375rem; margin-top: .5rem; }
.you-dot-mini {
  display: inline-block; width: 12px; height: 12px; border-radius: 999px;
  background: #2f80ff; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #2f80ff; flex-shrink: 0;
}

/* Leaflet pins (ported from theme.css .pin set) ---------------------- */
.kc-pin-wrap, .kc-you-wrap { background: transparent; border: 0; }
.pin {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 999px 999px 999px 3px; transform: rotate(-45deg);
  background: #121214; border: 1.5px solid var(--accent); color: var(--accent-2);
  font-size: 11px; font-weight: 700; font-family: "Oswald", sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.65), 0 0 0 3px rgba(212,175,55,.12); cursor: pointer;
}
.pin > span { transform: rotate(45deg); }
.pin--mine { background: var(--accent); color: #100c00; }
.pin--on { background: var(--accent-2); border-color: #fff; color: #100c00; width: 34px; height: 34px; font-size: 13px; z-index: 5; }
.pin-face {
  display: flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .02em;
}
.pin-face--mine { background: #100c00; color: var(--accent-2); box-shadow: 0 0 0 1.5px var(--accent); }
.pin-face--rival { background: #e8e8ec; color: #1a1a1e; box-shadow: 0 0 0 1.5px #c9c9d2; }
.you-pin { position: relative; width: 26px; height: 26px; }
.you-pin-halo {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(47,128,255,.25);
}
.you-pin-pulse {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(47,128,255,.35); animation: kc-you-pulse 2.4s ease-out infinite;
}
.you-pin-dot {
  position: absolute; left: 50%; top: 50%; width: 13px; height: 13px;
  transform: translate(-50%, -50%); border-radius: 999px;
  background: #2f80ff; border: 2.5px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.55);
}
@keyframes kc-you-pulse {
  0% { transform: scale(.6); opacity: .8; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Court list rows ----------------------------------------------------- */
.kc-court-row {
  display: flex; width: 100%; align-items: center; gap: .75rem;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius, 16px); padding: .625rem .875rem;
  text-align: left; cursor: pointer; font: inherit; color: var(--text);
}
.kc-row-thumb {
  display: block; width: 48px; height: 48px; flex-shrink: 0; overflow: hidden;
  border-radius: 10px; background: var(--surface-2, var(--surface));
  box-shadow: inset 0 0 0 1px var(--border);
}
.kc-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kc-row-body { flex: 1; min-width: 0; }
.kc-row-name {
  display: block; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kc-row-sub { display: block; font-size: 12px; color: var(--dim); }
.kc-row-hold { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--text); display: inline-flex; gap: .25rem; align-items: center; }
.kc-row-hold--mine { color: var(--accent-2); text-transform: uppercase; font-weight: 700; }
.kc-row-hold--open { color: #34d399; text-transform: uppercase; font-weight: 700; }
body.qc .kc-row-hold--open { color: #059669; }
.kc-verified {
  display: inline-flex; width: 16px; height: 16px; vertical-align: -3px;
  align-items: center; justify-content: center; border-radius: 999px;
  background: var(--accent); color: #100c00;
}
.kc-count { margin-top: .75rem; text-align: center; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.kc-load-more {
  margin-top: .5rem; width: 100%; border: 1px solid var(--border);
  background: var(--surface); color: var(--sport-2); border-radius: var(--radius, 16px);
  padding: .75rem; font-size: 14px; font-weight: 700; cursor: pointer; font: inherit;
}
.kc-empty {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius, 16px); padding: 1rem; text-align: center;
}
.kc-source-note { margin-top: 1rem; text-align: center; font-size: 12px; color: var(--dim); }

/* Court profile --------------------------------------------------------- */
.kc-profile-banner { position: relative; }
.kc-profile-banner img { width: 100%; height: 208px; object-fit: cover; display: block; }
.kc-profile-banner-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 45%, rgba(0,0,0,.3)); }
.kc-back {
  position: absolute; left: 1rem; top: 1rem; z-index: 2;
  background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 999px;
  padding: .375rem .75rem; font-size: 14px; font-weight: 600; cursor: pointer; font: inherit;
}
.kc-banner-tag {
  position: absolute; bottom: .75rem; left: 1rem; max-width: 62%;
  background: rgba(0,0,0,.6); color: rgba(255,255,255,.85); border-radius: 999px;
  padding: .25rem .625rem; font-size: 11px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kc-banner-tag--real { background: var(--accent); color: #100c00; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.kc-banner-sport {
  position: absolute; bottom: .75rem; right: 1rem;
  background: rgba(0,0,0,.6); color: var(--accent-2); border-radius: 999px;
  padding: .25rem .625rem; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.kc-profile-body { padding: 0 1.25rem 2.5rem; }
.kc-profile-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; margin-top: .75rem; }
.kc-profile-name {
  flex: 1; min-width: 0; font-family: "Oswald", sans-serif; font-size: 30px;
  font-weight: 600; text-transform: uppercase; line-height: 1.15; color: var(--text);
}
.kc-verified-badge {
  display: inline-flex; align-items: center; gap: .25rem; margin-top: .375rem;
  background: var(--accent); color: #100c00; border-radius: 999px;
  padding: .25rem .625rem; font-size: 12px; font-weight: 700;
}
.kc-verified-line { margin-top: .5rem; display: flex; gap: .375rem; font-size: 14px; font-weight: 500; color: var(--accent-2); }
.kc-photo-cta { margin-top: .75rem; }
.kc-claim-btn {
  width: 100%; border: 0; border-radius: 8px; padding: .625rem 1rem; margin-top: .75rem;
  font-family: "Oswald", sans-serif; font-size: 16px; font-weight: 600;
  text-transform: uppercase; cursor: pointer; font: inherit;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.kc-claim-btn:disabled { opacity: .4; cursor: not-allowed; }
.kc-reign {
  margin-top: 1rem; border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius, 16px); padding: 1rem;
}
.kc-reign-title { font-family: "Oswald", sans-serif; font-size: 18px; font-weight: 600; text-transform: uppercase; color: var(--text); }
.kc-reign-title--mine { color: var(--accent-2); }
.kc-reign-kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kc-reign-name { font-family: "Oswald", sans-serif; font-size: 20px; font-weight: 600; text-transform: uppercase; color: var(--accent-2); }
.kc-details {
  margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius, 16px);
  background: var(--border); font-size: 14px;
}
.kc-detail-cell { background: var(--surface); padding: .625rem .75rem; }
.kc-detail-cell dt, .kc-detail-row dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.kc-detail-cell dd, .kc-detail-row dd { margin-top: .125rem; color: var(--text); }
.kc-website { margin-top: .75rem; font-size: 14px; }
.kc-website a { color: var(--accent-2); font-weight: 600; }
.kc-section { margin-top: 1.5rem; }
.kc-h3 { font-family: "Oswald", sans-serif; font-size: 18px; font-weight: 600; text-transform: uppercase; color: var(--text); }
.kc-map-links { margin-top: .5rem; display: flex; gap: .5rem; }
.kc-map-link {
  flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: .5rem .75rem;
  text-align: center; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none;
}
.kc-map-link--gold { border-color: var(--accent); color: var(--accent-2); }
.kc-photo-grid { margin-top: .5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.kc-photo { width: 100%; height: 112px; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius, 16px); }
.kc-rating-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius, 16px); padding: 1rem; }
.kc-rating-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.kc-stars { display: flex; gap: .25rem; margin-top: .5rem; }
.kc-star { width: 24px; height: 24px; }
.kc-comments { margin-top: .5rem; display: flex; flex-direction: column; gap: .75rem; list-style: none; padding: 0; }
.kc-comment { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius, 16px); padding: .75rem; }
.kc-comment-author { font-weight: 600; color: var(--text); }
.kc-comment-body { margin-top: .25rem; font-size: 14px; color: var(--text); }

/* Match ceremony sheet ---------------------------------------------------- */
.kc-match-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.kc-match-title { font-family: "Oswald", sans-serif; font-size: 24px; font-weight: 600; text-transform: uppercase; color: var(--text); }
.kc-sheet-close {
  flex-shrink: 0; border: 1px solid var(--border); background: var(--surface);
  color: var(--dim); border-radius: 999px; width: 32px; height: 32px;
  font-size: 14px; cursor: pointer;
}
.kc-match-kind { font-family: "Oswald", sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase; color: var(--accent-2); }
.kc-match-players { list-style: none; padding: 0; margin-top: .75rem; display: flex; flex-direction: column; gap: .375rem; }
.kc-match-player {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 10px; padding: .5rem .75rem;
}
.kc-match-player-name { font-weight: 600; color: var(--text); }
.kc-match-actions { margin-top: 1rem; }
.kc-match-err { margin-top: .5rem; color: var(--danger, #f87171); min-height: 1em; }
.kc-score { margin-top: .5rem; }
.kc-score-title { font-family: "Oswald", sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase; color: var(--text); }
.kc-score-row { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.kc-score-row label { display: flex; align-items: center; gap: .5rem; font-size: 14px; color: var(--dim); }
.kc-score-input {
  width: 84px; border: 1px solid var(--border); background: var(--surface-2, var(--surface));
  color: var(--text); border-radius: 8px; padding: .5rem .625rem; font-size: 16px; font: inherit;
  font-variant-numeric: tabular-nums;
}
.kc-score-dash { font-family: "Oswald", sans-serif; font-size: 20px; color: var(--dim); }
.kc-score-row--pool { gap: .5rem; }
.kc-pool-btn {
  flex: 1; border: 1px solid var(--accent); background: var(--surface); color: var(--accent-2);
  border-radius: 10px; padding: .75rem; font-size: 15px; font-weight: 700; cursor: pointer; font: inherit;
}

/* Celebration overlay ------------------------------------------------------- */
.kc-celeb {
  position: fixed; inset: 0; z-index: 70; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.kc-celeb-particles { position: absolute; inset: 0; pointer-events: none; }
.kc-particle { position: absolute; top: -24px; animation-name: kc-fall; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes kc-fall {
  0% { transform: translate(0, -24px) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translate(var(--sway, 0px), 105vh) rotate(var(--spin, 300deg)); opacity: 0; }
}
.kc-celeb-pop { position: relative; padding: 0 1.5rem; text-align: center; animation: kc-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes kc-pop {
  from { transform: scale(.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.kc-celeb-rays { margin: 0 auto; width: 112px; height: 112px; color: var(--accent-2); opacity: .25; animation: kc-rays 24s linear infinite; }
@keyframes kc-rays { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.kc-celeb-icon { margin: -96px auto 0; width: 96px; height: 96px; color: var(--accent-2); display: block; }
.kc-celeb-title {
  margin-top: 1.25rem; font-family: "Oswald", sans-serif; font-size: 36px;
  font-weight: 700; text-transform: uppercase; line-height: 1.15; color: var(--text);
}
.kc-celeb-sub { margin: .5rem auto 0; max-width: 24rem; font-size: 16px; color: var(--dim); }
.kc-celeb-btn {
  margin-top: 1.75rem; border: 0; border-radius: 12px; padding: .875rem 2rem;
  font-family: "Oswald", sans-serif; font-size: 18px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; cursor: pointer; font: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .kc-particle, .kc-celeb-rays, .you-pin-pulse { animation: none; }
  .kc-celeb-pop { animation: none; }
}

/* Suggest a court ------------------------------------------------------------- */
.kc-field-label {
  display: block; margin: .75rem 0 .25rem; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--dim);
}
.kc-field {
  width: 100%; border: 1px solid var(--border); background: var(--surface-2, var(--surface));
  color: var(--text); border-radius: 8px; padding: .5rem .75rem; font-size: 14px; font: inherit;
}
.kc-suggest-sports { display: flex; flex-wrap: wrap; gap: .375rem; }
.kc-suggest-sport {
  flex: 1 1 auto; border: 1px solid var(--border); background: var(--surface-2, var(--surface));
  color: var(--text); border-radius: 8px; padding: .5rem .5rem; font-size: 13px;
  font-weight: 600; cursor: pointer; font: inherit;
}
.kc-suggest-sport--on { border-color: var(--accent); background: var(--accent); color: #100c00; }
.kc-pin-row { margin-top: .25rem; margin-bottom: .25rem; display: flex; align-items: center; justify-content: space-between; }
.kc-pin-tap-hint {
  position: absolute; left: .5rem; bottom: .5rem; z-index: 500;
  background: rgba(0,0,0,.65); color: #fff; border-radius: 999px;
  padding: .25rem .625rem; font-size: 11px; pointer-events: none;
}
.kc-map--pin { position: relative; }
.kc-dup-warn {
  margin-top: .5rem; border: 1px solid rgba(245,158,11,.4); background: rgba(245,158,11,.1);
  color: #fbbf24; border-radius: 8px; padding: .5rem .75rem; font-size: 14px;
}
body.qc .kc-dup-warn { color: #92400e; }

/* profile.css: profile, avatar cropper, settings, trophy case.
   Kings black/gold by default; Queens light feminine variants under .qc. */

/* ---------- shared ---------- */
.pf-wrap, .st-wrap, .rw-wrap { padding: 0 14px 120px; max-width: 640px; margin: 0 auto; color: var(--text); }
.pf-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin: 14px 0 4px; }
.pf-page-head { margin-bottom: 4px; }
.pf-page-sub { font-size: 13px; color: var(--dim); margin: 0 0 8px; }
.pf-section-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); margin: 20px 0 8px; }
.pf-dim { font-size: 14px; color: var(--dim); }
.pf-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 4px; }
.pf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; font-family: var(--font-display); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; border: 1px solid transparent; cursor: pointer; }
.pf-btn:disabled { opacity: .4; cursor: default; }
.pf-btn-gold { background: linear-gradient(180deg, #ffe98a 0%, #f5d76e 18%, var(--accent) 55%, #b8921f 100%); color: #100c00; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 0 rgba(80,58,0,.55), 0 10px 26px rgba(212,175,55,.30); }
.pf-btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.pf-btn-danger { background: rgba(255,77,79,.12); border-color: rgba(255,77,79,.5); color: #ffb1b2; }
.pf-btn-block { width: 100%; margin-top: 10px; }
.pf-link { background: none; border: none; color: var(--accent-2); font-size: 13px; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 4px; cursor: pointer; padding: 6px 2px; }
.pf-link-danger { color: var(--danger); }

.pf-progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.pf-progress-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--accent), var(--accent-2)); }
.qc .pf-progress-fill { background: linear-gradient(90deg, #f9a8d4, #ec4899, #a855f7); }

.pf-verified { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: var(--accent); color: #000; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px 3px 3px; margin-left: 8px; vertical-align: middle; }
.pf-verified svg { width: 14px; height: 14px; background: rgba(0,0,0,.15); border-radius: 999px; padding: 1px; }

/* ---------- avatar ---------- */
.pf-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: linear-gradient(160deg, #3a3a42, #17171b); border: 2px solid var(--accent); color: var(--accent-2); font-weight: 800; overflow: hidden; flex-shrink: 0; }
.pf-avatar { width: 56px; height: 56px; font-size: 20px; }
.pf-avatar.pf-avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.pf-avatar.pf-avatar-photo { padding: 0; }
.pf-avatar.pf-avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- profile ---------- */
.pf-banner { display: block; width: 100%; height: 96px; object-fit: cover; border-radius: var(--radius); margin-top: 12px; }
.pf-banner-blank { background: linear-gradient(115deg, #1a1408, #2b2008 45%, #1a1408); border: 1px solid var(--border-gold); }
.qc .pf-banner-blank { background: linear-gradient(115deg, #f9a8d4, #e879a9 40%, #a78bfa); border: 1px solid rgba(214,51,108,.45); }
.pf-hero { margin-top: 8px; }
.pf-hero-row { display: flex; align-items: flex-start; gap: 14px; margin-top: 16px; }
.pf-hero-meta { min-width: 0; flex: 1; padding-top: 2px; }
.pf-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-transform: uppercase; line-height: 1.1; margin: 0; word-break: break-word; }
.pf-sub { font-size: 13px; color: var(--dim); margin: 6px 0 0; }
.pf-bio { font-size: 14px; line-height: 1.45; margin: 8px 0 0; }
.pf-gear { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: linear-gradient(180deg, #232329, #121214); color: var(--text); cursor: pointer; flex-shrink: 0; }
.pf-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 14px; text-align: center; }
.pf-stat { background: var(--surface); padding: 12px 4px; }
.pf-stat-val { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.pf-stat-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin-top: 3px; }

.pf-ps { display: grid; gap: 6px; }
.pf-ps-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.pf-ps-sport { font-family: var(--font-display); font-size: 13px; font-weight: 600; text-transform: uppercase; width: 64px; flex-shrink: 0; }
.pf-ps-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pf-ps-fill { display: block; height: 100%; background: var(--sport, var(--accent)); border-radius: 999px; }
.pf-ps-score { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }

.pf-record-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-record-chip { border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.pf-reign { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-gold); background: var(--surface); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.pf-reign-crown { color: var(--accent-2); flex-shrink: 0; }
.pf-reign-body { min-width: 0; flex: 1; }
.pf-reign-name { display: block; font-weight: 700; font-size: 14px; }
.pf-reign-sub { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.pf-reign-div { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-2); flex-shrink: 0; }

.pf-teaser { border: 1px solid var(--border-gold); background: var(--surface); border-radius: var(--radius); padding: 14px; }
.pf-teaser-top { display: flex; align-items: center; gap: 12px; }
.pf-teaser-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; text-transform: uppercase; margin: 0; }
.pf-teaser-sub { font-size: 12px; color: var(--dim); margin: 4px 0 0; }
.pf-teaser-next { font-size: 13px; color: var(--dim); margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.pf-teaser-next strong { color: var(--text); }
.pf-teaser-done { color: var(--accent-2); font-weight: 600; }

.pf-guest { border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 24px 18px; text-align: center; margin-top: 24px; }
.pf-guest p { color: var(--dim); margin-bottom: 14px; }

/* ---------- edit profile sheet ---------- */
.pf-edit { padding-bottom: 8px; }
.pf-edit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pf-edit-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; margin: 0; }
.pf-field { display: block; margin-top: 14px; }
.pf-field-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin-bottom: 5px; }
.pf-input { width: 100%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: inherit; box-sizing: border-box; }
textarea.pf-input { resize: vertical; }
.pf-field-hint { display: block; font-size: 12px; color: var(--dim); margin-top: 5px; text-align: right; }
.pf-banner-preview { border-radius: 12px; overflow: hidden; border: 1px dashed var(--border); background: var(--surface-2); }
.pf-banner-preview img { display: block; width: 100%; height: 96px; object-fit: cover; }
.pf-banner-empty { display: flex; align-items: center; justify-content: center; height: 96px; font-size: 12px; color: var(--dim); text-align: center; padding: 0 16px; }
.pf-banner-row { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.pf-banner-upload { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.pf-banner-remove { background: none; border: none; color: var(--danger); font-size: 12px; font-weight: 600; cursor: pointer; }
.pf-edit-error { font-size: 14px; color: var(--danger); margin: 12px 0 0; }
.pf-edit-foot { font-size: 12px; color: var(--dim); text-align: center; margin: 10px 0 0; }

/* ---------- avatar cropper ---------- */
.pf-crop-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.82); }
@media (min-width: 640px) { .pf-crop-overlay { align-items: center; } }
.pf-crop-panel { width: 100%; max-width: 480px; max-height: 94dvh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--border); border-radius: 24px 24px 0 0; padding: 16px 20px 28px; color: var(--text); }
@media (min-width: 640px) { .pf-crop-panel { border-radius: 24px; border: 1px solid var(--border); } }
.pf-crop-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.pf-crop-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; margin: 0; }
.pf-crop-close { border-radius: 999px; border: 1px solid var(--border); background: none; color: var(--dim); font-size: 14px; padding: 6px 14px; cursor: pointer; }
.pf-crop-note { font-size: 14px; color: var(--dim); margin: 4px 0 16px; line-height: 1.45; }
.pf-crop-frame { position: relative; margin: 0 auto; aspect-ratio: 1; width: 100%; max-width: 320px; border-radius: 999px; overflow: hidden; background: #000; border: 2px solid var(--accent); cursor: grab; touch-action: none; user-select: none; outline-offset: 4px; }
.pf-crop-frame:active { cursor: grabbing; }
.pf-crop-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.pf-crop-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--dim); text-align: center; padding: 0 24px; }
.pf-crop-status-error { color: var(--danger); }
.pf-crop-zoomrow { display: flex; align-items: center; gap: 12px; margin: 20px auto 0; width: 100%; max-width: 320px; }
.pf-crop-zbtn { flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pf-crop-zbtn:disabled { opacity: .4; }
.pf-crop-zoom { flex: 1; min-width: 0; }
.pf-crop-minis { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.pf-crop-minis-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.pf-crop-mini { display: inline-block; border-radius: 999px; overflow: hidden; background: #000; border: 1px solid var(--border-gold); flex-shrink: 0; }
.pf-crop-mini canvas { display: block; width: 100%; height: 100%; }
.pf-crop-reset { background: none; border: none; color: var(--accent-2); font-size: 12px; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 4px; cursor: pointer; }
.pf-crop-error { font-size: 14px; color: var(--danger); text-align: center; margin: 14px 0 0; }
.pf-crop-actions { display: flex; gap: 8px; margin-top: 22px; }
.pf-crop-actions .pf-btn { flex: 1; }
.qc .pf-crop-frame { border-color: #d6336c; }
.qc .pf-crop-panel { background: #fff7fb; color: #2e1223; border-color: rgba(214,51,108,.4); }
.qc .pf-crop-note { color: #8a5a78; }
.qc .pf-crop-status { color: #8a5a78; }
.qc .pf-crop-zbtn { background: #fde7f1; border-color: rgba(214,51,108,.3); color: #2e1223; }
.qc .pf-crop-reset { color: #b0255f; }
.qc .pf-crop-close { color: #8a5a78; border-color: rgba(214,51,108,.3); }

/* ---------- settings ---------- */
.st-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 14px; }
.st-profile-row { display: flex; align-items: center; gap: 12px; }
.st-avatar { width: 64px; height: 64px; font-size: 22px; }
.st-profile-meta { flex: 1; min-width: 0; }
.st-profile-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; text-transform: uppercase; margin: 0; }
.st-profile-sub { font-size: 13px; color: var(--dim); margin: 4px 0 0; }
.st-photo-row { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.st-hint { font-size: 12px; color: var(--dim); line-height: 1.5; margin: 8px 0 0; }
.st-text { font-size: 14px; line-height: 1.55; }
.st-text strong { color: var(--text); }
.st-list { list-style: disc; padding-left: 20px; margin: 8px 0 0; font-size: 13px; color: var(--dim); line-height: 1.6; }
.st-row-card { display: flex; align-items: center; gap: 12px; }
.st-row-text { flex: 1; min-width: 0; font-size: 14px; color: var(--dim); margin: 0; }

.st-preview { display: flex; align-items: flex-start; gap: 12px; }
.st-preview-icon { color: var(--accent-2); flex-shrink: 0; padding-top: 2px; }
.st-preview-body { flex: 1; min-width: 0; }
.st-preview-title { font-size: 15px; font-weight: 700; margin: 0; }
.st-preview-text { font-size: 13px; color: var(--dim); line-height: 1.55; margin: 4px 0 0; }
.st-switch { position: relative; width: 48px; height: 28px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; flex-shrink: 0; padding: 0; }
.st-switch-on { background: #d6336c; border-color: #d6336c; }
.st-switch-knob { position: absolute; top: 50%; left: 3px; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: left .18s ease; }
.st-switch-on .st-switch-knob { left: 23px; }

.st-legal { display: grid; gap: 8px; }
.st-legal-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 12px; cursor: pointer; color: var(--text); }
.st-legal-body { flex: 1; min-width: 0; }
.st-legal-name { display: block; font-weight: 700; font-size: 14px; }
.st-legal-blurb { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.st-legal-read { font-size: 13px; font-weight: 700; color: var(--accent-2); flex-shrink: 0; }
.st-version { text-align: center; font-size: 12px; color: var(--dim); margin: 22px 0 0; }
.st-motto { text-align: center; font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: .3em; color: var(--dim); margin: 8px 0 0; }

/* ---------- legal reader ---------- */
.pf-legal { max-height: 80dvh; overflow-y: auto; }
.pf-legal-head { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.pf-legal-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.pf-legal-tab { flex: 1; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); padding: 9px 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.pf-legal-tab-on { border-color: var(--accent); background: var(--accent); color: #000; }
.pf-legal-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-transform: uppercase; margin: 4px 0 2px; }
.pf-legal-updated { font-size: 12px; color: var(--dim); margin: 0 0 10px; }
.pf-legal-intro { font-size: 14px; line-height: 1.6; margin: 0 0 6px; }
.pf-legal-section { margin-top: 18px; }
.pf-legal-h { font-family: var(--font-display); font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-2); margin: 0 0 6px; }
.pf-legal-p { font-size: 14px; line-height: 1.6; margin: 6px 0 0; }
.pf-legal-list { list-style: disc; padding-left: 20px; margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
.pf-legal-foot { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 22px; font-size: 12px; color: var(--dim); }

/* ---------- rewards / trophy case ---------- */
.rw-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; flex-wrap: wrap; }
.rw-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.rw-pill { border: 1px solid var(--border); background: var(--surface-2); color: var(--dim); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.rw-pill-on { background: var(--accent); border-color: transparent; color: #100c00; }
.qc .rw-pill-on { background: #d6336c; color: #fff; }
.rw-summary { font-size: 14px; color: var(--dim); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.rw-shelf-head { border: 1px solid var(--border-gold); background: var(--surface); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.rw-shelf-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; color: var(--accent-2); margin: 0; }
.rw-shelf-arc { font-family: var(--font-display); font-size: 18px; font-weight: 600; text-transform: uppercase; margin: 6px 0 0; line-height: 1.3; }
.rw-shelf-sub { font-size: 13px; color: var(--dim); margin: 0; font-variant-numeric: tabular-nums; }
.rw-shelf-sub strong { color: var(--text); }
.rw-shelf-tap { font-size: 12px; font-weight: 600; color: var(--accent-2); margin: 6px 0 0; }
.rw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rw-card { position: relative; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 12px; text-align: left; color: var(--text); font-family: inherit; }
button.rw-card { cursor: pointer; width: 100%; }
.rw-card.rw-earned { border-color: var(--accent); }
.rw-card.rw-ultimate { border-color: var(--accent-2); background: linear-gradient(160deg, rgba(212,175,55,.20), var(--surface) 55%); box-shadow: 0 0 24px rgba(212,175,55,.25); }
.qc .rw-card.rw-ultimate { border-color: #d6336c; background: linear-gradient(160deg, rgba(244,114,182,.22), rgba(168,85,247,.10), var(--surface) 60%); box-shadow: 0 0 24px rgba(236,72,153,.32); }
.rw-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rw-art { position: relative; display: block; width: 72px; height: 48px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-gold); background: #000; flex-shrink: 0; }
.rw-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rw-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); flex-shrink: 0; }
.rw-slot { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-variant-numeric: tabular-nums; }
.rw-tier { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin: 8px 0 0; }
.rw-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; text-transform: uppercase; line-height: 1.2; margin: 4px 0 0; }
.rw-card.rw-locked .rw-name { color: var(--dim); }
.rw-hint { font-size: 12px; color: var(--dim); line-height: 1.4; margin: 3px 0 0; }
.rw-earned-line { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--accent-2); margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.rw-tap { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 0; }
.rw-progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 8px 0 0; }
.rw-progress-fill { display: block; height: 100%; border-radius: 999px; background: var(--sport, var(--accent)); }
.qc .rw-progress-fill { background: linear-gradient(90deg, #f9a8d4, #ec4899); }
.rw-locked-line { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--dim); margin: 5px 0 0; font-variant-numeric: tabular-nums; }

/* trophy detail sheet */
.rw-detail { border-top: 1px solid var(--border-gold); border-radius: 24px 24px 0 0; padding: 16px 20px 24px; max-height: 90dvh; overflow-y: auto; background: var(--surface); color: var(--text); }
.rw-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rw-detail-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .26em; margin: 0; }
.rw-detail-art { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-gold); background: #000; margin-top: 4px; }
.rw-detail-art img { display: block; }
.rw-detail-tier { text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .3em; margin: 16px 0 0; }
.rw-detail-name { text-align: center; font-family: var(--font-display); font-size: 32px; font-weight: 700; text-transform: uppercase; line-height: 1; margin: 6px 0 0; }
.rw-detail-ach { text-align: center; font-family: var(--font-display); font-size: 19px; font-weight: 600; text-transform: uppercase; color: var(--accent-2); margin: 10px 0 0; line-height: 1.3; }
.rw-detail-hint { text-align: center; font-size: 14px; color: var(--dim); margin: 5px 0 0; }
.rw-detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.rw-detail-stat { border: 1px solid var(--border); background: var(--surface-2); border-radius: 12px; padding: 10px; text-align: center; }
.rw-detail-stat-val { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--accent-2); margin: 0; font-variant-numeric: tabular-nums; }
.rw-detail-stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); margin: 4px 0 0; }
.rw-detail-unlocked { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 14px; font-weight: 600; color: var(--accent-2); margin: 16px 0 0; }
.rw-detail-ultimate { text-align: center; font-size: 12px; color: var(--dim); margin: 6px 0 0; line-height: 1.5; }

/* ---------- Queens light theme ---------- */
.qc { color: #2e1223; }
.qc .pf-title { color: #2e1223; }
.qc .pf-section-title { color: #b0255f; }
.qc .pf-dim { color: #8a5a78; }
.qc .pf-eyebrow { color: #b0255f; }
.qc .pf-sub { color: #8a5a78; }
.qc .pf-bio { color: #2e1223; }
.qc .pf-page-sub { color: #8a5a78; }
.qc .pf-name { color: #2e1223; }
.qc .pf-stats { border-color: rgba(214,51,108,.25); }
.qc .pf-stat { background: #fff7fb; }
.qc .pf-stat-val { color: #d6336c; }
.qc .pf-stat-label { color: #8a5a78; }
.qc .pf-ps-row, .qc .pf-reign, .qc .pf-teaser, .qc .st-card, .qc .st-legal-row { background: #fff; border-color: rgba(214,51,108,.25); }
.qc .pf-ps-bar { background: #fbe3ee; }
.qc .pf-ps-score, .qc .pf-reign-name { color: #2e1223; }
.qc .pf-record-chip { background: #fde7f1; border-color: rgba(214,51,108,.25); color: #2e1223; }
.qc .pf-reign-div { color: #d6336c; }
.qc .pf-teaser-title { color: #2e1223; }
.qc .pf-teaser-sub { color: #8a5a78; }
.qc .pf-teaser-done { color: #b0255f; }
.qc .pf-gear { background: #fff; border-color: rgba(214,51,108,.3); color: #2e1223; }
.qc .pf-link { color: #b0255f; }
.qc .pf-verified { background: #d6336c; color: #fff; }
.qc .pf-btn-ghost { border-color: rgba(214,51,108,.35); color: #2e1223; background: #fff; }
.qc .pf-btn-gold { background: linear-gradient(180deg, #f9a8d4, #ec4899 55%, #d6336c); color: #fff; box-shadow: 0 8px 22px rgba(214,51,108,.3); }
.qc .pf-input { background: #fff; border-color: rgba(214,51,108,.3); color: #2e1223; }
.qc .pf-field-label { color: #8a5a78; }
.qc .pf-edit-title { color: #2e1223; }
.qc .pf-banner-preview { background: #fde7f1; border-color: rgba(214,51,108,.3); }
.qc .pf-banner-empty { color: #8a5a78; }
.qc .pf-field-hint, .qc .pf-edit-foot { color: #8a5a78; }
.qc .pf-avatar { background: linear-gradient(160deg, #f9a8d4, #e879a9); border-color: #d6336c; color: #fff; }
.qc .st-profile-name { color: #2e1223; }
.qc .st-profile-sub { color: #8a5a78; }
.qc .st-hint { color: #8a5a78; }
.qc .st-text { color: #2e1223; }
.qc .st-text strong { color: #2e1223; }
.qc .st-list { color: #8a5a78; }
.qc .st-row-text { color: #8a5a78; }
.qc .st-preview-title { color: #2e1223; }
.qc .st-preview-text { color: #8a5a78; }
.qc .st-preview-icon { color: #d6336c; }
.qc .st-legal-name { color: #2e1223; }
.qc .st-legal-blurb { color: #8a5a78; }
.qc .st-legal-read { color: #b0255f; }
.qc .st-version, .qc .st-motto { color: #8a5a78; }
.qc .pf-legal-title { color: #2e1223; }
.qc .pf-legal-updated { color: #8a5a78; }
.qc .pf-legal-intro, .qc .pf-legal-p { color: #2e1223; }
.qc .pf-legal-list { color: #2e1223; }
.qc .pf-legal-h { color: #b0255f; }
.qc .pf-legal-foot { color: #8a5a78; border-color: rgba(214,51,108,.25); }
.qc .pf-legal-tab { background: #fde7f1; border-color: rgba(214,51,108,.3); color: #2e1223; }
.qc .pf-legal-tab-on { background: #d6336c; color: #fff; border-color: #d6336c; }
.qc .rw-summary { color: #8a5a78; }
.qc .rw-shelf-head { background: #fff; border-color: rgba(214,51,108,.3); }
.qc .rw-shelf-label { color: #b0255f; }
.qc .rw-shelf-arc { color: #2e1223; }
.qc .rw-shelf-sub { color: #8a5a78; }
.qc .rw-shelf-sub strong { color: #2e1223; }
.qc .rw-shelf-tap { color: #b0255f; }
.qc .rw-pill { background: #fde7f1; border-color: rgba(214,51,108,.3); color: #8a5a78; }
.qc .rw-card { background: #fff; border-color: rgba(214,51,108,.2); color: #2e1223; }
.qc .rw-card.rw-earned { border-color: #d6336c; }
.qc .rw-card.rw-locked .rw-name { color: #b08ba0; }
.qc .rw-hint { color: #8a5a78; }
.qc .rw-slot { color: #b08ba0; }
.qc .rw-detail { background: #fff7fb; color: #2e1223; }
.qc .rw-detail-ach { color: #b0255f; }
.qc .rw-detail-hint { color: #8a5a78; }
.qc .rw-detail-stat { background: #fde7f1; border-color: rgba(214,51,108,.25); }
.qc .rw-detail-stat-val { color: #b0255f; }
.qc .rw-detail-unlocked { color: #b0255f; }
.qc .rw-detail-ultimate { color: #8a5a78; }
.qc .pf-legal { background: #fff7fb; }
.qc .pf-crop-frame { border-color: #d6336c; }
.qc .pf-edit-error { color: #d6336c; }
.qc .pf-crop-error { color: #d6336c; }
.qc .pf-banner-remove { color: #d6336c; }
.qc .pf-link-danger { color: #d6336c; }

/* part: play.css: shop, challenges, ranks styles with queens variants */

/* ---------------- shared ---------------- */
.gold-cta {
  background: var(--accent, #d4af37);
  color: #111;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
}
.gold-cta:disabled { opacity: .45; cursor: default; }

/* ---------------- shop ---------------- */
.shop-hero { margin-top: 16px; border-radius: var(--radius, 14px); padding: 16px; }
.kings-hero { border: 1px solid var(--border, #2a2a2a); background: linear-gradient(140deg, #1c1607, var(--surface, #141414)); }
.shop-title { font-size: 30px; font-weight: 700; text-transform: uppercase; line-height: 1; margin: 0; }
.shop-sub { margin: 8px 0 0; font-size: 14px; color: var(--dim, #999); }
.shop-balance { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 12px; border-radius: 999px; background: rgba(212,175,55,.14); border: 1px solid rgba(212,175,55,.5); font-weight: 700; }
.qc-hero.shop-hero {
  background: linear-gradient(140deg, #f9a8d4, #f472b6 60%, #e879a9);
  color: #fff; border: none; box-shadow: var(--shadow-gold, 0 8px 24px rgba(212,175,55,.25));
}
.qc-hero.shop-hero .shop-sub { color: rgba(255,255,255,.92); }
.qc-hero.shop-hero .shop-balance { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.6); color: #fff; }
.shop-loading, .shop-empty { color: var(--dim, #999); font-size: 14px; padding: 16px 4px; }
.shop-section-title { font-size: 20px; font-weight: 700; margin: 24px 0 4px; }
.shop-note { font-size: 13px; color: var(--dim, #999); margin: 0 0 12px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shop-item { border: 1px solid var(--border, #2a2a2a); border-radius: var(--radius, 14px); background: var(--surface, #141414); overflow: hidden; }
.shop-item-tile { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 96px; border: none; cursor: pointer; color: #fff; }
.shop-item-example { position: absolute; right: 6px; bottom: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: rgba(0,0,0,.6); color: var(--accent-2, #e9d189); padding: 3px 8px; border-radius: 999px; }
.shop-item-body { padding: 12px; }
.shop-item-name { font-weight: 700; text-transform: uppercase; font-size: 15px; margin: 0; line-height: 1.2; }
.shop-item-desc { font-size: 12px; color: var(--dim, #999); margin: 6px 0 0; min-height: 30px; }
.shop-item-stock { font-size: 12px; font-weight: 600; color: var(--accent-2, #e9d189); margin: 6px 0 0; }
.shop-item-price { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent-2, #e9d189); margin: 8px 0 0; }
.shop-buy, .shop-equip { width: 100%; margin-top: 10px; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; border: none; }
.shop-buy { background: var(--accent, #d4af37); color: #111; }
.shop-buy:disabled { opacity: .45; }
.shop-equip { background: var(--surface-2, #1d1d1d); color: var(--accent-2, #e9d189); border: 1px solid var(--border, #2a2a2a); }
.shop-equip.is-on { background: rgba(212,175,55,.15); border-color: var(--accent, #d4af37); }
.shop-owned-note { text-align: center; margin-top: 10px; padding: 10px; font-weight: 700; font-size: 14px; color: var(--accent-2, #e9d189); background: var(--surface-2, #1d1d1d); border-radius: 10px; }
.shop-packs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shop-pack { border: 1px solid rgba(212,175,55,.4); border-radius: var(--radius, 14px); background: var(--surface, #141414); overflow: hidden; position: relative; }
.shop-pack.pack-big { grid-column: 1 / -1; }
.shop-pack.qc { border-color: rgba(249,168,212,.6); }
.shop-pack-art img { width: 100%; height: 160px; object-fit: cover; display: block; }
.shop-pack.pack-big .shop-pack-art img { height: 224px; }
.shop-pack-body { padding: 16px; }
.shop-pack-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2, #e9d189); border: 1px solid var(--accent, #d4af37); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.shop-pack-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2, #e9d189); margin: 0; }
.shop-pack-crowns { font-size: 28px; font-weight: 700; margin: 6px 0 0; line-height: 1; }
.shop-pack-btn { width: 100%; margin-top: 16px; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 16px; text-transform: uppercase; background: var(--surface-2, #1d1d1d); color: var(--dim, #999); border: 1px solid var(--border, #2a2a2a); cursor: not-allowed; }
.shop-pack-btn:disabled { opacity: 1; }
.shop-sheet-art { height: 176px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius, 14px); color: #fff; margin: 16px 20px 0; }
.shop-sheet-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--accent-2, #e9d189); margin: 16px 20px 0; }
.shop-sheet-title { font-size: 24px; font-weight: 700; text-transform: uppercase; margin: 4px 20px 0; }
.shop-sheet-desc { font-size: 14px; color: var(--text, #eee); margin: 8px 20px 0; }
.shop-sheet-kicker2 { font-size: 13px; font-weight: 700; margin: 16px 20px 0; }
.shop-sheet-example { font-size: 14px; color: var(--dim, #999); line-height: 1.5; margin: 4px 20px 0; }
.shop-sheet-note { font-size: 12px; color: var(--dim, #999); text-align: center; margin: 8px 20px 0; }
.shop-sheet-price { font-size: 16px; font-weight: 700; color: var(--accent-2, #e9d189); margin: 16px 20px 0; display: flex; align-items: center; gap: 6px; }
.shop-sheet-btn { width: calc(100% - 40px); margin: 16px 20px 0; font-size: 16px; text-transform: uppercase; }

/* ---------------- challenges ---------------- */
.ch-wrap { padding-bottom: 24px; }
.ch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 16px; }
.ch-title { font-size: 28px; font-weight: 700; margin: 0; }
.ch-sub { font-size: 14px; color: var(--dim, #999); margin: 4px 0 0; }
.ch-new-btn { flex-shrink: 0; font-size: 14px; text-transform: uppercase; }
.ch-section { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.ch-loading, .ch-empty, .ch-waiting { font-size: 14px; color: var(--dim, #999); }
.ch-empty { padding: 8px 0; }
.ch-card { border: 1px solid var(--border, #2a2a2a); border-radius: var(--radius, 14px); background: var(--surface, #141414); padding: 12px; margin-bottom: 8px; }
.ch-card-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-2, #e9d189); margin: 0; }
.ch-card-opp { font-size: 18px; font-weight: 700; margin: 4px 0 0; }
.ch-card-meta { font-size: 12px; color: var(--dim, #999); margin: 2px 0 0; }
.ch-wager { margin-top: 8px; border: 2px solid var(--accent, #d4af37); border-radius: var(--radius, 14px); background: linear-gradient(140deg, #2a2005, var(--surface-2, #1d1d1d)); padding: 10px 12px; }
.ch-wager-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--accent-2, #e9d189); margin: 0; }
.ch-wager-line { font-size: 18px; font-weight: 700; text-transform: uppercase; color: #fff; margin: 4px 0 0; }
.ch-wager-line span { font-size: 13px; font-weight: 400; text-transform: none; color: var(--dim, #999); }
.ch-wager-pot { font-size: 14px; font-weight: 700; color: var(--accent-2, #e9d189); margin: 4px 0 0; }
.ch-wager-note { font-size: 12px; color: var(--dim, #999); margin: 6px 0 0; }
.ch-actions { display: flex; gap: 8px; margin-top: 10px; }
.ch-btn { padding: 10px 14px; font-size: 14px; font-weight: 700; border-radius: 10px; cursor: pointer; }
.ch-btn.ghost { background: transparent; color: var(--dim, #999); border: 1px solid var(--border, #2a2a2a); }
.ch-sheet { padding: 8px 0 24px; }
.ch-sheet-title { font-size: 24px; font-weight: 700; margin: 0; }
.ch-sheet-sub { font-size: 14px; color: var(--dim, #999); margin: 6px 0 0; }
.ch-field-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--dim, #999); margin: 16px 0 8px; }
.ch-opp { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface-2, #1d1d1d); border: 1px solid var(--border, #2a2a2a); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; cursor: pointer; color: var(--text, #eee); font-size: 14px; font-weight: 600; }
.ch-opp.is-on { border-color: var(--accent, #d4af37); background: rgba(212,175,55,.12); }
.ch-opp img, .ch-opp-init { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--accent, #d4af37); color: #111; font-weight: 700; flex-shrink: 0; }
.ch-sports { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-sport-pill { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border, #2a2a2a); background: var(--surface-2, #1d1d1d); color: var(--dim, #999); font-size: 13px; font-weight: 600; cursor: pointer; }
.ch-sport-pill.is-on { background: var(--accent, #d4af37); color: #111; border-color: var(--accent, #d4af37); }
.ch-wager-box { margin-top: 16px; border: 1px solid var(--border, #2a2a2a); border-radius: var(--radius, 14px); background: var(--surface-2, #1d1d1d); padding: 12px; }
.ch-wager-head { display: flex; align-items: center; justify-content: space-between; }
.ch-wager-title { font-size: 16px; font-weight: 700; text-transform: uppercase; margin: 0; }
.ch-wager-title span { font-size: 11px; font-weight: 400; text-transform: none; color: var(--dim, #999); }
.ch-switch { width: 48px; height: 28px; border-radius: 999px; background: var(--border, #2a2a2a); border: none; position: relative; cursor: pointer; }
.ch-switch span { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.ch-switch.is-on { background: var(--accent, #d4af37); }
.ch-switch.is-on span { left: 24px; }
.ch-wager-off-note { font-size: 12px; color: var(--dim, #999); margin: 8px 0 0; }
.ch-wager-row { display: flex; align-items: baseline; justify-content: space-between; margin: 12px 0 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dim, #999); }
.ch-wager-val { font-size: 20px; font-weight: 700; color: var(--accent-2, #e9d189); }
.ch-wager-box input[type=range] { width: 100%; }
.ch-wager-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim, #999); margin: 2px 0 0; }
.ch-pot { text-align: center; font-size: 14px; font-weight: 700; color: var(--accent-2, #e9d189); border: 1px solid var(--accent, #d4af37); border-radius: 8px; padding: 8px; margin: 12px 0 0; background: rgba(0,0,0,.3); }
.ch-wager-note { font-size: 12px; color: var(--dim, #999); margin: 8px 0 0; }
.ch-send { width: 100%; margin-top: 20px; font-size: 17px; text-transform: uppercase; }

/* ---------------- ranks ---------------- */
.rk-title { font-size: 28px; font-weight: 700; margin: 16px 0 0; }
.rk-sub { font-size: 14px; color: var(--dim, #999); margin: 4px 0 0; }
.rk-controls { margin-top: 16px; }
.rk-ctrl { margin-bottom: 12px; }
.rk-ctrl-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--dim, #999); margin: 0 0 6px; }
.rk-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rk-pill { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border, #2a2a2a); background: var(--surface-2, #1d1d1d); color: var(--dim, #999); font-size: 13px; font-weight: 600; cursor: pointer; }
.rk-pill.is-on { background: var(--accent, #d4af37); color: #111; border-color: var(--accent, #d4af37); }
.rk-standing { display: flex; align-items: center; gap: 12px; margin-top: 16px; border: 1px solid var(--accent, #d4af37); border-radius: var(--radius, 14px); background: linear-gradient(140deg, #241c07, var(--surface, #141414)); padding: 12px 16px; }
.rk-standing-title { font-size: 16px; font-weight: 700; text-transform: uppercase; margin: 0; }
.rk-standing-sub { font-size: 12px; color: var(--dim, #999); margin: 4px 0 0; }
.rk-section { font-size: 19px; font-weight: 700; margin: 28px 0 8px; }
.rk-note { font-size: 13px; color: var(--dim, #999); margin: 0 0 12px; }
.rk-loading, .rk-empty { font-size: 14px; color: var(--dim, #999); }
.rk-tcard { display: block; width: 100%; text-align: left; border: 1px solid var(--accent, #d4af37); border-radius: var(--radius, 14px); background: linear-gradient(140deg, #241c07, var(--surface, #141414)); padding: 16px; margin-bottom: 10px; cursor: pointer; color: var(--text, #eee); }
.rk-tcard-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--accent-2, #e9d189); margin: 0; }
.rk-tcard-name { font-size: 20px; font-weight: 700; text-transform: uppercase; margin: 6px 0 0; line-height: 1.2; }
.rk-tcard-meta { font-size: 13px; color: var(--dim, #999); margin: 4px 0 0; }
.rk-payouts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; background: var(--border, #2a2a2a); border: 1px solid var(--border, #2a2a2a); border-radius: 8px; overflow: hidden; margin-top: 12px; text-align: center; }
.rk-payout { background: var(--surface, #141414); padding: 8px 4px; }
.rk-payout p { font-size: 16px; font-weight: 700; color: var(--accent-2, #e9d189); margin: 0; }
.rk-payout span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim, #999); }
.rk-tcard-foot { font-size: 12px; color: var(--dim, #999); margin: 8px 0 0; }
.rk-sheet-title { font-size: 28px; font-weight: 700; text-transform: uppercase; margin: 4px 0 0; line-height: 1.15; }
.rk-sheet-meta { font-size: 13px; color: var(--dim, #999); margin: 4px 0 0; }
.rk-sheet-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--accent-2, #e9d189); margin: 20px 0 8px; }
.rk-regs { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-reg { font-size: 12px; font-weight: 600; background: var(--surface-2, #1d1d1d); border: 1px solid var(--border, #2a2a2a); border-radius: 999px; padding: 5px 10px; }
.rk-reg.more { color: var(--dim, #999); }
.rk-bracket { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.rk-round { min-width: 130px; border: 1px solid var(--border, #2a2a2a); border-radius: 10px; padding: 10px; background: var(--surface-2, #1d1d1d); }
.rk-round-title { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--accent-2, #e9d189); margin: 0 0 8px; }
.rk-match { display: block; width: 100%; margin-bottom: 6px; padding: 8px; border-radius: 8px; background: var(--surface, #141414); border: 1px solid var(--border, #2a2a2a); color: var(--text, #eee); font-size: 12px; font-weight: 600; cursor: pointer; }
.rk-sheet-actions { margin-top: 20px; }
.rk-register { width: 100%; font-size: 17px; text-transform: uppercase; }
.rk-sheet-note { font-size: 14px; font-weight: 600; color: var(--accent-2, #e9d189); text-align: center; margin: 8px 0 0; }

/* queens soft accents for shared controls */
.qc .rk-pill.is-on, .qc .ch-sport-pill.is-on { background: #f472b6; border-color: #f472b6; color: #fff; }
.qc .ch-switch.is-on { background: #f472b6; }
.qc .shop-equip.is-on { border-color: #f9a8d4; color: #ec4899; }

/* part: social-css | discover feed, people, DMs, my courts, advertise.
   Theme variables only, so the Kings (dark) and Queens (light)
   interfaces both render correctly. */

/* ---- shared chrome --------------------------------------------------- */
.kc-pagehead { margin-top: 20px; }
.kc-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-2); }
.kc-pagetitle { margin-top: 4px; font-family: var(--font-display, "Oswald", sans-serif); font-size: 32px; font-weight: 600; text-transform: uppercase; line-height: 1; letter-spacing: .02em; color: var(--text); }
.kc-pagesub { margin-top: 8px; font-size: 15px; line-height: 1.35; color: var(--dim); }
.kc-rule { height: 1px; margin-top: 16px; background: linear-gradient(90deg, transparent, var(--border-gold), transparent); }
.kc-rule-faint { margin-top: 10px; opacity: .7; }
.kc-mt { margin-top: 16px; }
.kc-mt-neg { margin-top: -4px; }
.kc-center { text-align: center; }
.kc-dim { color: var(--dim); font-size: 14px; line-height: 1.45; }
.kc-err { color: var(--danger); font-size: 14px; }
.kc-note { color: var(--dim); font-size: 12.5px; line-height: 1.5; margin-top: 10px; }
.kc-link { color: var(--accent-2); font-weight: 600; text-decoration: underline dotted; text-underline-offset: 4px; }
.kc-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.kc-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--dim); }

.kc-sectitle { margin: 32px 0 0; }
.kc-sectitle h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display, "Oswald", sans-serif); font-size: 19px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.kc-sectitle-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border-gold); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent-2); }
.kc-sectitle h3 .kc-countchip { margin-left: 2px; }

.kc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 18px); box-shadow: var(--shadow-card, none); }
.kc-pad { padding: 16px; }
.kc-divided > * + * { border-top: 1px solid var(--border); }
.kc-gate { margin-top: 16px; padding: 20px; text-align: center; }
.kc-gate p { color: var(--dim); font-size: 14px; margin-bottom: 14px; }
.kc-crownmed { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border-gold); background: color-mix(in srgb, var(--bg) 60%, transparent); color: var(--accent-2); }

/* ---- buttons + forms -------------------------------------------------- */
.kc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent; font-family: var(--font-display, "Oswald", sans-serif); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; background: var(--surface-2); color: var(--text); }
.kc-btn-sm { min-height: 34px; padding: 6px 14px; font-size: 12.5px; border-radius: 9px; }
.kc-btn-block { width: 100%; }
.kc-btn-gold { background: linear-gradient(180deg, var(--accent-2), var(--accent) 60%, var(--gold-deep, var(--accent))); color: #100c00; }
.kc-btn-sport { background: linear-gradient(180deg, var(--sport-2, var(--accent-2)), var(--sport, var(--accent)) 60%, var(--sport-deep, var(--accent))); color: #0b0b0b; }
.kc-btn-outline { background: transparent; border-color: var(--accent); color: var(--accent-2); }
.kc-btn-ghost { background: transparent; border-color: var(--border); color: var(--dim); }
.kc-btn-danger { background: color-mix(in srgb, var(--danger) 16%, transparent); border-color: color-mix(in srgb, var(--danger) 55%, transparent); color: var(--danger); }
.kc-btn:disabled { opacity: .42; cursor: not-allowed; }
.kc-chip-btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.kc-chip-btn-on { border-color: var(--accent); color: var(--accent-2); background: transparent; }

.kc-label { display: block; margin: 14px 0 5px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.kc-input { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); padding: 11px 12px; font-size: 14.5px; font-family: inherit; }
.kc-input::placeholder { color: color-mix(in srgb, var(--dim) 72%, transparent); }
textarea.kc-input { resize: vertical; }

/* ---- sponsor banner --------------------------------------------------- */
.kc-adbanner { position: relative; display: block; width: 100%; margin-top: 16px; padding: 14px 16px; text-align: center; cursor: pointer; border: 2px dashed var(--accent); border-radius: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); color: var(--text); }
.kc-adbanner-static { cursor: default; }
.kc-adbanner-ico { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 auto; border-radius: 999px; border: 1px solid var(--border-gold); background: color-mix(in srgb, var(--bg) 55%, transparent); color: var(--accent-2); }
.kc-adbanner-tag { display: block; margin-top: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .34em; color: var(--dim); }
.kc-adbanner-big { display: block; margin-top: 2px; font-family: var(--font-display, "Oswald", sans-serif); font-size: 26px; font-weight: 700; text-transform: uppercase; line-height: 1; color: var(--accent-2); }
.kc-adbanner-sub { display: block; margin-top: 6px; font-size: 12px; color: var(--dim); }

/* ---- avatar + verified ------------------------------------------------ */
.kc-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 999px; overflow: hidden; border: 1px solid var(--border-gold); background: var(--surface-2); color: var(--accent-2); font-weight: 700; }
.kc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-verified { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; border-radius: 999px; background: var(--accent); color: #100c00; margin-left: 6px; vertical-align: -3px; }

/* ---- court rows -------------------------------------------------------- */
.kc-courtrow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 18px); color: var(--text); }
.kc-courtrow-thumb { display: block; width: 72px; height: 72px; flex-shrink: 0; overflow: hidden; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.kc-courtrow-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-courtrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kc-courtrow-name { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-courtrow-sub { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- tabs -------------------------------------------------------------- */
.kc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 20px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); }
.kc-tab { padding: 8px 4px; border: none; border-radius: 999px; background: transparent; color: var(--dim); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.kc-tab-on { background: var(--accent); color: #100c00; }
.kc-unread { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; }

/* ---- feed -------------------------------------------------------------- */
.kc-composer { margin-top: 16px; padding: 16px; }
.kc-post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 18px); padding: 14px; }
.kc-post-head { display: flex; align-items: center; gap: 10px; }
.kc-post-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kc-post-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-post-time { font-size: 12px; color: var(--dim); }
.kc-post-actions { display: flex; gap: 6px; flex-shrink: 0; }
.kc-post-body { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.kc-post-media { display: block; margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.kc-post-media img { width: 100%; max-height: 340px; object-fit: cover; display: block; }
.kc-post-foot { display: flex; gap: 8px; margin-top: 12px; }
.kc-likebtn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--dim); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.kc-likebtn-on { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.kc-comments { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.kc-comment { display: flex; gap: 8px; align-items: flex-start; }
.kc-comment-main { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.45; }
.kc-comment-name { font-weight: 700; }
.kc-comment-time { display: block; font-size: 11.5px; color: var(--dim); }
.kc-comment-form { display: flex; gap: 8px; align-items: center; }
.kc-comment-form .kc-input { flex: 1; }

/* ---- people ------------------------------------------------------------ */
.kc-person { display: flex; align-items: center; gap: 12px; padding: 11px 14px; width: 100%; box-sizing: border-box; }
.kc-person-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kc-person-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-person-sub { font-size: 12.5px; color: var(--dim); }
.kc-row-btns { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.kc-friendchip { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, #3fae5a 16%, transparent); color: #3fae5a; font-size: 12px; font-weight: 700; }
.kc-countchip { padding: 1px 9px; border-radius: 999px; background: var(--surface-2); color: var(--dim); font-size: 12px; font-weight: 700; }

/* ---- DMs ---------------------------------------------------------------- */
.kc-thread { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; text-align: left; background: transparent; border: none; color: var(--text); cursor: pointer; }
.kc-thread-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kc-thread-name { font-weight: 600; font-size: 15px; }
.kc-thread-sub { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-thread-time { font-size: 11.5px; color: var(--dim); flex-shrink: 0; }
.kc-dmhead { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.kc-dmhead-name { font-family: var(--font-display, "Oswald", sans-serif); font-size: 18px; font-weight: 600; text-transform: uppercase; }
.kc-dmlist { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.kc-dmrow { display: flex; }
.kc-dmrow-me { justify-content: flex-end; }
.kc-dmbubble { max-width: 78%; padding: 9px 13px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14.5px; line-height: 1.45; word-break: break-word; }
.kc-dmrow-me .kc-dmbubble { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); border-color: var(--border-gold); }
.kc-dmtime { display: block; margin-top: 4px; font-size: 10.5px; color: var(--dim); }
.kc-dmform { display: flex; gap: 8px; margin-top: 16px; }
.kc-dmform .kc-input { flex: 1; }

/* ---- my courts ----------------------------------------------------------- */
.kc-attack { margin-top: 14px; padding: 14px; border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.kc-attack-title { font-family: var(--font-display, "Oswald", sans-serif); font-size: 16px; font-weight: 600; text-transform: uppercase; color: var(--danger); }
.kc-attack-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.kc-attack-text { flex: 1; min-width: 0; font-size: 14px; }
.kc-empty { margin-top: 14px; padding: 24px 18px; text-align: center; }
.kc-empty-ico { display: inline-flex; color: var(--accent-2); }
.kc-empty-title { margin-top: 8px; font-weight: 700; font-size: 16px; color: var(--text); }
.kc-empty p { margin: 6px 0 14px; }

/* ---- advertise ------------------------------------------------------------ */
.kc-packs { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 560px) { .kc-packs { grid-template-columns: repeat(3, 1fr); } }
.kc-pack { background: var(--surface); border: 1px solid var(--border-gold); border-radius: var(--radius, 18px); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.kc-pack-name { font-family: var(--font-display, "Oswald", sans-serif); font-size: 16px; font-weight: 600; text-transform: uppercase; color: var(--text); }
.kc-pack-price { font-family: var(--font-display, "Oswald", sans-serif); font-size: 24px; font-weight: 700; color: var(--accent-2); }
.kc-pack .kc-btn { margin-top: auto; }

/* part: admin-css | admin dashboard.
   Theme variables only, so both interfaces render correctly. */

/* ---- dashboard meta + stats --------------------------------------------- */
.ka-metarow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.ka-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius, 18px); background: var(--border); }
@media (min-width: 560px) { .ka-tiles { grid-template-columns: repeat(3, 1fr); } }
.ka-tile { background: var(--surface); padding: 12px 14px; }
.ka-tile-val { font-family: var(--font-display, "Oswald", sans-serif); font-size: 24px; font-weight: 600; color: var(--text); }
.ka-tile-label { margin-top: 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.ka-sportrow { padding: 10px 0; }
.ka-sportrow + .ka-sportrow { border-top: 1px solid var(--border); }
.ka-sportrow-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; }
.ka-sportname { font-weight: 700; color: var(--text); }
.ka-sportsub { color: var(--dim); font-size: 12.5px; }
.ka-bar { margin-top: 6px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ka-bar-fill { height: 100%; border-radius: 999px; background: var(--accent); }
.ka-actrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; font-size: 14px; color: var(--text); }

/* ---- rows, searches, confirmations --------------------------------------- */
.ka-searchrow { display: flex; gap: 8px; align-items: center; }
.ka-searchrow .kc-input { flex: 1; }
.ka-userhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ka-username { font-weight: 700; font-size: 15.5px; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ka-banned { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.ka-confirmrow { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ka-locked { margin-top: 6px; padding: 13px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.ka-rank { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--dim); font-family: var(--font-display, "Oswald", sans-serif); font-size: 16px; font-weight: 700; }
.ka-rank-top { background: var(--accent); color: #100c00; border-color: transparent; }
.kc-center-row { justify-content: center; }

/* ---- tournaments ---------------------------------------------------------- */
.ka-payout-preview { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.ka-payout-preview p { font-size: 13.5px; line-height: 1.5; color: var(--dim); }
.ka-payout-preview strong { color: var(--accent-2); }

/* ---- admin crown packs ----------------------------------------------------- */
.ka-packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.ka-pack { position: relative; overflow: hidden; border-radius: var(--radius, 18px); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: var(--surface); }
.ka-pack-wide { grid-column: span 2; }
.ka-pack-art { width: 100%; height: 130px; object-fit: cover; display: block; }
.ka-pack-wide .ka-pack-art { height: 190px; }
.ka-pack-body { padding: 14px; }
.ka-pack-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ka-tag { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-2); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ka-tag-legend { background: var(--accent); color: #100c00; border-color: transparent; }
.ka-pack-label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-2); }
.ka-pack-crowns { margin: 6px 0 14px; font-family: var(--font-display, "Oswald", sans-serif); font-size: 28px; font-weight: 700; color: var(--text); }
.ka-pack-crowns span { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--accent-2); }
