/* Night-match presentation. Portraits, card frames, and match controls retain their existing markup. */
:root {
  --stadium-night: url("stadium-night.webp");
  --night-ink: #08121f;
  --night-edge: #354a63;
  --night-gold: #f7d68b;
  --night-ice: #9ce1f0;
}

#top {
  background: linear-gradient(110deg, #101d34, #080f1f 65%, #142338);
  border-bottom-color: #405370;
}
#top .b-logo {
  color: var(--night-gold);
  filter: drop-shadow(0 0 8px #f6c97655);
}
#top .stat {
  background: #142136;
  border-color: #3b4e66;
}
#tabs { background: #0b1524; }
#tabs button { color: #c3d4e7; }
#tabs button:hover:not(.on) { background: #192945; color: #f2f7ff; }
#tabs button.on {
  color: var(--night-gold);
  background: linear-gradient(90deg, #4c3e27, #172339 85%);
  border-color: #82663f;
  box-shadow: inset 3px 0 var(--night-gold);
}
@media (min-width: 1080px) {
  #game-shell:has(#tabs:not([hidden])) {
    background: linear-gradient(to right, #0b1524 0 calc(var(--nav-width) - 1px), #30455f calc(var(--nav-width) - 1px) var(--nav-width), transparent var(--nav-width));
  }
  #tabs .nav-group + .nav-group { border-color: #2a3b53; }
}

