/* Visual fidelity: richer gold/stone frames, gloss and outlined type.
   Shadows, colors and overlays only — do not change fitted widths or padding. */

#app #screenTitle .lx-profile {
    border-color: #e8b40d;
    background: linear-gradient(180deg, rgba(24, 52, 96, 0.94), rgba(10, 28, 58, 0.94));
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.22),
        inset 0 0 0 2px rgba(92, 52, 8, 0.7),
        0 4px 0 rgba(0, 0, 0, 0.38),
        0 0 10px rgba(251, 191, 36, 0.28);
}

#app #screenTitle .lx-name,
#app #screenTitle .lx-pwr,
#app #screenTitle .stage-title,
#app #screenTitle .orb-label {
    text-shadow:
        0 2px 0 #10213d,
        1.4px 1.4px 0 #10213d,
        -1.4px -1.4px 0 #10213d,
        -1.4px 1.4px 0 #10213d,
        1.4px -1.4px 0 #10213d,
        0 4px 6px rgba(0, 0, 0, 0.35);
}

#app #screenTitle .lx-wallet .cur {
    border-color: #d4a017;
    background: linear-gradient(180deg, #14325c, #0b1e3c);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.28),
        0 3px 0 rgba(0, 0, 0, 0.35);
}

#app #screenTitle .lx-banners {
    border-color: #f2c94c;
    background: linear-gradient(180deg, #1b4a8c 0%, #12366c 55%, #0e2a54 100%);
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.26),
        inset 0 -3px 0 rgba(60, 30, 0, 0.3),
        inset 0 0 0 2px #7a4c0c,
        0 4px 0 rgba(0, 0, 0, 0.4),
        0 0 12px rgba(251, 191, 36, 0.25);
}

#app #screenTitle .lx-hubs .hub-chip {
    background: linear-gradient(180deg, rgba(24, 48, 88, 0.78), rgba(8, 16, 36, 0.82));
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 0 2px rgba(232, 180, 13, 0.75),
        0 3px 0 rgba(0, 0, 0, 0.35);
    color: #fff;
    font-family: var(--disp);
    font-weight: 400;
    text-shadow: var(--ol);
}

#app #screenTitle .stage-title {
    color: #fff8e7;
    z-index: 5;
}

/* Let the lobby canvas fill the stage so the hero trio can frame at mockup
   scale. Side heroes may kiss the orb columns; orbs stay above the canvas
   (and the canvas is pointer-events:none) so labels stay readable/tappable. */
#app #screenTitle .lx-stage {
    position: relative;
}
#app #screenTitle .lx-diorama {
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    z-index: 1;
}
#app #screenTitle .lx-stage .lx-col {
    position: absolute;
    top: 4px;
    bottom: 52px;
    width: 72px;
    flex: 0 0 72px;
    z-index: 4;
    padding-top: 2px;
    gap: 4px;
    pointer-events: none;
    justify-content: flex-start;
}
#app #screenTitle .lx-stage .lx-col:first-child { left: 0 !important; right: auto !important; }
#app #screenTitle .lx-stage .lx-col:last-child { right: 0 !important; left: auto !important; }
#app #screenTitle .orb-btn {
    position: relative;
    z-index: 4;
    pointer-events: auto;
    width: 72px;
}
#app #screenTitle .orb {
    width: 44px;
    height: 44px;
}
#app #screenTitle .orb-label {
    font-size: 9px;
    line-height: 1.05;
    max-width: 72px;
}
#app #screenTitle .lx-hubs {
    justify-content: center;
    position: relative;
    z-index: 8;
    margin: 2px 0 0;
    min-height: 28px;
}
#app #screenTitle .lx-hubs > .hub-chip {
    min-width: 84px;
}
#app #screenTitle .lx-more-sheet {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    padding: 6px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 15, 30, 0.96));
    border: 2px solid #ffd86b;
    border-radius: 12px;
    box-shadow: 0 0 0 2px #1a2233, 0 6px 14px rgba(0,0,0,0.4);
    z-index: 30;
}
#app #screenTitle .lx-more-sheet.hidden { display: none; }

