/* Champion Sim — Phone simulation styles */

:root {
  --color-champion: #14b8a6;
  --color-champion-dark: #0f766e;
  --color-champion-light: #ccfbf1;

  --champion-phone-width: 390px;
  --champion-phone-height: 844px;
  --champion-statusbar-height: 44px;
  --champion-home-indicator-height: 34px;
  --champion-app-grid-gap: 28px;
  --champion-app-icon-size: 60px;
  --champion-app-icon-radius: 14px;
  --champion-bg-light: #f3f4f6;
  --champion-bg-dark: #111827;
  --champion-text-primary: #111827;
  --champion-text-secondary: #6b7280;
  --champion-divider: #e5e7eb;
}

.champion-sim {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  min-height: calc(100vh - 64px);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
}

/* Hide the site footer on the sim page — full immersion. */
body:has(.champion-sim) .site-footer { display: none; }

.champion-sim__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(8px);
}

.champion-sim__header-left,
.champion-sim__header-right { flex: 1; display: flex; align-items: center; }
.champion-sim__header-right { justify-content: flex-end; }

.champion-sim__back {
  color: #cbd5e1; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
}
.champion-sim__back:hover { color: #fff; }

.champion-sim__title { color: #fff; font-weight: 600; font-size: 16px; }

.champion-sim__reset {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1; padding: 6px 12px; border-radius: 6px;
  font-size: 13px; cursor: pointer;
}
.champion-sim__reset:hover { color: #fff; border-color: #fff; }

.champion-sim__main {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
}

.champion-intro { max-width: 560px; text-align: center; color: #f1f5f9; }
.champion-intro__title {
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 32px;
  line-height: 1.2; color: #fff; margin: 0 0 16px;
}
.champion-intro__subtitle {
  font-size: 16px; line-height: 1.6; color: #cbd5e1; margin: 0 0 32px;
}
.champion-intro__pickup {
  background: var(--color-champion); color: #fff; border: 0;
  padding: 14px 32px; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.champion-intro__pickup:hover { background: var(--color-champion-dark); }

.champion-intro__history {
  margin-top: 40px; text-align: left;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px; padding: 16px 20px;
}
.champion-intro__history-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #94a3b8; margin: 0 0 12px;
}
.champion-intro__history-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 14px;
}
.champion-intro__history-item:last-child { border-bottom: 0; }
.champion-intro__resolution--saved { color: #34d399; }
.champion-intro__resolution--partial { color: #fbbf24; }
.champion-intro__resolution--lost { color: #f87171; }
.champion-intro__footnote { margin-top: 24px; font-size: 13px; color: #94a3b8; }
.champion-intro__footnote a { color: var(--color-champion); text-decoration: none; }
.champion-intro__footnote a:hover { text-decoration: underline; }

.champion-phone {
  width: min(var(--champion-phone-width), calc((100vh - 180px) * (390 / 844)));
  height: min(var(--champion-phone-height), calc(100vh - 180px));
  aspect-ratio: 390 / 844;
  border-radius: 48px; background: #000; padding: 12px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 4px #1f2937;
  position: relative; overflow: hidden;
}
.champion-sim__main {
  padding: 16px;
}
.champion-phone__screen {
  width: 100%; height: 100%; border-radius: 36px;
  background: var(--champion-bg-light);
  position: relative; overflow: hidden;
  color: var(--champion-text-primary);
  display: flex; flex-direction: column;
}
.champion-phone__statusbar {
  height: var(--champion-statusbar-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; font-weight: 600; font-size: 15px;
  flex-shrink: 0; position: relative; z-index: 10;
}
.champion-phone__statusbar-time { font-variant-numeric: tabular-nums; }
.champion-phone__statusbar-icons {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px;
}
.champion-phone__viewport { flex: 1; position: relative; overflow: hidden; }
.champion-phone__home-indicator {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; background: rgba(0,0,0,0.4); border-radius: 3px;
  z-index: 100; cursor: pointer;
}

.champion-home {
  position: absolute; inset: 0;
  background-image: linear-gradient(135deg, #fbbf24 0%, #f472b6 50%, #818cf8 100%);
  padding: 16px 16px 60px; overflow-y: auto;
}
.champion-home__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--champion-app-grid-gap) 8px; padding-top: 16px;
}

.champion-app-icon {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  text-align: center; position: relative;
  min-width: 0;
  width: 100%;
}
.champion-app-icon__tile {
  width: 100%;
  max-width: var(--champion-app-icon-size);
  aspect-ratio: 1;
  border-radius: var(--champion-app-icon-radius);
  display: grid; place-items: center;
  font-size: clamp(18px, calc((100% / 60) * 30), 30px); color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.champion-app-icon__label {
  font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  font-weight: 500; width: 100%; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.champion-app-icon__badge {
  position: absolute; top: -4px; right: 18%;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: #ef4444; color: #fff;
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}

.champion-app-view {
  position: absolute; inset: 0;
  background: var(--champion-bg-light); z-index: 50;
  display: flex; flex-direction: column;
  animation: champion-app-open 0.18s ease-out;
}
@keyframes champion-app-open {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.champion-notification {
  position: absolute; top: 8px; left: 8px; right: 8px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 400; cursor: pointer;
  animation: champion-notification-in 0.25s ease-out;
}
@keyframes champion-notification-in {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.champion-notification__row {
  display: flex; align-items: center; gap: 10px;
}
.champion-notification__icon {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 18px; color: #fff;
}
.champion-notification__body { flex: 1; min-width: 0; }
.champion-notification__title { font-weight: 600; font-size: 13px; }
.champion-notification__text { font-size: 13px; color: #4b5563; }
.champion-notification__time { font-size: 11px; color: #6b7280; flex-shrink: 0; }

/* Shared app chrome — used by every Tier 1/2/3 app */

.champion-app__navbar {
  height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--champion-divider);
  background: #fff;
}
.champion-app__navbar-title {
  font-size: 17px; font-weight: 600; flex: 1; text-align: center;
}
.champion-app__navbar-action {
  background: transparent; border: 0; color: var(--color-champion);
  font-size: 16px; cursor: pointer; padding: 4px 8px;
}
.champion-app__body {
  flex: 1; overflow-y: auto;
  background: var(--champion-bg-light);
}
.champion-app__placeholder {
  padding: 48px 24px; text-align: center;
  color: var(--champion-text-secondary); font-size: 14px;
}

/* Settings — list group rows */
.champion-settings-list { background: #fff; }
.champion-settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--champion-divider);
  font-size: 15px;
}

/* Calculator */
.champion-calc {
  display: flex; flex-direction: column; height: 100%;
  background: #000; color: #fff;
}
.champion-calc__display {
  flex: 1; display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 24px; font-size: 64px; font-weight: 200;
}
.champion-calc__keys {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 8px 12px 24px;
}
.champion-calc__key {
  height: 64px; border-radius: 32px; border: 0; font-size: 28px;
  background: #333; color: #fff; cursor: pointer;
  transition: filter 0.08s, transform 0.08s;
  user-select: none;
}
.champion-calc__key:hover { filter: brightness(1.2); }
.champion-calc__key:active { transform: scale(0.94); filter: brightness(1.4); }
.champion-calc__key--op { background: #f59e0b; }
.champion-calc__key--util { background: #a3a3a3; color: #000; }
.champion-calc__key--zero { grid-column: span 2; border-radius: 32px; text-align: left; padding-left: 28px; }

/* Messages app */
.champion-msg__list { background: #fff; }
.champion-msg__list-item {
  display: flex; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--champion-divider); cursor: pointer;
  align-items: center;
}
.champion-msg__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-weight: 600; flex-shrink: 0;
}
.champion-msg__list-body { flex: 1; min-width: 0; }
.champion-msg__list-name { font-weight: 600; font-size: 15px; }
.champion-msg__list-snippet {
  font-size: 13px; color: var(--champion-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.champion-msg__list-time {
  font-size: 12px; color: var(--champion-text-secondary); flex-shrink: 0;
}
.champion-msg__thread {
  display: flex; flex-direction: column; height: 100%;
  background: var(--champion-bg-light);
}
.champion-msg__bubbles {
  flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.champion-msg__bubble {
  max-width: 75%; padding: 8px 14px; border-radius: 18px;
  font-size: 15px; line-height: 1.3; word-wrap: break-word;
}
.champion-msg__bubble--them {
  background: #e5e5ea; color: #000; align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.champion-msg__bubble--me {
  background: #007aff; color: #fff; align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.champion-msg__compose {
  position: static; flex-shrink: 0;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--champion-divider);
  padding: 8px 12px; display: flex; gap: 8px; align-items: center;
}
.champion-msg__compose input {
  flex: 1; border: 1px solid var(--champion-divider);
  border-radius: 18px; padding: 8px 14px; font-size: 15px; outline: none;
}
.champion-msg__compose input:focus { border-color: var(--color-champion); }
.champion-msg__send-btn {
  background: var(--color-champion); color: #fff; border: 0;
  width: 32px; height: 32px; border-radius: 16px; cursor: pointer;
  display: grid; place-items: center;
}
.champion-msg__send-btn:disabled { background: #cbd5e1; }
.champion-msg__quick {
  position: static; flex-shrink: 0;
  padding: 8px 12px; background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--champion-divider);
  display: flex; flex-direction: column; gap: 6px;
}
.champion-msg__quick-btn {
  background: #fff; border: 1px solid var(--champion-divider);
  border-radius: 16px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.champion-msg__quick-btn:hover { background: var(--color-champion-light); }

/* Phone app */
.champion-phone-app__tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-bottom: 1px solid var(--champion-divider);
}
.champion-phone-app__tab {
  text-align: center; padding: 8px 0; font-size: 12px;
  color: var(--champion-text-secondary); cursor: pointer; border: 0;
  background: transparent;
}
.champion-phone-app__tab--active { color: var(--color-champion); }
.champion-phone-app__recents { background: #fff; }
.champion-phone-app__recent {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--champion-divider);
}
.champion-phone-app__recent-name { flex: 1; font-weight: 600; }
.champion-phone-app__recent-meta {
  font-size: 13px; color: var(--champion-text-secondary);
}
.champion-phone-app__call-screen {
  position: absolute; inset: 0; z-index: 300;
  background: linear-gradient(180deg, #1f2937, #000); color: #fff;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 32px 20px 24px;
  gap: 16px;
}
.champion-phone-app__caller-block {
  text-align: center; flex-shrink: 0;
  display: flex; align-items: center; gap: 12px; justify-content: flex-start;
}
.champion-phone-app__caller-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 600; color: #fff;
  margin: 0; flex-shrink: 0;
}
.champion-phone-app__caller-name { font-size: 18px; font-weight: 500; text-align: left; }
.champion-phone-app__caller-status { font-size: 12px; opacity: 0.65; margin-top: 1px; text-align: left; }
.champion-phone-app__call-bottom { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.champion-phone-app__call-actions {
  display: flex; gap: 48px; align-items: center; justify-content: center;
}
.champion-phone-app__call-btn {
  width: 60px; height: 60px; border-radius: 50%; border: 0;
  cursor: pointer; display: grid; place-items: center;
  font-size: 24px; color: #fff;
}
.champion-phone-app__call-btn--accept { background: #22c55e; }
.champion-phone-app__call-btn--decline { background: #ef4444; }
.champion-phone-app__call-btn--hangup { background: #ef4444; }
.champion-phone-app__call-btn--secondary {
  background: rgba(255,255,255,0.15); width: 48px; height: 48px; font-size: 16px;
}
.champion-phone-app__call-actions-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  width: 100%; max-width: 240px;
}
/* Live call transcript — side panel beside the phone, not inside it. */
.champion-call-transcript-side {
  flex: 0 1 360px;
  align-self: stretch;
  max-width: min(360px, 30vw);
  height: min(var(--champion-phone-height), calc(100vh - 140px));
  background: linear-gradient(180deg, #0b1224 0%, #111827 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  padding: 22px 22px 24px;
  color: #f1f5f9;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  animation: champion-side-in 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition: opacity 0.4s ease;
}
.champion-call-transcript-side--ended { opacity: 0.7; }

.champion-call-transcript-side__header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  flex-shrink: 0;
}
.champion-call-transcript-side__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.champion-call-transcript-side__title { min-width: 0; flex: 1; }
.champion-call-transcript-side__name {
  font-size: 16px; font-weight: 600; color: #fff;
}
.champion-call-transcript-side__status {
  font-size: 12px; color: #94a3b8; margin-top: 2px;
  text-transform: lowercase;
  display: flex; align-items: center;
}
.champion-call-transcript-side__live {
  display: inline-flex; align-items: center; gap: 6px;
  color: #34d399;
}
.champion-call-transcript-side__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  animation: champion-call-pulse 1.4s ease-in-out infinite;
}
@keyframes champion-call-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

.champion-call-transcript-side__lines {
  flex: 1 1 0; min-height: 0; overflow-y: auto;
  font-size: 16px; line-height: 1.55;
  display: flex; flex-direction: column; gap: 14px;
  padding-right: 4px;
}
.champion-call-transcript-side__lines p { margin: 0; color: #e2e8f0; }
.champion-call-transcript-side__lines p strong { color: #cbd5e1; opacity: 0.85; }
.champion-call-transcript-side__placeholder {
  color: #64748b; font-style: italic;
}

/* Caller-block centered variant — used inside the call screen now that
   the transcript moved out of the phone. */
.champion-phone-app__caller-block--centered {
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.champion-phone-app__caller-block--centered .champion-phone-app__caller-name { text-align: center; font-size: 26px; font-weight: 300; }
.champion-phone-app__caller-block--centered .champion-phone-app__caller-status { text-align: center; }
.champion-phone-app__caller-block--centered .champion-phone-app__caller-avatar {
  width: 96px; height: 96px; font-size: 30px; margin-bottom: 16px;
}

/* Wells Fargo */
.champion-wf {
  background: linear-gradient(180deg, #d52b1e 0%, #b91c1c 220px, var(--champion-bg-light) 220px);
  min-height: 100%;
}
.champion-wf__brand { padding: 16px 20px 0; color: #fff; font-weight: 700; letter-spacing: 0.04em; }
.champion-wf__greeting { padding: 8px 20px 16px; color: rgba(255,255,255,0.85); font-size: 14px; }
.champion-wf__cards { padding: 0 16px; }
.champion-wf__card {
  background: #fff; border-radius: 12px; padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 12px;
}
.champion-wf__card-label {
  font-size: 12px; color: var(--champion-text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.champion-wf__card-balance {
  font-size: 28px; font-weight: 600; color: var(--champion-text-primary); margin: 4px 0;
}
.champion-wf__card-meta { font-size: 13px; color: var(--champion-text-secondary); }
.champion-wf__quick-actions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 0 16px 16px;
}
.champion-wf__qa {
  background: #fff; border: 1px solid var(--champion-divider);
  border-radius: 10px; padding: 12px 4px; font-size: 12px;
  font-weight: 600;
  text-align: center; color: var(--champion-text-primary); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s;
}
.champion-wf__qa:hover { background: var(--champion-bg-light); border-color: #cbd5e1; }
.champion-wf__qa--danger { color: #dc2626; }
.champion-wf__qa-icon { font-size: 22px; }

/* Pending transaction (e.g., fraudulent wire during damage control) */
.champion-wf__pending-section {
  background: #fff; padding: 12px 16px;
  border-top: 1px solid var(--champion-divider);
}
.champion-wf__pending-label {
  font-size: 12px; font-weight: 700; color: #b45309;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.champion-wf__pending {
  background: #fef3c7; border: 1px solid #fcd34d; border-radius: 10px;
  padding: 12px; margin-bottom: 8px;
}
.champion-wf__pending--cancelled {
  background: #f3f4f6; border-color: var(--champion-divider);
  opacity: 0.65;
}
.champion-wf__pending-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
}
.champion-wf__pending-label-row { flex: 1; min-width: 0; }
.champion-wf__pending-title { font-weight: 600; font-size: 14px; }
.champion-wf__pending-meta {
  font-size: 12px; color: var(--champion-text-secondary); margin-top: 2px;
}
.champion-wf__pending-amount {
  font-weight: 700; font-size: 16px; color: #b91c1c;
  font-variant-numeric: tabular-nums;
}
.champion-wf__pending--cancelled .champion-wf__pending-amount {
  color: var(--champion-text-secondary); text-decoration: line-through;
}
.champion-wf__pending-status {
  font-size: 12px; color: #b45309; margin-top: 8px;
  border-top: 1px solid rgba(180, 83, 9, 0.2); padding-top: 6px;
}
.champion-wf__pending-status strong {
  color: #b91c1c; font-variant-numeric: tabular-nums;
}
.champion-wf__pending-status--cancelled {
  color: #166534; border-top-color: var(--champion-divider);
}
.champion-wf__txns { background: #fff; padding: 0 16px; }
.champion-wf__txn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--champion-divider);
}
.champion-wf__txn:last-child { border-bottom: 0; }
.champion-wf__txn-label { font-size: 14px; }
.champion-wf__txn-meta { font-size: 12px; color: var(--champion-text-secondary); }
.champion-wf__txn-amount { font-size: 14px; font-weight: 600; }
.champion-wf__txn-amount--credit { color: #16a34a; }
.champion-wf__sheet-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 100; display: flex; align-items: flex-end;
}
.champion-wf__sheet {
  background: #fff; width: 100%; border-top-left-radius: 16px;
  border-top-right-radius: 16px; padding: 24px 20px;
}
.champion-wf__sheet h3 { margin: 0 0 8px; font-size: 18px; }
.champion-wf__sheet p { margin: 0 0 16px; color: var(--champion-text-secondary); font-size: 14px; }
.champion-wf__sheet-actions { display: flex; gap: 8px; }
.champion-wf__sheet-btn {
  flex: 1; padding: 12px; border-radius: 10px; border: 0; font-size: 15px;
  font-weight: 600; cursor: pointer;
}
.champion-wf__sheet-btn--confirm { background: #dc2626; color: #fff; }
.champion-wf__sheet-btn--cancel { background: #f3f4f6; color: var(--champion-text-primary); }

/* Post-mortem — overlay variant (mobile / narrow viewports) */
.champion-postmortem {
  position: absolute; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
}
.champion-postmortem .champion-postmortem__panel {
  background: #fff; color: var(--champion-text-primary);
  width: 100%; max-width: 360px; max-height: 90%;
  overflow-y: auto; border-radius: 16px; padding: 24px;
}

/* Post-mortem — side panel variant (wide viewports, sits next to phone) */
.champion-postmortem-side {
  flex: 0 1 520px;
  align-self: stretch;
  max-width: min(520px, 42vw);
  max-height: min(var(--champion-phone-height), calc(100vh - 180px));
  display: flex;
  animation: champion-side-in 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.champion-postmortem-side .champion-postmortem__panel {
  background: #fff; color: var(--champion-text-primary);
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.champion-postmortem-side .champion-postmortem__header {
  padding: 24px 26px 0;
  flex-shrink: 0;
}
/* Sections live in an internal scroller — if total content exceeds the
   panel height, only this region scrolls. Header (verdict/title/elapsed)
   stays pinned at top, Continue stays pinned at bottom. */
.champion-postmortem-side .champion-postmortem__sections {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 0 26px;
}
.champion-postmortem-side .champion-postmortem__refs {
  flex-shrink: 0;
  padding: 12px 26px 0;
  border-top: 1px solid var(--champion-divider);
}
.champion-postmortem-side .champion-postmortem__refs h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--champion-text-secondary); margin: 0 0 6px;
}
.champion-postmortem-side .champion-postmortem__continue {
  margin: 12px 26px 24px; padding: 12px;
  flex-shrink: 0;
}
/* Tighten typography in the side panel so content fits without scrolling. */
.champion-postmortem-side .champion-postmortem__title { font-size: 20px; margin: 8px 0 2px; }
.champion-postmortem-side .champion-postmortem__elapsed { font-size: 12px; margin-bottom: 10px; }
.champion-postmortem-side .champion-postmortem__section { margin-top: 14px; }
.champion-postmortem-side .champion-postmortem__section h4 { margin: 0 0 4px; font-size: 11px; }
.champion-postmortem-side .champion-postmortem__section p { font-size: 13.5px; line-height: 1.45; margin: 0; }
.champion-postmortem-side .champion-postmortem__links { gap: 4px; margin-top: 6px; }
.champion-postmortem-side .champion-postmortem__link { padding: 6px 10px; font-size: 12.5px; }
.champion-postmortem-side .champion-postmortem__continue {
  margin-top: auto; padding: 10px; font-size: 14px;
}
@keyframes champion-side-in {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* Side-panel-aware main: align phone+retro side by side, room for retro */
.champion-sim__main {
  gap: 24px;
}
.champion-postmortem__verdict {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.champion-postmortem__verdict--saved { background: #dcfce7; color: #166534; }
.champion-postmortem__verdict--partial { background: #fef9c3; color: #854d0e; }
.champion-postmortem__verdict--lost { background: #fee2e2; color: #991b1b; }
.champion-postmortem__title {
  font-family: 'Source Serif 4', serif; font-size: 22px; font-weight: 700;
  margin: 12px 0 4px;
}
.champion-postmortem__elapsed {
  font-size: 13px; color: var(--champion-text-secondary); margin-bottom: 16px;
}
.champion-postmortem__section { margin-top: 20px; }
.champion-postmortem__section h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--champion-text-secondary); margin: 0 0 8px;
}
.champion-postmortem__section p { font-size: 15px; line-height: 1.5; margin: 0 0 8px; }
.champion-postmortem__links {
  display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
}
.champion-postmortem__link {
  display: block; padding: 10px 12px; border-radius: 8px;
  background: var(--champion-bg-light); color: var(--champion-text-primary);
  text-decoration: none; font-size: 14px;
}
.champion-postmortem__link:hover { background: var(--color-champion-light); }
.champion-postmortem__continue {
  margin-top: 24px; width: 100%; padding: 12px;
  background: var(--color-champion); color: #fff; border: 0;
  border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer;
}
