/* Each role uses a dedicated composition. Numbers, pips, names and LIFE stay live DOM. */
:is([data-cosmetic-theme="sun"],[data-number-theme="sun"],[data-star2-theme="sun"]){
 --cos-sleeve:url('assets/cosmetics/sun-sleeve.webp');
 --cos-board:url('assets/cosmetics/sun-board.webp');
 --cos-dice:url('assets/cosmetics/sun-dice.webp');
 --cos-number:url('assets/cosmetics/sun-number.webp');
 --cos-plate:url('assets/cosmetics/sun-nameplate.webp');
 --cos-pip:#fff5d7;
 --cos-plate-height:162%;--cos-plate-y:43%;--cos-plate-body-height:195%;--cos-plate-body-y:48%;
}

:is([data-cosmetic-theme="earth"],[data-number-theme="earth"],[data-star2-theme="earth"]){
 --cos-sleeve:url('assets/cosmetics/earth-sleeve.webp');--cos-board:url('assets/cosmetics/earth-board.webp');--cos-dice:url('assets/cosmetics/earth-dice.webp');--cos-number:url('assets/cosmetics/earth-number.webp');--cos-plate:url('assets/cosmetics/earth-nameplate.webp');--cos-pip:#eff3db;--cos-plate-height:195%;--cos-plate-y:42%;--cos-plate-body-height:285%;--cos-plate-body-y:62%;
}

:is([data-cosmetic-theme="moon"],[data-number-theme="moon"],[data-star2-theme="moon"]){
 --cos-sleeve:url('assets/cosmetics/moon-sleeve-v2.webp');--cos-board:url('assets/cosmetics/moon-board-v2.webp');--cos-dice:url('assets/cosmetics/moon-dice-v3.webp');--cos-number:url('assets/cosmetics/moon-number-v3.webp');--cos-plate:url('assets/cosmetics/moon-nameplate-v3.webp');--cos-pip:#30283b;--cos-plate-height:100%;--cos-plate-y:50%;--cos-plate-body-height:100%;--cos-plate-body-y:50%;
}

