/* ============ base ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: #1f1f1f;
  background: #b2c7d9;
}

.hidden { display: none !important; }

button { cursor: pointer; font-family: inherit; }
input, select { font-family: inherit; font-size: 15px; }

.btn {
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 15px;
  transition: filter 0.15s;
}
.btn:hover:not(:disabled) { filter: brightness(0.95); }
.btn-primary { background: #fee500; color: #3c1e1e; font-weight: 600; }
.btn-secondary { background: #4a5c6b; color: #fff; }
.btn-ghost { background: transparent; font-size: 18px; padding: 6px 10px; }
.btn-disabled, .btn:disabled {
  background: #d7dde2; color: #93a1ab; cursor: not-allowed;
}
.btn-danger { background: #e5484d; color: #fff; font-weight: 600; }

/* ============ login ============ */
#login-screen {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fee500 0%, #ffe94d 45%, #b2c7d9 130%);
}
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  width: min(92vw, 380px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.app-title { font-size: 30px; color: #3c1e1e; text-align: center; }
.app-title-sub { font-size: 16px; color: #8a8a8a; font-weight: 400; }
.login-lead { text-align: center; color: #666; font-size: 14px; }
.login-card input, .login-card select {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

/* ============ app layout ============ */
#app-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #e2e6ea;
  flex-wrap: wrap;
}
#current-room-name { font-size: 18px; flex: 0 0 auto; }
.top-bar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mt-note { font-size: 11px; color: #98a4ad; }

/* switch */
.switch-wrap { display: flex; align-items: center; gap: 6px; }
.switch-label { font-size: 13px; color: #445; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0;
  background: #cfd8de;
  border-radius: 24px;
  transition: background 0.2s;
}
.slider::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.switch input:checked + .slider { background: #fee500; }
.switch input:checked + .slider::before { transform: translateX(20px); }

#app-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* ============ room panel ============ */
#room-panel {
  width: 220px;
  background: #f4f6f8;
  border-right: 1px solid #e2e6ea;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
#room-panel h3 { font-size: 14px; color: #667; }
#room-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
#room-list li {
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  background: #fff;
  border: 1px solid #e6eaee;
}
#room-list li:hover { background: #fffbdc; }
#room-list li.active { background: #fee500; font-weight: 600; }
.room-create { display: flex; gap: 6px; }
.room-create input {
  flex: 1; min-width: 0;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

@media (max-width: 720px) {
  #room-panel {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    z-index: 30;
    width: min(78vw, 280px);
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    transform: translateX(-105%);
    transition: transform 0.2s;
  }
  #room-panel.open { transform: translateX(0); }
  #app-body { position: relative; }
}

/* ============ chat ============ */
#chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #b2c7d9;
  position: relative; /* お絵かきキャンバスの基準 */
}

/* 共有お絵かき: チャットの背景そのものがキャンバス */
#draw-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none; /* 通常時はチャット操作を邪魔しない */
  touch-action: none;
}
#chat-area.drawing #draw-canvas {
  pointer-events: auto;
  z-index: 6; /* おえかきモード中は前面で描く */
  cursor: crosshair;
}

#messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  background: transparent; /* 背景の絵が透けて見える */
}

.msg-row { display: flex; flex-direction: column; max-width: 78%; }
.msg-row.own { align-self: flex-end; align-items: flex-end; }
.msg-row.other { align-self: flex-start; align-items: flex-start; }

.msg-sender { font-size: 12px; color: #4a5a68; margin: 0 6px 3px; }

.msg-line { display: flex; align-items: flex-end; gap: 6px; }
.msg-row.own .msg-line { flex-direction: row-reverse; }

.bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}
/* 吹き出しは少し透過させて背景のお絵かきが見えるように（可読性優先で90%台） */
.msg-row.own .bubble { background: rgba(254, 229, 0, 0.92); border-top-right-radius: 4px; }
.msg-row.other .bubble { background: rgba(255, 255, 255, 0.92); border-top-left-radius: 4px; }

/* 通訳（対訳）表示: 通訳ONのときだけ表示 */
.msg-translation {
  display: none;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0,0,0,0.2);
  font-size: 13px;
  color: #555;
}
body.translate-on .msg-translation { display: block; }
.tr-badge {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,0.12);
  color: #444;
  font-size: 11px;
}

