/* Shared raised cream, jade and gold controls, matching the home launch buttons. */
:root{--button-top:#fffdef;--button-bottom:#e1ecdc;--button-edge:#e5f0d8;--button-depth:#83a99e;--button-ink:#244f58}
:is(.collection-shell,.trial-shell,#dragon-supply-shop,.home-launch,.home-upgrade-grid) button{
 --button-top:#fffdef;--button-bottom:#e1ecdc;--button-edge:#e5f0d8;--button-depth:#83a99e;--button-ink:#244f58;
 box-sizing:border-box;border:2px solid var(--button-edge);border-radius:26px;
 background:linear-gradient(180deg,var(--button-top) 0%,var(--button-bottom) 100%);
 color:var(--button-ink);font-weight:700;
 box-shadow:inset 0 2px 0 #fffef3d9,inset 0 -3px 0 #538a7317,0 5px 0 var(--button-depth),0 9px 0 #537a7118;
 transition:transform .12s ease,box-shadow .12s ease,filter .12s ease;touch-action:manipulation;
}

:is(.collection-shell,.trial-shell,#dragon-supply-shop,.home-launch,.home-upgrade-grid) :is(button[aria-pressed="true"],.home-play,[data-action="equip"],[data-action="base"],[data-action="close"],[data-continue],[data-close],.supply-open,.supply-quantity button,.home-upgrade-grid button){
 --button-top:#b6e8cf;--button-bottom:#6ab9a4;--button-edge:#d6f4dd;--button-depth:#689f91;
}
:is(.collection-shell,.trial-shell,#dragon-supply-shop,.home-launch,.home-upgrade-grid) :is([data-action="trial"],[data-action="try-once"],[data-video],.supply-buy,.video){
 --button-top:#ffe8ac;--button-bottom:#f0c36a;--button-edge:#f4cf7c;--button-depth:#c7a65b;--button-ink:#674719;
}
.collection-showcase .collection-once{background:linear-gradient(var(--button-top),var(--button-bottom))!important;color:var(--button-ink)!important}
.collection-list nav{gap:10px;margin-bottom:18px}.collection-list nav button{min-height:44px}
.collection-shell>header button,.trial-shell [data-close],#dragon-supply-shop [data-close]{display:grid;place-items:center;border-radius:50%;width:48px;height:48px;min-height:44px;padding:0;flex-shrink:0;font-size:30px;line-height:1}
.collection-showcase .collection-base{color:var(--button-ink);min-height:44px;padding:10px 20px;margin-bottom:20px}
.collection-grid{gap:16px 12px;padding-bottom:14px}
.collection-grid .collection-card{border:3px solid #f7fce9;border-radius:28px;background:linear-gradient(145deg,#fffef3,#eaf2e3);box-shadow:inset 0 2px 0 #fff,0 5px 0 #afc9bb,0 9px 0 #628e7f16;padding:8px 8px 12px}
.collection-grid .collection-card.selected{border-color:#8ccbbb;background:linear-gradient(145deg,#eefbed,#cce9da);box-shadow:inset 0 2px 0 #ffffe9,0 5px 0 #6d9e90,0 9px 0 #628e7f22}
.collection-grid .honor-card{border-color:#e6c87b;background:linear-gradient(145deg,#fff8db,#efdbad)}
.collection-grid .honor-2{border-color:#b6cdd8;background:linear-gradient(145deg,#f6fdff,#dbe7ed)}
.collection-grid .honor-3{border-color:#dab295;background:linear-gradient(145deg,#fff0de,#ebd0ba)}
.collection-actions{gap:15px}.collection-actions button,.collection-once{min-height:50px}
.trial-shell footer{padding-bottom:22px}.trial-shell header{padding-bottom:16px}
.home-launch .home-play{--button-edge:#83c5ab;border-radius:36px}
.home-nav-art,.home-account>button[data-action="sound"]{box-shadow:inset 0 2px 0 #fffff1,0 5px 0 #85b3a5,0 9px 0 #537a7126}
.home-navigation button:active .home-nav-art,.home-daily-entry:active:not(:disabled) .home-nav-art,.home-account>button[data-action="sound"]:active{translate:0 3px;box-shadow:inset 0 1px 0 #fff8,0 2px 0 #85b3a5}
#dragon-supply-dock button{background:linear-gradient(#fffcec,#c7e5d9);border:2px solid #e5f0d8;box-shadow:inset 0 2px 0 #fff9,0 4px 0 #6e9f92}
#dragon-supply-dock button.active{background:linear-gradient(#ffe8ac,#f0c36a);border-color:#f4cf7c}
#dragon-bank{border:1px solid #9bcebb;border-radius:13px;background:linear-gradient(#609c90,#39726e);padding:6px 8px;color:#fff7df;box-shadow:inset 0 1px 0 #d3efce70,0 3px 0 #234f52;margin-bottom:3px}
:is(.collection-shell,.trial-shell,#dragon-supply-shop,.home-launch,.home-upgrade-grid) button:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 1px 0 #fff8,0 2px 0 var(--button-depth),0 4px 0 #537a7118}
:is(.collection-shell,.trial-shell,#dragon-supply-shop,.home-launch,.home-upgrade-grid) button:disabled{opacity:.65;filter:saturate(.65);cursor:default}
:is(.collection-shell,.trial-shell,#dragon-supply-shop,.home-launch,.home-upgrade-grid) button:focus-visible{outline:3px solid #e6b347;outline-offset:4px}
@media(hover:hover){:is(.collection-shell,.trial-shell,#dragon-supply-shop,.home-launch,.home-upgrade-grid) button:hover:not(:disabled){filter:brightness(1.045)}}
@media(max-width:600px){.collection-list nav{gap:7px;margin-bottom:15px}.collection-grid{gap:15px 10px}.collection-shell>header button,.trial-shell [data-close],#dragon-supply-shop [data-close]{width:44px;height:44px}.trial-shell footer{padding-bottom:18px}}
@media(prefers-reduced-motion:reduce){button{transition:none!important}}
/* Dialog balances use the same sculpted gem and raised counter as the home HUD. */
.collection-shell .dialog-wallet,#dragon-supply-shop .dialog-wallet{display:flex;align-items:center;justify-content:flex-end;flex:0 1 auto;gap:14px;min-width:148px;max-width:100%;height:42px;padding:0 0 0 18px;margin-left:auto;box-sizing:border-box;border:2px solid #59999b;border-radius:26px;background:linear-gradient(#96c5c2,#48838c);box-shadow:0 4px 0 #38687942,inset 0 2px 0 #d9f0dc78;color:#fff8de}
.dialog-wallet b{font-size:23px;font-weight:700;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:.025em}
.dialog-wallet svg{display:block;width:53px;height:53px;flex:none;margin-right:-5px;overflow:hidden}
#dragon-supply-shop .supply-video{--button-top:#ffe8ac;--button-bottom:#f0c36a;--button-edge:#f4cf7c;--button-depth:#c7a65b;--button-ink:#674719;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;min-height:46px;padding:8px;color:var(--button-ink);font-size:14px!important;box-shadow:inset 0 2px 0 #fff8,0 5px 0 var(--button-depth),0 8px 0 #537a7118}
#dragon-supply-shop .supply-video svg{width:28px;height:22px}
#supply-loot{z-index:45;pointer-events:none}
@media(max-width:760px){
 .collection-shell>header{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px 10px}.collection-shell>header>button{grid-column:2;grid-row:1/3;width:44px;height:44px}
 .collection-shell .dialog-wallet,#dragon-supply-shop .dialog-wallet{grid-column:1;grid-row:2;justify-self:start;width:max-content;min-width:126px;height:34px;gap:10px;padding-left:14px;margin:4px 0 7px}
 .dialog-wallet b{font-size:18px}.dialog-wallet svg{width:43px;height:43px}
 #dragon-supply-shop .supply-video{font-size:12px!important;gap:5px;min-height:44px}#dragon-supply-shop .supply-video svg{width:24px;height:20px}
}

/* Keep every per-skin showcase action aligned, regardless of its label. */
.collection-showcase .collection-actions button,
.collection-showcase .collection-once,
.collection-showcase .collection-base{display:flex;align-items:center;justify-content:center;width:100%;max-width:420px;height:54px;min-height:54px;box-sizing:border-box;margin-left:auto;margin-right:auto;padding:8px 12px;line-height:1.2}
@media(max-width:760px) and (orientation:portrait){.collection-showcase .collection-actions button,.collection-showcase .collection-once,.collection-showcase .collection-base{height:42px;min-height:42px;padding:5px 8px}}
@media(max-width:760px) and (orientation:portrait) and (max-height:700px){.collection-showcase .collection-actions button,.collection-showcase .collection-once,.collection-showcase .collection-base{height:38px;min-height:38px;padding:4px 7px}}

/* Shared dialog close treatment, mirrored by DragonNativeTheme.closeButton. */
.collection-shell>header button,.trial-shell [data-close],#dragon-supply-shop [data-close]{
 --button-top:#b6e8cf;--button-bottom:#6ab9a4;--button-edge:#d6f4dd;--button-depth:#689f91;
 border:2px solid var(--button-edge);background:linear-gradient(var(--button-top),var(--button-bottom));
 color:#244f58;outline:2px solid #e6b347;outline-offset:4px;font-weight:700;
}
.collection-shell>header button:focus-visible,.trial-shell [data-close]:focus-visible,#dragon-supply-shop [data-close]:focus-visible{outline:3px solid #e6b347;outline-offset:4px}
