:root {
  color-scheme: light;
  --ink: #172054;
  --ink-deep: #0b103b;
  --blue: #3478d3;
  --blue-dark: #252a86;
  --blue-light: #70d8f4;
  --red: #ee4054;
  --red-dark: #a91f3c;
  --yellow: #ffd84d;
  --yellow-hot: #ffb928;
  --cream: #fff7d9;
  --paper: #fffdf3;
  --pink: #fa8eb5;
  --green: #4ac492;
  --muted: #64719b;
  --edge: rgba(58, 72, 148, .24);
  --edge-light: rgba(255, 255, 255, .72);
  --soft-shadow: 0 14px 34px rgba(13, 18, 75, .16);
  --topbar-bg: rgba(20, 23, 91, .94);
  --site-content-width: 1260px;
  font-family: "Trebuchet MS", Verdana, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: #171a69; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 216, 77, .28) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 12%, rgba(112, 216, 244, .3) 0 4px, transparent 5px),
    linear-gradient(135deg, transparent 0 46%, rgba(255,255,255,.035) 46% 54%, transparent 54%) 0 0 / 74px 74px,
    #171a69;
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  width: 360px;
  aspect-ratio: 1;
  border: 52px solid rgba(255,255,255,.035);
  border-radius: 50%;
}

body::before { left: -190px; top: 220px; }
body::after { right: -210px; bottom: -120px; }
button { font: inherit; }
.topbar .brand { color: #fff; }

main {
  width: min(1260px, calc(100% - 38px));
  margin: 0 auto;
  padding: 30px 0 28px;
}

.report-header {
  position: relative;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) 155px auto;
  align-items: center;
  min-height: 210px;
  margin: 8px 0 22px;
  border: 6px solid var(--cream);
  border-radius: 32px;
  background: var(--red);
  box-shadow: 0 22px 48px rgba(3, 5, 38, .24), inset 0 7px rgba(255,255,255,.28);
  overflow: hidden;
}

.report-header::before {
  position: absolute;
  inset: 18px 152px;
  content: "";
  border: 3px solid rgba(169, 31, 60, .38);
  border-radius: 24px;
  background:
    radial-gradient(circle, rgba(255,255,255,.14) 0 2px, transparent 3px) 0 0 / 18px 18px,
    var(--cream);
  box-shadow: inset 0 -8px #efd895, inset 0 5px #fff;
}

.marquee-bulbs {
  position: absolute;
  inset: 6px;
  z-index: 3;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
}

.marquee-bulbs i {
  width: 11px;
  height: 11px;
  border: 2px solid #7d182e;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 9px #fff5a8;
  animation: bulbFlash 1.4s steps(2) infinite;
}

.marquee-bulbs i:nth-child(even) { animation-delay: .7s; }

.report-copy {
  position: relative;
  z-index: 2;
  grid-column: 2;
  padding: 30px 18px;
  text-align: center;
}

.eyebrow,
.slide-number {
  margin: 0 0 7px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border: 2px solid var(--red-dark);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 216, 77, .35);
  animation: livePulse 1.4s infinite;
}

.report-header h1 {
  margin: 0;
  color: var(--blue-dark);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(48px, 6.4vw, 82px);
  font-weight: 900;
  letter-spacing: .005em;
  line-height: .9;
  text-transform: uppercase;
  transform: rotate(-1deg);
  text-shadow: 3px 3px 0 var(--blue-light), 5px 5px 0 rgba(23,32,84,.14);
}

.report-header h1 span {
  display: inline-block;
  color: var(--red);
  text-shadow: 3px 3px 0 var(--yellow), 5px 5px 0 rgba(23,32,84,.14);
  transform: rotate(2deg);
}

.lede {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mascot {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  width: 138px;
  height: 170px;
}

.mascot img {
  position: absolute;
  bottom: 8px;
  width: 138px;
  height: 138px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 10px rgba(107,24,47,.2));
  animation: mascotDance 1.1s steps(2, jump-none) infinite;
}

.mascot-clefairy { grid-column: 1; }
.mascot-pikachu { grid-column: 3; }
.mascot-pikachu img { animation-delay: -.55s; }

.music-notes {
  position: absolute;
  z-index: 3;
  right: 3px;
  top: 6px;
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 37px;
  font-weight: 900;
  text-shadow: 2px 2px var(--red-dark);
  animation: noteFloat 1.4s ease-in-out infinite;
}

.report-actions {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  border: 2px solid rgba(169, 31, 60, .48);
  border-radius: 99px;
  background: var(--yellow);
  color: var(--ink-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  padding: 7px 13px;
  box-shadow: 0 7px 16px rgba(107,24,47,.18), inset 0 3px rgba(255,255,255,.5);
  transition: transform .15s, box-shadow .15s;
}

.share-button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(107,24,47,.22), inset 0 3px rgba(255,255,255,.5); }
.share-button:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(107,24,47,.16); }
.share-button svg { width: 16px; fill: currentColor; }

.save-card-button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 5px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.save-card-button:disabled { cursor: wait; opacity: .5; }
.updated { display: none; }

.story-nav {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 0 18px;
}

