:root{
  --bg:#070812;
  --panel: rgba(16, 18, 38, 0.64);
  --panel-2: rgba(14, 16, 32, 0.78);
  --stroke: rgba(255,255,255,0.10);
  --stroke-2: rgba(255,255,255,0.14);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);
  --muted2: rgba(255,255,255,0.48);
  --hot: #ff3bd4;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --good: #34d399;
  --bad: #fb7185;
  --shadow: 0 30px 60px rgba(0,0,0,0.46);
  --radius: 22px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Outfit, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

.bg{ position:fixed; inset:0; z-index:0; }
.bg__image{
  position:absolute; inset:0;
  width:100%; height:100%;
  background-image:url('assets/seoul_neon_bg.jpg');
  background-size:cover;
  background-position:center;
  filter: saturate(1.15) contrast(1.02) brightness(0.75);
  transform: scale(1.08);
  will-change: transform;
}
.bg__overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 600px at 20% 15%, rgba(255,59,212,0.18), transparent 58%),
    radial-gradient(900px 520px at 85% 35%, rgba(34,211,238,0.16), transparent 60%),
    radial-gradient(900px 600px at 60% 90%, rgba(167,139,250,0.14), transparent 55%),
    linear-gradient(180deg, rgba(4,5,12,0.12) 0%, rgba(4,5,12,0.75) 55%, rgba(4,5,12,0.92) 100%);
}
.bg__grid{
  position:absolute; inset:0;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity:0.15;
  mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,1), rgba(0,0,0,0) 70%);
}
.bg__glow{ position:absolute; width:520px; height:520px; border-radius:999px; filter: blur(50px); opacity:0.18; }
.bg__glow--a{ left:-120px; top:120px; background: radial-gradient(circle, rgba(255,59,212,0.9), transparent 70%); animation: floatA 9s ease-in-out infinite; }
.bg__glow--b{ right:-140px; bottom:-60px; background: radial-gradient(circle, rgba(34,211,238,0.9), transparent 70%); animation: floatB 11s ease-in-out infinite; }
@keyframes floatA{ 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(30px,-22px);} }
@keyframes floatB{ 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(-26px,-18px);} }

.app{ position: relative; z-index: 1; min-height:100dvh; display:flex; align-items:center; justify-content:center; padding: 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

.screen{ display:none; width: min(1100px, 100%); }
.screen--active{ display:block; }

.card{
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card--thin{ border-radius: 18px; }

.hero{
  padding: 42px 26px 28px;
  display:flex;
  flex-direction:column;
  gap: 20px;
  align-items:center;
  text-align:center;
}
.hero__brand{ width:min(720px, 100%); }

.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size: 12px;
  padding: 6px 10px;
  border:1px solid rgba(255,255,255,0.16);
  border-radius:999px;
  background: rgba(0,0,0,0.24);
  color: var(--muted);
}

.title{ margin: 14px 0 10px; font-size: clamp(28px, 4.4vw, 46px); letter-spacing: -0.02em; }
.title__accent{ background: linear-gradient(90deg, var(--hot), var(--cyan)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.subtitle{ margin:0 auto; max-width: 640px; font-size: 16px; line-height:1.7; color: var(--muted); }

.disclaimer{ margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,0.26); border:1px solid rgba(255,255,255,0.12); text-align:left; }
.disclaimer p{ margin:0; font-size: 13px; color: rgba(255,255,255,0.72); line-height:1.6; }

.hint{ font-size: 12px; color: rgba(255,255,255,0.55); }

#screen-intro{
  position: relative;
  min-height: min(920px, calc(100dvh - 36px));
  overflow: hidden;
  border-radius: 32px;
}
#screen-intro.screen--active{ display:grid; }

.introScene{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}
.introScene::before,
.introScene::after{
  content:'';
  position:absolute;
  inset:0;
}
.introScene::before{
  background:
    radial-gradient(900px 420px at 50% 105%, rgba(255,186,236,0.22), transparent 62%),
    radial-gradient(640px 320px at 74% 62%, rgba(122,211,255,0.14), transparent 64%),
    radial-gradient(540px 280px at 18% 70%, rgba(255,79,212,0.14), transparent 70%);
  mix-blend-mode: screen;
}
.introScene::after{
  background: linear-gradient(180deg, rgba(3,4,10,0.12) 0%, rgba(3,4,10,0.36) 36%, rgba(3,4,10,0.82) 100%);
}

.introTicker{
  position:absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 4;
  display:flex;
  align-items:center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(8,11,24,0.55);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.introTicker__label{
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}
.introTicker__viewport{
  position:relative;
  flex:1 1 auto;
  overflow:hidden;
  white-space:nowrap;
}
.introTicker__track{
  display:inline-block;
  font-size: 12px;
  color: rgba(255,255,255,0.86);
  text-shadow: 0 0 18px rgba(255,59,212,0.24);
}
.introTicker.is-marquee .introTicker__track{
  width:max-content;
  padding-right: 40px;
  animation: introMarquee 18s linear infinite;
}

.introScene__lights{
  position:absolute;
  inset:0;
  z-index:1;
}
.introScene__beam{
  position:absolute;
  top:-10%;
  width: 220px;
  height: 60%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0.08) 26%, rgba(150,114,255,0.04) 54%, transparent 100%);
  filter: blur(12px);
  opacity:0.42;
  transform-origin: 50% 0%;
  mix-blend-mode: screen;
}
.introScene__beam--a{
  left: 6%;
  animation: introBeamSweep 8.4s ease-in-out infinite;
}
.introScene__beam--b{
  left: 40%;
  width: 280px;
  opacity:0.5;
  animation: introBeamSweepAlt 10.2s ease-in-out infinite;
}
.introScene__beam--c{
  right: 2%;
  opacity:0.34;
  animation: introBeamSweepSoft 9.1s ease-in-out infinite;
}

.introScene__silhouette{
  position:absolute;
  left: clamp(18px, 10vw, 130px);
  bottom: 112px;
  width: clamp(150px, 18vw, 230px);
  height: clamp(280px, 40vw, 430px);
  border-radius: 120px 120px 60px 70px;
  background:
    radial-gradient(circle at 46% 16%, rgba(48,41,80,0.24), transparent 18%),
    linear-gradient(180deg, rgba(8,8,18,0.18) 0%, rgba(3,4,10,0.86) 26%, rgba(1,2,8,0.98) 100%);
  box-shadow:
    0 0 80px rgba(27,20,59,0.36),
    0 24px 44px rgba(0,0,0,0.42),
    inset -18px 0 40px rgba(255,160,222,0.06);
  filter: saturate(0.8);
  opacity:0.96;
}
.introScene__silhouette::before{
  content:'';
  position:absolute;
  width: 88px;
  height: 88px;
  left: 34px;
  top: -34px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, rgba(28,24,44,0.96), rgba(1,2,8,0.98) 72%);
  box-shadow: -8px 22px 0 18px rgba(3,4,10,0.96);
}
.introScene__silhouette::after{
  content:'';
  position:absolute;
  width: 110%;
  height: 58%;
  left: -4%;
  top: 6%;
  border-radius: 50% 50% 44% 46%;
  background: radial-gradient(circle at 30% 34%, rgba(44,38,74,0.16), rgba(2,3,8,0.98) 66%);
  opacity:0.92;
  transform: rotate(-8deg);
}

.introScene__balcony{
  position:absolute;
  left: -4%;
  right: -4%;
  bottom: 70px;
  height: 40px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04) 34%, rgba(7,8,18,0.92) 36%, rgba(3,4,10,0.98) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 20%, transparent 80%, rgba(255,255,255,0.08));
  box-shadow: 0 -10px 40px rgba(255,176,236,0.12);
  transform: rotate(-2.5deg) translateY(4px);
}
.introScene__balcony::before,
.introScene__balcony::after{
  content:'';
  position:absolute;
  top: 100%;
  width: 100%;
  height: 120px;
  background: repeating-linear-gradient(90deg, rgba(5,6,16,0.9) 0 12px, transparent 12px 108px);
  opacity:0.72;
}
.introScene__balcony::after{
  transform: skewX(-8deg);
  opacity:0.26;
}

.introScene__cityGlow{
  position:absolute;
  left: 12%;
  right: 8%;
  bottom: 22px;
  height: 220px;
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(255,196,237,0.34), transparent 72%),
    radial-gradient(48% 60% at 72% 86%, rgba(132,223,255,0.22), transparent 78%);
  filter: blur(18px);
  opacity:0.88;
  animation: introCityBreath 7.2s ease-in-out infinite;
}

.introParticles{
  position:absolute;
  inset:0;
  z-index:2;
  overflow:hidden;
}
.introParticle{
  position:absolute;
  left: var(--x, 50%);
  bottom: -12%;
  width: var(--size, 8px);
  height: var(--size, 8px);
  border-radius:999px;
  background: radial-gradient(circle, rgba(255,255,255,0.92), rgba(255,255,255,0.12) 55%, transparent 72%);
  box-shadow: 0 0 20px rgba(255,154,227,0.44);
  opacity: var(--alpha, 0.48);
  animation: introParticleFloat var(--dur, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.hero--intro{
  position:relative;
  z-index:3;
  min-height: inherit;
  padding: clamp(20px, 3vw, 30px);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  gap: 18px;
  border-radius: 32px;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(6,8,18,0.08) 0%, rgba(6,8,18,0.14) 24%, rgba(6,8,18,0.34) 52%, rgba(6,8,18,0.72) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 32px 80px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero--intro::before,
.hero--intro::after{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
}
.hero--intro::before{
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 20%, transparent 72%, rgba(255,255,255,0.04) 100%);
}
.hero--intro::after{
  background: radial-gradient(720px 180px at 50% 110%, rgba(255,120,214,0.12), transparent 72%);
}

.introBoot{
  width:min(680px, 100%);
  align-self:flex-start;
  margin-top: 56px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(7,11,26,0.74), rgba(6,8,18,0.58));
  box-shadow: 0 18px 36px rgba(0,0,0,0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity .45s ease, transform .45s ease, border-color .45s ease;
}
.introBoot.is-complete{
  opacity:0.78;
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.08);
}
.introBoot__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}
.introBoot__lines{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  min-height: 118px;
}
.introBoot__line{
  display:grid;
  grid-template-columns: 2.5rem 1fr 3rem;
  align-items:center;
  gap: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(232,241,255,0.80);
}
.introBoot__line.is-live{ color: rgba(255,255,255,0.94); }
.introBoot__prompt{ color: rgba(125,232,255,0.66); }
.introBoot__text{
  min-height: 1.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.introBoot__status{
  min-width: 42px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  font-size: 10px;
  letter-spacing: .12em;
  text-align:center;
  color: rgba(255,255,255,0.72);
  opacity:0;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}
.introBoot__line.is-done .introBoot__status{
  opacity:1;
  transform: translateY(0);
  color: rgba(179,255,226,0.88);
}
.introBoot__text.is-typing::after,
.introSubtitle.is-typing::after{
  content:'';
  display:inline-block;
  width:2px;
  height: 1em;
  margin-left: 6px;
  vertical-align: -0.12em;
  background: linear-gradient(180deg, rgba(255,59,212,0.96), rgba(132,223,255,0.96));
  animation: createCaret 1s steps(1) infinite;
}

.hero__brand--intro{
  width:min(760px, 100%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 18px;
  opacity:0;
  transform: translateY(36px);
  transition: opacity .9s cubic-bezier(.2,.72,.1,1), transform .9s cubic-bezier(.2,.72,.1,1);
}
#screen-intro.is-revealed .hero__brand--intro{
  opacity:1;
  transform: translateY(0);
}
.introBadge{
  background: rgba(13,10,32,0.46);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.74);
}
.introTitle{
  margin:0;
  font-size: clamp(48px, 8.6vw, 88px);
  line-height: .96;
  color: #fff3ff;
  text-shadow:
    0 0 10px rgba(255,255,255,0.42),
    0 0 22px rgba(255,181,245,0.48),
    0 0 48px rgba(255,59,212,0.46),
    0 0 86px rgba(169,104,255,0.34);
  animation: introNeonPulse 4.8s ease-in-out infinite;
}
.title__line{ display:block; }
.title__accent--intro{
  display:block;
  margin-top: .26em;
  font-size: clamp(16px, 2.8vw, 28px);
  letter-spacing: .4em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff7ff 0%, #ffd7fb 26%, #ceb4ff 64%, #aff4ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter: drop-shadow(0 0 12px rgba(255,193,241,0.36));
}

.introCopyCard{
  width:min(700px, 100%);
  padding: 22px 22px 18px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(47,23,88,0.58), rgba(17,12,40,0.72));
  box-shadow: 0 26px 44px rgba(10,8,26,0.36), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.introSubtitle{
  margin:0;
  min-height: 4.8em;
  max-width: none;
  white-space: pre-line;
  font-size: clamp(18px, 2.35vw, 25px);
  line-height: 1.75;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 10px 24px rgba(8,4,24,0.42);
}
.introDisclaimer{
  margin-top: 14px;
  background: rgba(6,8,18,0.14);
  border-color: rgba(255,255,255,0.10);
}
.introDisclaimer p{ color: rgba(255,255,255,0.68); }

