/* RootPath theme. Loaded on every player page (see ensure_theme in __init__.py). */

/* ---------- colours: always dark ---------- */
html, html[data-bs-theme="light"], html[data-bs-theme="dark"] {
  color-scheme: dark;
  --rp-bg: #0a0f1e;
  --rp-surface: #111a33;
  --rp-surface-2: #16224a;
  --rp-input: #0c1430;
  --rp-border: rgba(148, 163, 184, 0.18);
  --rp-text: #e6ebf5;
  --rp-muted: #9aa8c2;
  --rp-accent: #2f6fff;
  --rp-accent-2: #22d3ee;
  --rp-success: #22c55e;
  --rp-warning: #f59e0b;
  --rp-danger: #ef4444;
  --rp-radius: 14px;

  --bs-body-bg: var(--rp-bg);
  --bs-body-bg-rgb: 10, 15, 30;
  --bs-body-color: var(--rp-text);
  --bs-body-color-rgb: 230, 235, 245;
  --bs-emphasis-color: #ffffff;
  --bs-secondary-color: var(--rp-muted);
  --bs-secondary-bg: var(--rp-surface);
  --bs-tertiary-bg: var(--rp-surface);
  --bs-border-color: var(--rp-border);
  --bs-primary: var(--rp-accent);
  --bs-primary-rgb: 47, 111, 255;
  --bs-link-color: #6ea1ff;
  --bs-link-color-rgb: 110, 161, 255;
  --bs-link-hover-color: #a9c6ff;
  --bs-link-hover-color-rgb: 169, 198, 255;
  --bs-heading-color: #ffffff;
  --bs-body-font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--rp-bg) !important;
  background-image:
    radial-gradient(1100px 500px at 50% -120px, rgba(47, 111, 255, 0.22), transparent 70%),
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  background-attachment: fixed;
  color: var(--rp-text);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
  font-family: var(--bs-body-font-family);
  letter-spacing: -0.01em !important;
  font-weight: 700;
  color: #fff;
}
.text-muted { color: var(--rp-muted) !important; }
code { color: #7dd3fc; }
::selection { background: rgba(47, 111, 255, 0.45); }

/* ---------- top bar ---------- */
.navbar, .navbar.bg-dark {
  background: rgba(10, 15, 30, 0.82) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rp-border);
}
.navbar .nav-link { color: var(--rp-muted) !important; font-weight: 500; border-radius: 8px; padding: 0.4rem 0.75rem !important; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: #fff !important; background: rgba(148, 163, 184, 0.1); }
.navbar .theme-switch { display: none !important; }   /* the site is always dark */
.navbar-brand img { max-height: 30px; }
.dropdown-menu { background: var(--rp-surface); border: 1px solid var(--rp-border); border-radius: 10px; }
.dropdown-item { color: var(--rp-text); }
.dropdown-item:hover { background: var(--rp-surface-2); color: #fff; }

/* ---------- page headers ---------- */
.jumbotron {
  background: linear-gradient(135deg, #0f1d4a 0%, #1b3fa6 55%, #0e7490 100%) !important;
  border-bottom: 1px solid var(--rp-border);
  padding: 3rem 0 !important;
  margin-bottom: 2rem;
}
.jumbotron h1 { font-size: 2.6rem; color: #fff; }
.jumbotron h2, .jumbotron h3 { color: rgba(255, 255, 255, 0.85); }

/* ---------- cards and panels ---------- */
.card, .card.bg-dark, .modal-content {
  background: linear-gradient(180deg, var(--rp-surface-2), var(--rp-surface)) !important;
  border: 1px solid var(--rp-border) !important;
  border-radius: var(--rp-radius) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: var(--rp-text);
}
.card .card-body { color: var(--rp-text); }

/* ---------- buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary {
  background: linear-gradient(135deg, #2f6fff, #1f9bd8) !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(47, 111, 255, 0.35);
}
.btn-primary:hover, .btn-primary:focus { filter: brightness(1.12); transform: translateY(-1px); }
.btn-primary:disabled { filter: grayscale(0.4); transform: none; }
.btn-outline-primary { color: #8db4ff; border-color: rgba(47, 111, 255, 0.6); }
.btn-outline-primary:hover { background: rgba(47, 111, 255, 0.18); color: #fff; border-color: var(--rp-accent); }
.btn-outline-light, .btn-outline-secondary { color: var(--rp-text); border-color: var(--rp-border); }
.btn-outline-light:hover, .btn-outline-secondary:hover { background: rgba(148, 163, 184, 0.14); color: #fff; }
.btn-outline-info { color: #67e8f9; border-color: rgba(34, 211, 238, 0.5); }
.btn-outline-info:hover { background: rgba(34, 211, 238, 0.15); color: #fff; }
.btn-outline-danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.5); }
.btn-outline-danger:hover { background: rgba(239, 68, 68, 0.15); color: #fff; }

/* ---------- forms ---------- */
.form-control, .form-select, .form-control.bg-dark {
  background-color: var(--rp-input) !important;
  border: 1px solid var(--rp-border) !important;
  color: var(--rp-text) !important;
  border-radius: 10px;
}
.form-control::placeholder { color: #64748b; }
.form-control:focus, .form-select:focus {
  border-color: var(--rp-accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(47, 111, 255, 0.25) !important;
}
.form-label, label { color: var(--rp-muted); font-weight: 500; }

/* ---------- tables ---------- */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--rp-text);
  --bs-table-striped-bg: rgba(148, 163, 184, 0.06);
  --bs-table-striped-color: var(--rp-text);
  --bs-table-hover-bg: rgba(47, 111, 255, 0.1);
  --bs-table-border-color: var(--rp-border);
  border-radius: var(--rp-radius);
  overflow: hidden;
}
.table thead th {
  background: rgba(148, 163, 184, 0.08) !important;
  color: var(--rp-muted) !important;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--rp-border);
}
.table td, .table th { padding: 0.75rem 1rem; vertical-align: middle; }
.table-primary { --bs-table-bg: rgba(47, 111, 255, 0.22) !important; --bs-table-color: #fff !important; }

/* ---------- alerts and badges ---------- */
.alert { border-radius: 12px; border: 1px solid var(--rp-border); border-left-width: 4px; }
.alert-success { background: rgba(34, 197, 94, 0.1); color: #bbf7d0; border-left-color: var(--rp-success); }
.alert-info { background: rgba(34, 211, 238, 0.08); color: #cffafe; border-left-color: var(--rp-accent-2); }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: #fde68a; border-left-color: var(--rp-warning); }
.alert-danger { background: rgba(239, 68, 68, 0.1); color: #fecaca; border-left-color: var(--rp-danger); }
.alert strong { color: #fff; }
.badge { border-radius: 999px; padding: 0.45em 0.9em; font-weight: 600; }
.bg-success { background-color: rgba(34, 197, 94, 0.2) !important; color: #86efac !important; border: 1px solid rgba(34, 197, 94, 0.5); }
.bg-info { background-color: rgba(34, 211, 238, 0.18) !important; color: #67e8f9 !important; border: 1px solid rgba(34, 211, 238, 0.45); }
.bg-secondary { background-color: rgba(148, 163, 184, 0.18) !important; color: #cbd5e1 !important; }
.text-success { color: #4ade80 !important; }
.text-danger { color: #f87171 !important; }
.text-warning { color: #fbbf24 !important; }
.text-info { color: #67e8f9 !important; }

/* ---------- progress bars and profile statistics ---------- */
.progress { background: rgba(148, 163, 184, 0.12); border-radius: 999px; height: 0.9rem; }
/* the theme hides statistics on small screens; show them everywhere */
[x-data="UserGraphs"] .d-none, [x-data="TeamGraphs"] .d-none { display: block !important; }
#score-graph, #score-graph + *, .score-graph {
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 0.5rem;
}

/* ---------- RootPath pages ---------- */
.rp-terminal { background: #050912 !important; border-color: rgba(34, 211, 238, 0.25) !important; }
.rp-terminal, .rp-terminal pre, .rp-terminal input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; }
.rp-terminal .form-control { background: #070d1c !important; }
.rp-stat {
  background: linear-gradient(180deg, var(--rp-surface-2), var(--rp-surface));
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 1.1rem 1.25rem;
}
.rp-stat .rp-stat-value { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.rp-stat .rp-stat-label { color: var(--rp-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.rp-bar { background: rgba(148, 163, 184, 0.12); border-radius: 999px; height: 0.6rem; overflow: hidden; min-width: 120px; }
.rp-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #2f6fff, #22d3ee); border-radius: 999px; }
.rp-bar.rp-bar-warn > span { background: linear-gradient(90deg, #f59e0b, #ef4444); }

/* home page team cards */
[style*="border:1px solid rgba(128,128,128,.35)"] {
  border: 1px solid var(--rp-border) !important;
  background: rgba(17, 26, 51, 0.7);
}

/* ---------- footer ---------- */
.footer a { display: none; }
.footer .container::after {
  content: "RootPath \00B7  CIS 4913 Capstone Project";
  color: #64748b;
  font-size: 0.85rem;
}

/* ---------- profile: point changes ---------- */
.rp-awards > div[class*="col-"] {
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: 12px;
  padding: 0.75rem 0.5rem 0.25rem;
  margin: 0 0.5rem 0.75rem 0;
  flex: 0 0 calc(25% - 0.5rem);
}
.rp-awards > div[class*="col-"] p { margin-bottom: 0.35rem; color: var(--rp-muted); }
.rp-awards > div[class*="col-"] p:last-child { color: #fca5a5; font-weight: 700; font-size: 1.1rem; }
.rp-awards > div[class*="col-"] strong { color: #fff; }
@media (max-width: 768px) { .rp-awards > div[class*="col-"] { flex-basis: calc(50% - 0.5rem); } }

/* ---------- home page images ---------- */
img[alt="RootPath banner"] { border-radius: 18px !important; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.text-center > img[src^="data:image/png"] { filter: brightness(0) invert(1); opacity: 0.9; }

/* ---------- path picker cards ---------- */
.rp-track { position: relative; overflow: hidden; }
.rp-track::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #22c55e, #22d3ee); }
.rp-track.rp-track-intermediate::before { background: linear-gradient(90deg, #2f6fff, #a855f7); }
.rp-track .rp-track-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 0.5rem; }

/* =====================================================================
   RootPath v4 – site-wide polish (page headers, panels, leaderboards,
   tournaments, certificates, home and Event Info)
   ===================================================================== */

body { font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
main, .main-content { min-height: calc(100vh - 140px); }
a { text-underline-offset: 3px; }

/* top bar */
.navbar { padding-top: .55rem; padding-bottom: .55rem; }
.navbar-brand img { max-height: 34px !important; height: 34px; width: auto; border-radius: 8px; }
.navbar .nav-link { font-size: .95rem; }
.navbar .nav-link.active, .navbar .nav-item.active > .nav-link { color: #fff !important; background: rgba(47,111,255,.18); }

/* page headers: core pages (.jumbotron) and RootPath pages (.rp-hero) look the same */
.jumbotron, .rp-hero {
  position: relative;
  background:
    radial-gradient(900px 380px at 85% -40%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(900px 420px at 10% -60%, rgba(47,111,255,.35), transparent 60%),
    linear-gradient(180deg, rgba(17,26,51,.95), rgba(10,15,30,.6)) !important;
  border-bottom: 1px solid var(--rp-border);
  padding: 3.25rem 0 2.5rem !important;
  margin-bottom: 2.25rem;
  overflow: hidden;
}
.jumbotron::after, .rp-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(47,111,255,.8), rgba(34,211,238,.8), transparent);
}
.jumbotron h1, .rp-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.02em !important; }
.rp-hero-sm { padding: 2.5rem 0 2rem !important; }
.rp-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7fb0ff; margin-bottom: .5rem; }
.rp-lead { font-size: 1.12rem; color: #c7d2e6; line-height: 1.6; }
.rp-back { color: var(--rp-muted); text-decoration: none; font-weight: 500; }
.rp-back:hover { color: #fff; }
.rp-section-title { font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rp-muted); margin-bottom: 1rem; display: flex; align-items: center; gap: .55rem; }
.rp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; letter-spacing: .03em; }

/* panels */
.rp-panel {
  background: linear-gradient(180deg, rgba(22,34,74,.85), rgba(17,26,51,.9));
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
}
.rp-empty { text-align: center; padding: 3.5rem 1rem; border: 1px dashed rgba(148,163,184,.3); border-radius: var(--rp-radius); background: rgba(17,26,51,.45); }
.rp-empty > i { font-size: 2.4rem; color: #5b8cff; }
.rp-stat-of { font-size: 1rem; color: var(--rp-muted); font-weight: 600; }
.rp-stat { transition: border-color .2s ease; }
.rp-stat:hover { border-color: rgba(47,111,255,.45); }

/* state pills */
.rp-state { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: .3rem .75rem; border: 1px solid; }
.rp-state-live { color: #86efac; border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.12); }
.rp-state-upcoming { color: #7dd3fc; border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.1); }
.rp-state-finished { color: #cbd5e1; border-color: rgba(148,163,184,.35); background: rgba(148,163,184,.1); }
.rp-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: rp-pulse 1.8s infinite; display: inline-block; }
@keyframes rp-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.65); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* countdown */
.rp-countdown { background: rgba(10,15,30,.55); border: 1px solid var(--rp-border); border-radius: var(--rp-radius); padding: .9rem 1.3rem; text-align: right; min-width: 240px; }
.rp-countdown-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rp-muted); }
.rp-countdown-value { font-size: 1.7rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }

/* medals */
.rp-medal { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; font-weight: 800; font-size: 1.25rem; color: #1b1b1b; flex: none;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 6px 16px rgba(0,0,0,.35); }
.rp-medal-1 { background: radial-gradient(circle at 35% 30%, #fff1b8, #f2c94c 45%, #b8860b); color: #4a3300; }
.rp-medal-2 { background: radial-gradient(circle at 35% 30%, #ffffff, #cfd6e2 45%, #8a94a6); color: #2c3340; }
.rp-medal-3 { background: radial-gradient(circle at 35% 30%, #ffd9b8, #d98c4a 45%, #8c4b1c); color: #3b1d06; }
.rp-medal-sm { width: 2rem; height: 2rem; font-size: .9rem; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.rp-rank { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; font-weight: 700; color: var(--rp-muted); font-variant-numeric: tabular-nums; }

/* podium */
.rp-podium { display: flex; justify-content: center; align-items: flex-end; gap: 1rem; padding-top: 1rem; }
.rp-podium-step { flex: 0 1 230px; text-align: center; text-decoration: none !important; color: inherit; display: flex; flex-direction: column; align-items: center; }
.rp-podium-step .rp-medal { width: 3.4rem; height: 3.4rem; font-size: 1.4rem; margin-bottom: .6rem; }
.rp-podium-name { font-weight: 800; font-size: 1.1rem; color: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 .5rem; }
.rp-podium-points { font-weight: 700; color: #a9c6ff; }
.rp-podium-meta { font-size: .82rem; color: var(--rp-muted); }
.rp-podium-block { margin-top: .75rem; width: 100%; border-radius: 14px 14px 0 0; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: rgba(255,255,255,.92);
  border: 1px solid var(--rp-border); border-bottom: 0; }
.rp-p1 .rp-podium-block { height: 150px; background: linear-gradient(180deg, rgba(242,201,76,.35), rgba(242,201,76,.06)); border-color: rgba(242,201,76,.45); }
.rp-p2 .rp-podium-block { height: 110px; background: linear-gradient(180deg, rgba(207,214,226,.28), rgba(207,214,226,.05)); border-color: rgba(207,214,226,.35); }
.rp-p3 .rp-podium-block { height: 80px;  background: linear-gradient(180deg, rgba(217,140,74,.3), rgba(217,140,74,.05)); border-color: rgba(217,140,74,.4); }
.rp-p1 .rp-podium-name { font-size: 1.3rem; }
.rp-podium-step.rp-is-me .rp-podium-name::after { content: " (you)"; color: #7dd3fc; font-weight: 600; font-size: .85em; }
.rp-podium-lg .rp-podium-step { flex-basis: 320px; }
.rp-podium-lg .rp-podium-name { font-size: 1.7rem; }
.rp-podium-lg .rp-podium-points { font-size: 1.3rem; }
@media (max-width: 576px) {
  .rp-podium { gap: .5rem; }
  .rp-podium-name { font-size: .95rem; }
  .rp-p1 .rp-podium-block { height: 110px; } .rp-p2 .rp-podium-block { height: 80px; } .rp-p3 .rp-podium-block { height: 60px; }
}

/* leaderboard tables */
.rp-table { --bs-table-bg: transparent; border-radius: 0; }
.rp-table thead th { background: rgba(10,15,30,.55) !important; padding-top: .9rem; padding-bottom: .9rem; }
.rp-table tbody tr { border-top: 1px solid var(--rp-border); transition: background .15s ease; }
.rp-table tbody tr:hover { background: rgba(47,111,255,.08); }
.rp-table td a { color: #fff; text-decoration: none; }
.rp-table td a:hover { color: #a9c6ff; }
.rp-row-top td { background: rgba(255,255,255,.025); }
.rp-row-me td { background: rgba(47,111,255,.16) !important; }
.rp-row-me td:first-child { box-shadow: inset 3px 0 0 var(--rp-accent); }

/* tournament cards */
.rp-tcard { display: flex; flex-direction: column; height: 100%; padding: 1.4rem 1.4rem 0; border-radius: var(--rp-radius); text-decoration: none !important; color: var(--rp-text) !important;
  background: linear-gradient(180deg, rgba(22,34,74,.9), rgba(17,26,51,.92)); border: 1px solid var(--rp-border); box-shadow: 0 12px 34px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; overflow: hidden; position: relative; }
.rp-tcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #2f6fff, #22d3ee); opacity: .7; }
.rp-tcard-live::before { background: linear-gradient(90deg, #22c55e, #22d3ee); opacity: 1; }
.rp-tcard-finished::before { background: linear-gradient(90deg, #64748b, #94a3b8); }
.rp-tcard:hover { transform: translateY(-3px); border-color: rgba(47,111,255,.55); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.rp-tcard h2 { color: #fff; }
.rp-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rp-tcard-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.rp-tcard-facts > div { background: rgba(10,15,30,.45); border: 1px solid var(--rp-border); border-radius: 10px; padding: .55rem .4rem; text-align: center; font-size: .75rem; color: var(--rp-muted); text-transform: uppercase; letter-spacing: .05em; }
.rp-tcard-facts span { display: block; font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: 0; text-transform: none; }
.rp-tcard-foot { color: var(--rp-muted); margin-bottom: 1.2rem; }
.rp-tcard-cta { margin: auto -1.4rem 0; padding: .85rem 1.4rem; border-top: 1px solid var(--rp-border); background: rgba(47,111,255,.1); color: #a9c6ff; font-weight: 700; }
.rp-tcard:hover .rp-tcard-cta { background: rgba(47,111,255,.22); color: #fff; }

/* certificate banner and verify page */
.rp-cert-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.4rem; border-radius: var(--rp-radius);
  background: linear-gradient(135deg, rgba(242,201,76,.16), rgba(47,111,255,.14)); border: 1px solid rgba(242,201,76,.45); }
.rp-verified { border-color: rgba(34,197,94,.45); }
.rp-facts { display: grid; grid-template-columns: 150px 1fr; gap: .55rem 1rem; }
.rp-facts dt { color: var(--rp-muted); font-weight: 500; }
.rp-facts dd { margin: 0; color: #fff; font-weight: 600; }
@media (max-width: 576px) { .rp-facts { grid-template-columns: 1fr; } .rp-facts dd { margin-bottom: .5rem; } }

/* ---------- home page ---------- */
.rp-home-hero { padding: 3rem 0 2.5rem; }
.rp-home-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em !important; }
.rp-home-hero h1 .rp-grad { background: linear-gradient(90deg, #5b8cff, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rp-home-hero .rp-lead { font-size: 1.2rem; max-width: 560px; }
.rp-home-banner { border-radius: 22px; width: 100%; height: auto; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(148,163,184,.12); }
.rp-home-ctas .btn { padding: .9rem 1.6rem; font-size: 1.1rem; border-radius: 12px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.rp-chip { font-size: .85rem; font-weight: 600; color: #c7d2e6; background: rgba(148,163,184,.1); border: 1px solid var(--rp-border); border-radius: 999px; padding: .3rem .8rem; }
.rp-feature { height: 100%; padding: 1.5rem; border-radius: var(--rp-radius); background: linear-gradient(180deg, rgba(22,34,74,.75), rgba(17,26,51,.8)); border: 1px solid var(--rp-border); transition: border-color .2s ease, transform .2s ease; }
.rp-feature:hover { border-color: rgba(47,111,255,.5); transform: translateY(-2px); }
.rp-feature-icon { width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; margin-bottom: 1rem;
  background: linear-gradient(135deg, #2f6fff, #22d3ee); box-shadow: 0 8px 20px rgba(47,111,255,.35); }
.rp-feature h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.rp-feature p { color: var(--rp-muted); margin: 0; }
.rp-steps { counter-reset: step; }
.rp-step { position: relative; padding: 1.25rem 1.25rem 1.25rem 4.2rem; border-radius: var(--rp-radius); background: rgba(17,26,51,.6); border: 1px solid var(--rp-border); height: 100%; }
.rp-step::before { counter-increment: step; content: counter(step); position: absolute; left: 1.2rem; top: 1.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: rgba(47,111,255,.25); border: 1px solid rgba(47,111,255,.6); }
.rp-step h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.rp-step p { color: var(--rp-muted); margin: 0; }
.rp-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.rp-team-card { text-align: center; padding: .9rem .6rem; border-radius: 12px; background: rgba(17,26,51,.7); border: 1px solid var(--rp-border); }
.rp-team-card .n { font-weight: 700; color: #fff; }
.rp-team-card .i { font-size: .8rem; color: var(--rp-muted); font-family: ui-monospace, Menlo, Consolas, monospace; }
.rp-org-logo { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.rp-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--rp-border), transparent); margin: 3rem 0; }

/* ---------- Event Info page ---------- */
.rp-info-toc { position: sticky; top: 90px; }
.rp-info-toc a { display: block; padding: .45rem .8rem; border-radius: 8px; color: var(--rp-muted); text-decoration: none; font-weight: 500; border-left: 2px solid transparent; }
.rp-info-toc a:hover { color: #fff; background: rgba(148,163,184,.08); border-left-color: var(--rp-accent); }
.rp-info section { scroll-margin-top: 90px; margin-bottom: 2.5rem; }
.rp-info h2 { font-size: 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.rp-info h2 i { color: #5b8cff; font-size: 1.1rem; }
.rp-info p, .rp-info li { color: #c7d2e6; line-height: 1.7; }
.rp-rules { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--rp-border); border-radius: 12px; overflow: hidden; }
.rp-rules th, .rp-rules td { padding: .75rem 1rem; border-bottom: 1px solid var(--rp-border); }
.rp-rules tr:last-child td { border-bottom: 0; }
.rp-rules th { background: rgba(10,15,30,.55); color: var(--rp-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.rp-rules td:last-child { text-align: right; font-weight: 700; color: #fff; white-space: nowrap; }
.rp-callout { padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid rgba(47,111,255,.4); background: rgba(47,111,255,.1); color: #dbe7ff; }
.rp-faq details { border: 1px solid var(--rp-border); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .6rem; background: rgba(17,26,51,.6); }
.rp-faq summary { cursor: pointer; font-weight: 600; color: #fff; }
.rp-faq details p { margin: .6rem 0 0; }

/* footer */
.footer { border-top: 1px solid var(--rp-border); background: rgba(10,15,30,.6); padding: 1.2rem 0 !important; }
.rp-table th, .rp-table td { text-align: left; }
.rp-rank.rp-medal { min-width: 0; font-weight: 800; }
.rp-rank.rp-medal-1 { color: #4a3300; }
.rp-rank.rp-medal-2 { color: #2c3340; }
.rp-rank.rp-medal-3 { color: #3b1d06; }
.rp-table > thead > tr > th, .rp-table > tbody > tr > td { text-align: left !important; }
.rp-table > thead > tr > th.text-end, .rp-table > tbody > tr > td.text-end { text-align: right !important; }

/* simple home and Event Info (v7) */
.rp-simple-hero { padding: 2.5rem 0 3rem; }
.rp-simple-hero .rp-home-banner { max-width: 640px; }
.rp-simple-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.02em !important; }
.rp-simple-about { padding: 2rem 0 1rem; border-top: 1px solid var(--rp-border); }
.rp-simple-about .rp-team { max-width: 900px; margin: 0 auto .75rem; }
.rp-simple-about .rp-org-logo { height: 48px; }
.rp-info-simple { max-width: 720px; }
.rp-info-simple section { margin-bottom: 2rem; }
.rp-info-simple h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.rp-info-simple ol { padding-left: 1.2rem; margin-bottom: 0; }
.rp-info-simple .rp-rules td:first-child { color: #c7d2e6; }

/* home: team on one row, bigger names (v8) */
.rp-simple-about .rp-team { max-width: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.5rem; }
.rp-simple-about .rp-team-card { padding: 1.1rem .5rem; }
.rp-simple-about .rp-team-card .n { font-size: 1.2rem; line-height: 1.25; }
.rp-simple-about .rp-team-card .i { font-size: .95rem; margin-top: .25rem; }
.rp-supervisor { font-size: 1.45rem; }
.rp-supervisor strong { color: #fff; font-weight: 800; }
@media (max-width: 991px) { .rp-simple-about .rp-team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .rp-simple-about .rp-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-supervisor { font-size: 1.25rem; } }

/* home: HCT logo last and bigger (v9) */
.rp-simple-about { padding-bottom: 2.5rem; }
.rp-simple-about .rp-org-logo { display: block; height: 110px; width: auto; max-width: 100%; margin: 2.5rem auto 0; opacity: .95; }
@media (max-width: 575px) { .rp-simple-about .rp-org-logo { height: 80px; } }
