#boardgame-arena-section .arena-mode-head { position: relative; padding-top: 76px; }
.arena-custom-control { position: absolute; top: 0; left: 0; display: grid; border: 1px solid #a991c9; border-radius: 8px; overflow: hidden; z-index: 2; }
.arena-custom-control button { border: 0; background: #211c2e; color: #eee6ff; padding: 8px 12px; cursor: pointer; font: inherit; font-size: 11px; }
.arena-custom-control button + button { border-top: 1px solid #66547c; }
.arena-custom-control .is-on { background: #59417a; }
.arena-custom-dialog { box-sizing: border-box; width: min(860px, calc(100vw - 20px)); max-height: 92dvh; padding: 20px; border: 1px solid #a48ebc; border-radius: 8px; background: #15151c; color: #eeeef4; overflow: auto; font-family: inherit; }
.arena-custom-dialog::backdrop { background: #000b; }
.arena-custom-dialog * { box-sizing: border-box; letter-spacing: 0; }
.arena-custom-heading, .arena-custom-group header, .arena-custom-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.arena-custom-heading { position: relative; min-height: 40px; padding-right: 50px; }
.arena-custom-heading h2 { margin: 0; font-size: 22px; color: #eeeef4; }
.arena-custom-dialog button { font: inherit; cursor: pointer; color: inherit; }
.arena-custom-heading button, .arena-custom-dialog footer button { border: 1px solid #736480; border-radius: 6px; background: #292532; padding: 8px 16px; }
.arena-custom-heading > button[data-close] { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; }
.arena-custom-search { display: grid; gap: 6px; margin: 18px 0 10px; font-size: 13px; }
.arena-custom-search input { width: 100%; padding: 12px; background: #22222d; border: 1px solid #81708e; border-radius: 6px; color: white; font: inherit; }
.arena-custom-result-head { font-size: 12px; min-height: 28px; }
.arena-custom-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 124px; overflow: auto; align-content: start; border-block: 1px solid #494052; margin-bottom: 12px; }
.arena-custom-results button { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 5px; background: transparent; border: 1px solid transparent; text-align: left; }
.arena-custom-results button[aria-pressed="true"] { border-color: #dbb4ff; background: #403049; }
.arena-custom-results img { width: 38px; height: 38px; object-fit: contain; }
.arena-custom-results span { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.arena-custom-results small { display: block; color: #bcb6c5; }
.arena-custom-dialog button:disabled { opacity: .4; cursor: not-allowed; }
.arena-custom-empty { padding: 14px; grid-column: 1 / -1; }
.arena-custom-group { padding: 12px 0; border-bottom: 1px solid #494052; }
.arena-custom-group header { font-size: 13px; margin-bottom: 8px; }
.arena-custom-group header span { color: #e6b58f; }
.arena-custom-group header .is-valid { color: #91e0bb; }
.arena-custom-group p { margin: 6px 0 0; font-size: 11px; color: #c5bfce; }
.arena-custom-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.arena-custom-slot { position: relative; min-width: 0; }
.arena-custom-card { width: 100%; aspect-ratio: 360 / 500; position: relative; display: grid; place-items: center; padding: 0; border: 1px dashed #756580; border-radius: 6px; background: #20202a; overflow: hidden; }
.arena-custom-card.is-selected { outline: 2px solid #f0bcff; outline-offset: 1px; }
.arena-custom-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.arena-custom-name { position: absolute; top: 12%; left: 12%; width: 76%; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; text-align: center; }
.arena-custom-art { position: absolute; top: 25%; left: 20%; width: 60%; height: 42%; object-fit: contain; }
.arena-custom-code { position: absolute; bottom: 16%; width: 100%; text-align: center; font-size: 16px; font-weight: bold; }
.arena-custom-value { position: absolute; bottom: 11%; width: 100%; text-align: center; font-size: 10px; }
.arena-custom-remove { display: block; margin: 4px 0 0 auto; width: 30px; height: 28px; padding: 0; background: #381b2b; border: 1px solid #b87594; border-radius: 5px; }
.arena-custom-dialog footer { padding-top: 12px; text-align: right; }
.arena-custom-dialog footer p { text-align: left; font-size: 12px; line-height: 1.6; min-height: 38px; }
.arena-custom-dialog [data-save]:enabled { background: #275d4a; border-color: #8ee0b8; }
@media (max-width: 540px) {
 .arena-custom-dialog { padding: 12px; }
 .arena-custom-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .arena-custom-slots { gap: 4px; }
 .arena-custom-name { font-size: 6.5px; top: 8%; }
 .arena-custom-code { font-size: 6px; bottom: 16%; }
 .arena-custom-value { font-size: 6px; bottom: 9%; }
 .arena-custom-remove { width: 28px; height: 28px; }
}
