:root {
  color-scheme: dark;
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --bg: #050911;
  --surface: #111c2c;
  --surface-raised: #17263b;
  --ink: #edf3ff;
  --muted: #aabbd5;
  --line: #364864;
  --accent: #eed39e;
  --gold: #ffdb7d;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --shadow: 0 18px 48px #02020bb0;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-width: 300px; min-height: 100vh; color: var(--ink); background-color: var(--bg);
  background-image: radial-gradient(ellipse at 50% -18%, #1d3358 0, #101b30 32%, transparent 67%),
    radial-gradient(ellipse at 50% 65%, #0d1b2c 0, transparent 65%);
  background-repeat: no-repeat;
}
button { cursor: pointer; color: inherit; font: inherit; }
button:disabled { cursor: default; }
button:focus-visible { outline: 3px solid #c5b4ff; outline-offset: 4px; }
.scene-heading:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.masthead { border-bottom: 1px solid #adc3e32d; background: #09111de8; }
.masthead-inner, .shell { width: min(510px, calc(100% - 28px)); margin-inline: auto; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 53px; }
.brand, .header-actions { display: flex; align-items: center; }
.brand { gap: 8px; font-weight: 850; font-size: .89rem; letter-spacing: .04em; }
.brand-mark {
  width: 27px; height: 27px; flex: none; position: relative; border-radius: 7px;
  border: 1px solid #d1af7189; background: linear-gradient(155deg, #29415d, #101b29);
  box-shadow: 0 0 13px #e1bc722e;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 5px;
  background: radial-gradient(circle at center, #fff1c9 1.25px, transparent 1.6px) 0 0 / 5px 5px;
}
.header-actions { gap: 4px; }
.header-button {
  border: 1px solid transparent; border-radius: 6px; padding: 6px 7px;
  background: transparent; color: var(--muted); font-weight: 750; font-size: .875rem;
}
.header-button:hover { border-color: var(--line); background: var(--surface); color: var(--ink); }
.sound-button { display: inline-flex; gap: 5px; align-items: center; }
.sound-status { color: #fff3cc; background: #4c3c27; border-radius: 4px; padding: 2px 4px; font: 700 .72rem var(--mono); }
.sound-button[aria-pressed="false"] .sound-status { background: #282a43; color: var(--muted); }

.shell { padding-block: 20px 40px; }
.eyebrow { color: var(--accent); font-size: .875rem; letter-spacing: .12em; font-weight: 850; }
.note { color: var(--muted); font-size: .875rem; line-height: 1.65; }
.lede { color: #ddd9ef; line-height: 1.72; font-size: 1rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: 9px 16px; border: 1px solid #565981; border-radius: 8px;
  background: linear-gradient(180deg, #30314e, #1a1c35); color: #f1eaff;
  font-weight: 850; text-align: center;
  transition: background-color .16s, border-color .16s, box-shadow .16s, transform .16s;
}
.button:not(:disabled):active { transform: translateY(2px); }
.button:hover:not(:disabled) { border-color: #baa4ff; background: #353054; }
.button-primary {
  color: #fff5e3; border-color: #ffc477;
  background: linear-gradient(180deg, #ff8760 0%, #e24b3f 30%, #b41529 77%, #8b1024 100%);
  box-shadow: inset 0 1px 0 #fff0c6, 0 4px 0 #571422, 0 0 16px #fe665141;
  text-shadow: 0 1px 3px #521722;
}
.button-primary:hover:not(:disabled) {
  color: #fff9ed; border-color: #fff0cb;
  background: linear-gradient(180deg, #ff9d73, #f45746 40%, #b9172b);
}
.button-primary:active:not(:disabled) { box-shadow: inset 0 1px 0 #fff0c6, 0 2px 0 #571422; }
.button:disabled { color: #c4c4d9; background: #292b45; border-color: #424461; box-shadow: none; }

.cover {
  position: relative; isolation: isolate; display: grid; align-items: end;
  min-height: clamp(450px, 74svh, 620px); overflow: hidden;
  border: 1px solid #8b754e; border-radius: 17px;
  background: #0d1626; box-shadow: inset 0 0 0 3px #141c2b, 0 20px 60px #050912, 0 0 35px #648bdb35;
}
.cover-photo { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #0b0a18 2%, #100f2282 24%, transparent 49%, #0f0b2585 70%, #0c0b1f 91%);
}
.cover-content { min-height: inherit; display: flex; flex-direction: column; align-items: center; padding: 34px 18px 27px; text-align: center; }
.cover h1 { margin: 10px 0 0; font: 900 clamp(3.2rem, 10vw, 4.8rem)/1.03 var(--serif); letter-spacing: -.06em; }
.cover h1 span { display: block; color: #f3f6ff; text-shadow: 0 4px 0 #172945, 0 0 28px #72a6ec94, 0 3px 18px #080f1c; }
.cover h1 span + span { color: var(--gold); }
.cover .eyebrow { color: #e4d5ff; text-shadow: 0 1px 10px #070514; }
.cover .lede { margin-top: auto; margin-bottom: 15px; color: #fbf6ff; text-shadow: 0 1px 7px #0b081a; }
.cover .button { width: min(100%, 290px); min-height: 53px; }
.cover-route {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 13px 0 0;
  padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #161529;
  list-style: none;
}
.cover-route li { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 4px; font-size: .81rem; font-weight: 800; }
.cover-route li + li { border-left: 1px solid var(--line); }
.route-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #b097f6; box-shadow: 0 0 7px #b097f677; }
.cover-route li:last-child .route-dot { background: var(--gold); }

.game-header { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-bottom: 13px; padding: 0 2px; }
.game-header h1 { margin-top: 4px; font: 850 clamp(1.98rem, 7vw, 2.7rem)/1.14 var(--serif); letter-spacing: -.035em; }
.game-header .lede { margin-top: 6px; font-size: .9rem; }
.school-badge {
  border: 1px solid #826942; border-radius: 5px; background: #212639;
  color: #ffe9b8; font-weight: 800; padding: 5px 7px; font-size: .8rem; text-align: center;
}
.game-columns, .main-column, .sidebar { display: grid; gap: 12px; min-width: 0; }
.sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.panel-heading { padding: 12px 12px 9px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 11px; }
.panel-heading h2, .side-panel h2 { font-size: .96rem; font-weight: 850; }
.side-panel { padding: 11px 10px; }
.side-panel h2 { margin-bottom: 9px; }
.side-panel .note { margin-top: 4px; }
.progress-parts { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.progress-part { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .875rem; font-weight: 750; }
.year-pips { display: flex; justify-content: end; gap: 4px; }
.year-pip { width: 13px; height: 8px; border-radius: 2px; background: #343c58; }
.year-pip.current { background: #263c56; outline: 1px solid #9dcfff; outline-offset: 1px; }
.side-detail { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; border-top: 1px solid #414165; padding-top: 8px; margin-top: 9px; font-size: .875rem; }
.data-number, .score-number, .reel-number, .big-value { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.side-mock { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; color: var(--muted); padding: 4px 0; font-size: .875rem; }
.side-mock + .side-mock { border-top: 1px solid #363757; }
.side-mock .data-number { color: var(--gold); font-size: 1rem; font-weight: 850; }
.section-note { color: var(--muted); font-size: .875rem; }
.section-note .data-number { color: var(--ink); }

.reel-panel {
  --cell-height: clamp(79px, 13svh, 116px);
  position: relative; isolation: isolate; border: 1px solid #826f4c; border-radius: 13px;
  background: linear-gradient(155deg, #28364f, #131e31 37%, #0b1323 73%, #212d43);
  box-shadow: inset 0 0 0 3px #0c1421, inset 0 0 28px #a1b7d528, var(--shadow);
}
.reel-panel .panel-heading { border-bottom: 1px solid #897db547; padding: 11px 12px; }
.cabinet-rail { display: flex; align-items: center; justify-content: center; gap: 5px; height: 25px; padding: 0 13px; }
.cabinet-rail i { width: 6px; height: 6px; border-radius: 50%; background: #68617f; }
.cabinet-rail i:nth-of-type(2n) { background: #a28fd8; }
.cabinet-message { flex: 1; max-width: 210px; text-align: center; color: var(--gold); font-size: .79rem; font-weight: 900; letter-spacing: .15em; }
.is-spinning .cabinet-rail i { background: #bb9fff; box-shadow: 0 0 9px #ba86ff; animation: lamp 1s ease-in-out infinite alternate; }
.is-spinning .cabinet-rail i:nth-of-type(2n) { animation-delay: .3s; }
@keyframes lamp { from { opacity: .48; } to { opacity: 1; } }

.reel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 11px 12px; }
.ability { min-width: 0; padding: 5px; border-radius: 7px; border: 1px solid #46546d; background: #080f1bba; }
.ability-head { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 3px; padding: 0 1px; }
.ability-head h3 { color: #ede8ff; font-size: .93rem; font-weight: 850; }
.stat-value { color: #f9f4ff; font: 850 1.09rem var(--mono); }
.stat-max { color: #b6aecb; font: 600 .68rem var(--mono); }
.reel {
  --reel-ink: #e1def5; --reel-halo: #9594c451;
  position: relative; height: calc(var(--cell-height) + 2px); overflow: hidden; isolation: isolate;
  margin: 5px 0 0; border: 1px solid #5a6380; border-radius: 6px;
  background: radial-gradient(ellipse at 50% 52%, var(--reel-halo), transparent 71%),
    linear-gradient(180deg, #02050d, #111d31 48%, #040916 100%);
  color: var(--reel-ink); box-shadow: inset 0 0 0 1px #080714, inset 0 7px 12px #02030da6;
}
.reel::before, .reel::after {
  content: ""; pointer-events: none; position: absolute; z-index: 2;
  top: 37%; bottom: 37%; width: 4px;
  border-block: 1px solid #d5c7fe82;
}
.reel::before { left: 0; border-right: 1px solid #d5c7fe4f; }
.reel::after { right: 0; border-left: 1px solid #d5c7fe4f; }
[data-gain="blue"] { --reel-ink: #b4d8ff; --reel-halo: #4672d35a; }
[data-gain="mint"] { --reel-ink: #a3f8dd; --reel-halo: #39bca15e; }
[data-gain="red"] { --reel-ink: #ffb9b5; --reel-halo: #ef4f4a69; }
[data-gain="gold"] { --reel-ink: #ffe5a8; --reel-halo: #f6a64d8c; }
[data-gain="prism"] { --reel-ink: #fff3d7; --reel-halo: #ea9dff96; }
.reel[data-gain="mint"], .reel[data-gain="red"] { border-color: color-mix(in srgb, var(--reel-ink) 58%, #17162c); }
.reel[data-gain="gold"], .reel[data-gain="prism"] { border-color: #f1c27f; box-shadow: inset 0 0 16px var(--reel-halo), 0 0 8px var(--reel-halo); }
.reel-number, .reel-strip > span {
  display: grid; place-items: center; height: var(--cell-height);
  color: var(--reel-ink); font-size: clamp(2.22rem, 10.3vw, 3.8rem); font-weight: 900; letter-spacing: -.1em;
  text-shadow: 0 1px 1px #151027, 0 0 16px var(--reel-halo); padding-inline-end: .08em;
}
.reel-strip { display: none; font-family: var(--mono); }
.ability.spinning .reel-number { visibility: hidden; }
.ability.spinning .reel-strip {
  display: block; position: absolute; inset: 0; bottom: auto;
  filter: blur(1.4px); animation: wheel .29s linear infinite;
}
.ability.spinning .reel { border-color: #a397e3; }
.ability.reel-hold .reel { border-color: var(--gold); box-shadow: 0 0 15px #ffca7377; }
.ability.reel-hold .reel-strip { animation-duration: .65s; filter: blur(.7px); }
.ability.landed .reel-number { animation: land .31s cubic-bezier(.2,.7,.3,1.3) both; }
@keyframes wheel { to { transform: translateY(-50%); } }
@keyframes land { from { transform: translateY(-44%); opacity: .5; } 69% { transform: translateY(6%); } to { transform: translateY(0); opacity: 1; } }
.stat-progress { display: block; height: 3px; border-radius: 4px; margin-top: 5px; background: #45415a; overflow: hidden; }
.stat-fill { display: block; width: var(--value); height: 100%; background: linear-gradient(90deg, #477ab3, #b0d4ff); border-radius: inherit; transition: width .23s ease; }
.control-well {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(124px, 1.6fr) minmax(0, 1fr); align-items: center; gap: 7px;
  border-top: 1px solid #8f765484; background: #0d1525; padding: 10px 9px 15px;
}
.control-well .button { width: 100%; min-height: 49px; padding: 8px 5px; border-radius: 28px; font-size: 1.03rem; }
.growth-feedback, .control-progress { color: var(--muted); font-size: .74rem; text-align: center; line-height: 1.4; }
.growth-feedback > strong { display: block; color: #f0eaff; font-size: .86rem; }
.growth-feedback .gain-total, .control-progress > strong { color: #fff2d5; font: 850 1.38rem var(--mono); }
.growth-feedback .rare-label { color: var(--gold); text-shadow: 0 0 9px #e7a96993; }
.control-progress > span:first-child { display: block; }
.control-progress > span:last-child:not(:first-child) { margin-left: 2px; }

.feature-panel { padding: 14px; }
.feature-panel h2 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-panel .lede + .button-row, .feature-panel .note + .button-row, .mock-hero + .button-row { margin-top: 14px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.button-row .button { min-width: 123px; }
.mock-hero, .result-hero {
  padding: 15px;
  background: radial-gradient(ellipse at 22% 38%, #41648d52, #131e31 84%);
  border: 1px solid #826e50; border-radius: 8px;
}
.mock-hero { margin-bottom: 13px; }
.big-value { color: var(--gold); font-size: clamp(3rem, 11.5vw, 4.9rem); font-weight: 850; line-height: 1.08; letter-spacing: -.07em; margin-top: 4px; }
.result-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 9px; }
.result-total span { font-weight: 800; color: #e0d0f6; }
.result-hero .note { margin-top: 5px; }
.mock-history { margin-top: 11px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-block: 10px; }
.choice-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice {
  min-width: 0; min-height: 65px; padding: 9px; background: linear-gradient(155deg, #253754, #172136);
  border: 1px solid #54698a; border-radius: 7px; text-align: left; display: grid; align-content: start; gap: 4px;
}
.choice strong { color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.choice span:not(.admission-status) { color: var(--muted); font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.choice:hover:not(:disabled) { border-color: #b39aff; }
.choice[aria-pressed="true"] { border-color: #e6be72; background: #2e3650; box-shadow: inset 0 0 0 1px #9e794a; }
.choice[data-action="school"][data-value="private"] {
  border-color: #b384bc; background: radial-gradient(ellipse at 0 0, #6844ac7a, transparent 67%), #211b39;
}
.choice[data-action="school"] { min-height: 86px; }
.choice-group { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.choice-group legend { padding: 0; font-weight: 830; }
.choice-group legend span { margin-left: 6px; color: var(--muted); font-size: .875rem; font-weight: 650; }
.choice-group .choice-grid { margin-block: 7px 0; }
.choice-group .choice { min-height: 44px; align-content: center; }
.choices-submit { margin-top: 16px; }

.score-number { font-weight: 850; color: #fff0cd; }
.score-max { color: var(--muted); font-size: .85rem; }
.admissions .choice { min-height: 105px; gap: 6px; animation: admission-in .32s both; }
.admissions .choice:nth-child(2) { animation-delay: .09s; }
.admissions .choice:nth-child(3) { animation-delay: .18s; }
@keyframes admission-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.choice.admission-card[aria-disabled="true"] { cursor: default; }
.admission-status { justify-self: start; border-radius: 4px; padding: 2px 6px; font-size: .82rem; font-weight: 800; background: #35374c; color: #d4d6e9; }
.admission-status.passed { background: #4f3c41; color: var(--gold); }
.admission-status.enrolled { background: #2d385d; color: #c7dbff; }
.retry-box { padding: 10px; margin-top: 12px; background: #211d36; border: 1px solid var(--line); border-radius: 8px; }
.retry-box h3 { font-size: 1rem; }
.retry-box .button-row { margin-top: 8px; }
.result-actions { margin-top: 11px; }
.card-share-actions { margin-top: 12px; }
.card-share-actions .button { flex: 1 1 142px; }
.button-x {
  display: inline-flex; align-items: center; justify-content: center;
  background: #10121a; border-color: #a9b7d1; color: #f4f6fc; text-decoration: none;
}
.button.button-x:hover { background: #242c3b; border-color: #dce5f7; }
#share-status, .share-fallback { margin-top: 8px; }
.share-fallback { display: inline-block; color: #c5d9ff; }
.score-delta { margin-top: 11px; color: var(--gold); font-weight: 800; }

.outcome-stage { perspective: 1300px; padding: 3px 1px; }
.outcome-card {
  --foil: linear-gradient(145deg, #717787, #3d414d 42%, #7a7c85 66%, #353a48);
  --card-light: #d3d5df; --card-glow: #62677545;
  position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; padding: 4px;
  background: var(--foil); box-shadow: 0 0 24px var(--card-glow), 0 15px 45px #05040bc8;
  animation: card-open .74s cubic-bezier(.18,.78,.19,1) both;
}
.outcome-card[data-tier="silver"] {
  --foil: linear-gradient(145deg, #fff 2%, #828eaa 19%, #e4ecff 36%, #a0aecb 54%, #f5f9ff 72%, #68738c 93%);
  --card-light: #e2e8f9; --card-glow: #a0acc56f;
}
.outcome-card[data-tier="gold"] {
  --foil: linear-gradient(145deg, #fff6c6, #a96624 20%, #fff4a7 39%, #f4bc58 62%, #92511b 81%, #fff2a9);
  --card-light: #ffe2a7; --card-glow: #fbc3559e;
}
.outcome-card[data-tier="prism"] {
  --foil: linear-gradient(145deg, #ffadba, #fff19d 14%, #91f5b8 28%, #95eaff 46%, #c3adff 64%, #ff9fe1 79%, #ffe3bd 92%);
  --card-light: #fff0ce; --card-glow: #bbabffba;
}
.outcome-card::before {
  content: ""; position: absolute; z-index: 3; inset: 1px; border: 1px solid #fff5; border-radius: 15px; pointer-events: none;
}
.outcome-card::after {
  content: ""; position: absolute; z-index: 3; inset: 4px; border-radius: 12px; pointer-events: none;
  background: linear-gradient(118deg, transparent 37%, #ffebfd69 48%, transparent 58%);
  background-size: 265% 100%; animation: foil-shine .9s .3s ease-out both;
}
@keyframes card-open {
  from { transform: perspective(1300px) rotateY(-79deg) scale(.89); opacity: .25; }
  to { transform: perspective(1300px) rotateY(0); opacity: 1; }
}
@keyframes foil-shine { from { background-position: 100% 50%; } to { background-position: 0% 50%; } }
.card-portrait { display: grid; position: relative; isolation: isolate; align-items: end; min-height: clamp(226px, 48vw, 296px); overflow: hidden; border-radius: 12px 12px 0 0; background: #22223b; }
.card-portrait img { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 49%; }
.card-portrait::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 27%, #0d0b2563 50%, #120e23 96%); }
.outcome-card[data-ended] .card-portrait img { opacity: .53; filter: saturate(.55); }
.card-title { padding: 15px 12px 8px; text-align: center; }
.card-title p { color: var(--card-light); font-size: .875rem; letter-spacing: .19em; font-weight: 850; text-shadow: 0 1px 6px #0a0818; }
.card-title h2 { margin-top: 3px; color: #fff8ec; font: 850 clamp(1.52rem, 6vw, 2.28rem)/1.2 var(--serif); overflow-wrap: anywhere; text-shadow: 0 0 17px #111023; }
.card-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #171427; border-radius: 0 0 12px 12px; padding: 11px 8px 15px; text-align: center; }
.card-score, .card-setting { min-width: 0; display: grid; justify-items: center; align-content: start; gap: 3px; }
.card-info span { color: #e2d6f2; font-size: .82rem; font-weight: 750; }
.card-info strong { color: #fff0d2; font: 900 clamp(1.75rem, 6.9vw, 2.4rem)/1.1 var(--mono); letter-spacing: -.07em; }
.card-info small { color: var(--muted); font: 650 .82rem var(--mono); letter-spacing: 0; }
.card-setting { border-left: 1px solid #7e639784; animation: setting-in .31s .49s both; }
.card-setting strong { color: var(--card-light); }
@keyframes setting-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.setting-marks { display: flex; gap: 5px; margin-top: 4px; justify-content: center; }
.setting-mark { width: 10px; height: 5px; border-radius: 2px; background: #46405a; }
.setting-mark.lit { background: var(--card-light); box-shadow: 0 0 6px var(--card-glow); }

.history-scores { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.history-scores li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 4rem; align-items: center; gap: 6px; font-size: .9rem; }
.history-scores .score-number { text-align: right; }
.history-bar { height: 6px; border-radius: 6px; overflow: hidden; background: #3d3a5d; }
.history-bar i { display: block; width: var(--value); height: 100%; background: linear-gradient(90deg, #9169d8, #d4a9ff); border-radius: inherit; }
.final-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 0; }
.final-stats > div { display: flex; justify-content: space-between; gap: 5px; padding: 5px 6px; border-radius: 4px; background: var(--surface-raised); }
.final-stats dt { font-size: .86rem; }
.final-stats dd { margin: 0; color: var(--gold); font: 800 1.02rem var(--mono); }

dialog { width: min(500px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid #78699d; border-radius: 11px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: #080512b7; }
.help-content { padding: 18px; }
.help-list { padding-left: 1.45em; line-height: 1.65; }
.help-list li + li { margin-top: 7px; }
.help-content .button { margin-top: 12px; }

@media (max-width: 410px) {
  .masthead-inner, .shell { width: calc(100% - 18px); }
  .shell { padding-block: 13px 25px; }
  .masthead-inner { min-height: 47px; }
  .brand { gap: 5px; font-size: .83rem; letter-spacing: 0; }
  .brand-mark { width: 25px; height: 25px; }
  .header-button { padding-inline: 5px; }
  .cover { min-height: clamp(449px, 74svh, 585px); }
  .cover-content { padding-top: 26px; }
  .game-header { align-items: center; }
  .reel-grid { gap: 5px; padding: 0 6px 9px; }
  .ability { padding: 4px; }
  .ability-head h3 { font-size: .86rem; }
  .stat-value { font-size: .94rem; }
  .stat-max { font-size: .64rem; }
  .year-pips { gap: 3px; }
  .year-pip { width: 10px; }
  .choice { padding: 7px; }
  .admissions.choice-grid.three { grid-template-columns: minmax(0, 1fr); }
  .admissions .choice { min-height: 69px; }
}
@media (max-width: 345px) {
  .stat-max { display: none; }
  .final-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0s !important; transition-duration: .01ms !important;
  }
}

/* Career history and rare growth effects */
.career-button {
  margin-top: 10px; padding: 5px 14px; border: 1px solid #a28553; border-radius: 6px;
  color: #fff0c8; background: #141e2de3; font-size: .86rem; font-weight: 850;
}
.career-button:hover { background: #24324a; border-color: #e8c681; }
.career-list-wrap { margin-top: 10px; max-height: min(62svh, 580px); overflow-y: auto; padding-right: 4px; }
.career-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.career-list li {
  display: grid; grid-template-columns: minmax(50px, auto) minmax(0, 1fr);
  gap: 8px; align-items: center; padding: 8px; border: 1px solid #3c4e69;
  border-radius: 6px; background: #152035;
}
.career-list strong { display: block; color: #f1f5ff; overflow-wrap: anywhere; }
.career-route { display: block; color: #b8c9e4; font-size: .8rem; }
.career-number { color: var(--gold); font-size: .87rem; font-weight: 850; white-space: nowrap; }
.event-recap { display: block; color: #ffdb98; font-size: .73rem; line-height: 1.45; }
.milestone-recap {
  margin-bottom: 9px; padding: 6px 9px; border: 1px solid #665079;
  border-radius: 6px; background: #20182f;
}
.milestone-recap .event-recap { font-size: .82rem; }
.reel-panel[data-rush="normal"] {
  border-color: #deb4ff; box-shadow: 0 0 25px #a46bec75, inset 0 0 23px #c188f343, var(--shadow);
}
[data-rush="normal"] .cabinet-rail i { background: #ffd1fa; box-shadow: 0 0 9px #ef92ff; }
[data-rush="normal"] .cabinet-message { color: #ffe0ff; text-shadow: 0 0 9px #ed6df6; }
.reel-panel[data-rush="ultra"] {
  border-color: transparent;
  background:
    linear-gradient(155deg, #283d55, #151a34 37%, #101426 73%, #282941) padding-box,
    linear-gradient(115deg, #ff9ab2, #ffe38e 21%, #9af6c4 40%, #82eaff 62%, #aa9dff 82%, #ffb0e9) border-box;
  box-shadow: -6px 3px 24px #ff7baf58, 6px 3px 29px #85dfff63, inset 0 0 23px #aa8ef859, var(--shadow);
}
[data-rush="ultra"] .cabinet-rail i { background: #a3f1ff; box-shadow: 0 0 9px #9cd8ff; }
[data-rush="ultra"] .cabinet-rail i:nth-of-type(2n) { background: #ffb5e6; box-shadow: 0 0 10px #ff89d5; }
[data-rush="ultra"] .cabinet-message { color: #fff0cd; text-shadow: 0 0 12px #f0a0fb; }
.reel-panel.is-frozen .reel-strip { animation-play-state: paused; }
.event-layer {
  position: absolute; inset: 42px 0 64px; z-index: 5; overflow: hidden;
  display: grid; align-items: center; pointer-events: none;
}
.event-banner {
  min-height: 105px; display: grid; gap: 1px; align-content: center; justify-items: center;
  padding: 11px 13px; color: #fff1d9; border-block: 1px solid #e7b7ffbc;
  background: radial-gradient(ellipse at 50% 59%, #764591, #271940 74%);
  box-shadow: 0 0 34px #a972f76b;
  animation: event-banner-in .26s cubic-bezier(.18,.72,.22,1) both;
}
.event-banner span { font-size: .94rem; letter-spacing: .12em; font-weight: 900; text-shadow: 0 1px 12px #170e25; }
.event-banner span:empty, .event-banner strong:empty { display: none; }
.event-banner strong { font: 900 clamp(1.9rem, 8vw, 3rem)/1.18 var(--serif); text-shadow: 0 2px 0 #713c70, 0 0 11px #dfb6ff; }
@keyframes event-banner-in { from { transform: translateY(8px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.event-layer[data-effect="streak"] .event-banner {
  background: radial-gradient(ellipse at 70% 48%, #a04c887f, transparent 47%),
    linear-gradient(116deg, #22234b, #6954a5 51%, #674160);
}
.event-layer[data-effect="cut-in"] .event-banner {
  min-height: 150px; padding: 10px 39% 10px 5%; justify-items: start; gap: 4px;
  background: linear-gradient(90deg, #140b2b90 1%, transparent 75%), url("teacher-cutin.png") 50% 42% / cover;
  border-color: #f4c993cf; box-shadow: 0 14px 32px #060414bd, 0 0 22px #b276dd6e;
  animation: cut-in .25s cubic-bezier(.2,.85,.25,1) both;
}
.event-layer[data-effect="cut-in"] span { font-size: .8rem; color: #ffe2ab; }
.event-layer[data-effect="cut-in"] strong { font-size: clamp(1.28rem, 5.9vw, 1.95rem); letter-spacing: .01em; text-shadow: 0 2px 2px #190828, 0 0 12px #2e123a; }
@keyframes cut-in { from { transform: translateX(-90%) skewX(-8deg); opacity: .4; } to { transform: none; opacity: 1; } }
.event-layer[data-effect="blackout"] { inset: 34px 0 57px; background: #020209; }
.event-layer[data-effect="blackout"] .event-banner {
  min-height: 1px; padding: 0; border: 0; box-shadow: none; background: #e6dfff;
  animation: blackout-line .51s ease-out both;
}
@keyframes blackout-line { from { opacity: .76; transform: scaleX(1); } to { opacity: 0; transform: scaleX(.02); } }
.event-layer[data-effect="all-growth"] .event-banner,
.event-layer[data-effect="revival"] .event-banner {
  border-color: #ffdb9f; background: linear-gradient(100deg, #372049, #805040, #362149);
  box-shadow: 0 0 30px #eab35a77;
}
.event-layer[data-effect="all-growth"] .event-banner { background: radial-gradient(ellipse, #b47a4f, #483051 69%); }

/* Subject-by-subject result reveal and the final profile */
.exam-report-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 39px;
  margin-bottom: 9px;
}
.exam-report-head h2 { margin: 0; }
.exam-report-head .button { min-height: 36px; padding: 5px 11px; font-size: .84rem; }
.score-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px;
  list-style: none; margin: 0; padding: 0;
}
.score-tile {
  min-width: 0; min-height: 63px; display: grid; align-content: center; gap: 2px; padding: 7px 10px;
  border: 1px solid #434565; border-radius: 7px; background: #202237;
}
.score-tile.is-revealed {
  border-color: #6c5b95; background: linear-gradient(122deg, #352746, #1c1e34 82%);
}
.score-tile.is-revealed .tile-points { animation: event-banner-in .19s ease-out both; }
.subject-name { font-weight: 800; color: #e2daf4; font-size: .88rem; }
.score-covered { color: #b7aed0; }
.tile-points { line-height: 1.1; }
.tile-points .score-number { font-size: 1.74rem; }
.exam-report #exam-totals { margin-top: 10px; }
.card-info { border-radius: 0; }
.card-profile {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  margin: 0; padding: 8px 7px 10px; border-radius: 0 0 12px 12px;
  color: var(--ink); background: #211a31; text-align: center;
}
.card-profile > div { animation: setting-in .31s .49s both; }
.card-profile > div + div { border-left: 1px solid #7e639784; }
.card-profile dt { color: #d5c9e8; font-size: .79rem; }
.card-profile dd { color: var(--card-light); margin: 2px 0 0; font-weight: 850; font-size: .94rem; }




.cover-photo, .card-portrait img { filter: saturate(.86) hue-rotate(-11deg); }
.rank-strip {
  display: flex; align-items: baseline; justify-content: space-between; gap: 2px 9px; flex-wrap: wrap;
  margin: 0 0 11px; padding: 7px 10px; border: 1px solid #685737; border-radius: 7px;
  background: linear-gradient(115deg, #1c293e, #111c2d 70%); color: #ecf2ff;
  font-size: .87rem; font-weight: 780;
}
.rank-strip > small { font-size: .72rem; color: #aabbd4; }
.rank-result { white-space: nowrap; margin-inline-start: auto; }
.rank-result strong { color: var(--gold); font: 900 1.44rem var(--mono); }
.rank-result > span { margin-inline-start: 2px; }

.exam-report .score-tile.is-revealed {
  border-color: var(--tier-border, #4d617b);
  background: linear-gradient(118deg, var(--tier-surface, #243447), #111c2c 84%);
}
.score-tile[data-score-band="white"] { --tier-text: #f3f7ff; --tier-border: #647692; --tier-surface: #27364a; }
.score-tile[data-score-band="bronze"] { --tier-text: #ffc5a4; --tier-border: #a4664f; --tier-surface: #47302d; }
.score-tile[data-score-band="silver"] { --tier-text: #e2ecff; --tier-border: #8b9db7; --tier-surface: #35465e; }
.score-tile[data-score-band="gold"] { --tier-text: #ffe08a; --tier-border: #d09c42; --tier-surface: #483823; }
.score-tile[data-score-band="rainbow"] { --tier-text: #fff1b7; --tier-border: #d8a6f7; --tier-surface: #33365f; }
.exam-report .score-tile .score-number { color: var(--tier-text); }
.score-tile.is-revealed[data-score-band="rainbow"] {
  border-color: transparent;
  background: linear-gradient(118deg, #38355d, #152943 84%) padding-box,
    linear-gradient(120deg, #ef9cac, #f5d99a, #a9ffe3, #a4d6ff, #f3b4ff) border-box;
}
.score-tile[data-score-band="rainbow"] .score-number {
  background: linear-gradient(100deg, #ffc4cc, #ffe696 30%, #a9ffe3 62%, #d2baff);
  color: transparent; background-clip: text;
}
@media (max-width: 355px) {
  .rank-strip { font-size: .79rem; padding-inline: 7px; column-gap: 5px; }
  .rank-result strong { font-size: 1.26rem; }
}


/* Reels and the strongest color in each year */
.year-pip[data-color="plain"] { background: #dde6f7; }
.year-pip[data-color="blue"] { background: #68b8ff; box-shadow: 0 0 5px #3ea0ee68; }
.year-pip[data-color="mint"] { background: #6de5ad; box-shadow: 0 0 5px #51d68c67; }
.year-pip[data-color="red"] { background: #f97b76; box-shadow: 0 0 5px #ee555a74; }
.year-pip[data-color="gold"] { background: linear-gradient(145deg, #fff6bf, #ffd460 58%, #d48b32); box-shadow: 0 0 7px #ffbf579b; }
.year-pip[data-color="prism"] { background: linear-gradient(115deg, #ff9aaa, #ffe398 29%, #8ff9cb 53%, #8ae7ff 71%, #e0a8ff); box-shadow: 0 0 7px #b4c9ffaf; }
.reel[data-gain="prism"] {
  border-color: transparent;
  background:
    radial-gradient(ellipse at 50% 50%, #65549a92, #141934 58%, #090d1b) padding-box,
    linear-gradient(120deg, #ffb0ba, #ffe799, #8bf7cc, #88dfff, #e0b1ff) border-box;
}
.reel[data-gain="prism"] .reel-number {
  background: linear-gradient(108deg, #ffaab8 18%, #fff0aa 36%, #b5ffdb 52%, #a5e9ff 66%, #f6befa 88%);
  color: transparent; background-clip: text; text-shadow: none;
  filter: drop-shadow(0 0 9px #c1b7f689);
}
.ability.landed .reel[data-gain="gold"] { animation: gold-reel-hit .48s ease-out; }
.ability.landed .reel[data-gain="prism"] { animation: prism-reel-hit .58s ease-out; }
@keyframes gold-reel-hit {
  30% { box-shadow: inset 0 0 28px #ffce65b3, 0 0 14px #ffc76d94; }
}
@keyframes prism-reel-hit {
  34% { box-shadow: inset 0 0 29px #9fd9ffca, 0 0 15px #d9b8ff98; }
}

.reel[data-gain="gold"] .reel-number { font-size: clamp(2.5rem, 11.6vw, 4.15rem); }
.reel[data-gain="prism"] .reel-number { font-size: clamp(2.65rem, 12vw, 4.4rem); }

/* Premium stops use a hold and a burst. */
.reel-panel[data-anticipation="gold"] .cabinet-rail i,
.reel-panel[data-reward="gold"] .cabinet-rail i { background: #ffd46f; box-shadow: 0 0 11px #ffc05c; }
.reel-panel[data-anticipation="prism"] .cabinet-rail i,
.reel-panel[data-reward="prism"] .cabinet-rail i { background: #c6f1ff; box-shadow: 0 0 13px #91d9ff; }
.reel-panel[data-anticipation="prism"] .cabinet-rail i:nth-of-type(2n),
.reel-panel[data-reward="prism"] .cabinet-rail i:nth-of-type(2n) { background: #ffc5f7; box-shadow: 0 0 13px #ea9afa; }
.reel-panel[data-anticipation="prism"] .reel-hold .reel { border-color: #c7dfff; box-shadow: 0 0 14px #b0d7ff9c; }
.reel-panel[data-anticipation="prism"] .reel-hold .reel-strip { animation-duration: 1s; }
.reel-panel[data-reward="gold"] {
  --reward-light: #ffe79d;
  --reward-glow: #eea544bf;
  --reward-sheen: linear-gradient(110deg, #a35d22, #ffdc78 42%, #fff4c3 52%, #d38b3e 65%, #59272a);
  --reward-rays: repeating-conic-gradient(from 10deg, #ffca5c64 0deg 4deg, transparent 7deg 24deg, #ffd37b40 26deg 27deg, transparent 30deg 36deg);
  --screen-light: #ffc458;
  border-color: #f7ca69;
  box-shadow: 0 0 29px #f5aa587a, inset 0 0 26px #ffc96e3d, var(--shadow);
}
.reel-panel[data-reward="prism"], .reel-panel[data-reward="ultra"] {
  --reward-light: #eff5ff;
  --reward-glow: #d09bffb9;
  --reward-sheen: linear-gradient(109deg, #f79aad, #ffe19c 26%, #b3ffdb 47%, #a9e4ff 66%, #d4b3ff 84%, #ffafd3);
  --reward-rays: conic-gradient(from 12deg, #ab9effb5, transparent 30deg, #ff9aaca8 51deg, transparent 73deg, #ffdfa0a3 102deg, transparent 129deg, #7ef4c5a3 158deg, transparent 187deg, #82e2ffa3 220deg, transparent 242deg, #c2a5ffaa 283deg, transparent 304deg, #ff9dccab 335deg, #ab9effb5);
  --screen-light: #c9a4ff;
  border-color: #d4deff;
  box-shadow: -7px 3px 37px #ea96fa50, 7px 2px 40px #64cbf769, inset 0 0 34px #c1a6fe52, var(--shadow);
}
.reward-screen {
  position: fixed; z-index: 6; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 25%, var(--screen-light) 120%);
  animation: reward-screen-fade .74s ease-out both;
}
[data-reward="ultra"] .reward-screen {
  background: radial-gradient(ellipse at 50% 41%, #fff8d05e, transparent 57%),
    conic-gradient(from 42deg at 50% 41%, #ff94bb66, #f9ce7470, #7df8cb66, #6ad8ff77, #b096ff73, #ff94bb66);
  animation: ultra-screen 1.12s ease-out both;
}
.reward-layer {
  position: absolute; z-index: 7; inset: 26px 0 58px;
  isolation: isolate; overflow: hidden; pointer-events: none; display: grid; place-items: center;
  animation: reward-scene var(--reward-duration) ease-out both;
}
.reward-layer::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(ellipse at var(--origin-x) var(--origin-y), var(--reward-light), var(--reward-glow) 14%, transparent 58%);
  animation: reward-flash .58s ease-out both;
}
.reward-rays {
  position: absolute; z-index: -2; inset: -45%;
  background: var(--reward-rays);
  mask-image: radial-gradient(ellipse, #fff 0 20%, #fff9 49%, transparent 72%);
  animation: reward-rays var(--reward-duration) ease-out both;
}
.reward-ring {
  position: absolute; z-index: 0; left: var(--origin-x); top: var(--origin-y);
  width: 78px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--reward-light);
  box-shadow: 0 0 14px var(--reward-glow), 0 0 0 8px color-mix(in srgb, var(--reward-light) 32%, transparent);
  animation: reward-ring .68s ease-out both;
}
.reward-ring.echo {
  width: 102px; border-width: 1px; animation-delay: .13s;
}
[data-reward="ultra"] .reward-ring { width: 128px; animation-duration: .96s; }
[data-reward="ultra"] .reward-ring.echo { width: 185px; }
.reward-particles { position: absolute; z-index: 2; inset: 0; }
.reward-particles i {
  position: absolute; left: var(--origin-x); top: var(--origin-y); width: var(--size); height: var(--size);
  background: var(--piece); box-shadow: 0 0 6px var(--piece);
  animation: reward-particle var(--reward-duration) cubic-bezier(.14,.66,.23,1) var(--delay) both;
}
.reward-particles .reward-confetti { height: calc(var(--size) * 1.65); border-radius: 1px; }
.reward-spark { clip-path: polygon(50% 0, 62% 37%, 100% 50%, 62% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%); }
.reward-banner {
  position: relative; z-index: 1; width: 100%; min-height: 120px; display: grid; place-content: center;
  gap: 2px; padding: 9px; text-align: center; color: #fff0c5;
  border-block: 2px solid transparent;
  background: linear-gradient(96deg, #120c2078, #140d26f2 34%, #140d26f2 66%, #120c2078) padding-box,
    var(--reward-sheen) border-box;
  box-shadow: 0 0 26px var(--reward-glow);
  animation: reward-banner-in .36s cubic-bezier(.16,.73,.23,1) both;
}
.reward-banner span { color: var(--reward-light); font-size: .86rem; font-weight: 850; letter-spacing: .19em; }
.reward-banner strong {
  color: #fff4c5; font: 900 clamp(4.2rem, 18vw, 7.1rem)/.96 var(--mono);
  letter-spacing: -.105em; padding-right: .1em; text-shadow: 0 2px 0 #7e421d, 0 0 22px var(--reward-glow);
}
[data-reward="prism"] .reward-banner strong {
  font-size: clamp(4.6rem, 20vw, 8rem);
}
[data-reward="ultra"] .reward-banner strong {
  font: 900 clamp(2.5rem, 13.6vw, 5.2rem)/1.08 var(--serif);
  letter-spacing: .03em; padding: 0;
}
[data-reward="ultra"] .reward-banner {
  min-height: 172px; border-block-width: 3px;
  box-shadow: 0 0 36px #bb9cffc4, inset 0 0 37px #67dafa49;
}
[data-reward="ultra"] .reward-banner small { font-size: 1.23rem; letter-spacing: .35em; }
[data-reward="prism"] .reward-banner strong, [data-reward="ultra"] .reward-banner strong {
  color: transparent; background: var(--reward-sheen); background-clip: text; text-shadow: none;
  filter: drop-shadow(0 0 12px #dabaffb0);
}
.reward-banner small { color: #fff7e9; font-weight: 850; font-size: .95rem; }
.reward-banner small:empty { display: none; }
@keyframes reward-scene { 0%, 77% { opacity: 1; } 100% { opacity: 0; } }
@keyframes reward-screen-fade { from { opacity: .52; } to { opacity: 0; } }
@keyframes ultra-screen {
  0% { opacity: .25; filter: sepia(1) saturate(1.7); }
  24% { opacity: .72; filter: sepia(.18) saturate(1.3); }
  100% { opacity: 0; filter: none; }
}
@keyframes reward-flash { from { opacity: .65; } to { opacity: 0; } }
@keyframes reward-rays { from { transform: scale(.72) rotate(-12deg); } to { transform: scale(1.12) rotate(18deg); } }
@keyframes reward-ring {
  from { opacity: .9; transform: translate(-50%, -50%) scale(.28); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(2.8); }
}
@keyframes reward-particle {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.30); }
  16% { opacity: 1; }
  66% { opacity: .92; }
  100% { opacity: 0; transform: translate(var(--px), calc(var(--py) + 22px)) rotate(var(--twist)) scale(.65); }
}
@keyframes reward-banner-in { from { opacity: .35; transform: scale(1.14); } to { opacity: 1; transform: scale(1); } }


/* Small stops keep moving even when the year has no gold or rainbow. */
.ability.landed .reel[data-gain="blue"],
.ability.landed .reel[data-gain="mint"],
.ability.landed .reel[data-gain="red"] {
  animation: regular-stop-glow .42s ease-out;
}
.ability.landed .reel[data-gain="mint"] .reel-number::after,
.ability.landed .reel[data-gain="red"] .reel-number::after {
  content: ""; position: absolute; inset: 2px; pointer-events: none;
  background:
    radial-gradient(circle at 17% 30%, var(--reel-ink) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 23%, var(--reel-ink) 0 1.8px, transparent 3px),
    radial-gradient(circle at 15% 74%, var(--reel-ink) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 85% 74%, var(--reel-ink) 0 1px, transparent 2px);
  animation: regular-stop-spark .5s ease-out both;
}
.ability.landed .reel[data-gain="red"] .reel-number::after {
  background:
    radial-gradient(circle at 17% 26%, var(--reel-ink) 0 2px, transparent 3px),
    radial-gradient(circle at 66% 17%, #ffebcc 0 2px, transparent 3px),
    radial-gradient(circle at 84% 23%, var(--reel-ink) 0 2px, transparent 3px),
    radial-gradient(circle at 13% 68%, #ffebcc 0 1px, transparent 2px),
    radial-gradient(circle at 27% 83%, var(--reel-ink) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 87% 77%, var(--reel-ink) 0 2px, transparent 3px);
}
@keyframes regular-stop-glow {
  30% { box-shadow: 0 0 10px var(--reel-halo), inset 0 0 19px var(--reel-halo); }
}
@keyframes regular-stop-spark { from { opacity: .9; transform: scale(.75); } to { opacity: 0; transform: scale(1.27); } }

.ability-radar { display: block; width: min(100%, 365px); height: auto; margin: 1px auto 8px; }