#app #screenTitle .stage-plate {
    border: 2px solid #f2c94c;
    border-radius: 10px;
    background: linear-gradient(180deg, #1a9b7a, #0d5c4c);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 0 rgba(0, 0, 0, 0.28),
        0 4px 0 rgba(0, 0, 0, 0.4);
}
#app #screenTitle .stage-plate .pname,
#app #screenTitle .stage-plate .ppower {
    text-shadow: var(--ol);
}
#app #screenTitle .stage-plate.elem-nature {
    background: linear-gradient(180deg, #22c55e, #15803d 60%, #166534);
    border-color: #f2c94c;
}
#app #screenTitle .stage-plate.elem-fire,
#app #screenTitle .stage-plate.lead {
    background: linear-gradient(180deg, #ef4444, #b91c1c 55%, #7f1d1d);
    border-color: #fbbf24;
}
#app #screenTitle .stage-plate.elem-water {
    background: linear-gradient(180deg, #38bdf8, #0284c7 55%, #075985);
    border-color: #f2c94c;
}
#app #screenTitle .stage-plate.elem-lightning {
    background: linear-gradient(180deg, #facc15, #ca8a04 60%, #a16207);
    border-color: #fff1a8;
}
#app #screenTitle .stage-plate.elem-shadow {
    background: linear-gradient(180deg, #a78bfa, #6d28d9 55%, #4c1d95);
    border-color: #e9d5ff;
}
#app #screenTitle .stage-plate.elem-light {
    background: linear-gradient(180deg, #fde68a, #f59e0b 60%, #b45309);
    border-color: #fff7c2;
}
#app #screenTitle .stage-plate.elem-wind {
    background: linear-gradient(180deg, #5eead4, #0d9488 55%, #115e59);
    border-color: #f2c94c;
}
#app #screenTitle .stage-plate.elem-steel {
    background: linear-gradient(180deg, #94a3b8, #475569 55%, #334155);
    border-color: #e2e8f0;
}
#app #screenTitle .stage-plate.elem-arcane {
    background: linear-gradient(180deg, #c084fc, #7e22ce 55%, #581c87);
    border-color: #f5d0fe;
}
#app #screenTitle .stage-plate.rarity-rare {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 0 rgba(0, 0, 0, 0.28),
        0 4px 0 rgba(0, 0, 0, 0.4),
        0 0 8px rgba(56, 189, 248, 0.65);
}
#app #screenTitle .stage-plate.rarity-epic {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 0 rgba(0, 0, 0, 0.28),
        0 4px 0 rgba(0, 0, 0, 0.4),
        0 0 10px rgba(192, 132, 252, 0.75);
}
#app #screenTitle .stage-plate.rarity-legendary {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.32),
        inset 0 -3px 0 rgba(0, 0, 0, 0.28),
        0 4px 0 rgba(0, 0, 0, 0.4),
        0 0 12px rgba(251, 191, 36, 0.9);
}
#app #screenTitle .stage-plate .lvl-tab {
    background: linear-gradient(180deg, #3b2410, #1a0e06);
    border-color: #f2c94c;
    color: #fff8e7;
    text-shadow: var(--ol);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

#app #screenTitle .battle-btn {
    text-shadow:
        0 3px 0 #6b2408,
        2px 2px 0 #4a1a05,
        -2px -2px 0 #4a1a05,
        -2px 2px 0 #4a1a05,
        2px -2px 0 #4a1a05,
        0 6px 8px rgba(0, 0, 0, 0.35);
    filter: drop-shadow(0 2px 0 rgba(80, 32, 0, 0.35));
}
#app #screenTitle .side-btn {
    text-shadow: var(--ol);
    filter: drop-shadow(0 3px 0 rgba(8, 30, 70, 0.4));
}
#app #screenTitle .ad-chest {
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.42),
        inset 0 -2px 0 rgba(0, 0, 0, 0.25),
        0 4px 0 rgba(0, 0, 0, 0.4);
}


/* ---------- Campaign map ---------- */
#app #screenMap .map-title {
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35));
}
#app #screenMap .map-title,
#app #screenMap .node-label {
    text-shadow:
        0 2px 0 #10213d,
        1.3px 1.3px 0 #10213d,
        -1.3px -1.3px 0 #10213d,
        -1.3px 1.3px 0 #10213d,
        1.3px -1.3px 0 #10213d;
}
#app #screenMap .map-node .bubble {
    border-radius: 50%;
    border-color: #d6b25a;
    color: #fff8e7;
    text-shadow: var(--ol);
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.32),
        inset 0 -2px 0 rgba(0, 0, 0, 0.28),
        0 3px 0 rgba(0, 0, 0, 0.4);
}
#app #screenMap .map-node:not(.locked):not(.current) .bubble,
#app #screenMap .map-node.cleared .bubble {
    background: radial-gradient(ellipse at 50% 32%, #86efac, #16a34a 58%, #166534);
    border-color: #f2c94c;
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.35),
        0 3px 0 #14532d,
        0 0 0 2px #ca8a04;
}
#app #screenMap .map-node.current .bubble {
    background: radial-gradient(ellipse at 50% 30%, #fde68a, #f59e0b 52%, #b45309);
    color: #7c2d12;
    text-shadow: 0 1px 0 #fff6d0;
    border-color: #fff1a8;
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.45),
        0 3px 0 #7c2d12,
        0 0 0 3px #facc15,
        0 0 12px rgba(250, 204, 21, 0.85);
}
#app #screenMap .map-node.locked .bubble {
    background: radial-gradient(ellipse at 50% 32%, #9ca3af, #4b5563 60%, #374151);
    border-color: #9ca3af;
}
#app #screenMap .map-node .current-mark {
    position: relative;
    left: auto;
    top: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
    pointer-events: none;
    z-index: 5;
    width: max-content;
    max-width: 72px;
    margin-top: 2px;
}
#app #screenMap .map-node .hero-pin {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 28px;
    height: 28px;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}