:is([data-cosmetic-theme="destiny"],[data-number-theme="destiny"],[data-star2-theme="destiny"]){
 --cos-sleeve:url('assets/cosmetics/destiny-sleeve.webp');--cos-board:url('assets/cosmetics/destiny-board.webp');--cos-dice:url('assets/cosmetics/destiny-dice.webp');--cos-number:url('assets/cosmetics/destiny-number.webp');--cos-plate:url('assets/cosmetics/destiny-nameplate.webp');--cos-pip:#f4efe1;--cos-plate-height:210%;--cos-plate-y:47%;--cos-plate-body-height:285%;--cos-plate-body-y:49%;
}
/* The first finished set is reviewed in isolation before other themes are expanded. */
body .board-skin-layer:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"]{
 background:var(--cos-board) center/100% 100% no-repeat!important;
 box-shadow:none!important;border:0!important;
}
body .deck-stack:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"] .deck-card{
 background:var(--cos-sleeve) center/100% 100% no-repeat!important;
 border:0!important;border-radius:3px!important;
 box-shadow:0 4px 7px #0009!important;
}
body .deck-stack:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"] .deck-card::after{content:none!important}
body .dice-cube-wrap:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"] .cube-face{
 background:var(--cos-dice) center/100% 100% no-repeat!important;
 border:0!important;box-shadow:none!important;border-radius:10%!important;
}
body .dice-cube-wrap:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"] .pip.on{
 background:var(--cos-pip)!important;box-shadow:0 1px 1px #000!important;
}
body .face-row:is([data-number-theme="sun"],[data-number-theme="earth"],[data-number-theme="moon"],[data-number-theme="destiny"])[data-number-rarity="2"] .face-num{
 background:var(--cos-number) center/100% 100% no-repeat!important;
 color:#fff4dc!important;-webkit-text-stroke:0!important;text-shadow:0 1px 2px #000!important;
 border:0!important;box-shadow:none!important;aspect-ratio:1;height:auto!important;border-radius:0!important;
}
body .combatant:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"]{
 background:var(--cos-plate) right var(--cos-plate-body-y)/135% var(--cos-plate-body-height) no-repeat!important;
 box-shadow:none!important;border:0!important;
}
body .combatant:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"]::before{
 content:"";position:absolute;left:5px;top:50%;transform:translateY(-50%);
 height:calc(100% - 10px);max-height:50px;aspect-ratio:1.2;
 background:var(--cos-plate) left var(--cos-plate-y)/auto var(--cos-plate-height) no-repeat;
 pointer-events:none;z-index:0;
}
body .combatant.cpu:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"]::before{left:auto;right:5px}
body .combatant:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"] .avatar{background:transparent;border-color:transparent;box-shadow:none}
body .preview-nameplate:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"]{padding-left:76px}
body .compact .preview-nameplate:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"]{padding-left:40px}
@media(max-width:1180px) and (max-height:600px) and (orientation:landscape){
 body .preview-nameplate:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"]{padding-left:68px}
 body .compact .preview-nameplate:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"]{padding-left:30px}
}
body .combatant:is([data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-rarity="2"]::after{content:none!important}
/* Gacha and owned collection show the same objects that appear in battle. */
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]){background:#101e29;border:1px solid #8e7b55;box-shadow:none}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) :is(.star2-texture,.star2-frame,.star2-type-label,.star2-sigil,.star2-corner-marks,.star2-board-orbit,.star2-board-center,.star2-board-terrain,.star2-board-numbers,.star2-die-emblem,.star2-number-orbit,.star2-number-flare,.star2-nameplate-mark,.star2-nameplate-orbit){display:none!important}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-sleeve-card{background:var(--cos-sleeve) center/100% 100% no-repeat;border:0;box-shadow:0 5px 9px #0008}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-board-field{background:var(--cos-board) center/100% 100% no-repeat;border:0;box-shadow:0 5px 9px #0008;transform:rotateX(25deg)}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-board-field::before{display:none}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-preview-die{background:var(--cos-dice) center/100% 100% no-repeat;border:0;box-shadow:0 5px 9px #0008;border-radius:10%;backdrop-filter:none}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-preview-pip{background:var(--cos-pip);box-shadow:0 1px 1px #000}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-number-slab{background:var(--cos-number) center/contain no-repeat;border:0;border-radius:0;box-shadow:none}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-number-slab::before{display:none}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-number-value{color:#fff4dc;-webkit-text-stroke:0;text-shadow:0 1px 2px #000;font-size:clamp(26px,21cqw,60px)}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-nameplate-plate{background:var(--cos-plate) center var(--cos-plate-y)/100% var(--cos-plate-height) no-repeat;border:0;box-shadow:0 5px 9px #0008;border-radius:0;display:flex;justify-content:center}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-nameplate-plate::before{display:none}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-nameplate-player{color:#fff2d9}

:is([data-cosmetic-theme="snow_white"],[data-number-theme="snow_white"],[data-star2-theme="snow_white"]){--cos-sleeve:url('assets/cosmetics/snow_white-sleeve.svg');--cos-board:url('assets/cosmetics/snow_white-board.svg');--cos-dice:url('assets/cosmetics/snow_white-dice.svg');--cos-number:url('assets/cosmetics/snow_white-number.svg');--cos-plate:url('assets/cosmetics/snow_white-nameplate.svg');--cos-pip:#f3eee1;}

:is([data-cosmetic-theme="silver_gray"],[data-number-theme="silver_gray"],[data-star2-theme="silver_gray"]){--cos-sleeve:url('assets/cosmetics/silver_gray-sleeve.svg');--cos-board:url('assets/cosmetics/silver_gray-board.svg');--cos-dice:url('assets/cosmetics/silver_gray-dice.svg');--cos-number:url('assets/cosmetics/silver_gray-number.svg');--cos-plate:url('assets/cosmetics/silver_gray-nameplate.svg');--cos-pip:#f3eee1;}

:is([data-cosmetic-theme="cherry_pink"],[data-number-theme="cherry_pink"],[data-star2-theme="cherry_pink"]){--cos-sleeve:url('assets/cosmetics/cherry_pink-sleeve.svg');--cos-board:url('assets/cosmetics/cherry_pink-board.svg');--cos-dice:url('assets/cosmetics/cherry_pink-dice.svg');--cos-number:url('assets/cosmetics/cherry_pink-number.svg');--cos-plate:url('assets/cosmetics/cherry_pink-nameplate.svg');--cos-pip:#f3eee1;}

:is([data-cosmetic-theme="aster_purple"],[data-number-theme="aster_purple"],[data-star2-theme="aster_purple"]){--cos-sleeve:url('assets/cosmetics/aster_purple-sleeve.svg');--cos-board:url('assets/cosmetics/aster_purple-board.svg');--cos-dice:url('assets/cosmetics/aster_purple-dice.svg');--cos-number:url('assets/cosmetics/aster_purple-number.svg');--cos-plate:url('assets/cosmetics/aster_purple-nameplate.svg');--cos-pip:#f3eee1;}

:is([data-cosmetic-theme="azure"],[data-number-theme="azure"],[data-star2-theme="azure"]){--cos-sleeve:url('assets/cosmetics/azure-sleeve.svg');--cos-board:url('assets/cosmetics/azure-board.svg');--cos-dice:url('assets/cosmetics/azure-dice.svg');--cos-number:url('assets/cosmetics/azure-number.svg');--cos-plate:url('assets/cosmetics/azure-nameplate.svg');--cos-pip:#f3eee1;}

/* Basic finishes use clean, engraved SVG objects instead of token glyphs. */
body .board-skin-layer[data-cosmetic-slot][data-cosmetic-rarity="1"]{background:var(--cos-board) center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important}
body .deck-stack[data-cosmetic-slot][data-cosmetic-rarity="1"] .deck-card{background:var(--cos-sleeve) center/100% 100% no-repeat!important;border:0!important;border-radius:3px!important;box-shadow:0 3px 6px #0008!important}
body .deck-stack[data-cosmetic-slot][data-cosmetic-rarity="1"] .deck-card::after{content:none!important}
body .dice-cube-wrap[data-cosmetic-slot][data-cosmetic-rarity="1"] .cube-face{background:var(--cos-dice) center/100% 100% no-repeat!important;box-shadow:none!important;border:0!important;border-radius:8%!important}
body .dice-cube-wrap[data-cosmetic-slot][data-cosmetic-rarity="1"] .pip.on{background:var(--cos-pip)!important;box-shadow:0 1px 2px #000!important}
body .face-row[data-number-theme][data-number-rarity="1"] .face-num{background:var(--cos-number) center/100% 100% no-repeat!important;color:#f6ecdc!important;border:0!important;box-shadow:none!important;text-shadow:0 1px 2px #000!important;-webkit-text-stroke:0!important;aspect-ratio:1;height:auto!important}
body .combatant[data-cosmetic-slot][data-cosmetic-rarity="1"]{background:var(--cos-plate) center/100% 100% no-repeat!important;box-shadow:none!important;border:0!important}

body .star2-visual[data-basic-cosmetic="true"]{background:#101e29;border:1px solid #8e7b55;box-shadow:none}
body .star2-visual[data-basic-cosmetic="true"] :is(.star2-texture,.star2-frame,.star2-type-label,.star2-sigil,.star2-corner-marks,.star2-board-orbit,.star2-board-center,.star2-board-terrain,.star2-board-numbers,.star2-die-emblem,.star2-number-orbit,.star2-number-flare,.star2-nameplate-mark,.star2-nameplate-orbit){display:none!important}
body .star2-visual[data-basic-cosmetic="true"] .star2-sleeve-card{background:var(--cos-sleeve) center/100% 100% no-repeat;border:0;box-shadow:0 5px 9px #0008}
body .star2-visual[data-basic-cosmetic="true"] .star2-board-field{background:var(--cos-board) center/100% 100% no-repeat;border:0;box-shadow:0 5px 9px #0008;transform:rotateX(25deg)}
body .star2-visual[data-basic-cosmetic="true"] .star2-board-field::before{display:none}
body .star2-visual[data-basic-cosmetic="true"] .star2-preview-die{background:var(--cos-dice) center/100% 100% no-repeat;border:0;box-shadow:0 5px 9px #0008;border-radius:10%;backdrop-filter:none}
body .star2-visual[data-basic-cosmetic="true"] .star2-preview-pip{background:var(--cos-pip);box-shadow:0 1px 1px #000}
body .star2-visual[data-basic-cosmetic="true"] .star2-number-slab{background:var(--cos-number) center/contain no-repeat;border:0;border-radius:0;box-shadow:none}
body .star2-visual[data-basic-cosmetic="true"] .star2-number-slab::before{display:none}
body .star2-visual[data-basic-cosmetic="true"] .star2-number-value{color:#fff4dc;-webkit-text-stroke:0;text-shadow:0 1px 2px #000;font-size:clamp(26px,21cqw,60px)}
body .star2-visual[data-basic-cosmetic="true"] .star2-nameplate-plate{background:var(--cos-plate) center/100% 100% no-repeat;border:0;box-shadow:0 5px 9px #0008;border-radius:0;display:flex;justify-content:center}
body .star2-visual[data-basic-cosmetic="true"] .star2-nameplate-plate::before{display:none}
body .star2-visual[data-basic-cosmetic="true"] .star2-nameplate-player{color:#fff2d9}

/* A licensed six-glyph font has normalized ink bounds and ascent/descent.
   Live text remains selectable/accessibly numeric; ornaments stay independent. */
@font-face{font-family:"Tenmei Numerals";src:url('assets/fonts/tenmei-numerals.woff') format('woff');font-weight:700;font-style:normal;font-display:block;ascent-override:73.2421875%;descent-override:0%;line-gap-override:0%;unicode-range:U+0020-0036}
body .face-row.face-row .face-num.face-num,body .star2-visual.star2-visual .star2-number-value.star2-number-value{font-family:"Tenmei Numerals",serif!important;font-weight:700!important;line-height:1!important;letter-spacing:0!important;text-indent:0!important;padding:0!important;font-synthesis:none}
body .face-row .face-num{display:grid;place-items:center;box-sizing:border-box}
/* The base is material even without an equipped skin. Theme tint only fills empty faces. */
body .face-row{--board-surface:#233947;--board-edge:#718591}
body .face-row:has(>.board-skin-layer[data-cosmetic-theme="sun"]){--board-surface:#593820;--board-edge:#b89957}
body .face-row:has(>.board-skin-layer[data-cosmetic-theme="earth"]){--board-surface:#293f32;--board-edge:#77987b}
body .face-row:has(>.board-skin-layer[data-cosmetic-theme="moon"]){--board-surface:#303b57;--board-edge:#9ba8c9}
body .face-row:has(>.board-skin-layer[data-cosmetic-theme="destiny"]){--board-surface:#34304c;--board-edge:#b2a27f}
body .face-row:has(>.board-skin-layer[data-cosmetic-theme="snow_white"]){--board-surface:#53606a;--board-edge:#c8ced1}
body .face-row:has(>.board-skin-layer[data-cosmetic-theme="silver_gray"]){--board-surface:#3d4753;--board-edge:#9ca8b4}
body .face-row:has(>.board-skin-layer[data-cosmetic-theme="cherry_pink"]){--board-surface:#57404b;--board-edge:#bd95a5}
body .face-row:has(>.board-skin-layer[data-cosmetic-theme="aster_purple"]){--board-surface:#40334e;--board-edge:#a491bb}
body .face-row:has(>.board-skin-layer[data-cosmetic-theme="azure"]){--board-surface:#263f52;--board-edge:#7baabd}
body .face-row>.face-tile.empty{background:linear-gradient(145deg,color-mix(in srgb,var(--board-surface) 88%,transparent),color-mix(in srgb,var(--board-surface) 72%,#07141ce8));border:1px solid var(--board-edge);box-shadow:inset 0 1px #ffffff1c,inset 0 0 0 3px #07131b55,inset 0 -14px 25px #0309124d,0 2px 5px #0005}
body .face-row>.face-tile.empty:before{content:"";position:absolute;inset:4px;pointer-events:none;border:1px solid color-mix(in srgb,var(--board-edge) 24%,transparent);background:repeating-linear-gradient(125deg,transparent 0 7px,#ffffff04 7px 8px);border-radius:2px}

/* PR98: object dimensions are independent of the thumbnail's available height.
   Every role keeps its native silhouette in results, collection and reveal. */
body .star2-visual{container-type:size}
body .star2-visual .star2-stage{padding:0;perspective:none}
body .star2-visual .star2-sleeve-card{width:min(76cqw,56cqh);height:auto;aspect-ratio:2/3;border-radius:5%;transform:none}
body .star2-visual .star2-board-field{width:min(92cqw,240cqh);height:auto;aspect-ratio:3/1;border-radius:4%;transform:none!important}
body .star2-visual .star2-preview-die{width:min(68cqw,72cqh);height:auto;aspect-ratio:1;transform:rotate(-8deg)}
body .star2-visual .star2-number-slab{width:min(76cqw,80cqh);height:auto;aspect-ratio:1}
body .star2-visual .star2-number-value{font-size:min(44cqw,46cqh)!important}
body .star2-visual .star2-nameplate-plate{width:min(94cqw,400cqh);height:auto;aspect-ratio:5/1;min-height:0}
body .star2-visual .star2-nameplate-player{font-size:min(9cqw,30cqh);line-height:1.15;white-space:nowrap;text-shadow:0 1px 2px #000}
body .star2-visual .star2-die-shadow{display:none}
body .star2-visual[data-basic-cosmetic="true"] .star2-nameplate-plate{filter:drop-shadow(0 2px 2px #0009);box-shadow:none}
body .combatant[data-cosmetic-slot][data-cosmetic-rarity="1"]{filter:drop-shadow(0 1px 2px #0005)}
/* Moonlight carries the motif; live pips and numerals stay dark and legible. */
body .star2-visual[data-star2-theme="moon"]{background:radial-gradient(ellipse at 50% 40%,#5a513e,#242638 78%);border-color:#cbbc91}
body .star2-visual[data-star2-theme="moon"] .star2-number-value,
body .face-row[data-number-theme="moon"][data-number-rarity="2"] .face-num{color:#30283b!important;text-shadow:0 1px 1px #fffcdd!important;-webkit-text-stroke:0!important}
body .star2-visual[data-star2-theme="moon"] .star2-nameplate-plate{aspect-ratio:1300/240;box-shadow:none;filter:drop-shadow(0 2px 2px #0008)}
body .star2-visual[data-star2-theme="moon"] .star2-nameplate-player{padding-left:12%;color:#fff2d9;text-shadow:0 1px 2px #000}
body .dice-cube-wrap[data-cosmetic-theme="moon"][data-cosmetic-rarity="2"] .cube-face{box-shadow:inset 0 0 0 1px #fff1bd99!important}
body .dice-cube-wrap[data-cosmetic-theme="moon"][data-cosmetic-rarity="2"] .pip.on{box-shadow:0 1px 1px #fff3bc!important}
body .face-row:has(>.board-skin-layer[data-cosmetic-theme="moon"]){--board-surface:#514d3e;--board-edge:#cabc8a}

/* Original ★2 art canvases retain their own ratio, including transparent margins. */
body .star2-visual:is([data-star2-theme="earth"],[data-star2-theme="destiny"]) .star2-nameplate-plate{aspect-ratio:1300/520;background-size:contain;background-position:center}
body .star2-visual[data-star2-theme="sun"] .star2-nameplate-plate{aspect-ratio:1302/434;background-size:contain;background-position:center}
/* The older short-list height must not stretch the newly proportioned plates. */
body :is(.gacha-catalog-screen .gacha-item-card,.cosmetic-collection) .star2-visual .star2-nameplate-plate{width:min(94cqw,400cqh);height:auto;max-height:none;padding:0}
body :is(.gacha-catalog-screen .gacha-item-card,.cosmetic-collection) .star2-visual .star2-nameplate-player{font-size:min(9cqw,30cqh);margin-left:0;padding:0 0 0 12%;background:none}
/* Keep the moon medallion round while the live Battle name row grows wider.
   The old artwork's 220–274% crop does not apply to this trimmed composition. */
body.battle-screen-active .game-app .combatant[data-cosmetic-theme="moon"] .desktop-nameplate{container-type:size}
body.battle-screen-active .game-app .combatant[data-cosmetic-theme="moon"] .nameplate-art{background:none!important;border:0 solid transparent;border-image:var(--cos-plate) 0 140 0 300 fill / 0 58.333cqh 0 125cqh / 0 stretch;opacity:1}

/* Equipment quality pilot: independently authored art, existing item identities. */
:is([data-cosmetic-theme="cherry_pink"],[data-number-theme="cherry_pink"],[data-star2-theme="cherry_pink"]){--cos-sleeve:url('assets/cosmetics/pilot/cherry_pink-sleeve.webp');--cos-board:url('assets/cosmetics/pilot/cherry_pink-board.webp');--cos-number:url('assets/cosmetics/pilot/cherry_pink-number.webp');--cos-plate:url('assets/cosmetics/pilot/cherry_pink-nameplate.webp');--pilot-plate-left:330;--pilot-plate-right:165;--pilot-left-width:165.0cqh;--pilot-right-width:82.5cqh;}
:is([data-cosmetic-theme="destiny"],[data-number-theme="destiny"],[data-star2-theme="destiny"]){--cos-sleeve:url('assets/cosmetics/pilot/destiny-sleeve.webp');--cos-board:url('assets/cosmetics/pilot/destiny-board.webp');--cos-number:url('assets/cosmetics/pilot/destiny-number.webp');--cos-plate:url('assets/cosmetics/pilot/destiny-nameplate.webp');--pilot-plate-left:198;--pilot-plate-right:99;--pilot-left-width:99.0cqh;--pilot-right-width:49.5cqh;}
:is([data-cosmetic-theme="silver_gray"],[data-number-theme="silver_gray"],[data-star2-theme="silver_gray"]){--cos-sleeve:url('assets/cosmetics/pilot/silver_gray-sleeve.webp');--cos-board:url('assets/cosmetics/pilot/silver_gray-board.webp');--cos-number:url('assets/cosmetics/pilot/silver_gray-number.webp');--cos-plate:url('assets/cosmetics/pilot/silver_gray-nameplate.webp');--pilot-plate-left:435;--pilot-plate-right:217;--pilot-left-width:217.5cqh;--pilot-right-width:108.5cqh;}
/* Current game uses scenic background halves, not the retired 6:1 row skin.
   Proportional cover preserves composition and the existing six-face layout. */
body .battle-background-half:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]){background-size:cover;background-position:center}
body .deck-stack:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"])[data-cosmetic-slot] .deck-card{background:var(--cos-sleeve) center/cover no-repeat!important}
body .face-row:is([data-number-theme="cherry_pink"],[data-number-theme="destiny"],[data-number-theme="silver_gray"]) .face-num{background:var(--cos-number) center/contain no-repeat!important;color:#fff!important;text-shadow:0 1px 2px #000!important;-webkit-text-stroke:0!important}
body .star2-visual:is([data-star2-theme="cherry_pink"],[data-star2-theme="destiny"],[data-star2-theme="silver_gray"]) .star2-number-value{color:#fff!important;text-shadow:0 1px 2px #000!important}
/* Fixed-proportion illustrated endcaps; only the quiet central strip extends. */
body.battle-screen-active .game-app .combatant:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]) .desktop-nameplate{container-type:size;background:transparent}
body.battle-screen-active .game-app .combatant:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]) .nameplate-art{background:none!important;border:0 solid transparent;border-image:var(--cos-plate) 0 var(--pilot-plate-right) 0 var(--pilot-plate-left) fill / 0 var(--pilot-right-width) 0 var(--pilot-left-width) / 0 stretch;opacity:1!important}
body .preview-nameplate:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]){container-type:size;position:relative;background:none!important;padding-left:20%!important}
body .preview-nameplate:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"])::before{content:""!important;position:absolute;inset:0;transform:none;max-height:none;height:100%;aspect-ratio:auto;background:none!important;border:0 solid transparent;border-image:var(--cos-plate) 0 var(--pilot-plate-right) 0 var(--pilot-plate-left) fill / 0 var(--pilot-right-width) 0 var(--pilot-left-width) / 0 stretch;pointer-events:none}
body .preview-nameplate:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"])>*{position:relative;z-index:1}
body .star2-visual:is([data-star2-theme="cherry_pink"],[data-star2-theme="destiny"],[data-star2-theme="silver_gray"]) .star2-nameplate-plate{aspect-ratio:5/1;background:var(--cos-plate) center/contain no-repeat!important;box-shadow:none!important}
body .star2-visual:is([data-star2-theme="cherry_pink"],[data-star2-theme="destiny"],[data-star2-theme="silver_gray"]) .star2-nameplate-player{padding-left:10%!important;color:#fff}
/* Keep live identity text clear of illustrated endcaps at actual HUD size. */
body.battle-screen-active .game-app .combatant:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]) .nameplate-content{padding-left:calc(var(--pilot-left-width) + 4px)!important;padding-right:calc(var(--pilot-right-width) + 4px)!important}
body .cosmetic-preview-stage .preview-nameplate:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]){height:36px!important;padding:2px 15% 2px 32%!important;gap:4px}
body .cosmetic-preview-stage .preview-nameplate:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]) .preview-identity strong{font-size:12px}
body .cosmetic-preview-stage .preview-nameplate:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]) .life{font-size:20px}
/* Canvas contains the full real mesh, not a photographed cube used as six textures. */
.equipment-mesh-canvas{position:absolute;inset:-50%;width:200%;height:200%;pointer-events:none;transform:none!important;filter:none!important}
body .equipment-mesh-ready>.dice-cube,body .equipment-mesh-ready>.star2-preview-pips,body .equipment-mesh-ready>.star2-die-emblem{visibility:hidden!important}
body .star2-visual:is([data-star2-theme="cherry_pink"],[data-star2-theme="destiny"],[data-star2-theme="silver_gray"]) .star2-preview-die.equipment-mesh-ready{background:none!important;border:0!important;box-shadow:none!important;transform:none!important;overflow:visible}
body .dice-cube-wrap.equipment-mesh-ready{transform-style:flat!important;perspective:none!important}
/* Asset/WebGL failure keeps the original six live faces and authoritative result. */
body .dice-cube-wrap:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]) .cube-face{background:linear-gradient(135deg,#263443,#101823)!important;border:1px solid #b9adb0!important}
body .dice-cube-wrap[data-cosmetic-theme="cherry_pink"] .cube-face{background:linear-gradient(135deg,#7a293b,#360e20)!important}
body .dice-cube-wrap[data-cosmetic-theme="silver_gray"] .cube-face{background:linear-gradient(135deg,#9eacb4,#687985)!important}
body .dice-cube-wrap[data-cosmetic-theme="silver_gray"] .pip.on{background:#131920!important}

/* Pilot board revision: hard split follows the rendered divider, never viewport %. */
body .game-app[data-equipment-board-layout] .battle-background-half{mask-image:none!important;opacity:.82}
body .game-app[data-equipment-board-layout] .opponent-background{top:0;bottom:calc(100% - var(--equipment-divider,50%))}
body .game-app[data-equipment-board-layout] .self-background{top:var(--equipment-divider,50%);bottom:0}
body .game-app[data-equipment-board-layout] .battle-background::after{background:linear-gradient(90deg,#07141a08,#07141a24 22% 78%,#07141a08)}
/* Only the equipped pilot side's EMPTY face glass is made more transparent.
   Occupied card art, result strips, names and numbers keep their contrast. */
body .game-app .face-row[data-equipment-board-readable]>.face-tile.empty{background:linear-gradient(145deg,#10212c38,#07141c52);box-shadow:inset 0 0 0 3px #07131b22,0 2px 5px #0003}
body .game-app .face-row[data-equipment-board-readable]>.face-tile.empty::before{background:none;border-color:#ffffff12}
body .game-app .face-row[data-equipment-board-readable]>.face-tile.empty .face-result{color:#f2f5f7;text-shadow:0 1px 3px #000}

/* Pilot self-board: reveal the scenic floor beneath the hand and energy area.
   Local text backings keep contrast; cards, button borders and hit areas stay intact. */
body .game-app:has(.player-face-row[data-equipment-board-readable]) .play-dock .hand-zone{background:#10222b12;box-shadow:none}
body .game-app:has(.player-face-row[data-equipment-board-readable]) .mana-zone-main{background:#10222b24;box-shadow:inset 0 0 0 1px #b59c6544}
body .game-app:has(.player-face-row[data-equipment-board-readable]) :is(.hand-head>div,.hand-head>strong,.mana-zone-main .zone-label b,.mana-compact-core>div,.empty-hand){background:#07141ae6;border-radius:2px;text-shadow:0 1px 2px #000}
body .game-app:has(.player-face-row[data-equipment-board-readable]) .mana-compact-core>div{padding:0 3px}
body .game-app:has(.player-face-row[data-equipment-board-readable]) .skip-mana{background:#132832e6}

/* Pilot sleeve separation: a local dark mat and a distinct count rail. */
body .game-app .deck-stack:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]){background:#07141af2;border-radius:4px;box-shadow:0 0 0 3px #07141ae6,0 0 0 4px #a8bbc488}
body .game-app .deck-stack:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]) .deck-card{box-shadow:inset 0 0 0 1px #d3e0e8aa,0 2px 6px #000e!important}
body .game-app .player-deck:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]){margin-bottom:16px!important}
body .game-app .player-deck:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]) .deck-count{left:0;right:0;bottom:-16px;height:18px;min-width:0;padding:0 3px;border-radius:3px;font-size:11px;background:#07141a;display:flex;align-items:center;justify-content:center;gap:4px;box-shadow:0 1px 4px #000c}
body .game-app .player-deck:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"]) .deck-count::before{content:'DECK';font-size:7px;letter-spacing:.02em;color:#d7e0e6}
body .game-app .player-deck:is([data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="destiny"],[data-cosmetic-theme="silver_gray"])::after{content:none!important}

/* Approved local quieting: filter only a same-image scenic layer, never UI.
   The clip is measured from actual card/energy/hand/deck boxes by board-layout.
   One pseudo layer per equipped half reuses the decoded image; no new assets,
   DOM nodes, persistent will-change surfaces or viewport-wide dark panel. */
@supports (clip-path:path("M0 0H1V1H0Z")){
body.battle-screen-active .game-app>.battle-background>.battle-background-half[data-equipment-quiet]::after{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:inherit;
 filter:blur(9px) saturate(.7) contrast(.75) brightness(.5);
 clip-path:var(--equipment-quiet-clip);
}
}

/* Full45 saved-asset connection, newly authored against live e4b027be.
   Art/models are byte-identical to Library v6; this is not a recovered old CSS. */
:is([data-cosmetic-theme="snow_white"],[data-number-theme="snow_white"],[data-star2-theme="snow_white"]){--cos-sleeve:url('assets/cosmetics/pilot/snow_white-sleeve.webp');--cos-board:url('assets/cosmetics/pilot/snow_white-board.webp');--cos-dice:url('assets/cosmetics/pilot/snow_white-dice.webp');--cos-number:url('assets/cosmetics/pilot/snow_white-number.webp');--cos-plate:url('assets/cosmetics/pilot/snow_white-nameplate.webp');--pilot-plate-left:230;--pilot-plate-right:150;--pilot-left-width:115cqh;--pilot-right-width:75cqh;--equipment-resin-body:#ebf1f3;--equipment-resin-edge:#abbbc6;--cos-pip:#183442;}
:is([data-cosmetic-theme="silver_gray"],[data-number-theme="silver_gray"],[data-star2-theme="silver_gray"]){--cos-sleeve:url('assets/cosmetics/pilot/silver_gray-sleeve.webp');--cos-board:url('assets/cosmetics/pilot/silver_gray-board.webp');--cos-dice:url('assets/cosmetics/pilot/silver_gray-dice.webp');--cos-number:url('assets/cosmetics/pilot/silver_gray-number.webp');--cos-plate:url('assets/cosmetics/pilot/silver_gray-nameplate.webp');--pilot-plate-left:435;--pilot-plate-right:217;--pilot-left-width:217.5cqh;--pilot-right-width:108.5cqh;--equipment-resin-body:#b8bbc3;--equipment-resin-edge:#6c7b87;--cos-pip:#183442;}
:is([data-cosmetic-theme="cherry_pink"],[data-number-theme="cherry_pink"],[data-star2-theme="cherry_pink"]){--cos-sleeve:url('assets/cosmetics/pilot/cherry_pink-sleeve.webp');--cos-board:url('assets/cosmetics/pilot/cherry_pink-board.webp');--cos-dice:url('assets/cosmetics/pilot/cherry_pink-dice.webp');--cos-number:url('assets/cosmetics/pilot/cherry_pink-number.webp');--cos-plate:url('assets/cosmetics/pilot/cherry_pink-nameplate.webp');--pilot-plate-left:330;--pilot-plate-right:165;--pilot-left-width:165cqh;--pilot-right-width:82.5cqh;--equipment-resin-body:#ffa4ba;--equipment-resin-edge:#ae748d;--cos-pip:#183442;}
:is([data-cosmetic-theme="aster_purple"],[data-number-theme="aster_purple"],[data-star2-theme="aster_purple"]){--cos-sleeve:url('assets/cosmetics/pilot/aster_purple-sleeve.webp');--cos-board:url('assets/cosmetics/pilot/aster_purple-board.webp');--cos-dice:url('assets/cosmetics/pilot/aster_purple-dice.webp');--cos-number:url('assets/cosmetics/pilot/aster_purple-number.webp');--cos-plate:url('assets/cosmetics/pilot/aster_purple-nameplate.webp');--pilot-plate-left:240;--pilot-plate-right:150;--pilot-left-width:120cqh;--pilot-right-width:75cqh;--equipment-resin-body:#c29cdf;--equipment-resin-edge:#78629a;--cos-pip:#183442;}
:is([data-cosmetic-theme="azure"],[data-number-theme="azure"],[data-star2-theme="azure"]){--cos-sleeve:url('assets/cosmetics/pilot/azure-sleeve.webp');--cos-board:url('assets/cosmetics/pilot/azure-board.webp');--cos-dice:url('assets/cosmetics/pilot/azure-dice.webp');--cos-number:url('assets/cosmetics/pilot/azure-number.webp');--cos-plate:url('assets/cosmetics/pilot/azure-nameplate.webp');--pilot-plate-left:230;--pilot-plate-right:150;--pilot-left-width:115cqh;--pilot-right-width:75cqh;--equipment-resin-body:#7dcadd;--equipment-resin-edge:#3e8ca6;--cos-pip:#183442;}
:is([data-cosmetic-theme="sun"],[data-number-theme="sun"],[data-star2-theme="sun"]){--cos-sleeve:url('assets/cosmetics/pilot/sun-sleeve.webp');--cos-board:url('assets/cosmetics/pilot/sun-board.webp');--cos-dice:url('assets/cosmetics/pilot/sun-dice.webp');--cos-number:url('assets/cosmetics/pilot/sun-number.webp');--cos-plate:url('assets/cosmetics/pilot/sun-nameplate.webp');--pilot-plate-left:180;--pilot-plate-right:180;--pilot-left-width:90cqh;--pilot-right-width:90cqh;}
:is([data-cosmetic-theme="earth"],[data-number-theme="earth"],[data-star2-theme="earth"]){--cos-sleeve:url('assets/cosmetics/pilot/earth-sleeve.webp');--cos-board:url('assets/cosmetics/pilot/earth-board.webp');--cos-dice:url('assets/cosmetics/pilot/earth-dice.webp');--cos-number:url('assets/cosmetics/pilot/earth-number.webp');--cos-plate:url('assets/cosmetics/pilot/earth-nameplate.webp');--pilot-plate-left:200;--pilot-plate-right:200;--pilot-left-width:100cqh;--pilot-right-width:100cqh;}
:is([data-cosmetic-theme="moon"],[data-number-theme="moon"],[data-star2-theme="moon"]){--cos-sleeve:url('assets/cosmetics/pilot/moon-sleeve.webp');--cos-board:url('assets/cosmetics/pilot/moon-board.webp');--cos-dice:url('assets/cosmetics/pilot/moon-dice.webp');--cos-number:url('assets/cosmetics/pilot/moon-number.webp');--cos-plate:url('assets/cosmetics/pilot/moon-nameplate.webp');--pilot-plate-left:125;--pilot-plate-right:125;--pilot-left-width:62.5cqh;--pilot-right-width:62.5cqh;}
:is([data-cosmetic-theme="destiny"],[data-number-theme="destiny"],[data-star2-theme="destiny"]){--cos-sleeve:url('assets/cosmetics/pilot/destiny-sleeve.webp');--cos-board:url('assets/cosmetics/pilot/destiny-board.webp');--cos-dice:url('assets/cosmetics/pilot/destiny-dice.webp');--cos-number:url('assets/cosmetics/pilot/destiny-number.webp');--cos-plate:url('assets/cosmetics/pilot/destiny-nameplate.webp');--pilot-plate-left:198;--pilot-plate-right:99;--pilot-left-width:99cqh;--pilot-right-width:49.5cqh;}
body .battle-background-half:is([data-cosmetic-theme="snow_white"],[data-cosmetic-theme="silver_gray"],[data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="aster_purple"],[data-cosmetic-theme="azure"],[data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"]){background-size:cover;background-position:center}
body .deck-stack:is([data-cosmetic-theme="snow_white"],[data-cosmetic-theme="silver_gray"],[data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="aster_purple"],[data-cosmetic-theme="azure"],[data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])[data-cosmetic-slot] .deck-card{background:var(--cos-sleeve) center/cover no-repeat!important}
body .face-row:is([data-number-theme="snow_white"],[data-number-theme="silver_gray"],[data-number-theme="cherry_pink"],[data-number-theme="aster_purple"],[data-number-theme="azure"],[data-number-theme="sun"],[data-number-theme="earth"],[data-number-theme="moon"],[data-number-theme="destiny"]) .face-num{background:var(--cos-number) center/contain no-repeat!important;color:#fff4dc!important;text-shadow:0 1px 2px #000!important;-webkit-text-stroke:0!important}
body .star2-visual:is([data-star2-theme="snow_white"],[data-star2-theme="silver_gray"],[data-star2-theme="cherry_pink"],[data-star2-theme="aster_purple"],[data-star2-theme="azure"],[data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-number-value{color:#fff4dc!important;text-shadow:0 1px 2px #000!important;-webkit-text-stroke:0!important}
body .star2-visual:is([data-star2-theme="snow_white"],[data-star2-theme="silver_gray"],[data-star2-theme="cherry_pink"],[data-star2-theme="aster_purple"],[data-star2-theme="azure"],[data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-nameplate-plate{aspect-ratio:5/1;background:var(--cos-plate) center/contain no-repeat!important;box-shadow:none!important}
body .star2-visual[data-star2-theme="silver_gray"] .star2-nameplate-plate{aspect-ratio:7/1}
body .star2-visual:is([data-star2-theme="snow_white"],[data-star2-theme="silver_gray"],[data-star2-theme="cherry_pink"],[data-star2-theme="aster_purple"],[data-star2-theme="azure"],[data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]) .star2-preview-die.equipment-mesh-ready{background:none!important;border:0!important;box-shadow:none!important;transform:none!important;overflow:visible}
body .dice-cube-wrap:is([data-cosmetic-theme="snow_white"],[data-cosmetic-theme="silver_gray"],[data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="aster_purple"],[data-cosmetic-theme="azure"])[data-cosmetic-rarity="1"] .cube-face{background:linear-gradient(135deg,color-mix(in srgb,var(--equipment-resin-body),white 14%),var(--equipment-resin-body))!important;border:2px solid var(--equipment-resin-edge)!important;border-radius:8%!important;box-shadow:none!important}
body .dice-cube-wrap:is([data-cosmetic-theme="snow_white"],[data-cosmetic-theme="silver_gray"],[data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="aster_purple"],[data-cosmetic-theme="azure"])[data-cosmetic-rarity="1"] .pip.on{background:#183442!important;box-shadow:0 1px 1px #0004!important}
body .face-row:has(>.board-skin-layer[data-cosmetic-theme="moon"]){--board-surface:#303b57;--board-edge:#c2bea5}
body .preview-nameplate:is([data-cosmetic-theme="snow_white"],[data-cosmetic-theme="silver_gray"],[data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="aster_purple"],[data-cosmetic-theme="azure"],[data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"]){container-type:size;position:relative;background:none!important;padding-left:20%!important}
body .preview-nameplate:is([data-cosmetic-theme="snow_white"],[data-cosmetic-theme="silver_gray"],[data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="aster_purple"],[data-cosmetic-theme="azure"],[data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])::before{content:""!important;position:absolute;inset:0;transform:none;max-height:none;height:100%;aspect-ratio:auto;background:none!important;border:0 solid transparent;border-image:var(--cos-plate) 0 var(--pilot-plate-right) 0 var(--pilot-plate-left) fill / 0 var(--pilot-right-width) 0 var(--pilot-left-width) / 0 stretch;pointer-events:none}
body .preview-nameplate:is([data-cosmetic-theme="snow_white"],[data-cosmetic-theme="silver_gray"],[data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="aster_purple"],[data-cosmetic-theme="azure"],[data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"])>*{position:relative;z-index:1}
body .cosmetic-preview-stage .preview-nameplate:is([data-cosmetic-theme="snow_white"],[data-cosmetic-theme="silver_gray"],[data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="aster_purple"],[data-cosmetic-theme="azure"],[data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"]){height:36px!important;padding:2px 15% 2px 32%!important;gap:4px}
body .cosmetic-preview-stage .preview-nameplate:is([data-cosmetic-theme="snow_white"],[data-cosmetic-theme="silver_gray"],[data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="aster_purple"],[data-cosmetic-theme="azure"],[data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"]) .preview-identity strong{font-size:12px}
body .cosmetic-preview-stage .preview-nameplate:is([data-cosmetic-theme="snow_white"],[data-cosmetic-theme="silver_gray"],[data-cosmetic-theme="cherry_pink"],[data-cosmetic-theme="aster_purple"],[data-cosmetic-theme="azure"],[data-cosmetic-theme="sun"],[data-cosmetic-theme="earth"],[data-cosmetic-theme="moon"],[data-cosmetic-theme="destiny"]) .life{font-size:20px}

/* The saved Moon number tile is a dark night material. Match the old rarity
   selector's specificity so its former dark numeral cannot win the cascade. */
body .face-row[data-number-theme="moon"][data-number-rarity="2"] .face-num{color:#fff4dc!important;text-shadow:0 1px 2px #000!important;-webkit-text-stroke:0!important}

/* The scenic quiet layer already protects energy text. Remove the separate
   colored chips, keeping text shadow, numerical colors and hit geometry. */
body.battle-screen-active .game-app:has(.player-face-row[data-equipment-board-readable]) :is(.mana-zone-main .zone-label b,.mana-compact-core>div){background:none;border-radius:0;box-shadow:none}
/* Moonlight warmth only: no asset replacement, brightness boost or shader edit.
   The C reflection and real3D mesh stay unchanged; this mild post-color pass is
   restricted to Moon art/preview surfaces, never the whole game viewport. */
body.battle-screen-active .game-app .battle-background-half[data-cosmetic-theme="moon"],
body .deck-stack[data-cosmetic-theme="moon"] .deck-card,
body .face-row[data-number-theme="moon"] .face-num,
body .dice-cube-wrap[data-cosmetic-theme="moon"] .equipment-mesh-canvas,
body .star2-visual[data-star2-theme="moon"] :is(.star2-sleeve-card,.star2-board-field,.star2-number-slab,.star2-nameplate-plate,.equipment-mesh-canvas),
body .preview-nameplate[data-cosmetic-theme="moon"]::before{filter:sepia(.12) saturate(1.025)!important}

/* ★2 number tiles only: two shallow machined edges around the saved artwork.
   No size/font/ink/image changes; the open center never covers the numeral.
   Static highlights, no animation, filter, backdrop or additional image fetch. */
body .face-row[data-number-rarity="2"][data-number-theme="sun"],body .star2-visual[data-star2-theme="sun"]:not([data-basic-cosmetic="true"]){--number-rim-light:#f7d99d;--number-rim-mid:#b79048;--number-rim-dark:#594223;--number-rim-radius:50%}
body .face-row[data-number-rarity="2"][data-number-theme="earth"],body .star2-visual[data-star2-theme="earth"]:not([data-basic-cosmetic="true"]){--number-rim-light:#d4d3a7;--number-rim-mid:#8b9970;--number-rim-dark:#364936;--number-rim-radius:18%}
body .face-row[data-number-rarity="2"][data-number-theme="moon"],body .star2-visual[data-star2-theme="moon"]:not([data-basic-cosmetic="true"]){--number-rim-light:#f3ebcf;--number-rim-mid:#b9b8a5;--number-rim-dark:#555d62;--number-rim-radius:50%}
body .face-row[data-number-rarity="2"][data-number-theme="destiny"],body .star2-visual[data-star2-theme="destiny"]:not([data-basic-cosmetic="true"]){--number-rim-light:#ece2c6;--number-rim-mid:#a8a18b;--number-rim-dark:#424b59;--number-rim-radius:50%}
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]):not([data-basic-cosmetic="true"]) .star2-number-slab{overflow:visible}
body .face-row[data-number-rarity="2"]:is([data-number-theme="sun"],[data-number-theme="earth"],[data-number-theme="moon"],[data-number-theme="destiny"]) .face-num::before,
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]):not([data-basic-cosmetic="true"]) .star2-number-slab::before{content:"";display:block!important;position:absolute;inset:-5%;padding:3.5%;box-sizing:border-box;border:0;border-radius:var(--number-rim-radius);background:conic-gradient(from 35deg,var(--number-rim-dark),var(--number-rim-mid) 16%,var(--number-rim-light) 26%,var(--number-rim-mid) 38%,var(--number-rim-dark) 55%,var(--number-rim-light) 76%,var(--number-rim-mid) 87%,var(--number-rim-dark));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.88;pointer-events:none}
body .face-row[data-number-rarity="2"]:is([data-number-theme="sun"],[data-number-theme="earth"],[data-number-theme="moon"],[data-number-theme="destiny"]) .face-num::after,
body .star2-visual:is([data-star2-theme="sun"],[data-star2-theme="earth"],[data-star2-theme="moon"],[data-star2-theme="destiny"]):not([data-basic-cosmetic="true"]) .star2-number-slab::after{content:"";display:block!important;position:absolute;inset:0;border:1px solid;border-color:var(--number-rim-light) var(--number-rim-dark) var(--number-rim-dark) var(--number-rim-mid);border-radius:var(--number-rim-radius);box-shadow:0 1px 1px #0009;opacity:.62;pointer-events:none}

/* Quiet surfaces follow the equipped BOARD, independently for each seat.
   Text, numbered dice, occupied card art and input targets are unchanged. */
body.battle-screen-active .game-app:has(.self-background[data-cosmetic-theme="snow_white"]){ --equipment-surface:#454c4c; }
body.battle-screen-active .game-app .face-row:has(>.board-skin-layer[data-cosmetic-theme="snow_white"]){ --equipment-surface:#454c4c; }
body.battle-screen-active .game-app:has(.self-background[data-cosmetic-theme="silver_gray"]){ --equipment-surface:#333d47; }
body.battle-screen-active .game-app .face-row:has(>.board-skin-layer[data-cosmetic-theme="silver_gray"]){ --equipment-surface:#333d47; }
body.battle-screen-active .game-app:has(.self-background[data-cosmetic-theme="cherry_pink"]){ --equipment-surface:#49353e; }
body.battle-screen-active .game-app .face-row:has(>.board-skin-layer[data-cosmetic-theme="cherry_pink"]){ --equipment-surface:#49353e; }
body.battle-screen-active .game-app:has(.self-background[data-cosmetic-theme="aster_purple"]){ --equipment-surface:#3c324a; }
body.battle-screen-active .game-app .face-row:has(>.board-skin-layer[data-cosmetic-theme="aster_purple"]){ --equipment-surface:#3c324a; }
body.battle-screen-active .game-app:has(.self-background[data-cosmetic-theme="azure"]){ --equipment-surface:#293f50; }
body.battle-screen-active .game-app .face-row:has(>.board-skin-layer[data-cosmetic-theme="azure"]){ --equipment-surface:#293f50; }
body.battle-screen-active .game-app:has(.self-background[data-cosmetic-theme="sun"]){ --equipment-surface:#503727; }
body.battle-screen-active .game-app .face-row:has(>.board-skin-layer[data-cosmetic-theme="sun"]){ --equipment-surface:#503727; }
body.battle-screen-active .game-app:has(.self-background[data-cosmetic-theme="earth"]){ --equipment-surface:#2d4235; }
body.battle-screen-active .game-app .face-row:has(>.board-skin-layer[data-cosmetic-theme="earth"]){ --equipment-surface:#2d4235; }
body.battle-screen-active .game-app:has(.self-background[data-cosmetic-theme="moon"]){ --equipment-surface:#464437; }
body.battle-screen-active .game-app .face-row:has(>.board-skin-layer[data-cosmetic-theme="moon"]){ --equipment-surface:#464437; }
body.battle-screen-active .game-app:has(.self-background[data-cosmetic-theme="destiny"]){ --equipment-surface:#363848; }
body.battle-screen-active .game-app .face-row:has(>.board-skin-layer[data-cosmetic-theme="destiny"]){ --equipment-surface:#363848; }
body.battle-screen-active .game-app .face-row[data-equipment-board-readable]>.face-tile.empty{background:linear-gradient(145deg,color-mix(in srgb,var(--equipment-surface) 78%,#071015),color-mix(in srgb,var(--equipment-surface) 52%,#071015))}
body.battle-screen-active .game-app:has(.player-face-row[data-equipment-board-readable]) .play-dock :is(.hand-zone,.mana-zone-main,.right-dock){background:linear-gradient(180deg,color-mix(in srgb,var(--equipment-surface) 48%,#071015),color-mix(in srgb,var(--equipment-surface) 32%,#071015))}

/* Remove only the two faint decorative rings. Keep the field border. */
body.battle-screen-active .game-app .game-shell::before{background:none}

/* Approved tonal cosmetic finish: image-only, Destiny ★2 only.
   No artwork regeneration, layout/quiet-zone changes, or foreground filtering. */
body .game-app[data-equipment-board-layout] .battle-background-half[data-cosmetic-theme="destiny"][data-cosmetic-rarity="2"],
body .board-skin-layer[data-cosmetic-theme="destiny"][data-cosmetic-rarity="2"],
body .cosmetic-battle-backdrop[data-cosmetic-theme="destiny"][data-cosmetic-rarity="2"],
body .star2-visual[data-star2-theme="destiny"] .star2-board-field {
  filter: saturate(.96) contrast(.90) brightness(.92);
}