.introActions{
  width:min(700px, 100%);
}
.introActions .btn{
  min-width: 0;
  opacity:0;
  transform: translateY(18px);
  pointer-events:none;
  transition: opacity .55s cubic-bezier(.2,.7,.1,1), transform .55s cubic-bezier(.2,.7,.1,1), box-shadow .24s ease, border-color .24s ease;
}
.introActions .btn.is-visible{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}
.introActions .btn--primary{
  color: #341b53;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,231,255,0.96) 52%, rgba(232,216,255,0.92) 100%);
  box-shadow:
    0 18px 38px rgba(255,198,243,0.22),
    0 0 30px rgba(255,96,224,0.18);
}
.introActions .btn--primary:hover{
  box-shadow:
    0 22px 42px rgba(255,198,243,0.28),
    0 0 42px rgba(255,96,224,0.24);
}
.introActions .btn--primary.is-visible{
  animation: introCtaPulse 3.6s ease-in-out infinite;
}
.introActions .btn--ghost{
  background: rgba(14,16,34,0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.introHint{
  max-width: 700px;
  text-align:center;
  opacity:0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.introHint.is-visible{
  opacity:1;
  transform: translateY(0);
}

@keyframes introMarquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@keyframes introBeamSweep{
  0%,100%{ transform: rotate(-18deg) translateX(0) translateY(0); }
  50%{ transform: rotate(-8deg) translateX(26px) translateY(12px); }
}
@keyframes introBeamSweepAlt{
  0%,100%{ transform: rotate(-4deg) translateX(0) translateY(0); }
  50%{ transform: rotate(12deg) translateX(-18px) translateY(16px); }
}
@keyframes introBeamSweepSoft{
  0%,100%{ transform: rotate(22deg) translateX(0) translateY(0); }
  50%{ transform: rotate(8deg) translateX(-24px) translateY(10px); }
}
@keyframes introParticleFloat{
  0%{ transform: translate3d(0, 0, 0) scale(.88); opacity:0; }
  10%{ opacity: var(--alpha, 0.48); }
  55%{ opacity: calc(var(--alpha, 0.48) + 0.12); }
  100%{ transform: translate3d(var(--drift, 0px), -118vh, 0) scale(1.22); opacity:0; }
}
@keyframes introCityBreath{
  0%,100%{ transform: translateY(0); opacity:0.82; }
  50%{ transform: translateY(-8px); opacity:1; }
}
@keyframes introNeonPulse{
  0%,100%{
    text-shadow:
      0 0 10px rgba(255,255,255,0.42),
      0 0 22px rgba(255,181,245,0.48),
      0 0 48px rgba(255,59,212,0.46),
      0 0 86px rgba(169,104,255,0.34);
  }
  50%{
    text-shadow:
      0 0 12px rgba(255,255,255,0.54),
      0 0 28px rgba(255,193,248,0.6),
      0 0 56px rgba(255,59,212,0.62),
      0 0 98px rgba(169,104,255,0.44);
  }
}
@keyframes introCtaPulse{
  0%,100%{ box-shadow: 0 18px 38px rgba(255,198,243,0.22), 0 0 30px rgba(255,96,224,0.18); }
  50%{ box-shadow: 0 22px 42px rgba(255,198,243,0.32), 0 0 42px rgba(255,96,224,0.28); }
}

@media (max-width: 760px){
  #screen-intro{ min-height: calc(100dvh - 36px); }
  .introTicker{
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 12px;
  }
  .hero--intro{
    padding: 16px;
    border-radius: 28px;
  }
  .introBoot{
    width:100%;
    padding: 14px;
  }
  .introBoot__lines{ min-height: 106px; }
  .hero__brand--intro{ gap: 14px; }
  .introCopyCard{
    padding: 18px 16px 16px;
    border-radius: 24px;
  }
  .introSubtitle{
    min-height: 5.6em;
    font-size: clamp(17px, 4.5vw, 22px);
  }
  .introActions{
    flex-direction:column;
    align-items:stretch;
  }
  .introActions .btn{ width:100%; }
  .introScene__silhouette{
    left: 10px;
    bottom: 124px;
    width: 148px;
    height: 290px;
    opacity:0.74;
  }
  .introScene__balcony{ bottom: 94px; }
}

@media (max-width: 540px){
  .introTicker__label{ display:none; }
  .introTitle{ font-size: clamp(42px, 15vw, 62px); }
  .title__accent--intro{
    margin-top: .32em;
    font-size: clamp(14px, 4vw, 18px);
    letter-spacing: .26em;
  }
  .introBoot__line{
    grid-template-columns: 28px minmax(0, 1fr) auto;
    font-size: 11px;
    gap: 8px;
  }
  .introScene__beam--b{ opacity:0.18; }
}

.btn{
  cursor:pointer;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.28); }
.btn:active{ transform: translateY(0px) scale(0.99); }
.btn--primary{
  background: linear-gradient(90deg, rgba(255,59,212,0.98), rgba(34,211,238,0.92));
  border-color: rgba(255,255,255,0.0);
  box-shadow: 0 16px 30px rgba(255,59,212,0.18);
}
.btn--primary:hover{ box-shadow: 0 22px 44px rgba(34,211,238,0.18); }
.btn--ghost{ background: rgba(0,0,0,0.12); }
.btn--full{ width:100%; }

.header{ padding: 22px 22px 0; }
.header h2{ margin:0; font-size: 22px; }
.muted{ margin:8px 0 0; color: var(--muted); line-height:1.6; }

.form{ padding: 18px 22px 22px; display:flex; flex-direction:column; gap: 14px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field label{ font-size: 13px; color: rgba(255,255,255,0.72); }
input{
  background: rgba(0,0,0,0.26);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 14px;
  outline:none;
}
input:focus{ border-color: rgba(34,211,238,0.55); box-shadow: 0 0 0 4px rgba(34,211,238,0.10); }

.grid{ display:grid; gap: 10px; }
.grid--heroes{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 920px){
  .grid--heroes{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.heroGroups{ display:flex; flex-direction:column; gap: 12px; }
.heroGroup{ padding: 10px 10px 12px; border-radius: 18px; border:1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.14); }
.heroGroup__title{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; font-size: 12px; letter-spacing: .10em; text-transform: uppercase; color: rgba(255,255,255,0.68); padding: 2px 4px 10px; }
.heroGroup__title b{ letter-spacing: .08em; color: rgba(255,255,255,0.88); }
.heroGroup__title span{ letter-spacing: 0; text-transform:none; color: rgba(255,255,255,0.55); }
.heroGroup__grid{ margin-top: 4px; }

.heroCard{
  position:relative;
  padding: 12px 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.16);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.heroCard:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.28); }
.heroCard--active{ border-color: rgba(255,59,212,0.65); box-shadow: 0 0 0 4px rgba(255,59,212,0.12); }
.heroCard__group{ display:inline-flex; align-items:center; gap:8px; font-size: 11px; padding: 6px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.80); background: rgba(0,0,0,0.18); }
.heroCard__name{ margin-top: 8px; font-weight: 800; letter-spacing: -0.01em; }
.heroCard__kr{ margin-top: 2px; font-size: 12px; color: rgba(255,255,255,0.62); }
.heroCard__meta{ margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.78); line-height: 1.55; }
.heroCard__tag{ display:block; margin-top: 10px; font-size: 12px; padding: 10px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.80); background: rgba(0,0,0,0.14); line-height: 1.55; }
.heroCard__glint{ position:absolute; inset:0; border-radius: 16px; pointer-events:none; background: radial-gradient(320px 120px at 20% 0%, rgba(34,211,238,0.14), transparent 55%); opacity:0.0; transition: opacity .12s ease; }
.heroCard:hover .heroCard__glint{ opacity:1; }

.seg{ display:flex; flex-wrap:wrap; gap: 8px; }
.seg button{
  flex: 1 1 auto;
  min-width: 120px;
  text-align:left;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.20);
  border:1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.86);
}
.seg button small{ display:block; margin-top:4px; color: rgba(255,255,255,0.55); font-weight: 400; line-height: 1.3; }
.seg button.seg--active{ border-color: rgba(34,211,238,0.56); box-shadow: 0 0 0 4px rgba(34,211,238,0.10); }

.error{ min-height: 18px; color: #fecaca; font-size: 13px; }

/* immersive create flow */
.createCard{ overflow:hidden; }
.createFlow{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  min-height: min(860px, calc(100dvh - 44px));
  padding: 26px;
  display:flex;
  flex-direction:column;
  gap: 18px;
  background: linear-gradient(180deg, rgba(8,10,22,0.82), rgba(6,8,20,0.96));
}
.createFlow::before,
.createFlow::after{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  transition: opacity .45s ease, transform .55s ease, background .45s ease;
}
.createFlow::before{
  inset:-25% -10% auto;
  height: 65%;
  background: var(--create-glow, radial-gradient(circle at 18% 30%, rgba(255,59,212,0.26), transparent 48%));
  opacity: 0.96;
  z-index:-2;
}
.createFlow::after{
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 35%),
    var(--create-overlay, linear-gradient(180deg, rgba(8,10,24,0.16) 0%, rgba(8,10,24,0.76) 45%, rgba(6,8,18,0.98) 100%));
  z-index:-1;
}
.createFlow--step-1{
  --create-glow:
    radial-gradient(circle at 16% 22%, rgba(255,214,160,0.18), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(34,211,238,0.18), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(255,59,212,0.16), transparent 38%);
  --create-overlay:
    radial-gradient(1200px 480px at 18% 8%, rgba(255,191,135,0.14), transparent 48%),
    linear-gradient(180deg, rgba(15,18,34,0.28) 0%, rgba(8,10,24,0.84) 55%, rgba(7,9,18,0.98) 100%);
}
.createFlow--step-2{
  --create-glow:
    radial-gradient(circle at 18% 18%, rgba(167,139,250,0.26), transparent 30%),
    radial-gradient(circle at 88% 26%, rgba(34,211,238,0.20), transparent 30%),
    radial-gradient(circle at 54% 8%, rgba(255,59,212,0.14), transparent 36%);
  --create-overlay:
    radial-gradient(1000px 520px at 15% 12%, rgba(167,139,250,0.16), transparent 52%),
    linear-gradient(180deg, rgba(12,10,30,0.32) 0%, rgba(10,11,28,0.84) 56%, rgba(6,8,18,0.98) 100%);
}
.createFlow--step-3{
  --create-glow:
    radial-gradient(circle at 20% 14%, rgba(255,59,212,0.24), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255,226,112,0.16), transparent 24%),
    radial-gradient(circle at 54% 2%, rgba(34,211,238,0.22), transparent 38%);
  --create-overlay:
    radial-gradient(980px 420px at 70% 8%, rgba(255,226,112,0.12), transparent 45%),
    linear-gradient(180deg, rgba(18,10,28,0.30) 0%, rgba(9,10,25,0.82) 56%, rgba(5,7,18,0.98) 100%);
}
.createFlow--step-4{
  --create-glow:
    radial-gradient(circle at 16% 16%, rgba(34,211,238,0.24), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(167,139,250,0.22), transparent 28%),
    radial-gradient(circle at 52% 0%, rgba(255,59,212,0.14), transparent 34%);
  --create-overlay:
    radial-gradient(980px 460px at 22% 10%, rgba(34,211,238,0.12), transparent 48%),
    linear-gradient(180deg, rgba(8,14,30,0.28) 0%, rgba(8,11,24,0.84) 55%, rgba(5,8,18,0.98) 100%);
}
.createFlow__top{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items:start;
}
.createFlow__eyebrow,
.createPanel__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}
.createFlow__headline{
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.createFlow__progressWrap{
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.createFlow__progressLabel{
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255,255,255,0.66);
}
.createFlow__progressBar{
  margin-top: 12px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow:hidden;
}
.createFlow__progressBar i{
  display:block;
  width: 25%;
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(255,59,212,0.96), rgba(34,211,238,0.90));
  box-shadow: 0 0 24px rgba(255,59,212,0.34);
  transition: width .35s ease;
}
.createFlow__story{
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.createFlow__scene{
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.56);
}
.createFlow__narrative{
  margin: 12px 0 0;
  min-height: 74px;
  max-width: 860px;
  white-space: pre-wrap;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.78;
  color: rgba(255,255,255,0.94);
}
.createFlow__narrative::after{
  content:'';
  display:inline-block;
  width:2px;
  height:1em;
  margin-left: 6px;
  vertical-align: -0.12em;
  background: linear-gradient(180deg, rgba(255,59,212,0.96), rgba(34,211,238,0.92));
  animation: createCaret 1s steps(1) infinite;
}
.createFlow__hint{
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.64);
}
.createFlow__panels{ position:relative; }
.createPanel{
  display:none;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(6,8,18,0.46), rgba(8,10,22,0.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.createPanel--active{
  display:block;
  animation: createPanelIn .42s cubic-bezier(.2,.7,.1,1);
}
.createPanel__intro h3{
  margin: 12px 0 0;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
}
.createPanel__intro p{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.66);
  line-height: 1.7;
}
.createStepGrid{
  display:grid;
  gap: 16px;
  margin-top: 18px;
}
.createStepGrid--pair{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.createField{
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.createField--stacked{ gap: 12px; }
.createIdentityExtra{ margin-top: 16px; }
#createFlow input{
  background: rgba(5,8,18,0.72);
  border-color: rgba(255,255,255,0.14);
}
#createFlow #seg-identity,
#createFlow #seg-fanlevel,
#createFlow #seg-pace,
#createFlow #seg-length{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
#createFlow .seg button{
  min-width: 0;
  height: 100%;
  padding: 14px;
  border-radius: 18px;
  background: rgba(4,6,18,0.58);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
#createFlow .seg button:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.26);
  background: rgba(11,14,32,0.78);
}
#createFlow .seg button small{
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.66);
}
#createFlow .seg button small + small{ margin-top: 6px; color: rgba(255,255,255,0.54); }
#createFlow .seg button.seg--active{
  border-color: rgba(255,59,212,0.70);
  background: linear-gradient(180deg, rgba(255,59,212,0.12), rgba(34,211,238,0.08));
  box-shadow: 0 0 0 4px rgba(255,59,212,0.10);
}
#createFlow .heroGroups{ gap: 14px; }
#createFlow .heroGroup{
  padding: 12px;
  border-radius: 20px;
  border-color: rgba(255,255,255,0.12);
  background: rgba(4,6,18,0.40);
}
#createFlow .heroGroup__title{
  padding: 4px 6px 12px;
  color: rgba(255,255,255,0.58);
}
#createFlow .heroCard{
  background: linear-gradient(180deg, rgba(12,15,32,0.78), rgba(7,9,22,0.94));
  border-color: rgba(255,255,255,0.12);
}
#createFlow .heroCard:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}
#createFlow .heroCard--active{
  border-color: rgba(255,59,212,0.72);
  box-shadow: 0 0 0 4px rgba(255,59,212,0.12), 0 16px 32px rgba(0,0,0,0.28);
}
.heroCard__teaser{
  display:block;
  margin-top: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  line-height: 1.62;
  color: rgba(255,255,255,0.84);
}
.heroCard__sample{
  display:block;
  margin-top: 8px;
  color: rgba(255,255,255,0.54);
}
.createFlow__footer{
  margin-top: auto;
  display:grid;
  gap: 12px;
}
.createFlow__actions{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap: 10px;
}
#createFlow .error{ min-height: 22px; }
@keyframes createPanelIn{
  from{ opacity:0; transform: translateY(14px) translateX(18px); }
  to{ opacity:1; transform: translateY(0) translateX(0); }
}
@keyframes createCaret{
  0%, 49%{ opacity:1; }
  50%, 100%{ opacity:0; }
}
@media (max-width: 760px){
  .createFlow{
    min-height:auto;
    padding: 18px;
  }
  .createFlow__top,
  .createStepGrid--pair{
    grid-template-columns: 1fr;
  }
  .createFlow__progressWrap{ width:100%; }
  .createPanel{ padding: 16px; }
  .createFlow__narrative{ min-height: 88px; }
  .createFlow__actions .btn{ flex: 1 1 calc(50% - 8px); }
}