.start-hero { background: linear-gradient(180deg, #07142633 4%, #09152675 51%, #111a2a 100%), var(--stadium-night) center 54% / cover no-repeat; }
.lobby-hero {
  min-height: clamp(310px, 34vw, 440px);
  border-color: #57758e;
  border-radius: 16px;
  background: var(--night-ink) var(--stadium-night) center 61% / cover no-repeat;
  box-shadow: 0 14px 32px #02080d70, 0 0 30px #4eacd21c;
}
.lobby-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px #d3f4ff69, inset 0 -2px #efbb6866;
}
.lobby-hero::after {
  background: linear-gradient(90deg, #070f1eea 0%, #091324bd 34%, #0b172942 64%, #07111d0a 100%),
              linear-gradient(0deg, #060e1b 0%, #091b2f50 35%, transparent 66%);
}
.lobby-portraits img {
  filter: drop-shadow(0 0 1px #d0f7f5aa) drop-shadow(0 8px 13px #020714c2);
}
.lobby-portraits img:first-child { bottom: -8%; }
.lobby-hero .lobby-club { color: var(--night-gold); }
.lobby-hero .league-hero-label { color: var(--night-ice); }
.lobby-hero .lobby-copy h1 { color: #fff9e9; text-shadow: 0 3px 18px #050a18, 0 0 22px #91d7ee3d; }
.lobby-hero .lobby-shortcuts button {
  background: #112238e8;
  border-color: #436580;
  color: #e6f7ff;
}
.lobby-hero .lobby-shortcuts button:hover:not(:disabled) { border-color: var(--night-ice); }

.home-side-panel, .recent-game {
  background: linear-gradient(155deg, #1a2a42, #101a2a 72%);
  border-color: var(--night-edge);
}
.mode-stage.mode-ticket {
  background: linear-gradient(100deg, #09182aee, #112f42bd), var(--stadium-night) center 57% / cover no-repeat;
  border-color: #4a758a;
}
.mode-stage.mode-friendly {
  background: linear-gradient(150deg, #2b233a, #101b2c 75%);
  border-color: #675375;
}
.mode-stage.mode-live {
  background: linear-gradient(150deg, #3a3023, #162337 70%);
  border-color: #8e7044;
}
.mode-stage h2 { color: #fff3d6; }

#view:is([data-screen="home"], [data-screen="squad"]) .collection-card {
  background: linear-gradient(151deg, #344157, #101929 49%, #282b32);
  border-color: #475b75;
  box-shadow: 0 6px 17px #02060f70, inset 0 1px #bfebff2b;
}
#view:is([data-screen="home"], [data-screen="squad"]) .collection-card:hover:not(:disabled) {
  border-color: var(--night-gold);
  box-shadow: 0 6px 17px #02060f80, 0 0 13px #d1ae6642;
}
#view:is([data-screen="home"], [data-screen="squad"]) .collection-status b { color: #e4eef9; }

.shop-feature {
  background: radial-gradient(ellipse at 15% 56%, #263f62, transparent 61%), linear-gradient(125deg, #172236, #101827);
  border-color: #556c87;
  box-shadow: inset 0 1px #c4e7ff30, 0 9px 25px #030a1366;
}
#modal .box:has(.pack-open) {
  background: radial-gradient(ellipse at 50% 33%, #153452, transparent 72%), #0b1524;
  border-color: #577b9a;
}
.pack-open {
  isolation: isolate;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 42%, #89cfe633, transparent 62%),
              linear-gradient(155deg, #172c46, #0a1422 70%);
  box-shadow: inset 0 1px #aee6ff30, inset 0 -1px #c59e5d54;
}
.pack-open:has(.flips) { padding-inline: 4px; }
.pack-open.await-tear::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 48%, #d5eff748, transparent 64%),
              conic-gradient(from 17deg at 50% 48%, transparent, #a7e9ff16 10deg, transparent 23deg, transparent 166deg, #efc7852e 182deg, transparent 193deg);
}
.pack-open.await-tear .pack-wrapper {
  filter: drop-shadow(0 4px 18px #8cdfff5e) drop-shadow(0 10px 11px #020914b9);
}

#modal .box.match {
  background: linear-gradient(180deg, #081226aa, #091525a6 48%, #091321f4), var(--stadium-night) center / cover no-repeat;
  border-color: #557590;
  box-shadow: 0 22px 64px #000a;
}
.replay-hud {
  background: linear-gradient(110deg, #192f4c, #101a30 50%, #28253a);
  border-color: #49637d;
  box-shadow: inset 0 1px #b1e5ff32, 0 4px 16px #0005;
}
.replay-summary { color: var(--night-ice); }
.replay-team.home-team { background: linear-gradient(115deg, #143553, #17263c); border-color: #5381a5; }
.replay-team.away-team { background: linear-gradient(115deg, #2d2338, #4c2937); border-color: #916074; }
#rp-sc {
  background: linear-gradient(#283754, #08172a 55%, #070e1c);
  color: #fff0bf;
  text-shadow: 0 0 13px #ffd47475;
  box-shadow: inset 0 1px #ffd87c55;
}
#modal .box.match #rp-wrap {
  border-radius: 9px;
  box-shadow: 0 0 0 1px #6692a9, 0 10px 30px #040a14b3;
}
#rp-wrap::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 24px #0612266b;
}
@media (max-width: 760px) {
  .lobby-hero { background-position: center 58%; }
  .lobby-hero::after {
    background: linear-gradient(90deg, #071322e8, #09142658 76%), linear-gradient(0deg, #070c17 8%, transparent 87%);
  }
}
.pack-open .pack-foil { clip-path: none; }
.pack-open .packet-cover {
  background: radial-gradient(ellipse at 50% 46%, #335575, #152a44 55%, #0e182a);
  border-color: #ae8a56;
}
.pack-open .packet-cover .pack-foil {
  filter: drop-shadow(0 9px 13px #060b196e);
}

#top .b-logo {
  background: linear-gradient(145deg, #edd396, #ba8c47);
  color: #111f32;
  border-color: #f2daa2;
}
.lobby-hero .lobby-actions .main, .mode-ticket > .main {
  color: #152033;
  background: linear-gradient(180deg, #ffe7a9, #eebc68);
  border-color: #f8d48f;
  box-shadow: inset 0 1px #fff3cf, 0 4px 13px #060e2099;
}
.lobby-hero .lobby-actions .main:hover:not(:disabled), .mode-ticket > .main:hover:not(:disabled) {
  background: linear-gradient(180deg, #fff0bc, #f8cc81);
}
.lobby .home-side-panel {
  background: radial-gradient(ellipse at 100% 0%, #264361, transparent 73%), #122036;
  border-color: var(--night-edge);
}

/* Cup selection and brackets */
.cup-trophy { display: block; height: auto; object-fit: contain; filter: drop-shadow(0 8px 12px #020612a6); }
.cup-tone-C .cup-trophy { filter: sepia(.43) saturate(.85) hue-rotate(-17deg) brightness(.83) drop-shadow(0 7px 10px #040812af); }
.cup-tone-B .cup-trophy { filter: grayscale(.82) brightness(1.12) drop-shadow(0 7px 10px #040812af); }
.cup-hero {
  position: relative;
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 29%);
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: clamp(17px, 3vw, 34px);
  border: 1px solid #6d624a;
  border-radius: 17px;
  background: linear-gradient(90deg, #091221f0 8%, #0c1827b8 59%, #25324945), var(--stadium-night) center 49% / cover no-repeat;
  box-shadow: inset 0 1px #ffeac445, 0 10px 24px #03081166;
}
.cup-hero .cup-trophy { width: min(100%, 240px); justify-self: center; }
.cup-hero-copy h1 { margin: 0 0 6px; color: #fff4d8; font-size: clamp(29px, 5.2vw, 59px); line-height: 1.04; }
.cup-hero-copy > p { color: #d7e3ed; margin: 0 0 14px; }
.cup-hero-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.cup-hero-stats > div { min-width: 0; padding: 7px 10px; border: 1px solid #b2c7df46; border-radius: 8px; background: #0b182bda; }
.cup-hero-stats dt { color: #bfd1e1; font-size: .81rem; }
.cup-hero-stats dd { display: flex; align-items: center; gap: 4px; margin: 2px 0 0; font-weight: 850; color: #ffe2a4; }
.cup-hero-stats dd .ui-icon { width: 17px; height: 17px; }
.cup-hero #cup-resume { margin-top: 10px; }
.cup-themes { background: #142237; border-color: #425673; }
.cup-theme.on { box-shadow: inset 0 0 0 1px #f3d38e77; }
.cup-list-head { margin: 16px 0 11px; }
.cup-list-head h2 { margin: 0 0 3px; font-size: 1.38rem; }
.cup-list-head p { margin: 0; line-height: 1.45; }
.cup-cards-step { grid-template-columns: repeat(auto-fill, minmax(min(100%, 266px), 1fr)); gap: 12px; }
.cup-cards-step .cup-stage {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
  border-radius: 13px;
  background: radial-gradient(ellipse at 90% 0, color-mix(in srgb, var(--cup-tone), transparent 76%), transparent 59%), linear-gradient(145deg, #1b2940, #101a2a);
  box-shadow: inset 0 1px #ffffff20, 0 5px 18px #050a1466;
}
.cup-stage-title {
  display: grid; grid-template-columns: minmax(0, 1fr) 66px; grid-template-rows: auto auto; gap: 3px 8px; align-items: center;
}
.cup-stage-title h3 { grid-area: 1 / 1; align-self: end; color: var(--cup-glint); margin: 0; font-size: clamp(1.24rem, 2.5vw, 1.54rem); }
.cup-stage-title p { grid-area: 2 / 1; align-self: start; margin: 0; color: #c2d1df; font-size: .83rem; line-height: 1.4; }
.cup-stage-title .cup-trophy { width: 66px; grid-area: 1 / 2 / 3 / 3; }
.cup-round-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; }
.cup-round-path li { display: grid; place-items: center; gap: 2px; padding: 5px 2px; border: 1px solid #b5c9e024; background: #091322a6; border-radius: 6px; }
.cup-round-path li:last-child { border-color: color-mix(in srgb, var(--cup-tone), transparent 60%); }
.cup-round-path li span { color: #b4c6d9; font-size: .8rem; }
.cup-round-path li b { color: var(--cup-glint); font-size: .94rem; }
.cup-cards-step .cup-entry-rewards { margin: 0; padding: 8px 9px; background: #0813228c; }
.cup-cards-step .cup-awards { margin: 5px 0 0; }
.cup-cards-step .cup-stage > button {
  color: #142133;
  background: linear-gradient(#fff1d4, var(--cup-tone));
  border-color: var(--cup-tone);
  box-shadow: inset 0 1px #fff8;
}
.cup-cards-step .cup-stage > button:hover:not(:disabled) { filter: brightness(1.12); }
.cup-presentation .cup-banner {
  background: radial-gradient(ellipse at 14% 24%, color-mix(in srgb, var(--cup-tone), transparent 75%), transparent 66%), #122037;
}
.cup-presentation .cup-match-card { background-color: #142238; }
@media (max-width: 560px) {
  .cup-hero { grid-template-columns: minmax(0, 1fr) 98px; min-height: 0; padding: 14px; gap: 6px; }
  .cup-hero-copy > p { font-size: .88rem; }
  .cup-hero-stats > div { padding: 5px 7px; }
  .cup-hero-stats dd { font-size: .91rem; }
}
@media (max-width: 360px) {
  .cup-hero { grid-template-columns: minmax(0, 1fr) 72px; }
}

/* Slot cabinet and reels. Keep the 76px reel step in sync with openSlot. */
#view .slot-card {
  background: linear-gradient(145deg, #253652, #111c31 74%);
  border-color: #536887;
}
#view .slot-card.ready { border-color: #e1b875; box-shadow: inset 0 1px #ffd99450, 0 0 19px #ffbf6426; }
.slot-home-mark {
  flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 45px;
  border: 1px solid #ae895b; border-radius: 10px; font: italic 950 2rem/1 Georgia, serif;
  color: #ffe8a9; background: linear-gradient(#203857, #121e35); box-shadow: inset 0 1px #fbe1a34d, 0 4px 10px #080d1d;
}
#modal .slot-box {
  max-width: min(520px, 100%);
  color: #eef4ff;
  border-color: #61728f;
  background: radial-gradient(ellipse at 50% 19%, #233d67, transparent 48%), #111b30;
  box-shadow: 0 24px 70px #000a;
}
.slot-heading h2 { margin: 0 0 4px; color: #fff1ca; font-size: clamp(1.55rem, 5vw, 2.1rem); }
.slot-heading p { margin: 0 0 12px; color: #c6d6ea; font-size: .92rem; }
.slot-times { gap: 5px; margin-bottom: 13px; }
.slot-times span { background: #0714249c; border: 1px solid #506987; padding: 4px 9px; color: #d6e1ef; font-variant-numeric: tabular-nums; }
.slot-times span.now { background: #f5d590; border-color: #f5d590; color: #211b15; }
.slot-times span.used { opacity: .72; }
.slot-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.slot-machine {
  max-width: 386px; padding: 17px 10px 14px; border: 1px solid #b89a69; border-radius: 16px;
  background: linear-gradient(155deg, #324c6e 0%, #182c48 39%, #0b1428 90%);
  box-shadow: 0 0 0 3px #0c1729, 0 8px 24px #0007, inset 0 1px #fff3c980;
}
.slot-lights {
  height: 4px; width: 52%; margin: -7px auto 11px;
  background: radial-gradient(circle, #ffe4a5 1.4px, transparent 2px) 0 0 / 14px 4px repeat-x;
  opacity: .71;
}
.slot-reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.slot-reel {
  position: relative; width: auto; border: 1px solid #7794b5;
  background: linear-gradient(#101b30, #2f527a 47%, #152842 82%, #0d192c);
  box-shadow: inset 0 4px 10px #080d1b, inset 0 -5px 10px #080e1b, 0 2px 4px #01030b8e;
  box-sizing: content-box;
}
.slot-reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(#070d234d, transparent 22% 74%, #070d2380);
}
.slot-strip i { display: grid; place-items: center; height: 76px; line-height: 76px; color: #fff0cf; }
.slot-strip .slot-seven {
  font: italic 950 3.7rem/1 Georgia, serif; text-shadow: 1px 2px #ac7930, 0 0 15px #ffc67c88, 0 4px 7px #080e1c;
}
.slot-symbol {
  width: 62px; aspect-ratio: 1; background: url("slot-reels.webp") 0 0 / 300% 200% no-repeat;
  filter: drop-shadow(0 3px 4px #05091876);
}
.slot-symbol.symbol-scroll { background-position: 50% 0; }
.slot-symbol.symbol-urn { background-position: 100% 0; }
.slot-symbol.symbol-gem { background-position: 0 100%; }
.slot-symbol.symbol-crown { background-position: 50% 100%; }
.slot-symbol.symbol-again { background-position: 100% 100%; }
.slot-symbol.symbol-unknown { background: none; }
.slot-result { justify-content: center; min-height: 66px; margin: 8px 0; }
.slot-result > b { color: #f5e7c8; }
.slot-result > span { color: #cbd9eb; }
.slotm #slot-go { display: block; width: min(100%, 386px); min-height: 46px; margin: 0 auto; }
.slotm #slot-go:disabled { opacity: .6; }
.slot-pay { max-width: 386px; margin: 13px auto 0; padding: 8px 10px; border: 1px solid #465a7b; border-radius: 8px; background: #0c1527; }
.slot-pay summary { cursor: pointer; color: #c8def3; font-weight: 750; }
.slot-pay td { padding: 7px 5px; }
@media (max-width: 420px) {
  .slot-home-mark { width: 32px; height: 37px; font-size: 1.64rem; }
  .slot-symbol { width: 54px; }
}
/* Use the same reel framing for skill and career results. */
.reward-dialog .reward-machine {
  border-color: #ac8d64;
  background-image: linear-gradient(145deg, #2a405ce8, #111c2dec 72%), url('/art/roulette/bronze-surface.webp');
}
.reward-dialog .cslot-reel:not(.lv2):not(.lv3) {
  background-image: linear-gradient(#1a2b40d9, #142033dc), url('/art/roulette/bronze-surface.webp');
}
.reward-dialog .reward-window {
  border-color: #84795e;
  box-shadow: 0 2px #aa8e5155, inset 0 0 8px #010510;
}

/* Existing slot and reel surfaces */
:root {
  --slot-cabinet-art: url("slot-cabinet-art.webp");
  --slot-glass-art: url("slot-reel-art.webp");
}
.slot-box .slot-machine,
#modal .reward-dialog .reward-machine,
#lotlive .ll-box.lot-slot,
.tal-slot {
  background: #0b1627 var(--slot-cabinet-art) center / 100% 100% no-repeat;
  border-color: #172231;
}
.slot-box .slot-machine {
  padding-inline: clamp(12px, 2.8vw, 18px);
}
#modal .reward-dialog .reward-machine::before {
  border-image-source: none;
}
#modal .reward-dialog .skw-wheel.need {
  background: #161b28 var(--slot-cabinet-art) center / 100% 100% no-repeat;
  border-color: #a88550;
}
#modal .reward-dialog .skw-wheel.got { border-color: #72a895; }
.slot-box .slot-reel,
.reward-dialog .reward-window,
.lot-slot .lot-reel,
.tal-slot .tal-reel,
:is(#gwpop, #gwpeek) .gw-cell {
  background: #09182b var(--slot-glass-art) center / 100% 100% no-repeat;
  box-shadow: none;
}
.slot-box .slot-reel,
.reward-dialog .reward-window,
.lot-slot .lot-reel { border-color: #253b51; }
.slot-box .slot-reel::after,
.reward-dialog .reward-clip::after { background: none; }
.reward-dialog .reward-symbol:not(.symbol-gold) { color: #edf8ff; background: transparent; }
.reward-dialog .reward-symbol.symbol-gold { background: #80602f36; }
.reward-dialog .cslot-reel:not(.lv2):not(.lv3) { background: #101e2fcc; border-color: #415878; }
.reward-dialog .cslot-reel.lv2 { background: #193243d9; border-color: #7ba9bc; }
.reward-dialog .cslot-reel.lv3 { background: #342a22e6; border-color: #c4a169; }
.reward-dialog .cslot-reel h3, .lot-slot .lot-reel small, .tal-slot .tal-t { color: #d1e2f5; }
.lot-slot .lot-reel.stop { border-color: #e4bf7c; }
:is(#gwpop, #gwpeek) .gw-cell.on {
  background: #09182b var(--slot-glass-art) center / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 1px #f6d18cbb;
}
:is(#gwpop, #gwpeek) .gw-cell.win {
  background: #09182b var(--slot-glass-art) center / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 1px #8fe6bcb3;
}

/* Mythic summoning */
.champion-reveal {
  position: fixed;
  width: min(1100px, calc(100vw - 22px));
  max-width: none;
  max-height: calc(100dvh - 18px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #b59059;
  border-radius: 17px;
  background: #0b1020;
  color: #fff4df;
  box-shadow: 0 24px 100px #000, 0 0 34px #c4914a3f;
}
.champion-reveal::backdrop { background: #030610e8; }
.champion-scene {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: space-between;
  gap: 12px;
  min-height: min(710px, calc(100dvh - 20px));
  padding: clamp(12px, 2.5vw, 30px);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
  background: linear-gradient(#060a18a8 0%, #08112722 24% 75%, #080c1def), url("champion-hall.webp") center / cover no-repeat;
}
.champion-scene header { position: relative; z-index: 2; }
.champion-scene header > p {
  margin: 0 0 4px;
  color: #ffdba1;
  font-weight: 850;
  letter-spacing: .14em;
  text-shadow: 0 2px 8px #020510;
}
.champion-scene h2 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 3.7rem);
  line-height: 1.07;
  text-shadow: 0 3px 14px #060918, 0 0 29px #ffcf7b6f;
  overflow-wrap: anywhere;
}
.champion-stage { position: relative; z-index: 1; width: 100%; min-width: 0; }
.champion-prepare, .champion-result { display: grid; place-items: center; gap: 8px; }
.champion-stage [hidden] { display: none; }
.champion-card {
  width: clamp(105px, 23vw, 185px);
  max-width: min(54vw, 31dvh);
  filter: drop-shadow(0 10px 13px #04081cba) drop-shadow(0 0 15px #ffcf7955);
}
.champion-reveal[data-scene="myth"] .champion-result .champion-card {
  width: clamp(128px, 26vw, 230px);
  max-width: min(58vw, 37dvh);
}
.champion-prepare > p, .champion-result > p {
  margin: 0;
  max-width: 43ch;
  padding: 3px 12px;
  border-radius: 6px;
  color: #f9ecd4;
  background: #0c1024b3;
  font-weight: 720;
  word-break: keep-all;
}
.champion-value {
  margin: 0;
  color: #fff3cc;
  font-size: clamp(2.05rem, 8vw, 5.05rem);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -.055em;
  text-shadow: 0 3px 0 #744622, 0 0 28px #ffbb58ad, 0 0 55px #efa34671;
}
.champion-materials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: min(100%, 660px);
  margin: 3px 0 0;
  padding: 0;
  gap: 6px;
  list-style: none;
}
.champion-materials li {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  flex: 0 0 clamp(46px, 10vw, 83px);
  min-height: 75px;
  padding: 5px 3px;
  border: 1px solid #cbac785c;
  border-radius: 8px;
  background: linear-gradient(150deg, #263b5cea, #111832f0);
  box-shadow: 0 4px 11px #07081bb0;
  font-size: .72rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.champion-materials img { width: 35px; aspect-ratio: 1; object-fit: contain; }
.champion-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 52%, #fff2badd, #eaa85269 24%, transparent 60%);
}
.champion-scene footer { z-index: 3; }
.champion-action {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #c9ac78;
  border-radius: 9px;
  background: #121f34f2;
  color: #fff1cb;
  font-weight: 850;
}
.champion-reveal[data-phase="result"] .champion-action {
  background: linear-gradient(#ffedb3, #e7b66e);
  color: #1b1f2e;
}
.champion-reveal[data-phase="rise"] .champion-materials li {
  transition: transform .85s cubic-bezier(.55,.04,.85,.58), opacity .8s;
  transform: translate(calc((var(--material-mid) - var(--material-index)) * 34px), -47px) scale(.27);
  opacity: 0;
}
.champion-reveal[data-phase="rise"] .champion-prepare > .champion-card { animation: allstar-champion-rise 1.1s ease-in both; }
.champion-reveal[data-phase="rise"] .champion-glow { animation: allstar-champion-glow 1.22s ease-in both; }
.champion-reveal[data-phase="result"] .champion-result { animation: allstar-champion-arrive .7s ease-out both; }
@keyframes allstar-champion-rise {
  65% { transform: translateY(-15px) scale(1.09); }
  100% { transform: translateY(-27px) scale(1.12); opacity: .16; }
}
@keyframes allstar-champion-glow {
  45% { opacity: .13; }
  100% { opacity: .78; }
}
@keyframes allstar-champion-arrive { from { opacity: 0; transform: translateY(7px) scale(.96); } }
@media (max-width: 480px) {
  .champion-reveal[data-scene="myth"] .champion-result .champion-card { width: 166px; }
  .champion-materials { gap: 4px; }
  .champion-materials li { flex-basis: 61px; min-height: 65px; }
  .champion-materials img { width: 29px; }
}
@media (max-height: 540px) {
  .champion-scene { gap: 5px; padding: 8px 13px; }
  .champion-scene h2 { font-size: clamp(1.33rem, 5vw, 2.05rem); }
  .champion-stage .champion-card { max-width: 23dvh; }
  .champion-reveal[data-scene="myth"] .champion-result .champion-card { max-width: 26dvh; }
  .champion-materials li { min-height: 42px; }
  .champion-materials img { width: 22px; }
  .champion-value { font-size: clamp(1.65rem, 5vw, 2.8rem); }
  .champion-action { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .champion-reveal *, .champion-reveal [class] { animation: none !important; transition: none !important; }
}
