/* Installed official client art. Layout and controls stay accessible DOM elements; the manifest supplies every URL. */
html[data-official-ui] .brief__bg,
html[data-official-ui] .draft__bg {
  background: var(--official-backdrop) center / cover no-repeat, #101313;
}
html[data-official-ui] .brief__bg::after,
html[data-official-ui] .draft__bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--official-scan) center / auto repeat; opacity: .45;
}
html[data-official-ui] .brief .brief-h {
  background: var(--official-heading) center / 100% 100% no-repeat, #393c3c;
}
html[data-official-ui] .brief .brief-h::before {
  mask: none; -webkit-mask: none;
  background: var(--official-addon) center / contain no-repeat;
}
html[data-official-ui] .brief-sec--core .brief-h::before { background-image: var(--official-core); }
html[data-official-ui] .brief-sec--banned .brief-h::before { background-image: var(--official-chess); }
html[data-official-ui] .brief--reg .reg-htools { visibility: hidden; }
html[data-official-ui] .brief .brief-sec,
html[data-official-ui] .brief .brief-bonds { background-color: transparent; background-image: none; }
html[data-official-ui] :is(.brief, .minfo-dlg) .bond__core {
  width: 145%; height: 145%; border-radius: 0; box-shadow: none;
  background: var(--official-bondOff) center / contain no-repeat;
}
html[data-official-ui] :is(.brief, .minfo-dlg) .bond.is-active .bond__core {
  background-image: var(--official-bondOn); box-shadow: none;
}
html[data-official-ui] :is(.brief, .minfo-dlg) .bond__ring { display: none; }
html[data-official-ui] :is(.brief, .minfo-dlg) .bond__core :is(.bond__icon, .bond__glyph) {
  position: relative; z-index: 1;
}
html[data-official-ui] :is(.brief, .minfo-dlg) .bond__icon { width: 45%; height: 45%; }
html[data-official-ui] :is(.brief, .minfo-dlg) .bond__glyph { font-size: calc(var(--disc) * .42); }
html[data-official-ui] .brief--reg .reg-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: .16rem .24rem;
}
html[data-official-ui] .brief--reg .brief-bond-group {
  position: relative; padding: .12rem .12rem .06rem; gap: .12rem;
  background: rgba(0, 0, 0, .2); border: 1px solid rgba(180, 210, 202, .15);
}
html[data-official-ui] .brief--reg .brief-bond-group:focus-within,
html[data-official-ui] .brief--reg .brief-bond-group:hover { border-color: #00cfa3; }
html[data-official-ui] .brief--reg .brief-bond-group .brief-bonds__row {
  grid-template-columns: repeat(6, minmax(0, 1fr)); padding: .3rem .18rem .16rem; gap: .32rem .08rem;
}
html[data-official-ui] .brief--reg .brief-bond-group .brief-bonds__row > * { grid-column: span 2; }
html[data-official-ui] .brief--reg .brief-bond-group .brief-bonds__row > :nth-child(4) { grid-column: 2 / span 2; }
html[data-official-ui] .brief--reg .brief-bond-group .bond { --disc: .8rem; }
html[data-official-ui] .brief--reg .brief-bond-group .reg-group__n { color: #d3dedb; }
html[data-official-ui] .brief :is(.brief-go, .brief-bond-group .btn--primary) {
  background: var(--official-confirm) center / 100% 100% no-repeat;
  border: 0; box-shadow: none; clip-path: none; color: #09231c; text-shadow: none;
  min-height: .65rem; padding: .08rem .38rem .08rem .65rem;
}
html[data-official-ui] .brief :is(.brief-go, .brief-bond-group .btn--primary)::before,
html[data-official-ui] .brief :is(.brief-go, .brief-bond-group .btn--primary)::after { display: none; }
html[data-official-ui] .brief :is(.brief-go, .brief-bond-group .btn--primary):disabled {
  background-image: var(--official-confirmed); opacity: .7; color: #e5e9e7;
}
html[data-official-ui] .brief .brief-go > .btn__icon { display: none; }
html[data-official-ui] .brief .reg-chip { background-color: rgba(0, 0, 0, .4); }
html[data-official-ui] .brief .brief-reroll {
  background: rgba(7, 12, 11, .7); border-color: rgba(165, 192, 182, .28);
}
html[data-official-ui] .modal__box {
  border-image: none;
}
@media (max-width: 900px) {
  html[data-official-ui] .brief--reg .brief-bond-group .brief-bonds__row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Screen proportions follow the supplied official desktop captures. The original controls keep their labels,
   keyboard handling and server actions; only their presentation changes. */
html[data-official-ui] .lobby-hub { --mint-400: #00efb8; --mint-500: #00cda2; }
html[data-official-ui] .lobby-hub .hub-stage { position: relative; display: block; padding-bottom: 0; }
html[data-official-ui] .lobby-hub .hub-center { position: absolute; left: 34%; top: 6%; width: 32%; }
html[data-official-ui] .lobby-hub .hub-radar { display: none; }
html[data-official-ui] .lobby-hub .hub-center__ver { font-size: .14rem; }
html[data-official-ui] .lobby-hub .hub-center__mark { min-height: 1.9rem; margin-bottom: .08rem; }
html[data-official-ui] .lobby-hub .hub-center__fist { width: 1.7rem; filter: none; }
html[data-official-ui] .lobby-hub .hub-reg__word { width: 4.2rem; }
html[data-official-ui] .lobby-hub .hub-reg__pic { right: 0; top: -8%; width: 100%; max-width: none; height: 112%; object-fit: cover; }
html[data-official-ui] .lobby-hub .hub-side { position: absolute; left: .32rem; top: .35rem; width: 3.5rem; padding: 0; }
html[data-official-ui] .lobby-hub .hub-ach { height: .8rem; flex-direction: row; background: rgba(18, 18, 16, .8); border: 0; }
html[data-official-ui] .lobby-hub .hub-ach__scene { width: .95rem; height: .8rem; flex: none; }
html[data-official-ui] .lobby-hub :is(.hub-ach__land, .hub-ach__mark, .hub-ach__badge, .hub-ach__lv) { display: none; }
html[data-official-ui] .lobby-hub .hub-ach__rank { inset: 0; width: 100%; }
html[data-official-ui] .lobby-hub .hub-ach__label { flex: 1; justify-content: center; padding: 0; font-size: .25rem; }
html[data-official-ui] .lobby-hub .hub-side .tips { display: none; }
html[data-official-ui] .lobby-hub .hub-right { position: absolute; right: .3rem; top: .15rem; width: 3.3rem; }
html[data-official-ui] .lobby-hub .hub-entries {
  position: absolute; grid-area: auto; right: .3rem; bottom: .24rem; width: 7rem; max-width: 70%;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: .15rem;
}
html[data-official-ui] .hub-mode-switch { grid-column: 1 / -1; justify-self: end; display: flex; padding: .04rem; border: 2px solid #424444; border-radius: .5rem; background: #090a09; margin-bottom: .12rem; }
html[data-official-ui] .hub-mode-switch button { display: flex; align-items: center; justify-content: center; gap: .1rem; padding: .08rem .26rem; border: 0; border-radius: .5rem; color: #bbb; background: transparent; font: inherit; font-size: .23rem; cursor: pointer; }
html[data-official-ui] .hub-mode-switch button[aria-pressed="true"] { color: #161919; background: #dedfde; box-shadow: 0 0 .08rem #fff5; }
html[data-official-ui] .hub-mode-switch .icon { width: .28rem; height: .28rem; }
html[data-official-ui] .lobby-hub .hub-entry-wrap { min-width: 0; gap: 0; }
html[data-official-ui] .lobby-hub .hub-entry__group { display: none; }
html[data-official-ui] .lobby-hub .hub-entry { width: 100%; min-height: 1.1rem; padding: .1rem .7rem .1rem .75rem; align-items: center; justify-content: center; background: var(--official-home-match, var(--official-match)) center / 100% 100% no-repeat; border: 0; color: #031a14; box-shadow: none; }
html[data-official-ui] .lobby-hub .hub-entry__name { margin: 0; max-width: 100%; font-size: .34rem; letter-spacing: .02em; text-align: center; overflow-wrap: anywhere; }
html[data-official-ui] .lobby-hub :is(.hub-entry__en, .hub-entry__corner) { display: none; }
html[data-official-ui] .lobby-hub .hub-entry__icon { position: absolute; left: .22rem; right: auto; top: 50%; transform: translateY(-50%); width: .4rem; height: .4rem; opacity: .9; color: #09271f; }
html[data-official-ui] .hub-quick { display: flex; align-items: center; justify-content: center; gap: .16rem; padding: .15rem; color: #ddd; background: #111d; border: .03rem solid #686c69; font: inherit; font-size: .3rem; font-weight: 800; cursor: pointer; }
html[data-official-ui] .hub-quick .icon { width: .5rem; height: .5rem; color: #00b58b; }

html[data-official-ui] .modal__box.proto { border-image: none; }
html[data-official-ui] .proto__body .proto__bg { background: var(--official-scan) repeat, var(--official-backdrop) center / cover no-repeat, #101111; }
html[data-official-ui] .proto-top { height: 1.05rem; min-height: 1.05rem; padding: .14rem .24rem; justify-content: space-between; }
html[data-official-ui] .proto-title { align-items: flex-end; }
html[data-official-ui] .proto-title h2 { font-size: .3rem; font-weight: 500; }
html[data-official-ui] .proto-title__mode { font-size: .14rem; }
html[data-official-ui] .proto-back { width: 4.7rem; height: .65rem; border-radius: 0; background: #333; }
html[data-official-ui] .proto-body { grid-template-columns: minmax(0, 1fr) 32%; gap: .1rem; padding: 0 .18rem .18rem; }
html[data-official-ui] .proto__pic { inset: -.35rem -1rem .8rem -.2rem; }
html[data-official-ui] .proto-brief { left: .18rem; bottom: 0; max-width: 98%; width: 100%; border: 0; background: #060707c9; padding: .18rem .25rem; }
html[data-official-ui] .proto-brief__name { display: block; font-size: .3rem; }
html[data-official-ui] .proto-brief__code { display: none; }
html[data-official-ui] .proto-brief__effects { display: flex; gap: .25rem; }
html[data-official-ui] .proto-brief__more { display: block; }
html[data-official-ui] .proto-list { padding: .3rem .1rem; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); }
html[data-official-ui] .proto-list { cursor: grab; touch-action: pan-y; }
html[data-official-ui] .proto-list.is-dragging, html[data-official-ui] .proto-list.is-dragging .pcard { cursor: grabbing; user-select: none; }
html[data-official-ui] .ladder { display: flex; flex-direction: column; gap: .12rem; padding: 1rem 0; }
html[data-official-ui] .proto-list .pcard {
  flex: none; width: 100%; min-height: 1.35rem; padding: .16rem .14rem; margin: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--d-color); transform: none;
}
html[data-official-ui] .proto-list .pcard .pcard__head { display: flex; align-items: center; gap: .24rem; }
html[data-official-ui] .proto-list .pcard .pcard__glyph { width: 1rem; height: 1rem; flex: none; }
html[data-official-ui] .proto-list .pcard .pcard__name { color: inherit; font-size: .42rem; white-space: normal; line-height: 1.1; }
html[data-official-ui] .proto-list .pcard:not(.is-selected) { opacity: .6; }
html[data-official-ui] .proto-list .pcard.is-selected { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--d-color) 38%, transparent)); }
html[data-official-ui] .proto-list .pcard :is(.pcard__desc, .pcard__effects, .pcard__meta, .pcard__stamp) { display: none; }
html[data-official-ui] .proto-foot { gap: .06rem; background: #080a0abf; }
html[data-official-ui] .proto-foot .create-box__test { font-size: .13rem; padding: .04rem; }
html[data-official-ui] .proto-foot .create-box__test em { display: none; }
html[data-official-ui] .proto-hint { font-size: .13rem; margin: 0; }
html[data-official-ui] .proto__body .proto-start { min-height: .9rem; height: .9rem; color: #061c16; background: var(--official-match) center / 100% 100% no-repeat; border: 0; box-shadow: none; }
html[data-official-ui] .proto-start__label { font-size: .34rem; }
html[data-official-ui] .proto-start :is(.proto-start__mark, .proto-start__deco) { display: none; }

html[data-official-ui] :is(.brief, .draft) .stephead { height: 1.5rem; min-height: 1.5rem; padding: .08rem .35rem; background: transparent; }
html[data-official-ui] .stephead__left { gap: .15rem; }
html[data-official-ui] .stephead__mascot { display: block; flex: none; width: 1.35rem; height: 1.25rem; margin-left: .1rem; }
html[data-official-ui] .stephead__title { position: relative; align-items: center; padding: .14rem .2rem .25rem; background: var(--official-speech) center / 100% 100% no-repeat; font-size: .3rem; letter-spacing: .02em; }
html[data-official-ui] .stephead__title b { font-size: .54rem; }
html[data-official-ui] .stephead__title .stephead__of { font-size: .3rem; }
html[data-official-ui] .stephead__micro { display: none; }
html[data-official-ui] .stephead__exit .btn--danger { background: linear-gradient(#c6c9c8, #838786); color: #fff; border-radius: .08rem; box-shadow: inset 0 0 .05rem #fff; }
html[data-official-ui] .stephead__guide { padding: .05rem; font-size: .13rem; }
html[data-official-ui] .brief--reg .brief__split { grid-template-columns: minmax(0, 1fr) 25%; margin: .12rem 5.5% .15rem; gap: .3rem; }
html[data-official-ui] .brief--reg .brief__scroll { padding: 0 .18rem .15rem 0; gap: .2rem; scrollbar-width: thin; scrollbar-color: #b2b5b4 #323535; }
html[data-official-ui] .brief--reg .brief__side { padding: 0; gap: .16rem; }
html[data-official-ui] .brief--reg .brief-h { min-height: .58rem; padding: .08rem .16rem; font-size: .29rem; font-weight: 600; }
html[data-official-ui] .brief--reg .brief-sec--core .reg-chip { display: none; }
html[data-official-ui] .brief-bond-groups__hint { font-size: .19rem; color: #258d76; text-align: center; }
html[data-official-ui] .brief--reg .reg-panels { gap: .15rem .25rem; }
html[data-official-ui] .brief--reg .brief-bond-group { border: 0; padding: .08rem .22rem .15rem; background: #070b0b30; }
html[data-official-ui] .brief--reg .brief-bond-group.is-selected { background: linear-gradient(0deg, #00bc9260, #00bc9210); }
html[data-official-ui] .brief--reg .brief-bond-group.is-selected::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: .15rem; background: var(--official-group) center bottom / 100% 100% no-repeat; }
html[data-official-ui] .brief--reg .reg-group__n { font-size: .13rem; color: #7d9a91; }
html[data-official-ui] .brief--reg .brief-bond-group .btn--primary { min-height: .45rem; font-size: .18rem; padding: .08rem; background: #00c99c; }
html[data-official-ui] .brief--reg .brief-bond .bond__name { font-size: .18rem; color: #aeb5b3; }
html[data-official-ui] .brief--reg .brief-bonds__row { grid-template-columns: repeat(10, minmax(0, 1fr)); padding: .25rem .16rem; gap: .25rem .05rem; }
html[data-official-ui] .brief--reg .brief-bond .bond { --disc: .72rem; }
html[data-official-ui] .brief--reg .reg-preview, html[data-official-ui] .brief--reg .reg-preview > .reg-map { max-height: none; }
html[data-official-ui] .brief--reg .reg-ready { margin-top: auto; }
html[data-official-ui] .brief--reg .brief-go.btn--xl { min-height: .85rem; font-size: .31rem; }
html[data-official-ui] .brief--reg .brief-reroll { margin: 0 5.5% .12rem; padding: .04rem .1rem; min-height: .42rem; background: transparent; border: 0; }
html[data-official-ui] .brief--reg .brief-reroll__text { font-size: .12rem; flex-direction: row; align-items: center; gap: .12rem; }
html[data-official-ui] .brief--reg .brief-reroll__text strong { font-size: .15rem; }
html[data-official-ui] .brief--reg .brief-reroll__actions .btn { min-height: .35rem; padding: .04rem .14rem; font-size: .14rem; }

html[data-official-ui] .draft .draft__main { grid-template-columns: 40% 3% minmax(0, 1fr) 0; padding: .04rem .45rem .15rem; }
html[data-official-ui] .draft--detail .draft__main { grid-template-columns: 23% 3% minmax(0, 1fr) 21%; gap: .1rem; padding-right: 0; }
html[data-official-ui] .draft .draft-order { background: linear-gradient(#006a5540, #002d2715); padding: .3rem .18rem; }
html[data-official-ui] .draft .draft-order::before { content: ''; position: absolute; inset: 10% 4%; background: var(--official-radar) center / contain no-repeat; pointer-events: none; }
html[data-official-ui] .draft .draft-order__rows { position: relative; justify-content: center; padding: .1rem .2rem; }
html[data-official-ui] .draft .draft-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .2rem .19rem; padding: .3rem .35rem; background: #080b0b38; }
html[data-official-ui] .draft .draft-grid__sec { font-size: .25rem; font-weight: 500; padding: .08rem 0; margin: 0 0 .12rem; background: transparent; }
html[data-official-ui] .draft .draft-grid__sec .icon { width: .36rem; height: .36rem; }
html[data-official-ui] .draft .dband { box-shadow: 0 0 0 .025rem #6e7472; }
html[data-official-ui] .draft .dband__name { opacity: 0; }
html[data-official-ui] .draft .dband:hover .dband__name, html[data-official-ui] .draft .dband:focus-visible .dband__name { opacity: 1; }
html[data-official-ui] .draft .dband.is-sel { box-shadow: none; }
html[data-official-ui] .draft .draft-detail { margin: -1.54rem 0 -.15rem; padding: 1.65rem .18rem .2rem; background: linear-gradient(160deg, #003e32e6, #001d17e8 65%, #000c); }
html[data-official-ui] .draft .draft-detail__art { width: 100%; height: 1.9rem; }
html[data-official-ui] .draft .draft-detail__art .bandicon { --bi: 1.9rem; }
html[data-official-ui] .draft .draft-detail__name { font-size: .32rem; }
html[data-official-ui] .draft .draft-detail__desc { font-size: .22rem; }
html[data-official-ui] .draft .draft-confirm { background: var(--official-match) center / 100% 100% no-repeat; color: #001e17; border: 0; min-height: .85rem; height: auto; font-size: .3rem; }
html[data-official-ui] .draft .draft-confirm::before, html[data-official-ui] .draft .draft-confirm::after { display: none; }

@media (max-width: 1000px) {
  html[data-official-ui] .stephead__mascot { width: .8rem; }
  html[data-official-ui] .stephead__guide { display: none; }
  html[data-official-ui] .brief--reg .brief__split { margin-inline: .3rem; grid-template-columns: minmax(0, 1fr) 27%; gap: .2rem; }
  html[data-official-ui] .brief--reg .brief-bonds__row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  html[data-official-ui] .brief--reg .brief-bond-group .brief-bonds__row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 640px), (max-height: 520px) {
  html[data-official-ui] .stephead__mascot { display: none; }
  html[data-official-ui] :is(.brief, .draft) .stephead { height: 1.1rem; min-height: 1.1rem; padding: .05rem .18rem; }
  html[data-official-ui] .stephead__title { padding: .1rem; background: #252827; }
  html[data-official-ui] .brief--reg .brief__split { margin-inline: .2rem; grid-template-columns: minmax(0, 1fr) 29%; gap: .15rem; }
  html[data-official-ui] .brief--reg .brief-bond-group { padding: .06rem; }
  html[data-official-ui] .brief--reg .brief-bond-group .bond { --disc: .62rem; }
  html[data-official-ui] .brief--reg .brief-reroll__text > span { display: none; }
  html[data-official-ui] .draft .draft__main { grid-template-columns: 24% 2% minmax(0, 1fr) 0; padding: .05rem .15rem; }
  html[data-official-ui] .draft--detail .draft__main { grid-template-columns: 0 0 minmax(0, 1fr) 32%; }
  html[data-official-ui] .draft--detail .draft-order { visibility: hidden; }
  html[data-official-ui] .draft .draft-grid { padding: .15rem; gap: .2rem .15rem; }
  html[data-official-ui] .draft .draft-detail { margin: 0; padding: .12rem; }
  html[data-official-ui] .lobby-hub .hub-entries { max-width: 80%; bottom: .15rem; }
  html[data-official-ui] .lobby-hub .hub-side { width: 2.8rem; }
  html[data-official-ui] .proto-top { height: .8rem; min-height: .8rem; }
  html[data-official-ui] .proto-title h2 { font-size: .23rem; }
  html[data-official-ui] .proto-back { width: 2.4rem; }
  html[data-official-ui] .proto-body { grid-template-columns: minmax(0, 1fr) 40%; }
  html[data-official-ui] .proto-list .pcard { min-height: 1.05rem; }
  html[data-official-ui] .proto-list .pcard .pcard__name { font-size: .3rem; }
  html[data-official-ui] .proto-list .pcard .pcard__glyph { width: .7rem; height: .7rem; }
}
@media (max-width: 640px) {
  html[data-official-ui] .brief--reg .reg-panels { grid-template-columns: minmax(0, 1fr); }
}

/* Compact official 3+2 group composition, without the nested card frame. */
html[data-official-ui] .brief--reg .reg-group__n { display: none; }
html[data-official-ui] .brief--reg .brief-bond-group { padding: .08rem .16rem .12rem; gap: 0; }
html[data-official-ui] .brief--reg .brief-bond-group > .brief-bonds { border: 0; padding: 0; flex: none; }
html[data-official-ui] .brief--reg .brief-bond-group .brief-bonds__row {
  padding: .18rem .2rem; gap: .16rem .08rem;
}
html[data-official-ui] .brief--reg .brief-bond-group .bond { --disc: .94rem; }
html[data-official-ui] .brief--reg .brief-bond-group .bond__name { font-size: .21rem; }
html[data-official-ui] .brief--reg .brief-bond-group .btn--primary {
  min-height: .3rem; padding: .03rem; font-size: .16rem;
  background: transparent; border-top: 2px solid var(--mint-700); color: var(--mint-400);
}
html[data-official-ui] .brief--reg .reg-panels > .brief-bonds { display: none; }
html[data-official-ui] .brief--reg .brief-sec--addon > .brief-bonds { border: 0; padding: 0; }
html[data-official-ui] .brief--reg .brief-sec--addon .brief-bonds__row { grid-template-columns: repeat(10, minmax(0, 1fr)); }
html[data-official-ui] .stephead__mascot--theresa { overflow: hidden; mask-image: linear-gradient(#000 70%, transparent); }
html[data-official-ui] .stephead__mascot--theresa img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
@media (max-width: 760px) {
  html[data-official-ui] .brief--reg .brief-bond-group .bond { --disc: .65rem; }
  html[data-official-ui] .brief--reg .brief-sec--addon .brief-bonds__row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Prefab HUD art comes from the selected terminal pack, outside local-assets.json.
   Tint only its chrome planes; characters and the battlefield are sibling layers. */
html[data-camp="monster"] :is(.pf--hud, .pf--cd, .pf--ready) .pf__g {
  filter: hue-rotate(165deg) saturate(.65) brightness(.85);
}

html[data-official-ui] .rs--4v4 {
  --room-unit: clamp(.68px, .11dvh, 1.55px);
  --room-action: var(--official-match);
  --room-action-ink: #202020;
}
html[data-official-ui][data-camp="monster"] .rs--4v4 { --room-action-ink: #fff0ed; }
html[data-official-ui] .rs--4v4 .rs-exit {
  width: calc(54 * var(--room-unit));
  height: calc(56 * var(--room-unit));
  background: var(--official-room-exit) center / 100% 100% no-repeat;
  border-radius: 0;
  box-shadow: none;
}
html[data-official-ui] .rs--4v4 .rs-exit .icon { visibility: hidden; }
html[data-official-ui] .rs--4v4 .rs-key {
  min-height: calc(42 * var(--room-unit));
  background: var(--official-room-code) center / 100% 100% no-repeat;
  border-color: transparent;
  border-radius: 0;
}
html[data-official-ui] .rs--4v4 .rs-key__copy {
  background: var(--official-room-copy) center / 100% 100% no-repeat;
  border-radius: 0;
}
html[data-official-ui] .rs--4v4 .rs-pill {
  border-image: var(--official-room-modes) 0 32 fill / 0 calc(32 * var(--room-unit)) stretch;
  background: none;
}

html[data-official-ui] .rs--4v4 .rs-camp .rseat__strip {
  height: calc(32 * var(--room-unit));
  background: var(--official-room-strip) center / 100% 100% no-repeat;
}
html[data-official-ui] .rs--4v4 .rs-camp .rseat.is-lit .rseat__strip {
  background: var(--official-room-strip-ready) center / 100% 100% no-repeat;
}
html[data-official-ui] .rs--4v4 .rs-camp--monster .rseat.is-lit .rseat__strip {
  isolation: isolate;
  background: none;
}
html[data-official-ui] .rs--4v4 .rs-camp--monster .rseat.is-lit .rseat__strip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--camp-line);
  mask: var(--official-room-strip-ready) center / 100% 100% no-repeat;
}
html[data-official-ui] .rs--4v4 .rs-camp .rseat--empty .rseat__art {
  border-image: var(--official-room-empty) 55 44 245 fill / 12% 18% 52% stretch;
  background: #111313;
}
html[data-official-ui] .rs--4v4 .rs-camp .rseat__plate--empty {
  background: var(--official-room-plate) center / 100% 100% no-repeat;
  color: var(--camp-ink);
}
html[data-official-ui] .rs--4v4 .rseat__plus {
  width: min(100%, calc(106 * var(--room-unit)));
  height: min(12vw, calc(107 * var(--room-unit)));
  background: var(--official-room-plus) center / contain no-repeat;
}
html[data-official-ui] .rs--4v4 .rseat__plus::before,
html[data-official-ui] .rs--4v4 .rseat__plus::after { content: none; }
html[data-official-ui] .rs--4v4 .rseat__noinfo {
  width: calc(42 * var(--room-unit));
  height: calc(13 * var(--room-unit));
  font-size: 0;
  background: var(--official-room-noinfo) center / contain no-repeat;
}
html[data-official-ui] .rs--4v4 .rs-camp .rseat:not(.rseat--empty, .is-lit) .rseat__art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--official-room-matte) center / 100% 100% no-repeat;
}
html[data-official-ui] .rs--4v4 .rseat.is-lit .rseat__box {
  background: var(--official-room-prepared) center / contain no-repeat;
  border: 0;
}
html[data-official-ui] .rs--4v4 .rseat.is-lit .rseat__box .icon { visibility: hidden; }

html[data-official-ui] .rs--4v4 .rs-go.proto-start {
  width: min(calc(318 * var(--room-unit)), 40vw);
  min-height: calc(70 * var(--room-unit));
  color: var(--room-action-ink);
  background: var(--room-action) center / 100% 100% no-repeat;
  border-width: 0;
  box-shadow: none;
}
html[data-official-ui] .rs--4v4 .rs-go.is-ready { --room-action: var(--official-room-cancel); }
html[data-official-ui] .rs--4v4 .rs-go:disabled { --room-action: var(--official-matchOff); --room-action-ink: #dedede; }
html[data-official-ui][data-camp="monster"] .rs--4v4 .rs-go.proto-start {
  background: var(--room-action) center / 100% 100% no-repeat, #311118 !important;
  box-shadow: none !important;
}
html[data-official-ui][data-camp="monster"] .rs--4v4 .rs-go.is-ready:not(:disabled) {
  background-color: #79323d !important;
  background-blend-mode: multiply;
}
html[data-official-ui] .rs--4v4 .rs-go .proto-start__deco { display: none; }
html[data-official-ui] .rs--4v4 .rs-go .proto-start__mark {
  width: calc(46 * var(--room-unit));
  height: calc(41 * var(--room-unit));
  margin-inline: calc(13 * var(--room-unit));
  padding: 0;
  background: currentColor;
  mask: var(--official-room-host) center / contain no-repeat;
}
html[data-official-ui] .rs--4v4 .rs-go .proto-start__mark > * { display: none; }
html[data-official-ui] .rs--4v4 .rs-go .proto-start__label { padding-inline: 0 12%; }
@media (min-width: 1001px) and (min-height: 720px) {
  html[data-official-ui] .rs--4v4 .rs-camp__roster .rseat {
    aspect-ratio: 234 / 566;
    align-self: center;
  }
  html[data-official-ui] .rs--4v4 .rs-go .proto-start__mark { display: block; }
}

html[data-official-ui] .ally {
  --ally-unit: clamp(.48px, .118dvh, 1.28px);
  --ally-ink: #f3f9f6;
  --ally-scan: #00ffbe;
  --ally-scan-grid: #00ffbe24;
}
html[data-official-ui][data-camp="monster"] .ally {
  --ally-ink: #fff0ed;
  --ally-scan: #ce7380;
  --ally-scan-grid: #ce738024;
}
html[data-official-ui] .ally .proto-title {
  padding-inline-start: calc(64 * var(--ally-unit));
  background: var(--official-ally-title) left center / calc(54 * var(--ally-unit)) auto no-repeat;
}
html[data-official-ui] .ally__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--official-ally-panel) right center / 55% 100% no-repeat;
  pointer-events: none;
}
html[data-official-ui] .ally-body {
  --ally-side-width: min(calc(540 * var(--ally-unit)), 48vw);
  position: relative;
  grid-template-columns: minmax(0, 1fr) var(--ally-side-width);
}
html[data-official-ui] .ally-stage .mf-radar { visibility: hidden; }
html[data-official-ui] .ally-stage::before {
  content: '';
  position: absolute;
  top: 47%;
  left: 50%;
  width: min(100%, calc(756 * var(--ally-unit)));
  aspect-ratio: 756 / 612;
  transform: translate(-50%, -50%);
  background:
    var(--official-ally-radar-cross) center / 3% auto no-repeat,
    var(--official-ally-radar-ring) center / 32.8% auto no-repeat,
    var(--official-ally-radar-frame) center / 100% auto no-repeat;
  pointer-events: none;
}
html[data-official-ui] .ally-stage::after {
  content: '';
  position: absolute;
  top: 47%;
  left: 50%;
  width: min(100%, calc(756 * var(--ally-unit)));
  aspect-ratio: 756 / 616;
  transform: translate(-50%, -50%);
  background: var(--ally-scan-grid);
  mask: var(--official-ally-radar-grid) center / 100% auto no-repeat;
  pointer-events: none;
}
html[data-official-ui] .ally-stage .ally-guide { z-index: 1; }
html[data-official-ui] .ally-radar-sweep {
  position: absolute;
  top: 47%;
  left: 50%;
  width: min(57%, calc(440 * var(--ally-unit)));
  aspect-ratio: 1;
  translate: -50% -50%;
  background: var(--official-ally-radar-pointer) center / 74% auto no-repeat;
  animation: mf-sweep 4.5s linear infinite;
  pointer-events: none;
}
html[data-official-ui] .ally-radar-sweep::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ally-scan);
  opacity: .26;
  mask: var(--official-ally-radar-sweep) center / contain no-repeat;
}
html[data-official-ui] .ally-card {
  --ally-card-frame: var(--official-ally-create-frame);
  --ally-card-art-height: 175;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html[data-official-ui] .ally-card--join {
  --ally-card-frame: var(--official-ally-join-frame);
  --ally-card-art-height: 209;
}
html[data-official-ui] .ally-card__art {
  position: relative;
  box-sizing: border-box;
  width: min(100%, calc(499 * var(--ally-unit)));
  height: calc(var(--ally-card-art-height) * var(--ally-unit));
  align-self: center;
  padding: 0;
  border-image: var(--ally-card-frame) 0 43 fill / 0 calc(43 * var(--ally-unit)) stretch;
}
html[data-official-ui] .ally-card__art .mf-art { display: none; }
html[data-official-ui] .ally-card__art::after {
  content: '';
  position: absolute;
  inset: 0;
}
html[data-official-ui] .ally-card--create .ally-card__art::after {
  background:
    var(--official-ally-create-logo) 9% 13% / 17% auto no-repeat,
    var(--official-ally-create-art) center / 13% auto no-repeat;
}
html[data-official-ui] .ally-card--join .ally-card__art::after {
  background:
    var(--official-ally-join-logo) 15% 15% / 17% auto no-repeat,
    var(--official-ally-join-left) 13% 57% / 20% auto no-repeat,
    var(--official-ally-join-right) 92% 63% / 19% auto no-repeat,
    var(--official-ally-join-art) 36% 43% / 17% auto no-repeat,
    var(--official-ally-join-art) 49% 43% / 17% auto no-repeat,
    var(--official-ally-join-art) 62% 43% / 17% auto no-repeat;
}
html[data-official-ui] .ally-card__bar {
  --ally-bar: var(--official-ally-create-bar);
  --ally-bar-icon: var(--official-ally-create-icon);
  min-height: calc(63 * var(--ally-unit));
  color: var(--ally-ink);
  background: none;
  isolation: isolate;
}
html[data-official-ui] .ally-card__bar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--ally-bar) center 18.4% / 107.6% 156.7% no-repeat;
}
html[data-official-ui] .ally-card__bar--join {
  --ally-bar: var(--official-ally-join-bar);
  --ally-bar-icon: var(--official-ally-join-icon);
}
html[data-official-ui] .ally-card__bar small { color: inherit; }
html[data-official-ui] .ally-card__icon {
  background: var(--ally-bar-icon) center / contain no-repeat;
  border: 0;
  border-radius: 0;
}
html[data-official-ui] .ally-card__icon .icon { visibility: hidden; }
html[data-official-ui] .ally-key {
  background: transparent;
  border-image: var(--official-ally-key) 0 19 0 52 fill / 0 calc(19 * var(--ally-unit)) 0 calc(52 * var(--ally-unit)) stretch;
}
@media (max-aspect-ratio: 1/1) {
  html[data-official-ui] .ally-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 520px) {
  html[data-official-ui] .ally-body { --ally-side-width: min(calc(7.4rem / var(--sp-ui, 1)), 54vw); }
  html[data-official-ui] .ally-card__art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-official-ui] .ally-radar-sweep { animation: none; }
}
