: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); }
.mini-stats article:last-child { grid-column: 1 / -1; }
.trainer-ticket { background: #c6eff8; }
.ball-ticket { background: #f7a8bb; }
.spark-ticket { background: var(--yellow); }
.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; }
.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; }
.rising-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); }
.rising-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; }
.rising-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; }
.world-slide { background: radial-gradient(circle at 16% 67%, rgba(112,216,244,.3), transparent 23%), #eaf6ff; }
.world-slide .slide-number { color: var(--blue); }
.world-stamp { display: flex; align-items: center; gap: 10px; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; background: var(--yellow); padding: 15px 22px; box-shadow: 0 10px 22px rgba(23,32,84,.13); transform: rotate(4deg); }
.world-stamp span { color: var(--red); font-family: Impact, sans-serif; font-size: 31px; }
.world-stamp b { font-size: 9px; line-height: 1.05; }
.world-layout { position: relative; z-index: 2; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 54px; margin-top: 21px; }
.globe { position: relative; width: min(300px, 72vw); aspect-ratio: 1; margin: auto; border: 4px solid rgba(255,255,255,.72); border-radius: 50%; background: radial-gradient(circle at 32% 27%, #a5efff, #42a5dd 57%, #2876bb); box-shadow: inset -22px -15px 0 rgba(23,32,84,.1), 0 16px 32px rgba(23,32,84,.14); animation: globeFloat 3.2s ease-in-out infinite; }
.globe::before,
.globe::after { position: absolute; content: ""; background: #68ce83; border: 2px solid rgba(255,255,255,.48); border-radius: 52% 48% 40% 60%; }
.globe::before { left: 28px; top: 52px; width: 94px; height: 57px; transform: rotate(19deg); }
.globe::after { right: 30px; bottom: 58px; width: 88px; height: 73px; transform: rotate(-16deg); }
.globe-grid { position: absolute; z-index: 2; inset: 10%; border: 2px solid rgba(255,255,255,.35); border-radius: 50%; background: repeating-linear-gradient(90deg, transparent 0 49px, rgba(255,255,255,.2) 50px 51px), repeating-linear-gradient(0deg, transparent 0 49px, rgba(255,255,255,.2) 50px 51px); clip-path: circle(50%); }
.globe-ring { position: absolute; z-index: 3; left: -35px; right: -35px; top: 43%; height: 44px; border: 5px solid var(--yellow); border-radius: 50%; transform: rotate(-12deg); box-shadow: 0 0 0 1px rgba(255,255,255,.65); }
.globe img { position: absolute; z-index: 5; right: -28px; top: -45px; width: 105px; height: 105px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 7px 10px rgba(23,32,84,.16)); animation: mascotDance 1.1s steps(2) infinite; }
.pin { position: absolute; z-index: 4; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(255,255,255,.42); animation: livePulse 1.4s infinite; }
.pin.one { left: 24%; top: 36%; }
.pin.two { right: 20%; top: 40%; animation-delay: -.5s; }
.pin.three { left: 51%; bottom: 21%; animation-delay: -1s; }
.country-board { border: 3px solid rgba(52,120,211,.28); border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 3px #e7eef8, 0 14px 30px rgba(23,32,84,.12); overflow: hidden; }
.board-title { display: grid; grid-template-columns: 50px 1fr auto; gap: 9px; margin: 0; border-bottom: 0; background: var(--blue-dark); color: #fff; padding: 12px 17px; font-size: 9px; font-weight: 950; letter-spacing: .09em; }
.country-list { display: grid; gap: 2px; padding: 8px 13px 13px; }
.country-row { display: grid; grid-template-columns: 35px minmax(110px, 165px) 1fr 48px; align-items: center; gap: 10px; min-height: 43px; border-bottom: 2px dashed #ced8e7; }
.country-row:last-child { border-bottom: 0; }
.country-rank { color: var(--red); font-family: Impact, sans-serif; font-size: 19px; }
.country-name { font-size: 12px; font-weight: 950; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-bar { height: 12px; border: 1px solid rgba(52,120,211,.22); border-radius: 99px; background: #dfe8f4; overflow: hidden; }
.country-bar span { display: block; width: var(--width); height: 100%; border-radius: 99px; background: repeating-linear-gradient(135deg, var(--red) 0 8px, #ff7686 8px 16px); transform-origin: left; animation: barGrow .8s both; }
.country-count { color: var(--blue-dark); font-family: Impact, sans-serif; font-size: 18px; text-align: right; }
.closing-line { position: relative; z-index: 2; display: flex; justify-content: space-between; margin-top: 20px; border: 2px solid rgba(255,255,255,.82); border-radius: 99px; background: var(--yellow); color: var(--ink); padding: 9px 17px; font-size: 12px; font-weight: 950; box-shadow: 0 9px 20px rgba(255,185,40,.15); }
.closing-line b { color: var(--red); }

.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 globeFloat { 50% { transform: translateY(-8px) rotate(1deg); } }
@keyframes barGrow { from { transform: scaleX(0); } }

@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, .world-layout { grid-template-columns: 1fr; }
  .hero-stat { min-height: 230px; }
  .world-layout { gap: 24px; }
  .globe { width: 210px; }
  .country-board { width: 100%; }
  .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-stamp { display: none; }
  .world-layout { margin-top: 17px; gap: 18px; }
  .globe { width: 186px; border-width: 3px; }
  .country-board { border-width: 3px; }
  .board-title { grid-template-columns: 33px 1fr auto; padding: 9px 10px; }
  .country-list { padding: 5px 8px 9px; }
  .country-row { grid-template-columns: 28px minmax(75px, 105px) 1fr 35px; gap: 6px; min-height: 38px; }
  .country-name { font-size: 9px; }
  .country-count { font-size: 15px; }
  .closing-line { margin-top: 14px; font-size: 9px; }
  .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; }
}
