/* ==========================================================================================
   screens/theme.css — 「更换主题」 (§37.404; js/screens/themeScreen.js): the official 规程 theme screen after the owner's
   recording of 2026-11-30 (video 1, 3:25–4:44, 1920 × 1202): a full-screen overlay over any route. Sizes are the
   recording's pixels ÷ 100 (theme.css root scale: 1920 wide → 1 px = .01rem); texts follow 文字大小 (--t). The official
   outer sprites (ui/outer variant_skin_*, common_* / closur_*) are used when the local-client art is present; every
   piece has a CSS stand-in. [ASSUMED] every size and colour: measured from the recording, not read from the client.
   ========================================================================================== */

.tscr {
  position: fixed; inset: 0; z-index: 55; /* like .lo / .stats: above every screen and the in-match banners (40), below
                                             the connection banner, modals / confirm dialogs (80), toasts and tooltips */
  overflow: hidden;
  padding: var(--sa-t, 0px) var(--sa-r, 0px) var(--sa-b, 0px) var(--sa-l, 0px);
  background: #0c0d0d;
  color: #f2f2f2;
  outline: none;
  animation: tscr-in 220ms ease-out backwards;
  overscroll-behavior: contain;
  --tscr-bar: 1.57rem;
  --tscr-side: 4.27rem;
  --tscr-side-r: .48rem;
}
@keyframes tscr-in { from { opacity: 0; } }
/* the recording's backdrop: a dark scene with vertical scan lines and a pale rock at the top left */
.tscr__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px),
    radial-gradient(22% 18% at 18% 6%, rgba(190, 190, 190, .16), transparent 70%),
    radial-gradient(70% 60% at 30% 40%, rgba(255, 255, 255, .045), transparent 70%),
    linear-gradient(180deg, #161717, #0d0e0e 62%, #0a0a0a);
}
.tscr__sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the back plate (the recording: a 226 × 76 grey plate, the white chevron at its left) */
.tscr__back {
  position: absolute; left: calc(var(--sa-l, 0px) + .22rem); top: calc(var(--sa-t, 0px) + .2rem); z-index: 5;
  display: flex; align-items: center;
  width: max(2.26rem, 32px, calc(88px * var(--sp-ui, 1)));
  height: max(.76rem, 32px, calc(40px * var(--sp-ui, 1)));
  padding: 0 0 0 .26rem;
  border: 0; background: linear-gradient(180deg, #424343, #363737); color: #f4f4f4;
  box-shadow: 0 .02rem .08rem rgba(0, 0, 0, .5);
  cursor: var(--sp-cursor-pointer, pointer);
}
.tscr__back .icon { width: max(.5rem, 22px); height: max(.5rem, 22px); }
.tscr__back:hover { background: linear-gradient(180deg, #4d4e4e, #3e3f3f); }
.tscr__back:focus-visible { outline: 2px solid #eef0ef; outline-offset: 2px; }

/* ---- browse: the preview picture, the list down the right, the bar along the bottom ------------------------------- */
.tscr__stage { position: absolute; left: var(--sa-l, 0px); top: 0; right: calc(var(--tscr-side) + var(--tscr-side-r) + .5rem); bottom: var(--tscr-bar); }
.tscr__preview {
  position: absolute; left: 0; top: calc(50% + .22rem); transform: translateY(-50%);
  width: min(13.76rem, 100%); height: auto; max-height: calc(100% - 1.3rem);
  object-fit: contain; object-position: left center;
  animation: tscr-pic 260ms ease-out backwards;
}
@keyframes tscr-pic { from { opacity: 0; } }
.tscr__preview--none {
  display: grid; place-items: center; aspect-ratio: 917 / 561;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 .1rem, transparent .1rem .2rem), #151616;
  border: 1px solid #2c2d2d;
}
.tscr__preview--none span { font-size: calc(.42 * var(--t)); font-weight: 700; letter-spacing: .1em; color: #6f7272; }

.tscr__side {
  position: absolute; right: calc(var(--sa-r, 0px) + var(--tscr-side-r) - .3rem); top: calc(var(--sa-t, 0px) + .38rem); bottom: calc(var(--tscr-bar) + .2rem);
  width: calc(var(--tscr-side) + .3rem);
  display: flex; flex-direction: column; gap: .23rem;
}
/* 更新时间 (variant_skin_update_time_bg): the white arrow is the active direction */
.tscr__sort {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  width: var(--tscr-side); height: max(.54rem, 32px);
  padding: 0 .14rem 0 .22rem;
  border: 0; background: #1d1e1e; color: #b6b6b6;
  font-size: calc(.3 * var(--t)); line-height: 1.2;
  cursor: var(--sp-cursor-pointer, pointer);
}
.tscr__sort:hover { background: #262727; }
.tscr__sort:focus-visible { outline: 2px solid #eef0ef; outline-offset: 2px; }
.tscr__arrows { display: inline-flex; align-items: center; gap: .04rem; }
.tscr__arrow { display: block; width: .26rem; height: .26rem; border: solid currentColor; border-width: 0 .035rem .035rem 0; color: #7b7d7d; }
.tscr__arrow--down { transform: translateY(-.06rem) rotate(45deg); }
.tscr__arrow--up { transform: translateY(.06rem) rotate(-135deg); }
.tscr__sort.is-desc .tscr__arrow--down, .tscr__sort.is-asc .tscr__arrow--up { color: #f2f2f2; }

.tscr__list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  display: flex; flex-direction: column; gap: .15rem;
  padding: .02rem .3rem .2rem .02rem;
}
.tscr__list::-webkit-scrollbar { display: none; }
.tscr__item {
  position: relative; flex: none;
  width: var(--tscr-side); height: 1.75rem; padding: 0;
  border: .02rem solid #4b4c4c; background: #111212; color: #fff;
  cursor: var(--sp-cursor-pointer, pointer);
}
.tscr__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tscr__thumb--none { display: grid; place-items: center; font-size: calc(.6 * var(--t)); font-weight: 900; color: #3b3d3d; background: #171818; }
.tscr__itemname {
  position: absolute; right: .14rem; bottom: .12rem; max-width: calc(100% - .28rem);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: calc(.3 * var(--t)); line-height: 1.25; color: #fff;
  text-shadow: 0 0 .05rem #000, 0 .02rem .05rem rgba(0, 0, 0, .9);
}
/* the official select frame (variant_skin_select_frame): a white border and the arrow pointing at the list from outside */
.tscr__item.is-chosen { border: .045rem solid #ececec; box-shadow: 0 0 .08rem rgba(255, 255, 255, .25); }
.tscr__item.is-chosen::after {
  content: ''; position: absolute; left: calc(100% + .1rem); top: 50%; width: .14rem; height: .26rem; transform: translateY(-50%);
  background: #ececec; clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.tscr__item:hover:not(.is-chosen) { border-color: #8a8c8c; }
.tscr__item:focus-visible { outline: 2px solid #5df0c6; outline-offset: 2px; }
/* 导入主题包 under the list (ours, not the official screen's): a dashed tile as wide as the cards */
.tscr__import {
  flex: none; display: flex; align-items: center; justify-content: center; gap: .12rem;
  width: var(--tscr-side); height: max(.62rem, 32px); padding: 0 .2rem;
  border: .02rem dashed #5d5f5f; background: rgba(17, 18, 18, .82); color: #c8caca;
  font-size: calc(.28 * var(--t)); line-height: 1.2;
  cursor: var(--sp-cursor-pointer, pointer);
}
.tscr__import:hover:not(:disabled) { border-color: #a3a5a5; color: #fff; }
.tscr__import:focus-visible { outline: 2px solid #5df0c6; outline-offset: 2px; }
.tscr__import:disabled { opacity: .55; cursor: default; }
.tscr__import .icon { flex: none; width: .3rem; height: .3rem; }
/* in use: the official applied mark (variant_skin_applied_icon, 47 × 52; the recording draws it about 55 × 62) at the card's left */
.tscr__applied { position: absolute; left: .25rem; top: 50%; width: .56rem; height: .62rem; transform: translateY(-50%); display: grid; place-items: center; }
.tscr__appliedimg { width: 100%; height: 100%; object-fit: contain; }
.tscr__appliedico { width: .4rem; height: .4rem; padding: .03rem; border: .03rem solid #fff; color: #fff; }

.tscr__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--tscr-bar) + var(--sa-b, 0px));
  display: flex; align-items: center; gap: .3rem;
  padding: 0 calc(var(--sa-r, 0px) + .42rem) var(--sa-b, 0px) calc(var(--sa-l, 0px) + .48rem);
  background: linear-gradient(180deg, #121313, #090909 60%);
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.tscr__info { flex: 1 1 auto; min-width: 0; }
.tscr__name {
  margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: calc(.4 * var(--t)); font-weight: 700; line-height: 1.25; color: #fff;
}
.tscr__desc { margin: .04rem 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(.26 * var(--t)); line-height: 1.3; color: #8c8c8c; }
.tscr__note { margin: .04rem 0 0; font-size: calc(.2 * var(--t)); color: #ffb35c; }
.tscr__note.is-ok { color: #5df0c6; }
.tscr__acts { flex: none; display: flex; align-items: center; gap: .23rem; }
/* 卫戍语音 / 效果预览 (variant_skin_btn_small: a dark pill with a grey rim) */
.tscr__small {
  display: inline-flex; align-items: center; justify-content: center; gap: .12rem;
  min-width: 2.15rem; height: max(.65rem, 32px, calc(40px * var(--sp-ui, 1)));
  padding: 0 .24rem 0 .18rem;
  border: .025rem solid rgba(205, 207, 207, .55); border-radius: .4rem;
  background: rgba(16, 17, 17, .9); color: #f2f2f2; box-shadow: inset 0 0 .06rem rgba(255, 255, 255, .08);
  font-size: calc(.28 * var(--t)); line-height: 1.2; white-space: nowrap;
  cursor: var(--sp-cursor-pointer, pointer);
}
.tscr__small:hover { border-color: rgba(235, 237, 237, .8); background: rgba(30, 31, 31, .95); }
.tscr__small:focus-visible { outline: 2px solid #eef0ef; outline-offset: 2px; }
.tscr__smallico { flex: none; width: .3rem; height: .3rem; object-fit: contain; color: #fff; }
/* 设置主题 / 已设置 (variant_skin_btn_confirm / variant_skin_btn_selected: the green plate with its check and the
   machine at the right) */
.tscr__apply {
  position: relative; display: flex; align-items: center; gap: .14rem;
  /* the recording's 4.31rem; longer words (another language, a larger text size) widen it */
  min-width: max(4.31rem, 32px, calc(150px * var(--sp-ui, 1))); height: max(.97rem, 32px, calc(44px * var(--sp-ui, 1)));
  margin-left: .24rem; padding: 0 1.05rem 0 .26rem;
  border: 0; color: #141d1f;
  background: linear-gradient(100deg, #34d2a6, #2bb38e 78%, #25352f 78% 100%);
  box-shadow: 0 0 0 .02rem rgba(255, 255, 255, .7), 0 .03rem .1rem rgba(0, 0, 0, .55);
  /* capped at the recording's size: the plate's right fifth is the machine of its picture */
  font-size: min(calc(.4 * var(--t)), .44rem); font-weight: 900; letter-spacing: .04em; line-height: 1.1; white-space: nowrap;
  cursor: var(--sp-cursor-pointer, pointer);
}
/* both pictures carry the same 287 × 66 plate — btn_confirm (314 × 92) at 13, 1 with a glow round it, btn_selected
   (292 × 69) at 2, 1 — so the picture is laid over the button with the plate on the button's box */
.tscr__apply.has-art {
  isolation: isolate; background: none; box-shadow: none; padding-left: .9rem;
  --art-l: calc(-13 / 287 * 100%); --art-t: calc(-1 / 66 * 100%); --art-w: calc(314 / 287 * 100%); --art-h: calc(92 / 66 * 100%);
}
.tscr__apply.has-art.is-applied { --art-l: calc(-2 / 287 * 100%); --art-w: calc(292 / 287 * 100%); --art-h: calc(69 / 66 * 100%); }
.tscr__apply.has-art::before {
  content: ''; position: absolute; z-index: -1; left: var(--art-l); top: var(--art-t); width: var(--art-w); height: var(--art-h);
  background: var(--tscr-btn) 0 0 / 100% 100% no-repeat; pointer-events: none;
}
.tscr__apply.has-art .tscr__applyico { display: none; }
.tscr__applyico { flex: none; display: grid; place-items: center; width: .5rem; height: .5rem; border: .035rem solid currentColor; }
.tscr__applyico .icon { width: .36rem; height: .36rem; }
.tscr__applytxt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tscr__apply:hover:not(:disabled) { filter: brightness(1.08); }
.tscr__apply:focus-visible { outline: 2px solid #eef0ef; outline-offset: 3px; }
.tscr__apply:disabled { cursor: var(--sp-cursor-default, default); }
.tscr__apply.is-applied { color: #142222; background: linear-gradient(100deg, #2b7d68, #276b59 78%, #1e2a26 78% 100%); }
.tscr__apply.is-applied.has-art { background: none; }

/* ---- 效果预览: the official board, the effects down the right -------------------------------------------------- */
.tscr-fx__stage {
  position: absolute; left: var(--sa-l, 0px); top: 0; bottom: 0; right: calc(var(--sa-r, 0px) + 5.1rem);
  contain: layout paint; /* the banners' fixed .mpop fills this stage, not the screen */
  /* the board's box: 973 × 522 at 1.5 (the recording), smaller when the stage (the screen less the list) is */
  --map-w: min(14.54rem, calc(100vw - 4.8rem - var(--sa-l, 0px) - var(--sa-r, 0px)), calc((100vh - .3rem) * 1.864));
  --map-w: min(14.54rem, calc(100vw - 4.8rem - var(--sa-l, 0px) - var(--sa-r, 0px)), calc((100svh - .3rem) * 1.864));
  --map-h: calc(var(--map-w) / 1.864);
}
.tscr-fx__map {
  position: absolute; left: 50%; top: 50%; width: var(--map-w); height: var(--map-h); transform: translate(-50%, -52%);
  /* exactly --map-w × --map-h (the global img max-width would squeeze it when the board is wider than the stage, and the
     HUD, avatars and trap placed from --map-w would drift off it); the stage's paint containment clips the overhang */
  max-width: none; object-fit: fill; pointer-events: none;
}
.tscr-fx__map--none {
  display: block;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .35) 1px, transparent 1px) 0 0 / 8.3% 100%,
    linear-gradient(0deg, rgba(0, 0, 0, .35) 1px, transparent 1px) 0 0 / 100% 12.5%,
    linear-gradient(180deg, #8c8f8f, #d7d9d9 40%, #b9bbbb);
  -webkit-mask: radial-gradient(70% 70% at 50% 50%, #000 60%, transparent 100%);
  mask: radial-gradient(70% 70% at 50% 50%, #000 60%, transparent 100%);
  opacity: .55;
}
/* 可露希尔's shop trap (the official special_desc_trap picture) where the official preview puts it: --trap-x/y/w/h are
   fractions of the board (themeScreenModel.js PREVIEW_TRAP_BOX); above the board, under the HUD, avatars and banners */
.tscr-fx__trap {
  position: absolute; z-index: 1; pointer-events: none; object-fit: contain;
  left: calc(50% - var(--map-w) / 2 + var(--map-w) * var(--trap-x, 0));
  top: calc(50% - var(--map-h) * .52 + var(--map-h) * var(--trap-y, 0));
  width: calc(var(--map-w) * var(--trap-w, 0)); height: calc(var(--map-h) * var(--trap-h, 0));
}
/* the top bar over the board's far edge, the 机变 countdown at its top right, the avatars down its left */
.tscr-fx__hud { position: absolute; left: 50%; top: calc(50% - var(--map-h) * .52 + .24rem); z-index: 2; transform: translateX(-50%); }
/* the goal plate sits above the middle, as in the official preview (its prefab is a full-screen root; [ASSUMED] the
   offset, measured: the plate's middle at 42 % of the screen) */
.tscr-fx__stage .mpop[data-testid="game-start-banner"] { padding-bottom: 1.4rem; }
.tscr-fx__clock { position: absolute; right: calc(50% - var(--map-w) / 2 + .62rem); top: calc(50% - var(--map-h) * .52 - .06rem); z-index: 2; }
.tscr-fx__team {
  position: absolute; left: calc(50% - var(--map-w) / 2 + 1.35rem); top: calc(50% - var(--map-h) * .52 + 1.2rem); z-index: 2;
  display: flex; flex-direction: column; gap: .177rem;
  transform: scale(1.3); transform-origin: 0 0;
}
.tscr-fx__av { position: relative; display: block; width: .8rem; height: .8rem; }
/* a custom pack's banner picture, as it is */
.tscr-fx__pic {
  position: absolute; left: 50%; top: 50%; z-index: 3; max-width: 80%; max-height: 46%; transform: translate(-50%, -50%);
  object-fit: contain; filter: drop-shadow(0 .06rem .2rem rgba(0, 0, 0, .7));
  animation: tscr-pic 300ms ease-out backwards;
}
.tscr-fx__pic.is-still { animation: none; }
.tscr-fx__none {
  position: absolute; left: 50%; top: 50%; z-index: 3; max-width: 80%; margin: 0; transform: translate(-50%, -50%);
  padding: .2rem .4rem; background: rgba(0, 0, 0, .66); border: 1px solid rgba(255, 255, 255, .14);
  font-size: calc(.3 * var(--t)); line-height: 1.4; color: #d6d8d8; text-align: center;
}
.tscr-fx__side {
  position: absolute; right: calc(var(--sa-r, 0px) + .4rem); top: calc(var(--sa-t, 0px) + .6rem); bottom: .5rem; width: 4.7rem;
  display: flex; flex-direction: column; align-items: center;
}
/* the header (variant_skin_effect_list_desc: ▲ STRONGHOLD PROTOCOL), dim */
.tscr-fx__head { flex: none; height: .36rem; width: auto; margin-bottom: .1rem; opacity: .55; }
.tscr-fx__head--none { display: block; font-family: var(--font-display); font-size: calc(.2 * var(--t)); line-height: .36rem; letter-spacing: .08em; color: #8e9090; }
.tscr-fx__list {
  flex: 1 1 auto; min-height: 0; width: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  display: flex; flex-direction: column; gap: .39rem;
  padding: .14rem .04rem .5rem;
  -webkit-mask: linear-gradient(180deg, transparent, #000 .14rem, #000 calc(100% - .5rem), transparent);
  mask: linear-gradient(180deg, transparent, #000 .14rem, #000 calc(100% - .5rem), transparent);
}
.tscr-fx__list::-webkit-scrollbar { display: none; }
/* an effect (the recording: a 470 × 95 black pill with a light rim; the one playing turns light grey) */
.tscr-fx__btn {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: max(.95rem, 32px, calc(44px * var(--sp-ui, 1)));
  /* the name a little right of the middle, clear of the icon (the recording: its middle .2rem right of the pill's) */
  padding: .04rem .75rem .04rem 1.15rem;
  border: .035rem solid #d6d8d8; border-radius: .5rem;
  background: #050505; color: #f6f6f6;
  box-shadow: 0 0 .06rem rgba(255, 255, 255, .22), 0 .04rem .12rem rgba(0, 0, 0, .7), inset 0 0 0 .02rem #262727;
  font-size: calc(.32 * var(--t)); font-weight: 500; line-height: 1.1; text-align: center; text-wrap: balance;
  cursor: var(--sp-cursor-pointer, pointer);
}
.tscr-fx__btn:hover { background: #151616; }
.tscr-fx__btn:focus-visible { outline: 2px solid #5df0c6; outline-offset: 2px; }
.tscr-fx__btn.is-on { background: linear-gradient(180deg, #e2e3e3, #c9caca); color: #121212; }
.tscr-fx__ico { position: absolute; left: .5rem; top: 50%; width: .6rem; height: .6rem; transform: translateY(-50%); object-fit: contain; }
.tscr-fx__btn.is-on .tscr-fx__ico { filter: brightness(0); }
.tscr-fx__ico--none { display: block; width: .34rem; height: .34rem; margin-left: .13rem; border: .04rem solid currentColor; border-radius: 50%; }
.tscr-fx__name { min-width: 0; overflow-wrap: break-word; }
/* what plays (variant_skin_list_info_bg) */
.tscr-fx__now {
  position: absolute; left: calc(var(--sa-l, 0px) + .83rem); bottom: calc(var(--sa-b, 0px) + .62rem); z-index: 4;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.77rem; height: .5rem; padding: 0 .28rem;
  border-radius: .25rem; background: rgba(78, 80, 80, .42);
  font-size: calc(.28 * var(--t)); line-height: 1.2; color: #a0a2a2; white-space: nowrap;
}

/* ---- 卫戍语音: the theme's art, its lines down the right -------------------------------------------------------- */
.tscr-vo__stage { position: absolute; left: var(--sa-l, 0px); top: 0; bottom: 0; right: calc(var(--sa-r, 0px) + 5.1rem); display: grid; place-items: center; }
.tscr-vo__art {
  width: min(13.2rem, 100%); height: auto; max-height: calc(100% - 1.6rem); object-fit: contain;
  -webkit-mask: radial-gradient(64% 62% at 50% 50%, #000 58%, transparent 100%);
  mask: radial-gradient(64% 62% at 50% 50%, #000 58%, transparent 100%);
  animation: tscr-pic 300ms ease-out backwards;
}
.tscr-vo__side {
  position: absolute; right: calc(var(--sa-r, 0px) + .46rem); top: calc(var(--sa-t, 0px) + .4rem); bottom: calc(var(--sa-b, 0px) + .4rem); width: 4.28rem;
  display: flex; flex-direction: column;
}
.tscr-vo__quiet { flex: none; margin: 0 0 .12rem; padding: .08rem .12rem; background: rgba(0, 0, 0, .6); font-size: calc(.2 * var(--t)); line-height: 1.4; color: #f1b968; }
.tscr-vo__wait { margin: .2rem 0; font-size: calc(.24 * var(--t)); color: #9a9c9c; }
.tscr-vo__list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  display: flex; flex-direction: column; gap: .14rem; padding-bottom: .4rem;
  -webkit-mask: linear-gradient(180deg, #000 calc(100% - .5rem), transparent);
  mask: linear-gradient(180deg, #000 calc(100% - .5rem), transparent);
}
.tscr-vo__list::-webkit-scrollbar { display: none; }
/* a line (variant_skin_audio_voice_item_normal / _playing: a black box with its ▶, light grey with ■ while it plays) */
.tscr-vo__row {
  flex: none; display: flex; align-items: center; gap: .26rem;
  width: 100%; min-height: max(1.04rem, 32px, calc(44px * var(--sp-ui, 1)));
  padding: .04rem .2rem .04rem .3rem;
  border: .03rem solid #8b8d8d; background: #020202; color: #f2f2f2;
  box-shadow: 0 .03rem .1rem rgba(0, 0, 0, .7);
  font-size: calc(.3 * var(--t)); line-height: 1.15; text-align: left;
  cursor: var(--sp-cursor-pointer, pointer);
}
/* the pictures' plate is their top 59 of 73 rows (a shadow under it): the line sits on the plate */
.tscr-vo__row.has-art { border: 0; box-shadow: none; padding-bottom: calc(14 / 73 * max(1.04rem, 32px, calc(44px * var(--sp-ui, 1)))); background: var(--tscr-row) center / 100% 100% no-repeat; }
.tscr-vo__row.has-art .tscr-vo__ico { visibility: hidden; }
.tscr-vo__row:hover { filter: brightness(1.15); }
.tscr-vo__row:focus-visible { outline: 2px solid #5df0c6; outline-offset: 2px; }
.tscr-vo__row.is-playing { background-color: #d2d3d3; color: #111; }
.tscr-vo__row.is-playing.has-art { background-color: transparent; }
.tscr-vo__ico { flex: none; display: grid; place-items: center; width: .32rem; height: .32rem; }
.tscr-vo__ico .icon { width: .32rem; height: .32rem; }
.tscr-vo__stop { display: block; width: .2rem; height: .2rem; background: currentColor; }
.tscr-vo__name { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }

/* ---- the 规程 lobby's 更换主题 (bottom left; the recording: the tools in grey brackets, the name under them) ------- */
.theme-entry {
  position: absolute; left: .36rem; bottom: .3rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .05rem;
  min-width: max(1.1rem, 32px, calc(44px * var(--sp-ui, 1)));
  padding: .04rem .06rem;
  border: 0; background: none; color: #f2f2f2;
  cursor: var(--sp-cursor-pointer, pointer);
  animation: tr-rise 440ms var(--tr-ease, ease-out) 300ms backwards;
}
.theme-entry__box { position: relative; display: grid; place-items: center; width: .97rem; height: .8rem; }
/* the left column stands above it (every lobby with the entry, data-extras): it ends where the entry begins and scrolls
   when its cards and the tips do not fit — a long tip at 特大 in an 800×600 – 1100×530 window ran under 「更换主题」
   (the label sweep, §37.406). The reserve is the entry's own height (padding, box, gap, a line of its label) less the
   stage's padding it stands in, plus the column's gap. */
.lobby-hub[data-extras] .hub-side {
  margin-bottom: calc(1.02rem + .312 * var(--t));
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.lobby-hub[data-extras] .hub-side::-webkit-scrollbar { display: none; }
.lobby-hub[data-extras] .hub-side > * { flex: none; }
.theme-entry__glyph { width: .56rem; height: .56rem; fill: #f4f4f4; filter: drop-shadow(0 .02rem .04rem rgba(0, 0, 0, .7)); }
.theme-entry__brk { position: absolute; left: 0; top: .02rem; bottom: .02rem; width: .1rem; border: .025rem solid #8d8f8f; border-right: 0; }
.theme-entry__brk--r { left: auto; right: 0; border: .025rem solid #8d8f8f; border-left: 0; }
.theme-entry__label { font-size: calc(.26 * var(--t)); line-height: 1.2; white-space: nowrap; text-shadow: 0 .02rem .06rem rgba(0, 0, 0, .85); }
.theme-entry:hover .theme-entry__glyph, .theme-entry:focus-visible .theme-entry__glyph { fill: #fff; filter: drop-shadow(0 0 .08rem rgba(93, 240, 198, .7)); }
.theme-entry:focus-visible { outline: 2px solid #eef0ef; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .tscr, .tscr__preview, .tscr-fx__pic, .tscr-vo__art, .theme-entry { animation: none; }
}

/* ---- short screens (≤ 520 px tall: a phone held sideways, 1rem = 40–48 px) ------------------------------------- */
@media (max-height: 520px) {
  .tscr { --tscr-bar: 1.3rem; --tscr-side: 3.6rem; --tscr-side-r: .3rem; }
  .tscr__back { left: calc(var(--sa-l, 0px) + .12rem); top: calc(var(--sa-t, 0px) + .1rem); width: max(1.6rem, 32px, calc(64px * var(--sp-ui, 1))); height: 44px; }
  .tscr__side { top: calc(var(--sa-t, 0px) + .14rem); gap: .12rem; }
  .tscr__sort { height: max(.5rem, 32px); font-size: min(calc(.3 * var(--t)), calc(14px + var(--t-step))); }
  .tscr__item { height: 1.48rem; }
  .tscr__import { height: 44px; font-size: min(calc(.28 * var(--t)), calc(13px + var(--t-step))); }
  .tscr__itemname { font-size: min(calc(.3 * var(--t)), calc(13px + var(--t-step))); }
  .tscr__preview { top: calc(50% + .3rem); max-height: calc(100% - 1.6rem); }
  .tscr__bar { gap: .16rem; padding-left: calc(var(--sa-l, 0px) + .3rem); padding-right: calc(var(--sa-r, 0px) + .26rem); }
  .tscr__name { font-size: min(calc(.4 * var(--t)), calc(17px + var(--t-step))); }
  .tscr__desc { font-size: min(calc(.26 * var(--t)), calc(12px + var(--t-step))); }
  .tscr__acts { gap: .12rem; }
  .tscr__small { min-width: 0; height: 44px; padding: 0 .16rem; font-size: min(calc(.28 * var(--t)), calc(13px + var(--t-step))); }
  .tscr__apply { min-width: max(3.2rem, 32px, calc(120px * var(--sp-ui, 1))); height: 44px; margin-left: .06rem; padding-right: .6rem; font-size: min(calc(.4 * var(--t)), calc(16px + var(--t-step))); }
  .tscr__apply.has-art { padding-left: .86rem; }
  .tscr-fx__stage, .tscr-vo__stage { right: calc(var(--sa-r, 0px) + 4.1rem); }
  .tscr-fx__stage {
    --map-w: min(14.54rem, calc(100vw - 3.8rem - var(--sa-l, 0px) - var(--sa-r, 0px)), calc((100vh - .2rem) * 1.864));
    --map-w: min(14.54rem, calc(100vw - 3.8rem - var(--sa-l, 0px) - var(--sa-r, 0px)), calc((100svh - .2rem) * 1.864));
  }
  .tscr-fx__side { right: calc(var(--sa-r, 0px) + .22rem); top: calc(var(--sa-t, 0px) + .16rem); bottom: .16rem; width: 3.7rem; }
  .tscr-fx__list { gap: .16rem; padding-bottom: .4rem; }
  .tscr-fx__btn { min-height: 44px; padding: .03rem .5rem .03rem .9rem; font-size: min(calc(.3 * var(--t)), calc(14px + var(--t-step))); }
  .tscr-fx__ico { left: .3rem; width: .5rem; height: .5rem; }
  .tscr-fx__now { left: calc(var(--sa-l, 0px) + .3rem); bottom: calc(var(--sa-b, 0px) + .2rem); font-size: min(calc(.28 * var(--t)), calc(13px + var(--t-step))); }
  .tscr-fx__none { font-size: min(calc(.3 * var(--t)), calc(14px + var(--t-step))); }
  .tscr-vo__side { right: calc(var(--sa-r, 0px) + .22rem); top: calc(var(--sa-t, 0px) + .16rem); bottom: calc(var(--sa-b, 0px) + .16rem); width: 3.7rem; }
  .tscr-vo__list { gap: .1rem; }
  .tscr-vo__row { min-height: 44px; font-size: min(calc(.3 * var(--t)), calc(14px + var(--t-step))); }
  .theme-entry { left: .3rem; bottom: .16rem; }
  .theme-entry__label { font-size: min(calc(.26 * var(--t)), calc(12px + var(--t-step))); }
}
