:root {
  --body-bg: #f5f5f5;
  --card-bg: #ffffff;
  --text-main: #222222;
  --text-sub: #666666;
  --border: #eeeeee;
  --accent: #ff5c8a;
  --accent-dark: #ff3f78;
  --profile-bg: #f0f7ff;
  --post-bg: #fff7fa;
  --post-border: #ffd1df;
  --notice-bg: #fff0c2;
  --buzz-bg: #ffe066;
  --buzz-text: #8a5a00;
  --rank-bg: #ffe1ee;
  --rank-text: #d9005b;
  --input-bg: #ffffff;
  --input-border: #cccccc;
  --shadow: rgba(0, 0, 0, 0.08);
}

body.dark {
  --body-bg: #111318;
  --card-bg: #1b1f2a;
  --text-main: #f0f0f0;
  --text-sub: #b8b8b8;
  --border: #333846;
  --accent: #ff6fa0;
  --accent-dark: #ff4d8b;
  --profile-bg: #252b3a;
  --post-bg: #24202a;
  --post-border: #4b3140;
  --notice-bg: #3a3320;
  --buzz-bg: #4a3b13;
  --buzz-text: #ffd86b;
  --rank-bg: #3a2230;
  --rank-text: #ff8fbd;
  --input-bg: #151821;
  --input-border: #444a5a;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background: var(--body-bg);
  color: var(--text-main);
  margin: 0;
  padding: 30px;
  height: 100vh;
  overflow: hidden;
}

.app {
  max-width: 1100px;
  height: calc(100vh - 60px);
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.sidebar {
  width: 300px;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow);
  overflow-y: auto;
}

.main {
  flex: 1;
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow);
  overflow-y: auto;
}

h1 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 8px;
}

h2 {
  margin-top: 0;
  font-size: 20px;
}

.brand {
  text-align: center;
  margin-bottom: 20px;
  padding: 18px 12px 10px;
  position: relative;
}

.brand-mark {
  width: 34px;
  height: 34px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5c8a, #ffcc33);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(255, 92, 138, 0.35);
}

.brand-logo {
  margin: 0;
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 900;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  background: linear-gradient(135deg, #ff4d8b, #ffb347, #7c5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 24px rgba(255, 92, 138, 0.18);
}

.brand-copy {
  margin: 8px 0 0;
  color: var(--text-sub);
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: bold;
}

.brand::after {
  content: "今日くらい、人気者でいい。";
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--profile-bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: bold;
  border: 1px solid var(--border);
}

body[data-language="en"] .brand::after {
  content: "Be popular, just for today.";
}

.subtitle {
  text-align: center;
  color: var(--text-sub);
  margin-top: 0;
}

.profile-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5c8a, #ffcc33);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 14px;
  border: 4px solid #ffe1ee;
  overflow: hidden;
}

.profile-icon img,
.post-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 4px;
}

.profile-id {
  color: var(--text-sub);
  margin-bottom: 14px;
  font-size: 14px;
}

.profile-bio {
  line-height: 1.6;
  margin-bottom: 16px;
}

.profile-card {
  padding: 14px;
  background: var(--profile-bg);
  border-radius: 12px;
  font-weight: bold;
  line-height: 1.9;
  margin-bottom: 14px;
}

.rank {
  color: var(--accent);
  font-size: 17px;
}

.profile-small {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
}

