@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Barlow:wght@400;500;600;700&display=swap");
@import url('./gacha.css?v=gacha-tela-cheia-1');
@import url('./avatar-framing.css?v=avatar-torso-3');
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  color-scheme: dark;
  --bg: #131819;
  --panel: #202729;
  --line: #354043;
  --muted: #a4b4b6;
  --red: #e34e49;
  --mint: #76c3ab;
  --gold: #e8c16a;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  background: var(--bg);
  color: #f3f5f0;
  font:
    16px Barlow,
    Arial,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  border-radius: 5px;
  padding: 11px 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition:
    background 0.16s,
    border-color 0.16s;
}
button:hover {
  background: #303a3c;
  border-color: #758688;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
button.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
  font-weight: 700;
}
button.primary:hover {
  background: #ef625a;
}
button.mint {
  background: var(--mint);
  color: #11201d;
  font-weight: 700;
  border-color: var(--mint);
}
button.plain {
  border-color: transparent;
  background: transparent;
}
h1,
h2,
h3,
.wordmark,
.display {
  font-family: "Barlow Condensed", Impact, Arial, sans-serif;
  margin: 0;
  font-weight: 800;
}
h1 {
  font-size: 46px;
}
h2 {
  font-size: 32px;
}
h3 {
  font-size: 24px;
}
p {
  line-height: 1.5;
  color: var(--muted);
}
.icon {
  width: 42px;
  height: 42px;
  padding: 0;
  flex: 0 0 auto;
}
.wordmark {
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 25px;
  padding: 0;
}
.wordmark b {
  color: var(--red);
  font-size: 19px;
}
#header {
  height: calc(76px + var(--safe-top));
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 36px;
  padding: var(--safe-top) max(34px, var(--safe-right)) 0 max(34px, var(--safe-left));
  position: relative;
  z-index: 5;
  background: var(--bg);
}
nav {
  display: flex;
  gap: 7px;
}
nav button {
  border: 0;
  background: none;
  padding: 9px 12px;
  color: var(--muted);
}
nav button.active {
  color: white;
  background: #2b3436;
}
.header-tools {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: center;
}
#coins {
  border: 0;
  background: none;
  color: var(--gold);
  font-weight: 700;
  padding: 10px;
}
#app {
  min-height: calc(100dvh - 76px);
}
.loading {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
}
.loading span {
  font-size: 16px;
  color: var(--muted);
  margin-top: 15px;
}
.home {
  position: relative;
  min-height: calc(100dvh - 76px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  padding: 44px 6vw 64px;
}
.home:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--home-art, url("/assets/key-art.png")) right top / auto 100% no-repeat;
  z-index: -2;
}
.home:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(9, 14, 15, 0.9),
      rgba(9, 14, 15, 0.35) 55%,
      transparent
    ),
    linear-gradient(0deg, #131819, transparent 55%);
  z-index: -1;
}
.home h1 {
  font-size: 88px;
  line-height: 0.95;
  max-width: 500px;
}
.home h1 span {
  color: var(--red);
}
.home .eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.home p {
  font-size: 18px;
  max-width: 410px;
}
.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.home-meta {
  display: flex;
  gap: 25px;
  margin-top: 30px;
  color: #c2cdcb;
  font-size: 14px;
}
.page {
  max-width: 1320px;
  margin: auto;
  padding: 32px 34px 60px;
}
.page-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.page-head p {
  margin: 5px 0;
}
.events-page { max-width: 1120px; }
.events-list { display: grid; gap: 20px; }
.event-card {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 232px; border: 1px solid #5b4945; border-left: 4px solid var(--event-accent);
  border-radius: 6px; background: #18191d; --event-accent: #ffa55f;
}
.event-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.event-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #151017f2, #231328ad 58%, #15101740); }
.event-content { min-height: inherit; padding: 24px 28px; display: grid; align-content: center; justify-items: start; gap: 14px; }
.event-symbol { display: flex; color: var(--event-accent); }
.event-symbol svg { width: 32px; height: 32px; }
.event-card h2 { font-size: 34px; color: var(--event-accent); line-height: 1.1; overflow-wrap: anywhere; }
.event-card .event-coming { opacity: 1; color: #f1d5c1; background: #211c24e8; border-color: #796078; font-size: 14px; min-height: 44px; }
.event-card .event-coming:disabled { cursor: not-allowed; }
.event-tower { --event-accent: #8bd8cf; border-color: #45585a; border-left-color: var(--event-accent); }
.event-tower::before { background: linear-gradient(90deg, #101b1ef2, #122225a8 58%, #101b1e30); }
.event-tower .event-coming { color: #cfebe7; border-color: #476a69; background: #142629e8; }
.plaza-confirm-actions { justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 600px) {
  .event-card { min-height: 204px; }
  .event-content { padding: 20px; }
  .event-card h2 { font-size: 30px; }
}
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.split {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.25fr);
  gap: 34px;
}
.split > * { min-width: 0; }
.phase > div { min-width: 0; overflow-wrap: anywhere; }
.phase-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  text-align: left;
  padding: 0;
  overflow: hidden;
  min-height: 82px;
  width: 100%;
  border-radius: 5px;
}
.phase img {
  width: 92px;
  height: 84px;
  object-fit: cover;
}
.phase strong {
  font-size: 18px;
}
.phase span {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.phase .phase-number {
  font-size: 23px;
  margin-right: 16px;
  color: var(--gold);
  font-family: "Barlow Condensed", sans-serif;
}
.phase.selected {
  border-color: var(--mint);
  background: #263b36;
}
.stage-preview {
  width: 100%;
  aspect-ratio: 16/8.3;
  object-fit: cover;
}
.stage-detail {
  margin-top: 18px;
}
.stage-detail p {
  margin: 8px 0 18px;
}
.stage-detail h2 {
  font-size: 37px;
}
.profile-face { position: relative; display: inline-block; width: 40px; height: 40px; flex: 0 0 auto; overflow: hidden; border-radius: 50%; border: 1px solid #65716c; background: #29332f; }
.profile-face img { position: absolute; width: 210%; height: 210%; max-width: none; left: -55%; top: -10%; object-fit: cover; }
.profile-face[data-portrait="shion"] img { width: 185%; height: auto; left: -37%; top: 0; }
.profile-face[data-portrait="mochi"] img { width: 230%; height: auto; left: -59%; top: -1%; }
#header .profile-button { padding: 0; overflow: hidden; }
#header .profile-button .profile-face { width: 32px; height: 32px; border: 0; }
.profile-photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.profile-photo-row .profile-face, .avatar-current .profile-face { width: 64px; height: 64px; }
.avatar-current { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; margin-bottom: 22px; align-items: center; }
.avatar-current .profile-face { grid-row: span 2; }
.avatar-current > span:not(.profile-face) { color: #a6b6af; font-size: 13px; overflow-wrap: anywhere; }
.avatar-line { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-top: 1px solid #3b4843; }
.avatar-line h3 { font-size: 18px; margin: 10px 0; overflow-wrap: anywhere; }
.avatar-options { display: flex; gap: 12px; flex-wrap: wrap; }
button.avatar-choice { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 88px; min-height: 106px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #b5c3bc; }
.avatar-choice .profile-face { width: 64px; height: 64px; border-width: 2px; }
.avatar-choice[aria-pressed="true"] { color: #f3d177; }
.avatar-choice[aria-pressed="true"] .profile-face { border-color: #f3d177; box-shadow: 0 0 0 2px #f3d17722; }
.avatar-choice:hover .profile-face { border-color: #79d6ad; }
.avatar-choice:focus-visible { outline: 2px solid #79d6ad; outline-offset: 4px; }
.avatar-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; line-height: 1.4; max-width: 88px; text-align: center; }
.avatar-check { position: absolute; top: 44px; right: 10px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #f3d177; color: #171c19; }
.avatar-check svg { width: 15px; height: 15px; }
.avatar-picker-footer { padding-top: 20px; border-top: 1px solid #3b4843; margin-top: 16px; }
.stage-records { border-top: 1px solid #3b4843; border-bottom: 1px solid #3b4843; padding: 12px 0; margin: 16px 0 24px; min-height: 164px; }
.stage-record-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.stage-record-head h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 16px; }
.stage-record-head svg { width: 16px; height: 16px; color: #e7c46f; }
.stage-record-head > span { font-size: 12px; color: #a6b6af; }
.stage-record-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.stage-record-list li { display: grid; grid-template-columns: 18px 28px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 34px; font-size: 13px; }
.stage-record-list .profile-face { width: 28px; height: 28px; }
.record-rank { font-weight: 700; color: #a6b6af; }
.record-rank.rank-1 { color: #f3d177; }
.record-rank.rank-2 { color: #c4d5dc; }
.record-rank.rank-3 { color: #df9c7d; }
.record-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-person-name { display: inline; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; }
.record-person-name:hover { color: #f2cb68; text-decoration: underline; }
.record-person-face { display: block; border: 0; padding: 0; background: none; flex: 0 0 auto; border-radius: 0; }
.record-person-face + .record-person-face { margin-left: -7px; }
.record-person-face:focus-visible, .record-person-name:focus-visible { outline: 2px solid #73dba8; outline-offset: 2px; }
.record-faces { display: flex; align-items: center; }
.stage-record-list .record-team { grid-template-columns: 18px auto minmax(0, 1fr) auto; }
.record-team .record-name { white-space: normal; overflow-wrap: anywhere; line-height: 17px; }
.stage-record-list .record-team .profile-face { width: 24px; height: 24px; flex: 0 0 24px; }
.record-team .profile-face + .profile-face { margin-left: -7px; }
.record-time { display: grid; justify-items: end; gap: 2px; }
.record-time small { font-size: 10px; color: #a6b6af; }
.stage-record-list time { font-variant-numeric: tabular-nums; color: #dbe9df; }
.stage-records .record-empty { font-size: 13px; color: #a6b6af; margin: 4px 0; }
.auth-tabs { display: flex; gap: 0; border-bottom: 1px solid #4b5c53; margin: 16px 0 20px; }
.auth-tabs button { flex: 1; border-radius: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; justify-content: center; min-width: 0; }
.auth-tabs button[aria-selected="true"] { border-color: #83d7af; color: #a2ecc5; background: #263b32; }
.auth-success { padding: 12px; border-left: 3px solid #83d7af; background: #213d2c; color: #c5f4d8; font-size: 14px; }
.form-error { color: #ffc0b9; font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.identity-guest { margin-top: 24px; border-top: 1px solid #4b5c53; padding-top: 18px; }
.identity-guest h2 { font-size: 21px; margin: 0 0 14px; }
.identity-page h1 { font-size: 37px; }
.record-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 520px) { .avatar-line { grid-template-columns: minmax(0, 1fr); gap: 4px; } .avatar-line h3 { margin: 0 0 8px; } .avatar-options { gap: 8px; } button.avatar-choice { width: 80px; } }
.detail-meta {
  display: flex;
  gap: 20px;
  color: var(--gold);
  margin-bottom: 22px;
  font-size: 14px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 9px;
}
.hero-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  min-width: 0;
  text-align: center;
  aspect-ratio: 3/4.1;
}
.hero-card img {
  width: 100%;
  height: calc(100% - 37px);
  object-fit: cover;
  object-position: 50% 30%;
  background: #2d353a;
}
.hero-card span {
  font-size: 14px;
  font-weight: 600;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card.selected {
  border-color: var(--mint);
  outline: 1px solid var(--mint);
}
.hero-card.locked img {
  filter: grayscale(1);
  opacity: 0.35;
}
.rarity {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 800;
  text-shadow: 0 1px 4px black;
}
.rarity.R {
  color: #b5c2c7;
}
.rarity.SR {
  color: var(--mint);
}
.selection {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.selected-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 16px 0 20px;
}
.selected-info img {
  width: 60px;
  height: 65px;
  object-fit: cover;
  background: #242e32;
}
.selected-info p {
  font-size: 14px;
  margin: 4px 0;
}
.selected-info h3 {
  font-size: 25px;
}
.lobby-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.member {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #1d2627;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 18px;
  min-height: 140px;
}
.member img {
  width: 95px;
  height: 108px;
  object-fit: cover;
}
.member p {
  margin: 4px 0;
}
.ready {
  color: var(--mint);
  font-size: 14px;
}
.wait {
  color: var(--gold);
  font-size: 14px;
}
.lobby-bottom {
  margin-top: 28px;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.room-code {
  color: var(--gold);
  font-size: 32px;
  font-weight: 800;
  font-family: "Barlow Condensed", sans-serif;
}
.collection-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(300px, 1fr);
  gap: 40px;
}
.collection-grid > div { min-width: 0; }
.collection-grid .hero-card { min-width: 0; }
.character-detail {
  position: sticky;
  top: 20px;
  align-self: start;
}
.character-detail > img {
  height: 330px;
  width: 100%;
  object-fit: contain;
  background: #20292b;
}
.character-detail h2 {
  margin-top: 18px;
  font-size: 42px;
}
.stats {
  margin: 20px 0;
  display: grid;
  gap: 13px;
}
.stat {
  display: grid;
  grid-template-columns: 90px 1fr 45px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.track {
  height: 5px;
  background: #354042;
}
.track > i {
  display: block;
  height: 100%;
  background: var(--mint);
}
.special-info {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.gacha {
  position: relative;
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 35px 7vw;
  background:
    linear-gradient(90deg, #131819ee, #13181970),
    var(--street-art, url("/assets/street.png")) center/cover;
}
.gacha-art {
  display: flex;
  align-items: flex-end;
  min-width: 0;
}
.gacha-art img {
  width: 50%;
  height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 14px 10px #0008);
}
.gacha-art img:first-child {
  transform: rotate(-5deg);
}
.gacha h1 {
  font-size: 70px;
  line-height: 1;
}
.gacha .rates {
  color: var(--mint);
  font-size: 14px;
  margin-top: 28px;
}
.pity {
  max-width: 430px;
  margin: 24px 0;
}
.pity .track {
  height: 7px;
  margin-top: 8px;
}
.summons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.summon {
  position: relative;
  animation: reveal 0.45s both;
  min-width: 0;
  background: #283235;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  text-align: center;
}
.summon img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.summon p {
  font-size: 14px;
  margin: 7px 4px;
}
.summon strong {
  display: block;
  margin-top: 9px;
}
.summon.SSR {
  border-color: var(--gold);
}
.summon.SR {
  border-color: var(--mint);
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#skin-unlock {
  width: min(540px, calc(100vw - 24px));
  padding: 24px;
  border: 1px solid #77cfa7;
  border-radius: 8px;
  background: #15211f;
  color: #f3f7f4;
  box-shadow: 0 16px 60px #0009;
}
.player-title { display: block; color: var(--title-color); font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.player-title { width: fit-content; max-width: 100%; padding: 3px 7px; border-left: 3px solid var(--title-color); background: #111b20d9; text-shadow: 0 1px 2px #000; }
.player-title { position: relative; isolation: isolate; border-radius: 3px; }
.player-title .title-text { position: relative; z-index: 1; }
.player-hud { background: transparent; border: 0; }
.profile-hero { position: relative; overflow: hidden; min-height: 230px; background: #151d21; border-bottom: 3px solid var(--banner-color); }
.profile-banner-art { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center 40%; }
.profile-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0a121ce8 12%, #0a121cb3 48%, #0a121c22); pointer-events: none; }
.profile-banner-figure { position: absolute; right: 0; top: 0; height: 100%; width: 48%; object-fit: cover; object-position: center 15%; }
.profile-hero-content { position: relative; z-index: 1; padding: 22px; max-width: 76%; }
.profile-hero .profile-face { width: 66px; height: 66px; border: 2px solid var(--banner-color); display: block; margin-bottom: 10px; }
.profile-hero h2 { margin: 4px 0 10px; font-size: 26px; overflow-wrap: anywhere; }
.profile-status { font-size: 10px; font-weight: 700; color: #b9d9cd; }
.profile-banner-name { display: block; margin-top: 12px; font-size: 11px; color: #d0d9dc; }
.profile-hero .player-title { font-size: 13px; }
.profile-hero.cinematic { min-height: 0; }
.profile-hero.cinematic::after { display: none; }
.cinematic .profile-banner-art { position: relative; display: block; height: auto; aspect-ratio: 3 / 1; object-position: center; }
.cinematic .profile-hero-content { display: grid; grid-template-columns: 66px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; max-width: 100%; padding: 16px; }
.cinematic .profile-hero-content > :not(.profile-face) { grid-column: 2; min-width: 0; }
.cinematic .profile-hero-content .profile-face { grid-column: 1; grid-row: 1 / 5; margin: 0; align-self: center; }
.cinematic .profile-hero-content h2 { margin: 0; }
.cinematic .profile-banner-name { margin-top: 2px; }
.own-profile-body, .public-profile-body { padding: 18px 0 0; }
.profile-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #ffffff26; padding-bottom: 16px; gap: 12px; }
.profile-stat-strip span { display: flex; flex-direction: column; font-size: 11px; gap: 5px; color: #b8c9c0; overflow-wrap: anywhere; }
.profile-stat-strip strong { color: #fff; font-size: 21px; }
.profile-campaigns { display: grid; gap: 13px; }
.profile-campaigns > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; }
.profile-campaigns small { color: #a6b6af; }
.profile-campaigns progress { width: 100%; height: 5px; grid-column: 1 / -1; accent-color: #73dba8; }
.profile-friend-action { width: 100%; margin-top: 22px; }
.banner-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 20px; }
.banner-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.banner-filters button { padding: 8px 10px; font-size: 12px; }
.banner-filters [aria-selected='true'] { border-color: #79dbbd; color: #a9f0d4; }
.banner-filters small { margin-left: 4px; opacity: .7; }
.banner-option { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 24px; overflow: hidden; border-radius: 6px; text-align: left; border-color: #ffffff26; }
.banner-option > img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; grid-column: 1 / -1; }
.banner-option > span { display: grid; gap: 5px; padding: 10px; min-width: 0; }
.banner-option strong { overflow-wrap: anywhere; font-size: 13px; }
.banner-option small { font-size: 11px; color: #a8b7b0; overflow-wrap: anywhere; }
.banner-option > svg { width: 16px; height: 16px; margin-top: 12px; color: var(--banner-color); }
.banner-option[aria-pressed='true'] { border-color: var(--banner-color); }
.banner-option:disabled { opacity: .65; }
.banner-stage-reward { font-size: 12px; color: #f2cb68; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.banner-stage-reward svg { width: 16px; height: 16px; }
@media (max-width: 480px) {
  .profile-hero-content { padding: 16px; max-width: 86%; }
  .profile-hero h2 { font-size: 22px; }
  .profile-banner-figure { width: 50%; opacity: .85; }
  .banner-options { grid-template-columns: minmax(0, 1fr); }
  .profile-stat-strip strong { font-size: 18px; }
}
.gacha-tabs { display: flex; gap: 4px; padding: 12px 24px; border-bottom: 1px solid #ffffff20; }
.gacha-tabs [aria-selected="true"] { border-color: #e57578; color: #ffd2d0; }
.skin-gacha-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 16px 0; border-block: 1px solid #ffffff20; }
.skin-gacha-controls > div { display: grid; gap: 8px; align-content: start; }
.skin-gacha-controls small { color: #b9c5c4; }
.skin-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.skin-item { border: 1px solid #ffffff24; border-radius: 6px; overflow: hidden; background: #172124; }
.skin-item .rarity { position: static; display: inline-block; }
.skin-owned { border-color: #79b59a; }
.skin-item > div:not(.skin-figure) { padding: 12px; }
.skin-item h3 { margin: 6px 0; font-size: 18px; }
.skin-item strong { font-size: 14px; }
.skin-item p { font-size: 12px; color: #b9c5c4; margin: 8px 0 0; }
.skin-item p svg { width: 14px; height: 14px; vertical-align: middle; }
.skin-figure { position: relative; overflow: hidden; width: 180px; aspect-ratio: 256 / 288; margin: 12px auto 0; }
.skin-figure img, .summon .skin-figure img { position: absolute; top: auto; bottom: 0; left: calc(50% - var(--skin-scale, 1) * 50%); height: calc(100% * var(--skin-scale, 1)); width: auto; max-width: none; object-fit: initial; }
.summon .skin-figure { width: min(180px, 100%); }
.skin-figure.selection-preview { flex: 0 0 100px; width: 100px; margin: 0; background: #20292b; }
.selected-info > div:not(.skin-figure) { flex: 1; min-width: 0; }
.skin-figure.collection-preview { width: min(280px, 100%); margin: 0 auto; background: #20292b; }
.skin-figure.roster-preview { width: 100%; height: calc(100% - 37px); flex: 1 0 0; margin: 0; aspect-ratio: auto; }
.hero-card .roster-preview img { background: transparent; }
.xp-reward { display:flex; align-items:center; gap:12px; width:min(390px,100%); margin:14px auto; padding:8px 12px; border:1px solid #74dca965; border-radius:14px; background:linear-gradient(120deg,#0c2524,#172336); text-align:left; }
.xp-reward[hidden] { display:none; }
.xp-reward .fighter-figure { flex:0 0 72px; width:72px; height:81px; background:transparent; }
.xp-reward-info { flex:1; min-width:0; display:grid; gap:4px; }
.xp-reward-info strong { color:#effff6; font-size:16px; }
.xp-reward-level { color:#89ebc2; font-size:13px; font-weight:800; }
.xp-reward-track { height:9px; border-radius:8px; background:#060f19; overflow:hidden; }
.xp-reward-fill { display:block; height:100%; width:0; background:linear-gradient(90deg,#58caa0,#b4f3d4); transition:width 650ms ease-out; }
.xp-reward-info small { color:#bbced1; font-size:12px; }
.xp-reward-message { min-height:15px; color:#ffe598; font-size:11px; }
.xp-reward.leveled { border-color:#f1d78b; box-shadow:0 0 18px #ddbc5920; }
.fighter-figure { position: relative; display: flex; justify-content: center; overflow: hidden; width: 180px; aspect-ratio: 256 / 288; background: #20292b; }
.fighter-frame { position: relative; display: block; flex: none; height: 100%; aspect-ratio: 256 / 288; overflow: hidden; }
.fighter-figure .fighter-frame img { position: absolute; bottom: 0; left: calc(50% - var(--fighter-scale) * 50%); height: calc(100% * var(--fighter-scale)); width: auto; max-width: none; object-fit: initial; background: transparent; }
.fighter-figure.collection-preview { width: min(280px, 100%); margin: 0 auto 20px; }
.fighter-figure.selection-preview { flex: 0 0 100px; width: 100px; }
.fighter-figure.party-preview { flex: 0 0 95px; width: 95px; height: 108px; background: transparent; }
.member > div:not(.fighter-figure) { min-width: 0; overflow-wrap: anywhere; }
.fighter-figure.roster-preview { width: 100%; height: calc(100% - 37px); aspect-ratio: auto; flex: 1 0 0; }
.selected-info > div:not(.skin-figure):not(.fighter-figure) { flex: 1; min-width: 0; }
.selected-info > .fighter-figure { flex: 0 0 100px; }
@media (max-width: 600px) { .fighter-figure.selection-preview, .selected-info > .fighter-figure { flex-basis: 76px; width: 76px; } }
.anime-portrait img, .summon .anime-portrait img { position: static; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center; }
.skin-unlock-figure.anime-portrait img { position: static; width: 100%; height: 100%; object-fit: cover; }
.recruit-feature img, .draw-card-art > img { object-fit: cover; object-position: center; }
:is(.recruit-feature, .pool-fighter, .draw-card-art) > img:is([data-portrait="shion"], [data-portrait="mochi"], [data-portrait="benkei"]) { object-fit: cover; object-position: center top; }
.skin-feature .anime-portrait { width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }
.anime-portrait img[data-portrait="kiyomasa-street"] { object-position: 50% 0%; }
.draw-card-art .anime-portrait { width: 100%; }
@media (max-width: 600px) { .skin-figure.selection-preview { flex-basis: 76px; width: 76px; } }
.skin-item strong, .summon strong { overflow-wrap: anywhere; }
@media (max-width: 600px) { .skin-gacha-controls { grid-template-columns: minmax(0, 1fr); gap: 16px; } .skin-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .skin-item .skin-figure { width: min(130px, 100%); } .skin-item h3 { font-size: 16px; } }
.player-title:is(.title-medium,.title-hard,.title-halloween) { padding-block: 5px; text-shadow: none; }
.player-title::before,.player-title::after { pointer-events: none; }
.player-title.title-easy { text-shadow: none; }
.player-title.title-medium {
  color: var(--title-color); border: 1px solid var(--title-edge);
  border-left: 3px solid var(--title-color); border-right: 2px solid var(--title-accent);
  padding-right: 15px;
  background: repeating-linear-gradient(135deg,#ffffff05 0 3px,transparent 3px 7px),var(--title-bg);
  box-shadow: inset 0 1px var(--title-soft), inset 0 -1px var(--title-edge), 0 0 5px var(--title-soft);
}
.title-medium::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(115deg,var(--title-color) 10%,var(--title-accent) 35%,#fff 48%,var(--title-color) 60%,var(--title-accent) 85%);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: title-holo-rim 4.8s ease-in-out infinite alternate;
}
.title-medium::after {
  content: ''; position: absolute; right: 5px; top: 50%; width: 4px; height: 8px; transform: translateY(-50%);
  background: linear-gradient(135deg,#fff,var(--title-accent) 50%,var(--title-color));
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
}
.title-medium .title-text { filter: drop-shadow(0 0 2px var(--title-soft)); }
.player-title.title-halloween {
  color: #c9ff72; border-left-color: #c86dff;
  padding-left: 35px; min-height: 28px;
  background: #170e20f2;
  box-shadow: inset 0 1px #cf74ff5c, inset 0 -1px #ff8b3f70, 0 0 9px #b74bff38;
}
.title-pumpkin { position: absolute; left: 7px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); z-index: 1; pointer-events: none; }
.tower-cover { position: relative; height: 190px; overflow: hidden; margin-bottom: 20px; }
.tower-page h1 { font-size: 28px; line-height: 1.15; }
.tower-page h2 { font-size: 22px; line-height: 1.2; }
.tower-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.tower-cover > div { position: absolute; inset: auto 0 0; padding: 12px 16px; display: grid; gap: 3px; background: #101618df; }
.tower-cover strong { font-size: 22px; }
.tower-toolbar { margin-block: 18px 28px; flex-wrap: wrap; }
.tower-run { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #ffffff21; }
.tower-run > div,.tower-pioneers article { display: grid; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.tower-pioneers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 18px; }
.tower-pioneers article { border: 1px solid #64717b; border-radius: 4px; padding: 16px; align-content: start; }
.tower-record-members { display:grid; gap:10px; }
.tower-record-person { display:flex; align-items:center; gap:9px; min-width:0; }
.tower-record-person .profile-face { width:36px; height:36px; border-radius:7px; flex:none; }
.tower-record-person strong { font-size:13px; overflow-wrap:anywhere; }
button.tower-record-person { width:100%; padding:6px; min-height:46px; text-align:left; justify-content:flex-start; border:1px solid transparent; border-radius:7px; background:transparent; color:inherit; }
.social-list .social-profile-name { justify-content:flex-start; text-align:left; }
button.tower-record-person:hover { background:#ffffff0a; border-color:#7bc8ad70; }
button.tower-record-person:focus-visible { outline:2px solid #8fdfbd; outline-offset:2px; }
.tower-completed { margin:18px 0; padding:16px; border:1px solid #d9c174; border-radius:8px; background:linear-gradient(120deg,#342e18,#18302a); }
.tower-completed strong { display:flex; align-items:center; gap:8px; color:#ffe39b; }
.tower-completed p { margin:8px 0 0; color:#d8e6df; }
.tower-rescue-window,.spectator-bar { position: absolute; bottom: max(18px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); background: #101819ee; padding: 10px 14px; border: 1px solid #81d5b3; border-radius: 4px; display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.tower-rescue-window { pointer-events: none; color: #a1f4c8; }
.spectating #touch,.spectating .game-tools [data-command="pause"] { display: none !important; }
@media(max-width:600px) { .tower-pioneers { grid-template-columns: minmax(0,1fr); } .tower-run { align-items: stretch; flex-direction: column; } .spectator-bar { width: max-content; flex-wrap: wrap; } }
.pumpkin-stem { position: absolute; left: 10px; top: 0; width: 4px; height: 6px; border-radius: 2px 0 0 0; background: #94bf49; transform: rotate(16deg); }
.pumpkin-body { position: absolute; left: 0; top: 4px; width: 22px; height: 18px; border-radius: 45% 45% 43% 43%; background: #ff8a23; box-shadow: inset 3px 0 #d95c18, inset -3px 0 #e96b18, 0 0 4px #ff842344; }
.pumpkin-body::after { content: ''; position: absolute; inset: 0 6px; border-inline: 1px solid #bd4d2070; border-radius: 50%; }
.pumpkin-eyes { position: absolute; left: 4px; top: 8px; width: 14px; height: 5px; background: #241129; clip-path: polygon(0 100%,20% 0,36% 100%,64% 100%,80% 0,100% 100%); }
.pumpkin-grin { position: absolute; left: 4px; top: 14px; width: 14px; height: 6px; background: #241129; clip-path: polygon(0 0,24% 22%,24% 55%,39% 60%,39% 30%,61% 30%,61% 60%,76% 55%,76% 22%,100% 0,87% 70%,65% 100%,35% 100%,13% 70%); }
.title-halloween::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg,#ff801f45,#a847ff38,#a4ff332e,#ff801f45);
  background-size: 240% 100%;
  animation: title-neon-flow 3.4s ease-in-out infinite alternate;
}
.title-halloween .title-text {
  filter: drop-shadow(0 0 2px #d18affc9) drop-shadow(0 0 5px #b94aff80);
}
.player-title.title-hard {
  color: var(--title-color); border-left-color: var(--title-accent); background: var(--title-bg); padding-top: 12px;
  box-shadow: inset 0 1px var(--title-soft), inset 0 -1px var(--title-edge), 0 0 7px var(--title-soft);
}
.title-hard::before {
  content: ''; position: absolute; inset: 0 1px auto; height: 13px; border-radius: inherit;
  background: linear-gradient(0deg,var(--title-accent),var(--title-color) 48%,#fff1d3);
  -webkit-mask-image: url('/title-flame-mask.svg'); mask-image: url('/title-flame-mask.svg');
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  transform-origin: center bottom; opacity: .85;
  animation: title-flames 1.8s ease-in-out infinite alternate;
}
.title-hard::after {
  content: ''; position: absolute; inset: auto 5px 1px; height: 1px;
  background: linear-gradient(90deg,transparent,var(--title-accent),var(--title-color),var(--title-accent),transparent);
}
.title-hard .title-text { filter: drop-shadow(0 0 2px var(--title-edge)); }
.player-title[data-title-rank="leader"] { border-left-width: 2px; }
.player-title[data-title-rank="leader-mastered"] {
  padding-left: 24px; border-left: 3px solid #ffd979; border-right: 2px solid #e2b955;
  background: var(--title-bg); outline: 1px solid #e2b95555; outline-offset: -1px;
  box-shadow: inset 0 1px #fff3c438,inset 0 -1px #ffd97970;
}
.title-emblem { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: #ffe6a1; }
.title-hard .title-emblem { margin-top: 3px; }
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
  .title-easy .title-text,.title-medium .title-text,.title-hard .title-text,.title-halloween .title-text {
    color: transparent; -webkit-text-fill-color: transparent;
    background-clip: text; -webkit-background-clip: text;
    box-decoration-break: clone; -webkit-box-decoration-break: clone;
  }
  .title-easy .title-text { background-image: linear-gradient(105deg,var(--title-color) 0%,var(--title-color) 43%,#fff 49%,#fff 51%,var(--title-color) 57%,var(--title-color) 100%); background-size: 300% 100%; animation: title-inner-sheen 6s ease-in-out infinite alternate; }
  .title-medium .title-text { background-image: linear-gradient(105deg,var(--title-color),var(--title-accent) 35%,#fff 50%,var(--title-color) 60%,var(--title-accent)); background-size: 240% 100%; animation: title-silver-sweep 6s ease-in-out infinite; }
  .title-halloween .title-text { background-image: linear-gradient(90deg,#ff963f 0%,#ff963f 11%,#d781ff 17%,#d781ff 28%,#73ff48 34%,#73ff48 45%,#ff963f 50%,#ff963f 61%,#d781ff 67%,#d781ff 78%,#73ff48 84%,#73ff48 95%,#ff963f 100%); background-size: 200% 100%; animation: title-neon-flow 3.4s ease-in-out infinite alternate; }
  .title-hard .title-text { background-image: linear-gradient(0deg,var(--title-accent) 5%,var(--title-color) 45%,#fff4d7 76%,var(--title-color)); }
  .player-title[data-title-rank="leader-mastered"] .title-text { background-image: linear-gradient(105deg,#ffcd5f 0%,#fff3c4 40%,#fff 50%,#ffcd5f 60%,#fff3c4 100%); background-size: 260% 100%; }
}
@keyframes title-inner-sheen { from { background-position: 100% 50%; } to { background-position: 0% 50%; } }
.player-title.title-tower {
  padding: 12px 15px; border: 0; border-radius: 2px; background: #14171b;
  color: var(--title-color); text-shadow: none;
  box-shadow: inset 0 0 0 1px #ffffff16;
}
.tower-bricks { position: absolute; pointer-events: none; border: 1px solid #080b0e; }
.tower-bricks-top,.tower-bricks-bottom {
  left: 0; right: 0; height: 7px;
  background: repeating-linear-gradient(90deg,transparent 0 16px,#0c1016 16px 18px),linear-gradient(var(--title-accent),var(--tower-stone) 35%,var(--tower-stone) 70%,#111821);
}
.tower-bricks-top { top: 0; }
.tower-bricks-bottom { bottom: 0; background-position: 9px 0,0 0; }
.tower-bricks-left,.tower-bricks-right {
  top: 7px; bottom: 7px; width: 7px;
  background: repeating-linear-gradient(0deg,transparent 0 8px,#0c1016 8px 10px),linear-gradient(90deg,var(--title-accent),var(--tower-stone) 35%,var(--tower-stone) 70%,#111821);
}
.tower-bricks-left { left: 0; }
.tower-bricks-right { right: 0; background-position: 0 5px,0 0; }
.title-tower::after {
  content: ''; position: absolute; inset: 0; padding: 7px;
  background: linear-gradient(105deg,transparent 40%,#ffffffb3 49%,#ffffffb3 51%,transparent 60%);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: title-inner-sheen 5s ease-in-out infinite alternate;
}
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
  .title-tower .title-text {
    color: transparent; -webkit-text-fill-color: transparent;
    background: linear-gradient(105deg,var(--title-color) 40%,#fff 49%,#fff 51%,var(--title-color) 60%);
    background-size: 300% 100%; background-clip: text; -webkit-background-clip: text;
    animation: title-inner-sheen 5s ease-in-out infinite alternate;
  }
}
.tower-title-previews { margin-top: 28px; }
.tower-title-previews h2 { font-size: 18px; margin: 0 0 16px; }
.tower-title-previews > div { display: flex; flex-wrap: wrap; gap: 24px; }
.tower-title-preview { display: grid; gap: 8px; max-width: 100%; }
.tower-title-preview small { color: #bac5d1; }
.player-title.title-christmas {
  padding: 10px 12px 10px 36px; border: 1px solid #91cee77a; border-left: 3px solid #c8efff;
  background: linear-gradient(110deg,#182e37,#172c27); color: var(--title-color); text-shadow: none;
  box-shadow: inset 0 1px #e1f7ff70,0 0 7px #8bdbff20; overflow: hidden;
}
.title-snowman { position: absolute; width: 22px; height: 22px; left: 7px; top: 50%; transform: translateY(-50%); color: #effaff; z-index: 1; }
.snowman-body { position: absolute; width: 16px; height: 14px; bottom: 0; left: 3px; border-radius: 50%; background: #edfaff; box-shadow: inset -3px -2px #a5cad9; }
.snowman-head { position: absolute; width: 11px; height: 10px; top: 0; left: 5px; border-radius: 50%; background: #fff; }
.snowman-head::before { content: ''; position: absolute; width: 2px; height: 2px; background: #1d303a; top: 3px; left: 3px; box-shadow: 4px 0 #1d303a; }
.snowman-head::after { content: ''; position: absolute; width: 5px; height: 3px; background: #ef934b; top: 5px; left: 6px; clip-path: polygon(0 0,100% 50%,0 100%); }
.snowman-scarf { position: absolute; width: 13px; height: 3px; top: 8px; left: 4px; border-radius: 1px; background: #e86770; }
.snowman-scarf::after { content: ''; position: absolute; width: 3px; height: 7px; top: 1px; right: 2px; background: #e86770; transform: rotate(-14deg); }
.title-snowfall { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.title-snowfall > span {
  position: absolute; top: -5px; left: calc(10% + var(--flake) * 16%); width: 3px; height: 3px;
  border-radius: 50%; background: #f1fbff; box-shadow: 0 0 3px #addefc;
  animation: title-snow-fall 3.8s linear infinite; animation-delay: calc(var(--flake) * -.63s);
}
@keyframes title-snow-fall { from { transform: translate(-3px,0); opacity: 0; } 15%,75% { opacity: .85; } to { transform: translate(5px,52px); opacity: 0; } }
.title-preview-row { align-items: center; }
@media (prefers-reduced-motion: reduce) {
  .title-snowfall > span { animation: none; top: calc(4px + var(--flake) * 5px); opacity: .65; }
}
@keyframes title-holo-rim { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes title-neon-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes title-silver-sweep { 0%,30% { background-position: 100% 50%; } 75%,100% { background-position: 0% 50%; } }
@keyframes title-flames { 0% { transform: scaleY(.65); opacity: .75; } 45% { transform: scaleY(1); opacity: .95; } 100% { transform: scaleY(.78); opacity: .85; } }
#hud .player-title.title-hard { padding-top: 9px; }
#hud .title-hard::before { height: 9px; }
@media (prefers-reduced-motion: reduce) {
  .player-title::before,.player-title::after,.player-title .title-text { animation: none !important; }
}
.title-collection { display: grid; gap: 12px; }
.title-collection h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.title-collection h3 svg { width: 20px; height: 20px; }
.title-collection label { display: grid; gap: 6px; }
.title-list { display: grid; gap: 0; margin-top: 10px; }
.title-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #ffffff18; }
.title-row small { color: #b9c5c4; }
#hud .player-title { font-size: 10px; }
.skin-unlock-close { position: absolute; top: 10px; right: 10px; }
.skin-unlock-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 20px; }
.skin-unlock-figure { width: 180px; aspect-ratio: 256 / 288; position: relative; overflow: hidden; }
.skin-unlock-figure img { height: 100%; width: auto; max-width: none; position: absolute; top: 0; left: 0; }
.skin-unlock-badge { display: flex; align-items: center; gap: 6px; color: #a5edbf; font-size: 11px; font-weight: 700; }
.skin-unlock-badge svg { width: 16px; height: 16px; flex-shrink: 0; }
.skin-unlock-copy h2 { font-size: 30px; margin: 10px 0 4px; }
.skin-unlock-copy h3 { font-size: 16px; margin: 0; }
.skin-unlock-copy p { color: #b4c4bc; font-size: 13px; line-height: 1.6; margin: 16px 0 0; }
.skin-unlock-copy strong { color: #f3f7f4; }
@media (max-width: 480px) {
  #skin-unlock { padding: 24px 16px 16px; }
  .skin-unlock-body { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .skin-unlock-figure { width: 112px; }
  .skin-unlock-copy h2 { font-size: 24px; }
  .skin-unlock-copy h3 { font-size: 14px; }
}
dialog {
  width: min(900px, calc(100% - 30px));
  max-width: calc(100vw - var(--safe-left) - var(--safe-right) - 24px);
  max-height: min(90dvh, calc(100dvh - 2 * max(var(--safe-top), var(--safe-bottom)) - 24px));
  overflow: auto;
  background: #1b2325;
  color: white;
  border: 1px solid #647477;
  border-radius: 6px;
  padding: 28px;
}
dialog::backdrop {
  background: #070c0edc;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.form {
  max-width: 460px;
  display: grid;
  gap: 16px;
}
.form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}
input,
select {
  min-width: 0;
  border: 1px solid var(--line);
  background: #101819;
  color: white;
  border-radius: 4px;
  padding: 12px;
}
.difficulty-control { width: 240px; min-width: 0; max-width: 100%; }
.difficulty-control select { width: 100%; }
.controls-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin: 25px 0;
}
.controls-table > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.controls-table kbd {
  color: var(--gold);
}
#toast {
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 100;
  background: #202c2e;
  border: 1px solid #66817c;
  border-radius: 5px;
  padding: 14px 22px;
  max-width: calc(100vw - 30px);
  transition: transform 0.2s;
  text-align: center;
}
#toast.visible {
  visibility: visible;
  transform: translateX(-50%);
}
[hidden] {
  display: none !important;
}
body.playing {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body.playing #play, body.playing #play * { touch-action: none; }
button { touch-action: manipulation; }
body.playing #header,
body.playing #app {
  display: none;
}
#play {
  position: fixed;
  inset: 0;
  background: #080d0f;
  touch-action: none;
  overflow: hidden;
}
#canvas {
  position: relative;
  width: 100%;
  height: 100%;
}
.live-notice { position:fixed; left:50%; top:calc(82px + env(safe-area-inset-top)); transform:translateX(-50%); z-index:60; width:min(680px,calc(100vw - 24px)); box-sizing:border-box; display:flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid #ffd3a0; border-radius:7px; background:#a94708f5; color:#fff; box-shadow:0 3px 14px #0005; pointer-events:none; }
.live-notice[hidden] { display:none; }
.live-notice-window { flex:1; min-width:0; overflow:hidden; }
.live-notice-text { display:block; width:max-content; min-width:100%; font-size:13px; font-weight:700; line-height:20px; animation:live-notice-scroll var(--notice-duration,14s) linear both; }
.live-notice button { pointer-events:auto; flex:none; min-height:28px; width:28px; padding:0; border:0; color:#fff; background:#ffffff14; font-size:22px; }
.live-global-notice { grid-row:3; margin:6px 12px; padding:8px 10px; background:#a94708; color:#fff; border-radius:6px; font-size:12px; overflow-wrap:anywhere; max-height:62px; overflow-y:auto; }
body.playing .live-notice { display:none; }
@keyframes live-notice-scroll { 0%,15% {transform:translateX(0)} 85%,100% {transform:translateX(var(--notice-offset,0px))} }
@media(prefers-reduced-motion:reduce) { .live-notice-text { animation:none; width:auto; white-space:normal; } }
.plaza-titles { position:absolute; inset:0; z-index:2; overflow:hidden; pointer-events:none; contain:layout style; }
.plaza-title-anchor { position:absolute; left:0; top:0; pointer-events:none; }
.plaza-title-anchor[hidden] { display:none; }
.plaza-title-badge { position:absolute; width:max-content; max-width:260px; transform:translate(-50%,-100%) scale(var(--badge-scale,1)); transform-origin:center bottom; }
.plaza-title-badge .player-title { margin:0; font-size:12px; text-align:center; white-space:normal; }
.plaza-title-badge .title-emblem { display:inline-block; width:15px; height:15px; vertical-align:middle; }
#canvas canvas {
  display: block;
  touch-action: none;
}
#hud {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  top: max(14px, env(safe-area-inset-top));
  right: 210px;
  pointer-events: none;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.player-hud {
  width: 230px;
  display: flex;
  gap: 10px;
  min-width: 0;
  position: relative;
}
.player-hud > .hud-face {
  flex: 0 0 auto;
  display: block;
  border-radius: 3px;
  width: 54px;
  height: 62px;
  object-fit: cover;
  border: 1px solid #d1d5cd;
  background: #203032;
}
.player-hud .bars {
  flex: 1;
  min-width: 0;
}
/* The Brahman illustration is a long coat shot: frame head + collar, not its center. */
.player-hud .hud-face[data-portrait="takemichi-brahman"] > img {
  width: 161.2903%;
  left: -43.5484%;
  top: -3.2258%;
}
.player-hud strong {
  display: block;
  text-shadow: 1px 1px 3px black;
  font-size: 15px;
  margin-bottom: 7px;
}
.hp {
  height: 10px;
  background: #421b22;
  border: 1px solid #e5d9d488;
  overflow: hidden;
}
.hp i {
  display: block;
  height: 100%;
  background: #7aceab;
  transition: width 0.08s;
}
.energy {
  height: 6px;
  background: #223235;
  border: 1px solid #e5d9d488;
  margin-top: 5px;
}
.energy i {
  display: block;
  height: 100%;
  background: #e8c16a;
}
.player-hud small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: white;
  text-shadow: 0 1px 3px #000;
}
.wave-hud {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  text-shadow: 0 1px 4px black;
  max-width: 200px;
}
.arc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.arc-tabs button { padding: 8px 12px; font-size: 14px; }
.arc-tabs button.active { border-color: var(--gold); color: var(--gold); }
.lives { color: #f58380; white-space: nowrap; margin-left: 5px; }
.objective-hud { position: absolute; top: 82px; left: 0; width: 210px; font-size: 12px; text-shadow: 0 1px 3px #000; }
.objective-hud .hp i { background: #8bd8bd; }
.war-team-hud { position: absolute; top: 86px; left: 0; display: flex; gap: 10px; width: min(440px, 100%); }
.objective-hud + .war-team-hud { top: 122px; width: 210px; }
.bot-hud { flex: 1; min-width: 0; font-size: 10px; text-shadow: 0 1px 3px #000; }
.bot-hud span { display: block; margin-bottom: 4px; }
.bot-hud .hp { height: 5px; }
.pity.compact { margin-top: -12px; }
.recruit-guarantee { color: var(--mint); }
.gacha-pool { margin-top: 22px; max-width: 560px; }
.gacha-pool p { font-size: 14px; }
@media (max-height: 450px) and (orientation: landscape) {
  .objective-hud { top: 58px; width: 158px; font-size: 10px; }
  .war-team-hud { top: 60px; width: min(330px, 100%); gap: 6px; }
  .objective-hud + .war-team-hud { top: 88px; width: 158px; }
  .bot-hud { font-size: 9px; }
}
.game-tools {
  z-index: 4;
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  gap: 5px;
}
.game-tools .icon {
  width: 44px;
  height: 44px;
  background: #131819bb;
}
.game-tools svg {
  width: 17px;
  height: 17px;
}
#game-modal {
  z-index: 11;
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  padding: max(12px, var(--safe-top)) max(12px, var(--safe-right)) max(12px, var(--safe-bottom)) max(12px, var(--safe-left));
}
#game-modal:not(:empty) { pointer-events: auto; }
body.playing #play #game-modal, body.playing #play #game-modal * { touch-action: pan-y; }
#game-modal > .game-overlay {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#game-modal:empty {
  display: none;
}
.game-overlay {
  padding: 28px;
  background: #131c20f5;
  border: 1px solid #8a9b9c;
  border-radius: 6px;
  width: min(460px, 90vw);
  pointer-events: auto;
  text-align: center;
  box-shadow: 0 10px 60px #0009;
}
.game-overlay h2 {
  font-size: 45px;
}
.game-overlay p {
  margin: 12px 0 20px;
}
.game-overlay .row {
  justify-content: center;
}
.party-loading { max-height: 88dvh; overflow-y: auto; }
.party-load-list { list-style: none; padding: 0; margin: 16px 0; text-align: left; }
.party-load-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px solid #ffffff18; }
.party-load-list li span { min-width: 0; overflow-wrap: anywhere; }
.party-load-list strong { flex-shrink: 0; font-size: 13px; color: var(--muted); }
.party-load-list .loaded { color: var(--mint); }
.stars {
  font-size: 26px;
  color: var(--gold);
  margin: 14px;
}
.game-overlay .metrics {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  color: var(--muted);
}
#touch {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#stick-zone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  height: 60%;
  pointer-events: auto;
  touch-action: none;
}
#stick {
  position: absolute;
  bottom: max(25px, env(safe-area-inset-bottom));
  left: calc(48px + env(safe-area-inset-left));
  width: 152px;
  height: 152px;
  background: #11222555;
  border: 2px solid #c1dbcf66;
  border-radius: 50%;
  pointer-events: auto;
  touch-action: none;
}
#stick.held { border-color: #c1dbcfaa; background: #11222588; }
#stick-knob {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #d4e5dc77;
  border: 1px solid #e2f2e599;
  left: calc(50% - 29px);
  top: calc(50% - 29px);
  will-change: transform;
  pointer-events: none;
}
.touch-actions {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 60px);
  grid-template-rows: 60px 60px;
  gap: 7px;
  pointer-events: auto;
}
.touch-actions button {
  border-radius: 50%;
  padding: 0;
  background: #23383b99;
  border-color: #bbd0d188;
  touch-action: none;
}
.touch-actions button.attack {
  grid-column: 2;
  grid-row: 2;
  background: #448e76bb;
}
.touch-actions button.heavy {
  grid-column: 3;
  grid-row: 2;
  background: #a75543bb;
}
.touch-actions button.special {
  grid-column: 4;
  grid-row: 2;
  background: #bf9839bb;
}
.touch-actions button.held {
  background: white;
  color: black;
}
.touch-actions button svg {
  width: 25px;
  height: 25px;
}
.touch-actions button:disabled {
  opacity: 0.25;
}
#rotate {
  display: none;
  position: absolute;
  inset: 0;
  background: #101719f5;
  place-content: center;
  text-align: center;
  z-index: 10;
}
#rotate svg {
  width: 60px;
  height: 60px;
  margin: auto;
  color: var(--mint);
}
@media (pointer: coarse) {
  #touch {
    display: block;
  }
}
@media (max-width: 900px) {
  #header {
    padding: var(--safe-top) max(15px, var(--safe-right)) 0 max(15px, var(--safe-left));
    gap: 12px;
    height: calc(64px + var(--safe-top));
  }
  .wordmark {
    font-size: 20px;
  }
  .wordmark b {
    font-size: 14px;
  }
  nav {
    gap: 0;
  }
  nav button {
    font-size: 14px;
    padding: 8px;
  }
  .header-tools {
    gap: 2px;
  }
  .header-tools .icon {
    width: 32px;
    height: 32px;
  }
  .header-tools .icon svg {
    width: 17px;
  }
  .page {
    padding: 24px 20px;
  }
  .home {
    min-height: calc(100dvh - 64px);
    padding: 32px;
  }
  .home h1 {
    font-size: 66px;
  }
  .split {
    gap: 22px;
    grid-template-columns: 1fr 1.1fr;
  }
  .collection-grid {
    gap: 22px;
  }
  .gacha {
    gap: 20px;
    padding: 30px;
  }
  .gacha h1 {
    font-size: 52px;
  }
  .gacha-art img {
    height: 340px;
  }
  .player-hud {
    width: 175px;
    gap: 7px;
  }
  .player-hud > .hud-face {
    height: 48px;
    width: 43px;
  }
  .player-hud strong {
    font-size: 12px;
    margin-bottom: 5px;
  }
  .player-hud small {
    font-size: 10px;
  }
  #hud {
    gap: 14px;
    right: 205px;
  }
  .wave-hud {
    font-size: 11px;
  }
  #stick {
    width: 152px;
    height: 152px;
  }
  .touch-actions {
    grid-template-columns: repeat(4, 54px);
    grid-template-rows: 54px 54px;
    gap: 6px;
  }
  .game-overlay {
    padding: 20px;
    max-height: 90dvh;
    overflow: auto;
  }
  .game-overlay h2 {
    font-size: 35px;
  }
}
@media (max-width: 600px) {
  #header {
    height: auto;
    min-height: calc(94px + var(--safe-top));
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: calc(10px + var(--safe-top)) max(15px, var(--safe-right)) 10px max(15px, var(--safe-left));
  }
  .header-tools {
    margin-left: auto;
  }
  .header-tools .icon[data-command="fullscreen"] {
    display: none;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  nav button {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 5px;
    font-size: 13px;
    white-space: nowrap;
  }
  .home {
    min-height: calc(100dvh - 94px);
    padding: 30px 20px;
  }
  .home:before {
    background-position: 64% top;
  }
  .home:after {
    background: linear-gradient(0deg, #131819 5%, #131819c7 50%, transparent);
  }
  .home h1 {
    font-size: 58px;
  }
  .home p {
    font-size: 16px;
  }
  .home-actions {
    gap: 8px;
  }
  .home-meta {
    gap: 12px;
    font-size: 12px;
  }
  .page {
    padding: 22px 16px;
  }
  .page-head {
    align-items: flex-start;
  }
  h1 {
    font-size: 36px;
  }
  .split,
  .collection-grid,
  .lobby-top {
    grid-template-columns: 1fr;
  }
  .stage-preview {
    aspect-ratio: 16/8;
  }
  .phase img {
    width: 74px;
    height: 74px;
  }
  .phase {
    grid-template-columns: 74px 1fr auto;
    min-height: 74px;
  }
  .phase strong {
    font-size: 16px;
  }
  .hero-card span {
    font-size: 13px;
  }
  .roster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .character-detail {
    position: static;
  }
  .character-detail > img {
    height: 270px;
  }
  .lobby-bottom {
    justify-content: center;
  }
  .member {
    min-height: 115px;
    padding: 12px;
  }
  .member img {
    height: 85px;
    width: 80px;
  }
  .fighter-figure.party-preview { flex-basis: 80px; width: 80px; height: 90px; }
  .gacha {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .gacha-art {
    grid-row: 1;
    max-height: 250px;
    justify-content: center;
  }
  .gacha-art img {
    height: 230px;
    width: 40%;
  }
  .gacha h1 {
    font-size: 52px;
  }
  .gacha .rates {
    margin-top: 18px;
  }
  .controls-table {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 20px;
  }
  .summons {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-head .row button {
    padding: 8px 10px;
  }
}
@media (orientation: portrait) and (pointer: coarse) {
  body.playing #rotate {
    display: grid;
  }
}
@media (max-height: 450px) and (orientation: landscape) {
  #hud {
    top: 9px;
    left: 12px;
    gap: 14px;
  }
  .player-hud {
    width: 158px;
  }
  .player-hud > .hud-face {
    width: 35px;
    height: 40px;
  }
  .player-hud strong {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .player-hud small {
    font-size: 9px;
  }
  .hp {
    height: 7px;
  }
  .energy {
    height: 4px;
  }
  .wave-hud {
    font-size: 10px;
  }
  .touch-actions {
    bottom: 13px;
    right: 15px;
    grid-template-columns: repeat(4, 50px);
    grid-template-rows: 50px 50px;
    gap: 5px;
  }
  #stick {
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: calc(48px + env(safe-area-inset-left));
    width: 152px;
    height: 152px;
  }
  .game-tools {
    right: 9px;
    top: 8px;
  }
  .game-tools .icon {
    width: 44px;
    height: 44px;
  }
  #hud {
    right: 205px;
  }
  .game-overlay h2 {
    font-size: 30px;
  }
  .game-overlay {
    padding: 15px;
  }
  .game-overlay p {
    margin: 8px 0;
  }
  .game-overlay .metrics {
    margin: 10px 0;
  }
  .stars {
    margin: 7px;
  }
}
@media (max-height: 350px) and (orientation: landscape) {
  #stick { width: 136px; height: 136px; bottom: calc(16px + env(safe-area-inset-bottom)); left: calc(38px + env(safe-area-inset-left)); }
  #stick-knob { width: 52px; height: 52px; left: calc(50% - 26px); top: calc(50% - 26px); }
}
.xp-panel { margin: 12px 0; font-size: 13px; }
.xp-panel small { display: block; color: #aebebb; line-height: 1.5; }
.xp-panel progress { width: 100%; height: 7px; display: block; margin: 7px 0; accent-color: #74d2a6; }
.skin-select { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; font-size: 13px; }
.skin-select select { min-width: 0; max-width: 100%; }
.choosing-identity nav, .choosing-identity #coins { display: none; }
.identity-page { max-width: 850px; margin: 24px auto; padding: 24px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.identity-art { width: 220px; max-width: 100%; align-self: start; }
.identity-page h1 { font-size: 36px; }
.identity-page small { display: block; line-height: 1.5; margin-top: 14px; color: #b3c4c1; }
.party-banner, .mission-notice { background: #183332; border-left: 3px solid #85cead; padding: 12px 18px; margin: 12px auto; max-width: 1240px; }
.party-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mission-notice p { margin: 6px 0 12px; }
.phase.phase-locked { opacity: .56; }
.requirement { color: #f3cb70; display: flex; gap: 8px; align-items: center; }
.star-checklist { padding-left: 20px; font-size: 13px; line-height: 1.8; color: #d9c585; }
.member { position: relative; }
.member [data-kick] { position: absolute; right: 8px; top: 8px; }
.coach { position: fixed; z-index: 55; right: 18px; bottom: 18px; width: min(420px, calc(100% - 36px)); background: #172324; border: 1px solid #92d8bd; border-radius: 8px; padding: 12px; display: grid; grid-template-columns: 60px 1fr; gap: 12px; box-shadow: 0 6px 24px #0008; }
.coach img { width: 60px; height: 78px; object-fit: cover; }
.coach strong { color: #93dabf; }
.coach p { font-size: 14px; line-height: 1.4; margin: 5px 0 8px; }
.coach button { min-height: 32px; padding: 5px 9px; font-size: 12px; }
.guide-ring { position: fixed; z-index: 54; pointer-events: none; border: 3px solid #f3ce70; border-radius: 18px; box-shadow: 0 0 0 4px #f3ce7028; }
.playing .coach { top: 120px; bottom: auto; width: 310px; right: calc(50% - 155px); }
#hud.squad-hud { display: grid; grid-template-columns: repeat(2, minmax(0, 205px)); gap: 8px 18px; }
.squad-hud .player-hud { width: auto; }
.squad-hud .player-hud strong, .squad-hud .player-hud small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.squad-hud .wave-hud { grid-column: 1 / -1; margin: 0; text-align: left; }
.squad-hud .objective-hud, .squad-hud .war-team-hud { position: static; grid-column: 1 / -1; }
@media (max-width: 700px) {
  .identity-page { grid-template-columns: 1fr; margin: 0; padding: 20px; gap: 8px; }
  .identity-art { width: 80px; height: 90px; object-fit: cover; }
  .identity-page h1 { font-size: 28px; }
  .coach { grid-template-columns: 44px 1fr; padding: 9px; bottom: 8px; right: 8px; width: min(350px, calc(100% - 16px)); }
  .coach img { width: 44px; height: 58px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .identity-page { grid-template-columns: 110px minmax(0, 1fr); max-width: 700px; }
  .identity-art { width: 110px; }
  #hud.squad-hud { grid-template-columns: repeat(2, minmax(0, 154px)); gap: 4px 10px; right: 205px; }
  .squad-hud .player-hud > .hud-face { width: 25px; height: 30px; }
  .squad-hud .player-hud strong { margin-bottom: 2px; font-size: 10px; }
  .squad-hud .player-hud small { margin-top: 2px; font-size: 8px; }
  .squad-hud .hp, .squad-hud .energy { height: 4px; }
  .squad-hud .wave-hud { font-size: 9px; }
  .playing .coach { top: 100px; font-size: 11px; }
  .playing .coach p { font-size: 11px; }
}
/* Social presence and room-preserving campaign selection. */
.social-button { position: relative; }
.social-look { width: 42px; height: 50px; object-fit: cover; flex: none; }
.social-look.profile-face { height:42px; border-radius:8px; }
.social-friend-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.social-invite-preference { border-block: 1px solid #ffffff26; padding: 12px 0; margin: 12px 0; }
.social-invite-preference label, .party-invite-mute { display: flex; gap: 9px; align-items: center; font-size: 13px; }
.social-invite-preference input, .party-invite-mute input { flex: none; width: 18px; height: 18px; accent-color: #85cead; }
.social-invite-preference small { display: block; color: #c1ceca; margin-top: 6px; }
.party-invite { position: fixed; inset: 78px max(16px, env(safe-area-inset-right)) auto auto; width: min(360px, calc(100vw - 32px)); box-sizing: border-box; margin: 0; padding: 18px; background: #182222; border: 1px solid #81c8a8; border-radius: 6px; color: #f2f6f3; box-shadow: 0 12px 40px #0009; z-index: 80; max-height: calc(100dvh - 94px); overflow-y: auto; }
.party-invite[hidden] { display: none; }
.party-invite::backdrop { background: transparent; pointer-events: none; }
.party-invite-heading { display: flex; gap: 12px; padding-right: 34px; align-items: center; }
.party-invite-heading > .profile-face { width:48px; height:48px; border-radius:8px; flex:none; }
.party-invite-heading h2 { font-size: 22px; margin: 3px 0; overflow-wrap: anywhere; }
.party-invite-heading small { font-size: 10px; color: #99d8bb; }
.party-invite-heading p { font-size: 12px; margin: 0; color: #c1ceca; }
.party-invite-close { position: absolute; top: 8px; right: 8px; }
.party-invite-actions { display: flex; gap: 9px; margin: 16px 0 12px; }
.party-invite-actions button { flex: 1; min-height: 44px; }
.party-invite-mute { line-height: 1.4; }
.party-invite [data-invite-remaining] { display: block; color: #acbfb5; margin-top: 10px; }
.party-invite-error { color: #ffb9a5; font-size: 12px; margin: 6px 0 0; }
@media (max-height: 450px) { .party-invite { top: 12px; max-height: calc(100dvh - 24px); } }
#social-count { position: absolute; right: -3px; top: -4px; min-width: 17px; height: 17px; padding: 1px 4px; border-radius: 8px; background: #d94442; color: #fff; font-size: 11px; line-height: 15px; }
.social-summary, .social-person { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.social-summary { margin-bottom: 18px; flex-wrap: wrap; }
.social-summary span, .social-person small { color: #adb8b8; font-size: 13px; }
.social-person { padding: 12px 0; border-bottom: 1px solid #354044; }
.social-person > div:first-child { min-width: 0; }
.social-person strong { overflow-wrap: anywhere; }
.social-person small { display: block; margin-top: 3px; }
.social-person .row { flex-shrink: 0; gap: 6px; }
.social-footer { margin-top: 20px; flex-wrap: wrap; }
.presence { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #788385; margin-right: 7px; }
.presence.is-online { background: #5de0a4; }
.automatic-guest { margin-bottom: 16px; }
.stage-picker-button { min-width: 0; max-width: 100%; text-align: left; }
.stage-picker-button span { white-space: normal; overflow-wrap: anywhere; }
.in-plaza .touch-actions, .in-plaza .game-tools [data-command="pause"] { display: none; }
.plaza-bar { pointer-events: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 14px; background: #151b1ee8; border-bottom: 1px solid #52615a; max-width: 650px; }
.plaza-bar .row { gap: 6px; }
.plaza-bar button { min-height: 38px; }
.fragment-upgrade { display: grid; gap: 8px; margin: 14px 0; padding: 12px 0; border-block: 1px solid #44534f; }
.fragment-draw-band { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid #ffffff26; }
.fragment-draw-count { display: flex; gap: 8px; margin-bottom: 14px; }
.fragment-draw-count [aria-pressed='true'] { border-color: #88d3af; background: #244039; }
.fragment-prices { width: 100%; border-collapse: collapse; margin-bottom: 18px; text-align: left; }
.fragment-prices caption { text-align: left; font-size: 12px; color: #b9c8c3; margin-bottom: 8px; }
.fragment-prices td, .fragment-prices th { padding: 7px; border-bottom: 1px solid #ffffff26; }
.fragment-sources { display: grid; gap: 8px; max-height: 36dvh; overflow-y: auto; }
.fragment-source { display: grid; grid-template-columns: 20px 38px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #ffffff18; }
.fragment-source input { width: 18px; height: 18px; accent-color: #88d3af; }
.fragment-source img { width: 38px; height: 44px; object-fit: cover; }
.fragment-source strong, .fragment-source small { display: block; overflow-wrap: anywhere; }
.fragment-source small, .fragment-payment-rule { font-size: 12px; color: #b9c8c3; }
.fragment-payment-summary { overflow-wrap: anywhere; margin: 14px 0; }
.fragment-draw .row { flex-wrap: wrap; }
.fragment-upgrade .row { flex-wrap: wrap; gap: 8px; }
.fragment-upgrade button { justify-self: start; max-width: 100%; white-space: normal; }
.fragment-upgrade small { color: #b9c8c3; }
.upgrade-stars { color: #edca66; white-space: nowrap; }
.plaza-people { display: grid; gap: 10px; }
.plaza-person { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #3c4644; }
.plaza-person img { width: 50px; height: 56px; object-fit: cover; }
.plaza-person > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.plaza-person strong, .plaza-person small { display: block; }
.story-cinematic {
  pointer-events: auto; position: absolute; inset: 0; background: #090b0e;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  padding: max(10px, var(--safe-top)) max(12px, var(--safe-right)) max(10px, var(--safe-bottom)) max(12px, var(--safe-left));
  gap: 8px; overflow: auto;
}
.story-frame { min-height: 0; display: grid; place-items: center; overflow: hidden; }
.story-frame img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.story-context-card { width: min(100%, 760px); min-height: 130px; box-sizing: border-box; display: grid; justify-items: center; align-content: center; gap: 16px; padding: clamp(18px, 4vw, 48px); border: 1px solid #455e64; border-radius: 18px; background: radial-gradient(ellipse at top, #263d46, #101a21 76%); text-align: center; }
.story-context-card > span { color: #d5b578; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.story-context-card > svg { width: 36px; height: 36px; color: #b5d1d4; }
.story-context-card strong { font-size: clamp(20px, 3vw, 32px); }
.story-context-card small { color: #a8b9c0; line-height: 1.4; }
.story-frame img, .story-caption { animation: story-reveal .45s ease-out both; }
@keyframes story-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .story-frame img, .story-caption { animation: none; } }
.next-stage-preview { font-size: 13px; line-height: 1.4; color: #c3d9d3; }
.story-caption { width: min(100%, 960px); margin: 0 auto; color: #f5f6f7; }
.story-heading, .story-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.story-heading strong { font-size: 18px; }
.story-heading span { color: #bac1c8; white-space: nowrap; font-size: 13px; }
.story-caption p { margin: 8px 0 12px; font-size: 15px; line-height: 1.45; }
.story-controls button { min-height: 44px; }
.story-update { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid #536264; background: #182322; }
.story-update > div { flex: 1; min-width: 0; }
.story-update p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; color: #c8d6d4; }
.story-waiting { font-size: 13px; color: #d5dfe1; }
body.playing.story-scene #rotate { display: none; }
@media (max-height: 500px) and (orientation: landscape) {
  .story-cinematic { grid-template: minmax(0, 1fr) / minmax(0, 1.6fr) minmax(260px, 1fr); }
  .story-caption { align-self: center; }
  .story-heading strong { font-size: 16px; }
  .story-caption p { font-size: 13px; }
  .story-controls { flex-wrap: wrap; gap: 6px; }
  .story-controls button { padding: 9px 12px; }
}
@media (max-width: 650px) { .plaza-bar { gap: 8px; padding: 7px; } .plaza-person { flex-wrap: wrap; } }
@media (max-width: 500px) { .social-person { flex-wrap: wrap; } .social-person > .row { margin-left: auto; } .header-tools { gap: 3px; } }
