/* Wish page: responsive stage and ambient VFX before the pull. */
#page-wish {
    --wish-page-accent: #65dcff;
    --wish-page-rgb: 101, 220, 255;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: rgba(var(--wish-page-rgb), .4) #050911;
}
#page-wish .wish-layout { min-height: 100%; height: auto; }
#page-wish .wish-bg { position: fixed; }

.wish-banner-tabs {
    position: relative;
    z-index: 8;
    min-height: 82px;
    padding: 8px clamp(15px, 2.5vw, 48px);
    gap: 9px;
    background: linear-gradient(180deg, rgba(5, 10, 19, .98), rgba(8, 15, 29, .95));
    border-bottom: 1px solid rgba(var(--wish-page-rgb), .25);
    box-shadow: 0 12px 45px #02071388;
}
.wish-tab {
    min-width: 0;
    padding: 12px 18px;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    margin: 0;
    color: #a5afc4;
    transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.wish-tab img { width: 38px; height: 38px; filter: drop-shadow(0 0 6px rgba(var(--wish-page-rgb), .3)); }
.wish-tab .wt-name { font-size: clamp(12px, .9vw, 15px); letter-spacing: .045em; }
.wish-tab .wt-sub { font-size: 10px; }
.wish-tab:hover { background: #14243a; transform: translateY(-2px); }
.wish-tab.active {
    color: #effaff;
    background: linear-gradient(110deg, rgba(var(--wish-page-rgb), .16), rgba(var(--wish-page-rgb), .04));
    border-color: rgba(var(--wish-page-rgb), .32);
    box-shadow: inset 0 -2px var(--wish-page-accent), 0 0 24px rgba(var(--wish-page-rgb), .1);
}
.wish-tabs-right { gap: 9px; }
.wish-tabs-right .wish-util-btn {
    width: 40px; height: 40px; border-radius: 7px;
    background: #101a29; border-color: #6383a64d;
}
.wish-curr-item { border-radius: 100px; }
.wish-tabs-right .wish-curr-item {
    padding: 6px 10px; border-radius: 100px;
    background: #111d2f; border: 1px solid #7994ae3b;
    color: #dce8f2; font-weight: 700;
}

.wish-content { display: block; flex: none; overflow: visible; }
.wish-visual-area {
    width: 100%;
    height: clamp(710px, calc(100vh - var(--topbar-h, 90px) - 82px), 980px);
    min-height: 710px;
    overflow: hidden;
    isolation: isolate;
    background: #090e1b;
}
.wish-banner-canvas { position: absolute; inset: 0; z-index: 0; }
.wish-banner-bg { object-position: center 38%; animation: wishArtArrival 1.1s ease-out both; }
.wish-banner-shade,
.wish-banner-shade--rainbow,
.wish-banner-shade--skin {
    background:
        linear-gradient(90deg, rgba(2, 7, 15, .91) 0%, rgba(3, 8, 17, .65) 23%, rgba(2, 8, 18, .14) 52%, transparent 75%),
        linear-gradient(0deg, rgba(3, 6, 15, .92), transparent 35%),
        linear-gradient(180deg, rgba(3, 8, 18, .15), transparent 30%);
}
.wish-banner-canvas--skin .wish-banner-shade { background: linear-gradient(90deg, #130818e8, #1308187b 25%, transparent 65%), linear-gradient(0deg, #150a1be8, transparent 35%); }
.wish-banner-title-area { z-index: 3; top: clamp(35px, 5vw, 85px); left: clamp(28px, 4vw, 76px); max-width: 700px; }
.wish-banner-kicker { display: block; margin-bottom: 17px; font: 10px 'AOW', serif; letter-spacing: .3em; color: var(--wish-page-accent); text-shadow: 0 0 20px rgba(var(--wish-page-rgb), .8); }
.wbt-pre { font-size: clamp(25px, 2.4vw, 39px); color: #d7e9f4; }
.wbt-main { font-size: clamp(52px, 5vw, 88px); color: #fffaf2; text-shadow: 0 0 45px rgba(var(--wish-page-rgb), .32), 0 6px 25px #000; }
.wish-banner-subtitle { max-width: 470px; margin-top: 16px; color: #d2dfeb; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.5; }
.wish-banner-rateup { z-index: 3; left: clamp(28px, 4vw, 76px); bottom: 192px; max-width: 320px; }
.wish-rateup-badge { color: #ffdf94; font-size: 12px; letter-spacing: .18em; }
.wish-rateup-desc { color: #d0d9e5; font-size: 12px; }
.wish-page-vfx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

.wish-focus {
    position: absolute; z-index: 3; left: 60%; top: 38%;
    width: clamp(170px, 19vw, 290px); aspect-ratio: 1;
    transform: translate(calc(-50% + var(--wish-pointer-x, 0px)), calc(-50% + var(--wish-pointer-y, 0px)));
    pointer-events: none; color: var(--wish-page-accent);
    filter: drop-shadow(0 0 22px rgba(var(--wish-page-rgb), .32));
}
.wish-focus::before {
    content: ''; position: absolute; inset: -35%; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--wish-page-rgb), .26), rgba(var(--wish-page-rgb), .06) 42%, transparent 68%);
    animation: wishFocusBreathe 4s ease-in-out infinite;
}
.wish-focus-orbit {
    position: absolute; inset: -12%; border-radius: 50%;
    border: 1px solid rgba(var(--wish-page-rgb), .5);
    box-shadow: inset 0 0 35px rgba(var(--wish-page-rgb), .07), 0 0 35px rgba(var(--wish-page-rgb), .12);
    transform: rotateX(65deg) rotate(-20deg);
    animation: wishFocusOrbit 20s linear infinite;
}
.wish-focus-orbit--inner { inset: 5%; border-style: dashed; opacity: .65; animation-duration: 15s; animation-direction: reverse; }
.wish-focus-core { position: absolute; inset: 20%; display: grid; place-items: center; filter: drop-shadow(0 0 13px var(--wish-page-accent)); animation: wishFocusFloat 4s ease-in-out infinite; }
.wish-focus-core svg { width: 100%; height: 100%; }
.wish-focus-spark { position: absolute; color: #f5f9ff; font-size: 22px; text-shadow: 0 0 14px var(--wish-page-accent); animation: wishFocusTwinkle 2.6s ease-in-out infinite; }
.wish-focus-spark--one { top: -17%; left: 20%; }
.wish-focus-spark--two { bottom: 3%; right: -12%; animation-delay: .8s; }
.wish-focus-spark--three { bottom: 14%; left: -16%; animation-delay: 1.6s; }
[data-wish-theme="rainbow"] .wish-focus::before { background: conic-gradient(#ff83c526, #ffe08347, #7cfad72e, #6fd6ff52, #bb8aff40, #ff83c526); mask-image: radial-gradient(circle, transparent 10%, #000 35%, transparent 70%); }
[data-wish-theme="rainbow"] .wish-focus-core { color: #effcff; }
[data-wish-theme="skin"] .wish-focus-core { color: #ffe0f2; }
[data-wish-theme="skin"] .wish-focus::before { box-shadow: 0 0 90px #ff7ac12c; }

.wish-banner-points,
.wish-rainbow-pity,
.wish-banner-essence-balance {
    z-index: 5;
    left: clamp(24px, 4vw, 76px);
    bottom: 26px;
    border-radius: 9px;
    background: linear-gradient(120deg, #0b1526ee, #080d19e8);
    box-shadow: 0 0 0 1px rgba(var(--wish-page-rgb), .32), 0 14px 35px #02050bc0;
}
.wish-banner-points { max-width: 440px; }
.wish-points-info { min-width: 180px; }
.wish-banner-btns { right: clamp(24px, 4vw, 76px); bottom: 29px; gap: 14px; }
.wish-banner-btn {
    position: relative;
    min-width: clamp(165px, 15vw, 245px);
    min-height: 88px;
    padding: 18px 32px;
    border: 1px solid rgba(var(--wish-page-rgb), .66);
    border-radius: 7px;
    background: linear-gradient(145deg, #1a4c77f2, #0b233ff5 68%, #071525);
    box-shadow: 0 14px 25px #020817aa, inset 0 1px #d9f9ff7a, 0 0 25px rgba(var(--wish-page-rgb), .16);
    overflow: hidden;
}
.wish-banner-btn::before {
    content: ''; position: absolute; inset: -60%; pointer-events: none;
    background: linear-gradient(110deg, transparent 40%, #ffffff2c 50%, transparent 60%);
    transform: translateX(-45%);
    transition: transform .65s ease;
}
.wish-banner-btn--10x { background: linear-gradient(145deg, #7351bdf2, #311c67f5 68%, #160e36); border-color: #c6aaffb3; box-shadow: 0 14px 25px #020817aa, inset 0 1px #f0dfff8a, 0 0 25px #b06bff2d; }
.wish-banner-btn:disabled { opacity: .52; }
.wish-banner-btn .wbb-title { z-index: 1; font-size: 14px; }
.wish-banner-btn .wbb-cost { z-index: 1; font-size: 17px; }
.wish-banner-btn .wbb-cost img { width: 23px; height: 23px; }

.wish-feed-panel {
    z-index: 6; top: 28px; bottom: auto; right: clamp(22px, 2.6vw, 44px);
    width: clamp(242px, 17vw, 294px); height: min(410px, 47%);
    background: linear-gradient(160deg, #0d1928ed, #070d19ed);
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(var(--wish-page-rgb), .37), 0 20px 55px #030a13aa;
}
.wfp-head { padding: 13px 15px; background: rgba(var(--wish-page-rgb), .13); }
.wfp-row { background: #f5faff08; border-color: #a7c9e61c; }
.wfp-row:hover { border-color: rgba(var(--wish-page-rgb), .35); }
.wish-package-tray { right: clamp(22px, 2.6vw, 44px); bottom: 143px; }

@keyframes wishArtArrival { from { opacity: .55; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes wishFocusBreathe { 50% { transform: scale(1.15); opacity: .65; } }
@keyframes wishFocusOrbit { to { transform: rotateX(65deg) rotate(340deg); } }
@keyframes wishFocusFloat { 50% { transform: translateY(-9px) scale(1.05); } }
@keyframes wishFocusTwinkle { 0%,100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.3); } }

@media (max-width: 1280px) {
    .wish-banner-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
    .wish-tab { justify-content: center; }
    .wish-tabs-right { grid-column: 1 / -1; justify-content: flex-end; margin-left: 0; padding: 3px 0; }
    .wish-focus { left: 57%; top: 39%; width: 185px; }
    .wish-feed-panel { width: 235px; }
    .wish-banner-btn { min-width: 185px; }
}

@media (max-width: 980px) {
    .wish-visual-area { height: auto; min-height: 0; display: flex; flex-direction: column; padding-top: 610px; overflow: visible; }
    .wish-banner-canvas { height: 610px; bottom: auto; overflow: hidden; }
    .wish-banner-bg { object-position: 52% 42%; }
    .wish-banner-title-area { top: 34px; left: 32px; }
    .wbt-main { font-size: clamp(45px, 7vw, 72px); }
    .wish-banner-rateup { left: 32px; bottom: 155px; max-width: 240px; }
    .wish-banner-points, .wish-rainbow-pity, .wish-banner-essence-balance { left: 24px; bottom: 20px; }
    .wish-focus { top: 330px; left: 67%; width: 190px; }
    .wish-page-vfx { height: 610px; }
    .wish-banner-btns { position: relative; right: auto; bottom: auto; justify-content: center; padding: 23px 20px; background: #080e1a; border-top: 1px solid #b6dcfa26; }
    .wish-banner-btn { width: min(46%, 290px); }
    .wish-feed-panel { position: relative; inset: auto; width: auto; height: 300px; margin: 12px 20px 38px; }
    .wish-package-tray { bottom: 16px; right: 15px; }
}

@media (max-width: 640px) {
    #page-wish { top: var(--topbar-h, 62px); }
    .wish-banner-tabs { padding: 6px 8px 10px; gap: 3px; }
    .wish-tab { padding: 8px 4px; gap: 3px; flex-direction: column; min-height: 76px; text-align: center; }
    .wish-tab img { width: 26px; height: 26px; }
    .wish-tab .wt-text { text-align: center; }
    .wish-tab .wt-name { font-size: 10px; line-height: 1.2; }
    .wish-tab .wt-sub { display: none; }
    .wish-tabs-right { justify-content: center; gap: 5px; flex-wrap: wrap; }
    .wish-tabs-right .wish-util-btn { width: 36px; height: 36px; flex: none; }
    .wish-tabs-right .wish-curr-strip { flex: 1; justify-content: space-around; gap: 2px; }
    .wish-tabs-right .wish-curr-item { padding: 4px 5px; font-size: 10px; gap: 2px; }
    .wish-tabs-right .wish-curr-item img { width: 17px; height: 17px; }
    .wish-visual-area { padding-top: 565px; }
    .wish-banner-canvas, .wish-page-vfx { height: 565px; }
    .wish-banner-bg { object-position: 54% 38%; }
    .wish-banner-shade { background: linear-gradient(180deg, #030913ca 0%, #03091322 36%, #03091355 60%, #030913ee 100%); }
    .wish-banner-title-area { top: 22px; left: 19px; right: 16px; }
    .wish-banner-kicker { font-size: 8px; letter-spacing: .14em; margin-bottom: 10px; }
    .wbt-pre { font-size: 22px; }
    .wbt-main { font-size: clamp(35px, 10vw, 58px); overflow-wrap: anywhere; }
    .wish-banner-subtitle { font-size: 12px; max-width: 275px; margin-top: 9px; }
    .wish-banner-rateup { bottom: 138px; left: 18px; right: 18px; max-width: 240px; }
    .wish-rateup-badge { font-size: 10px; }
    .wish-rateup-desc { font-size: 10px; }
    .wish-focus { top: 320px; left: 68%; width: 125px; }
    .wish-focus-spark { font-size: 13px; }
    .wish-banner-points, .wish-rainbow-pity, .wish-banner-essence-balance { left: 14px; right: 14px; bottom: 12px; max-width: none; padding: 9px 11px; gap: 10px; }
    .wish-points-badge { width: 68px; height: 68px; }
    .wpt-icon { width: 17px; height: 17px; }
    .wpt-val { font-size: 19px; }
    .wpt-label { font-size: 5px; }
    .wish-points-info { min-width: 0; flex: 1; }
    .wish-points-desc { font-size: 9px; }
    .wish-points-sub { font-size: 8px; }
    .wish-rainbow-featured { top: 46%; left: 50%; gap: 4px; }
    .wcs-wrap { width: 95px; height: 110px; }
    .wcs-name { font-size: 8px; }
    .wish-rainbow-pity { width: auto; }
    .wish-banner-essence-balance { width: auto; }
    .wish-banner-btns { padding: 16px 12px; gap: 9px; }
    .wish-banner-btn { width: 50%; min-width: 0; min-height: 75px; padding: 12px 7px; }
    .wish-banner-btn .wbb-title { font-size: 10px; white-space: nowrap; }
    .wish-banner-btn .wbb-cost { font-size: 14px; }
    .wish-feed-panel { margin: 7px 12px 35px; height: 270px; }
    .wish-side-panel { width: min(92vw, 390px); max-width: none; }
    .wish-package-tray { right: 10px; bottom: 8px; max-width: 95vw; }
}
@media (max-width: 380px) {
    .wish-tabs-right .wish-util-btn { width: 31px; height: 31px; }
    .wish-tabs-right .wish-curr-item { font-size: 9px; padding: 3px; }
    .wish-tab .wt-name { font-size: 9px; }
    .wish-focus { width: 105px; left: 72%; }
}
@media (prefers-reduced-motion: reduce) {
    .wish-focus, .wish-focus *, .wish-banner-bg, .wish-banner-btn::before { animation: none !important; transition: none !important; }
}

/* Full-height stage, shared package/action dock, and luminous wish controls. */
.wish-action-dock {
    position: absolute;
    z-index: 7;
    right: clamp(24px, 3vw, 60px);
    bottom: 34px;
    width: min(620px, 45vw);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.wish-action-dock .wish-package-tray {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: none;
    gap: 12px;
    padding: 9px 5px;
    z-index: auto;
    scrollbar-width: none;
}
.wish-action-dock .wish-package-tray::-webkit-scrollbar { display: none; }
.wish-action-dock .wish-banner-btns {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 0;
    width: 100%;
    background: none;
    border: 0;
}
.wish-banner-points { flex-direction: row; align-items: center; }

@media (min-width: 981px) {
    #page-wish .wish-layout { height: 100%; min-height: 0; }
    #page-wish .wish-content { display: flex; flex: 1 0 620px; overflow: visible; }
    #page-wish .wish-visual-area { height: auto; min-height: 0; flex: 1; }
    .wish-banner-tabs, .wish-action-dock, .wish-feed-panel,
    .wish-banner-points, .wish-rainbow-pity, .wish-banner-essence-balance,
    .wish-banner-title-area, .wish-banner-rateup { zoom: var(--wish-ui-scale, 1); }
    .wish-tab .wt-name { font-size: 16px; }
    .wish-tab .wt-sub { font-size: 12px; }
    .wish-tab img { width: 44px; height: 44px; }
    .wish-tabs-right .wish-curr-item { font-size: 15px; padding: 7px 10px; }
    .wish-tabs-right .wish-curr-item img { width: 25px; height: 25px; }
    .wish-tabs-right .wish-util-btn { width: 46px; height: 46px; }
    .wish-banner-kicker { font-size: 12px; }
    .wish-banner-subtitle { font-size: 20px; }
    .wish-banner-rateup { bottom: 205px; max-width: 350px; }
    .wish-rateup-badge { font-size: 17px; }
    .wish-rateup-desc { font-size: 14px; }
    .wish-points-info { min-width: 210px; }
    .wish-points-desc { font-size: 13px; }
    .wish-points-sub { font-size: 12px; }
    .wpt-label { font-size: 9px; }
    .wrp-label, .wrp-sub { font-size: 12px; }
    .wish-feed-panel { height: 390px; max-height: var(--wish-feed-max-height, 48%); width: 300px; }
    .wfp-head > span { font-size: 14px; }
    .wfp-head > img { width: 22px; height: 22px; }
    .wfp-row { padding: 9px 10px; gap: 12px; }
    .wfp-username { font-size: 13px; }
    .wfp-hero { font-size: 15px; }
    .wfp-avatar-wrap, .wfp-frag-wrap { width: 38px; height: 38px; }
}

@property --wish-button-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.wish-action-dock .wish-banner-btn {
    --button-light: #75e9ff;
    --button-rgb: 75, 207, 255;
    --button-deep: #073f77;
    width: 100%;
    min-width: 0;
    min-height: 118px;
    box-sizing: border-box;
    padding: 25px 14px 19px;
    position: relative;
    isolation: isolate;
    overflow: visible;
    border: 1px solid var(--button-light);
    border-radius: 12px 3px 12px 3px;
    background: linear-gradient(135deg, #071a32, var(--button-deep) 45%, #06172c);
    box-shadow: 0 12px 34px #02030bc9, 0 0 22px rgba(var(--button-rgb), .38), inset 0 0 24px rgba(var(--button-rgb), .18);
    animation: wishButtonAura 3s ease-in-out infinite;
    transition: transform .25s, filter .25s;
}
.wish-action-dock .wish-banner-btn--10x {
    --button-light: #e6c0ff;
    --button-rgb: 197, 126, 255;
    --button-deep: #5f2599;
    animation-delay: -1.5s;
}
[data-wish-theme="rainbow"] .wish-banner-btn { --button-light: #cdffff; --button-rgb: 117, 236, 235; --button-deep: #155c76; }
[data-wish-theme="rainbow"] .wish-banner-btn--10x { --button-light: #ffe7a7; --button-rgb: 255, 199, 117; --button-deep: #704084; }
[data-wish-theme="skin"] .wish-banner-btn { --button-light: #ffbee7; --button-rgb: 255, 139, 207; --button-deep: #7e245f; }
[data-wish-theme="skin"] .wish-banner-btn--10x { --button-light: #ffe6f4; --button-rgb: 255, 161, 222; --button-deep: #993279; }
.wish-action-dock .wish-banner-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    z-index: 2;
    padding: 2px;
    border-radius: inherit;
    background: conic-gradient(from var(--wish-button-angle), transparent 4%, var(--button-light) 15%, #fff 19%, transparent 28%, transparent 51%, var(--button-light) 64%, #fff 69%, transparent 80%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    transform: none;
    transition: none;
    animation: wishButtonBorder 3.6s linear infinite;
    pointer-events: none;
}
.wish-action-dock .wish-banner-btn::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(var(--button-rgb), .38);
    border-radius: 8px 2px 8px 2px;
    box-shadow: inset 0 1px #fff8, inset 0 -1px rgba(var(--button-rgb), .5);
    pointer-events: none;
}
.wbb-vfx { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.wbb-energy {
    position: absolute; inset: -70%;
    background: radial-gradient(ellipse at 35% 65%, rgba(var(--button-rgb), .62), transparent 28%), radial-gradient(ellipse at 65% 35%, rgba(var(--button-rgb), .3), transparent 36%);
    animation: wishButtonEnergy 7s linear infinite;
}
.wbb-sweep {
    position: absolute; inset: -50%;
    background: linear-gradient(112deg, transparent 42%, rgba(var(--button-rgb), .18) 46%, #fff9 50%, rgba(var(--button-rgb), .18) 54%, transparent 58%);
    animation: wishButtonSweep 3.8s cubic-bezier(.4,0,.2,1) infinite;
}
.wish-banner-btn--10x .wbb-sweep { animation-delay: -1.9s; }
.wbb-orbit { position: absolute; width: 115%; height: 150%; left: -8%; top: -25%; border: 1px solid rgba(var(--button-rgb), .6); border-radius: 50%; box-shadow: 0 0 14px rgba(var(--button-rgb), .5); animation: wishButtonOrbit 6s linear infinite; }
.wbb-sparks { position: absolute; inset: 0; }
.wbb-sparks i { position: absolute; left: calc(6% + var(--spark) * 12%); top: 75%; color: #fff; font-style: normal; font-size: 13px; text-shadow: 0 0 5px white, 0 0 12px var(--button-light); animation: wishButtonSpark 3s calc(var(--spark) * -.41s) ease-in-out infinite; }
.wbb-sparks i:nth-child(even) { font-size: 8px; top: 85%; }
.wbb-crown { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 0 10px; color: #fff5d2; font-size: 17px; line-height: 1.2; letter-spacing: 9px; white-space: nowrap; text-shadow: 0 0 7px #fff, 0 0 17px var(--button-light); pointer-events: none; }
.wish-action-dock .wish-banner-btn .wbb-title { position: relative; z-index: 3; font-size: 20px; letter-spacing: .12em; text-shadow: 0 2px 4px #020714, 0 0 16px var(--button-light); }
.wish-action-dock .wish-banner-btn .wbb-cost { position: relative; z-index: 3; font-size: 22px; gap: 10px; }
.wish-action-dock .wish-banner-btn .wbb-cost img { width: 32px; height: 32px; filter: drop-shadow(0 0 8px var(--button-light)); }
.wish-action-dock .wish-banner-btn:is(:hover, :focus-visible):not(:disabled) { transform: translateY(-5px) scale(1.025); filter: brightness(1.18); }
.wish-action-dock .wish-banner-btn:is(:hover, :focus-visible):not(:disabled)::before { animation-duration: 1.2s; }
.wish-action-dock .wish-banner-btn:focus-visible { outline: 2px solid #fff3bc; outline-offset: 7px; }
.wish-action-dock .wish-banner-btn:active:not(:disabled) { transform: scale(.97); }
.wish-action-dock .wish-banner-btn:disabled { animation: none; filter: saturate(.5); box-shadow: 0 5px 15px #0006; }
.wish-action-dock .wish-banner-btn:disabled .wbb-vfx { opacity: .22; }
.wish-action-dock .wish-banner-btn:disabled::before, .wish-action-dock .wish-banner-btn:disabled .wbb-vfx * { animation-play-state: paused; }
@keyframes wishButtonBorder { to { --wish-button-angle: 360deg; } }
@keyframes wishButtonAura { 50% { box-shadow: 0 12px 34px #02030bc9, 0 0 38px rgba(var(--button-rgb), .58), 0 0 65px rgba(var(--button-rgb), .16), inset 0 0 24px rgba(var(--button-rgb), .28); } }
@keyframes wishButtonEnergy { to { transform: rotate(360deg); } }
@keyframes wishButtonSweep { 0%,12% { transform: translateX(-65%); opacity: 0; } 35% { opacity: .7; } 65%,100% { transform: translateX(65%); opacity: 0; } }
@keyframes wishButtonOrbit { from { transform: rotate(-30deg) scaleY(.45); } to { transform: rotate(330deg) scaleY(.45); } }
@keyframes wishButtonSpark { 0% { transform: translateY(15px) scale(0); opacity: 0; } 30% { opacity: 1; transform: translateY(-15px) scale(1); } 100% { transform: translateY(-90px) scale(.2) rotate(90deg); opacity: 0; } }

@media (max-width: 980px) {
    .wish-action-dock { position: relative; inset: auto; width: auto; margin: 0; padding: 22px 24px 28px; gap: 22px; background: linear-gradient(#080e1af2, #080e1a); }
    .wish-action-dock .wish-package-tray { justify-content: flex-start; }
    .wish-action-dock .wish-banner-btn { min-height: 112px; }
    .wish-tab .wt-name { font-size: 14px; }
    .wish-tab .wt-sub { font-size: 12px; }
    .wish-points-desc, .wish-points-sub { font-size: 12px; }
    .wish-banner-subtitle { font-size: 16px; }
    .wish-rateup-desc { font-size: 13px; }
    .wfp-head > span { font-size: 14px; }
    .wfp-username { font-size: 13px; }
    .wfp-hero { font-size: 15px; }
}
@media (max-width: 640px) {
    .wish-tabs-right { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr); width: 100%; gap: 6px; }
    .wish-tabs-right .wish-util-btn { width: 44px; height: 44px; }
    .wish-tabs-right .wish-curr-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .wish-tabs-right .wish-curr-item { justify-content: center; font-size: 12px; min-width: 0; padding: 5px; }
    .wish-tab .wt-name { font-size: 12px; }
    .wish-tab img { width: 32px; height: 32px; }
    .wish-action-dock { padding: 18px 15px 25px; }
    .wish-action-dock .wish-banner-btns { gap: 14px; }
    .wish-action-dock .wish-banner-btn { min-height: 98px; padding: 22px 7px 12px; }
    .wish-action-dock .wish-banner-btn .wbb-title { font-size: clamp(12px, 3.3vw, 17px); letter-spacing: .045em; }
    .wish-action-dock .wish-banner-btn .wbb-cost { font-size: 19px; }
    .wish-action-dock .wish-banner-btn .wbb-cost img { width: 27px; height: 27px; }
    .wbb-crown { font-size: 14px; letter-spacing: 5px; top: -9px; }
    .wish-action-dock .wtray-icon-wrap { width: 66px; height: 66px; flex: 0 0 66px; }
    .wish-banner-kicker { font-size: 10px; }
    .wish-banner-rateup { bottom: 150px; }
    .wish-rateup-badge { font-size: 13px; }
    .wish-banner-subtitle { font-size: 14px; }
    .wish-points-badge { width: 78px; height: 78px; }
    .wpt-label { font-size: 7px; }
    .wpt-val { font-size: 24px; }
    .wish-points-desc, .wish-points-sub, .wrp-sub { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .wish-action-dock .wish-banner-btn, .wish-action-dock .wish-banner-btn::before,
    .wish-action-dock .wish-banner-btn *, .wish-action-dock .wish-banner-btn::after { animation: none !important; transition: none !important; }
    .wbb-sweep { display: none; }
    .wbb-sparks i { opacity: .65; }
}

/* Scale the whole reward presentation together, fitted to the available height. */
.wish-reveal-content {
    position: relative;
    z-index: 5;
    width: min(900px, 94vw);
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0 20px;
    box-sizing: border-box;
    zoom: var(--wish-reveal-scale, 1);
}
.wish-anim-overlay { justify-content: safe center; }
.wish-anim-overlay .wish-reveal-content .wish-cards-grid { width: 100%; box-sizing: border-box; }
.wish-anim-overlay .wc-name { font-size: 13px; }
.wish-anim-overlay .wc-rarity { font-size: 11px; }
.wish-anim-overlay .wc-seal-caption { font-size: 9px; }
.wish-anim-overlay .wish-reveal-hint { font-size: 12px; padding: 0 10px; }
.wish-anim-overlay .wish-anim-revealall { font-size: 14px; min-height: 44px; padding: 12px 34px; }
.wish-anim-overlay .wish-anim-ok { font-size: 16px; min-height: 46px; }
@media (min-width: 981px) {
    .wish-cinema-copy h2 { font-size: calc(28px * var(--wish-ui-scale, 1)); }
    .wish-cinema-copy > span { font-size: calc(11px * var(--wish-ui-scale, 1)); }
    .wish-cinema-copy p { font-size: calc(14px * var(--wish-ui-scale, 1)); }
    .wish-cinema-skip { font-size: calc(13px * var(--wish-ui-scale, 1)); padding: 16px 26px; }
}
@media (max-width: 700px) {
    .wish-anim-overlay .wc-seal-caption { font-size: 7px; }
    .wish-anim-overlay .wc-name { font-size: 12px; }
    .wish-anim-overlay .wc-rarity { font-size: 10px; }
}

/* Wish information and exchange drawers: viewport-sized controls on large displays. */
#page-wish .wish-side-panel {
    width: clamp(430px, 29vw, 760px);
    max-width: 100vw;
    background: linear-gradient(165deg, #0e1b2af7, #080e1bf9);
    box-shadow: 0 0 65px #010711b5, inset 0 1px #c8eaff24;
    border-color: #88dfff48;
}
#page-wish .wish-side-head {
    min-height: 70px;
    box-sizing: border-box;
    gap: 16px;
    padding: 17px 24px;
    background: linear-gradient(90deg, rgba(var(--wish-page-rgb), .17), rgba(var(--wish-page-rgb), .035));
}
#page-wish .wish-side-head > img { width: 30px; height: 30px; }
#page-wish .wish-side-head > span { font-size: clamp(17px, 1vw, 23px); letter-spacing: .08em; color: #e1f5ff; }
#page-wish .wish-side-close { font-size: 24px; color: #d6e9f5; min-width: 44px; min-height: 44px; }
#page-wish .wish-side-body { padding: clamp(20px, 1.35vw, 34px); scrollbar-color: #73c9e177 #0b1523; }
#page-wish .wish-shop-balance { gap: 14px; padding: 15px 20px; margin-bottom: 15px; font-size: clamp(19px, 1vw, 26px); }
#page-wish .wish-shop-balance > img { width: 32px; height: 32px; }
#page-wish .wish-shop-balance-label { font-size: 14px; color: #dfc790; }
#page-wish .wish-shop-section { padding: 21px; margin-bottom: 16px; border-color: #8bd9f63d; border-radius: 11px; }
#page-wish .wish-shop-section-head { gap: 11px; margin-bottom: 12px; font-size: clamp(15px, .85vw, 20px); color: #bcefff; }
#page-wish .wish-shop-section-head > img { width: 28px; height: 28px; }
#page-wish .wish-shop-have { gap: 8px; margin-bottom: 16px; font-size: 14px; color: #b7ccdd; }
#page-wish .wish-shop-have > img { width: 21px; height: 21px; }
#page-wish .wish-shop-buys { gap: 15px; }
#page-wish .wish-shop-buy-btn { gap: 8px; min-height: 108px; padding: 16px; border-color: #8bd9f658; background: #1730479e; }
#page-wish .wish-shop-buy-btn:hover:not(:disabled) { background: #235477bd; box-shadow: 0 0 23px rgba(var(--wish-page-rgb), .2); }
#page-wish .wsb-item { gap: 10px; }
#page-wish .wsb-item > img { width: 38px; height: 38px; }
#page-wish .wsb-qty { font-size: 18px; }
#page-wish .wsb-cost { gap: 7px; font-size: 16px; }
#page-wish .wsb-cost > img { width: 19px; height: 19px; }
#page-wish .wish-shop-exchange-preview { gap: 22px; padding: 17px; }
#page-wish .wsep-item { gap: 7px; font-size: 14px; }
#page-wish .wsep-item > img { width: 42px; height: 42px; }
#page-wish .wsep-arrow { font-size: 27px; }
#page-wish .wish-shop-exch-info { font-size: 14px; line-height: 1.5; }
#page-wish .wish-exchange-full-btn, #page-wish .backpack-open-trigger { min-height: 48px; font-size: 14px; }
#page-wish .wish-rate-section-title { margin: 20px 0 13px; font-size: 17px; color: #b6dff1; }
#page-wish .wish-rate-table { margin-bottom: 18px; border-color: #8bd9f646; }
#page-wish .wish-rate-head { padding: 13px 17px; font-size: 14px; color: #d3e8f6; }
#page-wish .wish-rate-row { gap: 12px; padding: 12px 17px; font-size: 16px; color: #dcebf6; }
#page-wish .wr-label { padding: 5px 9px; font-size: 15px; }
#page-wish .wr-feat-note { font-size: 13px; }
#page-wish .wish-pieces-grid { gap: 9px; }
#page-wish .wpi-row { gap: 6px; padding: 10px 13px; font-size: 14px; }
@media (max-width: 980px) {
    #page-wish .wish-side-panel { width: min(560px, 94vw); }
    #page-wish .wish-side-head { min-height: 62px; padding: 12px 17px; }
    #page-wish .wish-side-head > span { font-size: 17px; }
    #page-wish .wish-side-body { padding: 17px; }
    #page-wish .wish-shop-section { padding: 16px; }
    #page-wish .wish-shop-section-head { font-size: 15px; }
    #page-wish .wish-rate-row { font-size: 15px; }
}
@media (max-width: 520px) {
    #page-wish .wish-side-panel { width: 100vw; border-radius: 0; }
    #page-wish .wish-shop-balance { font-size: 18px; flex-wrap: wrap; }
    #page-wish .wish-shop-balance-label { font-size: 12px; }
    #page-wish .wish-shop-buy-btn { min-height: 88px; padding: 10px 5px; }
    #page-wish .wsb-item > img { width: 31px; height: 31px; }
    #page-wish .wish-pieces-grid { grid-template-columns: 1fr; }
    #page-wish .wpi-row { font-size: 14px; }
}

/* Touch phones: keep the reward cards static to avoid flickering light layers. */
@media (max-width: 700px) and (hover: none) and (pointer: coarse),
       (max-width: 980px) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
    .wish-anim-overlay .wc-card,
    .wish-anim-overlay .wc-card *,
    .wish-anim-overlay .wc-card::before,
    .wish-anim-overlay .wc-card *::before,
    .wish-anim-overlay .wc-card *::after {
        animation: none !important;
        transition: none !important;
    }

    .wish-anim-overlay .wc-card,
    .wish-anim-overlay .wc-card.revealed,
    .wish-anim-overlay .wc-card:not(.revealed):hover {
        box-shadow: 0 8px 24px #0009 !important;
    }

    .wish-anim-overlay .wc-shimmer,
    .wish-anim-overlay .wc-orb-glow,
    .wish-anim-overlay .wc-orb::after {
        display: none;
    }

    .wish-anim-overlay .wc-seal,
    .wish-anim-overlay .wc-icon {
        filter: none;
    }

    .wish-anim-overlay .wc-name,
    .wish-anim-overlay .wc-rarity {
        text-shadow: none;
    }
}