.profile-menu {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.menu-button {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  color: var(--text-main);
  border: none;
  border-radius: 0;
  text-align: left;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin: 0;
}

.menu-button:hover {
  background: transparent;
  color: var(--accent);
}

.menu-count {
  color: var(--accent);
}

.panel {
  margin-top: 16px;
  padding: 14px;
  background: var(--profile-bg);
  border-radius: 12px;
}

.hidden {
  display: none;
}

.notification-list,
.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.notification-item,
.achievement-item {
  padding: 9px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

.notification-item strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

.notification-time {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 3px;
}

.achievement-item.unlocked {
  color: var(--text-main);
  border-color: var(--accent);
  background: var(--post-bg);
  font-weight: bold;
}

.settings {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.settings label,
.composer label {
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: bold;
}

input,
textarea,
select {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
  font-size: 14px;
}

input[type="file"] {
  font-size: 13px;
}

textarea#postInput {
  height: 100px;
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  resize: vertical;
}

.settings textarea {
  height: 70px;
  resize: vertical;
}

button {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  background: #999;
  cursor: not-allowed;
}

.small-button,
.reset-button {
  background: #777;
  font-size: 13px;
  padding: 8px;
}

.small-button:hover,
.reset-button:hover {
  background: #555;
}

.post {
  margin-top: 20px;
  padding: 16px;
  background: var(--post-bg);
  border-radius: 12px;
  border: 1px solid var(--post-border);
}

.post-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5c8a, #ffcc33);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
}

.post-user-name {
  font-weight: bold;
}

.post-user-id,
.post-date {
  color: var(--text-sub);
  font-size: 12px;
  margin-top: 2px;
}

.genre-label {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 4px 9px;
  background: var(--profile-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  color: var(--accent);
}

.buzz-post {
  background: var(--buzz-bg);
  border: 2px solid #ffcc33;
}

.likes {
  color: var(--accent);
  font-weight: bold;
  margin-top: 10px;
}

.notice {
  margin-top: 10px;
  padding: 10px;
  background: var(--notice-bg);
  border-radius: 8px;
  font-weight: bold;
}

.buzz {
  margin-top: 10px;
  padding: 12px;
  background: var(--buzz-bg);
  border-radius: 8px;
  font-weight: bold;
  color: var(--buzz-text);
  border: 1px solid #ffbb00;
}

.rank-up {
  margin-top: 10px;
  padding: 10px;
  background: var(--rank-bg);
  border-radius: 8px;
  font-weight: bold;
  color: var(--rank-text);
}

.comments-area {
  margin-top: 14px;
}

.comments {
  padding-left: 0;
}

.comments li {
  margin-bottom: 6px;
}

.loading {
  color: var(--text-sub);
  font-size: 14px;
  margin-top: 10px;
}

.buzz-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  background: #ffcc33;
  color: #5c3b00;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

.save-message {
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent);
  font-weight: bold;
  display: none;
}

.fan-comment {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  list-style: none;
}

.fan-comment-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5c8a, #ffcc33);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.fan-comment-body {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
}

.fan-comment-name {
  font-weight: bold;
  font-size: 13px;
}

.fan-comment-id {
  color: var(--text-sub);
  font-size: 11px;
  margin-bottom: 4px;
}

.fan-comment-text {
  font-size: 14px;
  line-height: 1.5;
}

.achievement-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 300px;
  padding: 16px;
  background: #222;
  color: white;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 999;
  border: 2px solid #ffcc33;
}

.achievement-toast-title {
  color: #ffcc33;
  font-weight: bold;
  margin-bottom: 6px;
}

.achievement-toast-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.achievement-toast-desc {
  font-size: 13px;
  color: #dddddd;
}

@media (max-width: 800px) {
  body {
    padding: 16px;
    height: auto;
    overflow: auto;
  }

  .app {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: auto;
    max-height: none;
    overflow-y: visible;
  }

  .main {
    width: auto;
    overflow-y: visible;
  }

  .brand-logo {
    font-size: 42px;
  }

  .achievement-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
}


/* ===== Fanfare extended layout / live / effects ===== */
body {
  font-family: sans-serif;
  background: var(--body-bg);
  color: var(--text-main);
  margin: 0;
  padding: 24px;
  height: 100vh;
  overflow: hidden;
}

.app {
  max-width: 1350px;
  height: calc(100vh - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(380px, 680px) 330px;
  gap: 20px;
  align-items: stretch;
}

.sidebar,
.live-sidebar {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow);
  overflow-y: auto;
  min-height: 0;
}

.main {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow);
  overflow-y: auto;
  min-height: 0;
}

.live-sidebar .panel {
  margin-top: 0;
}

