/* Portal destinations that run in their own document. */
.sn-subnav:not([hidden]) {
  display:flex; flex-wrap:nowrap; overflow-x:auto; position:static; gap:4px;
  box-sizing:border-box; width:calc(100% - 32px); max-width:1080px;
  margin:14px auto 0; padding:6px; border:1px solid #34465c;
  border-radius:14px; background:#152337; font:600 15px system-ui,sans-serif;
}
.sn-subnav[hidden] {display:none!important}
.sn-subnav a {
  display:inline-flex; flex-shrink:0; white-space:nowrap; align-items:center; justify-content:center; gap:6px;
  box-sizing:border-box; min-height:48px; padding:5px 10px;
  border-radius:9px; color:#dce8f5; text-decoration:none;
}
.sn-subnav svg {width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sn-subnav a[aria-current] {background:#294263;color:#ffd6b0;box-shadow:inset 0 -3px #ffad68}
.sn-subnav a:is(:focus-visible,:hover) {outline:2px solid #8dcaff;outline-offset:-2px}
@media(max-width:700px) {
  .sn-subnav a {flex:0 0 auto;min-width:max(54px,calc((100% - 16px)/5));flex-direction:column;padding:4px 0;gap:3px;font-size:12px}
}
body[data-portal-section] {color-scheme:dark;background:#0c121c;color:#f2f6fb;font-family:system-ui,sans-serif;font-variant-numeric:tabular-nums}
body[data-portal-section] main {box-sizing:border-box;padding-bottom:max(24px,env(safe-area-inset-bottom))}
body[data-portal-section] :is(h1,h2,h3) {font-family:"Arial Narrow","Trebuchet MS",system-ui,sans-serif;overflow-wrap:anywhere}
body[data-portal-section] :is(button,summary,select,input:not([type=checkbox]):not([type=radio])) {min-height:44px;box-sizing:border-box}
body[data-portal-section] summary {cursor:pointer;align-content:center}
body[data-portal-section] :focus-visible {outline:3px solid #9bd7ff;outline-offset:2px}
body[data-portal-section] :is(.setup-panel,.history,.detail-panel,.family-shell .card,.family-shell form,.family-shell details) {background:#182536;border:1px solid #37495e;border-radius:16px}
body[data-portal-section] .family-shell a,.family-head a,.arena-match #changeCompetition {color:#a8d7ff}
.family-shell button {background:#ffad68;color:#201609}
.family-shell [role=tab][aria-selected=true] {background:#294263;color:#fff;box-shadow:inset 0 -3px #ffad68}
body.arena-match main {width:min(100%,900px);padding-inline:clamp(16px,3vw,24px)}
.arena-match #changeCompetition {display:inline-flex;align-items:center;min-height:44px}
.arena-match section {border-radius:16px;padding:clamp(14px,3vw,22px)}
.arena-match :is(input,select) {font-size:16px;max-width:100%}
.arena-match #deck {border-block:1px solid #3c4e63;padding-block:12px;margin-block:16px}
.arena-match :is(#claim,#saveDeck,#start),.arena-match .side-draw-choices .choose-x {background:#ffad68;color:#21170e;border-color:#ffad68}
.arena-match .side-draw-choices .choose-b {background:#8dcaff;color:#101e2d;border-color:#8dcaff}
.arena-match #playerTabs [aria-pressed=true] {background:#294263;box-shadow:inset 0 -3px #ffad68}
.arena-match #arenaSideDraw {background:#172536;border-color:#435974}
.arena-match :is(.side-draw-kicker,.side-draw-lanes .lane-label) {color:#ffbc87}
.arena-match #battle #arenaXSide :is(.score,.score-lane-label) {color:#ffbc87}
.arena-match #battle #arenaBSide :is(.score,.score-lane-label) {color:#a5d4ff}
.arena-match #battle .score-lane-label {background:#172536;border-color:#445973}
.arena-match #battle .score {font-variant-numeric:tabular-nums}
.arena-match #battle .arena-player-card {overflow-wrap:anywhere}
.arena-match #battle #arenaScoreboard {position:static}
.arena-match #resultReview {margin-top:16px;padding-top:12px;border-top:1px solid #435974}
body:has(.hub-shell) :is(dialog,.sn-detail .card,.tab-panel .network-item,.tab-panel .journal-item) {color:#edf4fc;background-color:#182536;border-color:#36495e;border-radius:14px}
body:has(.hub-shell) dialog {box-sizing:border-box;max-width:calc(100vw - 24px);max-height:88dvh;overflow:auto}
body:has(.hub-shell) :is(dialog,.sn-detail,.family-shell) :is(button,summary) {min-height:44px}
@media(max-width:600px) {
  body[data-portal-section] :is(.family-shell,main) {min-width:0}
  body[data-portal-section] .family-head {flex-wrap:wrap}
  body[data-portal-section] :is(.family-shell,.arena-player-card,.history,.event-detail) {overflow-wrap:anywhere}
}
.arena-match #matchSummary {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;position:sticky;top:0;z-index:3;padding:5px 0;background:#162130}
#matchSummary div {display:flex;align-items:center;justify-content:space-between;gap:6px;background:#203147;border-radius:9px;border-top:3px solid #ffad68;padding:6px 10px}
#matchSummary div+div {border-color:#8dcaff}
#matchSummary span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
#matchSummary strong {font-size:1.55rem}
.arena-match #sessionOptions[hidden],.arena-match.in-match #sessionOptions {display:none}
body:has(.sn-subnav:not([hidden])) > :is(header,.site-top,.family-head) {position:static}
body:has(.sn-subnav:not([hidden])) > header nav {display:none}
.hub-shell #workspace .tab-panel :is(.organizer-form,.organizer-access,.tournament-score,.match-record-details,.journal-item,.deck-item) {
  background:#192638;border:1px solid #384b61;border-radius:14px;color:#eef4ff;min-width:0
}
.hub-shell #workspace .tab-panel :is(.organizer-tabs,.portal-focus-nav,.garage-subtabs) {gap:5px;flex-wrap:wrap}
.hub-shell #workspace .tab-panel :is(.organizer-tabs,.portal-focus-nav,.garage-subtabs) button {min-height:44px}
body:has(.hub-shell) dialog .spin-snapshot-player {background:#1d2a3c;border-top:3px solid #ffad68}
body:has(.hub-shell) dialog .spin-snapshot-player:last-child {border-top-color:#8dcaff}
body:has(.hub-shell) dialog::backdrop {background:#050b14c7}
@media(max-width:600px) {
  .hub-shell #workspace .tab-panel :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {font-size:16px;max-width:100%}
}