#app #screenMap .map-node .hero-pin img,
#app #screenMap .map-node .pin-face {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #f2c94c;
    background: #123264;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
    display: block;
}
#app #screenMap .map-node .current-mark em {
    font-family: var(--disp);
    font-style: normal;
    font-size: 8px;
    letter-spacing: 0.03em;
    line-height: 1.1;
    color: #fde68a;
    text-shadow: var(--ol);
    white-space: nowrap;
    background: linear-gradient(180deg, #3b2410, #1a0e06);
    border: 1px solid #f2c94c;
    border-radius: 6px;
    padding: 1px 5px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
#app #screenMap .start-stage {
    text-shadow:
        0 3px 0 #6b2408,
        2px 2px 0 #4a1a05,
        -2px -2px 0 #4a1a05,
        -2px 2px 0 #4a1a05,
        2px -2px 0 #4a1a05;
}

/* ---------- Hero upgrade ---------- */
#app #screenHeroes.has-detail .up-banner {
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 0 rgba(40, 44, 52, 0.45),
        0 4px 0 rgba(0, 0, 0, 0.35),
        0 0 10px rgba(251, 191, 36, 0.18);
}
#app #screenHeroes.has-detail .up-banner h2 {
    text-shadow:
        0 3px 0 #6b2408,
        2px 2px 0 #4a1a05,
        -2px -2px 0 #4a1a05,
        -2px 2px 0 #4a1a05,
        2px -2px 0 #4a1a05,
        0 6px 10px rgba(0, 0, 0, 0.35);
}
#app #screenHeroes.has-detail .up-name h3 {
    text-shadow: var(--ol);
}
#app #screenHeroes.has-detail .skill-panel {
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.32),
        0 0 12px rgba(251, 191, 36, 0.18);
}
#app #screenHeroes.has-detail .up-upgrade,
#app #screenHeroes.has-detail .up-ascend {
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.3));
    text-shadow:
        0 2px 0 #3b1a08,
        1.4px 1.4px 0 #3b1a08,
        -1.4px -1.4px 0 #3b1a08;
}

/* ---------- Summon & store ---------- */
#app #screenSummon .summon-banner h2 {
    text-shadow:
        0 3px 0 #10213d,
        2px 2px 0 #10213d,
        -2px -2px 0 #10213d,
        -2px 2px 0 #10213d,
        2px -2px 0 #10213d,
        0 6px 8px rgba(0, 0, 0, 0.35);
}
#app #screenSummon .pity-card,
#app #screenSummon .pass-card {
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.32),
        inset 0 2px 0 rgba(255, 255, 255, 0.12),
        0 0 12px rgba(251, 191, 36, 0.16);
}
#app #screenSummon .pull.one,
#app #screenSummon .pull.ten {
    text-shadow:
        0 2px 0 #3b1a08,
        1.4px 1.4px 0 #3b1a08,
        -1.4px -1.4px 0 #3b1a08;
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.3));
}
#app #screenSummon .starter-banner {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.28),
        0 4px 0 rgba(0, 0, 0, 0.35),
        0 0 12px rgba(251, 191, 36, 0.22);
}

/* ---------- Victory ---------- */
#app #screenResult .victory-banner.ribbon {
    filter: drop-shadow(0 6px 0 rgba(80, 32, 0, 0.28));
}
#app #screenResult .loot-tile .ico {
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.35),
        0 3px 0 rgba(0, 0, 0, 0.4),
        0 0 8px rgba(251, 191, 36, 0.2);
}
#app #screenResult .claim-btn,
#app #screenResult .ad-double {
    text-shadow:
        0 2px 0 #3b1a08,
        1.4px 1.4px 0 #3b1a08,
        -1.4px -1.4px 0 #3b1a08;
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.28));
}

/* ---------- PvP ---------- */
#app #screenPvp .pvp-title {
    text-shadow:
        0 3px 0 #10213d,
        2px 2px 0 #10213d,
        -2px -2px 0 #10213d,
        -2px 2px 0 #10213d,
        2px -2px 0 #10213d;
}
#app #screenPvp .rank-card,
#app #screenPvp .online-card,
#app #screenPvp .ladder-card {
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.32),
        0 0 12px rgba(251, 191, 36, 0.16);
}
#app #screenPvp .rank-step.on .pip {
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7));
}
#app #screenPvp .rank-step .cur-tab {
    background: linear-gradient(180deg, #fbbf24, #d97706);
    color: #3b1a08;
    border: 1px solid #fff1a8;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
#app #screenPvp .vs-mark {
    text-shadow:
        0 3px 0 #6b2408,
        2px 2px 0 #4a1a05,
        -2px -2px 0 #4a1a05,
        -2px 2px 0 #4a1a05,
        2px -2px 0 #4a1a05,
        0 0 12px rgba(251, 191, 36, 0.55);
}
#app #screenPvp .find-match {
    text-shadow:
        0 3px 0 #6b2408,
        2px 2px 0 #4a1a05,
        -2px -2px 0 #4a1a05;
    filter: drop-shadow(0 3px 0 rgba(80, 32, 0, 0.3));
}