.live-panel {
  min-height: auto;
  border: 1px solid rgba(255, 92, 138, 0.16);
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.7);
  animation: onlinePulse 1.8s infinite;
}

@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(53, 208, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0); }
}

.live-viewers-card {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 92, 138, 0.16), rgba(255, 204, 51, 0.16));
  border: 1px solid rgba(255, 92, 138, 0.22);
}

.live-viewers-label {
  display: flex;
  align-items: center;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: bold;
}

.live-viewers-number {
  margin-top: 8px;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.live-status {
  display: flex;
  align-items: center;
  color: var(--text-sub);
  font-size: 12px;
  margin-top: -6px;
  margin-bottom: 10px;
}

.live-activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.live-activity-item {
  display: flex;
  gap: 8px;
  padding: 9px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  animation: liveSlideIn 0.25s ease-out;
}

.live-activity-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5c8a, #ffcc33);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.live-activity-body {
  flex: 1;
  line-height: 1.45;
}

.live-activity-text {
  font-size: 13px;
}

.live-activity-time {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-sub);
}

@keyframes liveSlideIn {
  from { transform: translateY(-4px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.dm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.dm-item {
  padding: 10px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  animation: liveSlideIn 0.25s ease-out;
}

.dm-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.dm-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5c8a, #ffcc33);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.dm-sender {
  font-size: 13px;
  font-weight: bold;
}

.dm-type {
  color: var(--accent);
  font-size: 11px;
  font-weight: bold;
}

.dm-message {
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.55;
}

.dm-time {
  margin-top: 5px;
  color: var(--text-sub);
  font-size: 11px;
}

.trend-panel {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 4px 16px var(--shadow);
  border: 1px solid rgba(255, 92, 138, 0.12);
  overflow: hidden;
}

.trend-title {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.trend-ticker {
  overflow: hidden;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--profile-bg);
  border: 1px solid var(--border);
}

.trend-ticker-track {
  display: inline-flex;
  gap: 10px;
  min-width: 200%;
  padding: 8px 0;
  animation: trendScroll 38s linear infinite;
}

.trend-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--accent);
  border: 1px solid rgba(255, 92, 138, 0.2);
  font-size: 12px;
  font-weight: bold;
}

@keyframes trendScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.effect-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.trail-particle {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(255, 92, 138, 0.95), rgba(124, 92, 255, 0.55));
  box-shadow:
    0 0 16px rgba(255, 92, 138, 0.85),
    0 0 28px rgba(255, 204, 51, 0.45);
  animation: trailFade 0.95s ease-out forwards;
}

.trail-particle.star {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: transparent;
  color: #ffcc33;
  font-size: 18px;
  line-height: 18px;
  text-shadow:
    0 0 10px rgba(255, 204, 51, 1),
    0 0 24px rgba(255, 92, 138, 0.8);
}

.trail-particle.star::before {
  content: "✦";
}

.reaction-burst {
  position: fixed;
  pointer-events: none;
  color: var(--accent);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 12px rgba(255, 92, 138, 0.65),
    0 0 26px rgba(255, 204, 51, 0.45);
  animation: burstFloat 1.35s ease-out forwards;
}

@keyframes trailFade {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0) rotate(180deg);
    opacity: 0;
  }
}

@keyframes burstFloat {
  0% {
    transform: translate(-50%, 0) scale(0.75);
    opacity: 0;
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -8px) scale(1.12);
  }
  100% {
    transform: translate(-50%, -64px) scale(1.22);
    opacity: 0;
  }
}

.idle-growth-flash {
  position: relative;
  animation: idleCardGlow 1.2s ease-out;
}

.idle-growth-flash::after {
  content: "✦";
  position: absolute;
  right: 18px;
  top: 16px;
  color: #ffcc33;
  font-size: 22px;
  text-shadow: 0 0 18px rgba(255, 204, 51, 0.95);
  animation: idleSparkFloat 1.2s ease-out forwards;
  pointer-events: none;
}

