/* 82-0 NBA — basketball overrides layered on top of the shared 84-0 styles.css */

/* ---------- hardwood theme (scoped to body.ufc so other games are untouched) ---------- */
body.ufc {
  --bg-1: #2a1116;                       /* crimson fight-night glow up top */
  --bg-2: #140a0c;
  --bg-3: #080405;                       /* black canvas */
  --hardwood: #e23b45;                   /* mat accent */
  --accent: #e23b45;                     /* UFC red */
  --accent-press: #c41e2f;
  --on-accent: #ffffff;
  --modal-bg: #1a1012;
  --inset: #1a1012;
  --reel-1: #221216;
  --reel-2: #14090c;
  --panel: rgba(20, 10, 12, 0.6);
  --line-on-court: rgba(255, 255, 255, 0.08);
  background-image:
    radial-gradient(1200px 760px at 50% -12%, rgba(226, 59, 69, 0.18), rgba(8, 4, 5, 0) 62%),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
}
:root[data-theme="light"] body.ufc {
  --bg-1: #f6e3e5;
  --bg-2: #fbeff0;
  --bg-3: #f2e0e2;
  --hardwood: #c41e2f;
  --accent: #cf2030;
  --accent-press: #ad1626;
  --on-accent: #ffffff;
  --modal-bg: #ffffff;
  --inset: #f7e6e8;
  --reel-1: #fbeff0;
  --reel-2: #f2dcde;
  --line-on-court: rgba(150, 30, 40, 0.14);
  background-image:
    radial-gradient(1200px 760px at 50% -12%, rgba(207, 32, 48, 0.20), rgba(242, 224, 226, 0) 62%),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
}

/* ---------- 82-0 palette: basketball orange, no hockey blue ---------- */
body.ufc .brand-sub { color: var(--accent); border-color: var(--accent); }
body.ufc .brand-dash { color: var(--accent); }
body.ufc .accent { color: var(--accent); }
body.ufc .r-pos { color: var(--accent); }
body.ufc .primary-btn {
  background: linear-gradient(135deg, #f4884f, #cf5f29);
  color: #1c0f06;
  box-shadow: 0 10px 26px rgba(207, 95, 41, 0.4);
}
body.ufc .primary-btn:hover { box-shadow: 0 14px 32px rgba(207, 95, 41, 0.5); }
body.ufc .mode-card:hover { border-color: var(--accent); box-shadow: 0 10px 26px rgba(207, 95, 41, 0.22); }
body.ufc .ghost-btn:hover { border-color: var(--accent); color: var(--accent); }

body.ufc .cand-stats { color: var(--accent); }
body.ufc .cand-pos {
  background: rgba(46, 32, 20, 0.66);
  border-color: rgba(232, 165, 110, 0.28);
  color: #efe2d6;
}
body.ufc .cand-pos.pos-filled { color: #a3927f; }
body.ufc .reel { background: linear-gradient(180deg, #2c2014, #1a130c); border-color: rgba(232, 165, 110, 0.18); }
body.ufc .reel span { color: #f3ece5; }
:root[data-theme="light"] body.ufc .reel { background: linear-gradient(180deg, #f8f1e2, #ecdfc7); border-color: rgba(150, 100, 40, 0.24); }
:root[data-theme="light"] body.ufc .reel span { color: #4d340e; }
body.ufc .rate-fill.atk { background: linear-gradient(90deg, #e23b45, #ff7a4d); }
body.ufc .rate-fill.def { background: linear-gradient(90deg, #8a1620, #e23b45); }
body.ufc .court-bg .yl { display: none; }

/* ---------- results: spacing around the court ---------- */
body.ufc .results-actions { margin-top: 22px; }
body.ufc .results-card { padding-bottom: 30px; }

/* ---------- full-page court markings (faint) ---------- */
.court-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.court-bg .yl { position: absolute; left: 0; right: 0; height: 2px; background: var(--line-on-court); }
.court-bg .yl:nth-child(1) { top: 26%; }
.court-bg .yl:nth-child(2) { top: 52%; }
.court-bg .yl:nth-child(3) { top: 78%; }

/* ---------- title emblem ---------- */
img.ufc-emblem {
  display: block;
  width: clamp(170px, 40vw, 248px);
  height: auto;
  margin: 0 auto clamp(8px, 2vh, 16px);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* ---------- results court (starting five on a half-court, hoop at the top) ---------- */
/* ---------- results octagon (eight champions on the mat) ---------- */
.field {
  position: relative; width: 100%; max-width: 460px; margin: 20px auto 0;
  aspect-ratio: 3 / 2.2; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: radial-gradient(120% 90% at 50% 30%, #1d1115 0%, #120a0c 60%, #0a0506 100%);
}
.field::before, .field::after { content: none; }
/* the cage — a red octagon mat outline (crisp SVG so the corners stay sharp) */
.octagon-ring {
  position: absolute; inset: 6% 8%;
  background: center/contain no-repeat
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="30,2 70,2 98,30 98,70 70,98 30,98 2,70 2,30" fill="rgba(226,59,69,0.06)" stroke="%23e23b45" stroke-opacity="0.5" stroke-width="1.4"/></svg>');
  pointer-events: none;
}
.field-player {
  position: absolute; transform: translate(-50%, -50%);
  width: 86px; text-align: center; z-index: 1;
}
.fp-dot {
  width: 36px; height: 36px; margin: 0 auto 4px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.9); box-shadow: 0 3px 10px rgba(0,0,0,0.45);
}
.fp-dot span { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 10px; color: #fff; letter-spacing: 0.3px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.fp-name { font-family: "Inter", sans-serif; font-weight: 700; font-size: 11.5px; color: #fff; line-height: 1.05; text-shadow: 0 1px 3px rgba(0,0,0,0.85); }
.fp-meta { font-size: 9.5px; color: rgba(255,255,255,0.9); margin-top: 1px; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
@media (max-width: 460px) {
  .field-player { width: 70px; }
  .fp-name { font-size: 10.5px; }
  .fp-dot { width: 32px; height: 32px; }
}

/* ---------- 5-slot draft tracker (room for names) ---------- */
body.ufc .slot-chip { flex: 0 1 84px; min-width: 64px; }

/* ---------- leaderboard: orange instead of hockey blue ---------- */
body.ufc .board-tab.active { background: rgba(232, 116, 59, 0.16); border-color: var(--accent); color: var(--text); }
body.ufc .board-name-link:hover { color: var(--accent); }

/* ---------- shared account dropdown menu ---------- */
.account-menu {
  position: absolute; top: 56px; right: 14px; z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45); padding: 8px; min-width: 190px; text-align: left;
  backdrop-filter: blur(8px);
}
.account-menu[hidden] { display: none; }
.account-menu .am-name { padding: 8px 12px 10px; font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit;
  font: inherit; padding: 9px 12px; border-radius: 9px; cursor: pointer;
}
.account-menu button:hover { background: var(--line); }

/* ---------- signup CTA: orange for 82-0 ---------- */
body.ufc .signup-cta { border-color: var(--accent); background: rgba(232, 116, 59, 0.07); }
body.ufc .signup-cta:hover { background: rgba(232, 116, 59, 0.14); }