/* ---------- Look-sheet defect fixes ---------- */

/* Hero Upgrade: let the selected skill description wrap in full. */
#app #screenHeroes.has-detail .skill-board.tree3 .skill-node small,
#app #screenHeroes.has-detail .skill-board.tree3 .skill-node .flag {
    display: none;
}
#app #screenHeroes.has-detail .skill-inspect {
    max-height: none;
    height: auto;
    overflow: visible;
    align-items: flex-start;
    flex: 0 0 auto;
}
#app #screenHeroes.has-detail .skill-inspect-copy {
    overflow: visible;
    min-width: 0;
}
#app #screenHeroes.has-detail .skill-inspect-copy b,
#app #screenHeroes.has-detail .skill-inspect-copy p,
#app #screenHeroes.has-detail .skill-inspect-copy small {
    display: block;
    overflow: visible;
    white-space: normal;
}
#app #screenHeroes.has-detail .skill-inspect-copy p {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow-wrap: anywhere;
    color: #fde68a;
    text-shadow: 0 1px 0 #000;
}

/* PvP: readable gold Current plate under the active tier. */
#app #screenPvp .rank-card {
    overflow: visible;
    padding-bottom: 34px;
}
#app #screenPvp .rank-track {
    overflow: visible;
}
#app #screenPvp .rank-step {
    overflow: visible;
    min-width: 0;
}
#app #screenPvp .rank-step .cur-tab {
    position: absolute;
    left: 50%;
    top: 100%;
    bottom: auto;
    transform: translateX(-50%);
    margin-top: 4px;
    z-index: 4;
    padding: 3px 10px;
    font-family: var(--disp);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.15;
    letter-spacing: 0.04em;
    color: #3b1a08;
    background: linear-gradient(180deg, #fde68a, #f59e0b 55%, #d97706);
    border: 2px solid #fff1a8;
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 2px 0 rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    text-shadow: 0 1px 0 #fff6d0;
}

/* Victory: three full-width hero EXP rows plus both claim buttons. */
#app #screenResult .result-body {
    align-items: stretch;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}
#app #screenResult .loot-chest-img {
    width: 88px;
    margin-top: 0;
}
#app #screenResult .victory-banner.ribbon {
    min-height: 72px;
    margin-top: 8px;
}
#app #screenResult .loot-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    overflow: visible;
}
#app #screenResult .loot-tile {
    flex: 0 1 56px;
    min-width: 0;
    max-width: 56px;
    width: 56px;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
}
#app #screenResult .loot-tile .ico {
    height: 46px;
    width: 100%;
    box-sizing: border-box;
}
#app #screenResult .loot-tile .ico img,
#app #screenResult .loot-tile .ico .shard-face {
    width: 32px;
    height: 32px;
}
#app #screenResult .loot-tile .lt-label {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    line-height: 1.1;
}
#app #screenResult .exp-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 0 0 auto;
    gap: 6px;
    margin: 8px 0 6px;
    padding: 0 2px;
    overflow: visible;
}
#app #screenResult .exp-row {
    display: grid;
    grid-template-columns: 32px minmax(44px, auto) minmax(36px, 1fr) max-content;
    grid-template-rows: auto;
    align-items: center;
    gap: 6px 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 15px;
}
#app #screenResult .exp-row .exp-face {
    grid-row: auto;
    width: 32px;
    height: 32px;
}
#app #screenResult .exp-row > span:nth-child(2) {
    grid-row: auto;
    grid-column: auto;
    min-width: 0;
}
#app #screenResult .exp-row .bar {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-width: 0;
    height: 14px;
    border: 2px solid #0a1426;
    background: #0a1426;
    border-radius: 7px;
}
#app #screenResult .exp-row .bar i {
    display: block;
    height: 100%;
}
#app #screenResult .exp-row > span:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    text-align: right;
    white-space: nowrap;
    overflow: visible;
    color: #86efac;
    font-size: 12px;
    text-shadow: var(--ol);
    justify-self: end;
}
#app #screenResult .result-dock,
#app #screenResult .ad-double,
#app #screenResult .claim-btn {
    flex-shrink: 0;
}