@keyframes idleCardGlow {
  0% { box-shadow: 0 0 0 rgba(255, 92, 138, 0); }
  25% {
    box-shadow:
      0 0 0 2px rgba(255, 204, 51, 0.4),
      0 0 28px rgba(255, 92, 138, 0.35);
  }
  100% { box-shadow: 0 4px 16px var(--shadow); }
}

@keyframes idleSparkFloat {
  0% {
    transform: translateY(0) scale(0.8) rotate(0deg);
    opacity: 0;
  }
  20% { opacity: 1; }
  100% {
    transform: translateY(-36px) scale(1.3) rotate(120deg);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: 260px minmax(360px, 1fr);
  }

  .live-sidebar {
    display: none;
  }
}

@media (max-width: 800px) {
  body {
    padding: 16px;
    height: auto;
    overflow: auto;
  }

  .app {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .sidebar,
  .live-sidebar {
    width: auto;
    max-height: none;
    overflow-y: visible;
  }

  .live-sidebar {
    display: block;
  }

  .main {
    width: auto;
    overflow-y: visible;
  }

  .brand-logo {
    font-size: 42px;
  }
}


/* ===== Fanfare items / cancel event additions ===== */
.live-viewers-card.number-only {
  text-align: center;
}

.live-viewers-card.number-only .live-viewers-number {
  margin-top: 0;
  font-size: 30px;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-card {
  padding: 10px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.item-card-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.item-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5c8a, #ffcc33);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.item-name {
  font-size: 13px;
  font-weight: bold;
}

.item-desc {
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.item-count {
  color: var(--accent);
  font-size: 12px;
  font-weight: bold;
}

.item-use-button {
  margin-top: 8px;
  padding: 8px;
  font-size: 13px;
}

.item-use-button:disabled {
  opacity: 0.6;
}

.active-item-status {
  padding: 9px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.5;
}

.flame-post {
  background: #2b171c;
  border: 2px solid #ff4d4d;
}

body:not(.dark) .flame-post {
  background: #fff0f0;
  border-color: #ff7b7b;
}

.flame {
  margin-top: 10px;
  padding: 12px;
  background: #3a1111;
  border-radius: 8px;
  font-weight: bold;
  color: #ffb3b3;
  border: 1px solid #ff4d4d;
}

body:not(.dark) .flame {
  background: #ffe0e0;
  color: #a40000;
}

.flame-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  background: #ff4d4d;
  color: white;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

.flame-shake {
  animation: flameShake 0.45s linear 2;
}

@keyframes flameShake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}


.live-viewers-caption {
  color: var(--text-sub);
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.02em;
}



/* ===== NPC posts / sound sliders ===== */
.npc-post {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(255, 204, 51, 0.08));
  border: 1px solid rgba(124, 92, 255, 0.25);
}

.npc-post-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  color: var(--accent);
  font-size: 12px;
  font-weight: bold;
}

.npc-post-footer {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 12px;
}

.settings input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}



/* ===== Mobile bottom nav / right ad space ===== */
.live-viewers-card.number-only {
  padding: 10px;
}

.live-viewers-card.number-only .live-viewers-number {
  margin-top: 0;
  font-size: 30px;
}

.live-viewers-caption {
  font-size: 11px;
  margin-bottom: 5px;
}

.ad-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px dashed rgba(255, 92, 138, 0.35);
  box-shadow: 0 4px 16px var(--shadow);
  text-align: center;
}

.ad-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 92, 138, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ad-title {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 900;
}

.ad-copy {
  margin-top: 5px;
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.5;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 800px) {
  body {
    padding-bottom: 86px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 9998;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--card-bg) 92%, transparent);
    border: 1px solid var(--border);
    box-shadow: 0 8px 28px var(--shadow);
    backdrop-filter: blur(10px);
  }

  .mobile-bottom-nav button {
    appearance: none;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 800;
    padding: 7px 4px;
    cursor: pointer;
  }

  .mobile-bottom-nav button span {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.1;
  }

  .mobile-bottom-nav button:active {
    background: rgba(255, 92, 138, 0.14);
    transform: translateY(1px);
  }

  .ad-panel {
    margin-bottom: 10px;
  }
}


