@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-900.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #092d2c;
  --panel: #0a3735;
  --mint: #00c7b1;
  --light-mint: #a5ffef;
  --pink: #d0428e;
  --white: #f1f8f6;
  --muted: #c0e5dd;
  --line: #4a9b91;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100dvh;
  background: var(--night);
  color: var(--white);
  font: 400 1rem/1.55 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a[href] { cursor: pointer; }
:focus-visible { outline: 3px solid #f4fff9; outline-offset: 4px; }
::selection { color: var(--night); background: var(--mint); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
  padding: env(safe-area-inset-top, 0px) clamp(1rem, 4.5vw, 5rem) 0;
  border-bottom: 1px solid #6ae3d4;
  background: #092d2c;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand img { width: 148px; height: 47px; object-fit: contain; object-position: left center; }
.top-context {
  white-space: nowrap;
  color: var(--muted);
  font: 700 .8rem/1 var(--mono);
  letter-spacing: .11em;
}
.top-context span { color: var(--mint); }
.back-home {
  margin-left: auto;
  padding: .55rem .8rem;
  color: var(--light-mint);
  border: 1px solid #2e6b64;
  font-size: .875rem;
  font-weight: 750;
}
.back-home:hover { color: var(--night); background: var(--mint); }
.back-home:not([hidden]) + .top-context { display: none; }
.screen { min-height: 0; position: relative; }
.home {
  position: relative;
  isolation: isolate;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(112deg,#0d5b55 0 14%,#07776e 14% 38%,#008a7d 38% 66%,#076b63 66% 88%,#12635c 88%),
    #008a7d;
}
.home::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 0 0;
  pointer-events: none;
  background: #34c8b3;
  clip-path: polygon(0 0,30% 0,27% 7%,47% 7%,43% 18%,24% 18%,18% 36%,0 36%,0 29%,13% 29%,17% 16%,0 16%);
  opacity: .6;
}
.home::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 0 0;
  pointer-events: none;
  background: linear-gradient(112deg,#0a5d54 0 48%,#086b60 48% 68%,#075a52 68% 100%);
  clip-path: polygon(0 94%,23% 94%,25% 90%,47% 90%,45% 96%,67% 96%,71% 88%,100% 88%,100% 100%,0 100%);
  opacity: .7;
}
.field-accents {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(#ecfff5ac,#ecfff5ac) 7% 92% / clamp(26px,9vw,126px) 1px no-repeat,
    linear-gradient(#ecfff5a3,#ecfff5a3) 96% 12% / clamp(23px,7vw,102px) 1px no-repeat;
}
.field-accents::before,
.field-accents::after {
  content: "";
  position: absolute;
  height: clamp(5px,1vh,10px);
  background: #eafff3;
  pointer-events: none;
}
.field-accents::before {
  top: 11%;
  left: 6%;
  width: clamp(46px,14vw,226px);
  clip-path: polygon(6% 0,100% 0,94% 48%,61% 48%,55% 100%,0 100%);
  opacity: .88;
}
.field-accents::after {
  right: 4.4%;
  bottom: 4.6%;
  width: clamp(51px,16vw,248px);
  clip-path: polygon(8% 0,100% 0,93% 52%,52% 52%,45% 100%,0 100%);
  opacity: .91;
}
.home-frame {
  position: relative;
  width: min(100% - clamp(2.3rem, 8vw, 10rem), 1580px);
  margin-inline: auto;
  height: 100%;
}
.home-left, .main-menu {
  position: absolute;
  top: 50%;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition: opacity .24s ease, transform .4s ease, visibility 0s;
}
.home-left { left: -1%; width: clamp(240px, 44vw, 770px); }
.home-title {
  position: relative;
  margin: 0;
  transform: perspective(630px) rotateY(39deg);
  transform-origin: 45% center;
}
.home-title img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 .35rem .6rem #002f2b60);
}
.main-menu { right: 0; width: clamp(224px, 29vw, 445px); }
.menu-plane {
  position: relative;
  display: grid;
  gap: var(--menu-row-gap, clamp(.55rem, 1.45vh, 1rem));
  transform: perspective(625px) rotateY(-37deg);
  transform-origin: 58% center;
}
.screen:not([data-panel="home"]) .home-left,
.screen:not([data-panel="home"]) .main-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .45s ease, visibility 0s .22s;
}
.screen:not([data-panel="home"]) .home-left { transform: translate(-1.6rem,-50%); }
.screen:not([data-panel="home"]) .main-menu { transform: translate(1.6rem,-50%); }
.showcase {
  position: absolute;
  inset: 0 auto 0 51%;
  width: min(49vw, 730px);
  transform: translateX(-50%);
  transition: left .64s cubic-bezier(.2,.7,.16,1), width .64s cubic-bezier(.2,.7,.16,1), transform .64s cubic-bezier(.2,.7,.16,1);
}
.screen:not([data-panel="home"]) .showcase {
  left: calc(50% - 25vw);
  transform: translateX(-50%) scale(.73);
}

.stage { position: absolute; inset: 0 -17% 0 -16%; isolation: isolate; overflow: hidden; }
.screen:not([data-panel="home"]) .stage { inset-inline: -16%; }
.stage-plate {
  position: absolute;
  inset: 12% 8% 10%;
  background: linear-gradient(139deg,#eafff5 0 24%,#acede0 24% 38%,#daf7ee 38% 66%,#76d8c7 66%);
  clip-path: polygon(20% 2%,58% 2%,60% 0,95% 0,90% 14%,99% 14%,84% 60%,72% 60%,61% 100%,27% 100%,30% 90%,14% 90%,17% 82%,1% 82%,12% 49%,6% 49%);
}
.stage-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(111deg, transparent 0 96px, #095d541e 96px 99px, transparent 99px 124px, #0c6f6426 124px 145px);
  clip-path: polygon(55% 0,100% 0,100% 63%,70% 63%,62% 100%,21% 100%);
}
.stage-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #04776d;
  clip-path: polygon(0 79%,22% 79%,25% 70%,43% 70%,38% 85%,66% 85%,61% 100%,0 100%);
  opacity: .68;
}
.stage-strike {
  position: absolute;
  inset: 7% 5% 10% 6%;
  background: #b6387b;
  clip-path: polygon(81% 3%,95% 3%,93.5% 8.8%,79.5% 8.8%,81% 3%,0 0,17% 91%,27% 91%,25.7% 96%,15.7% 96%,17% 91%,0 0);
}
.stage-brackets {
  position: absolute;
  inset: 14% 12% 12% 10%;
  background:
    linear-gradient(#123f3b,#123f3b) 13% 0 / 12% 2px no-repeat,
    linear-gradient(#123f3b,#123f3b) 13% 0 / 2px 7% no-repeat,
    linear-gradient(#123f3b,#123f3b) 64% 100% / 14% 2px no-repeat;
}
.showcase-images { position: absolute; z-index: 1; inset: 0; mask-image: linear-gradient(#000 82%, transparent 99%); }
.showcase-image {
  position: absolute;
  inset: auto 0 -6%;
  width: 100%;
  max-width: none;
  height: 94%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transform: translateX(1rem) scale(.985);
  filter: drop-shadow(.45rem .6rem 1.3rem #0524216f) contrast(1.13) saturate(.87);
  transition: opacity .38s ease, transform .45s ease;
}
.showcase-image.is-active { opacity: 1; transform: none; }
.showcase-ui {
  position: absolute;
  z-index: 2;
  bottom: clamp(.85rem, 4.9vh, 3.4rem);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .62rem;
  width: max-content;
  max-width: 100%;
}
.player-label {
  display: grid;
  justify-items: center;
  min-width: 170px;
  padding: .48rem .9rem .52rem;
  background: #103b36;
  border-left: 3px solid var(--mint);
  border-block: 1px solid #57b4a3;
  clip-path: polygon(0 0,calc(100% - .85rem) 0,100% .85rem,100% 100%,0 100%);
}
.label-kicker { color: var(--light-mint); font: 700 .72rem/1.2 var(--mono); letter-spacing: .065em; }
.featured-name {
  color: var(--white);
  background: transparent;
  border: none;
  padding: 0 .3rem;
  font: 900 clamp(2.55rem, 4.6vw, 4.55rem)/.95 var(--display);
  letter-spacing: .02em;
}
.featured-name:hover { color: var(--light-mint); }
.featured-position { margin-top: .25rem; font-size: .81rem; color: #d3e5e1; }
.carousel-controls, .carousel-dots { display: flex; align-items: center; justify-content: center; gap: .31rem; }
.carousel-controls > button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  color: var(--light-mint);
  background: #103c37;
  border: 1px solid #63ac9f;
  padding: 0;
}
.carousel-controls > button:hover { background: var(--mint); color: var(--night); }
.carousel-prev span, .carousel-next span { width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; }
.carousel-prev span { transform: rotate(135deg); }
.carousel-next span { transform: rotate(-45deg); }
.carousel-dots button { display: grid; place-items: center; width: 21px; height: 34px; background: transparent; border: 0; padding: 0; }
.carousel-dots button::after { content: ""; width: 13px; height: 4px; background: #57817e; transform: skew(-26deg); }
.carousel-dots button[aria-pressed="true"]::after { background: #f1fff8; }
.menu-item {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: grid;
  grid-template-columns: 17px minmax(0,1fr);
  align-items: center;
  gap: clamp(.48rem, 1.2vw, 1.05rem);
  min-height: clamp(57px, 9vh, 89px);
  padding: .64rem 1.05rem;
  color: #f4fff8;
  background: #104942;
  border-left: 2px solid #a2eee0;
  clip-path: polygon(9px 0,calc(100% - 15px) 0,100% 14px,100% 72%,calc(100% - 12px) 72%,calc(100% - 22px) 100%,0 100%,0 54%,4px 54%,4px 9px);
  transition: background .18s ease, transform .18s ease;
}
.menu-item:first-child { color: #103934; background: #eafff7; border-left-width: 4px; }
.menu-item::after {
  content: "";
  position: absolute;
  width: 27px;
  height: 2px;
  right: 30px;
  bottom: 0;
  background: #74e6d5;
  transform: skewX(-38deg);
}
.menu-item:last-child::after { background: #e78ab5; }
.menu-item:hover, .menu-item:focus-visible { transform: translateX(-5px); background: #11675d; }
.menu-item:first-child:hover, .menu-item:first-child:focus-visible { background: #baf7e8; }
.menu-item:focus-visible { outline-offset: -4px; }
.menu-item:first-child:focus-visible { outline-color: #134d44; }
.menu-mark {
  width: 13px;
  height: 14px;
  justify-self: center;
  background: #8cddcf;
  clip-path: polygon(31% 0,100% 0,72% 100%,46% 100%,0 67%);
}
.menu-item:first-child .menu-mark { background: #037e70; }
.menu-item b, .menu-item small { display: block; }
.menu-item b { font-size: clamp(1rem,1.74vw,1.66rem); line-height: 1.26; }
.menu-item small { margin-top: .3rem; color: #c4eae1; font-size: .83rem; }
.menu-item:first-child small { color: #28594f; }
.view {
  position: absolute;
  inset: 0 0 0 50%;
  z-index: 2;
  isolation: isolate;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #a4ebdb #0d6058;
  animation: reveal-panel .55s .1s both cubic-bezier(.2,.72,.18,1);
}
@keyframes reveal-panel {
  from { opacity: 0; transform: translateX(1.4rem); }
  to { opacity: 1; transform: translateX(0); }
}
.panel { width: min(100% - 3.8rem, 1110px); margin: 0 auto; padding: clamp(1.8rem, 5vh, 3.6rem) 0 max(2rem, env(safe-area-inset-bottom)); }

.section-kicker { margin: 0 0 .65rem; color: var(--light-mint); font: 700 .8rem/1.3 var(--mono); letter-spacing: .11em; }
.panel h2 { margin: 0; color: var(--white); font-size: clamp(1.55rem, 3.65vw, 3.45rem); line-height: 1.14; font-weight: 900; letter-spacing: -.035em; }
.roster-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.1rem; }
.filters { display: inline-flex; flex: 0 0 auto; padding: 3px; gap: 3px; border: 1px solid var(--line); background: #104a43; }
.filters button { min-height: 42px; padding: .35rem 1rem; border: 0; background: transparent; color: #d3dfdc; font-size: .9rem; font-weight: 750; }
.filters button[aria-pressed="true"] { background: var(--mint); color: #071310; }
.roster-description { margin: .9rem 0 1.6rem; color: var(--muted); }

.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .65rem; }
.player {
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  background: var(--panel);
  border: 1px solid #359487;
  color: var(--white);
}
.player::before { content: ""; position: absolute; left: 0; top: 0; z-index: 3; width: 36px; height: 3px; background: var(--mint); transform: skewX(-25deg); }
.player:hover { border-color: var(--mint); }
.player-art { position: relative; display: grid; width: 100%; aspect-ratio: 1.6; overflow: hidden; isolation: isolate; background: linear-gradient(126deg,#14584f 0 45%,#1a695f 45% 58%,#10493f 58%); }
.player-art::before { content: ""; position: absolute; z-index: -1; inset: -55%; transform: skewX(-27deg); background: repeating-linear-gradient(90deg, transparent 0 85px, #8af9dc24 85px 89px, transparent 89px 112px, #20bcae2f 112px 136px, transparent 136px 169px); }
.player-art::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent,var(--panel)); pointer-events: none; }
.player-art img { position: absolute; top: 5%; width: 100%; height: 139%; object-fit: contain; object-position: center top; }
.player-art.is-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center var(--photo-position,32%); }
.player-text { display: grid; align-content: start; width: 100%; gap: .22rem; flex: 1; padding: .15rem .58rem .64rem; }
.player-name-group { min-width: 0; }
.player-id { display: block; overflow-wrap: anywhere; font: 900 clamp(1.12rem, 1.95vw, 2.05rem)/.96 var(--display); }
.player-id.is-long { font-size: clamp(.98rem, 1.4vw, 1.38rem); }
.player-position { display: block; margin-top: .32rem; color: var(--muted); font: 700 .74rem/1.15 var(--mono); }
.player-grid .player-art { aspect-ratio: 1.16; }
.player-grid .player-art img { top: 7%; height: 210%; }
.player-grid .player-art.is-photo img { inset: 0; height: 100%; }

.channels {
  --channel-gap: clamp(.55rem, 1.45vw, 1.15rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: var(--channel-gap);
}
.social-panel {
  display: grid;
  width: min(calc(100% - clamp(1rem, 5vw, 3.8rem)), 47rem);
  min-height: 100%;
  padding-block: clamp(.8rem, 2.8vh, 2.15rem);
  align-content: center;
  gap: clamp(.65rem, 2.5vh, 1.85rem);
  container-type: inline-size;
}
#community { animation: none; }
.social-panel h2 { text-align: center; animation: reveal-panel .36s .08s both; }
.channel {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: .52rem;
  padding: .9rem clamp(.82rem,2vw,1.4rem) 1.15rem;
  color: #f1fff8;
  text-align: center;
  background: #103b36;
  border: 1px solid #a6eddf;
  clip-path: polygon(0 0,calc(100% - 1.1rem) 0,100% 1.1rem,100% 100%,1.15rem 100%,0 calc(100% - .72rem));
  animation: reveal-panel .52s .14s both cubic-bezier(.2,.72,.18,1);
}
.channel:nth-child(2) { animation-delay: .20s; }
.channel:nth-child(3) { animation-delay: .26s; }
.channel:hover { border-color: #eafff6; background: #174d45; }
.channel:focus-visible { outline-offset: -4px; }
.channel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .7rem;
  width: .36rem;
  height: 2.15rem;
  background: #d0428e;
  clip-path: polygon(0 0,100% 0,100% 78%,0 100%);
}
.qr-frame {
  position: relative;
  width: min(100%,196px);
  aspect-ratio: 1;
  margin: .13rem 0 .38rem;
  background: #00c7b1;
}
.qr-frame::before, .qr-frame::after {
  content: "";
  position: absolute;
  width: .8rem;
  height: .8rem;
  pointer-events: none;
  border: solid #d6fff3;
  z-index: 1;
}
.qr-frame::before { inset: -3px auto auto -3px; border-width: 2px 0 0 2px; }
.qr-frame::after { inset: auto -3px -3px auto; border-width: 0 2px 2px 0; }
.qr-frame img { width: 100%; height: auto; aspect-ratio: 1; }
.channel-tip {
  display: block;
  width: 100%;
  padding: .2rem .4rem .26rem;
  border-bottom: 1px solid #70ac9d;
  color: #a9ffec;
  font-size: .86rem;
  font-weight: 750;
}
.channel strong { font-size: clamp(1rem, 1.95vw, 1.2rem); overflow-wrap: anywhere; }
.channel-action { color: #a9ffec; font-size: .89rem; font-weight: 750; }

@container (width < 29rem) {
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel:nth-child(3) {
    grid-column: 1 / -1;
    width: calc((100% - var(--channel-gap)) / 2);
    justify-self: center;
  }
}
@container (width < 19rem) {
  .channels { width: min(100%, 15rem); margin-inline: auto; grid-template-columns: minmax(0, 1fr); }
  .channel:nth-child(3) { width: 100%; }
  .social-panel .channel { gap: .3rem; padding: .48rem; }
  .channel strong { line-height: 1.25; }
}

.echo-dialog {
  position: fixed;
  width: min(calc(100% - 1.5rem), 34rem);
  max-height: 90dvh;
  overflow: auto;
  margin: auto;
  padding: 0;
  border: 1px solid #9cead9;
  border-top: 3px solid var(--mint);
  background: #103b36;
  color: var(--white);
  box-shadow: 0 24px 70px #041e1bcc;
}
.echo-dialog::backdrop { background: #062522c9; backdrop-filter: blur(6px); }
.echo-form { display: grid; gap: .95rem; padding: clamp(1rem, 5vw, 2.25rem); }
.echo-form h2 {
  margin: 0 0 .2rem;
  color: var(--white);
  font-size: clamp(1.42rem, 5.3vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.echo-field { display: grid; gap: .28rem; }
.echo-field label { font-size: .92rem; font-weight: 750; }
.echo-field :is(textarea, input) {
  min-width: 0;
  width: 100%;
  padding: .55rem .65rem;
  border: 1px solid #6ab8ab;
  border-radius: 0;
  background: #092d2c;
  color: var(--white);
  font: inherit;
}
.echo-field textarea { resize: vertical; min-height: 4.5rem; }
.echo-field input::placeholder { color: #aacbc5; }
.echo-count { color: var(--light-mint); justify-self: end; font: 700 .78rem/1.25 var(--mono); }
.echo-note, .echo-status { margin: 0; font-size: .875rem; }
.echo-note { color: var(--muted); }
.echo-status { color: var(--light-mint); }
.echo-status:empty { display: none; }
.echo-actions { display: flex; justify-content: flex-end; gap: .55rem; }
.echo-actions button {
  min-height: 44px;
  padding: .45rem .92rem;
  border: 1px solid #7dc1b3;
  background: var(--night);
  color: var(--white);
  font-size: .92rem;
  font-weight: 750;
}
.echo-actions .echo-submit { background: var(--mint); color: var(--night); }
.echo-actions button:hover { border-color: var(--white); }
.echo-actions .echo-submit:disabled { cursor: wait; opacity: .62; }

.danmaku {
  position: absolute;
  z-index: 2;
  top: 4%;
  left: 0;
  right: 0;
  height: 6.4rem;
  overflow: hidden;
  pointer-events: none;
}
.danmaku-item {
  position: absolute;
  left: 100%;
  top: calc(var(--lane, 0) * 2.05rem);
  max-width: min(92vw, 37rem);
  overflow: hidden;
  padding: .19rem .55rem;
  color: var(--white);
  background: #092d2ce8;
  border-inline-start: 2px solid var(--light-mint);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .9rem;
  animation: drift-echo 11s linear both;
}
.danmaku-name { color: var(--light-mint); margin-inline-end: .52rem; unicode-bidi: isolate; }
@keyframes drift-echo { to { transform: translateX(calc(-100% - var(--travel))); } }

.profile { position: fixed; width: min(92vw, 760px); max-height: 89dvh; color: var(--white); background: #123d38; border: 1px solid #7eb9a9; box-shadow: 0 18px 95px #000b; overflow: auto; padding: 0; }
.profile[open] { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); }
.profile::backdrop { background: #030608c9; backdrop-filter: blur(5px); }
.profile-close { position: absolute; top: .65rem; right: .65rem; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #597c77; color: var(--white); background: #0a1518; font-size: 1.7rem; line-height: 1; }
.profile-close:hover { color: var(--mint); }
.profile .player-art { aspect-ratio: auto; height: 100%; min-height: 365px; }
.profile .player-art img { height: 112%; top: 7%; }
.profile .player-art.is-photo img { height: 100%; top: 0; }
.profile-content { display: grid; align-content: center; justify-items: start; padding: 3.2rem clamp(1.25rem, 4vw, 2.55rem) 2rem; }
.profile-role { margin: 0; color: var(--light-mint); font-size: .86rem; font-weight: 750; }
.profile h2 { margin: .45rem 0 0; font: 900 clamp(2.45rem, 7vw, 4.7rem)/.94 var(--display); overflow-wrap: anywhere; }
.profile-real-name { margin: .55rem 0 1.1rem; color: var(--muted); }
.profile-bio { margin: 0 0 1.05rem; line-height: 1.8; }
.profile-sources { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.profile-sources a { color: var(--light-mint); text-decoration: underline; text-underline-offset: .2em; font-size: .875rem; }


@media (max-width: 930px) and (orientation: portrait), (max-width: 610px) {
  .topbar { min-height: 57px; }
  .brand img { width: 126px; height: 39px; }
  .top-context { margin-left: auto; font-size: .69rem; letter-spacing: .045em; }
  .home-frame {
    --menu-row-height: clamp(55px, 8.35vh, 66px);
    --menu-row-gap: .36rem;
    --menu-inset: max(.68rem, env(safe-area-inset-bottom));
    --menu-height: calc(3 * var(--menu-row-height) + 2 * var(--menu-row-gap) + var(--menu-inset));
    width: min(100% - 1.65rem, 680px);
  }
  .home-left { top: clamp(.62rem, 2.55vh, 1.6rem); left: 0; width: min(86%, 405px); transform: none; }
  .home-title { transform: perspective(520px) rotateY(31deg); transform-origin: left top; }
  .menu-plane { transform: perspective(540px) rotateY(-24deg); transform-origin: right bottom; }
  .main-menu {
    top: auto;
    right: 0;
    bottom: 0;
    width: min(100%, 480px);
    gap: var(--menu-row-gap);
    padding: 0 0 var(--menu-inset);
    transform: none;
  }
  .screen:not([data-panel="home"]) .home-left { transform: translateX(-1.1rem); }
  .screen:not([data-panel="home"]) .main-menu { transform: translateX(1.1rem); }
  .showcase { inset: 0 auto auto 53%; width: 100%; height: calc(100% - var(--menu-height) - .35rem); }
  .screen:not([data-panel="home"]) .showcase { width: min(44vw, 320px); height: 100%; transform: translateX(-50%); }
  .screen:not([data-panel="home"]) .stage { inset: auto -3% 36%; height: min(54%, 59vw); }
  .screen:not([data-panel="home"]) .showcase-image { left: 0; width: 100%; }
  .screen:not([data-panel="home"]) .showcase-ui { left: 50%; bottom: max(.55rem, calc(36% - 5.1rem)); }
  .screen:not([data-panel="home"]) .player-label { min-width: min(133px, 100%); }
  .screen:not([data-panel="home"]) .carousel-controls,
  .screen:not([data-panel="home"]) .carousel-dots { gap: .15rem; }
  .screen:not([data-panel="home"]) .carousel-controls > button { width: 25px; }
  .screen:not([data-panel="home"]) .carousel-dots button { width: 12px; }
  .screen:not([data-panel="home"]) .carousel-dots button::after { width: 9px; }
  .stage { inset: 0 -12% 0 -8%; }
  .stage-plate { inset: 15% 4% 8% 8%; }
  .field-accents::before { top: 13%; width: 9%; opacity: .65; }
  .showcase-image { left: 3%; width: 97%; height: 96%; bottom: -11%; }
  .showcase-ui { left: 51%; bottom: .47rem; gap: .34rem; }
  .player-label { min-width: 133px; padding: .29rem .65rem; }
  .featured-name { font-size: clamp(2.05rem, 7vw, 3.8rem); }
  .featured-position { font-size: .75rem; }
  .carousel-controls > button { height: 33px; width: 37px; }
  .carousel-dots button { height: 33px; }
  .menu-item { min-height: 0; height: var(--menu-row-height); padding: .42rem .7rem; gap: .62rem; }
  .menu-item b { font-size: clamp(1.08rem, 3.7vw, 1.3rem); }
  .menu-item small { display: none; }
  .menu-item:hover, .menu-item:focus-visible { transform: none; }
  #roster .panel { width: calc(100% - 1.42rem); padding-top: 1.52rem; }
  .panel h2 { line-height: 1.17; }
  .filters button { min-height: 37px; padding-inline: clamp(.3rem, 1.4vw, .58rem); font-size: .81rem; }
  .roster-description { margin: .72rem 0 1.08rem; font-size: .94rem; }
  .player-grid { grid-template-columns: repeat(auto-fill,minmax(104px,1fr)); gap: .47rem; }
  .player-text { padding: .12rem .43rem .55rem; }
  .channel { padding: .72rem; }
  .danmaku { top: clamp(4.65rem, 13vh, 7rem); }
}
@media (max-width: 610px) {
  .danmaku { height: 4.3rem; }
  .danmaku-item { font-size: .82rem; }
}
@media (max-width: 520px) {
  .profile[open] { display: block; }
  .profile .player-art { height: 182px; min-height: 0; }
  .profile .player-art img { height: 150%; }
  .profile .player-art.is-photo img { height: 100%; }
  .profile-content { padding: 1.05rem 1.15rem 1.25rem; }
}
@media (max-height: 500px) and (orientation: landscape) and (min-width: 611px) {
  .topbar { min-height: 48px; }
  .topbar .brand img { width: 105px; height: 34px; }
  .home-frame { width: calc(100% - 2.2rem); }
  .home-left { width: clamp(205px, 35%, 318px); }
  .main-menu { width: clamp(167px, 29%, 247px); }
  .menu-plane { transform: perspective(440px) rotateY(-33deg); }
  .menu-item { min-height: 46px; padding: .32rem .64rem; }
  .menu-item b { font-size: .89rem; }
  .menu-item small { font-size: .72rem; margin-top: .13rem; }
  .showcase-ui { bottom: .34rem; gap: .26rem; }
  .player-label { min-width: 105px; padding: .25rem .47rem; }
  .featured-name { font-size: 2rem; }
  .featured-position, .label-kicker { font-size: .68rem; }
  .carousel-controls > button, .carousel-dots button { height: 28px; }
  .carousel-controls > button { width: 29px; }
  .carousel-dots button { width: 14px; }
  .carousel-dots button::after { width: 9px; }
  .social-panel { padding-block: .6rem; gap: .65rem; }
  .social-panel h2 { font-size: clamp(1.55rem, 3.65vw, 2.25rem); }
  .social-panel .channel { padding-block: .52rem .68rem; gap: .32rem; }
  .social-panel .qr-frame { width: min(100%, 196px, max(114px, calc(100dvh - 216px))); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .danmaku { display: flex; justify-content: center; align-content: start; flex-wrap: wrap; gap: .28rem; }
  .danmaku-item { position: static; align-self: start; }
}