.story-tab {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  min-height: 68px;
  border: 2px solid rgba(255,255,255,.68);
  border-radius: 15px 15px 8px 8px;
  background: #b8c4df;
  color: #45547f;
  cursor: pointer;
  padding: 9px 13px;
  text-align: left;
  box-shadow: 0 8px 18px rgba(7,10,54,.15), inset 0 4px rgba(255,255,255,.6);
  transition: transform .16s, background .16s;
}

.story-tab span {
  grid-row: 1 / 3;
  align-self: center;
  color: rgba(23,32,84,.46);
  font-family: Impact, sans-serif;
  font-size: 27px;
}

.story-tab b { align-self: end; font-size: 14px; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.story-tab small { font-size: 10px; font-weight: 800; }
.story-tab:hover { transform: translateY(-2px); }
.story-tab.active { background: var(--yellow); color: var(--ink); transform: translateY(1px); box-shadow: 0 8px 18px rgba(255,185,40,.2), inset 0 4px rgba(255,255,255,.62); }
.story-tab.active span { color: var(--red); }

.story-viewport {
  position: relative;
  margin-top: -5px;
  border: 7px solid #e2e7f4;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(3,5,38,.3), inset 0 0 0 3px #fff;
  overflow: hidden;
}

.story-viewport::before {
  position: absolute;
  z-index: 5;
  inset: 8px;
  content: "";
  border: 2px solid rgba(23,32,84,.17);
  border-radius: 15px;
  pointer-events: none;
}

.screen-scanlines {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(23,32,84,.018) 5px);
  pointer-events: none;
}

.story-track { display: flex; transition: transform .65s cubic-bezier(.2,.86,.3,1); }

.story-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 590px;
  padding: 42px 48px 34px;
  overflow: hidden;
}

.story-slide::before {
  position: absolute;
  right: -105px;
  bottom: -160px;
  content: "";
  width: 380px;
  height: 380px;
  border: 40px solid rgba(23,32,84,.045);
  border-radius: 50%;
}

.slide-heading { position: relative; z-index: 2; }
.slide-heading h2 {
  max-width: 850px;
  margin: 0;
  color: var(--ink);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: .98;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(112,216,244,.45);
}

.slide-heading > p:last-child,
.slide-heading > div > p:last-child {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.slide-heading.compact { display: flex; align-items: end; justify-content: space-between; gap: 26px; }
.pulse-slide { background: radial-gradient(circle at 15% 90%, rgba(255,216,77,.35), transparent 25%), #fff9dc; }
.pulse-slide .slide-number { color: var(--red); }
.pulse-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; margin-top: 30px; }

.hero-stat {
  position: relative;
  display: flex;
  min-height: 295px;
  flex-direction: column;
  justify-content: center;
  border: 3px solid rgba(112,216,244,.72);
  border-radius: 24px;
  background:
    radial-gradient(circle, rgba(112,216,244,.25) 0 3px, transparent 4px) 0 0 / 28px 28px,
    var(--blue-dark);
  color: #fff;
  padding: 30px 190px 30px 35px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.12), inset 0 -12px rgba(11,16,59,.16), var(--soft-shadow);
  overflow: hidden;
}