/* game layout */
.layout{ display:grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; align-items:start; }
@media (max-width: 880px){
  .layout{ grid-template-columns: 1fr; }
}

.side{ padding: 14px; position: sticky; top: 14px; }
@media (max-width: 880px){
  .side{ position: fixed; right: 12px; left: 12px; top: 72px; z-index: 10; display:none; }
  .side.side--open{ display:block; }
}
.side__title{ font-size: 12px; color: rgba(255,255,255,0.62); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.kv{ display:flex; justify-content:space-between; gap: 10px; padding: 10px 10px; background: rgba(0,0,0,0.16); border:1px solid rgba(255,255,255,0.10); border-radius: 14px; margin-bottom: 10px; }
.kv__k{ font-size: 12px; color: rgba(255,255,255,0.62); }
.kv__v{ font-size: 12px; color: rgba(255,255,255,0.88); text-align:right; }
.divider{ height:1px; background: rgba(255,255,255,0.10); margin: 12px 0; }

.hero-mini{ display:flex; flex-direction:column; gap: 6px; padding: 12px; border-radius: 16px; border:1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.18); }
.hero-mini__name{ font-weight:700; }
.hero-mini__desc{ font-size:13px; color: rgba(255,255,255,0.90); line-height:1.55; text-shadow: 0 2px 14px rgba(0,0,0,0.55); }

.main{ display:flex; flex-direction:column; gap: 14px; position: relative; z-index: 20; }
.stats{ padding: 12px 14px; display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 980px){
  .stats{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}

.stat{ padding: 10px 10px; border-radius: 16px; background: rgba(0,0,0,0.16); border: 1px solid rgba(255,255,255,0.10); }
.stat__row{ display:flex; justify-content:space-between; gap: 10px; align-items:baseline; }
.stat__k{ font-size: 12px; color: rgba(255,255,255,0.68); }
.stat__v{ font-size: 12px; color: rgba(255,255,255,0.92); font-weight: 700; }
.bar{ margin-top: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow:hidden; }
.bar > i{ display:block; height:100%; width: 40%; background: linear-gradient(90deg, rgba(255,59,212,0.9), rgba(34,211,238,0.85)); border-radius: 999px; }

.story{ padding: 14px 14px 20px; }
.story__top{ display:flex; justify-content:space-between; gap: 10px; align-items:center; margin-bottom: 10px; }
.chip{ font-size: 12px; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.16); color: rgba(255,255,255,0.82); }
.chip--ghost{ color: rgba(255,255,255,0.74); border-color: rgba(255,255,255,0.12); }

.story__text{
  min-height: 260px;
  line-height: 1.85;
  font-size: 15px;
  color: rgba(255,255,255,0.90);
  letter-spacing: 0.01em;
  outline:none;
  padding-bottom: 30px;
}
.story__text p{ margin: 0 0 10px 0; }
.story__text p:last-child{ margin-bottom: 0; }

.choices{ display:grid; grid-template-columns: 1fr; gap: 10px; }

.choiceBtn{
  padding: 12px 12px;
  text-align:left;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.96);
  cursor:pointer;
  touch-action: manipulation;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.choiceBtn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.32); }
.choiceBtn{ font-size: 15px; }
.choiceBtn small{ display:block; margin-top: 6px; color: rgba(255,255,255,0.98); line-height: 1.35; font-size: 14px; font-weight: 500; text-shadow: 0 2px 14px rgba(0,0,0,0.55); }

.choiceFreeform{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.choiceFreeform__title{ font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.96); }
.choiceFreeform__sub{ font-size: 13px; color: rgba(255,255,255,0.68); line-height: 1.5; }
.choiceFreeform__row{ display:flex; gap: 10px; align-items:center; }
.choiceFreeform__input{
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.42);
  color: rgba(255,255,255,0.96);
  outline: none;
}
.choiceFreeform__input::placeholder{ color: rgba(255,255,255,0.42); }
.choiceFreeform__input:focus{ border-color: rgba(255,255,255,0.32); box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
.choiceFreeform__submit{
  width: auto;
  min-width: 110px;
  white-space: nowrap;
}
@media (max-width: 560px){
  .choiceFreeform__row{ flex-direction: column; }
  .choiceFreeform__submit{ width: 100%; }
}

.mobileBar{
  display:none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(5,6,12,0.72);
  border-top: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
}
@media (max-width: 880px){
  .mobileBar{ display:block; }
}


/* extra UI: buttons / playlist / save / modal / toast / music */
.btnRow{ display:flex; flex-wrap:wrap; gap: 10px; justify-content:center; }
.btnRow .btn{ min-width: 160px; }

.playlist{ display:flex; flex-direction:column; gap: 8px; padding: 12px; border-radius: 16px; border:1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.18); }
.playlist + .playlist{ margin-top: 10px; }
.playlist__item{ font-size: 12px; line-height: 1.55; color: rgba(255,255,255,0.86); }
.playlist__item b{ color: rgba(255,255,255,0.94); }
.playlist__nowTitle{ font-size: 14px; font-weight: 800; color: rgba(255,255,255,0.96); }
.playlist__meta{ font-size: 12px; color: rgba(255,255,255,0.68); }
.playlist__reason{ font-size: 12px; color: rgba(255,255,255,0.78); line-height: 1.55; }
.playlist__links{ display:flex; flex-wrap:wrap; gap: 8px; }
.playlist__link{ display:inline-flex; align-items:center; justify-content:center; min-height: 30px; padding: 0 10px; border-radius: 999px; border:1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.92); text-decoration:none; background: rgba(255,255,255,0.06); }
.playlist__link:hover{ border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.10); }
.playlist__empty{ font-size: 12px; color: rgba(255,255,255,0.62); }

.saveWrap{ padding: 0 22px 22px; display:flex; flex-direction:column; gap: 12px; }
.saveSlot{ padding: 14px 14px; border-radius: 18px; border:1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.16); }
.saveSlot__top{ display:flex; justify-content:space-between; gap: 10px; align-items:flex-start; }
.saveSlot__name{ font-weight: 800; letter-spacing: -0.01em; }
.saveSlot__meta{ margin-top: 6px; font-size: 12px; color: rgba(255,255,255,0.70); line-height: 1.55; }
.saveSlot__btns{ margin-top: 12px; display:flex; gap: 10px; flex-wrap:wrap; }
.saveSlot__btns .btn{ padding: 10px 12px; border-radius: 14px; }

.musicCtrl{
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 25;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.14);
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.musicCtrl__btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
  color: #fff;
  text-shadow: 0 0 16px rgba(255,59,212,0.42);
  cursor:pointer;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}
.musicCtrl__btn:hover{ border-color: rgba(255,255,255,0.28); }
.musicCtrl__btn,
.musicCtrl__vol{
  pointer-events: auto;
  touch-action: manipulation;
}
.musicCtrl__vol{
  width: 130px;
  accent-color: rgba(255,59,212,0.92);
}

@media (max-width: 520px){
  .musicCtrl__vol{ width: 96px; }
}

.toastHost{
  position: fixed;
  left: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 35;
  display:flex;
  flex-direction:column;
  gap: 10px;
  max-width: min(360px, calc(100% - 28px));
  pointer-events:none;
}
.toast{
  pointer-events:auto;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  animation: toastIn 0.18s ease-out;
}
.toast__from{ font-weight: 800; letter-spacing: -0.01em; }
.toast__text{ margin-top: 6px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.88); }
@keyframes toastIn{
  from{ transform: translateY(10px); opacity:0.0; }
  to{ transform: translateY(0); opacity:1.0; }
}

.modal{ position: fixed; inset:0; z-index: 50; display:none; align-items:center; justify-content:center; padding: 16px; }
.modal.modal--open{ display:flex; }
.modal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,0.60); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal__card{ position:relative; width: min(920px, 100%); max-height: 92vh; overflow:auto; }
.modal__header{ padding: 18px 22px 0; }
.modal__header h2{ margin:0; font-size: 22px; }
.modal__body{ padding: 16px 22px; }
.modal__footer{ padding: 0 22px 22px; display:flex; gap: 10px; justify-content:flex-end; flex-wrap:wrap; }

.settleGrid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px){
  .settleGrid{ grid-template-columns: 1fr; }
}
.settleList{ display:flex; flex-direction:column; gap: 8px; }
.settleItem{ display:flex; justify-content:space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; border:1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.14); }
.settleItem__k{ font-size: 12px; color: rgba(255,255,255,0.70); }
.settleItem__v{ font-size: 12px; font-weight: 800; }
.deltaUp{ color: var(--good); }
.deltaDown{ color: var(--bad); }

.settleStage{ padding: 12px 12px; border-radius: 16px; border:1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.18); font-size: 14px; line-height: 1.6; }
.settleQuote{ padding: 12px 12px; border-radius: 16px; border:1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.18); font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.90); }


/* ===== System Upgrade: Phone / Achievements / Ending ===== */

.toggle{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.16);
  font-size: 13px;
  color: rgba(255,255,255,0.86);
}
.toggle input{
  width: 18px;
  height: 18px;
  accent-color: rgba(255,59,212,0.92);
}

.fabGroup{
  position: fixed;
  right: 14px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 32;
  display:flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.fab{
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  box-shadow: 0 18px 40px rgba(0,0,0,0.36);
  transition: transform .12s ease, border-color .12s ease;
}
.fab:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.30); }
.fab:active{ transform: translateY(0px) scale(0.98); }
.fab--alt{ text-shadow: 0 0 18px rgba(34,211,238,0.35); }

/* Phone modal */
.modal--phone{ z-index: 60; }
.phone{
  position: relative;
  width: min(390px, calc(100vw - 28px));
  height: min(820px, calc(100vh - 32px));
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(255,59,212,0.14), transparent 60%),
    radial-gradient(900px 500px at 95% 20%, rgba(34,211,238,0.14), transparent 58%),
    rgba(8, 9, 18, 0.92);
  box-shadow: 0 40px 80px rgba(0,0,0,0.60);
  overflow: hidden;
  display:flex;
  flex-direction: column;
}
.phone__status{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 16px 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
}
.phone__time{ font-size: 13px; }
.phone__statusRight{ display:flex; align-items:center; gap:10px; font-size: 12px; color: rgba(255,255,255,0.80); }
.phone__battery{
  width: 26px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.35);
  position: relative;
  overflow:hidden;
}
.phone__battery:after{
  content:"";
  position:absolute;
  right:-3px;
  top:3px;
  width:3px;
  height:6px;
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
}
.phone__battery i{ display:block; height:100%; width: 62%; background: linear-gradient(90deg, rgba(52,211,153,0.95), rgba(34,211,238,0.85)); }

.phone__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 16px 10px;
}
.phone__appTitle{ font-weight: 900; font-size: 15px; letter-spacing: -0.01em; }
.phone__close{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.20);
  color: rgba(255,255,255,0.92);
  cursor:pointer;
  font-size: 20px;
  line-height: 1;
}
.phone__close:hover{ border-color: rgba(255,255,255,0.28); }

.phone__tabs{
  padding: 0 12px 10px;
  display:flex;
  gap: 10px;
  overflow:auto;
  scrollbar-width: none;
}
.phone__tabs::-webkit-scrollbar{ display:none; }
#phoneModal[data-view="chat-thread"] .phone__tabs,
#phoneModal[data-view="weverse-detail"] .phone__tabs,
#phoneModal[data-view="weverse-notifications"] .phone__tabs,
#phoneModal[data-view="bubble-thread"] .phone__tabs,
#phoneModal[data-view="youtube-detail"] .phone__tabs,
#phoneModal[data-view="instagram-detail"] .phone__tabs,
#phoneModal[data-view="instagram-story"] .phone__tabs,
#phoneModal[data-view="forum-detail"] .phone__tabs{
  display: none;
}
.phoneTab{
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.86);
  font-weight: 700;
  font-size: 12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap: 8px;
}
.phoneTab--active{
  border-color: rgba(34,211,238,0.55);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.10);
}
.phoneTab__badge{
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  font-weight: 900;
  background: rgba(255,59,212,0.92);
  color: #0b0c14;
}