/* ===== Fanfare v0.1 title / guide / privacy ===== */
body.title-active { overflow: hidden; }
body.title-active .app,
body.title-active .mobile-bottom-nav { filter: blur(3px); pointer-events: none; user-select: none; }
.title-screen { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle at 20% 20%, rgba(255, 204, 51, 0.24), transparent 28%), radial-gradient(circle at 80% 10%, rgba(124, 92, 255, 0.24), transparent 30%), radial-gradient(circle at 50% 90%, rgba(255, 92, 138, 0.24), transparent 35%), rgba(10, 12, 18, 0.78); backdrop-filter: blur(8px); }
.title-screen.hidden { display: none; }
.title-card { width: min(620px, 100%); padding: 42px 32px; border-radius: 30px; text-align: center; background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 250, 0.94)); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 92, 138, 0.18); position: relative; overflow: hidden; }
body.dark .title-card { background: linear-gradient(135deg, rgba(27, 31, 42, 0.96), rgba(36, 32, 42, 0.96)); }
.title-card::before { content: ""; position: absolute; inset: -60px; background: conic-gradient(from 180deg, transparent, rgba(255, 92, 138, 0.16), transparent, rgba(255, 204, 51, 0.18), transparent); animation: titleGlowSpin 10s linear infinite; pointer-events: none; }
.title-card > * { position: relative; z-index: 1; }
.title-spark { color: var(--accent); font-size: 40px; text-shadow: 0 0 24px rgba(255, 92, 138, 0.7); }
.title-logo { margin: 4px 0 0; font-size: clamp(54px, 10vw, 92px); line-height: 1; letter-spacing: -0.06em; background: linear-gradient(135deg, #ff5c8a, #ffcc33, #7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title-tagline { margin: 14px 0 0; color: var(--text-main); font-size: 22px; font-weight: 900; }
.title-lead { margin: 10px auto 0; max-width: 460px; color: var(--text-sub); font-size: 15px; line-height: 1.7; }
.title-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.title-start-button, .title-sub-button { appearance: none; border: none; cursor: pointer; font-weight: 900; border-radius: 999px; }
.title-start-button { min-width: 170px; padding: 14px 28px; color: white; font-size: 18px; background: linear-gradient(135deg, #ff5c8a, #ff8a3d); box-shadow: 0 10px 24px rgba(255, 92, 138, 0.32); }
.title-sub-button { padding: 12px 16px; color: var(--accent); background: rgba(255, 92, 138, 0.1); border: 1px solid rgba(255, 92, 138, 0.2); }
.title-start-button:hover, .title-sub-button:hover { transform: translateY(-1px); }
.title-note { margin: 20px auto 0; max-width: 460px; color: var(--text-sub); font-size: 12px; line-height: 1.7; }
@keyframes titleGlowSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.info-modal { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); }
.info-modal.hidden { display: none; }
.info-modal-card { position: relative; width: min(760px, 100%); max-height: min(760px, 86vh); overflow-y: auto; padding: 28px; border-radius: 24px; background: var(--card-bg); color: var(--text-main); box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35); }
.info-close-button { position: sticky; top: 0; float: right; width: 36px; height: 36px; border: none; border-radius: 50%; color: white; background: var(--accent); font-size: 22px; cursor: pointer; }
.info-modal-card h2 { margin-top: 0; color: var(--accent); }
.info-modal-body { clear: both; line-height: 1.85; font-size: 14px; }
.info-modal-body h3 { margin-top: 22px; margin-bottom: 8px; }
.info-modal-body ul { padding-left: 1.4em; }
.info-modal-body li { margin-bottom: 6px; }
@media (max-width: 800px) { .title-card { padding: 34px 20px; border-radius: 24px; } .title-actions { flex-direction: column; } .title-start-button, .title-sub-button { width: 100%; } .info-modal-card { padding: 22px; } }