.metric-kicker { margin: 0; color: var(--yellow); font-size: 13px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.hero-stat strong { display: block; margin: 0; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(72px, 9vw, 120px); letter-spacing: .025em; line-height: 1; text-shadow: 5px 5px 0 #10144d; font-variant-numeric: tabular-nums; }
.metric-detail { margin: 7px 0 0; color: #d7e5ff; font-weight: 750; }
.metric-detail b { color: var(--yellow); font-size: 19px; }

.counter-pokemon {
  position: absolute;
  right: 28px;
  bottom: 18px;
  width: 155px;
  height: 155px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 13px rgba(11,16,59,.24));
  animation: counterBounce 1.3s ease-in-out infinite;
}

.coin-burst i { position: absolute; color: var(--yellow); font-style: normal; font-weight: 950; animation: coinTwinkle 1.5s steps(2) infinite; }
.coin-burst i:nth-child(1) { right: 44px; top: 31px; font-size: 22px; }
.coin-burst i:nth-child(2) { right: 153px; top: 45px; }
.coin-burst i:nth-child(3) { right: 23px; top: 108px; animation-delay: -.7s; }
.coin-burst i:nth-child(4) { right: 166px; bottom: 32px; animation-delay: -.7s; }
.coin-burst i:nth-child(5) { right: 110px; top: 18px; font-size: 13px; }

.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-stats article { position: relative; min-height: 139px; border: 2px solid var(--edge-light); border-radius: 18px; padding: 19px; box-shadow: inset 0 4px rgba(255,255,255,.55), 0 10px 24px rgba(23,32,84,.12); }
.trainer-ticket { background: #c6eff8; }
.ball-ticket { background: #f7a8bb; }
.spark-ticket { background: var(--yellow); }
.gift-ticket { background: #aee8d7; }
.mini-stats p { max-width: 78%; margin: 0; color: var(--ink); font-size: 11px; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.mini-stats strong { display: block; margin-top: 2px; font-family: Impact, "Arial Black", sans-serif; font-size: 38px; letter-spacing: .03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mini-stats small { color: rgba(23,32,84,.68); font-weight: 800; }
.stat-icon { position: absolute; right: 15px; top: 15px; width: 29px; height: 29px; }
.stat-art { display: grid; right: 7px; top: 3px; width: 68px; height: 68px; place-items: center; }
.stat-art img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 6px 7px rgba(23,32,84,.16)); }
.trainer-stat-art { top: -1px; width: 76px; height: 76px; }
.ball-stat-art { right: 10px; top: 9px; width: 54px; height: 54px; }
.spark-icon { color: var(--red); font-size: 35px; line-height: .8; }
.gift-stat-art { right: 8px; top: 7px; width: 61px; height: 57px; }
.gift-box { position: relative; display: block; width: 126px; height: 118px; filter: drop-shadow(0 15px 9px rgba(63,38,34,.2)); transform: scale(.48); transform-origin: top left; }
.gift-box-body, .gift-box-lid, .gift-ribbon-vertical, .gift-ribbon-horizontal, .gift-bow { position: absolute; display: block; }
.gift-box-body { right: 9px; bottom: 2px; left: 9px; height: 77px; border: 2px solid #84273b; border-radius: 4px 4px 9px 9px; background: linear-gradient(135deg, #e75e79, #ca3e58); }
.gift-box-lid { top: 29px; left: 1px; z-index: 2; width: 124px; height: 28px; border: 2px solid #84273b; border-radius: 7px; background: #ed6c83; }
.gift-ribbon-vertical { top: 30px; bottom: 2px; left: 52px; z-index: 3; width: 22px; background: linear-gradient(90deg, #e7bd56, #ffe69b, #d39a32); }
.gift-ribbon-horizontal { top: 38px; left: 2px; z-index: 3; width: 121px; height: 12px; background: linear-gradient(#ffe69b, #d9a53b); }
.gift-bow { top: 3px; z-index: 4; width: 55px; height: 36px; border: 2px solid #a97522; background: linear-gradient(145deg, #ffeaa3, #d89c32); }
.gift-bow.bow-left { left: 13px; border-radius: 80% 20% 70% 30%; transform: rotate(14deg); }
.gift-bow.bow-right { right: 13px; border-radius: 20% 80% 30% 70%; transform: rotate(-14deg); }
.scene-callout { position: relative; z-index: 2; margin: 21px 0 0; color: var(--ink); font-size: 12px; font-weight: 850; text-align: center; }
.scene-callout span { display: inline-block; margin: 0 8px; border: 1px solid var(--edge); border-radius: 99px; background: #fff; padding: 3px 9px; font-size: 10px; }
.scene-callout b { color: var(--red); font-size: 18px; }

.trade-slide { background: linear-gradient(#c9f2ff 0 44%, #fff7d9 44%); }
.trade-slide::after { position: absolute; left: 0; right: 0; top: 43%; content: ""; height: 28px; border-block: 2px solid rgba(52,120,211,.18); background: repeating-linear-gradient(90deg, var(--red) 0 42px, #fff 42px 84px, var(--blue) 84px 126px, #fff 126px 168px); }
.trade-slide .slide-number { color: var(--blue); }
.period-switch { position: relative; z-index: 2; display: flex; gap: 5px; border: 2px solid rgba(52,120,211,.22); border-radius: 14px; background: rgba(37,42,134,.12); padding: 4px; box-shadow: 0 8px 20px rgba(11,16,59,.1); }
.period-switch button { border: 0; border-radius: 7px; background: #eef4ff; color: #69769e; cursor: pointer; font-size: 10px; font-weight: 950; padding: 9px 12px; text-transform: uppercase; }
.period-switch button.active { background: var(--yellow); color: var(--ink); box-shadow: inset 0 -3px var(--yellow-hot); }

.stage-lights { position: absolute; left: 21%; right: 21%; top: 132px; height: 270px; pointer-events: none; }
.stage-lights i { position: absolute; top: 0; width: 120px; height: 320px; background: linear-gradient(rgba(255,255,255,.65), transparent 80%); clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%); transform-origin: top; opacity: .45; }
.stage-lights i:first-child { left: 7%; transform: rotate(9deg); }
.stage-lights i:nth-child(2) { left: calc(50% - 60px); }
.stage-lights i:last-child { right: 7%; transform: rotate(-9deg); }

.podium { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; gap: 15px; min-height: 350px; margin: 13px auto 0; }
.podium::after { position: absolute; z-index: -1; left: 9%; right: 9%; bottom: 0; content: ""; height: 18px; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: var(--red); box-shadow: 0 10px 24px rgba(238,64,84,.2); }
.podium-place { position: relative; display: grid; width: min(28%, 245px); justify-items: center; text-align: center; animation: podiumRise .7s both; }
.podium-place[data-place="1"] { order: 2; }
.podium-place[data-place="2"] { order: 1; }
.podium-place[data-place="3"] { order: 3; }
.pokemon-sprite-wrap { position: relative; display: grid; width: 116px; height: 116px; place-items: center; border: 2px solid rgba(255,255,255,.9); border-radius: 22px; background: #fff; box-shadow: 0 12px 26px rgba(23,32,84,.14), inset 0 -7px #d9f5ff; transform: rotate(-2deg); }
.podium-place[data-place="1"] .pokemon-sprite-wrap { width: 150px; height: 150px; border-color: rgba(255,255,255,.85); background: var(--yellow); box-shadow: 0 14px 30px rgba(238,64,84,.17), inset 0 -9px var(--yellow-hot); transform: rotate(2deg); }
.podium-place[data-place="3"] .pokemon-sprite-wrap { transform: rotate(2deg); }
.pokemon-sprite-wrap::before,
.pokemon-sprite-wrap::after { position: absolute; content: "★"; color: var(--yellow-hot); font-size: 21px; animation: starPop 1s steps(2) infinite; }
.pokemon-sprite-wrap::before { left: -24px; top: 10px; }
.pokemon-sprite-wrap::after { right: -24px; bottom: 8px; animation-delay: -.5s; }
.podium-place[data-place="1"] .pokemon-sprite-wrap::before,
.podium-place[data-place="1"] .pokemon-sprite-wrap::after { color: var(--red); }
.pokemon-sprite-wrap img { width: 92%; height: 92%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 6px 9px rgba(23,32,84,.14)); }
.medal { position: absolute; z-index: 2; right: -15px; top: -15px; display: grid; width: 40px; height: 40px; place-items: center; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: #dbe6f2; color: var(--ink); font-family: Impact, sans-serif; font-size: 21px; box-shadow: 0 7px 14px rgba(23,32,84,.14); }
.podium-place[data-place="1"] .medal { background: var(--yellow); color: var(--red-dark); }
.podium-place[data-place="3"] .medal { background: #e9a16f; }
.podium-place h3 { margin: 7px 0 0; font-family: "Arial Black", sans-serif; font-size: 18px; line-height: 1.1; text-transform: uppercase; }
.podium-place p { margin: 2px 0 9px; color: var(--red-dark); font-size: 12px; font-weight: 900; }
.podium-block { display: grid; width: 100%; place-items: center; border: 2px solid rgba(255,255,255,.88); border-bottom: 0; border-radius: 11px 11px 0 0; background: #ebf2ff; color: var(--blue-dark); font-family: Impact, sans-serif; font-size: 42px; box-shadow: inset 0 7px rgba(255,255,255,.75), 0 10px 24px rgba(23,32,84,.1); }
.podium-place[data-place="1"] .podium-block { height: 115px; background: var(--yellow); color: var(--red); }
.podium-place[data-place="2"] .podium-block { height: 82px; }
.podium-place[data-place="3"] .podium-block { height: 58px; background: #f5c4a4; }
.podium-note { position: relative; z-index: 2; margin: 8px 0 0; color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; }
.empty-state { max-width: 520px; margin: auto; color: var(--muted); font-weight: 800; text-align: center; }

.confetti i { position: absolute; z-index: 1; width: 9px; height: 17px; background: var(--red); animation: confettiFall 4s linear infinite; }
.confetti i:nth-child(1) { left: 8%; top: 12%; }
.confetti i:nth-child(2) { left: 18%; top: 26%; background: var(--yellow); animation-delay: -2s; }
.confetti i:nth-child(3) { left: 34%; top: 18%; background: var(--blue); animation-delay: -1s; }
.confetti i:nth-child(4) { right: 8%; top: 14%; background: var(--yellow); animation-delay: -2.8s; }
.confetti i:nth-child(5) { right: 20%; top: 30%; background: var(--pink); animation-delay: -.5s; }
.confetti i:nth-child(6) { right: 34%; top: 18%; background: var(--green); animation-delay: -3s; }
.confetti i:nth-child(7) { left: 13%; top: 60%; background: var(--green); animation-delay: -1.6s; }
.confetti i:nth-child(8) { right: 12%; top: 61%; background: var(--blue); animation-delay: -2.2s; }

.trainer-slide { background: radial-gradient(circle at 50% 100%, rgba(255,216,77,.32), transparent 34%), #f5e9ff; }
.trainer-slide .slide-number { color: #8a51c4; }
.trainer-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; margin-top: 29px; }
.trainer-card { position: relative; min-height: 316px; border: 3px solid rgba(255,255,255,.78); border-radius: 24px; padding: 27px 195px 25px 27px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.32), inset 0 -12px rgba(23,32,84,.06), 0 14px 30px rgba(23,32,84,.13); overflow: hidden; }
.active-trainer { background: #ffcb58; }
.performer-trainer { background: #79dbca; }
.trainer-card::before { position: absolute; right: -48px; top: -56px; content: ""; width: 260px; height: 260px; border: 28px solid rgba(255,255,255,.35); border-radius: 50%; }
.trainer-label { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 12px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.badge { display: grid; min-width: 42px; height: 36px; place-items: center; border: 2px solid rgba(255,255,255,.82); border-radius: 9px; background: var(--red); color: #fff; font-family: "Arial Black", sans-serif; font-size: 12px; box-shadow: 0 7px 14px rgba(107,24,47,.16); }
.performer-trainer .badge { background: var(--blue); }
.trainer-mascot { position: absolute; z-index: 2; right: 25px; bottom: 38px; width: 166px; height: 166px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 9px 12px rgba(23,32,84,.15)); animation: trainerCheer 1.4s steps(2) infinite; }
.performer-trainer .trainer-mascot { animation-delay: -.7s; }
.trainer-card .generation { position: relative; z-index: 2; margin: 44px 0 5px; color: rgba(23,32,84,.66); font-size: 11px; font-weight: 950; text-transform: uppercase; }
.trainer-card h3 { position: relative; z-index: 2; max-width: 100%; margin: 0; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(30px, 3.2vw, 43px); font-weight: 900; letter-spacing: .015em; line-height: .96; text-transform: uppercase; overflow-wrap: anywhere; }
.trainer-score { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; margin-top: 23px; }
.trainer-score strong { font-family: Impact, sans-serif; font-size: 43px; line-height: 1; }
.trainer-score span { color: rgba(23,32,84,.7); font-size: 10px; font-weight: 950; line-height: 1.1; text-transform: uppercase; }
.rating-arc { position: absolute; z-index: 3; right: 32px; top: 54px; display: grid; width: 115px; height: 62px; place-items: center; border: 2px solid rgba(255,255,255,.85); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 22px rgba(23,32,84,.13); }
.rating-arc span { align-self: end; font-family: Impact, sans-serif; font-size: 28px; line-height: 1; }
.rating-arc small { align-self: start; font-size: 8px; font-weight: 950; text-transform: uppercase; }
.win-line { position: relative; z-index: 2; margin: 25px 0 0; color: rgba(23,32,84,.7); font-size: 11px; font-weight: 900; }
.win-line b { color: var(--ink); font-family: Impact, sans-serif; font-size: 24px; }
.win-line b.tower-rank-name { font-family: inherit; font-size: 14px; line-height: 1.25; }
.world-slide { isolation: isolate; background: #31245f; color: #fff; }
.world-slide::before { display: none; }
.credits-sky { position: absolute; z-index: 0; inset: 0; overflow: hidden; background: linear-gradient(180deg, #32265f 0%, #665096 34%, #e87586 68%, #ffbe68 100%); }
.credits-sky::after { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(28,22,73,.07), transparent 53%, rgba(16,12,54,.24)); }
.credits-star { position: absolute; z-index: 2; width: 4px; height: 4px; border-radius: 50%; background: #fff8c7; box-shadow: 0 0 9px #fff8c7; animation: creditsStar 2.4s ease-in-out infinite; }
.credits-star.one { left: 8%; top: 12%; }
.credits-star.two { left: 31%; top: 21%; animation-delay: -.8s; }
.credits-star.three { left: 52%; top: 10%; animation-delay: -1.5s; }
.credits-star.four { left: 67%; top: 28%; animation-delay: -.3s; }
.credits-sun { position: absolute; z-index: 1; left: 37%; bottom: 126px; width: 128px; height: 128px; border-radius: 50%; background: #fff3a0; box-shadow: 0 0 0 15px rgba(255,226,123,.12), 0 0 55px 22px rgba(255,219,116,.5); animation: creditsSun 3.4s ease-in-out infinite; }
.credits-clouds { position: absolute; z-index: 1; left: 0; width: 100%; opacity: .2; background-repeat: repeat-x; }
.credits-clouds.far { top: 29%; height: 31px; background-image: radial-gradient(ellipse 31px 15px at 34px 27px, #fff 96%, transparent), radial-gradient(ellipse 22px 12px at 63px 21px, #fff 96%, transparent); background-size: 132px 31px; animation: creditsCloudsFar 96s linear infinite; }
.credits-clouds.near { top: 43%; height: 42px; background-image: radial-gradient(ellipse 43px 20px at 47px 37px, #ffd8d2 96%, transparent), radial-gradient(ellipse 29px 16px at 88px 29px, #ffd8d2 96%, transparent); background-size: 184px 42px; animation: creditsCloudsNear 120s linear infinite; }
.credits-mountains { position: absolute; z-index: 2; left: -5%; width: 110%; clip-path: polygon(0 100%, 0 72%, 8% 38%, 14% 68%, 23% 24%, 33% 70%, 43% 33%, 52% 73%, 62% 19%, 70% 68%, 81% 30%, 90% 70%, 100% 42%, 100% 100%); }
.credits-mountains.far { bottom: 88px; height: 185px; background: #715282; opacity: .72; }
.credits-mountains.near { bottom: 50px; height: 150px; background: #392d65; clip-path: polygon(0 100%, 0 57%, 11% 27%, 21% 66%, 32% 21%, 44% 70%, 57% 37%, 68% 73%, 80% 25%, 91% 65%, 100% 46%, 100% 100%); }
.credits-road { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 105px; border-top: 5px solid rgba(255,221,132,.58); background: linear-gradient(180deg, #302552, #17163a); overflow: hidden; }
.credits-road::after { position: absolute; left: 0; top: 48%; width: 100%; height: 4px; content: ""; background: repeating-linear-gradient(90deg, transparent 0 54px, #f6cf7f 54px 91px); transform: perspective(180px) rotateX(44deg); animation: creditsRoad 18s linear infinite; }
.trainer-danmaku { position: absolute; z-index: 4; inset: 145px 0 70px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.trainer-danmaku-lane { position: absolute; right: 0; left: 0; top: var(--top); overflow: hidden; }
.trainer-danmaku-track { display: flex; width: max-content; will-change: transform; animation: trainerDanmakuFlow var(--duration) linear var(--delay) infinite; }
.trainer-danmaku-sequence { display: flex; flex: none; align-items: center; gap: 52px; padding-right: 52px; }
.trainer-danmaku span { max-width: 250px; flex: none; border-radius: 5px; background: rgba(28,19,70,.16); color: #fff7e8; padding: 2px 5px; font-size: 13px; font-weight: 950; letter-spacing: .04em; line-height: 1; opacity: .38; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 4px rgba(28,18,68,.72); white-space: nowrap; }
.trainer-danmaku span.featured { color: #ffe16d; opacity: .55; }
.world-credits-copy { position: relative; z-index: 5; width: 55%; text-shadow: 0 3px 0 rgba(29,19,71,.26), 0 8px 22px rgba(24,17,64,.2); }
.world-credits-copy .slide-number { margin-bottom: 7px; color: #ffe27a; }
.world-credits-copy h2 { max-width: 600px; margin: 0; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(48px, 5.2vw, 68px); font-weight: 900; letter-spacing: .01em; line-height: .9; text-transform: uppercase; }
.world-credits-copy > p:last-of-type { max-width: 510px; margin: 13px 0 0; color: #fff3dd; font-size: 15px; font-weight: 800; line-height: 1.45; }
.world-credit-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.world-credit-summary span { border: 2px solid rgba(255,255,255,.4); border-radius: 99px; background: rgba(28,21,72,.48); padding: 7px 12px; color: #fff5e5; font-size: 9px; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; box-shadow: inset 0 2px rgba(255,255,255,.1); backdrop-filter: blur(5px); }
.world-credit-summary b { margin-right: 4px; color: #ffe16d; font-family: Impact, sans-serif; font-size: 17px; letter-spacing: .03em; }
.world-credits-card { position: absolute; z-index: 6; top: 27px; right: 34px; bottom: 54px; display: flex; width: 38%; flex-direction: column; border: 3px solid rgba(255,255,255,.6); border-radius: 20px; background: linear-gradient(180deg, rgba(19,19,69,.92), rgba(34,20,78,.84)); box-shadow: 0 18px 40px rgba(24,14,65,.28), inset 0 0 0 3px rgba(255,255,255,.06); overflow: hidden; backdrop-filter: blur(8px); }
.world-credits-card-title { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 8px; margin: 0; border-bottom: 1px solid rgba(255,255,255,.18); background: rgba(11,16,59,.72); padding: 12px 14px; color: #fff; font-size: 9px; font-weight: 950; letter-spacing: .1em; }
.world-credits-card-title b { color: #ffe16d; }
.world-credits-window { position: relative; flex: 1; overflow-y: auto; scrollbar-color: #ffe16d #17163a; scrollbar-width: thin; }
.world-credits-roll { position: relative; padding: 16px 17px 20px; }
.credits-chapter + .credits-chapter { margin-top: 30px; }
.credits-chapter-title { margin: 0 0 13px; color: #ffe16d; font-family: Impact, "Arial Black", sans-serif; font-size: 19px; letter-spacing: .07em; line-height: 1.05; text-align: center; }
.location-credits { display: grid; gap: 6px; }
.location-credits p { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; border-bottom: 1px dotted rgba(255,255,255,.28); padding: 4px 2px 7px; color: #fff; font-size: 10px; font-weight: 900; }
.location-credits p.unknown { border: 1px solid rgba(255,225,109,.36); border-radius: 9px; background: rgba(255,225,109,.1); padding: 7px 8px; color: #fff0a6; }
.location-credits b { color: #fedb72; font-size: 9px; text-align: right; text-transform: uppercase; }
.world-community-thanks { display: grid; gap: 3px; border-top: 1px solid rgba(255,255,255,.18); background: rgba(11,16,59,.72); padding: 10px 14px; text-align: center; }
.world-community-thanks b { color: #ffe16d; font-size: 9px; letter-spacing: .08em; }
.world-community-thanks span { color: #fff; font-size: 8px; font-weight: 900; letter-spacing: .04em; }
.credits-ending { position: absolute; z-index: 7; right: 44%; bottom: 18px; left: 48px; display: flex; justify-content: space-between; border: 2px solid rgba(255,255,255,.38); border-radius: 99px; background: rgba(22,18,62,.62); padding: 8px 14px; color: #fff; font-size: 10px; font-weight: 950; letter-spacing: .08em; box-shadow: inset 0 2px rgba(255,255,255,.1); backdrop-filter: blur(5px); }
.credits-ending b { color: #ffe16d; }

.assistant-slide { background: linear-gradient(#efe5ff 0 44%, #e4fff6 44%); }
.assistant-slide::after { position: absolute; left: 0; right: 0; top: 43%; content: ""; height: 28px; border-block: 2px solid rgba(138,81,196,.18); background: repeating-linear-gradient(90deg, #8a51c4 0 42px, #fff 42px 84px, var(--green) 84px 126px, #fff 126px 168px); }
.assistant-slide .slide-number { color: #8a51c4; }
.assistant-stamp { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; border: 3px solid rgba(255,255,255,.88); border-radius: 18px; background: var(--yellow); padding: 12px 17px; box-shadow: 0 10px 22px rgba(23,32,84,.13), inset 0 -5px var(--yellow-hot); transform: rotate(2deg); }
.assistant-stamp span { color: var(--red); font-family: Impact, sans-serif; font-size: 34px; line-height: 1; }
.assistant-stamp b { font-size: 9px; line-height: 1.05; text-transform: uppercase; }
.assistant-podium { min-height: 315px; margin-top: 7px; }
.assistant-podium .podium-place p { color: #6d3ca2; }
.assistant-breakdown { position: relative; z-index: 2; display: flex; justify-content: center; gap: 8px; margin: 7px auto 0; }
.assistant-breakdown span { border: 2px solid rgba(255,255,255,.82); border-radius: 99px; background: var(--paper); color: var(--muted); padding: 6px 12px; font-size: 10px; font-weight: 900; text-transform: uppercase; box-shadow: 0 7px 15px rgba(23,32,84,.09); }
.assistant-breakdown b { color: var(--red); font-family: Impact, sans-serif; font-size: 17px; letter-spacing: .03em; }

.story-controls { display: flex; align-items: center; justify-content: flex-end; gap: 11px; margin: 24px 8px 0; color: #fff; }
.story-controls > button { display: grid; width: 46px; height: 46px; place-items: center; border: 2px solid rgba(255,255,255,.38); border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 9px 20px rgba(4,7,47,.2), inset 0 4px rgba(255,255,255,.35); transition: transform .15s, box-shadow .15s; }
.story-controls > button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(4,7,47,.24), inset 0 4px rgba(255,255,255,.35); }
.story-controls > button:disabled { opacity: .35; cursor: not-allowed; }
.story-controls > button span { font-size: 13px; }
.story-controls > p { margin: 0 6px; font-family: Impact, sans-serif; font-size: 17px; letter-spacing: .08em; }
.control-copy { display: grid; gap: 4px; margin-right: auto; }
.control-copy small { color: #b8c4e7; font-size: 9px; font-weight: 950; letter-spacing: .12em; }
.progress { display: flex; gap: 7px; }
.progress button { width: 39px; height: 10px; min-height: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; background: #7b85bd; cursor: pointer; padding: 0; box-shadow: none; }
.progress button.active { background: var(--yellow); }

@keyframes bulbFlash { 50% { background: #fff; box-shadow: 0 0 12px #fff; } }
@keyframes livePulse { 50% { transform: scale(.72); opacity: .55; } }
@keyframes mascotDance { 50% { transform: translateY(-9px) rotate(4deg); } }
@keyframes trainerCheer { 50% { transform: translateY(-7px) rotate(-3deg); } }
@keyframes noteFloat { 50% { transform: translateY(-9px) rotate(8deg); } }
@keyframes counterBounce { 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes coinTwinkle { 50% { opacity: .25; transform: scale(.7) rotate(45deg); } }
@keyframes podiumRise { from { opacity: 0; transform: translateY(45px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes starPop { 50% { opacity: .25; transform: scale(.65) rotate(35deg); } }
@keyframes confettiFall { 0% { transform: translateY(-30px) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(370px) rotate(520deg); opacity: 0; } }
@keyframes creditsStar { 50% { opacity: .28; transform: scale(.55); } }
@keyframes creditsSun { 50% { box-shadow: 0 0 0 20px rgba(255,226,123,.09), 0 0 65px 27px rgba(255,219,116,.55); } }
@keyframes creditsCloudsFar { to { background-position: -132px 0, -132px 0; } }
@keyframes creditsCloudsNear { to { background-position: 184px 0, 184px 0; } }
@keyframes creditsRoad { to { background-position: 91px 0; } }
@keyframes trainerDanmakuFlow { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  main { width: min(100% - 24px, 760px); }
  .report-header { grid-template-columns: 115px minmax(0,1fr) 115px; min-height: 220px; }
  .report-header::before { inset-inline: 110px; }
  .mascot { width: 110px; height: 155px; }
  .mascot img { width: 110px; height: 110px; }
  .report-actions { right: 16px; bottom: 13px; }
  .story-tab { grid-template-columns: 1fr; text-align: center; }
  .story-tab span { display: none; }
  .story-tab b { align-self: center; }
  .story-tab small { display: none; }
  .story-slide { min-height: 690px; padding: 35px 30px 28px; }
  .slide-heading.compact { align-items: start; flex-direction: column; }
  .pulse-layout { grid-template-columns: 1fr; }
  .hero-stat { min-height: 230px; }
  .world-credits-copy { width: 49%; }
  .world-credits-copy h2 { font-size: 49px; }
  .world-credits-card { right: 24px; width: 44%; }
  .credits-ending { right: 49%; left: 30px; }
  .trainer-card { padding-right: 145px; }
  .trainer-mascot { right: 12px; width: 130px; height: 130px; }
  .rating-arc { right: 20px; transform: scale(.82); }
}

@media (max-width: 650px) {
  main { width: calc(100% - 14px); padding-top: 17px; }
  .report-header { display: block; min-height: 247px; border-width: 5px; border-radius: 25px; }
  .report-header::before { inset: 14px 66px 62px; }
  .report-copy { padding: 40px 67px 70px; }
  .report-header h1 { font-size: clamp(38px, 11vw, 58px); }
  .lede { font-size: 10px; }
  .eyebrow { font-size: 9px; }
  .mascot { position: absolute; bottom: 47px; width: 82px; height: 90px; }
  .mascot img { width: 82px; height: 82px; bottom: 0; }
  .mascot-clefairy { left: 4px; }
  .mascot-pikachu { right: 3px; }
  .music-notes { font-size: 24px; }
  .report-actions { left: 14px; right: 14px; bottom: 11px; justify-content: center; }
  .share-button { min-height: 35px; padding: 5px 10px; }
  .save-card-button { font-size: 10px; }
  .updated { display: none; }
  .story-nav { gap: 4px; padding: 0 5px; }
  .story-tab { min-height: 53px; border-width: 2px; padding: 7px 4px; box-shadow: 0 7px 14px rgba(7,10,54,.13), inset 0 3px rgba(255,255,255,.6); }
  .story-tab b { font-size: 10px; }
  .story-viewport { border-width: 6px; border-radius: 21px; }
  .story-slide { min-height: 760px; padding: 28px 17px 23px; }
  .slide-heading h2 { font-size: 38px; }
  .slide-heading > p:last-child, .slide-heading > div > p:last-child { font-size: 13px; }
  .pulse-layout { margin-top: 22px; }
  .hero-stat { min-height: 230px; padding: 25px 115px 25px 22px; border-width: 2px; }
  .hero-stat strong { font-size: 63px; }
  .counter-pokemon { right: 9px; width: 105px; height: 105px; }
  .mini-stats { gap: 7px; }
  .mini-stats article { min-height: 117px; border-width: 2px; padding: 14px; }
  .mini-stats p { max-width: 70%; font-size: 9px; }
  .mini-stats strong { font-size: 30px; }
  .stat-art { right: 3px; width: 56px; height: 56px; }
  .trainer-stat-art { top: 0; width: 62px; height: 62px; }
  .ball-stat-art { right: 7px; top: 9px; width: 45px; height: 45px; }
  .scene-callout { font-size: 10px; }
  .period-switch { align-self: stretch; justify-content: space-between; border-width: 3px; }
  .period-switch button { flex: 1; padding: 8px 3px; }
  .stage-lights { top: 170px; }
  .podium { gap: 4px; min-height: 350px; margin-top: 20px; }
  .podium-place { width: 32%; }
  .pokemon-sprite-wrap { width: 82px; height: 82px; border-width: 2px; }
  .podium-place[data-place="1"] .pokemon-sprite-wrap { width: 100px; height: 100px; }
  .medal { right: -9px; top: -12px; width: 31px; height: 31px; border-width: 3px; font-size: 16px; }
  .podium-place h3 { max-width: 100%; font-size: 11px; overflow-wrap: anywhere; }
  .podium-place p { font-size: 9px; }
  .podium-block { border-width: 2px; font-size: 31px; }
  .podium-place[data-place="1"] .podium-block { height: 100px; }
  .trainer-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .trainer-card { min-height: 244px; border-width: 3px; padding: 20px 120px 20px 20px; }
  .trainer-card .generation { margin-top: 27px; }
  .trainer-card h3 { font-size: 29px; }
  .trainer-score { margin-top: 14px; }
  .trainer-mascot { right: 5px; bottom: 25px; width: 112px; height: 112px; }
  .rating-arc { right: 10px; top: 50px; transform: scale(.68); transform-origin: right top; }
  .world-credits-copy { width: 100%; }
  .world-credits-copy h2 { max-width: 330px; font-size: 40px; }
  .world-credits-copy > p:last-of-type { max-width: 335px; margin-top: 8px; font-size: 11px; line-height: 1.35; }
  .world-credit-summary { gap: 5px; margin-top: 11px; }
  .world-credit-summary span { border-width: 1px; padding: 4px 7px; font-size: 7px; }
  .world-credit-summary b { font-size: 13px; }
  .credits-star, .credits-clouds, .credits-mountains.far { display: none; }
  .credits-sun { left: 68%; bottom: 475px; width: 86px; height: 86px; animation: none; }
  .credits-mountains.near { bottom: 420px; height: 105px; }
  .credits-road { bottom: 390px; height: 70px; }
  .credits-road::after { animation: none; }
  .trainer-danmaku { inset: 195px 0 410px; }
  .trainer-danmaku-sequence { gap: 36px; padding-right: 36px; }
  .trainer-danmaku span { max-width: 165px; padding: 2px 4px; font-size: 10px; opacity: .34; }
  .trainer-danmaku span.featured { opacity: .48; }
  .world-credits-card { top: 370px; right: 14px; bottom: 48px; left: 14px; width: auto; border-width: 2px; border-radius: 16px; }
  .world-credits-card-title { padding: 9px 11px; font-size: 8px; }
  .world-credits-roll { padding: 13px 13px 24px; }
  .credits-chapter-title { margin-bottom: 10px; font-size: 16px; }
  .location-credits { gap: 4px; }
  .location-credits p { padding-bottom: 5px; font-size: 9px; }
  .location-credits b { font-size: 8px; }
  .world-community-thanks { padding: 8px 10px; }
  .credits-ending { right: 17px; bottom: 12px; left: 17px; padding: 6px 10px; font-size: 8px; }
  .assistant-stamp { display: none; }
  .assistant-podium { min-height: 350px; margin-top: 20px; }
  .assistant-breakdown { flex-wrap: wrap; }
  .assistant-breakdown span { padding: 5px 9px; font-size: 8px; }
  .story-controls { margin-top: 20px; }
  .control-copy small { display: none; }
  .progress button { width: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .story-track { transition: none; }
  .trainer-danmaku { display: none; }
}
