:root {
  --ibb-navy: #0d3b66;
  --ibb-teal: #1b9aaa;
  --ibb-gold: #c9a227;
  --bg-deep: #0a1628;
  --text-soft: rgba(255, 255, 255, 0.88);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 800px at 10% 10%, #143a64 0%, var(--bg-deep) 55%, #050a12 100%);
  color: var(--text-soft);
}

#deck {
  display: flex;
  height: 100vh;
  width: 100vw;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  flex: 0 0 100vw;
  height: 100vh;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(27, 154, 170, 0.07), transparent 40%, rgba(201, 162, 39, 0.05));
}

.slide-inner {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.kicker {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ibb-teal);
  margin-bottom: 0.75rem;
}

h1.pres-title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.15;
  color: #fff;
}

.intro-body {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  max-width: 52ch;
}

.grid-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
}

.kpi-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.kpi-card .val {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.chart-wrap {
  position: relative;
  height: min(52vh, 520px);
  max-width: 920px;
  margin: 1.5rem auto 0;
}

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.chart-controls label {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-right: 0.35rem;
}

.chart-controls select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
}

.total-bar {
  margin-top: 1.25rem;
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--ibb-gold);
}

.matrix-scroll {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}

.matrix-table {
  border-collapse: collapse;
  width: 100%;
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
}

.matrix-table th,
.matrix-table td {
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  white-space: nowrap;
}

.matrix-table th:nth-child(1),
.matrix-table td:nth-child(1) {
  text-align: left;
  min-width: 160px;
  white-space: normal;
  max-width: 320px;
}

.matrix-table th:nth-child(2),
.matrix-table td:nth-child(2) {
  text-align: center;
  min-width: 72px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.matrix-table thead th {
  background: rgba(13, 59, 102, 0.65);
  font-weight: 600;
}

.matrix-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.hint {
  position: fixed;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 0.75rem;
  opacity: 0.55;
  z-index: 10;
}

.badge-ibb {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(27, 154, 170, 0.25);
  border: 1px solid rgba(27, 154, 170, 0.45);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.entries-mini {
  margin-top: 1rem;
  max-height: 22vh;
  overflow: auto;
  font-size: 0.78rem;
  opacity: 0.92;
}

.entries-mini table {
  width: 100%;
  border-collapse: collapse;
}

.entries-mini th, .entries-mini td {
  padding: 0.25rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
