:root {
  color-scheme: dark;
  --bg-top: #2b1421;
  --bg-bottom: #090b12;
  --panel: rgba(13, 16, 26, 0.7);
  --panel-strong: rgba(8, 10, 17, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f8fb;
  --muted: rgba(247, 248, 251, 0.72);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--text);
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, rgba(255, 76, 109, 0.22), transparent 28%), linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
.hidden { display: none !important; }
.app-shell { width: 100%; display: grid; place-items: center; padding: 24px; }
.phone-frame {
  position: relative;
  width: min(100%, 430px);
  min-height: 932px;
  overflow: hidden;
  border-radius: 40px;
  background: #06070d;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}
.camera-stage {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 15, 0.05), rgba(6, 8, 15, 0.8)), linear-gradient(160deg, #36405d, #161a27);
}
.camera-video, .viewer-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f1420;
}
.camera-fallback {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 180px;
  padding: 16px;
  text-align: center;
  border-radius: 20px;
  background: rgba(7, 9, 16, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  backdrop-filter: blur(18px);
}
.mobile-status-bar-wrap { position: absolute; top: 18px; left: 0; right: 0; z-index: 5; pointer-events: none; }
.mobile-status-bar { width: 100%; display: block; }
.top-bar, .bottom-bar { position: relative; z-index: 1; }
.top-bar { display: flex; justify-content: space-between; gap: 12px; padding: 28px 18px 0; }
.host-pill, .room-code-badge, .room-link, .role-gate-card, .role-option { backdrop-filter: blur(18px); }
.host-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  min-width: 224px;
  padding: 1px 12px 1px 8px;
  border-radius: 999px;
  background: rgba(120, 128, 144, 0.24);
  border: 1px solid var(--line);
}
.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6f91, #ff8a4c);
  font-weight: 700;
}
.host-name { font-weight: 700; }
.host-meta, .role-desc, .room-entry-error { font-size: 13px; color: var(--muted); }
.follow-btn {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5b7d, #ff4266);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.top-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.room-code-badge, .room-link, .viewer-pill {
  margin-top: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.62);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
}
.gift-lane {
  position: absolute;
  left: 16px;
  right: 116px;
  bottom: 286px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.gift-burst {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(12, 14, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  animation: gift-slide-in 280ms ease;
}
.gift-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7a96, #ffb36c);
  font-size: 18px;
  flex: 0 0 auto;
}
.gift-copy {
  min-width: 0;
}
.gift-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff0c9;
}
.gift-meta {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(247, 248, 251, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes gift-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.bottom-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-radius: 24px;
  background: transparent;
  border: 0;
}
.bottom-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.bottom-icon {
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  border: 0;
  background: rgba(96, 94, 101, 0.58);
}
.bottom-icon.image {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
}
.bottom-icon.image img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.bottom-icon.image:first-child img {
  width: 36px;
  height: 36px;
}
.bottom-icon.image.muted img {
  width: 28px;
  height: 28px;
}
.bottom-icon.send {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff5b7d, #ff4266);
}
.broadcaster-tools {
  display: none;
  width: 100%;
  position: relative;
}
.broadcaster-tools-image {
  display: block;
  width: 100%;
  height: auto;
}
.broadcaster-games-toggle {
  position: absolute;
  right: 90px;
  top: 14px;
  z-index: 2;
  width: 64px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
}
.broadcaster-games-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 90px;
  z-index: 2;
  padding: 18px 16px 20px;
  background: rgba(8, 10, 17, 0.94);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  backdrop-filter: blur(20px);
}
.viewer-gift-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 86px;
  z-index: 4;
  padding: 18px 16px 20px;
  background: rgba(8, 10, 17, 0.94);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
}
.viewer-gift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.viewer-gift-kicker {
  color: #8fd8ff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.viewer-gift-title {
  font-size: 18px;
  font-weight: 700;
}
.viewer-gift-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  text-align: left;
  color: #fff;
  background: linear-gradient(135deg, rgba(69, 147, 255, 0.24), rgba(95, 224, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.viewer-gift-card-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: 0 0 auto;
}
.viewer-gift-card-copy {
  min-width: 0;
}
.viewer-gift-card-name {
  font-size: 16px;
  font-weight: 700;
}
.viewer-gift-card-meta {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(247, 248, 251, 0.76);
}
.broadcaster-games-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.broadcaster-games-kicker {
  color: #ff9fb2;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.broadcaster-games-title {
  font-size: 18px;
  font-weight: 700;
}
.panel-close {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.broadcaster-game-card {
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  text-align: left;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 87, 122, 0.24), rgba(255, 155, 88, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.broadcaster-game-name {
  font-size: 16px;
  font-weight: 700;
}
.broadcaster-game-meta {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(247, 248, 251, 0.72);
}
.broadcaster-game-card + .broadcaster-game-card {
  margin-top: 12px;
}
.broadcaster-game-card.snack-thief {
  background: linear-gradient(135deg, rgba(255, 180, 78, 0.26), rgba(255, 102, 126, 0.18));
}
.flappy-bird-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.flappy-bird-layer.hit-impact {
  animation: flappy-hit-shake 280ms ease;
}
.flappy-bird-layer.hit-impact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 73, 73, 0.16);
}
@keyframes flappy-hit-shake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 1px); }
  40% { transform: translate(4px, -2px); }
  60% { transform: translate(-3px, 2px); }
  80% { transform: translate(3px, -1px); }
  100% { transform: translate(0, 0); }
}
.flappy-bird-hud {
  position: absolute;
  top: 86px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.flappy-bird-hearts {
  display: flex;
  gap: 8px;
}
.flappy-bird-heart {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}
.flappy-bird-score {
  min-width: 52px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
.flappy-bird-status {
  position: absolute;
  top: 132px;
  left: 20px;
  right: 20px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(7, 9, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(247, 248, 251, 0.82);
}
.flappy-bird-pipes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.flappy-bird-pipe {
  position: absolute;
  overflow: hidden;
}
.flappy-bird-pipe.top {
  top: 0;
}
.flappy-bird-pipe.bottom {
}
.flappy-bird-pipe-sprite {
  position: absolute;
  left: 0;
  display: block;
  transform: none;
  image-rendering: pixelated;
}
.flappy-bird-pipe.top .flappy-bird-pipe-sprite {
  transform: scaleY(-1);
  transform-origin: center;
}
.flappy-bird-bird {
  position: absolute;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
  object-fit: contain;
  image-rendering: pixelated;
}
.flappy-bird-bird.hit-impact {
  animation: flappy-bird-hit 480ms ease;
  outline: 4px solid rgba(255, 245, 168, 0.96);
  outline-offset: 2px;
  border-radius: 28px;
  box-shadow: 0 0 0 6px rgba(255, 112, 52, 0.72), 0 0 24px rgba(255, 87, 34, 0.95);
}
@keyframes flappy-bird-hit {
  0% { filter: brightness(1); transform: scale(1); }
  20% { filter: brightness(2.15) saturate(1.85) sepia(0.4) hue-rotate(-18deg); transform: scale(1.12) rotate(-10deg); }
  60% { filter: brightness(1.8) saturate(1.65) sepia(0.26) hue-rotate(-10deg); transform: scale(1.04) rotate(4deg); }
  100% { filter: brightness(1); transform: scale(1) rotate(0deg); }
}
.flappy-bird-hit-flash {
  position: absolute;
  width: 160px;
  height: 160px;
  margin-left: -80px;
  margin-top: -80px;
  border-radius: 50%;
  z-index: 5;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 16%, rgba(255, 238, 164, 0.96) 16% 32%, rgba(255, 187, 71, 0.92) 32% 48%, rgba(255, 108, 18, 0.62) 48% 66%, rgba(255, 73, 0, 0.12) 66% 100%);
  box-shadow: 0 0 26px rgba(255, 214, 88, 0.95), 0 0 54px rgba(255, 120, 24, 0.72);
  opacity: 0;
}
.flappy-bird-hit-flash.hit-impact {
  animation: flappy-hit-flash-pop 480ms ease-out;
}
@keyframes flappy-hit-flash-pop {
  0% { opacity: 0; transform: scale(0.42); }
  18% { opacity: 1; transform: scale(1.04); }
  58% { opacity: 0.96; transform: scale(0.98); }
  100% { opacity: 0; transform: scale(1.42); }
}
.flappy-bird-hit-spark {
  position: absolute;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  margin-top: -36px;
  image-rendering: pixelated;
  z-index: 3;
  filter: drop-shadow(0 0 10px rgba(255, 196, 71, 0.85));
}
.flappy-bird-hit-spark.hit-impact {
  animation: flappy-hit-spark-pop 480ms ease;
}
@keyframes flappy-hit-spark-pop {
  0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  20% { opacity: 1; transform: scale(1.2) rotate(8deg); }
  65% { opacity: 1; transform: scale(1.05) rotate(12deg); }
  100% { opacity: 0; transform: scale(1.45) rotate(18deg); }
}
.flappy-bird-gameover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  max-width: calc(100% - 40px);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: auto;
}
.flappy-bird-gameover-image {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.flappy-bird-gameover-scoreboard {
  position: absolute;
  left: 188px;
  right: 54px;
  top: 235px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
  color: #d09b1a;
  font-size: 28px;
  font-weight: 900;
}
.flappy-bird-gameover-score {
  min-width: 32px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
}
.flappy-bird-score-digit {
  width: 24px;
  height: 34px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
.flappy-bird-gameover-actions {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.flappy-bird-end-btn {
  height: 82px;
  padding: 0;
  border-radius: 18px;
  color: transparent;
  background: transparent;
  font-size: 0;
  pointer-events: auto;
}
.snack-thief-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.snack-thief-overlay-hud {
  position: absolute;
  top: 86px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.snack-thief-hearts {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 124px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11, 12, 20, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.snack-thief-heart {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}
.snack-thief-timer {
  min-width: 92px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(11, 12, 20, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #ffd98d;
  font-variant-numeric: tabular-nums;
}
.snack-thief-score {
  min-width: 76px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(11, 12, 20, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff3c7;
}
.snack-thief-status {
  position: absolute;
  top: 138px;
  left: 20px;
  right: 20px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(7, 9, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(247, 248, 251, 0.84);
}
.snack-thief-snacks {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.snack-thief-snack {
  position: absolute;
  width: 92px;
  height: 92px;
  margin-left: -46px;
  margin-top: -46px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  font-size: 40px;
  line-height: 1;
}
.snack-thief-snack-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.28));
  pointer-events: none;
  user-select: none;
}
.snack-thief-snack-image.bomb {
  filter: drop-shadow(0 10px 20px rgba(49, 0, 0, 0.34));
}
.snack-thief-snack.bomb {
  background: transparent;
  box-shadow: none;
  border-radius: 18px;
}
.snack-thief-snack.magnetized {
  z-index: 3;
  filter: saturate(1.12);
  animation: snack-thief-magnet-pulse 280ms ease-in-out infinite alternate;
}
.snack-thief-snack.eaten {
  animation: snack-thief-snack-pop 220ms ease forwards;
}
@keyframes snack-thief-snack-pop {
  0% { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(1.35) rotate(14deg); }
}
@keyframes snack-thief-magnet-pulse {
  0% { transform: scale(1) rotate(-4deg); }
  100% { transform: scale(1.12) rotate(5deg); }
}
.snack-thief-mouth-effect {
  position: absolute;
  width: 288px;
  height: 288px;
  margin-left: -144px;
  margin-top: -144px;
  z-index: 4;
  opacity: 0;
  transform: scale(0.52);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(255, 173, 89, 0.24), 0 34px 66px rgba(0, 0, 0, 0.3);
}
.snack-thief-mouth-lens {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 5px solid rgba(255, 247, 216, 0.98);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.24) 0 10%, rgba(255, 224, 154, 0.2) 10% 36%, rgba(255, 131, 90, 0.08) 36% 62%, rgba(255, 98, 61, 0.02) 62% 100%);
}
.snack-thief-mouth-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform-origin: top left;
  filter: saturate(1.08) contrast(1.06);
  opacity: 0;
  pointer-events: none;
}
.snack-thief-mouth-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}
.snack-thief-mouth-effect-core {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: radial-gradient(circle at center, rgba(255, 248, 223, 0.42), rgba(255, 171, 132, 0.05) 72%);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.snack-thief-mouth-effect.active {
  animation: snack-thief-mouth-pop 380ms ease;
}
@keyframes snack-thief-mouth-pop {
  0% { opacity: 0; transform: scale(0.42); }
  18% { opacity: 1; transform: scale(1.28); }
  62% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0.88; transform: scale(1.16); }
}
.snack-thief-gameover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 356px;
  max-width: calc(100% - 28px);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: auto;
  z-index: 6;
}
.snack-thief-gameover-image {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.snack-thief-gameover-scoreboard {
  position: absolute;
  left: 200px;
  right: 34px;
  top: 266px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
}
.snack-thief-gameover-score {
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}
.snack-thief-score-digit {
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
.snack-thief-gameover-actions {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 24px;
  display: grid;
  grid-template-rows: 66px 52px;
  gap: 14px;
}
.snack-thief-end-btn {
  width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 24px;
  color: transparent;
}
.snack-thief-end-btn:disabled {
  cursor: default;
}
.comment-compose { position: relative; flex: 1; }
.comment-compose-bar {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(62, 60, 66, 0.56);
}
.comment-input {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 14px 54px 14px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}
.comment-input::placeholder { color: rgba(247, 248, 251, 0.74); }
.comment-compose-face {
  position: absolute;
  right: 12px;
  top: 50%;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
}
.bottom-icon.send {
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff5b7d, #ff4266);
  color: #fff;
  font-weight: 700;
}
.role-gate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 7, 12, 0.72);
}
.role-gate-card {
  width: 100%;
  padding: 28px;
  border-radius: 30px;
  background: rgba(10, 11, 18, 0.9);
  border: 1px solid var(--line);
}
.role-kicker {
  color: #ff9fb2;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.role-options { display: grid; gap: 12px; margin-top: 18px; }
.role-option {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.role-icon { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: #ff9fb2; }
.role-name { font-weight: 700; }
.viewer-room-entry {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.viewer-room-entry-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.viewer-room-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.viewer-room-entry-input {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  letter-spacing: 0.12em;
}
.viewer-room-entry-input::placeholder {
  color: rgba(247, 247, 250, 0.42);
  letter-spacing: 0;
}
.viewer-room-entry-submit {
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6c7d, #ff8f55);
  color: #fff;
  font: inherit;
  font-weight: 700;
}
body:not(.role-broadcaster):not(.role-viewer) .camera-stage,
body:not(.role-broadcaster):not(.role-viewer) .mobile-status-bar-wrap,
body:not(.role-broadcaster):not(.role-viewer) .top-bar,
body:not(.role-broadcaster):not(.role-viewer) .gift-lane,
body:not(.role-broadcaster):not(.role-viewer) .bottom-bar,
body:not(.role-broadcaster):not(.role-viewer) .viewer-gift-drawer,
body:not(.role-broadcaster):not(.role-viewer) .broadcaster-games-drawer,
body:not(.role-broadcaster):not(.role-viewer) .flappy-bird-layer,
body:not(.role-broadcaster):not(.role-viewer) .snack-thief-layer {
  display: none !important;
}
body.role-viewer .camera-video { display: none; }
body.role-viewer .bottom-bar {
  z-index: 5;
}
body.role-broadcaster .viewer-frame { display: none; }
body.role-broadcaster .camera-video {
  transform: scaleX(-1);
}
body.role-viewer .viewer-frame {
  transform: scaleX(-1);
}
body.role-broadcaster .broadcaster-games-drawer.hidden,
.viewer-gift-drawer.hidden,
.flappy-bird-layer.hidden,
.snack-thief-layer.hidden {
  display: none !important;
}
body.role-broadcaster .comment-compose,
body.role-broadcaster .bottom-icons {
  display: none;
}
body.role-broadcaster .viewer-gift-drawer {
  display: none !important;
}
body.role-broadcaster .bottom-bar {
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
body.role-broadcaster .broadcaster-tools {
  display: block;
}
@media (max-width: 520px) {
  .app-shell { padding: 0; }
  .phone-frame { width: 100%; min-height: 100vh; border-radius: 0; }
}
