:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: #221938;
  background: #f7f5fc;
  --ink: #221938;
  --muted: #625a73;
  --purple: #6b3bed;
  --line: #e8e2f2;
  --surface: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 290px; padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
body:has(.opening-dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #a477ff; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.topbar { padding-top: env(safe-area-inset-top); background: #ffffffed; border-bottom: 1px solid var(--line); }
.topbar-inner, .shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.topbar-inner { height: 73px; display: flex; align-items: center; gap: 27px; }
.brand {
  display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border-radius: 12px;
  color: #fff; background: linear-gradient(145deg, #965fff, #5428d4); font-size: 25px; line-height: 1;
  box-shadow: 0 4px 9px #653bd53d, inset 0 1px 1px #ffffff57;
}
.tabs { display: flex; gap: 4px; }
.tabs a { position: relative; padding: 8px 17px 9px; color: var(--muted); font-size: .94rem; font-weight: 650; border-radius: 8px; }
.tabs a:hover, .tabs a[aria-current] { color: #5927cc; background: #f0eaff; }
.profile {
  margin-left: auto; padding: 7px 11px 7px 8px; display: flex; align-items: center; gap: 10px;
  background: #faf8fd; border: 1px solid #efeaf5; border-radius: 11px;
}
.pack-counter {
  display: grid; justify-items: start; gap: 1px; min-width: 107px; margin-left: -17px; padding: 5px 9px;
  color: #5129af; background: #f3edfe; border: 1px solid #e8defa; border-radius: 9px;
  font-size: .79rem; white-space: nowrap; text-align: left;
}
.pack-counter:hover { background: #ebe0ff; }
.pack-counter strong { font-size: .93rem; font-variant-numeric: tabular-nums; }
.achievement-toggle {
  position: relative; min-height: 38px; margin-left: -16px; padding: 0 11px; color: #5e32c2; background: #f3edfe;
  border: 1px solid #e8defa; border-radius: 9px; font-size: .84rem; font-weight: 750; white-space: nowrap;
}
.achievement-toggle:hover { background: #ebe0ff; }
#counter-bonus { color: #62428f; font-size: .69rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.sound-toggle {
  display: inline-flex; height: 38px; min-width: 39px; flex: none; align-items: center; justify-content: center;
  gap: 5px; padding: 0 9px; color: #5e32c2; background: #f3edfe; border: 1px solid #e8defa; border-radius: 9px;
  font-size: .79rem; font-weight: 730;
}
.sound-toggle > span:first-child { font-size: 1.12rem; line-height: 1; }
.sound-toggle[aria-pressed="false"] { color: #71677c; background: #f7f5fa; border-color: #ede8f3; }
.sound-toggle[aria-pressed="false"] > span:first-child { text-decoration: line-through; }
.topbar .sound-toggle { margin-left: -13px; }
.save-controls {
  display: flex; flex: none; align-items: center; gap: 8px; margin-left: -16px;
  padding: 4px 4px 4px 9px; background: #faf8fd; border: 1px solid #e8def3; border-radius: 9px;
}
.save-status { color: #655574; font-size: .75rem; white-space: nowrap; }
.restart-toggle {
  min-height: 31px; padding: 3px 8px; color: #582db1; background: #f0e9fb;
  border: 1px solid #e8dcf8; border-radius: 6px; font-size: .81rem; font-weight: 750; white-space: nowrap;
}
.restart-toggle:hover { background: #e8dbfa; }
.level {
  padding: 5px 8px; white-space: nowrap; color: #5a2ccc; background: #efe7ff; border-radius: 6px;
  font-size: .82rem; font-weight: 800;
}
.xp { color: #5c506e; display: grid; gap: 4px; min-width: 83px; font-size: .72rem; font-weight: 700; }
progress { display: block; width: 100%; height: 5px; appearance: none; border: 0; background: #e9e1f3; border-radius: 10px; }
progress::-webkit-progress-bar { background: #e9e1f3; border-radius: 10px; }
progress::-webkit-progress-value { background: #8c57f6; border-radius: 10px; transition: width .3s ease; }
progress::-moz-progress-bar { background: #8c57f6; border-radius: 10px; }
.shell { padding-block: 30px; }

.hero {
  min-height: 322px; position: relative; overflow: hidden; isolation: isolate; display: grid;
  grid-template-columns: 1.01fr 1fr; border-radius: 24px; color: #fff;
  background: radial-gradient(ellipse at 82% 62%, #804dea 0%, #482482 38%, transparent 65%),
    linear-gradient(118deg, #211137, #381865 65%, #301a59);
  box-shadow: 0 16px 27px -19px #38156b8a, inset 0 0 0 1px #ffffff20;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .48;
  background: repeating-linear-gradient(90deg, transparent 0 43px, #e1ccff25 44px, transparent 45px),
    repeating-linear-gradient(0deg, transparent 0 43px, #e1ccff25 44px, transparent 45px);
  mask-image: linear-gradient(90deg, transparent 28%, black 70%);
}
.hero-content { padding: 43px 0 39px 48px; align-self: center; z-index: 1; }
.hero h1 {
  font-size: clamp(3.2rem, 7.1vw, 6.05rem); font-weight: 850; line-height: .96; letter-spacing: -.06em; white-space: nowrap;
}
.producer-credit {
  display: inline-flex; margin-top: 13px; padding: 7px 11px; vertical-align: top;
  background: #f0e6f8; border-radius: 5px;
}
.producer-credit img { display: block; width: clamp(163px, 24vw, 224px); height: auto; }
.hero p { color: #e4d7fa; font-size: clamp(.94rem, 1.7vw, 1.12rem); margin-top: 13px; letter-spacing: .035em; }
.collection-link {
  position: relative; display: inline-flex; align-items: center; gap: 9px; margin-top: 29px; padding: 10px 12px;
  background: #ffffff19; border: 1px solid #ffffff33; border-radius: 10px; color: #f6efff; font-size: .875rem;
  transition: background .2s ease;
}
.collection-link:hover { background: #ffffff2c; }
.collection-icon { color: #d3b9ff; font-size: 1.13rem; line-height: .85; }
.collection-link strong { padding-left: 9px; border-left: 1px solid #e4d1ff57; font-variant-numeric: tabular-nums; }
.collection-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #ffd35a; box-shadow: 0 0 0 1px #b27718; }
.collection-link .collection-dot { top: -3px; right: -3px; }
.hero-art { position: absolute; inset: 0 0 0 48%; pointer-events: none; }
.orbit { position: absolute; top: 50%; left: 52%; width: 76%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #e5ccff43; transform: translate(-50%, -50%); }
.orbit-two { width: 94%; border-color: #e5ccff29; }
.show-card {
  position: absolute; left: 50%; top: 49%; width: clamp(110px, 15vw, 161px); aspect-ratio: .705; overflow: hidden;
  border: 2px solid #d6befc; border-radius: 13px; box-shadow: 0 17px 32px #190c3b9e; background: #594185;
}
.show-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-card span {
  position: absolute; top: 8px; left: 7px; padding: 4px 7px; border-radius: 5px; background: #211233e8;
  color: #f7ebd8; font-size: .68rem; font-weight: 850; letter-spacing: .07em;
}
.show-left { transform: translate(-112%, -43%) rotate(-18deg) scale(.92); }
.show-right { transform: translate(11%, -45%) rotate(18deg) scale(.93); }
.show-main { transform: translate(-50%, -51%) rotate(-3deg); border-color: #efe1ff; }
.show-main::after {
  position: absolute; content: ""; inset: 0;
  background: linear-gradient(139deg, #fff5 5%, transparent 35%, transparent 60%, #d2a3ff3a 84%);
}
.hero-spark { position: absolute; color: #f2daff; text-shadow: 0 0 15px #f4c8ff; }
.spark-one { left: 8%; top: 24%; font-size: 30px; }
.spark-two { right: 12%; top: 17%; font-size: 23px; }
.spark-three { right: 8%; bottom: 20%; font-size: 41px; }

.pack-section { margin-top: 30px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.pack-tools { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.wildcard-total {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid #f0dcac;
  border-radius: 8px; background: #fff2d4; color: #775110; font-size: .79rem; font-weight: 750; white-space: nowrap;
}
.wildcard-total strong { font-variant-numeric: tabular-nums; }
.section-head h2, .dialog-pad h2 { font-size: 1.48rem; letter-spacing: -.04em; font-weight: 800; }
.quiet {
  padding: 7px 10px; border-radius: 8px; border: 1px solid #e8e0f2; color: #5a4a72;
  background: #fff; font-size: .875rem; font-weight: 700;
}
.quiet:hover { background: #f0eaff; color: #5d2acb; }
.quiet span { margin-right: 3px; }
.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pack-panel {
  --panel-tint: #eae0ff; --panel-accent: #7144ce; --swirl: #b89aee82;
  display: grid; grid-template-columns: minmax(126px, 34%) 1fr; gap: 20px; min-width: 0;
  padding: 13px 15px 13px 13px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 4px 16px #2c125807; border-radius: 18px;
}
.gold-panel { --panel-tint: #fff0cf; --panel-accent: #a76b16; --swirl: #dcb76e83; }
.pack-display {
  overflow: hidden; background: radial-gradient(ellipse at 50% 63%, var(--panel-tint), transparent 80%), #fbf8ff;
  min-height: 166px; display: grid; place-items: center; position: relative; isolation: isolate; border-radius: 12px;
}
.gold-panel .pack-display { background-color: #fffbf0; }
.pack-display::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--swirl) 1px, transparent 1px);
  background-size: 10px 10px; mask-image: linear-gradient(115deg, black, transparent 83%);
}
.pack-orbit, .pack-orbit::after {
  position: absolute; width: 123px; height: 123px; border: 1px solid var(--swirl);
  border-radius: 50%; z-index: -1;
}
.pack-orbit::after { content: ""; inset: -14px; width: auto; height: auto; }
.wrapper {
  --wrap-ink: #f3e7ff; --wrap-seam: #6942c3;
  --wrap-color: linear-gradient(133deg, #c3a9ff 0%, #8a59ed 19%, #4f2dc0 41%, #7344df 59%, #aa85ff 74%, #4925b3 100%);
  position: relative; width: 84px; height: 121px; transform: rotate(-11deg);
  background: var(--wrap-color); border-radius: 6px; color: var(--wrap-ink);
  border: 1px solid #ffffffa1; box-shadow: 0 10px 14px -6px #30204e83, inset 0 0 10px #ffffff4d;
}
.wrapper.gold {
  --wrap-ink: #653402; --wrap-seam: #d49d39;
  --wrap-color: linear-gradient(130deg, #fff1bd 3%, #e8ba56 21%, #ffeb99 34%, #c88925 48%, #ffe098 69%, #e8af48 78%, #fff1b6 96%);
  transform: rotate(10deg);
}
.wrapper::before, .wrapper::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px; opacity: .62;
  background: repeating-linear-gradient(90deg, #fff5 0 1px, transparent 1px 3px), var(--wrap-seam);
}
.wrapper::before { top: 0; border-radius: 5px 5px 0 0; border-bottom: 1px solid #fff9; }
.wrapper::after { bottom: 0; border-radius: 0 0 5px 5px; border-top: 1px solid #fff9; }
.wrapper-face { position: absolute; inset: 13px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #fff7; border-radius: 3px; }
.wrapper-face span { font-size: .61rem; line-height: .97; text-align: center; font-weight: 950; letter-spacing: .09em; }
.wrapper-face b { font-size: 35px; line-height: 1.15; font-weight: 500; text-shadow: 0 0 12px #fff9; }
.wrapper-face small { font-size: .42rem; letter-spacing: .08em; font-weight: 850; }
.pack-info { align-self: center; min-width: 0; padding-block: 4px; }
.pack-title { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.pack-title h3 { font-size: 1.25rem; font-weight: 820; letter-spacing: -.03em; white-space: nowrap; }
.inventory {
  color: var(--panel-accent); padding: 4px 8px; border-radius: 6px; background: var(--panel-tint);
  font-size: .8rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pack-info p { color: var(--muted); font-size: .875rem; margin-top: 6px; min-height: 34px; }
.pack-info > small { display: block; font-size: .78rem; color: var(--panel-accent); margin-top: 7px; }
.action {
  display: block; width: 100%; padding: 10px 10px 11px; border: 1px solid transparent;
  border-radius: 9px; font-weight: 780; font-size: .93rem; transition: filter .2s, transform .2s;
}
.action:not(:disabled):hover { filter: brightness(1.09); transform: translateY(-1px); }
.action:not(:disabled):active { transform: translateY(1px); }
.basic-action { color: #fff; background: #6b3bed; box-shadow: 0 4px 8px #653be836; }
.gold-action { color: #3e2507; background: #f7c966; border-color: #f1bd56; box-shadow: 0 4px 8px #ca8c3333; }
.basic-action:disabled { background: #ede7f8; color: #746683; box-shadow: none; }
.gold-action:disabled { background: #fff5de; border-color: #f6e8c7; color: #786641; box-shadow: none; }

.collection-page { min-height: 68vh; }
.collection-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 28px;
  background: #eee7fb; border: 1px solid #e4d9f6; border-radius: 18px;
}
.collection-heading h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 840; letter-spacing: -.048em; }
.collection-heading p { color: var(--muted); margin-top: 5px; }
.collection-total { padding: 9px 13px; color: #562bb6; background: #fff; border-radius: 9px; white-space: nowrap; }
.collection-totals { display: grid; justify-items: end; gap: 6px; }
.collection-totals { display: grid; justify-items: end; gap: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 19px 16px; }
.filters button { padding: 6px 13px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .88rem; font-weight: 800; }
.filters button:hover, .filters button[aria-pressed="true"] { background: #ede5ff; border-color: #d9c8fc; color: #5927c8; }
.collection-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.collection-group {
  display: grid; justify-items: start; gap: 12px; min-width: 0; padding: 15px;
  background: #fff; border: 1px solid var(--line); border-radius: 15px;
}
.collection-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.collection-group-head h2 { font-size: 1.07rem; font-weight: 800; }
.collection-group-head span { color: #62428f; font-size: .79rem; white-space: nowrap; font-weight: 750; }
.collection-group-cards { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.collection-group-cards:has(.collection-item-landscape) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.collection-item-landscape { grid-column: span 2; }
.collection-item-landscape:only-child { grid-column: 1 / -1; }
.set-reward { width: auto; min-height: 37px; padding: 6px 12px; font-size: .81rem; }
.ur-group { grid-column: 1 / -1; }
.ur-group .card-face { aspect-ratio: 4 / 3; }
.collection-item { min-width: 0; }
.collection-card { display: block; width: 100%; color: inherit; border: 0; background: none; padding: 0; border-radius: 11px; transition: transform .2s; }
.collection-card:hover { transform: translateY(-3px); }
.card-status { text-align: center; padding-top: 6px; font-size: .75rem; color: #6b6574; }
.card-status.owned { color: #5927c8; font-weight: 700; }
.tier-r { --tier-color: #dde4ee; --tier-edge: #a7b3c5; }
.tier-sr { --tier-color: #d5bbff; --tier-edge: #ad7aff; }
.tier-ssr { --tier-color: #fff2bd; --tier-edge: #f9d783; }
.tier-ur { --tier-color: #ffe2ff; --tier-edge: #ffd2ff; }
.card-face {
  position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: .705;
  color: #fff; background: #231934; border: 2px solid var(--tier-edge); border-radius: 11px;
  overflow: hidden; text-align: left; box-shadow: 0 4px 12px #1f113c2f;
}
.card-face.gallery-landscape { aspect-ratio: var(--art-ratio); }
.gallery-landscape .card-art :is(img, video) { object-fit: contain; }
.tier-ssr.card-face:not(.locked) { box-shadow: 0 0 10px #f9cf7970, 0 5px 17px #2013453e; }
.tier-ur.card-face:not(.locked) { box-shadow: 0 0 13px #faabff8c, 0 5px 17px #2013453e; }
.tier-sr.card-face:not(.locked) { box-shadow: 0 0 10px #9f67ef58, 0 5px 17px #2013453e; }
.card-art { position: absolute; inset: 0; isolation: isolate; }
.card-art > :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.group-art::before { content: ""; position: absolute; inset: -9px; background: var(--card-image) center / cover; filter: blur(7px) brightness(.53); z-index: -1; }
.group-art img { object-fit: contain; }
.rarity {
  position: absolute; top: 7px; left: 7px; padding: 3px 6px; color: var(--tier-color); font-weight: 850;
  font-size: .72rem; letter-spacing: .05em; background: #1b1229e8; border: 1px solid #ffffff27; border-radius: 5px;
}
.card-name {
  position: absolute; inset: auto 0 0; background: linear-gradient(0deg, #120a21f2, #120a21b8 58%, transparent);
  font-weight: 760; font-size: clamp(.75rem, 1.3vw, .93rem); line-height: 1.2;
  padding: 23px 7px 8px; text-align: center; text-shadow: 0 1px 2px #0f0920;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.locked.card-face { border-color: #9b94a7; }
.locked .card-art { filter: grayscale(1) brightness(.43) contrast(.86); }
.locked .rarity { color: #dad3e5; }
.locked .card-name { color: #ded6e6; }
.foil {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen;
  background: var(--foil-base);
}
.foil::after {
  position: absolute; content: ""; inset: 0; transform: translateX(-120%); background: var(--foil-beam);
  animation: foil-sweep var(--foil-period) ease-in-out infinite;
}
.tier-sr {
  --foil-base: linear-gradient(135deg, #8b3bf978, transparent 32%, transparent 66%, #8730f76b),
    repeating-linear-gradient(131deg, transparent 0 8px, #a46cff26 9px, transparent 10px 15px);
  --foil-beam: linear-gradient(119deg, transparent 27%, #7546db4d 34%, #aa59f9a0 39%, #f0c3ffba 43%, #7c42df77 48%, transparent 61%);
  --foil-period: 4.9s;
}
.tier-ssr {
  --foil-base: linear-gradient(148deg, #ffb13a55, transparent 29%, transparent 69%, #ffd67570),
    repeating-linear-gradient(132deg, transparent 0 5px, #fff2aa35 6px, transparent 7px 10px);
  --foil-beam: linear-gradient(118deg, transparent 25%, #f9992e65 35%, #ffcf52bc 42%, #fffae6e9 46%, #ffe497a0 50%, #faaa323f 55%, transparent 64%);
  --foil-period: 4.1s;
}
.tier-ur {
  --foil-base: linear-gradient(145deg, #f569df73, #714fff22 24%, transparent 41%, #62eefd30 60%, #89ffb739 71%, #ffb8677a),
    repeating-linear-gradient(35deg, transparent 0 5px, #ffdcfc3b 6px, transparent 7px 10px);
  --foil-beam: linear-gradient(115deg, transparent 20%, #f747e87b 27%, #9564ffc4 35%, #5bdaffca 42%, #a4ff99c0 49%, #ffed7ed3 54%, #ff7ea5bb 59%, transparent 70%);
  --foil-period: 3.35s;
}
@keyframes foil-sweep { 0%, 15% { transform: translateX(-120%); } 58%, 100% { transform: translateX(120%); } }

dialog { padding: 0; border: 0; max-height: calc(100% - 24px); border-radius: 17px; color: var(--ink); }
dialog::backdrop { background: #160c2ac4; backdrop-filter: blur(5px); }
.info-dialog { width: min(460px, calc(100% - 24px)); }
.dialog-pad { position: relative; padding: 26px; }
.close {
  position: absolute; top: 10px; right: 10px; z-index: 4; width: 34px; height: 34px; padding: 0; line-height: 1;
  background: #f2edf8; color: #473957; border: 1px solid #e8deef; border-radius: 8px; font-size: 1.45rem;
}
.close:hover { background: #e6daf7; }
.dialog-pad p { margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.bonus-info { margin-top: 13px; padding: 10px 12px; background: #f1eafd; border-radius: 9px; color: #5228ac; font-size: .88rem; }
.bonus-info p { margin-top: 2px; font-size: .81rem; }
.dialog-pad .ur-cooldown { color: #692b75; font-weight: 720; }
.restart-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
.restart-actions button { min-width: 74px; }
.restart-confirm { width: auto; color: #fff; background: #a53d58; }
.dialog-pad .restart-error { color: #a23854; font-weight: 730; }
.achievement-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; margin-block: 15px 8px; border-radius: 9px; color: #5228ac; background: #f1eafd;
  font-size: .87rem;
}
.achievement-list { list-style: none; margin: 0; padding: 0; }
.achievement-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 39px;
  padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: .89rem;
}
.achievement-list strong { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.achievement-list .achievement-ready strong { color: #86560b; background: #ffedc5; padding: 3px 7px; border-radius: 6px; }
.rarity-achievements { margin-block: 14px 11px; }
.rarity-achievements h3 { margin-bottom: 8px; font-size: .96rem; }
.rarity-achievements ul { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.rarity-achievement {
  display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  padding: 7px; border: 1px solid #eee6f8; border-radius: 9px; background: #f9f5fe;
}
.rarity-achievement.ready { background: #fff7e3; border-color: #f0dfb7; }
.achievement-medal {
  display: grid; place-items: center; min-height: 33px; padding: 3px; border-radius: 7px;
  background: #392854; color: var(--tier-color); font-size: .75rem; font-weight: 850;
}
.rarity-achievement-copy { display: grid; gap: 2px; line-height: 1.2; }
.rarity-achievement-copy strong { font-size: .84rem; }
.rarity-achievement-copy span { color: var(--muted); font-size: .72rem; }
.rarity-claim { padding: 6px 7px; font-size: .74rem; white-space: nowrap; }
.rarity-achievement.ready .rarity-claim { border-color: #edc46a; color: #613e06; background: #ffdf94; }
.rarity-claim:disabled { color: #766884; border-color: #eee5f3; background: #f4eff8; }
.dialog-pad #rarity-claim-result { margin-top: 8px; color: #61419b; font-weight: 750; }
.achievement-toast {
  inset: max(15px, env(safe-area-inset-top)) auto auto 50%; margin: 0; transform: translateX(-50%);
  width: min(328px, calc(100% - 28px)); padding: 11px 13px; border: 1px solid #aa8559; border-radius: 12px;
  color: #faf1ff; background: #2d2047; box-shadow: 0 12px 30px #170d2a75;
  pointer-events: none; overflow: hidden;
}
.achievement-toast:popover-open { display: flex; gap: 10px; align-items: flex-start; animation: achievement-toast-enter .25s ease-out both; }
.achievement-toast-icon {
  display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto;
  border-radius: 8px; background: #ffe2a1; color: #704309; font-size: 1.15rem;
}
.achievement-toast strong { color: #ffe2a1; font-size: .76rem; }
.achievement-toast ul { margin: 3px 0; padding: 0; list-style: none; font-size: .92rem; font-weight: 760; }
.achievement-toast p { color: #e8d7f1; font-size: .76rem; }
@keyframes achievement-toast-enter {
  from { opacity: 0; translate: 0 -10px; }
  to { opacity: 1; translate: 0 0; }
}
.rate-table { width: 100%; border-collapse: collapse; margin-block: 15px 12px; font-size: .875rem; }
.rate-table :is(td, th) { padding: 9px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.rate-table thead th { color: #554763; background: #f6f1fc; }
.rate-tier.tier-sr { color: #6b3bd2; }
.rate-tier.tier-ssr { color: #87530c; }
.rate-tier.tier-ur { color: #9c3194; }
.detail-dialog { background: #261b37; }
.detail-body { position: relative; }
.detail-dialog .close { top: 11px; right: 11px; }
.detail-dialog .card-face { width: min(720px, 91vw); height: min(75dvh, 690px); aspect-ratio: auto; border-radius: 17px; }
.detail-dialog :is(.tier-ur, .gallery-landscape) { width: min(820px, 91vw, 101dvh); height: auto; aspect-ratio: var(--art-ratio, 4 / 3); }
.detail-dialog .card-art :is(img, video) { object-fit: contain; }
.detail-dialog .rarity { top: 13px; left: 13px; font-size: .95rem; }
.detail-dialog .card-name { font-size: 1.15rem; padding: 31px 16px 12px; }
.detail-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 63px; padding: 9px 13px; color: #f5e9ff;
}
.detail-actions strong { color: #ffe2a0; font-size: .91rem; font-variant-numeric: tabular-nums; }
.detail-actions p { margin-top: 3px; color: #dfd1ec; font-size: .79rem; }
.detail-actions button { width: auto; min-width: 91px; }
.conversion-confirm { width: auto; }
@property --scan-cut { syntax: "<percentage>"; inherits: true; initial-value: -12%; }
.card-face.converting { animation: conversion-scan var(--conversion-duration, 2800ms) cubic-bezier(.34,.13,.6,.95) both; }
.converting .conversion-color {
  filter: none;
  mask-image: linear-gradient(132deg, #000 calc(var(--scan-cut) - 2%), transparent calc(var(--scan-cut) + 1.5%));
}
.conversion-laser {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: screen;
  background:
    linear-gradient(132deg, transparent 0 calc(var(--scan-cut) - 4%), #a272fa4f calc(var(--scan-cut) - 1.8%),
      #c2a4fcad calc(var(--scan-cut) - .75%), #fff8e9 calc(var(--scan-cut) - .1%),
      #82efffd9 calc(var(--scan-cut) + .65%), #7998f65d calc(var(--scan-cut) + 2.6%), transparent calc(var(--scan-cut) + 5%));
}
.conversion-laser::after {
  content: ""; position: absolute; inset: 0; opacity: .65;
  background: repeating-linear-gradient(47deg, transparent 0 12px, #fff1ca9c 13px, transparent 15px 34px);
  mask-image: linear-gradient(132deg, transparent calc(var(--scan-cut) - 5%), black var(--scan-cut), transparent calc(var(--scan-cut) + 2%));
}
@keyframes conversion-scan { from { --scan-cut: -12%; } to { --scan-cut: 112%; } }

.opening-dialog {
  inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0;
  border-radius: 0; background: #12091f; color: #fff; overflow: auto;
}
.opening-dialog[open] { animation: scene-enter .25s ease-out both; }
@keyframes scene-enter { from { opacity: 0; } to { opacity: 1; } }
.opening-scene {
  --stage-card-width: min(440px, 71vw, 45dvh);
  isolation: isolate; position: relative; min-height: 100dvh; overflow: hidden;
  display: grid; align-items: center;
  background: radial-gradient(ellipse at 50% 46%, #3b2360, #191027 50%, #11091d 80%);
}
.opening-scene::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(#a37de919 1px, transparent 1px), linear-gradient(90deg, #a37de919 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
.gold-scene { background: radial-gradient(ellipse at 50% 46%, #543442, #24132a 55%, #130b1b 80%); }
.stage-tools { position: absolute; display: flex; right: 20px; top: 17px; z-index: 4; gap: 7px; }
.stage-tools .sound-toggle, .stage-close {
  display: inline-grid; place-content: center; grid-auto-flow: column; align-items: center; height: 38px; min-width: 39px;
  color: #f1e4ff; background: #271939b9; border: 1px solid #9a7abb63; border-radius: 9px;
}
.stage-tools .sound-toggle[aria-pressed="false"] { color: #cfbddb; background: #251b32; border-color: #9178b659; }
.stage-close { padding: 0 9px; font-size: 1.45rem; line-height: 1; }
.stage-tools button:hover { background: #50336bc9; }
.opening-content {
  position: relative; z-index: 2; display: grid; grid-template-rows: auto auto auto; justify-items: center;
  width: min(100%, 1020px); margin-inline: auto; padding: 34px 16px 27px; text-align: center;
}
.opening-heading { margin-bottom: clamp(11px, 2.5dvh, 24px); }
.opening-heading h2 { font-size: clamp(1.45rem, 3.5vw, 2.28rem); margin-top: 4px; letter-spacing: -.035em; }
.opening-pack-label { color: #e4cafc; font-weight: 750; font-size: .91rem; font-variant-numeric: tabular-nums; }
.gold-scene .opening-pack-label { color: #ffe2aa; }
.stage {
  position: relative; isolation: isolate; width: var(--stage-card-width); aspect-ratio: .705;
  display: grid; place-items: center;
}
.stage::before {
  content: ""; position: absolute; width: 150%; height: 28%; bottom: -7%; left: -25%; z-index: -1;
  background: radial-gradient(ellipse, #b997ff31 0, transparent 62%); transform: rotateX(38deg);
}
.pack-rip {
  position: absolute; width: 60%; aspect-ratio: .695; z-index: 2; transform: rotate(-8deg);
  filter: drop-shadow(0 13px 22px #090510ad);
  --tear-shape: 7% 25%, 16% 23%, 28% 25%, 40% 22%, 52% 24%, 63% 22%, 76% 24%, 88% 21%, 100% 23%;
}
.rip-packet { position: absolute; inset: 0; }
.rip-packet .wrapper {
  width: 100%; height: 100%; transform: none; border-radius: 9px;
  border-width: 2px; box-shadow: inset 0 0 28px #ffffff63;
}
.rip-packet .wrapper-face { inset: 11% 9%; }
.rip-packet .wrapper-face span { font-size: clamp(1.1rem, 3vw, 1.9rem); }
.rip-packet .wrapper-face b { font-size: clamp(2.4rem, 8vw, 6.7rem); }
.rip-packet .wrapper-face small { font-size: clamp(.52rem, 1.28vw, .88rem); }
.rip-packet .wrapper::before, .rip-packet .wrapper::after { height: 6.5%; }
.rip-top { clip-path: polygon(0 0, 100% 0, 100% 23%, 88% 21%, 76% 24%, 63% 22%, 52% 24%, 40% 22%, 28% 25%, 16% 23%, 7% 25%, 0 23%); }
.rip-body { clip-path: polygon(0 23%, var(--tear-shape), 100% 100%, 0 100%); }
.rip-seam {
  position: absolute; inset: 0; background: linear-gradient(90deg, #f4e3ff, #ffffff, #f7d8ff);
  clip-path: polygon(0 23%, var(--tear-shape), 100% 25%, 88% 23%, 76% 26%, 63% 24%, 52% 26%, 40% 24%, 28% 27%, 16% 25%, 7% 27%, 0 25%);
  mask: linear-gradient(#000, #000) left / 0% 100% no-repeat; opacity: 0;
}
.ripping { animation: grip-pack 1.3s ease-in-out both; }
.ripping .rip-top { animation: rip-top 1.3s cubic-bezier(.27,.57,.45,1) both; }
.ripping .rip-body { animation: rip-body 1.3s cubic-bezier(.27,.57,.45,1) both; }
.ripping .rip-seam { animation: rip-seam .65s .22s ease-out both; }
@keyframes grip-pack {
  0% { opacity: 0; transform: translateY(45%) rotate(-18deg) scale(.72); }
  20% { opacity: 1; transform: translateY(0) rotate(-8deg) scale(1); }
  36% { transform: translateX(-1%) rotate(-11deg) scale(1.05); }
  60% { transform: translateX(1%) rotate(-5deg) scale(1.04); }
  100% { transform: none; }
}
@keyframes rip-top {
  0%, 26% { transform: none; opacity: 1; }
  44% { transform: translate(22%, -15%) rotate(16deg); }
  76% { opacity: .8; }
  100% { opacity: 0; transform: translate(105%, -70%) rotate(44deg); }
}
@keyframes rip-body {
  0%, 31% { transform: none; opacity: 1; }
  58% { transform: translate(-7%, 8%) rotate(-13deg); }
  100% { opacity: 0; transform: translate(-31%, 62%) rotate(-27deg); }
}
@keyframes rip-seam {
  0% { opacity: 0; mask-size: 0% 100%; }
  30% { opacity: 1; }
  57% { opacity: .65; mask-size: 100% 100%; }
  100% { opacity: 0; mask-size: 100% 100%; }
}
.single-slot { position: relative; width: 100%; height: 100%; perspective: 1150px; z-index: 1; animation: card-arrives .31s ease-out both; }
@keyframes card-arrives { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.flip-card { position: absolute; inset: 0; transform-style: preserve-3d; }
.single-slot.face-up .flip-card { transform: rotateY(180deg); }
.single-slot.flipping .flip-card { animation: flip-card var(--flip-duration) cubic-bezier(.56,.07,.29,.97) both; }
@keyframes flip-card {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(180deg); }
}
.card-back, .slot-front { position: absolute; inset: 0; backface-visibility: hidden; }
.card-back {
  display: grid; place-items: center; align-content: center; overflow: hidden; padding: 6px; color: #eee0ff;
  border: 2px solid #c1a0f4; border-radius: 17px;
  background: repeating-linear-gradient(130deg, transparent 0 15px, #dcc2ff18 16px 17px),
    radial-gradient(ellipse, #7147ac, #2e1a50 80%);
  box-shadow: inset 0 0 28px #221138a6, 0 16px 42px #0f081de0;
}
.gold-scene .card-back {
  color: #ffe3aa; border-color: #edbe69;
  background: repeating-linear-gradient(130deg, transparent 0 11px, #ffe1a516 12px 13px),
    radial-gradient(ellipse, #aa7438, #4a2d37 84%);
}
.card-back::before, .card-back::after { content: ""; position: absolute; pointer-events: none; }
.card-back::before { inset: 7%; border: 1px solid currentColor; border-radius: 10px; opacity: .47; }
.card-back::after { width: 56%; aspect-ratio: 1; border: 1px solid currentColor; opacity: .42; transform: rotate(45deg); }
.back-icon { font-size: clamp(3rem, 12vw, 8.6rem); line-height: 1; text-shadow: 0 0 37px #e2a8ffae; }
.back-word { position: absolute; bottom: 13%; font-size: clamp(.76rem, 2.1vw, 1rem); font-weight: 850; letter-spacing: .18em; z-index: 1; }
.card-hit { position: absolute; z-index: 1; inset: 0; width: 100%; background: none; border: 0; border-radius: 17px; }
.single-slot:has(.card-hit:hover) .card-back { filter: brightness(1.13); }
.slot-front { transform: rotateY(180deg); }
.slot-front .card-face { border-radius: 17px; }
.slot-front .tier-ur {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(154%, 83vw, 89dvh); aspect-ratio: var(--art-ratio, 4 / 3);
}
.slot-front .tier-ur:not(.portrait-art) .group-art::before { display: none; }
.slot-front .rarity { top: 10px; left: 10px; font-size: clamp(.85rem, 1.85vw, 1.18rem); padding: 4px 8px; }
.slot-front .card-name { font-size: clamp(1.02rem, 2.3vw, 1.45rem); padding: 27px 9px 11px; }
.slot-front .foil::after { animation-delay: -.75s; }
.impact-sr { animation: card-impact .74s cubic-bezier(.18,.65,.3,1) both; --impact-scale: 1.04; }
.impact-ssr { animation: card-impact 1.02s cubic-bezier(.16,.62,.34,1) both; --impact-scale: 1.13; }
.impact-ur { animation: card-impact 1.3s cubic-bezier(.16,.62,.34,1) both; --impact-scale: 1.17; }
@keyframes card-impact {
  0% { scale: .98; }
  28% { scale: var(--impact-scale); }
  72% { scale: .985; }
  100% { scale: 1; }
}
.opening-bottom { display: grid; justify-items: center; gap: 7px; margin-top: clamp(14px, 2.5dvh, 26px); width: 100%; }
.opening-action { width: min(100%, 224px); color: #321656; background: #e8d6ff; border-color: #f9efff; min-height: 44px; }
.opening-action:disabled { opacity: .63; }
.reward { min-height: 1.15em; font-size: .89rem; font-weight: 750; color: #ffe5bc; }

.effects { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.effect-r { --fx: #e7e9ff; --halo: #e0dfff77; --diameter: 340px; --lifetime: .68s; }
.effect-sr { --fx: #e1baff; --halo: #aa53ffa3; --diameter: 93vmax; --lifetime: 2.2s; }
.effect-ssr { --fx: #fff0a5; --halo: #ffb539ae; --diameter: 142vmax; --lifetime: 2.9s; }
.effect-ur { --fx: #ffb9fa; --halo: #a45bffd4; --diameter: 165vmax; --lifetime: 3.65s; }
.effects > span { position: absolute; top: var(--fx-y); left: var(--fx-x); opacity: 0; }
.fx-aura, .fx-ring, .fx-rays, .fx-aurora, .fx-caustics { width: var(--diameter); height: var(--diameter); border-radius: 50%; }
.fx-aura {
  background: radial-gradient(circle, #fffce9, var(--halo) 21%, transparent 64%);
  mix-blend-mode: screen; animation: glow var(--lifetime) ease-out both;
}
.effect-sr .fx-aura { background: radial-gradient(circle, #ead5ff, #944affa3 22%, #45159971 41%, transparent 66%); }
.effect-ssr .fx-aura { background: radial-gradient(circle, #fffdef, #ffc649c7 18%, #d77f224f 45%, transparent 66%); }
.effect-ur .fx-aura { background: radial-gradient(circle, #fffaff, #ad55ffc7 20%, #5268fa90 37%, #6cf4ef41 55%, transparent 67%); }
.fx-ring {
  border: 2px solid var(--fx); box-shadow: 0 0 22px var(--halo), inset 0 0 17px var(--halo);
  animation: ring var(--lifetime) ease-out both;
}
.second-ring { animation-delay: .23s; border-width: 1px; }
.third-ring { animation-delay: .43s; border-color: #8af5ff; }
.fx-rays {
  background: repeating-conic-gradient(from 13deg, transparent 0deg 17deg, var(--halo) 20deg, transparent 25deg 35deg);
  mask-image: radial-gradient(circle, transparent 6%, black 33%, transparent 70%);
  animation: rays var(--lifetime) ease-out both;
}
.effect-sr .fx-rays { transform-origin: center; }
.effect-ssr .fx-rays { background: repeating-conic-gradient(from 13deg, transparent 0deg 9deg, #ffcc7285 11deg, #ffe9abce 12deg, transparent 15deg 23deg); }
.effect-ur .fx-rays { background: repeating-conic-gradient(from 23deg, transparent 0deg 7deg, #dc7defb8 10deg, #92edff9e 13deg, transparent 17deg 27deg); }
.fx-caustics {
  background: repeating-conic-gradient(from 6deg, transparent 0deg 19deg, var(--fx) 20deg, transparent 21deg 38deg);
  mask-image: radial-gradient(circle, transparent 13%, #0008 40%, transparent 69%);
  animation: rays var(--lifetime) .12s ease-out both;
}
.effect-ur .fx-caustics { background: repeating-conic-gradient(from 6deg, transparent 0deg 12deg, #fff99bbd 13deg, transparent 15deg 25deg, #85ffe2d9 26deg, transparent 28deg 38deg); }
.fx-aurora {
  background: conic-gradient(from 60deg, #fb7aeaae, #946bffa5, #6197ffaa, #66ffe7ba, #b5ff9795, #ffe699b8, #ff7c909c, #fb7aeaae);
  mask-image: radial-gradient(circle, #000 0, #000a 38%, transparent 68%);
  filter: blur(18px); mix-blend-mode: screen; animation: aurora var(--lifetime) ease-out both;
}
.fx-particle {
  width: var(--size); height: var(--size); border-radius: 50%; background: var(--particle-color, var(--fx));
  box-shadow: 0 0 11px var(--particle-color, var(--fx));
  animation: particle calc(var(--lifetime) * .79) cubic-bezier(.15,.59,.38,1) var(--delay) both;
}
.fx-star {
  display: grid; place-items: center; background: none; box-shadow: none; font-size: calc(var(--size) * 1.37);
  line-height: 1; color: var(--particle-color, var(--fx)); text-shadow: 0 0 14px currentColor;
}
@keyframes glow {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.19); }
  13% { opacity: .92; }
  42% { opacity: .55; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.02); }
}
@keyframes ring {
  0% { opacity: .94; transform: translate(-50%,-50%) scale(.09); }
  35% { opacity: .83; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1); }
}
@keyframes rays {
  0% { opacity: 0; transform: translate(-50%,-50%) rotate(-13deg) scale(.34); }
  18% { opacity: .87; }
  60% { opacity: .45; }
  100% { opacity: 0; transform: translate(-50%,-50%) rotate(22deg) scale(1.14); }
}
@keyframes aurora {
  0% { opacity: 0; transform: translate(-50%,-50%) rotate(-22deg) scale(.27); }
  22%, 39% { opacity: .81; }
  100% { opacity: 0; transform: translate(-50%,-50%) rotate(47deg) scale(1.07); }
}
@keyframes particle {
  0% { opacity: 0; transform: scale(.24); }
  16% { opacity: 1; }
  56% { opacity: .87; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.32); }
}

@media (max-width: 900px) {
  .topbar-inner, .shell { width: calc(100% - 44px); }
  .hero { min-height: 288px; }
  .hero-content { padding-left: 32px; }
  .pack-panel { gap: 12px; grid-template-columns: minmax(100px, 33%) 1fr; }
}
@media (max-width: 770px) {
  .collection-groups { grid-template-columns: 1fr; }
}
@media (max-width: 670px) {
  .topbar-inner, .shell { width: calc(100% - 28px); }
  .topbar-inner { height: 62px; gap: 10px; }
  .tabs a { padding-inline: 10px; }
  .pack-counter { margin-left: 0; }
  .achievement-toggle { margin-left: 0; }
  .sound-label { display: none; }
  .topbar .sound-toggle { margin-left: 0; padding-inline: 5px; min-width: 34px; }
  .shell { padding-top: 15px; }
  .hero { display: block; min-height: 345px; border-radius: 18px; }
  .hero::before { mask-image: linear-gradient(180deg, transparent 15%, black 70%); }
  .hero-content { padding: 19px 15px 0; text-align: center; }
  .hero h1 { font-size: clamp(2.55rem, 10.1vw, 4rem); }
  .hero p { margin-top: 7px; }
  .producer-credit { margin-top: 9px; padding: 5px 8px; }
  .producer-credit img { width: clamp(151px, 42vw, 180px); }
  .collection-link { margin-top: 10px; padding: 7px 9px; }
  .hero-art { inset: 167px 0 0; }
  .show-card { width: 88px; }
  .orbit { width: 228px; }
  .orbit-two { width: 284px; }
  .spark-one { left: 15%; top: 29%; font-size: 20px; }
  .spark-two { right: 17%; top: 13%; font-size: 16px; }
  .spark-three { right: 12%; bottom: 16%; font-size: 29px; }
  .pack-section { margin-top: 18px; }
  .pack-grid { grid-template-columns: 1fr; gap: 11px; }
  .pack-panel { padding: 9px 11px 9px 9px; }
  .pack-info .action, .opening-action, .detail-actions .action { min-height: 44px; }
  .pack-display { min-height: 128px; }
  .pack-orbit { width: 94px; height: 94px; }
  .wrapper { scale: .81; }
  .collection-heading { padding: 16px 12px; }
  .collection-heading p { font-size: .84rem; }
  .collection-group { gap: 10px; padding: 10px; }
  .collection-group-cards { gap: 6px; }
  .collection-item .card-name { font-size: clamp(.61rem, 2.72vw, .9rem); }
  .opening-scene { --stage-card-width: min(77vw, 41dvh); }
  .opening-content { padding: max(57px, calc(env(safe-area-inset-top) + 52px)) 10px max(20px, env(safe-area-inset-bottom)); }
  .stage-tools { right: max(9px, env(safe-area-inset-right)); top: max(8px, env(safe-area-inset-top)); }
  .stage-tools .sound-toggle, .stage-close { height: 42px; min-width: 42px; }
  .detail-dialog .card-face:not(.tier-ur, .gallery-landscape) { height: min(71dvh, 690px); }
  .reward { max-width: 95vw; font-size: .81rem; }
}
@media (max-width: 870px) {
  .topbar-inner { height: auto; display: grid; grid-template-columns: auto 1fr auto auto; padding-block: 8px; gap: 6px 9px; }
  .tabs { justify-self: start; }
  .achievement-toggle { grid-area: 1 / 3; margin-left: 0; }
  .topbar .sound-toggle { grid-area: 1 / 4; margin-left: 0; }
  .profile { grid-area: 2 / 1 / 3 / 3; justify-self: start; margin-left: 0; }
  .pack-counter { grid-area: 2 / 2 / 3 / 3; justify-self: center; margin-left: 0; }
  .save-controls { grid-area: 2 / 3 / 3 / 5; justify-self: end; margin-left: 0; }
}
@media (max-width: 600px) {
  .pack-counter { grid-area: 2 / 2 / 3 / 5; justify-self: end; }
  .save-controls { grid-area: 3 / 1 / 4 / 5; justify-self: end; }
  .ur-group .collection-group-cards { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 350px) {
  .topbar-inner { gap: 5px; }
  .profile { gap: 5px; padding-inline: 4px; }
  .xp { min-width: 63px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .opening-scene { --stage-card-width: min(31vw, 43dvh); }
  .opening-content {
    grid-template-columns: minmax(118px, 1fr) auto minmax(144px, 1fr); grid-template-rows: auto;
    align-items: center; gap: 14px; padding: 23px 18px;
  }
  .opening-heading, .opening-bottom { margin: 0; }
  .opening-heading h2 { font-size: 1.38rem; }
  .reward { font-size: .75rem; }
  .opening-action { min-height: 34px; padding-block: 5px; }
  .slot-front .tier-ur { width: min(145%, 39vw, 85dvh); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .foil::after { animation: none; transform: none; opacity: .48; }
}