.phone__content{
  flex: 1;
  overflow:auto;
  padding: 0 12px 12px;
}

.phoneCard{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.20);
  padding: 12px 12px;
  margin-bottom: 12px;
}
.phoneCard__title{ font-weight: 900; letter-spacing: -0.01em; }
.phoneCard__sub{ margin-top: 6px; font-size: 12px; color: rgba(255,255,255,0.62); line-height: 1.5; }

/* Chat */
.chatList{ display:flex; flex-direction:column; gap: 10px; }
.chatRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  cursor:pointer;
}
.chatRow__left{ display:flex; align-items:center; gap: 10px; min-width: 0; }
.chatAvatar{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(255,59,212,0.24), rgba(34,211,238,0.18));
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
}
.chatMeta{ min-width: 0; }
.chatName{ font-weight: 900; }
.chatPreview{ margin-top: 4px; font-size: 12px; color: rgba(255,255,255,0.62); white-space: nowrap; overflow:hidden; text-overflow: ellipsis; max-width: 240px; }
.chatUnread{
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,59,212,0.92);
  color: #0b0c14;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 900;
}

.chatThread{ display:flex; flex-direction:column; gap: 10px; }
.chatBubble{
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.24);
  line-height: 1.6;
  font-size: 13px;
}
.chatBubble--me{ align-self:flex-end; background: rgba(34,211,238,0.12); border-color: rgba(34,211,238,0.22); }
.chatBubble--other{ align-self:flex-start; }
.chatBubble__from{ font-weight: 900; font-size: 12px; color: rgba(255,255,255,0.82); margin-bottom: 4px; }
.chatBubble__time{ margin-top: 6px; font-size: 11px; color: rgba(255,255,255,0.45); }

.phoneBackBtn{
  width: 100%;
  margin-bottom: 10px;
}

/* Social feed / News / Opinion */
.feed{ display:flex; flex-direction:column; gap: 12px; }
.feedItem{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  padding: 12px 12px;
}
.feedTop{ display:flex; justify-content:space-between; gap: 10px; align-items:flex-start; }
.feedAuthor{ font-weight: 900; }
.feedTime{ font-size: 11px; color: rgba(255,255,255,0.55); }
.feedText{ margin-top: 8px; line-height: 1.65; font-size: 13px; color: rgba(255,255,255,0.90); }
.feedMeta{ margin-top: 10px; display:flex; gap: 10px; flex-wrap:wrap; font-size: 12px; color: rgba(255,255,255,0.62); }
.feedMeta b{ color: rgba(255,255,255,0.86); }

.newsTag{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  font-size: 11px;
  color: rgba(255,255,255,0.78);
}
.newsTag--hot{ border-color: rgba(255,59,212,0.40); color: rgba(255,255,255,0.88); }

.forumShot{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.86);
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 12px 12px;
}

/* Achievements modal */
.achvTabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 12px; }
.achvTab{
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.86);
  font-weight: 800;
  cursor:pointer;
}
.achvTab--active{ border-color: rgba(255,59,212,0.55); box-shadow: 0 0 0 4px rgba(255,59,212,0.10); }

.achvGrid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 880px){
  .achvGrid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.achvCard{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  padding: 12px 12px;
}
.achvCard--locked{ opacity: 0.55; }
.achvTitle{ font-weight: 900; }
.achvDesc{ margin-top: 6px; font-size: 12px; color: rgba(255,255,255,0.62); line-height: 1.55; }
.achvBadge{ margin-top: 10px; font-size: 12px; color: rgba(255,255,255,0.78); }

.cgGrid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 880px){
  .cgGrid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.cgCard{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  padding: 12px 12px;
}
.cgThumb{
  height: 110px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(255,59,212,0.16), rgba(34,211,238,0.14));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.cgCard--locked .cgThumb{ filter: grayscale(1) brightness(0.65); }
.cgName{ margin-top: 10px; font-weight: 900; }
.cgMeta{ margin-top: 6px; font-size: 12px; color: rgba(255,255,255,0.62); line-height: 1.5; }

/* Ending screen */
.endingBody{ margin-top: 14px; padding: 12px 14px; border-radius: 18px; background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.12); text-align:left; }
.endingBody p{ margin: 0 0 10px 0; line-height: 1.75; color: rgba(255,255,255,0.88); }
.endingBody p:last-child{ margin-bottom: 0; }


/* --- Visual upgrade: portraits / CG / themes / typewriter --- */

body{
  transition: background 700ms ease, color 700ms ease;
}

.card,
.choiceBtn,
.btn,
.musicCtrl,
.kv,
.heroGroup,
.heroCard,
.playlist,
.hero-mini,
.toast,
.mobileBar,
.modal__card{
  transition: background 700ms ease, border-color 700ms ease, box-shadow 700ms ease, color 700ms ease, transform 180ms ease;
}

body[data-time="day"]{
  --bg: linear-gradient(180deg, #0e1330 0%, #070912 100%);
  --panel: rgba(22, 24, 48, 0.60);
  --panel-2: rgba(18, 20, 40, 0.76);
  --stroke: rgba(255,255,255,0.12);
  --stroke-2: rgba(255,255,255,0.18);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.52);
}

body[data-time="dusk"]{
  --bg: linear-gradient(180deg, #2a1020 0%, #070812 80%);
  --panel: rgba(18, 14, 28, 0.62);
  --panel-2: rgba(14, 10, 22, 0.80);
  --hot: #ff6bd6;
  --amber: #ffcc66;
  --stroke: rgba(255,255,255,0.11);
  --stroke-2: rgba(255,255,255,0.16);
  --muted: rgba(255,255,255,0.66);
  --muted2: rgba(255,255,255,0.50);
}

body[data-time="night"]{
  --bg: #05050f;
  --panel: rgba(10, 12, 26, 0.66);
  --panel-2: rgba(8, 10, 22, 0.82);
  --stroke: rgba(255,255,255,0.10);
  --stroke-2: rgba(255,255,255,0.14);
  --muted: rgba(255,255,255,0.62);
  --muted2: rgba(255,255,255,0.46);
}

body[data-time="day"] .bg__image{ filter: saturate(1.05) contrast(1.0) brightness(0.86); }
body[data-time="dusk"] .bg__image{ filter: saturate(1.16) contrast(1.02) brightness(0.78) hue-rotate(-10deg); }
body[data-time="night"] .bg__image{ filter: saturate(1.22) contrast(1.05) brightness(0.70); }

/* Story portrait next to dialogue */
.story__content{
  display:flex;
  gap: 12px;
  align-items: stretch;
}

.story__portrait{
  width: 132px;
  flex: 0 0 132px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  overflow:hidden;
  position: relative;
}

.story__portrait::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(240px 180px at 30% 10%, rgba(34,211,238,0.16), transparent 60%),
    radial-gradient(260px 200px at 70% 30%, rgba(255,59,212,0.14), transparent 65%);
  opacity: 0.9;
  pointer-events:none;
}

.story__portrait img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.03);
}

@media (max-width: 640px){
  .story__portrait{ width: 90px; flex-basis: 90px; }
  .story__text{ min-height: 220px; }
}

/* Hero mini panel with avatar */
.hero-mini__row{ display:flex; align-items:center; gap: 10px; }
.hero-mini__avatar{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.22);
  object-fit: cover;
  object-position: 50% 15%;
  flex: 0 0 auto;
}

.hero-mini__meta{ display:flex; flex-direction:column; gap: 4px; min-width: 0; }

/* Hero cards: add portrait image */
.heroCard{
  overflow:hidden;
}

.heroCard__img{
  width: 100%;
  height: 148px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.20);
  overflow:hidden;
}

.heroCard__img img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.03);
}

/* CG overlay */
.cgOverlay{
  position: fixed;
  inset: 0;
  z-index: 60;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  background: rgba(0,0,0,0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cgOverlay--show{
  opacity: 1;
  pointer-events: auto;
}

.cgOverlay__img{
  width: min(980px, 100%);
  aspect-ratio: 16/9;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 70px rgba(0,0,0,0.62);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.35s ease;
}

.cgOverlay--show .cgOverlay__img{ transform: translateY(0) scale(1); }

.cgOverlay__hint{
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom));
  text-align:center;
  font-size: 12px;
  color: rgba(255,255,255,0.68);
}

/* Keyword highlight + emoji */
.kw{ font-weight: 800; color: var(--cyan); }
.kw--hot{ color: var(--hot); text-shadow: 0 0 18px rgba(255,59,212,0.28); }
.kw--strong{ font-weight: 800; color: rgba(255,255,255,0.96); }
.emoji{ opacity: 0.92; filter: drop-shadow(0 0 12px rgba(255,59,212,0.18)); }

.story__text{ flex: 1 1 auto; }
.heroCard__img{ margin-bottom: 10px; }


/* =========================
   Interaction Upgrade Pack
   - Weather overlay
   - KakaoTalk UI refresh
   - Social interactions
   - Relationship radar
   - Mini-games modal
   - Mobile adapt refinements
========================= */

/* Weather overlay canvas */
.weatherCanvas{
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
}
body[data-weather="sunny"] .weatherCanvas{ opacity: 0; }

/* Cloudy filter */
body[data-weather="cloud"] .bg__image{
  filter: saturate(0.92) contrast(0.98) brightness(0.62) grayscale(0.22);
}

/* Rain mood: slightly colder */
body[data-weather="rain"] .bg__overlay{
  background:
    radial-gradient(1200px 600px at 20% 15%, rgba(34,211,238,0.16), transparent 58%),
    radial-gradient(900px 520px at 85% 35%, rgba(167,139,250,0.10), transparent 60%),
    linear-gradient(180deg, rgba(4,5,12,0.18) 0%, rgba(4,5,12,0.80) 60%, rgba(4,5,12,0.96) 100%);
}

/* Snow mood */
body[data-weather="snow"] .bg__overlay{
  background:
    radial-gradient(1200px 600px at 20% 15%, rgba(255,255,255,0.10), transparent 58%),
    radial-gradient(900px 520px at 85% 35%, rgba(34,211,238,0.10), transparent 60%),
    linear-gradient(180deg, rgba(4,5,12,0.10) 0%, rgba(4,5,12,0.70) 55%, rgba(4,5,12,0.92) 100%);
}


/* ---------- Phone: KakaoTalk UI refresh ---------- */
#phoneModal[data-tab="chat"] .phone{
  background: #b9cad8;
  border-color: rgba(80,97,114,0.18);
  box-shadow: 0 36px 72px rgba(33,47,63,0.32);
}
#phoneModal[data-tab="chat"] .phone__status,
#phoneModal[data-tab="chat"] .phone__header{
  color: #17191d;
}
#phoneModal[data-tab="chat"] .phone__status{
  padding: 14px 18px 6px;
  font-weight: 800;
}
#phoneModal[data-tab="chat"] .phone__time{ font-size: 15px; }
#phoneModal[data-tab="chat"] .phone__statusRight{ gap: 8px; font-size: 11px; color: rgba(23,25,29,0.88); }
#phoneModal[data-tab="chat"] .phone__sig{ font-weight: 900; letter-spacing: 0; }
#phoneModal[data-tab="chat"] .phone__battery{
  width: 30px;
  height: 15px;
  border-radius: 8px;
  border-color: rgba(23,25,29,0.9);
}
#phoneModal[data-tab="chat"] .phone__battery:after{ background: rgba(23,25,29,0.9); }
#phoneModal[data-tab="chat"] .phone__battery i{ background: #17191d; width: 60%; }

#phoneModal[data-tab="chat"] .phone__header{
  padding: 6px 14px 10px;
  align-items: center;
}
.phone__headerCenter{ flex: 1; min-width: 0; text-align: center; }
.phone__appTitle{ font-weight: 900; font-size: 15px; letter-spacing: -0.02em; }
.phone__headerSub{ margin-top: 2px; font-size: 11px; color: rgba(23,25,29,0.74); font-weight: 700; }
.phone__headerActions{ display:flex; align-items:center; gap: 4px; }
.phoneIconBtn{
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  cursor: pointer;
}
.phoneIconBtn--back{ font-size: 32px; line-height: 1; justify-content:flex-start; }
#phoneModal[data-tab="chat"] .phoneIconBtn:hover{ background: rgba(255,255,255,0.2); }

