/* Explain modal styles */

/* Explain Button Polish */
.explain-btn {
  margin-left: 18px;
  padding: 7px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent2) 60%, var(--accent) 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px 0 rgba(29,229,192,0.10);
  letter-spacing: 0.01em;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}
.explain-btn:hover {
  background: linear-gradient(90deg, var(--accent) 60%, var(--accent2) 100%);
  box-shadow: 0 4px 16px 0 rgba(124,92,255,0.13);
  transform: translateY(-2px) scale(1.04);
}

/* Explain Modal Polish */
.explain-modal {
  position: fixed !important;
  z-index: 2147483647 !important;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(10,18,40,0.48);
  display: block;
  pointer-events: auto;
  padding: 0;
  margin: 0;
  backdrop-filter: blur(4px) saturate(1.2);
  -webkit-backdrop-filter: blur(4px) saturate(1.2);
}
.explain-modal-content {
  background: linear-gradient(120deg, #232b3a 80%, #232b3aee 100%);
  color: #fff;
  border-radius: 22px;
  border: 1.5px solid var(--accent2);
  padding: 38px 38px 28px 38px;
  min-width: 340px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 12px 48px 0 rgba(29,229,192,0.18), 0 8px 32px 0 rgba(0,0,0,0.22);
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: explain-pop 0.18s cubic-bezier(.4,1.6,.6,1) 1;
  z-index: 2147483647 !important;
}

@keyframes explain-pop {
  0% { transform: scale(0.92) translateY(30px); opacity: 0.2; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.explain-modal-close {
  position: absolute;
  top: 16px; right: 24px;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.explain-modal-close:hover {
  opacity: 1;
}
#explain-modal-body {
  font-size: 1.18rem;
  line-height: 1.6;
  color: #f4f7fb;
  margin-top: 10px;
  white-space: pre-line;
  word-break: break-word;
  text-align: left;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 2px;
}
.insights-hero-bg {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: 30px;
  overflow: hidden;
}
.insights-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/vLBqsRl.gif') center center/cover no-repeat;
  opacity: 0.22;
  z-index: 1;
}
.insights-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,18,40,0.04) 0%, rgba(10,18,40,0.55) 100%);
  z-index: 2;
}
.insights-hero-bg h1, .insights-hero-bg p, .insights-hero-bg .eyebrow {
  text-shadow: 0 2px 12px rgba(10,18,40,0.18), 0 1px 2px rgba(0,0,0,0.12);
}
.insights-hero-bg > div {
  padding: 38px 44px 24px 44px;
}
.sim-hero-bg {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: 30px;
  overflow: hidden;
}
.sim-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/vLBqsRl.gif') center center/cover no-repeat;
  opacity: 0.22;
  z-index: 1;
}
.sim-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,18,40,0.04) 0%, rgba(10,18,40,0.55) 100%);
  z-index: 2;
}
.sim-hero-bg h1, .sim-hero-bg p, .sim-hero-bg .eyebrow {
  text-shadow: 0 2px 12px rgba(10,18,40,0.18), 0 1px 2px rgba(0,0,0,0.12);
}
.bracket-hero-bg {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: 30px;
  overflow: hidden;
}
.bracket-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/vLBqsRl.gif') center center/cover no-repeat;
  opacity: 0.22;
  z-index: 1;
}
.bracket-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,18,40,0.04) 0%, rgba(10,18,40,0.55) 100%);
  z-index: 2;
}
.bracket-hero-bg h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(10,18,40,0.18), 0 1px 2px rgba(0,0,0,0.12);
}
.bracket-hero-bg p {
  font-size: 1.35rem;
  margin-bottom: 0;
  text-shadow: 0 2px 12px rgba(10,18,40,0.18), 0 1px 2px rgba(0,0,0,0.12);
}
.bracket-hero-bg .eyebrow {
  font-size: 1.1rem;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(10,18,40,0.18), 0 1px 2px rgba(0,0,0,0.12);
}
.bracket-hero-bg > div {
  padding: 38px 44px 24px 44px;
}
.bracket-hero-bg > * {
  position: relative;
  z-index: 3;
}
.basketball-anim-container {
  width: 100%;
  height: 60px;
  position: relative;
  margin-top: 18px;
  overflow: hidden;
}
.basketball-anim {
  position: absolute;
  left: -70px;
  top: 0;
  width: 60px;
  height: 60px;
  animation: basketball-move 3.5s linear infinite;
}
@keyframes basketball-move {
  0% { left: -70px; opacity: 0.2; }
  10% { opacity: 1; }
  80% { left: calc(100% - 60px); opacity: 1; }
  100% { left: calc(100% + 20px); opacity: 0.2; }
}
.dashboard-hero-bg {
  position: relative;
  width: 100%;
  min-height: 520px;
  margin-bottom: 22px;
  border-radius: 30px;
  overflow: hidden;
}
.dashboard-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bracketology-kansas.webp') center 40%/cover no-repeat;
  opacity: 0.19;
  z-index: 1;
}
.dashboard-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,18,40,0.12) 0%, rgba(10,18,40,0.82) 100%);
  z-index: 2;
}
.dashboard-hero-bg > * {
  position: relative;
  z-index: 3;
}
.scroll-panel {
  max-height: 370px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent2) var(--card);
}
.scroll-panel::-webkit-scrollbar {
  width: 7px;
}
.scroll-panel::-webkit-scrollbar-thumb {
  background: var(--accent2);
  border-radius: 8px;
}
.scroll-panel::-webkit-scrollbar-track {
  background: var(--card);
  border-radius: 8px;
}
.hero-bg-img {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding-top: 60px;
}
.hero-bg-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bracketology-kansas.webp') center 60%/cover no-repeat;
  opacity: 0.18;
  z-index: 1;
}
.hero-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,18,40,0.12) 0%, rgba(10,18,40,0.82) 100%);
  z-index: 2;
}
.hero-bg-img > * {
  position: relative;
  z-index: 3;
}
.sidebar-bkgphoto {
  width: 100%;
  height: 160px;
  margin: 32px 0 18px 0;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px 0 rgba(0,0,0,0.10), 0 1.5px 4px 0 rgba(0,0,0,0.08);
}
.sidebar-bkgphoto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bkgphoto.jpeg') center 60%/cover no-repeat;
  opacity: 0.32;
  z-index: 1;
}
.sidebar-bkgphoto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,40,0.10) 0%, rgba(10,18,40,0.82) 100%);
  z-index: 2;
}
.mm-logo-card {
  margin: 1.5rem 0 1.2rem 0;
  padding: 12px 10px 10px 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(0,0,0,0.10), 0 1.5px 4px 0 rgba(0,0,0,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: box-shadow 0.18s;
}
.mm-logo-card:hover {
  box-shadow: 0 8px 28px 0 rgba(0,0,0,0.16), 0 2.5px 8px 0 rgba(0,0,0,0.10);
}
.mm-logo-img {
  max-width: 120px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 1.5px 6px 0 rgba(0,0,0,0.10);
}
:root {
  --bg: #07101d;
  --bg2: #0b1630;
  --bg3: #111f43;
  --card: rgba(255,255,255,0.08);
  --card-soft: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.12);
  --text: #f4f7fb;
  --muted: #a8b7d1;
  --accent: #7c5cff;
  --accent2: #1de5c0;
  --accent3: #f4c14f;
  --shadow: 0 25px 60px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg), var(--bg2));
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.bg-orb {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.18;
  z-index: -3;
}
.orb-one { background: #7c5cff; top: -10rem; left: -12rem; }
.orb-two { background: #1de5c0; right: -10rem; top: 8rem; }
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 88%);
  z-index: -4;
}
.app-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar {
  padding: 28px 22px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { font-size: 2rem; font-weight: 900; letter-spacing: -0.06em; }
.brand span { color: var(--accent2); }
.brand-sub, .muted { color: var(--muted); }
.status-card {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 8px rgba(29,229,192,0.12);
}
.nav-links { display: grid; gap: 12px; margin-top: 30px; }
.nav-links a {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.nav-links a:hover { border-color: rgba(124,92,255,0.5); transform: translateY(-1px); background: rgba(255,255,255,0.06); }
.sidebar-footer { font-size: .9rem; }
.tiny-label { color: var(--muted); margin-bottom: 4px; }
.tiny-value { font-weight: 700; }
.content-area { padding: 28px; }
.glass {
  background: var(--card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.glass-soft {
  background: var(--card-soft);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero {
  border-radius: 30px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.hero-xl { padding: 34px; gap: 28px; }
.hero.compact { padding: 24px; }
.hero-copy { flex: 1.2; }
.hero-stack { flex: 0.9; display: grid; gap: 14px; }
.eyebrow { color: var(--accent2); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; margin-bottom: 10px; }
.hero h1 { margin: 0 0 8px 0; font-size: clamp(2.4rem, 4vw, 4.6rem); line-height: .95; letter-spacing: -0.06em; }
.hero p { margin: 0; color: var(--muted); max-width: 720px; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.primary-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}
.primary-btn { background: linear-gradient(135deg, var(--accent), #9d74ff); color: white; }
.ghost-btn { border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04); }
.small-btn { padding: 10px 14px; font-size: .92rem; }
.primary-btn:hover, .ghost-btn:hover { transform: translateY(-2px); }
.signal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.signal-card {
  padding: 14px 15px;
  border-radius: 18px;
}
.signal-label { display: block; color: var(--muted); font-size: .84rem; margin-bottom: 6px; }
.hero-badge {
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(29,229,192,.12));
  border: 1px solid rgba(255,255,255,.1);
}
.champion-card { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-champion-row { display: flex; gap: 16px; align-items: center; }
.team-mark {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(124,92,255,.34), rgba(29,229,192,.28));
  border: 1px solid rgba(255,255,255,0.16);
}
.team-mark.small { width: 48px; height: 48px; border-radius: 14px; font-size: 1rem; }
.hero-champion-name { font-size: 1.4rem; font-weight: 800; }
.hero-percent { font-size: 3rem; font-weight: 900; letter-spacing: -0.07em; }
.narrative-card p { line-height: 1.6; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.metric-card { border-radius: 22px; padding: 20px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-card span { color: var(--muted); }
.metric-card strong { font-size: 1.7rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.story-panel { min-height: 154px; }
.story-panel-accent {
  background: linear-gradient(135deg, rgba(124,92,255,0.25), rgba(244,193,79,0.12));
}
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-bottom: 22px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.panel { border-radius: 26px; padding: 18px; }
.chart-panel { min-height: 420px; }
.panel-title { font-weight: 800; margin-bottom: 14px; font-size: 1.05rem; }
.list-stack { display: grid; gap: 12px; }
.list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
}
.list-card-left { display: flex; gap: 12px; align-items: center; }
.list-card.static { cursor: default; }
.premium-card { transition: transform 180ms ease, border-color 180ms ease; }
.premium-card:hover { transform: translateY(-2px); border-color: rgba(29,229,192,0.35); }
.pill, .mini-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124,92,255,0.22);
  border: 1px solid rgba(124,92,255,0.45);
  font-weight: 700;
}
.mini-pill { font-size: .75rem; padding: 6px 10px; }
.badge-stack { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.block-copy { margin-bottom: 12px; }
.argument-stack { display: grid; gap: 12px; }
.argument-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}
.argument-item span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(29,229,192,0.12);
  color: var(--accent2);
  font-weight: 800;
}
.argument-item p { margin: 0; color: var(--muted); line-height: 1.5; }
.workflow-list { display: grid; gap: 12px; }
.workflow-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.detail-grid div { padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.04); }
.detail-grid span { display: block; color: var(--muted); margin-bottom: 6px; }
.detail-grid strong { font-size: 1.12rem; }
.region-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 1280px) {
  .story-grid, .three-col { grid-template-columns: 1fr; }
  .signal-row { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); position: static; height: auto; }
  .card-grid, .two-col, .region-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .content-area { padding: 18px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-percent { font-size: 2.3rem; }
}

/* Presentation Mode Styles */
.presentation-hero.simple-bg {
  background: #181f2a;
  padding: 48px 0 32px 0;
  text-align: center;
}
.presentation-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 32px;
  color: #fff;
}
.presentation-cards {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.giant-card {
  background: #232b3a;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 48px 36px;
  min-width: 320px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.giant-label {
  font-size: 1.2rem;
  color: #a8b7d1;
  margin-bottom: 18px;
}
.giant-team {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.giant-percent {
  font-size: 2.6rem;
  font-weight: 900;
  color: #1de5c0;
}
.presentation-actions {
  margin: 32px 0 24px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.presentation-btn {
  background: #232b3a;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.presentation-btn:hover {
  background: #1de5c0;
  color: #181f2a;
}
.presentation-story {
  margin-top: 32px;
  background: #232b3a;
  border-radius: 24px;
  padding: 32px 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.presentation-story h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: #fff;
}
.story-list {
  list-style: disc;
  color: #a8b7d1;
  text-align: left;
  margin-left: 24px;
  font-size: 1.1rem;
}