/* Summon: keep the Gladiator Pass tracks visible, not cropped empty. */
#app #screenSummon .portal-stage {
    height: 152px;
    flex: 0 0 152px;
}
#app #screenSummon .pass-card {
    overflow: visible;
}
#app #screenSummon .pass-track,
#app #screenSummon .pass-slots {
    display: flex;
    align-items: stretch;
    min-height: 54px;
}
#app #screenSummon .pass-slots button {
    min-height: 54px;
}

/* Lobby: clearer name-plate star row (heroes are enlarged from ui.js). */
#app #screenTitle .stage-plate {
    overflow: visible;
}
#app #screenTitle .stage-plate .stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    margin: 1px 0 2px;
    min-height: 12px;
}
#app #screenTitle .stage-plate .star {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.55));
}
#app #screenTitle .stage-plate.lead .star {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

/* ---------- Battle HUD ---------- */
#app #topHud .name,
#app #topHud .hp-num,
#app #topHud .turn-label,
#app #topHud .turn-num,
#app #topHud .control-meta,
#app #topHud .control-goal,
#app #topHud .loot-meter .tag,
#app #topHud .loot-meter .count {
    text-shadow:
        0 2px 0 #10213d,
        1.2px 1.2px 0 #10213d,
        -1.2px -1.2px 0 #10213d,
        -1.2px 1.2px 0 #10213d,
        1.2px -1.2px 0 #10213d;
}
#app #topHud .portrait {
    box-shadow:
        0 0 0 2px #f2c94c,
        0 3px 0 rgba(0, 0, 0, 0.4),
        0 0 10px rgba(251, 191, 36, 0.28);
}
#app #topHud .hp-track,
#app #topHud .control-track,
#app #topHud .loot-meter .bar {
    box-shadow:
        inset 0 2px 0 rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(242, 201, 76, 0.45);
}
#app #topHud .turn-label {
    color: #fff8e7;
}
#app #topHud .hud-panel.center-hud {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.18),
        0 3px 0 rgba(0, 0, 0, 0.32);
}
#app #topHud #menuBtn {
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35));
}
#app #bottomHud .hud-tool {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.42),
        0 3px 0 #2a180c,
        0 0 8px rgba(251, 191, 36, 0.18);
}
#app #bottomHud .hud-tool small,
#app #bottomHud #skillBtnLabel,
#app #bottomHud #launchBtn {
    text-shadow:
        0 2px 0 #3b1a08,
        1.2px 1.2px 0 #3b1a08,
        -1.2px -1.2px 0 #3b1a08;
}
#app #bottomHud #skillBtn {
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.28));
}
#app #bottomHud #skillBtn.ready {
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.75));
}
#app #bottomHud .hero-card .hero-portrait {
    box-shadow:
        0 3px 0 #3b2410,
        inset 0 0 0 1px rgba(0, 0, 0, 0.35),
        0 0 8px rgba(251, 191, 36, 0.22);
}
#app #bottomHud .hero-card.card-active .hero-portrait {
    box-shadow:
        0 0 0 2px #14532d,
        0 0 12px rgba(74, 222, 128, 0.75),
        0 3px 0 #3b2410;
}
#app #bottomHud #launchBtn {
    filter: drop-shadow(0 3px 0 rgba(80, 32, 0, 0.3));
}

/* ---------- Secondary pages ---------- */
#app .art-page .roster-title,
#app #screenTeam #teamStageTitle,
#app #screenDefeat .hub-banner {
    text-shadow:
        0 3px 0 #10213d,
        2px 2px 0 #10213d,
        -2px -2px 0 #10213d,
        -2px 2px 0 #10213d,
        2px -2px 0 #10213d,
        0 6px 8px rgba(0, 0, 0, 0.35);
}
#app .art-page .art-head {
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.28));
}
#app .settings-screen .setting-row {
    background: linear-gradient(180deg, rgba(24, 52, 96, 0.88), rgba(10, 28, 58, 0.9));
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.16),
        inset 0 0 0 2px rgba(122, 76, 12, 0.55),
        0 3px 0 rgba(0, 0, 0, 0.35);
}
#app .settings-screen .setting-hint,
#app .art-page .hub-note,
#app #screenTeam .team-hint {
    text-shadow: 0 1px 0 #10213d;
}
#app .art-page .art-btn,
#app #screenTeam #btnStartBattle,
#app #screenDefeat .art-btn {
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.3));
    text-shadow:
        0 2px 0 #3b1a08,
        1.2px 1.2px 0 #3b1a08,
        -1.2px -1.2px 0 #3b1a08;
}
#app .hub-card,
#app #screenPass .pass-row,
#app #screenPass .pass-head {
    background: linear-gradient(180deg, rgba(24, 52, 96, 0.9), rgba(10, 28, 58, 0.92));
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.16),
        inset 0 0 0 2px #d4a017,
        0 3px 0 rgba(0, 0, 0, 0.35);
}
#app .hub-card.ready {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.16),
        0 0 0 2px #4ade80,
        0 3px 0 rgba(0, 0, 0, 0.35);
}
#app .hub-card.unread {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.16),
        0 0 0 2px #38bdf8,
        0 3px 0 rgba(0, 0, 0, 0.35);
}
#app .hub-card-top b,
#app .hub-card .troph,
#app #screenPass .pass-head b,
#app #screenTeam .team-power {
    text-shadow: var(--ol);
    color: #fff8e7;
}
#app .hub-tab {
    text-shadow: var(--ol);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.18),
        0 2px 0 rgba(0, 0, 0, 0.3);
}
#app #screenDefeat .defeat-mark {
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35));
}
#app #screenDefeat .hub-banner {
    color: #fecaca;
}
#app #screenDefeat .loot-tile .ico {
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        0 3px 0 rgba(0, 0, 0, 0.4),
        0 0 8px rgba(251, 191, 36, 0.2);
}
#app #screenTeam #teamStageTitle,
#app #screenTeam .team-power {
    color: #fff8e7;
}
#app #screenTeam #btnStartBattle {
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.45),
        0 4px 0 rgba(80, 32, 0, 0.35);
}