#phoneModal[data-tab="chat"] .phone__tabs{
  padding: 0 12px 8px;
  gap: 8px;
}
#phoneModal[data-tab="chat"] .phoneTab{
  background: rgba(255,255,255,0.42);
  border-color: rgba(81,97,114,0.16);
  color: rgba(23,25,29,0.72);
  font-weight: 800;
}
#phoneModal[data-tab="chat"] .phoneTab--active{
  background: rgba(255,255,255,0.9);
  border-color: rgba(81,97,114,0.08);
  box-shadow: 0 8px 20px rgba(68,84,101,0.12);
  color: #17191d;
}
#phoneModal[data-tab="chat"] .phoneTab__badge{
  background: #fee500;
  color: #5c4b00;
}
#phoneModal[data-tab="chat"] .phone__content{
  padding: 0 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#phoneModal[data-tab="chat"] .chatList{
  gap: 0;
  padding: 2px 0 14px;
  background: rgba(255,255,255,0.08);
}
#phoneModal[data-tab="chat"] .chatRow{
  background: rgba(255,255,255,0.92);
  border: 0;
  border-radius: 0;
  padding: 12px 16px;
  box-shadow: inset 0 -1px 0 rgba(110,128,145,0.12);
}
#phoneModal[data-tab="chat"] .chatRow__left{ gap: 12px; }
#phoneModal[data-tab="chat"] .chatAvatar{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  color: #778391;
  font-size: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  overflow: hidden;
}
#phoneModal[data-tab="chat"] .chatAvatar--thread{
  width: 34px;
  height: 34px;
  font-size: 13px;
  margin-top: 2px;
}
#phoneModal .chatAvatar img{ width:100%; height:100%; object-fit: cover; display:block; }
#phoneModal[data-tab="chat"] .chatAvatar--group{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 4px;
  background: #eef1f4;
}
#phoneModal[data-tab="chat"] .chatAvatar--group span{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: #dfe5ea;
  color: #57616b;
  font-size: 11px;
  font-weight: 900;
}
#phoneModal[data-tab="chat"] .chatAvatar--thread.chatAvatar--group{
  padding: 3px;
  gap: 2px;
}
#phoneModal[data-tab="chat"] .chatMeta{ flex: 1; min-width: 0; }
#phoneModal .chatRow__right{ display:flex; flex-direction:column; align-items:flex-end; gap: 7px; }
#phoneModal[data-tab="chat"] .chatName{ font-size: 15px; font-weight: 800; color: #17191d; }
#phoneModal[data-tab="chat"] .chatPreview{ margin-top: 5px; color: #6f7882; max-width: 210px; }
#phoneModal .chatRow__time{ font-size: 11px; color: #8b939b; }
#phoneModal .chatRow__badges{ display:flex; align-items:center; gap: 6px; }
#phoneModal .chatBadge{
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(106,123,139,0.14);
  color: #68717c;
}
#phoneModal .chatBadge--reply{ background: rgba(254,229,0,0.42); border-color: rgba(254,229,0,0.12); color: #725d00; }
#phoneModal[data-tab="chat"] .chatUnread{
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #fee500;
  color: #5f4f00;
  font-size: 11px;
  box-shadow: none;
}

#phoneModal .chatThreadWrap{
  background: #b9cad8;
  padding: 10px 12px 14px;
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
}
#phoneModal .chatThread{ display:flex; flex-direction:column; gap: 6px; }
#phoneModal .chatDateDivider{
  display:flex;
  justify-content:center;
  margin: 14px 0 10px;
}
#phoneModal .chatDateDivider__pill{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(107,122,136,0.44);
  color: rgba(255,255,255,0.98);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
#phoneModal .chatMessageRow{
  display:flex;
  align-items:flex-end;
  gap: 8px;
}
#phoneModal .chatMessageRow--me{ justify-content:flex-end; }
#phoneModal .chatMessageRow--stacked{ margin-top: -1px; }
#phoneModal .chatMessageRow__avatarSlot{ width: 34px; flex: 0 0 34px; }
#phoneModal .chatMessageRow--me .chatMessageRow__avatarSlot{ display:none; }
#phoneModal .chatMessageRow__body{ max-width: calc(100% - 42px); }
#phoneModal .chatBubble__from{
  margin: 0 0 4px 2px;
  font-size: 12px;
  color: #66727e;
  font-weight: 700;
}
#phoneModal .chatBubbleGroup{ display:flex; align-items:flex-end; gap: 6px; }
#phoneModal .chatBubbleGroup--me{ justify-content:flex-end; }
#phoneModal .chatBubbleGroup--other{ justify-content:flex-start; }
#phoneModal[data-tab="chat"] .chatBubble{
  position: relative;
  max-width: 244px;
  padding: 11px 14px;
  border-radius: 18px;
  border: 0;
  color: #1b1c1e;
  line-height: 1.45;
  font-size: 14px;
  box-shadow: 0 1px 1px rgba(37,52,67,0.08);
}
#phoneModal[data-tab="chat"] .chatBubble--other{ background: #ffffff; border-top-left-radius: 6px; }
#phoneModal[data-tab="chat"] .chatBubble--me{ background: #fee500; border-top-right-radius: 6px; }
#phoneModal[data-tab="chat"] .chatBubble--other.chatBubble--tail::before{
  content: "";
  position: absolute;
  left: -6px;
  bottom: 8px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
#phoneModal[data-tab="chat"] .chatBubble--me.chatBubble--tail::after{
  content: "";
  position: absolute;
  right: -6px;
  bottom: 8px;
  width: 12px;
  height: 12px;
  background: #fee500;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
#phoneModal .chatBubble__text{ word-break: break-word; }
#phoneModal .chatMetaStack{
  display:flex;
  flex-direction:column;
  gap: 3px;
  min-width: 28px;
  margin-bottom: 1px;
}
#phoneModal .chatMetaStack--me{ align-items:flex-end; }
#phoneModal .chatMetaStack--other{ align-items:flex-start; }
#phoneModal[data-tab="chat"] .chatBubble__time{
  font-size: 11px;
  color: #66707a;
  margin: 0;
  white-space: nowrap;
}
#phoneModal .chatBubble__unread{
  font-size: 11px;
  line-height: 1;
  color: #fee500;
  font-weight: 900;
}

#phoneModal .replyBar{
  margin: 0;
  padding: 10px 14px 6px;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(98,113,127,0.12);
  flex-shrink: 0;
}
#phoneModal .replyBar__hint{ font-size: 11px; font-weight: 800; color: #8b949c; }
#phoneModal .replyBar__btns{ margin-top: 8px; display:flex; flex-direction:column; gap: 8px; }
#phoneModal .replyBtn{
  text-align:left;
  background: #f4f5f7;
  border-color: rgba(102,115,129,0.08);
  color: #2f353b;
  border-radius: 16px;
  box-shadow: none;
}

#phoneModal .chatInput{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.96);
  border-top: 1px solid rgba(98,113,127,0.10);
  flex-shrink: 0;
}
#phoneModal .chatInput__icon,
#phoneModal .chatInput__tool{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #1f2328;
  font-size: 22px;
}
#phoneModal .chatInput__actions{ display:flex; align-items:center; gap: 2px; }
#phoneModal .chatInput__tool--voice{ font-size: 16px; font-weight: 900; letter-spacing: -0.08em; }
#phoneModal .chatInput__box{
  flex: 1;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: #f1f2f4;
  display:flex;
  align-items:center;
  padding: 0 16px;
  color: #b0b5bb;
  font-weight: 700;
  font-size: 14px;
}
#phoneModal .chatInput--tools{ gap: 10px; }
#phoneModal .chatInput__actionBtn{
  position: relative;
  flex: 1;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fee500;
  color: #241f00;
  font-size: 14px;
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  cursor: pointer;
}
#phoneModal .chatInput__actionBtn--gift{
  background: #f1f2f4;
  color: #2f353b;
}
#phoneModal .chatInput__actionBadge{
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0,0,0,0.16);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  line-height: 1;
}
#phoneModal .chatFinanceCard{
  min-width: 176px;
  display:flex;
  flex-direction:column;
  gap: 6px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff9ce 0%, #fff1a6 100%);
  color: #2e2600;
}
#phoneModal .chatFinanceCard--gift{
  background: linear-gradient(180deg, #f7f8fb 0%, #ebeef3 100%);
  color: #2f353b;
}
#phoneModal .chatFinanceCard--claimed{
  opacity: 0.72;
  filter: saturate(0.72);
}
#phoneModal .chatFinanceCard__eyebrow{
  font-size: 11px;
  font-weight: 800;
  opacity: 0.72;
}
#phoneModal .chatFinanceCard__title{
  font-size: 15px;
  font-weight: 900;
}
#phoneModal .chatFinanceCard__value{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
#phoneModal .chatFinanceCard__desc{
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.84;
}
#phoneModal .chatFinanceCard__meta{
  margin-top: 2px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:center;
  font-size: 11px;
}
#phoneModal .chatFinanceCard__meta b{ font-size: 11px; }

/* Voice message */
#phoneModal .voiceCard{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap: 6px;
  min-width: 120px;
}
#phoneModal .voiceCard--withSubtitle{ gap: 7px; }
#phoneModal .voiceBar{ display:flex; align-items:center; gap: 10px; min-width: 120px; }
#phoneModal .voiceBtn{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.76);
  font-weight: 900;
  cursor:pointer;
}
#phoneModal .voiceWave{ display:flex; gap: 3px; align-items:flex-end; height: 16px; flex: 0 0 auto; }
#phoneModal .voiceWave i{ display:block; width: 4px; height: 6px; background: rgba(0,0,0,0.24); border-radius: 3px; }
#phoneModal .chatBubble--playing .voiceWave i,
#phoneModal .bubbleBubble--playing .voiceWave i{ animation: wave 0.5s ease-in-out infinite; }
#phoneModal .chatBubble--playing .voiceWave i:nth-child(2),
#phoneModal .bubbleBubble--playing .voiceWave i:nth-child(2){ animation-delay: .1s; }
#phoneModal .chatBubble--playing .voiceWave i:nth-child(3),
#phoneModal .bubbleBubble--playing .voiceWave i:nth-child(3){ animation-delay: .2s; }
@keyframes wave{ 0%,100%{ height: 5px; } 50%{ height: 15px; } }
#phoneModal .voiceLabel{ font-weight: 800; font-size: 12px; color: rgba(0,0,0,0.72); }
#phoneModal .voiceSubtitle{
  font-size: 11px;
  line-height: 1.45;
  color: rgba(0,0,0,0.54);
  opacity: 0;
  padding-left: 2px;
  max-width: 100%;
  word-break: break-word;
  animation: voiceSubtitleFadeIn .42s ease-out .38s forwards;
}
.bubbleBubble--other .voiceBtn,
.bubbleBubble--me .voiceBtn{
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
}
.bubbleBubble--other .voiceWave i,
.bubbleBubble--me .voiceWave i{
  background: rgba(255,255,255,0.42);
}
.bubbleBubble--other .voiceLabel,
.bubbleBubble--me .voiceLabel{
  color: rgba(255,255,255,0.9);
}
.bubbleBubble--other .voiceSubtitle,
.bubbleBubble--me .voiceSubtitle{
  color: rgba(255,255,255,0.72);
}
@keyframes voiceSubtitleFadeIn{
  from{ opacity: 0; transform: translateY(3px); }
  to{ opacity: 0.92; transform: translateY(0); }
}


/* ---------- Social detail interactions ---------- */
.feedItem--click{ cursor: pointer; }
.feedItem--click:active{ transform: scale(0.995); }

.socialDetail{ display:flex; flex-direction:column; gap: 12px; }
.socialCard{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  padding: 12px 12px;
}

.socialActions{ margin-top: 12px; display:flex; flex-wrap:wrap; gap: 10px; align-items:center; }
.socialBtn{ padding: 10px 12px; border-radius: 999px; }
.socialBtn--active{ border-color: rgba(254,229,0,0.85); box-shadow: 0 0 0 4px rgba(254,229,0,0.16); }
.socialCount{ font-size: 12px; color: rgba(255,255,255,0.70); }

.socialSectionTitle{ font-weight: 900; font-size: 13px; }
.socialMyComment{ margin-top: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.12); line-height:1.6; }
.socialOptions{ margin-top: 10px; display:flex; flex-direction:column; gap: 8px; }
.socialReactions{ margin-top: 10px; display:flex; flex-direction:column; gap: 8px; }
.reactionItem{ padding: 10px 12px; border-radius: 16px; background: rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.12); font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.86); }


/* ---------- Relationship radar ---------- */
.relationWrap{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  padding: 12px 12px;
}
.relationTitle{ font-weight: 900; }
.relationCanvasWrap{ margin-top: 10px; height: 220px; }
.relationCanvas{ width: 100%; height: 220px; display:block; }
.relationList{ margin-top: 12px; display:flex; flex-direction:column; gap: 10px; }
.relationRow{ display:grid; grid-template-columns: 72px 42px 1fr; gap: 10px; align-items:center; }
.relationK{ font-size: 12px; color: rgba(255,255,255,0.78); font-weight: 800; }
.relationV{ font-weight: 900; }
.relationBar{ height: 8px; border-radius: 999px; background: rgba(255,255,255,0.10); overflow:hidden; }
.relationBar i{ display:block; height: 100%; width: 0%; background: linear-gradient(90deg, rgba(254,229,0,0.95), rgba(34,211,238,0.65)); border-radius: 999px; }


/* ---------- Mini-games ---------- */
.miniGame .modal__body{ padding-top: 10px; }
.miniGameCard{ display:flex; flex-direction:column; gap: 12px; }
.miniGameHint{ color: rgba(255,255,255,0.72); font-size: 12px; line-height: 1.6; }
.miniGameOptions{ display:flex; flex-direction:column; gap: 8px; margin-top: 10px; }
.miniGameResult{ margin-top: 10px; line-height: 1.7; }
.miniGameGood{ color: var(--good); font-weight: 900; }
.miniGameBad{ color: var(--bad); font-weight: 900; }
.miniGameNeutral{ color: rgba(255,255,255,0.78); font-weight: 900; }
.chantSeq{ padding: 12px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.16); line-height: 1.7; font-weight: 800; }