.msg-time { font-size: 11px; color: #5d7182; flex: 0 0 auto; }

img.sticker {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.msg-system {
  align-self: center;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
}

/* ============ input bar ============ */
#input-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid #e2e6ea;
  position: relative;
  z-index: 2;
}
#message-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
}

/* ============ modals ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.modal-body {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  width: min(94vw, 480px);
  max-height: 86vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 17px; }

/* sticker picker: group tabs / edit mode */
.modal-head-actions { display: flex; align-items: center; gap: 2px; }
#sticker-edit-btn { font-size: 14px; }
#sticker-edit-btn.active { background: #fee500; border-radius: 8px; }
.sticker-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.sticker-tab {
  flex: 0 0 auto;
  border: 1px solid #e6eaee;
  border-radius: 999px;
  background: #f6f7f9;
  padding: 5px 13px;
  font-size: 13px;
  color: #556;
  white-space: nowrap;
}
.sticker-tab.active { background: #fee500; color: #3c1e1e; font-weight: 600; }

/* sticker grid */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}
.sticker-cell {
  position: relative;
  background: #f6f7f9;
  border: 1px solid #e6eaee;
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.sticker-cell:hover { background: #fffbdc; }
.sticker-cell.edit { cursor: default; }
.sticker-cell.edit:hover { background: #f6f7f9; }
.sticker-grid img { width: 80px; height: 80px; object-fit: contain; }
.sticker-grid .sticker-name {
  font-size: 11px;
  color: #667;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticker-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: #e5484d;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}
.sticker-move {
  width: 100%;
  font-size: 11px;
  padding: 3px 4px;
  border: 1px solid #dde;
  border-radius: 8px;
}
.sticker-confirm {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #b3261e;
}
.sticker-confirm .btn { padding: 3px 8px; font-size: 12px; }

/* studio: group row */
.group-row { display: flex; gap: 6px; }
.group-row select, .group-row input { flex: 1; min-width: 0; }

.empty-note { color: #98a4ad; font-size: 13px; text-align: center; }

/* studio tabs */
.tabs { display: flex; gap: 6px; }
.tab {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 10px;
  background: #eef1f4;
  font-size: 14px;
}
.tab.active { background: #fee500; font-weight: 600; }

.tab-panel { display: flex; flex-direction: column; gap: 12px; }
.tab-panel label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #556;
}
.tab-panel input, .tab-panel select {
  padding: 9px 11px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.preview-area {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-area img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  background:
    repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 0 0 / 20px 20px;
  border-radius: 12px;
}

/* toast */
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.9);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  z-index: 200;
  max-width: 88vw;
}

/* ============ header: お題 / 通話中バッジ ============ */
.room-topic {
  font-size: 13px;
  color: #3c1e1e;
  background: #fff3ae;
  border: 1px solid #f0dd6a;
  padding: 3px 10px;
  border-radius: 999px;
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.call-badge {
  font-size: 12px;
  color: #fff;
  background: #2eaa5e;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ============ お絵かきツールバー ============ */
#draw-toolbar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 7;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e6ea;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
#draw-color {
  width: 36px;
  height: 30px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.draw-widths { display: flex; gap: 4px; }
.draw-width-btn {
  width: 34px;
  height: 30px;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  background: #fff;
  color: #3c1e1e;
  line-height: 1;
}
.draw-width-btn[data-width="0.004"] { font-size: 8px; }
.draw-width-btn[data-width="0.010"] { font-size: 14px; }
.draw-width-btn[data-width="0.022"] { font-size: 22px; }
.draw-width-btn.active { background: #fee500; border-color: #e5cf00; }
#draw-eraser-btn.active { background: #fee500; border-radius: 8px; }
#draw-eraser-btn, #draw-clear-btn { font-size: 13px; border: 1px solid #e2e6ea; border-radius: 8px; }
.draw-clear-confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #b3261e;
}
.draw-clear-confirm .btn { padding: 4px 10px; font-size: 13px; }
.draw-topic-set { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.draw-topic-set input {
  width: 140px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
}
.draw-topic-set .btn, #draw-done-btn { padding: 6px 12px; font-size: 13px; }

/* ============ 通話パネル ============ */
#call-panel {
  position: relative;
  z-index: 2;
  background: rgba(24, 28, 36, 0.94);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#call-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.call-tile {
  width: 168px;
  background: #10131a;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.call-tile video {
  width: 100%;
  height: 118px;
  object-fit: cover;
  background: #000;
  display: block;
}
.call-tile.audio-only video { display: none; }
.call-tile .call-avatar {
  display: none;
  width: 100%;
  height: 118px;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #fff;
  background: linear-gradient(140deg, #4a5c6b, #2b3542);
}
.call-tile.audio-only .call-avatar { display: flex; }
.call-tile .call-name {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 11px;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 2px 8px;
  border-radius: 999px;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#call-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
#call-controls .btn { font-size: 13px; padding: 7px 14px; }
#call-controls .btn.off { background: #7a8794; }
#call-controls .btn.sharing { background: #2eaa5e; }

/* ============ ルーム共有ペット ============ */
#pet-widget {
  position: absolute;
  left: 12px;
  bottom: 72px;
  width: 96px;
  z-index: 3;
  cursor: pointer;
  user-select: none;
}
#pet-svg-holder { width: 96px; height: 96px; }
.pet-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.18)); }

/* idle アニメーション */
.pet-body { animation: pet-bob 2.6s ease-in-out infinite; transform-origin: 60px 68px; }
@keyframes pet-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.pet-egg { animation: pet-wobble 2.2s ease-in-out infinite; transform-origin: 60px 100px; }
@keyframes pet-wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}
.pet-eyes { animation: pet-blink 4.6s infinite; transform-origin: 60px 62px; }
@keyframes pet-blink {
  0%, 93%, 100% { transform: scaleY(1); }
  95%, 97% { transform: scaleY(0.12); }
}
.pet-tear { animation: pet-tear-drop 1.8s ease-in infinite; }
@keyframes pet-tear-drop {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(9px); }
}

/* 餌やり演出 */
#pet-widget.pet-feeding .pet-svg { animation: pet-hop 0.5s ease-out 2; }
@keyframes pet-hop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px) scale(1.04); }
}
.pet-food, .pet-heart {
  position: absolute;
  left: 50%;
  bottom: 66px;
  font-size: 20px;
  pointer-events: none;
}
.pet-food { animation: pet-food-fly 1.4s ease-out forwards; }
@keyframes pet-food-fly {
  0% { transform: translate(-40px, 16px) scale(0.7); opacity: 0; }
  30% { transform: translate(-10px, -6px) scale(1); opacity: 1; }
  70% { transform: translate(-10px, -6px) scale(0.9); opacity: 1; }
  100% { transform: translate(-8px, 6px) scale(0.3); opacity: 0; }
}
.pet-heart { color: #ff5c8d; animation: pet-heart-float 1.4s ease-out forwards; }
@keyframes pet-heart-float {
  0% { transform: translate(8px, 0) scale(0.6); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translate(14px, -34px) scale(1.15); opacity: 0; }
}

/* 空腹吹き出し */
.pet-bubble {
  position: absolute;
  bottom: 92px;
  left: 4px;
  background: #fff;
  border: 1px solid #d8dee4;
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 11px;
  color: #556;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.pet-bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -6px;
  border: 6px solid transparent;
  border-top-color: #fff;
  border-bottom: none;
}

/* おせわパネル */
#pet-feed-btn { align-self: flex-start; }
.pet-gauge { display: flex; align-items: center; gap: 10px; }
.pet-gauge-label { width: 64px; font-size: 13px; color: #556; flex: 0 0 auto; }
.gauge {
  flex: 1;
  height: 12px;
  background: #edf0f3;
  border-radius: 999px;
  overflow: hidden;
}
.gauge-bar { height: 100%; border-radius: 999px; transition: width 0.4s; width: 0; }
.gauge-tension { background: #ffc53d; }
.gauge-food { background: #7fc8f8; }
.gauge-growth { background: #7ed491; }

/* きせかえ */
.outfit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e6ea;
}
.outfit-label { width: 90px; font-size: 13px; color: #556; flex: 0 0 auto; }
.outfit-btn {
  border: 1px solid #e2e6ea;
  border-radius: 999px;
  background: #f6f7f9;
  padding: 5px 12px;
  font-size: 12px;
  color: #445;
}
.outfit-btn.active { background: #fee500; color: #3c1e1e; font-weight: 600; border-color: #e5cf00; }

/* ============ 星空背景 ============ */
#star-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;         /* お絵かきキャンバスより下（DOM順でも先） */
  pointer-events: none;
}

/* ============ 自分のカメラプレビューの鏡像表示 ============ */
/* 送信映像はそのまま。画面共有中は .mirror が外れるので反転しない */
.call-tile video.mirror { transform: scaleX(-1); }

/* ============ 通話レイアウト（グリッド / 大画面 / 半々 / 拡大） ============ */
#call-layout-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.layout-btn {
  border: none;
  border-radius: 999px;
  background: #39404d;
  color: #cfd6df;
  font-size: 12px;
  padding: 4px 12px;
}
.layout-btn.active { background: #fee500; color: #3c1e1e; font-weight: 600; }

#call-tiles { align-items: center; }

/* 大画面（スピーカービュー） */
#call-tiles.layout-speaker { flex-direction: column; }
.call-tile.featured {
  width: min(92%, 640px);
  outline: 2px solid #fee500;
  outline-offset: 2px;
}
.call-tile.featured video, .call-tile.featured .call-avatar { height: 300px; }
.call-tile.thumb { width: 110px; }
.call-tile.thumb video, .call-tile.thumb .call-avatar { height: 74px; }
.call-tile.thumb .call-name { font-size: 10px; padding: 1px 6px; }
#call-tiles.layout-speaker .call-tile.thumb { align-self: center; }

/* 半々（50/50） */
#call-tiles.layout-split { align-items: stretch; }
#call-tiles.layout-split .call-tile.main { width: calc(50% - 10px); }
#call-tiles.layout-split .call-tile.main video,
#call-tiles.layout-split .call-tile.main .call-avatar { height: 220px; }
@media (max-width: 720px) {
  #call-tiles.layout-split .call-tile.main { width: 100%; }
}

/* 拡大表示: 通話パネルがビューポートの大部分を使う */
#call-panel.expanded #call-tiles { min-height: 58vh; }
#call-panel.expanded #call-tiles.layout-grid .call-tile { width: 300px; }
#call-panel.expanded #call-tiles.layout-grid .call-tile video,
#call-panel.expanded #call-tiles.layout-grid .call-tile .call-avatar { height: 210px; }
#call-panel.expanded .call-tile.featured video,
#call-panel.expanded .call-tile.featured .call-avatar { height: 52vh; }
#call-panel.expanded #call-tiles.layout-split .call-tile.main video,
#call-panel.expanded #call-tiles.layout-split .call-tile.main .call-avatar { height: 46vh; }

/* ============ メッセージコピー ============ */
.copy-btn {
  border: none;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  font-size: 12px;
  padding: 3px 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  flex: 0 0 auto;
}
.msg-row:hover .copy-btn { opacity: 1; }
@media (hover: none) {
  .copy-btn { opacity: 0.55; } /* タッチ端末では常時うっすら表示 */
}

/* ============ 天気チップ ============ */
#weather-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.weather-chip {
  font-size: 12px;
  background: #eef5ff;
  border: 1px solid #d7e6f7;
  color: #2b4a6b;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============ 通話パネル最小化ピル ============ */
#call-panel.minimized { display: none; }
#call-pill {
  position: absolute;
  right: 12px;
  bottom: 72px; /* 入力バーの上・ペット（左下）と重ならない */
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2eaa5e;
  color: #fff;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  user-select: none;
}
.pill-mic {
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}
.pill-mic.off { background: #e5484d; }

/* ============ ビデオエフェクト設定 ============ */
.fx-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.fx-label { width: 56px; font-size: 13px; color: #556; flex: 0 0 auto; }
.fx-btn {
  border: 1px solid #e2e6ea;
  border-radius: 999px;
  background: #f6f7f9;
  padding: 6px 14px;
  font-size: 13px;
  color: #445;
}
.fx-btn.active { background: #fee500; color: #3c1e1e; font-weight: 600; border-color: #e5cf00; }
.fx-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.fx-hint { font-size: 12px; color: #98a4ad; }