/* ---------- Global metallic gold frames ---------- */
#app .lx-profile,
#app .lx-banner,
#app .lx-wallet .cur,
#app .rank-card,
#app .online-card,
#app .ladder-card,
#app .pity-card,
#app .pass-card,
#app .skill-panel,
#app .hub-card,
#app #screenPass .pass-head,
#app #screenPass .pass-row,
#app .settings-screen .setting-row,
#app #screenResult .loot-tile,
#app #screenResult .victory-banner,
#app #bottomHud,
#app #topHud .hud-panel,
#app #screenTitle .stage-plate,
#app #screenMap .map-node .bubble,
#app .side-btn,
#app .menu-btn,
#app .art-btn {
    border: 2px solid #ffd86b;
    box-shadow:
        0 0 0 2px #1a2233,
        0 0 0 3px #b87e1b,
        inset 0 2px 0 rgba(255, 255, 255, 0.32),
        0 4px 8px rgba(0, 0, 0, 0.35);
}

/* Primary actions: thick 3D bottom lip + pressed state */
#app #btnBattle,
#app #btnStartStage,
#app .start-stage,
#app .up-upgrade,
#app .up-ascend,
#app #btnSummonOne,
#app #btnSummonTen,
#app .claim-btn,
#app #btnArenaFight,
#app .find-match,
#app #btnClaimLogin,
#app #btnStartBattle {
    border: 2px solid #ffd86b;
    box-shadow:
        0 0 0 2px #1a2233,
        inset 0 2px 0 rgba(255, 255, 255, 0.42),
        0 5px 0 rgba(0, 0, 0, 0.45),
        0 8px 12px rgba(0, 0, 0, 0.28);
}
#app #btnBattle:active,
#app #btnStartStage:active,
#app .start-stage:active,
#app .up-upgrade:active,
#app .up-ascend:active,
#app #btnSummonOne:active,
#app #btnSummonTen:active,
#app .claim-btn:active,
#app #btnArenaFight:active,
#app .find-match:active,
#app #btnClaimLogin:active,
#app #btnStartBattle:active {
    transform: translateY(3px);
    box-shadow:
        0 0 0 2px #1a2233,
        inset 0 2px 0 rgba(255, 255, 255, 0.22),
        0 2px 0 rgba(0, 0, 0, 0.45);
}

/* ---------- Gladiator Pass 2-row grid + summon portal/pity ---------- */
#app #screenSummon .portal-stage {
    height: 148px;
    flex: 0 0 148px;
    overflow: hidden;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
}
#app #screenSummon .pity-card {
    position: relative;
    z-index: 2;
    margin-top: 0;
    flex-shrink: 0;
}
#app .gp-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
#app .gp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
#app .gp-head {
    flex: 0 0 48px;
    width: 48px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff8e7;
    text-shadow: var(--ol);
}
#app .gp-head img { width: 22px; height: 22px; }
#app .gp-cells {
    display: flex;
    gap: 6px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}
#app .gp-cells button,
#app .gp-cell {
    position: relative;
    flex: 1 1 0;
    max-width: 56px;
    min-width: 0;
    width: 56px;
    height: 56px;
    padding: 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#app .gp-row.free .gp-cells button,