/* ---------- Mobile adapt refinements ---------- */
@media (max-width: 880px){
  .side{
    display:block;
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .side.side--open{
    transform: translateY(0);
    opacity: 1;
  }

  .choiceBtn{ padding: 14px 14px; border-radius: 18px; }

  /* Phone full screen */
  .modal--phone .phone{
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

@media (max-width: 880px){
  /* Stats panel as drawer */
  .stats{
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 12;
    display: none;
    max-height: 46vh;
    overflow: auto;
    box-shadow: 0 28px 60px rgba(0,0,0,0.55);
  }
  .stats.stats--open{ display: grid; }
}

@media (max-width: 880px){
  .mobileBar{ display:flex; gap: 10px; justify-content:center; }
  .mobileBar .btn{ flex: 1 1 0; }
  .app{ padding-bottom: calc(182px + env(safe-area-inset-bottom)); }
  .main{ padding-bottom: calc(154px + env(safe-area-inset-bottom)); }
  .choices{ scroll-margin-bottom: calc(170px + env(safe-area-inset-bottom)); }
  .musicCtrl{ right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .fabGroup{ right: 12px; bottom: calc(162px + env(safe-area-inset-bottom)); }
}

/* ===== Incremental upgrade: phone rich states / social immersion / CG gallery ===== */
#phoneModal .chatSystemNote{
  display:flex;
  justify-content:center;
  margin: 8px 0 4px;
}
#phoneModal .chatSystemNote__pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(92,107,121,0.26);
  color: rgba(255,255,255,0.96);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-align:center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#phoneModal .chatMessageRow--transient{ margin-top: 2px; }
#phoneModal .chatBubble--typing{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 156px;
  background: rgba(255,255,255,0.96);
}
#phoneModal .typingIndicator{
  display:inline-flex;
  align-items:center;
  gap: 4px;
  flex: 0 0 auto;
}
#phoneModal .typingIndicator span{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(88,98,108,0.62);
  animation: chatTypingPulse 1s ease-in-out infinite;
}
#phoneModal .typingIndicator span:nth-child(2){ animation-delay: .14s; }
#phoneModal .typingIndicator span:nth-child(3){ animation-delay: .28s; }
#phoneModal .typingHint{
  min-width: 0;
  font-size: 12px;
  color: #5e6974;
  font-weight: 700;
  line-height: 1.45;
}
@keyframes chatTypingPulse{
  0%, 80%, 100%{ transform: translateY(0); opacity: .45; }
  40%{ transform: translateY(-3px); opacity: 1; }
}
#phoneModal .voiceContent{
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap: 2px;
}
#phoneModal .voiceSummary{
  font-size: 11px;
  line-height: 1.45;
  color: rgba(0,0,0,0.56);
  word-break: break-word;
}
#phoneModal .voiceLabel{ letter-spacing: -.01em; }
#phoneModal .chatBubble--playing .voiceBtn{
  background: rgba(0,0,0,0.78);
  color: #fff;
}

.feedTop__headline{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 8px;
}
.feedPlatformTag,
.feedChip{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.84);
}
.feedPlatformTag{
  background: linear-gradient(135deg, rgba(255,59,212,0.18), rgba(34,211,238,0.12));
  border-color: rgba(255,255,255,0.18);
}
.feedChips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 8px;
}
.feedChips--compact{ margin-top: 7px; }
.feedChip--topic{ color: rgba(255,255,255,0.92); }
.feedChip--rank{
  border-color: rgba(254,229,0,0.18);
  background: rgba(254,229,0,0.14);
  color: rgba(255,244,169,0.96);
}
.feedChip--source{
  color: rgba(255,255,255,0.68);
  background: rgba(0,0,0,0.18);
}
.feedSource{
  margin-top: 9px;
  font-size: 12px;
  color: rgba(255,255,255,0.56);
  line-height: 1.5;
}
.feedMeta--social span{
  display:inline-flex;
  align-items:center;
  gap: 4px;
}
.socialCard--commentThread{
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.socialComments{
  margin-top: 10px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.socialComment{
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}
.socialComment--npc{
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}
.socialComment--fan{
  border-color: rgba(34,211,238,0.14);
  background: rgba(34,211,238,0.08);
}
.socialComment__badge{
  display:inline-flex;
  align-items:center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  color: rgba(255,255,255,0.72);
}
.socialComment__text{
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.90);
}

.socialScreenshotPopup{
  position: fixed;
  inset: 0;
  z-index: 76;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.socialScreenshotPopup--show{
  opacity: 1;
  pointer-events: auto;
}
.socialScreenshotPopup__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.54);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.socialScreenshotPopup__card{
  position:relative;
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(14,17,32,0.96), rgba(8,10,20,0.98));
  box-shadow: 0 28px 60px rgba(0,0,0,0.42);
  transform: translateY(10px) scale(.98);
  transition: transform .22s ease;
}
.socialScreenshotPopup--show .socialScreenshotPopup__card{
  transform: translateY(0) scale(1);
}
.socialScreenshotPopup__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.socialScreenshotPopup__eyebrow{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}
.socialScreenshotPopup__title{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.socialScreenshotPopup__close{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  font-size: 20px;
  cursor:pointer;
}
.screenshotMock{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(21,24,38,0.96), rgba(13,15,29,0.98));
  overflow:hidden;
}
.screenshotMock__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.screenshotMock__platform{
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
}
.screenshotMock__time{
  font-size: 11px;
  color: rgba(255,255,255,0.54);
}
.screenshotMock__content{
  padding: 15px 14px 14px;
}
.screenshotMock__text{
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.94);
  white-space: pre-wrap;
}
.screenshotMock__chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 12px;
}
.screenshotMock__chip{
  display:inline-flex;
  align-items:center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.82);
}
.screenshotMock__chip--rank{
  background: rgba(254,229,0,0.16);
  border-color: rgba(254,229,0,0.18);
  color: rgba(255,244,169,0.96);
}
.screenshotMock__source{
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.60);
}
.screenshotMock__footer{
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.76);
  background: rgba(255,255,255,0.03);
}

.cgCard{
  text-align:left;
}
.cgCard--interactive{
  width: 100%;
  cursor: pointer;
  color: inherit;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.cgCard--interactive:hover{
  transform: translateY(-2px);
  border-color: rgba(34,211,238,0.38);
  box-shadow: 0 18px 36px rgba(0,0,0,0.20);
}
.cgCard--interactive:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(34,211,238,0.16), 0 18px 36px rgba(0,0,0,0.20);
}
.cgCard--locked,
.cgCard[disabled]{
  cursor: not-allowed;
}
.cgCard__cta{
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(34,211,238,0.82);
}
.cgCard--locked .cgCard__cta,
.cgCard[disabled] .cgCard__cta{
  color: rgba(255,255,255,0.42);
}

@media (max-width: 560px){
  .socialScreenshotPopup__card{ padding: 14px; }
  .screenshotMock__text{ font-size: 14px; }
}

/* ===== Incremental upgrade: Weverse / Bubble ===== */
#phoneModal[data-tab="weverse"] .phone{
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(153,86,255,0.18), transparent 56%),
    radial-gradient(780px 420px at 100% 10%, rgba(76,180,255,0.14), transparent 54%),
    linear-gradient(180deg, #0c1020 0%, #0a0d18 100%);
}
#phoneModal[data-tab="weverse"] .phone__status,
#phoneModal[data-tab="weverse"] .phone__header,
#phoneModal[data-tab="bubble"] .phone__status,
#phoneModal[data-tab="bubble"] .phone__header{
  color: rgba(255,255,255,0.92);
}
#phoneModal[data-tab="weverse"] .phone__headerSub,
#phoneModal[data-tab="bubble"] .phone__headerSub{
  color: rgba(255,255,255,0.58);
}
#phoneModal[data-tab="weverse"] .phoneTab--active,
#phoneModal[data-tab="bubble"] .phoneTab--active{
  border-color: rgba(167,139,250,0.52);
  box-shadow: 0 0 0 4px rgba(167,139,250,0.12);
}

