/* Monster Galaxy Smooth: the HTML Moga Dex (js/smooth-dex.js). Everything is laid out in the SWF's own
   760 x 660 units inside .dx-root, which is scaled to the Dex area, so it looks the same at every size. */
#dex-stage ruffle-player { display: block; position: relative; overflow: hidden; background: #000; }
.dx-root { position: absolute; left: 0; top: 0; width: 760px; height: 660px; transform-origin: 0 0; overflow: hidden;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.dx-root div, .dx-root svg, .dx-root img, .dx-root input { position: absolute; left: 0; top: 0; transform-origin: 0 0; margin: 0; }
.dx-root [hidden] { display: none !important; }
.dx-art { display: block; pointer-events: none; max-width: none; }
.dx-pic { display: block; pointer-events: none; overflow: visible; max-width: none; }
.dx-layer { z-index: 0; }
.dx-shade { z-index: 0; }
.dx-layer, .dx-holder, .dx-item, .dx-slot, .dx-row, .dx-cell, .dx-skill, .dx-token, .dx-bubble, .dx-hit, .dx-action { width: 0; height: 0; overflow: visible; }
.dx-btn, .dx-hit { cursor: pointer; }
.dx-off { pointer-events: none; cursor: default; }
/* a piece drawn in one colour (Flash ColorTransform.color) */
.dx-tint { pointer-events: none; -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat; }
/* Flash text fields (2 px gutter already taken off) */
.dx-text { pointer-events: none; white-space: pre; overflow: visible; text-rendering: geometricPrecision; }
.dx-text.dx-wrap { white-space: pre-wrap; overflow-wrap: break-word; }
.dx-tab { font-size: 12px; }
/* hit areas follow the art they hold */
.dx-hit > .dx-art, .dx-item > .dx-art, .dx-cell > .dx-art, .dx-token > .dx-art, .dx-skill > .dx-art, .dx-row > .dx-art { pointer-events: auto; }
.dx-hit.dx-off > .dx-art, .dx-cell.dx-off > .dx-art { pointer-events: none; }
/* art that is itself the button (team slot remove cross, scroll tracks): clickable unless hidden/off */
.dx-art.dx-btn { pointer-events: auto; }
.dx-art.dx-btn.dx-off { pointer-events: none; }
.dx-item { z-index: 1; }
.dx-item > .dx-holder { pointer-events: none; }
/* the grid's hover label */
.dx-bubble { z-index: 5; pointer-events: none; }
/* series tokens: white label, -20 deg, brown glow (DexHost.relabelToken) */
.dx-root .dx-token-label { width: 110px; transform: translate(-55px, -50%) rotate(-20deg); transform-origin: 55px 50%; text-align: center;
  color: #fff; font: 13px/1 "MG VAG", "VAG Rounded", Arial, sans-serif; white-space: pre; pointer-events: none;
  text-shadow: 0 0 1px #3b2410, 0 0 1.5px #3b2410, 0 0 1.5px #3b2410; }
.dx-root .dx-token-label.dx-two { font-size: 12px; line-height: 12px; }
.dx-arrow { overflow: visible; }
/* the dark cover behind the Moga card and the name dialog */
.dx-shade { width: 760px; height: 660px; background: rgba(0, 0, 0, .7); }
.dx-name-shade { background: rgba(0, 0, 0, .65); }
.dx-clip { overflow: hidden; }
.dx-barclip { overflow: hidden; }
.dx-knob { cursor: pointer; touch-action: none; }
.dx-knob > .dx-art { pointer-events: auto; }
.dx-skilldesc { white-space: pre-wrap; }
.dx-input { box-sizing: border-box; padding: 0; border: 0; outline: none; background: transparent;
  font-family: "MG VAG", "VAG Rounded", Arial, sans-serif; line-height: 1.2; -webkit-user-select: text; user-select: text; }

/* The Dex's own HTML extras (js/dex.js: the filter bar in the top strip, its panel, the item-count box) scale with
   the Dex exactly like the Dex art: every size in cqw of #dex-stage, with no px minimums (map.css has
   max(10px, …) floors, which made them oversized next to the Dex on a phone). 2px at 760 wide = .26cqw. */
#dex-stage .dex-filter{font-size:1.55cqw}
#dex-stage .dex-filter__search{height:2.9cqw;border-width:.26cqw}
#dex-stage .dex-filter__search svg{width:1.5cqw;min-width:0}
#dex-stage .dex-filter__search input{font-size:1.5cqw}
#dex-stage .dex-filter__toggle,#dex-stage .dex-filter__reset{height:2.9cqw;border-width:.26cqw;box-shadow:0 .26cqw 0 rgba(0,0,0,.4)}
#dex-stage .dex-filter__badge{min-width:1.9cqw;height:1.9cqw;font-size:1.25cqw}
#dex-stage .dex-filter__panel{width:44cqw;border-width:.26cqw;box-shadow:0 0 0 .26cqw #10284a,0 1.2cqw 3cqw rgba(0,0,0,.6);font-size:1.6cqw}
#dex-stage .dex-filter__label{font-size:1.4cqw}
#dex-stage .dex-filter__chip{border-width:.26cqw}
#dex-stage .dex-filter__chip[aria-pressed="true"],#dex-stage .dex-filter__reset-all{box-shadow:0 .26cqw 0 rgba(0,0,0,.35)}
#dex-stage .dex-filter__seg{border-width:.26cqw}
#dex-stage .dex-filter__seg button+button{border-left-width:.26cqw}
#dex-stage .dex-filter__panel select{border-width:.26cqw;font-size:1.5cqw}
#dex-stage .dex-filter__foot{border-top-width:.13cqw}
#dex-stage .dex-filter__reset-all{border-width:.26cqw}
#dex-use-count .dex-use-count__value{font-size:2.1cqw}
#dex-use-count button{font-size:1.1cqw}
