/* DEXATRON Beanieverse Mini App — lightweight presentation-only UI motion.
 * Menus and submenus only. PvP battle / DexRun and Maze gameplay untouched.
 * TEST branch. No JS state, economy, combat or navigation dependencies.
 */
:root{--dexa-ui-green:#7cff38;--dexa-ui-cyan:#77dfff}
.dexa-ui-enhanced{--dexa-ui-edge:rgba(109,238,205,.38)}
.dexa-ui-enhanced a,.dexa-ui-enhanced button{-webkit-tap-highlight-color:transparent}
.dexa-ui-enhanced .dexa-ui-appear{animation:dexaUiPanelIn .28s cubic-bezier(.22,.61,.36,1) both}
@keyframes dexaUiPanelIn{from{opacity:.84;filter:brightness(.93)}to{opacity:1;filter:brightness(1)}}
@keyframes dexaUiBalance{0%,100%{filter:brightness(1);text-shadow:none}35%{filter:brightness(1.32);text-shadow:0 0 14px #aaff82,0 0 25px #51e7d4}}
.dexa-ui-enhanced .dexa-ui-balance-pulse{animation:dexaUiBalance .6s ease-out both}
@keyframes dexaUiFeedback{0%{box-shadow:0 0 0 0 rgba(124,255,56,.36)}65%{box-shadow:0 0 0 6px rgba(124,255,56,.08)}100%{box-shadow:0 0 0 9px transparent}}
.dexa-ui-enhanced button.dexa-ui-activated,.dexa-ui-enhanced a.dexa-ui-activated{animation:dexaUiFeedback .3s ease-out}
.dexa-ui-enhanced :is(a,button,[role="button"]):focus-visible{outline:2px solid #b6ff8e;outline-offset:3px}
/* A subtle travelling green/cyan glow rather than continuously repainted particles. */
body.dexa-ui-enhanced[data-dexa-page="hub"] .hero{isolation:isolate}
body.dexa-ui-enhanced[data-dexa-page="hub"] .hero:after{content:"";position:absolute;inset:0;border-radius:inherit;
 pointer-events:none;z-index:-1;background:linear-gradient(114deg,transparent 32%,rgba(121,250,245,.075) 48%,transparent 60%);
 background-size:200% 100%;animation:dexaUiSheen 13s ease-in-out infinite alternate}
@keyframes dexaUiSheen{from{background-position:0% center}to{background-position:100% center}}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#dashboard .stat,#missions .mission,#shop .shopitem,#inventory .panelbox,#achievements .panelbox,#battleboard .board){
 transition:border-color .17s ease,box-shadow .17s ease;will-change:auto}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#dashboard .stat,#missions .mission,#shop .shopitem):focus-within{
 border-color:#88f5c1;box-shadow:0 0 18px rgba(101,236,192,.14),inset 0 1px #ffffff18}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(.shopfilter,.filter,.quicklinks a,.btn,.claim,.buy){transition:filter .16s ease,border-color .16s ease,box-shadow .16s ease}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(.shopfilter,.filter,.btn,.quicklinks a):active{filter:brightness(1.25)}
/* Wiki: character intel and tabs look like the same Beanieverse product. */
body.dexa-ui-enhanced[data-dexa-page="wiki"]{background:linear-gradient(rgba(3,10,18,.85),rgba(2,8,13,.96)),url('/assets/dextron_arena_bg.webp?v=20261124-load-r1') center/cover fixed}
body.dexa-ui-enhanced[data-dexa-page="wiki"] .hero{border-color:#4bafa2;background:
 linear-gradient(90deg,rgba(6,22,30,.97),rgba(8,32,38,.86)),
 url('/assets/beanies/pfp/Gear.webp?v=20261124-load-r1') right center/auto 100% no-repeat;
 box-shadow:inset 0 1px #a0fff122,0 15px 35px #0009}
body.dexa-ui-enhanced[data-dexa-page="wiki"] :is(.panel,.card){background:linear-gradient(140deg,#112a31,#091b23);
 border-color:#356874;box-shadow:inset 0 1px #a7f8fa11,0 8px 22px #0006}
body.dexa-ui-enhanced[data-dexa-page="wiki"] :is(.fighter-tile,.tabs button,.filters button,.card.selected){
 border-color:#639f91;box-shadow:inset 0 0 0 1px #86ffc013}
/* Tournament: golden-amber championship chrome; retain every action/status. */
body.dexa-ui-enhanced[data-dexa-page="tournament"]{background:linear-gradient(rgba(3,9,16,.86),rgba(2,7,14,.96)),url('/assets/dextron_arena_bg.webp?v=20261124-load-r1') center/cover fixed}
body.dexa-ui-enhanced[data-dexa-page="tournament"] .top{padding:19px 12px;border:1px solid #725e35;
 border-radius:18px;background:linear-gradient(105deg,rgba(20,22,23,.94),rgba(24,27,20,.84));
 box-shadow:0 12px 27px #0008}
body.dexa-ui-enhanced[data-dexa-page="tournament"] .top h1{color:#ffe5a2;text-shadow:0 0 24px #f6ac4242}
body.dexa-ui-enhanced[data-dexa-page="tournament"] :is(.card,.round){border-color:#6b6346;
 background:linear-gradient(140deg,#19252a,#0a181e);box-shadow:0 10px 23px #0008,inset 0 1px #fff2}
body.dexa-ui-enhanced[data-dexa-page="tournament"] .bean{border-color:#426a71;background:#0c2328}
body.dexa-ui-enhanced[data-dexa-page="tournament"] .bean.on{border-color:#ffd27b;box-shadow:0 0 16px #ffb75748}
/* Clan wars: scorecards/squad selectors get faction-like metallic framing. */
body.dexa-ui-enhanced[data-dexa-page="clan"]{background:linear-gradient(rgba(2,10,17,.85),rgba(3,8,14,.97)),url('/assets/dextron_arena_bg.webp?v=20261124-load-r1') center/cover fixed}
body.dexa-ui-enhanced[data-dexa-page="clan"] .top{background:linear-gradient(110deg,#0d2930,#101e20);
 padding:17px;border-radius:17px;border:1px solid #3d8685}
body.dexa-ui-enhanced[data-dexa-page="clan"] :is(.card,.squad,.bean){border-color:#356770;
 background:linear-gradient(145deg,#11272e,#091a22);box-shadow:0 9px 22px #0008}
body.dexa-ui-enhanced[data-dexa-page="clan"] :is(.bean.on,.mode.on){border-color:#9eff85;
 box-shadow:0 0 16px #8fff6538}
/* Casino outer menus only — preserve casino felt, cards and wager behaviour. */
body.dexa-ui-enhanced[data-dexa-page="casino"]{background:linear-gradient(rgba(4,15,23,.92),rgba(2,10,15,.97)),url('/assets/dextron_arena_bg.webp?v=20261124-load-r1') center/cover fixed}
body.dexa-ui-enhanced[data-dexa-page="casino"] h1{text-shadow:0 0 20px #92ff6040}
body.dexa-ui-enhanced[data-dexa-page="casino"] .box{border:1px solid #386774;
 background:linear-gradient(135deg,rgba(17,40,45,.94),rgba(6,22,31,.97));
 box-shadow:inset 0 1px #fff1,0 11px 24px #0008}
body.dexa-ui-enhanced[data-dexa-page="casino"] :is(button,select,input){border-color:#4e8278}
/* PvP selector/loadout/results only: NEVER alter #battle, #arena, VFX or health bars. */
body.dexa-ui-enhanced[data-dexa-page="pvp"] :is(#pick,#wait,#soloSetup,#lockin,#result){
 background:linear-gradient(145deg,rgba(12,35,44,.97),rgba(5,18,27,.98));
 border-color:#3b8089;box-shadow:0 14px 36px #000b,inset 0 1px #b7fff514}
body.dexa-ui-enhanced[data-dexa-page="pvp"] :is(#pick,#soloSetup,#lockin) :is(.featured-fighter,.card-slot,.lock-flow,.single-fighter){
 border-color:rgba(101,226,222,.38)}
/* DEXRUN selector/store/leaderboard overlays only; canvas and controller excluded. */
body.dexa-ui-enhanced[data-dexa-page="dexrun"] #overlay :is(.dexrun-panel,.level,.shopitem){
 border-color:rgba(111,227,215,.38);box-shadow:inset 0 1px #fff2,0 10px 27px #0009}
/* Maze intro/completion screens only; never affect the canvas, joystick or HUD. */
body.dexa-ui-enhanced[data-dexa-page="maze"] :is(#intro,#result) .card{border-color:#4c9c91;
 box-shadow:0 15px 36px #000b,inset 0 1px #baffed18}
/* Small persistent SFX switch on Hub only; distinct from existing music control. */
#dexaUiSfxToggle{position:fixed;right:10px;bottom:max(54px,calc(env(safe-area-inset-bottom) + 54px));
 z-index:99998;border:1px solid #57a688;background:rgba(6,25,29,.94);color:#bbffe4;
 border-radius:999px;min-height:34px;padding:8px 12px;box-shadow:0 4px 16px #000a;
 font:850 10px/1 system-ui,sans-serif;letter-spacing:.04em;cursor:pointer}
#dexaUiSfxToggle[aria-pressed="false"]{border-color:#526267;color:#a2b1b5}
@media(prefers-reduced-motion:reduce){
 body.dexa-ui-enhanced .dexa-ui-appear,body.dexa-ui-enhanced .dexa-ui-activated,
 body.dexa-ui-enhanced .dexa-ui-balance-pulse{animation:none!important}
 body.dexa-ui-enhanced[data-dexa-page="hub"] .hero:after{animation:none}
 body.dexa-ui-enhanced *{scroll-behavior:auto!important}
}


/* ===== BEANBOT TEST · UNIFIED MINI-APP MENUS · 2026-11-13 =====
 * All changes below are presentational and scoped to known menu surfaces.
 * Never restyle active #battle / #arena, DexRun canvas/HUD/controls, maze
 * canvas/joystick, payout logic, shop actions, or combat effects.
 * The Hub homepage's cyan/green Beanieverse artwork is the visual reference.
 */
body.dexa-ui-enhanced{
  --dex-menu-ink:#eefdff;
  --dex-menu-muted:#a9cbd0;
  --dex-menu-edge:rgba(110,225,222,.40);
  --dex-menu-bg:linear-gradient(145deg,rgba(12,35,44,.96),rgba(4,16,25,.98));
  --dex-menu-glow:0 13px 34px rgba(0,0,0,.40),inset 0 1px rgba(226,255,255,.085);
}
body.dexa-ui-enhanced .beaniverse-global-nav{
  border-color:rgba(255,255,255,.14)!important;
  background:#07090c!important;
  box-shadow:0 9px 28px rgba(0,0,0,.4)!important;
}
body.dexa-ui-enhanced .beaniverse-global-nav :is(button,a):focus-visible{
  outline:2px solid #abff81;outline-offset:3px;
}
/* Hub: every section header inherits the homepage's panel framing. */
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#dashboard,#dexid,#games,#missions,#shop,#battleboard,#champions,#community){
  scroll-margin-top:112px;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] .section-head{
  position:relative;isolation:isolate;overflow:hidden;align-items:center;
  min-height:86px;margin:0 0 13px;padding:17px 21px;
  border:1px solid var(--dex-menu-edge);border-radius:19px;
  background:radial-gradient(ellipse at 95% 20%,rgba(56,200,183,.13),transparent 55%),var(--dex-menu-bg);
  box-shadow:var(--dex-menu-glow);
}
body.dexa-ui-enhanced[data-dexa-page="hub"] .section-head:before{
  content:"";position:absolute;left:0;top:13px;bottom:13px;width:3px;
  background:linear-gradient(#a9ff71,#4ee7d6);box-shadow:0 0 13px #74ffc960;
  border-radius:0 4px 4px 0;pointer-events:none;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] .section-head>div{position:relative;z-index:1}
body.dexa-ui-enhanced[data-dexa-page="hub"] .section-head h2{
  font-size:clamp(19px,3.6vw,24px);letter-spacing:.015em;color:#f3ffff;
  text-shadow:0 2px 13px rgba(0,0,0,.7);
}
body.dexa-ui-enhanced[data-dexa-page="hub"] .section-head p{
  max-width:650px;margin-top:6px;font-size:12px;line-height:1.5;color:#b7d4d9;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dashboard>.section-head{
  background:linear-gradient(90deg,rgba(7,25,36,.99),rgba(6,25,34,.90) 75%,rgba(6,25,34,.56)),
    url("/assets/beanies/pfp/Dexatron.webp?v=20261124-load-r1") right -10px center/auto 155px no-repeat;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid>.section-head{
  background:linear-gradient(90deg,rgba(7,25,36,.99),rgba(7,25,36,.84) 72%,rgba(7,25,36,.40)),
    url("/assets/beanies/pfp/Dexatron.webp?v=20261124-load-r1") right 10px center/auto 145px no-repeat;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #games>.section-head{
  background:linear-gradient(90deg,rgba(7,25,36,.99),rgba(7,25,36,.89) 73%,rgba(7,25,36,.40)),
    url("/assets/beanies/pfp/Blaze.webp?v=20261124-load-r1") right -4px center/auto 151px no-repeat;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #battleboard>.section-head,
body.dexa-ui-enhanced[data-dexa-page="hub"] #champions>.section-head{
  background:radial-gradient(ellipse at 85% 5%,rgba(255,207,111,.16),transparent 65%),var(--dex-menu-bg);
}
/* Account controls use the same illuminated navigation language as the hero. */
body.dexa-ui-enhanced[data-dexa-page="hub"] #dashboard .account-tools{
  gap:9px!important;padding:11px;border:1px solid rgba(112,220,216,.28);
  border-radius:16px;background:rgba(6,23,31,.78);margin:0 0 14px!important;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#dashboard .account-tools a,#dashboard .quicklinks a){
  border-radius:11px;min-height:43px;display:inline-flex;align-items:center;justify-content:center;
  border-color:rgba(127,222,204,.42);background:linear-gradient(135deg,#12383e,#0a252c);
  color:#eafff7;box-shadow:inset 0 1px #e1ffff10;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dashboard .account-tools .btn:not(.secondary){
  background:linear-gradient(120deg,#a8ff6b,#52e6a2);color:#072115;border-color:#b0ff91;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dashboard .profile-strip .stat{
  border-color:rgba(104,203,210,.33);border-radius:17px;
  background:radial-gradient(circle at 100% 0,rgba(82,219,210,.095),transparent 66%),var(--dex-menu-bg);
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dashboard .profile-picture-editor{
  border-radius:17px;padding:15px;gap:11px;box-shadow:var(--dex-menu-glow);
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dashboard .profile-picture-editor button{
  min-height:44px;border-radius:11px;
}
/* DexID: same panel hierarchy, readable fields and finger-sized actions. */
body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid .id-panel{
  background:radial-gradient(ellipse at 95% 2%,rgba(39,161,174,.12),transparent 55%),var(--dex-menu-bg);
  border-color:var(--dex-menu-edge);border-radius:20px;box-shadow:var(--dex-menu-glow);
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid .id-head{
  padding:4px 0 16px;border-bottom-color:rgba(112,225,213,.30);
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid .id-field,
body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid .id-action{
  min-width:0;background:linear-gradient(145deg,rgba(15,45,51,.92),rgba(6,24,33,.96));
  border-color:rgba(114,208,207,.32);border-radius:15px;box-shadow:inset 0 1px #eeffff0d;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid .id-action{
  padding:16px;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid .id-action strong{
  display:block;color:#effffc;font-size:15px;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid .id-field small{
  color:#a3d1d7;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid .id-row :is(button,.btn){
  min-height:45px;border-radius:11px;line-height:1.25;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid :is(input,.id-recovery input){
  min-height:45px;border-radius:11px;background:#071923;
  border:1px solid rgba(123,221,217,.52);color:#f4ffff;max-width:100%;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid .id-recovery{
  border-radius:14px;background:#0a2530;border-color:#437b7f;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid :is(button,.id-recovery summary):focus-visible{
  outline:2px solid #b6ff86;outline-offset:2px;
}
/* Accordion headers and inner rows echo the homepage game cards. */
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#missions,#shop,#inventory) .hub-accordion{
  border-color:var(--dex-menu-edge);
  background:radial-gradient(ellipse at 92% 8%,rgba(77,195,182,.12),transparent 62%),var(--dex-menu-bg);
  box-shadow:var(--dex-menu-glow);border-radius:19px;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#missions,#shop,#inventory) .hub-accordion-toggle{
  min-height:82px;background:linear-gradient(95deg,rgba(10,36,44,.96),rgba(6,20,29,.85));
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#missions,#shop,#inventory) .hub-accordion-title{
  color:#f3ffff;font-size:clamp(17px,3vw,22px);text-shadow:0 2px 8px #0009;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#missions,#shop,#inventory) .hub-accordion-subtitle{
  color:#b5d6d8;line-height:1.5;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#missions,#shop,#inventory) .hub-accordion-toggle:after{
  background:rgba(17,58,61,.95);border-color:#6fc9ac;color:#b9ff9e;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #missions .mission,
body.dexa-ui-enhanced[data-dexa-page="hub"] #shop .shopitem{
  border-radius:15px;box-shadow:inset 0 1px #eeffff12,0 8px 22px #0005;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#missions .claim,#shop .buy):not(:disabled){
  min-height:43px;border-radius:10px;color:#092219;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #shop .shopfilter{
  min-height:42px;border-radius:11px;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #inventory .listrow,
body.dexa-ui-enhanced[data-dexa-page="hub"] #achievements .listrow{
  min-height:53px;border-radius:12px;border-color:rgba(111,206,201,.27);
  background:linear-gradient(115deg,rgba(15,47,50,.95),rgba(5,22,30,.95));
  color:#e9fbff;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #achievements{
  border-color:var(--dex-menu-edge);border-radius:19px;box-shadow:var(--dex-menu-glow);
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #achievements .section-head{
  border:0;box-shadow:none;min-height:0;padding:0 0 13px;margin:0 0 12px;
  border-bottom:1px solid rgba(112,225,213,.25);border-radius:0;background:none;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #achievements .section-head:before{display:none}
/* Battleboard + Champions deliberately share the same ranked presentation. */
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#battleboard,#champions) .board{
  border-radius:19px;border-color:var(--dex-menu-edge);background:var(--dex-menu-bg);
  box-shadow:var(--dex-menu-glow);
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#battleboard,#champions) .filters{
  gap:9px;padding:13px;border-bottom-color:rgba(105,194,203,.24);overscroll-behavior-x:contain;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#battleboard,#champions) .filter{
  min-height:43px;padding:10px 13px;border-color:#41747c;
  background:#112d37;color:#d0eef3;border-radius:11px;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#battleboard,#champions) .filter.on{
  color:#082319;background:linear-gradient(115deg,#a4ff6b,#55e7ae);border-color:#baff8e;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#battleboard,#champions) .row{
  min-height:56px;border-bottom-color:rgba(111,208,208,.14);
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#battleboard,#champions) .row:nth-child(1){
  background:linear-gradient(90deg,rgba(255,211,119,.14),transparent);box-shadow:inset 3px 0 #ffe093;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#battleboard,#champions) .row:nth-child(2){
  background:linear-gradient(90deg,rgba(181,223,231,.12),transparent);box-shadow:inset 3px 0 #b6e3f4;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#battleboard,#champions) .row:nth-child(3){
  background:linear-gradient(90deg,rgba(233,169,115,.12),transparent);box-shadow:inset 3px 0 #e7af86;
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #publicNote{
  border-style:solid;border-color:rgba(106,194,203,.42);
  border-radius:16px;padding:15px;background:linear-gradient(120deg,#0f2931,#081923);
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #community .card{
  border-color:rgba(101,211,205,.37);background:var(--dex-menu-bg);
  min-height:169px;box-shadow:var(--dex-menu-glow);
}
body.dexa-ui-enhanced[data-dexa-page="hub"] #community .card .go{
  color:#b0ff8e;
}
/* Shared outward-facing screens: only menus, cards, tabs and selection states. */
body.dexa-ui-enhanced[data-dexa-page="wiki"] main>.hero,
body.dexa-ui-enhanced[data-dexa-page="tournament"] main>.top,
body.dexa-ui-enhanced[data-dexa-page="clan"] main>.top{
  position:relative;overflow:hidden;border:1px solid var(--dex-menu-edge);
  border-radius:22px;background-color:#091e27;
  box-shadow:var(--dex-menu-glow);padding:23px 19px;
}
body.dexa-ui-enhanced[data-dexa-page="wiki"] main>.hero h1,
body.dexa-ui-enhanced[data-dexa-page="tournament"] main>.top h1,
body.dexa-ui-enhanced[data-dexa-page="clan"] main>.top h1{
  color:#adff7d;line-height:1.05;text-shadow:0 0 19px rgba(124,255,56,.18);
}
body.dexa-ui-enhanced[data-dexa-page="wiki"] :is(.tabs button,.filters button,.fighter-buttons button){
  min-height:44px;border-color:#548e8c;background:#0d2b34;color:#e3faff;
  border-radius:11px;font-weight:800;
}
body.dexa-ui-enhanced[data-dexa-page="wiki"] :is(.tabs button,.filters button,.fighter-buttons button):is(.active,[aria-pressed="true"]){
  background:#07090c;color:#f4fbff;
  border-color:color-mix(in srgb,var(--pick-tint,#ffe18b) 82%,white);
  box-shadow:0 0 16px color-mix(in srgb,var(--pick-tint,#ffe18b) 40%,transparent);
}
body.dexa-ui-enhanced[data-dexa-page="wiki"] :is(.panel,.card){
  border-radius:17px;border-color:rgba(111,213,213,.35);box-shadow:var(--dex-menu-glow);
}
body.dexa-ui-enhanced[data-dexa-page="tournament"] :is(.card,.round),
body.dexa-ui-enhanced[data-dexa-page="clan"] :is(.card,.squad,.bean){
  border-radius:17px;border-color:rgba(111,213,213,.35);
  background:var(--dex-menu-bg);box-shadow:var(--dex-menu-glow);
}
body.dexa-ui-enhanced[data-dexa-page="tournament"] :is(.go,.alt),
body.dexa-ui-enhanced[data-dexa-page="clan"] :is(.go,.alt,.mode){
  min-height:46px;border-radius:12px;
}
body.dexa-ui-enhanced[data-dexa-page="tournament"] .go:not(:disabled),
body.dexa-ui-enhanced[data-dexa-page="clan"] .go:not(:disabled){
  background:#07090c;color:#ffe18b;border:1px solid #ffe18b;
  box-shadow:0 0 16px rgba(255,225,139,.28);
}
body.dexa-ui-enhanced[data-dexa-page="tournament"] .alt,
body.dexa-ui-enhanced[data-dexa-page="clan"] .alt{
  border:1px solid #518b83;background:#102e38;color:#e0fbfd;
}
body.dexa-ui-enhanced[data-dexa-page="clan"] .mode.on{
  background:#07090c;color:#f4fbff;
  border-color:color-mix(in srgb,var(--pick-tint,#ffe18b) 82%,white);
  box-shadow:0 0 16px color-mix(in srgb,var(--pick-tint,#ffe18b) 40%,transparent);
}
/* PvP menu/squad/loadout/results and existing HUD selector dialog ONLY. */
body.dexa-ui-enhanced[data-dexa-page="pvp"] :is(#pick,#wait,#soloSetup,#lockin,#result){
  border:1px solid var(--dex-menu-edge);border-radius:21px;
  background:radial-gradient(circle at 90% 0,rgba(71,208,207,.13),transparent 57%),var(--dex-menu-bg);
  box-shadow:var(--dex-menu-glow);
}
body.dexa-ui-enhanced[data-dexa-page="pvp"] :is(#pick,#wait,#soloSetup,#lockin,#result) :is(.go,.share){
  min-height:47px;border-radius:12px;
}
body.dexa-ui-enhanced[data-dexa-page="pvp"] :is(#pick,#wait,#soloSetup,#lockin,#result) .go:not(:disabled){
  border:1px solid #ffe18b;background:#07090c;color:#ffe18b;
  box-shadow:0 0 16px rgba(255,225,139,.28);
}
body.dexa-ui-enhanced[data-dexa-page="pvp"] :is(#pick,#wait,#soloSetup,#lockin,#result) .share{
  background:#102b36;color:#d8f9ff;border:1px solid #4c858a;
}
body.dexa-ui-enhanced[data-dexa-page="pvp"] #hudDialog .hud-dialog-box{
  border-color:rgba(110,223,213,.5);border-radius:21px;
  background:var(--dex-menu-bg);box-shadow:var(--dex-menu-glow);
}
/* DexRun menu overlay only. Do not touch actual platformer/arena elements. */
body.dexa-ui-enhanced[data-dexa-page="dexrun"] #overlay>.card{
  border:1px solid rgba(255,255,255,.12);border-radius:23px;
  background:linear-gradient(180deg,#12161c,#07090c);
  box-shadow:0 24px 70px #000;
}
body.dexa-ui-enhanced[data-dexa-page="dexrun"] #overlay .dexrun-home-actions button,
body.dexa-ui-enhanced[data-dexa-page="dexrun"] #overlay :is(.dexrun-menu-link,.dexrun-nav-footer button){
  min-height:49px;border-radius:12px;border-color:rgba(255,255,255,.22);
  background:#07090c;color:#f4fbff;
}
body.dexa-ui-enhanced[data-dexa-page="dexrun"] #overlay .dexrun-home-actions button:first-child{
  background:#07090c;color:#ffe7d2;border-color:#ffb067;
  box-shadow:0 0 16px rgba(255,122,50,.32);
}
body.dexa-ui-enhanced[data-dexa-page="dexrun"] #overlay .dexrun-nav-footer .dexrun-menu-link{
  color:#ffe18b;border-color:#ffe18b;box-shadow:0 0 16px rgba(255,225,139,.24);
}
body.dexa-ui-enhanced[data-dexa-page="dexrun"] #overlay .level{
  border-radius:16px;
  border-color:color-mix(in srgb,var(--pick-tint,#ffe18b) 62%,#10141c);
  background:
    radial-gradient(circle at 50% 0%,color-mix(in srgb,var(--pick-tint,#ffe18b) 22%,transparent),transparent 58%),
    linear-gradient(168deg,#141820,#07090c);
}
body.dexa-ui-enhanced[data-dexa-page="dexrun"] #overlay .level button:not(:disabled){
  border-radius:11px;min-height:45px;background:#07090c;
  color:color-mix(in srgb,var(--pick-tint,#ffe18b) 38%,white);
  border:1px solid color-mix(in srgb,var(--pick-tint,#ffe18b) 82%,white);
  box-shadow:0 0 16px color-mix(in srgb,var(--pick-tint,#ffe18b) 42%,transparent);
}
body.dexa-ui-enhanced[data-dexa-page="dexrun"] #overlay .shopitem{
  border-color:color-mix(in srgb,var(--pick-tint,#ffe18b) 55%,#10141c);
  background:
    radial-gradient(circle at 50% 0%,color-mix(in srgb,var(--pick-tint,#ffe18b) 20%,transparent),transparent 58%),
    linear-gradient(168deg,#141820,#07090c);
}
/* Maze: intro and completion only; the live first-person view is unchanged. */
body.dexa-ui-enhanced[data-dexa-page="maze"] :is(#intro,#result)>.card{
  border-radius:23px;border-color:var(--dex-menu-edge);
  background:radial-gradient(ellipse at 88% 2%,rgba(66,191,204,.16),transparent 55%),var(--dex-menu-bg);
  box-shadow:var(--dex-menu-glow);
}
body.dexa-ui-enhanced[data-dexa-page="maze"] :is(#intro,#result) .rule{
  border-color:rgba(110,206,206,.37);background:rgba(9,34,43,.83);border-radius:13px;
}
body.dexa-ui-enhanced[data-dexa-page="maze"] :is(#intro,#result) button{
  min-height:45px;border-radius:12px;
}
/* Casino form and result surfaces — do not alter the card table or payouts. */
body.dexa-ui-enhanced[data-dexa-page="casino"]>h1{
  clear:none;max-width:100%;padding:25px 18px;border-radius:21px;
  border:1px solid var(--dex-menu-edge);
  background:radial-gradient(ellipse at 90% 5%,rgba(74,193,192,.15),transparent 65%),var(--dex-menu-bg);
  box-shadow:var(--dex-menu-glow);font-size:clamp(25px,5vw,38px);
  color:#afff84;
}
body.dexa-ui-enhanced[data-dexa-page="casino"] .box{
  border:1px solid var(--dex-menu-edge);border-radius:17px;
  background:var(--dex-menu-bg);box-shadow:var(--dex-menu-glow);
}
body.dexa-ui-enhanced[data-dexa-page="casino"] :is(input,select){
  max-width:100%;min-height:45px;background:#0b2831;border-color:#4f8d90;border-radius:11px;
}
body.dexa-ui-enhanced[data-dexa-page="casino"] #play:not(:disabled){
  min-height:46px;background:#07090c;color:#ffe18b;
  border:1px solid #ffe18b;border-radius:11px;font-weight:900;
  box-shadow:0 0 16px rgba(255,225,139,.28);
}
/* The menu system is always usable on touch devices and with reduced motion. */
@media(max-width:620px){
  body.dexa-ui-enhanced[data-dexa-page="hub"] .section-head{
    padding:14px 15px;min-height:74px;border-radius:16px;
  }
  body.dexa-ui-enhanced[data-dexa-page="hub"] .section-head>div{max-width:100%}
  body.dexa-ui-enhanced[data-dexa-page="hub"] .section-head p{font-size:12px}
  body.dexa-ui-enhanced[data-dexa-page="hub"] #dashboard .account-tools a{flex:1 1 170px}
  body.dexa-ui-enhanced[data-dexa-page="hub"] #dashboard .quicklinks a{padding:8px 11px}
  body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid .id-action{padding:13px}
  body.dexa-ui-enhanced[data-dexa-page="hub"] #dexid .id-row :is(button,.btn){flex:1 1 155px}
  body.dexa-ui-enhanced[data-dexa-page="hub"] :is(#missions,#shop,#inventory) .hub-accordion-toggle{min-height:72px}
  body.dexa-ui-enhanced[data-dexa-page="hub"] #community .card{min-height:145px}
  body.dexa-ui-enhanced[data-dexa-page="casino"]>h1{padding:18px 14px}
}
@media(prefers-reduced-motion:reduce){
  body.dexa-ui-enhanced .beaniverse-global-nav{transition:none!important}
}