#app .gp-row.free .gp-cell {
    background: linear-gradient(180deg, #3d4453, #232832);
    border: 2px solid #64748b;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.12), 0 2px 0 rgba(0,0,0,0.35);
}
#app .gp-row.prem .gp-cells button,
#app .gp-row.prem .gp-cell {
    background: linear-gradient(180deg, #6b5322, #3d2f12);
    border: 2px solid #f5b942;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.18), 0 2px 0 rgba(0,0,0,0.35);
}
#app .gp-cells button .lk,
#app .gp-cell .lk {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
}
#app .gp-cells button img.rw,
#app .gp-cell img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
#app .gp-ico {
    font-size: 9px;
    line-height: 1.05;
    text-align: center;
    color: #fff8e7;
    max-width: 100%;
    overflow: hidden;
}
#app .gp-divider {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    padding-left: 56px;
}
#app .gp-bar {
    display: block;
    flex: 1 1 auto;
    height: 6px;
    border-radius: 99px;
    background: #1e2933;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.45);
}
#app .gp-bar > i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #16a34a);
}
#app .gp-badges {
    position: absolute;
    left: 56px;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    pointer-events: none;
}
#app .gp-badge {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #334155;
    color: #e2e8f0;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #0f172a;
}
#app .gp-badge.on {
    background: #22c55e;
    color: #052e16;
}

/* ---------- PvP portraits, PWR labels, Find Match glow ---------- */
#app #screenPvp .ladder-card {
    overflow: visible;
}
#app #screenPvp .versus {
    overflow: visible !important;
    align-items: flex-end;
    padding-bottom: 6px;
}
#app #screenPvp .vs-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
#app #screenPvp .vs-name,
#app #screenPvp .vs-pwr {
    display: block;
    position: relative;
    z-index: 2;
}
#app #screenPvp .vs-faces {
    height: 108px;
    gap: 0;
    align-items: flex-end;
    overflow: visible;
}
#app #screenPvp .vs-fig {
    width: 78px;
    height: 102px;
    object-fit: contain;
    margin: 0 -10px;
}
#app #screenPvp .vs-faces .vs-fig:nth-child(2) {
    width: 86px;
    height: 110px;
    z-index: 1;
}
#app #screenPvp .vs-pwr {
    font-size: 12px;
    font-weight: 800;
    color: #fff8e7;
    text-align: center;
    text-shadow: var(--ol);
    margin-top: 4px;
    max-width: 140px;
    overflow-wrap: anywhere;
}
#app #screenPvp .find-match {
    width: 78% !important;
    max-width: 78%;
    margin: 8px auto 0;
    display: block;
    align-self: center;
    box-shadow:
        0 0 0 2px #1a2233,
        inset 0 2px 0 rgba(255, 255, 255, 0.42),
        0 5px 0 rgba(0, 0, 0, 0.45),
        0 0 18px rgba(255, 200, 50, 0.75);
}

/* ---------- Hero upgrade slots, runes, pedestal stars, compact tree ---------- */
#app #screenHeroes.has-detail .gear-slot {
    border: 3px solid #ffd86b;
    border-radius: 12px;
    box-shadow:
        0 0 0 2px #1a2233,
        inset 0 2px 0 rgba(255,255,255,0.28),
        0 3px 0 rgba(0,0,0,0.35);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.8));
}
#app #screenHeroes.has-detail .gear-slot .gico {
    width: 68px !important;
    height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
    flex: 0 0 68px;
}
#app #screenHeroes.has-detail .gear-slot.rarity-empty .gico {
    filter: brightness(1.55) drop-shadow(0 0 8px rgba(255, 248, 220, 0.75));
    opacity: 0.95;
}
#app #screenHeroes.has-detail .stat-col .rune-btn {
    width: 64px;
    height: 64px;
    max-height: 64px;
    border-radius: 50%;
    padding: 6px;
    border: 3px solid #ffd86b;
    background: radial-gradient(circle at 35% 30%, #6b7280, #1f2933 70%);
    box-shadow:
        0 0 0 2px #1a2233,
        inset 0 3px 0 rgba(255,255,255,0.35),
        inset 0 -3px 0 rgba(0,0,0,0.35),
        0 3px 0 rgba(0,0,0,0.35);
    overflow: hidden;
}
#app #screenHeroes.has-detail .stat-col .rune-btn img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
}
#app #screenHeroes.has-detail .stat-col .rune-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}
#app #screenHeroes.has-detail .pedestal-col {
    position: relative;
}
#app #screenHeroes.has-detail .ped-stars {
    position: absolute;
    left: 50%;
    bottom: 28%;
    transform: translateX(-50%);
    z-index: 6;
    pointer-events: none;
    display: flex;
    gap: 2px;
    filter: drop-shadow(0 2px 0 rgba(0,0,0,0.45));
}
#app #screenHeroes.has-detail .skill-board.tree3 {
    height: 100px;
}
#app #screenHeroes.has-detail .skill-board.tree3 > .skill-node,
#app #screenHeroes.has-detail .skill-board.tree3 .skill-node.core,
#app #screenHeroes.has-detail .skill-board.tree3 .skill-node.path,
#app #screenHeroes.has-detail .skill-board.tree3 > .skill-node.special {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 4px;
    background: radial-gradient(circle at 35% 30%, #4b5563, #111827 72%);
    border: 2px solid #f5c544;
    box-shadow:
        0 0 0 2px #1a2233,
        0 0 10px rgba(246, 197, 68, 0.55);
}
#app #screenHeroes.has-detail .skill-board.tree3 > .skill-node.special img,
#app #screenHeroes.has-detail .skill-board.tree3 .skill-node.core img,
#app #screenHeroes.has-detail .skill-board.tree3 .skill-node.path img {
    width: 28px !important;
    height: 28px !important;
}
#app #screenHeroes.has-detail .skill-board.tree3 .wires path[stroke="#f6c544"] {
    stroke: #ffd86b;
    filter: drop-shadow(0 0 4px #f5b942);
}
#app #screenHeroes.has-detail .skill-panel {
    overflow-x: hidden;
    overflow-y: visible;
}
#app #screenHeroes.has-detail .skill-board.tree3 {
    height: 90px;
}
#app #screenHeroes.has-detail .skill-inspect {
    max-height: none;
    min-height: 40px;
    height: auto;
    overflow: visible;
    padding: 4px 0 2px;
    align-items: center;
    flex: 0 0 auto;
}
#app #screenHeroes.has-detail .skill-inspect-copy {
    overflow: visible;
    min-width: 0;
}
#app #screenHeroes.has-detail .skill-inspect-copy p {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    line-height: 1.2;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}
#app #screenHeroes.has-detail .skill-unlock {
    flex: 0 0 auto;
    height: 36px;
    min-width: 78px;
    overflow: visible;
}
#app #screenHeroes.has-detail .gear-col {
    z-index: 3;
    overflow: visible;
}
#app #screenHeroes.has-detail .gear-slot {
    flex: 0 0 auto;
    overflow: visible;
    min-height: 0;
    padding: 3px 3px 2px;
}
#app #screenHeroes.has-detail .gear-slot .gico {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    flex: 0 0 56px;
}
#app #screenHeroes.has-detail .gear-slot .gname {
    display: block !important;
    position: static;
    width: 100%;
    height: auto;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 800;
    text-align: center;
    color: #fff8e7;
    text-shadow: 0 1px 0 #000;
    white-space: nowrap;
    overflow: visible;
    flex: 0 0 auto;
}
#app #screenHeroes.has-detail .gear-slot .gstat {
    display: none;
}