#phoneModal[data-view="weverse-notifications"] .phone__content{
  padding-top: 4px;
}
.followGateStack,
.weverseFeed,
.weverseDetail,
.weverseNotifications{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.followGate{
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(167,139,250,0.18), rgba(34,211,238,0.12));
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.followGate__badge{
  display:inline-flex;
  align-items:center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(7,10,22,0.42);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.66);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.followGate__hero{
  margin-top: 12px;
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
}
.followGate__avatar{
  width: 48px;
  height: 48px;
  border-radius: 18px;
  overflow:hidden;
  flex: 0 0 48px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
}
.followGate__avatar img,
.followPreviewCard__avatar img,
.followPreviewCard__media img,
.followPreviewBubbleRow__avatar img,
.weverseNotifAvatar img,
.weverseNotifThumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.followGate__copy{
  flex: 1 1 180px;
  min-width: 0;
}
.followGate__title{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.followGate__sub{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
}
.followGate__btn{
  flex: 0 0 auto;
  min-width: 108px;
}
.followGate--expired{
  border-color: rgba(255,255,255,0.14);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(251,113,133,0.12), transparent 52%),
    radial-gradient(120% 120% at 100% 0%, rgba(167,139,250,0.18), transparent 48%),
    linear-gradient(145deg, rgba(19,18,37,0.92), rgba(9,10,22,0.96));
  box-shadow: 0 20px 46px rgba(0,0,0,0.28);
}
.followGate__badge--expired{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,236,244,0.88);
}
.followGate__sub--expired{
  color: rgba(255,221,236,0.92);
  font-weight: 700;
}
.followGate__btn--expired{
  box-shadow: 0 12px 28px rgba(251,113,133,0.24);
}
.followPreview{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.followPreview__label{
  padding: 0 4px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.62);
}
.followPreviewCard{
  position:relative;
  overflow:hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.followPreviewCard__locked{
  filter: blur(7px) saturate(0.82);
  transform: scale(1.015);
  transform-origin: center;
  pointer-events:none;
  user-select:none;
}
.followPreviewCard__veil{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  padding: 14px;
  background: linear-gradient(180deg, rgba(7,9,20,0.06), rgba(7,9,20,0.28));
  color: rgba(255,255,255,0.96);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}
.followPreviewCard__veil::before{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 0%, rgba(7,9,20,0.18) 100%);
}
.followPreviewCard__veil{
  text-shadow: 0 2px 12px rgba(0,0,0,0.38);
}
.followPreviewCard__veil > *{ position:relative; z-index:1; }
.followPreviewCard__top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
  padding: 12px 12px 0;
}
.followPreviewCard__identity{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.followPreviewCard__avatar{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow:hidden;
  flex: 0 0 36px;
  border: 1px solid rgba(255,255,255,0.12);
}
.followPreviewCard__author,
.followPreviewCard__title{
  font-weight: 900;
  letter-spacing: -.02em;
}
.followPreviewCard__sub,
.followPreviewCard__time,
.followPreviewCard__text,
.followPreviewBubbleRow__sub,
.followPreviewBubbleRow__time,
.followPreviewBubbleRow__preview{
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.64);
}
.followPreviewCard__media{
  margin: 12px;
  margin-bottom: 0;
  height: 124px;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,0.06);
}
.followPreviewCard__content{
  padding: 12px;
}
.followPreviewCard__text{
  margin-top: 6px;
}
.followPreviewBubbleRow{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
}
.followPreviewBubbleRow__avatar{
  width: 48px;
  height: 48px;
  border-radius: 18px;
  overflow:hidden;
  flex: 0 0 48px;
  border: 1px solid rgba(255,255,255,0.12);
}
.followPreviewBubbleRow__meta{
  min-width:0;
  flex:1;
}
.followPreviewBubbleRow__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}
.followPreviewBubbleRow__name{
  font-weight: 900;
}
.followPreviewBubbleRow__sub{
  margin-top: 4px;
}
.followPreviewBubbleRow__preview{
  margin-top: 6px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.weverseNotifList{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.weverseNotifRow{
  display:grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items:flex-start;
  padding: 12px 8px;
  border-radius: 20px;
  cursor:pointer;
  transition: background .18s ease, transform .18s ease;
}
.weverseNotifRow:hover{
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.weverseNotifRow__body{
  min-width:0;
}
.weverseNotifRow__main{
  font-size: 14px;
  line-height: 1.58;
  color: rgba(255,255,255,0.92);
  word-break: break-word;
}
.weverseNotifRow__time{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.52);
}
.weverseNotifAvatar{
  position:relative;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
}
.weverseNotifAvatar--official{
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(34,211,238,0.92), rgba(37,99,235,0.9));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.weverseNotifAvatar__badge{
  position:absolute;
  right: -1px;
  bottom: -1px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(12,16,30,0.96);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}
.weverseNotifThumb{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  flex: 0 0 48px;
}
.weverseNotif__user,
.weverseNotif__preview,
.weverseNotif__official{
  font-weight: 900;
  color: rgba(255,255,255,0.98);
}
.weverseNotif__user{
  display:inline-flex;
  align-items:center;
}
.weverseNotif__action{
  color: rgba(255,255,255,0.82);
}
.weverseVerifyBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  background: linear-gradient(180deg, rgba(34,211,238,0.96), rgba(45,212,191,0.92));
  color: #0b1020;
  font-size: 10px;
  font-weight: 900;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  vertical-align: middle;
}
.weverseFeed,
.weverseDetail{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.weverseCard,
.weverseDetail__card{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  padding: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.weverseCard{ cursor:pointer; }
.weverseCard__top{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  align-items:flex-start;
}
.weverseCard__identity{
  display:flex;
  align-items:center;
  gap: 10px;
}
.weverseCard__avatar{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}
.weverseCard__avatar img,
.weverseLiveHero img,
.bubbleRow__avatar img,
.bubbleAvatar img,
.bubbleThreadHeader__avatar img,
.bubblePhoto img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.weverseCard__author,
.weverseLiveTitle,
.weverseDetail__title{
  font-weight: 900;
  letter-spacing: -.02em;
}
.weverseCard__sub,
.weverseCard__time,
.weverseLivePreview,
.weverseComment__meta{
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.60);
}
.weversePhoto{
  margin-top: 12px;
  border-radius: 20px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.weversePhoto--portrait{ aspect-ratio: 4 / 5; }
.weversePhoto img{ width:100%; height:100%; object-fit:cover; display:block; }
.weverseTopic{
  margin-top: 12px;
  display:inline-flex;
  align-items:center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(167,139,250,0.16);
  border: 1px solid rgba(167,139,250,0.18);
  color: rgba(237,233,254,0.96);
  font-size: 11px;
  font-weight: 800;
}
.weverseText{
  margin-top: 12px;
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
}
.weverseStats,
.weverseMetaRow{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}
.weverseMetaChip{
  display:inline-flex;
  align-items:center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.weverseLiveBadge{
  display:inline-flex;
  align-items:center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,59,212,0.86), rgba(255,90,90,0.92));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.weverseLiveHero{
  margin-top: 12px;
  height: 170px;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
}
.weverseLivePreview{ margin-top: 10px; }
.weverseReplyOptions,
.weverseComments{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.weverseComment,
.weverseMyComment{
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.weverseComment--artist{
  border-color: rgba(167,139,250,0.24);
  background: rgba(167,139,250,0.10);
}
.weverseComment--me,
.weverseMyComment{
  border-color: rgba(34,211,238,0.20);
  background: rgba(34,211,238,0.10);
}
.weverseComment__text{
  margin-top: 8px;
  line-height: 1.7;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}

#phoneModal[data-tab="bubble"] .phone{
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(167,139,250,0.22), transparent 56%),
    radial-gradient(880px 500px at 100% 0%, rgba(34,211,238,0.12), transparent 52%),
    linear-gradient(180deg, #131225 0%, #0b0c17 100%);
}
#phoneModal[data-tab="bubble"] .phone__content{
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bubbleList{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.bubbleRow{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  cursor:pointer;
}
.bubbleRow__avatar{
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow:hidden;
  flex: 0 0 52px;
  border: 1px solid rgba(255,255,255,0.12);
}
.bubbleRow__meta{ min-width:0; flex:1; }
.bubbleRow__top{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  align-items:center;
}
.bubbleRow__name{ font-weight: 900; }
.bubbleRow__sub,
.bubbleRow__time,
.bubbleRow__preview,
.bubbleMetaTime,
.bubbleMetaRead{
  font-size: 12px;
  color: rgba(255,255,255,0.60);
}
.bubbleRow__sub{ margin-top: 4px; }
.bubbleRow__preview{
  margin-top: 6px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.bubbleRow__badges{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: 8px;
}
.bubblePill{
  display:inline-flex;
  align-items:center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(167,139,250,0.18);
  border: 1px solid rgba(167,139,250,0.18);
  color: rgba(237,233,254,0.96);
  font-size: 10px;
  font-weight: 900;
}
.bubbleThreadWrap{
  padding: 4px 2px 14px;
  flex: 1 1 0;
  min-height: 0;
  overflow:auto;
}
.bubbleThreadHeader{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 0 0 16px;
}
.bubbleThreadHeader__avatar{
  width: 48px;
  height: 48px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.bubbleThreadHeader__title{ font-weight: 900; }
.bubbleThreadHeader__sub{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.58);
}
.bubbleThread{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.bubbleDateDivider,
.bubbleSystemNote{
  display:flex;
  justify-content:center;
  margin: 10px 0 4px;
}
.bubbleDateDivider__pill,
.bubbleSystemNote__pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.84);
  font-size: 11px;
  font-weight: 800;
}
.bubbleMessageRow{
  display:flex;
  align-items:flex-end;
  gap: 8px;
}
.bubbleMessageRow--me{ justify-content:flex-end; }
.bubbleMessageRow__avatarSlot{ width: 34px; flex:0 0 34px; }
.bubbleMessageRow--me .bubbleMessageRow__avatarSlot{ display:none; }
.bubbleAvatar{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.bubbleMessageRow__body{ max-width: calc(100% - 42px); }
.bubbleMessageRow__from{
  margin: 0 0 5px 2px;
  font-size: 12px;
  color: rgba(255,255,255,0.60);
  font-weight: 700;
}
.bubbleBubbleGroup{ display:flex; align-items:flex-end; gap: 6px; }
.bubbleBubbleGroup--me{ justify-content:flex-end; }
.bubbleBubbleGroup--other{ justify-content:flex-start; }
.bubbleMetaStack{
  display:flex;
  flex-direction:column;
  gap: 4px;
  min-width: 34px;
}
.bubbleMetaStack--me{ align-items:flex-end; }
.bubbleMetaStack--other{ align-items:flex-start; }
.bubbleBubble{
  max-width: 250px;
  padding: 11px 14px;
  border-radius: 20px;
  line-height: 1.6;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}
.bubbleBubble--other{
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.96);
  border-top-left-radius: 8px;
}
.bubbleBubble--me{
  background: linear-gradient(135deg, rgba(167,139,250,0.92), rgba(99,102,241,0.88));
  color: #fff;
  border-color: rgba(255,255,255,0.0);
  border-top-right-radius: 8px;
}
.bubbleBubble--typing{
  display:flex;
  align-items:center;
  gap: 10px;
}
.bubbleBubble__text{ word-break: break-word; }
.bubblePhotoCard{ display:flex; flex-direction:column; gap: 8px; }
.bubblePhoto{
  width: 180px;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.bubblePhoto__caption,
.bubblePhoto__text{
  font-size: 12px;
  line-height: 1.6;
}
.bubblePhoto__caption{ color: rgba(255,255,255,0.70); }
.bubblePhoto__text{ color: inherit; }
.bubbleEmoji{
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: .04em;
}
.bubbleBubble--me .bubblePhoto__caption,
.bubbleBubble--me .bubbleMetaRead,
.bubbleBubble--me .bubbleMetaTime{
  color: rgba(255,255,255,0.82);
}
.bubbleBubble--playing .voiceBtn{
  background: rgba(255,255,255,0.92);
  color: #2a204f;
}
.replyBar--bubble{
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.replyBar--bubble .replyBar__hint{ color: rgba(255,255,255,0.60); }
.replyBar--bubble .replyBtn{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}
.bubbleInput{
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.bubbleInput__placeholder{
  min-height: 40px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  display:flex;
  align-items:center;
  padding: 0 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.58);
}

@media (max-width: 560px){
  .weversePhoto--portrait{ aspect-ratio: 3 / 4; }
  .bubblePhoto{ width: 156px; }
  .followGate__hero{ align-items:flex-start; }
  .followGate__btn{ width: 100%; }
  .weverseNotifRow{ grid-template-columns: 48px minmax(0, 1fr); }
  .weverseNotifThumb{ display:none; }
}

/* ===== Phone app drawer + new apps ===== */
.phoneAppDrawer{
  position:absolute;
  inset: 96px 0 0;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.phoneAppDrawer--open{
  opacity: 1;
  pointer-events: auto;
}
.phoneAppDrawer__backdrop{
  position:absolute;
  inset:0;
  background: rgba(6,8,18,0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.phoneAppDrawer__sheet{
  position:absolute;
  top: 0;
  right: 12px;
  left: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(15,18,34,0.96), rgba(7,9,18,0.98));
  box-shadow: 0 24px 48px rgba(0,0,0,0.36);
  padding: 14px;
  transform: translateY(-10px) scale(.98);
  transition: transform .24s ease;
}
.phoneAppDrawer--open .phoneAppDrawer__sheet{ transform: translateY(0) scale(1); }
.phoneAppDrawer__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.phoneAppDrawer__title{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.phoneAppDrawer__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.drawerApp{
  position:relative;
  min-height: 106px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 6px;
  align-items:flex-start;
  text-align:left;
  cursor:pointer;
}
.drawerApp--active{
  border-color: rgba(34,211,238,0.48);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.10);
}
.drawerApp__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
}
.drawerApp__label{ font-size: 13px; font-weight: 900; }
.drawerApp__desc{ font-size: 11px; color: rgba(255,255,255,0.56); line-height: 1.5; }
.drawerApp__badge{
  position:absolute;
  top: 10px;
  right: 10px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,59,212,0.92);
  color: #090b16;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  font-weight: 900;
}
.phoneCard--compact{ margin-bottom: 0; }
.socialActions--stack{ justify-content:flex-start; }
.socialComment--me{
  border-color: rgba(255,59,212,0.18);
  background: rgba(255,59,212,0.08);
}

#phoneModal[data-tab="youtube"] .phone{
  background:
    radial-gradient(900px 460px at 12% 0%, rgba(255,74,74,0.20), transparent 52%),
    radial-gradient(780px 420px at 100% 8%, rgba(255,255,255,0.08), transparent 54%),
    linear-gradient(180deg, #15171f 0%, #0b0c12 100%);
}
#phoneModal[data-tab="youtube"] .phoneTab--active{
  border-color: rgba(255,74,74,0.44);
  box-shadow: 0 0 0 4px rgba(255,74,74,0.12);
}
.ytFeed,
.ytDetail,
.instagramHome,
.instagramDetail,
.melonView,
.deliveryView,
.forumView,
.forumDetail{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.ytCard,
.ytPlayerCard,
.instagramCard,
.instagramStatusCard,
.melonHeroCard,
.melonFeedbackCard,
.melonHistoryCard,
.deliveryRouteCard,
.deliverySection,
.deliveryLockedCard,
.deliveryHistoryCard,
.forumCard,
.forumDetail__card{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.ytCard{ display:flex; gap: 12px; cursor:pointer; }
.ytCard__thumb{
  position:relative;
  width: 142px;
  flex: 0 0 142px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(0,0,0,0.28);
}
.ytCard__thumb img,
.ytPlayerCard__hero img,
.instagramStoryBubble__avatar img,
.instagramGrid__item img,
.instagramDetail__photo img,
.instagramStoryViewer__media img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.ytCard__duration,
.ytCard__stage{
  position:absolute;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}
.ytCard__duration{
  right: 8px;
  bottom: 8px;
  background: rgba(0,0,0,0.78);
}
.ytCard__stage{
  left: 8px;
  top: 8px;
  background: rgba(255,74,74,0.92);
  color: #170708;
}
.ytCard__body{ min-width:0; flex:1; }
.ytCard__title,
.ytPlayerCard__title,
.instagramStatusCard__title,
.deliveryRouteCard__title,
.forumCard__title,
.forumDetail__title,
.melonHeroCard__title,
.melonCelebrate__title{
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -.02em;
}
.ytCard__meta,
.ytCard__stats,
.ytPlayerCard__sub,
.ytPlayerCard__desc,
.instagramStatusCard__text,
.instagramDetail__meta,
.instagramPostTop__handle,
.instagramPostTop__time,
.deliveryRouteCard__text,
.deliveryRouteCard__eta,
.deliveryChoice__price,
.deliveryLocation__addr,
.deliveryLocation__hint,
.deliveryHistoryItem__meta,
.forumCard__meta,
.forumCard__preview,
.forumCard__stats,
.forumDetail__meta,
.melonHeroCard__sub,
.melonRankBoard__label,
.melonRankBoard__stats,
.melonRankBoard__note,
.melonFeedbackList__item{
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.62);
}
.ytCard__meta,
.ytCard__stats,
.ytPlayerCard__sub,
.ytPlayerCard__desc{ margin-top: 6px; }
.ytPlayerCard__hero{
  position:relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow:hidden;
  background: #0c0d12;
}
.ytPlayBtn{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 84px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: #171923;
  font-weight: 900;
  cursor:pointer;
}
.ytPlayBtn--active{
  background: rgba(255,74,74,0.96);
  color: #fff;
}

#phoneModal[data-tab="instagram"] .phone{
  background:
    radial-gradient(880px 520px at 14% 0%, rgba(255,126,95,0.20), transparent 52%),
    radial-gradient(880px 460px at 100% 0%, rgba(167,139,250,0.16), transparent 52%),
    linear-gradient(180deg, #191022 0%, #0d0b14 100%);
}
#phoneModal[data-tab="instagram"] .phoneTab--active{
  border-color: rgba(255,126,95,0.42);
  box-shadow: 0 0 0 4px rgba(255,126,95,0.12);
}
.instagramStatusCard{
  background: linear-gradient(135deg, rgba(255,126,95,0.20), rgba(167,139,250,0.18));
}
.instagramStoryRail{
  display:flex;
  gap: 12px;
  overflow:auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.instagramStoryRail::-webkit-scrollbar{ display:none; }
.instagramStoryBubble{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.88);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px;
  min-width: 72px;
  cursor:pointer;
}
.instagramStoryBubble__avatar{
  width: 68px;
  height: 68px;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7e5f, #fbbf24 44%, #a855f7 100%);
  display:block;
}
.instagramStoryBubble__avatar img{
  border-radius: 999px;
  border: 3px solid #140f1d;
}
.instagramStoryBubble--new .instagramStoryBubble__avatar{
  box-shadow: 0 0 0 4px rgba(255,126,95,0.16);
}
.instagramStoryBubble__label{
  max-width: 72px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.instagramGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.instagramGrid__item{
  position:relative;
  border: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow:hidden;
  cursor:pointer;
  background: rgba(255,255,255,0.06);
}
.instagramGrid__item::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.46) 100%);
}
.instagramGrid__item--violet{ box-shadow: inset 0 0 0 1px rgba(167,139,250,0.24); }
.instagramGrid__item--amber{ box-shadow: inset 0 0 0 1px rgba(251,191,36,0.24); }
.instagramGrid__item--cyan{ box-shadow: inset 0 0 0 1px rgba(34,211,238,0.24); }
.instagramGrid__item--rose{ box-shadow: inset 0 0 0 1px rgba(255,93,162,0.24); }
.instagramGrid__meta{
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  text-align:left;
}
.instagramPostTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.instagramPostTop__author{ font-weight: 900; }
.instagramDetail__photo{
  margin-top: 12px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow:hidden;
  background: rgba(0,0,0,0.26);
}
.instagramDetail__photo--violet{ box-shadow: inset 0 0 0 1px rgba(167,139,250,0.24); }
.instagramDetail__photo--amber{ box-shadow: inset 0 0 0 1px rgba(251,191,36,0.24); }
.instagramDetail__photo--cyan{ box-shadow: inset 0 0 0 1px rgba(34,211,238,0.24); }
.instagramDetail__photo--rose{ box-shadow: inset 0 0 0 1px rgba(255,93,162,0.24); }
.instagramDetail__caption{
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}
#phoneModal[data-view="instagram-story"] .phone__content{
  padding: 0;
  overflow:hidden;
}
.instagramStoryViewer{
  flex: 1;
  min-height: 100%;
  display:flex;
  flex-direction:column;
}
.instagramStoryViewer__progress{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  padding: 0 12px 10px;
}
.instagramStoryViewer__bar{
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}
.instagramStoryViewer__bar.is-done,
.instagramStoryViewer__bar.is-active{
  background: rgba(255,255,255,0.92);
}
.instagramStoryViewer__media{
  position:relative;
  flex:1;
  border-radius: 26px 26px 0 0;
  overflow:hidden;
}
.instagramStoryViewer__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, transparent 34%, rgba(0,0,0,0.48) 100%);
}
.instagramStoryViewer__meta{
  position:absolute;
  inset: 18px 18px 26px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  z-index:1;
}
.instagramStoryViewer__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.instagramStoryViewer__author{ font-size: 15px; font-weight: 900; }
.instagramStoryViewer__handle,
.instagramStoryViewer__time{ font-size: 12px; color: rgba(255,255,255,0.74); }
.instagramStoryViewer__badge{
  align-self:flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,126,95,0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.instagramStoryViewer__text{
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  text-shadow: 0 8px 24px rgba(0,0,0,0.36);
}
.instagramStoryViewer__nav{
  position:absolute;
  top:0;
  bottom:0;
  width: 34%;
  border: 0;
  background: transparent;
  cursor:pointer;
  z-index: 2;
}
.instagramStoryViewer__nav--prev{ left:0; }
.instagramStoryViewer__nav--next{ right:0; }

#phoneModal[data-tab="melon"] .phone{
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(110,231,183,0.18), transparent 52%),
    radial-gradient(860px 520px at 100% 0%, rgba(34,197,94,0.12), transparent 52%),
    linear-gradient(180deg, #0b1712 0%, #07110d 100%);
}
#phoneModal[data-tab="melon"] .phoneTab--active{
  border-color: rgba(110,231,183,0.42);
  box-shadow: 0 0 0 4px rgba(110,231,183,0.12);
}
.melonView--celebrate{ animation: melonPulse 1s ease-in-out infinite alternate; }
.melonCelebrate{
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(110,231,183,0.36);
  background: linear-gradient(135deg, rgba(16,185,129,0.24), rgba(251,191,36,0.18));
  box-shadow: 0 18px 36px rgba(16,185,129,0.18);
}
.melonCelebrate__badge,
.melonHeroCard__eyebrow,
.deliveryRouteCard__eyebrow{
  display:inline-flex;
  align-items:center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.08);
}
.melonCelebrate__text,
.melonFeedbackCard__main{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}
.melonModeSwitch{
  display:flex;
  gap: 8px;
  margin-top: 14px;
}
.melonModeBtn{
  flex:1;
  min-height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.84);
  font-weight: 800;
  cursor:pointer;
}
.melonModeBtn--active{
  border-color: rgba(110,231,183,0.48);
  background: rgba(110,231,183,0.14);
  color: rgba(255,255,255,0.98);
}
.melonRankBoard{
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.20);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.melonRankBoard__value{
  margin-top: 6px;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}
