[data-arena-backgrounds]{min-width:0;margin:16px 0;color:#e6dabd}
[data-arena-backgrounds] h3{font-family:inherit;font-weight:600;font-size:13px;line-height:1.4;margin:0 0 9px}
.arena-background-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.arena-background-choice{position:relative;display:flex;flex-direction:column;min-width:0;padding:4px;border:1px solid #cbaa5940;border-radius:10px;background:#131d20;color:#d4c8ac;font:inherit;cursor:pointer;overflow:hidden;touch-action:manipulation}
.arena-background-choice canvas{display:block;width:100%;height:48px;border-radius:6px;object-fit:cover}
.arena-background-choice span{font-size:11px;line-height:1.3;padding:6px 0 3px;white-space:nowrap}
.arena-background-choice[aria-pressed="true"]{border-color:#ffd367;box-shadow:0 0 0 1px #ffd367;color:#ffe3a0}
.arena-background-check{position:absolute;top:8px;right:8px;display:none;width:18px;height:18px;border-radius:50%;background:#ffd367;color:#182022;font:700 12px/18px sans-serif;text-align:center}
.arena-background-choice[aria-pressed="true"] .arena-background-check{display:block}
.arena-background-choice:focus-visible{outline:2px solid #fff4ca;outline-offset:3px}
.settings-modal [data-arena-backgrounds]{grid-column:1 / -1;padding-top:14px;border-top:1px solid #cbaa5930}
.settings-modal .arena-background-note{grid-column:1 / -1;margin:0 0 8px}
.settings-modal .arena-background-choice canvas{height:64px}
#pause-dialog [data-arena-backgrounds]{margin:20px 0}
.entry-skins[data-mode=guest] .entry-options{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(160px,1fr);grid-template-areas:'background play' 'background save';gap:8px 20px}
.entry-skins[data-mode=guest] .entry-options>[data-arena-backgrounds]{grid-area:background;margin:4px 0}
.entry-skins[data-mode=guest] #studio-editor-host{display:none}
.entry-skins[data-mode=guest] .entry-options>#play-form{grid-area:play}
.entry-skins[data-mode=guest] .entry-options>.entry-save{grid-area:save;font-size:11px;min-height:32px}
@media(max-width:480px){.entry-skins[data-mode=guest] .entry-options{grid-template-columns:1fr;grid-template-areas:'background' 'play' 'save';gap:6px}.entry-skins[data-mode=guest] .entry-options>[data-arena-backgrounds]{grid-row:auto}}
@media(max-width:480px){.settings-modal .arena-background-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.arena-background-grid{gap:6px}.arena-background-choice span{font-size:10px}}
#guest-selection-status{margin:4px 0 0;font-size:10px;line-height:1.35;color:#eed7a3;max-width:340px}
#guest-selection-retry{margin-top:5px;min-height:32px;border:1px solid #d6b77560;border-radius:6px;background:#30281d;color:#ffe0a0;font-size:11px;padding:5px 10px}
/* Guest cosmetics stay visible and scrollable on short landscape screens. */
.guest-custom-modal.panel-shell{width:min(980px,96vw)}
.guest-custom-layout{height:min(560px,calc(100dvh - 160px));grid-template-columns:minmax(0,.85fr) minmax(0,1fr)}
.guest-custom-options{justify-content:flex-start;min-height:0;gap:10px;overflow:clip}
.guest-custom-options h2{flex-shrink:0}
.guest-custom-tabs{display:flex;gap:5px;flex-shrink:0}
.guest-custom-tabs button{flex:1;min-width:0;min-height:40px;padding:6px;border:1px solid #d6b77544;border-radius:7px;background:#172022;color:#c8ba99;font-size:12px}
.guest-custom-tabs [aria-selected=true]{background:#b77c272b;border-color:#edb845;color:#ffe0a0}
#guest-skins-panel{display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:0}
#guest-accessories-panel{overflow:auto;min-height:0;overscroll-behavior:contain}
#guest-accessory-note,#guest-accessory-status{margin:0;font-size:11px;line-height:1.4;color:#c8ba99}
#guest-accessory-status{flex-shrink:0}
#guest-accessory-status:empty{display:none}
#guest-accessory-status[data-error=true]{color:#ffae94}
#guest-accessory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
#guest-accessory-grid .studio-choice{min-height:148px;padding:8px;gap:5px}
#guest-accessory-grid canvas{width:100%;height:105px;object-fit:contain}
#guest-accessory-grid strong{font-size:12px}
#guest-accessory-grid small{font-size:10px;color:#d8c39a}
#guest-accessory-grid [data-locked=true]{border-style:dashed}
#guest-accessory-account{min-height:36px;flex-shrink:0}
@media(max-height:540px){
 .guest-custom-layout{height:max(120px,calc(100dvh - 165px));gap:12px;grid-template-columns:minmax(0,.65fr) minmax(0,1fr)}
 .guest-custom-options{gap:5px}.guest-custom-options h2{font-size:20px}
 .guest-custom-tabs button{min-height:34px;font-size:11px}
 #guest-accessory-grid .studio-choice{min-height:130px}
 #guest-accessory-grid canvas{height:85px}
}