/* ---------- Battle bar slate stone + floating tool buttons ---------- */
#app #bottomHud {
    overflow: visible;
    background: linear-gradient(180deg, #3c4453 0%, #232832 100%);
    border-top: 3px solid #ffd86b;
    box-shadow:
        0 0 0 2px #1a2233,
        inset 0 2px 0 rgba(255, 255, 255, 0.16),
        0 -4px 12px rgba(0, 0, 0, 0.35);
}
#app #bottomHudInner {
    position: relative;
    overflow: visible;
}
#app #bottomHud .hud-tools {
    position: absolute;
    left: 6px;
    top: 0;
    transform: translateY(-100%);
    z-index: 26;
    gap: 4px;
    padding: 0 0 4px;
}
#app #bottomHud .hud-tool {
    width: 42px;
    min-width: 42px;
    height: 38px;
    border-width: 2px;
}

/* ---------- Victory ribbon-first layout, bigger chest, loot cards ---------- */
#app #screenResult > .result-top {
    display: none !important;
}
#app #screenResult .result-body {
    position: relative;
}
#app #screenResult .victory-banner.ribbon {
    margin-top: 6px;
}
#app #screenResult .rays {
    background: radial-gradient(circle at 50% 46%, rgba(255, 216, 107, 0.62) 0%, rgba(255, 176, 50, 0.28) 32%, rgba(255, 200, 80, 0.08) 55%, transparent 72%);
    z-index: 0;
}
#app #screenResult .loot-chest-img {
    width: 128px;
    height: auto;
    margin: 4px auto 2px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 18px rgba(255, 200, 50, 0.45));
}
#app #screenResult .loot-row {
    position: relative;
    z-index: 1;
}
#app #screenResult .loot-tile {
    flex: 1 1 0;
    min-width: 0;
    max-width: 68px;
    width: auto;
    height: 76px;
    max-height: 76px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #243044, #101826);
    border: 2px solid #ffd86b;
}
#app #screenResult .loot-tile .ico {
    height: 42px;
    background: rgba(8, 12, 20, 0.55);
}
#app #screenResult .ad-double,
#app #screenResult .claim-btn {
    width: 78%;
    max-width: 78%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 999px;
    border: 3px solid #ffd86b;
    box-shadow:
        0 0 0 2px #1a2233,
        inset 0 2px 0 rgba(255, 255, 255, 0.42),
        0 5px 0 rgba(0, 0, 0, 0.45);
}
#app #screenResult .result-dock {
    align-items: center;
}