.melonBoostBtn{ white-space: nowrap; }
.melonRankBoard__stats,
.melonRankBoard__note{ margin-top: 10px; }
.melonHistoryList,
.melonFeedbackList,
.deliveryHistoryList,
.forumList{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.melonHistoryItem{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.melonHistoryItem--active{ border-color: rgba(110,231,183,0.28); }
.melonHistoryItem__time{ font-size: 12px; font-weight: 800; }
.melonHistoryItem__rank{ margin-top: 4px; font-size: 12px; color: rgba(255,255,255,0.62); }
@keyframes melonPulse{
  from{ transform: translateY(0); }
  to{ transform: translateY(-2px); }
}

#phoneModal[data-tab="delivery"] .phone{
  background:
    radial-gradient(880px 420px at 10% 0%, rgba(56,189,248,0.16), transparent 50%),
    radial-gradient(860px 500px at 100% 0%, rgba(251,191,36,0.12), transparent 52%),
    linear-gradient(180deg, #0e1420 0%, #08101a 100%);
}
#phoneModal[data-tab="delivery"] .phoneTab--active{
  border-color: rgba(56,189,248,0.42);
  box-shadow: 0 0 0 4px rgba(56,189,248,0.12);
}
.deliveryMenuGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.deliveryChoice,
.deliveryLocation{
  position:relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 6px;
  align-items:flex-start;
  text-align:left;
  cursor:pointer;
}
.deliveryChoice--active,
.deliveryLocation--active{
  border-color: rgba(56,189,248,0.42);
  box-shadow: 0 0 0 4px rgba(56,189,248,0.10);
}
.deliveryLocation--hint::after{
  content:'当前推荐';
  position:absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 900;
  color: rgba(56,189,248,0.92);
}
.deliveryChoice__emoji{ font-size: 22px; }
.deliveryChoice__name,
.deliveryLocation__title,
.deliveryLockedCard__title,
.deliveryHistoryItem__top{
  font-size: 13px;
  font-weight: 900;
}
.deliveryChoice__tag{
  display:inline-flex;
  align-items:center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(251,191,36,0.16);
  color: rgba(255,236,179,0.96);
  font-size: 10px;
  font-weight: 900;
}
.deliveryLocationList{ display:flex; flex-direction:column; gap: 10px; margin-top: 12px; }
.deliveryLockedCard{
  background: rgba(255,255,255,0.04);
}
.deliveryLockedCard__text,
.deliveryHistoryItem__result,
.deliveryHistoryItem__thanks{
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
}
.deliveryHistoryItem--ok{ border-color: rgba(52,211,153,0.18); }
.deliveryHistoryItem--miss{ border-color: rgba(251,113,133,0.18); }
.deliveryHistoryItem{
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.deliveryHistoryItem__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

#phoneModal[data-tab="forum"] .phone{
  background:
    radial-gradient(900px 460px at 10% 0%, rgba(244,114,182,0.16), transparent 50%),
    radial-gradient(840px 520px at 100% 0%, rgba(250,204,21,0.10), transparent 52%),
    linear-gradient(180deg, #160f1c 0%, #0d0812 100%);
}
#phoneModal[data-tab="forum"] .phoneTab--active{
  border-color: rgba(244,114,182,0.42);
  box-shadow: 0 0 0 4px rgba(244,114,182,0.12);
}
.forumCategoryTabs{
  display:flex;
  gap: 8px;
  overflow:auto;
  padding-bottom: 2px;
  scrollbar-width:none;
}
.forumCategoryTabs::-webkit-scrollbar{ display:none; }
.forumCategoryBtn{
  flex:0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  font-weight: 800;
  cursor:pointer;
  text-transform: uppercase;
}
.forumCategoryBtn--active{
  border-color: rgba(244,114,182,0.42);
  background: rgba(244,114,182,0.12);
}
.forumCard{ cursor:pointer; }
.forumCard__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.forumCard__category,
.forumDetail__topic{
  display:inline-flex;
  align-items:center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
}
.forumCard__category--hot{ background: rgba(251,113,133,0.16); color: rgba(254,205,211,0.96); }
.forumCard__category--latest{ background: rgba(56,189,248,0.14); color: rgba(224,242,254,0.96); }
.forumCard__category--featured{ background: rgba(251,191,36,0.14); color: rgba(254,240,138,0.96); }
.forumCard__time{ font-size: 11px; color: rgba(255,255,255,0.52); }
.forumCard__title{ margin-top: 10px; }
.forumCard__meta,
.forumCard__preview,
.forumCard__stats{ margin-top: 6px; }
.forumDetail__topic{ margin-top: 10px; }

@media (max-width: 560px){
  .phoneAppDrawer__grid,
  .deliveryMenuGrid{ grid-template-columns: 1fr; }
  .ytCard{ flex-direction:column; }
  .ytCard__thumb{ width:100%; flex-basis:auto; }
  .melonRankBoard{ flex-direction:column; align-items:flex-start; }
}

/* ===== Fan lounge + realtime TTS incremental integration ===== */
#phoneModal[data-tab="chat"] .chatRow--fanLounge{
  background: linear-gradient(180deg, rgba(255, 244, 167, 0.96), rgba(255, 235, 104, 0.96));
}
#phoneModal[data-tab="chat"] .chatRow--fanLounge .chatName{
  display:flex;
  align-items:center;
  gap: 6px;
}
#phoneModal .chatBadge--lounge{
  background: rgba(35, 30, 0, 0.10);
  border-color: rgba(35, 30, 0, 0.08);
  color: #5a4700;
}
#phoneModal .chatUnread--subtle{
  background: rgba(35, 30, 0, 0.14);
  color: #5a4700;
}
#phoneModal .chatAvatar--fanLounge.chatAvatar--group{
  background: rgba(255,255,255,0.62);
}

#phoneModal .fanLoungeCard{
  margin-bottom: 6px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.68));
  border: 1px solid rgba(77, 90, 104, 0.10);
  box-shadow: 0 10px 28px rgba(53, 67, 81, 0.08);
}
#phoneModal .fanLoungeCard__top{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:flex-start;
}
#phoneModal .fanLoungeCard__identity{
  display:flex;
  gap: 10px;
  min-width: 0;
}
#phoneModal .fanLoungeCard__title{
  font-size: 15px;
  font-weight: 900;
  color: #17191d;
}
#phoneModal .fanLoungeCard__sub,
#phoneModal .fanLoungeCard__hint{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: #61707d;
}
#phoneModal .fanLoungeCard__chips{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap: 6px;
}
#phoneModal .fanLoungeChip{
  display:inline-flex;
  align-items:center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(28, 33, 39, 0.08);
  color: #49545f;
  font-size: 11px;
  font-weight: 800;
}
#phoneModal .fanLoungeChip--open{
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}
#phoneModal .fanLoungeChip--connecting{
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}
#phoneModal .fanLoungeChip--closed,
#phoneModal .fanLoungeChip--error,
#phoneModal .fanLoungeChip--unavailable{
  background: rgba(239, 68, 68, 0.10);
  color: #b91c1c;
}
#phoneModal .fanLoungeRetryBtn,
#phoneModal .chatSendBtn{
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
}
#phoneModal .fanLoungeRetryBtn{
  margin-top: 10px;
  padding: 10px 12px;
  background: #fee500;
  color: #2a2200;
}
#phoneModal .fanLoungeEmpty{
  padding: 18px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.56);
  color: #5f6d79;
  text-align:center;
  font-size: 13px;
  font-weight: 700;
}
#phoneModal .chatThreadWrap--fanLounge{
  padding-top: 12px;
}

#phoneModal .chatInput--composer{
  gap: 8px;
}
#phoneModal .chatInput--disabled{
  opacity: 0.82;
}
#phoneModal .chatInput__field{
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #f1f2f4;
  color: #1b1c1e;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}
#phoneModal .chatInput__field::placeholder{
  color: #9aa3ac;
}
#phoneModal .chatInput__field:disabled{
  cursor: not-allowed;
}
#phoneModal .chatSendBtn{
  min-width: 72px;
  height: 42px;
  padding: 0 16px;
  background: #fee500;
  color: #2a2200;
}
#phoneModal .chatSendBtn:disabled,
#phoneModal .chatInput--disabled .chatSendBtn,
#phoneModal .fanLoungeRetryBtn:disabled{
  cursor: not-allowed;
  opacity: 0.62;
  background: #c9ced6;
  color: #6c737d;
}

#phoneModal .voiceMeta{
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  color: rgba(0,0,0,0.46);
}
#phoneModal .voiceBar--loading .voiceWave i,
#phoneModal .voiceCard--loading .voiceWave i,
#phoneModal .bubbleTextVoice--loading .bubbleTtsBtn,
#phoneModal .bubbleTextVoice--playing .bubbleTtsBtn{
  animation: fanLoungePulse 0.9s ease-in-out infinite;
}
#phoneModal .voiceBar--loading .voiceBtn,
#phoneModal .voiceBtn--loading{
  background: rgba(59,130,246,0.14);
  color: #1d4ed8;
}
#phoneModal .voiceBtn--playing{
  background: rgba(0,0,0,0.18);
}
@keyframes fanLoungePulse{
  0%, 100%{ transform: scale(1); opacity: 0.92; }
  50%{ transform: scale(1.06); opacity: 1; }
}

#phoneModal .bubbleTextVoice{
  display:flex;
  align-items:flex-end;
  gap: 8px;
}
#phoneModal .bubbleTtsBtn{
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.96);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
#phoneModal .bubbleTtsBtn--loading{
  background: rgba(96, 165, 250, 0.34);
}
#phoneModal .bubbleTtsBtn--playing{
  background: rgba(255,255,255,0.28);
}

@media (max-width: 540px){
  #phoneModal .fanLoungeCard__top{
    flex-direction: column;
  }
  #phoneModal .fanLoungeCard__chips{
    justify-content:flex-start;
  }
  #phoneModal .chatSendBtn{
    min-width: 64px;
    padding: 0 14px;
  }
}
