/* ============================================================
   ANGEL Prototype v2 — 業界標準トレース
   土台: エンジェルライブ/ラシオ(白×ピンク・高密度) + CHATPIA(料金常時表示・状態色分け)
   飯嶋様エビデンス: ラシオ基準のボトムナビ(〜6タブ)・タグUI・「あと◯◯で次のランク」
   タイポ: Zen Maru Gothic(見出し) + Zen Kaku Gothic New(本文)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #faf7f9;
  --bg-pink: #fdeef4;
  --bg-blue: #eef6fd;

  --rose: #e8608a;          /* 主役ピンク */
  --rose-deep: #d13d6e;
  --rose-pale: #f9d8e5;
  --blue: #58a6d6;          /* 補助(情報・リンク) */

  --live: #f23f4f;          /* 配信中 */
  --wait: #22b573;          /* 待機中 = すぐ話せる */
  --busy: #f59a23;          /* チャット中 */
  --off: #b9b2b6;           /* オフライン */

  --ink: #3a3236;
  --ink-sub: #8a7f85;
  --line: #f0e6ea;

  --gold: #d4a017;          /* ランク金 */
  --silver: #9aa2ad;
  --bronze: #b0793f;

  --maru: "Zen Maru Gothic", sans-serif;
  --gothic: "Zen Kaku Gothic New", sans-serif;

  --nav-h: 58px;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--gothic);
  background: #efe9ec;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.device {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(90, 40, 60, 0.12);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px);
  overflow-x: clip;
}

/* ============ ヘッダー ============ */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 8px;
}
.brand { display: flex; align-items: center; gap: 7px; }
.brand .wing { width: 26px; height: 26px; }
.brand .name {
  font-family: var(--maru);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--rose) 20%, #f08fb0 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.brand .r18 {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--rose);
  border: 1.4px solid var(--rose);
  border-radius: 3px;
  padding: 1px 4px;
  letter-spacing: 0.06em;
}
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.tbtn {
  position: relative;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-sub);
  background: var(--bg-soft);
  border: none;
}
.tbtn svg { width: 18px; height: 18px; }
.tbtn .dot {
  position: absolute; top: 5px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  border: 1.5px solid #fff;
}
.pt-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--maru);
  font-weight: 700;
  font-size: 13px;
  color: var(--rose-deep);
  background: var(--bg-pink);
  border: 1px solid var(--rose-pale);
  border-radius: 99px;
  padding: 4px 11px;
}
.pt-chip small { font-size: 9.5px; font-weight: 500; color: var(--rose); }

/* 検索バー */
.searchbar {
  margin: 0 14px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 14px;
  color: var(--ink-sub);
  font-size: 12.5px;
}
.searchbar svg { width: 15px; height: 15px; flex: none; }

/* ============ 見出し ============ */
.sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 14px 10px;
}
.sec-head .bar { width: 4px; height: 17px; border-radius: 2px; background: linear-gradient(180deg, var(--rose), #f08fb0); }
.sec-head h2 { font-family: var(--maru); font-weight: 800; font-size: 16.5px; letter-spacing: 0.03em; }
.sec-head .cnt { font-size: 11px; color: var(--ink-sub); font-weight: 400; margin-left: 2px; }
.sec-head .more { margin-left: auto; font-size: 11.5px; color: var(--rose); font-weight: 700; white-space: nowrap; }
.sec-head .live-ico { width: 18px; height: 18px; color: var(--live); }

/* ============ ステータスバッジ (CHATPIA 移植) ============ */
.st {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1.5;
}
.st i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.st.live { background: var(--live); }
.st.live i { animation: blink 1.2s ease infinite; }
.st.wait { background: var(--wait); }
.st.busy { background: var(--busy); }
.st.off { background: var(--off); }
.st.plan { background: var(--blue); }
@keyframes blink { 50% { opacity: 0.4; } }

/* ============ 女の子カード (エンジェルライブ 4列トレース) ============ */
.girl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 0 10px;
}
.girl-grid.cols3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.girl-card { position: relative; display: block; }
.girl-card .ph {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 7px;
  overflow: hidden;
  background: #eee;
}
.girl-card .ph .badge-tl { position: absolute; top: 4px; left: 4px; }
.girl-card .ph .off-pill {
  position: absolute; top: 4px; right: 4px;
  font-size: 8.5px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border-radius: 3px;
  padding: 1px 5px;
}
.girl-card .ph .viewers {
  position: absolute; bottom: 4px; right: 4px;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 3px;
  padding: 1px 5px;
}
.girl-card .ph .viewers svg { width: 9px; height: 9px; }
.girl-card .nm {
  display: flex; align-items: baseline; gap: 3px;
  font-size: 11px; font-weight: 700;
  margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.girl-card .nm .age { font-size: 9.5px; color: var(--ink-sub); font-weight: 400; flex: none; }
.girl-card .word {
  display: block;
  font-size: 9.5px; color: var(--ink-sub);
  line-height: 1.45;
  height: 2.7em;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.girl-card .price { display: block; font-size: 9.5px; font-weight: 700; color: var(--rose-deep); }

/* 写真プレースホルダ (実写が入るまでのぼかし表現 8種) */
.pfoto { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.pfoto::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.14;
  mix-blend-mode: overlay;
}
.pfoto.f1 { background: radial-gradient(85% 70% at 50% 28%, #ffd9c4 0%, #f2b2a0 34%, #c86f7f 72%, #8d4a63 100%); }
.pfoto.f2 { background: radial-gradient(90% 75% at 46% 30%, #ffe3d1 0%, #eec0b9 36%, #a76e88 74%, #6d4a6b 100%); }
.pfoto.f3 { background: radial-gradient(80% 70% at 55% 26%, #ffdfd2 0%, #f4b4a4 30%, #d17f74 66%, #7e4a52 100%); }
.pfoto.f4 { background: radial-gradient(85% 72% at 48% 30%, #fde4e0 0%, #efb6c4 38%, #b06f9a 74%, #5f3f66 100%); }
.pfoto.f5 { background: radial-gradient(88% 74% at 52% 27%, #ffe8cf 0%, #f6c2a4 34%, #cd8672 70%, #74424e 100%); }
.pfoto.f6 { background: radial-gradient(82% 70% at 50% 29%, #f9ddda 0%, #e9aeb6 36%, #9f6a86 72%, #4f3a5c 100%); }
.pfoto.f7 { background: radial-gradient(86% 72% at 46% 28%, #ffe0c8 0%, #f0b39a 32%, #c47b6e 68%, #6f4653 100%); }
.pfoto.f8 { background: radial-gradient(84% 70% at 54% 30%, #fcd9cf 0%, #eab0ab 36%, #ad6f7e 72%, #5b3b55 100%); }
.pfoto .ph-note {
  position: absolute; inset: auto 0 0 0;
  text-align: center;
  font-size: 7.5px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  padding-bottom: 3px;
}

/* ============ 横スクロール帯 ============ */
.hstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 14px 6px;
  scrollbar-width: none;
}
.hstrip::-webkit-scrollbar { display: none; }
.hstrip > * { flex: none; }
.hstrip .girl-card { width: 104px; }
.hstrip .girl-card.lg { width: 128px; }

/* ============ バナー (イベント告知 = 管理機能) ============ */
.banner-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 2px; scrollbar-width: none; }
.banner-strip::-webkit-scrollbar { display: none; }
.banner {
  flex: none;
  width: 300px;
  height: 92px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner .b-sub { font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.92; }
.banner .b-main { font-family: var(--maru); font-weight: 800; font-size: 16.5px; line-height: 1.35; text-shadow: 0 1px 2px rgba(0,0,0,0.18); }
.banner .b-note { font-size: 9px; opacity: 0.9; }
.banner.ev1 { background: linear-gradient(120deg, #f2698f, #f7a1b7 55%, #f8c3cf); }
.banner.ev2 { background: linear-gradient(120deg, #58a6d6, #7fc0e8 60%, #a5d6f2); }
.banner.ev3 { background: linear-gradient(120deg, #a06fd1, #c193e6 60%, #d9b8f2); }

/* ============ タブ/フィルタ (ラシオ風ピル) ============ */
.pills { display: flex; gap: 6px; overflow-x: auto; padding: 4px 14px 8px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-sub);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 13px;
}
.pill.on { color: #fff; background: var(--rose); border-color: var(--rose); }
.pill.blue { background: var(--bg-blue); border-color: #d8ecf9; color: #3d7ba6; }

/* オプションタグ (参考デザイン_luscio.png トレース) */
.opt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-tag {
  font-size: 10.5px;
  color: #56656f;
  background: #fff;
  border: 1px solid #d9e7f0;
  border-radius: 99px;
  padding: 3px 10px;
}
.opt-tag.sel { color: var(--rose-deep); border-color: var(--rose); background: var(--bg-pink); font-weight: 700; }

/* ============ 料金表 (CHATPIA 移植) ============ */
.price-board {
  margin: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-board .pb-head {
  font-family: var(--maru);
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--rose), #f08fb0);
  padding: 6px 12px;
  letter-spacing: 0.05em;
}
.price-board .pb-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
}
.price-board .pb-row:first-of-type { border-top: none; }
.price-board .pb-row b { font-family: var(--maru); color: var(--rose-deep); font-size: 13px; }
.price-board .pb-row small { color: var(--ink-sub); font-size: 10px; }

/* ============ ランキング ============ */
.rank-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 6px; scrollbar-width: none; }
.rank-strip::-webkit-scrollbar { display: none; }
.rank-card { position: relative; width: 96px; flex: none; display: block; }
.rank-card .girl-card { display: block; }
.rank-card .crown { position: absolute; top: -7px; left: 4px; z-index: 2; width: 22px; height: 22px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25)); }
.rank-card.r1 .crown { color: var(--gold); }
.rank-card.r2 .crown { color: var(--silver); }
.rank-card.r3 .crown { color: var(--bronze); }
.rank-card .no {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  font-family: var(--maru);
  font-size: 11px; font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border-radius: 3px;
  padding: 0 5px;
}

/* ============ ボトムナビ (飯嶋様: 6タブまで可 / ラシオ構成) ============ */
.bnav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  z-index: 40;
}
.bnav a {
  display: grid;
  place-items: center;
  gap: 2px;
  padding-top: 7px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-sub);
}
.bnav a svg { width: 20px; height: 20px; }
.bnav a.on { color: var(--rose); }
.bnav a .lv { position: relative; }
.bnav a .lv::after {
  content: "";
  position: absolute; top: -2px; right: -4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  border: 1.5px solid #fff;
}

/* ============ ボタン ============ */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--maru);
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), #f0759d);
  border: none;
  border-radius: 99px;
  padding: 13px;
  box-shadow: 0 4px 12px rgba(232, 96, 138, 0.32);
}
.btn.sub { color: var(--rose-deep); background: var(--bg-pink); box-shadow: none; border: 1px solid var(--rose-pale); }
.btn.ghost { color: var(--ink-sub); background: #fff; box-shadow: none; border: 1px solid var(--line); }
.btn.blue { background: linear-gradient(135deg, var(--blue), #79bce4); box-shadow: 0 4px 12px rgba(88,166,214,0.3); }
.btn.sm { font-size: 12px; padding: 9px 14px; width: auto; display: inline-block; }

/* ============ リスト・カード共通 ============ */
.card {
  margin: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.card.soft { background: var(--bg-soft); border-color: transparent; }
.card.pink { background: var(--bg-pink); border-color: var(--rose-pale); }
.list-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.list-row .ic {
  width: 36px; height: 36px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--bg-pink);
  color: var(--rose);
}
.list-row .ic svg { width: 17px; height: 17px; }
.list-row .tx { flex: 1; min-width: 0; }
.list-row .tx .t1 { font-size: 13px; font-weight: 700; }
.list-row .tx .t2 { font-size: 10.5px; color: var(--ink-sub); }
.list-row .chev { color: #ccc; flex: none; }
.list-row .chev svg { width: 15px; height: 15px; }

/* ステップ表示 (登録フロー) */
.steps { display: flex; align-items: center; gap: 0; margin: 14px 22px 6px; }
.steps .s {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 9px;
  color: var(--ink-sub);
}
.steps .s::before {
  content: attr(data-n);
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  margin: 0 auto 3px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  font-family: var(--maru);
  font-weight: 800;
  font-size: 11px;
}
.steps .s.on { color: var(--rose-deep); font-weight: 700; }
.steps .s.on::before { background: var(--rose); border-color: var(--rose); color: #fff; }
.steps .s.done::before { background: var(--rose-pale); border-color: var(--rose-pale); color: var(--rose-deep); content: "✓"; }
.steps .s + .s::after {
  content: "";
  position: absolute;
  top: 12px; left: -50%;
  width: 100%; height: 1.5px;
  background: var(--line);
  z-index: -1;
}

/* フォーム */
.field { margin: 12px 14px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; margin-bottom: 5px; }
.field label .req { color: var(--live); font-size: 9px; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
}
.field .hint { font-size: 10px; color: var(--ink-sub); margin-top: 4px; }
.field .pw-wrap { position: relative; }
.field .pw-wrap .eye {
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: none; border: none;
  color: var(--ink-sub);
}
.field .pw-wrap .eye svg { width: 17px; height: 17px; }

/* ランク進捗 (飯嶋様要望「あと◯◯で次のランクへ」) */
.rank-progress { margin: 0 14px; }
.rank-progress .rp-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; }
.rank-progress .rp-row b { font-family: var(--maru); font-size: 13px; }
.rank-progress .bar {
  height: 9px;
  border-radius: 99px;
  background: #f3e9ee;
  overflow: hidden;
  margin: 5px 0 3px;
}
.rank-progress .bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--rose), #f0a0bd);
}
.rank-progress .next { font-size: 10.5px; color: var(--rose-deep); font-weight: 700; }

/* ステータスフロー (取引: 入金待ち→…→評価済) */
.flow { display: flex; gap: 4px; margin: 8px 0 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.flow span {
  flex: none;
  font-size: 9px;
  color: var(--ink-sub);
  background: var(--bg-soft);
  border-radius: 3px;
  padding: 2px 7px;
  position: relative;
}
.flow span.on { color: #fff; background: var(--rose); font-weight: 700; }
.flow span.done { color: var(--rose-deep); background: var(--bg-pink); }

/* 空状態 */
.empty {
  text-align: center;
  padding: 44px 24px;
}
.empty svg { width: 44px; height: 44px; color: var(--rose-pale); margin: 0 auto 10px; }
.empty .e1 { font-family: var(--maru); font-weight: 700; font-size: 14px; color: var(--ink); }
.empty .e2 { font-size: 11px; color: var(--ink-sub); margin: 4px 0 14px; }

/* フッター法令 */
.legal {
  margin: 30px 14px 6px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 10px;
  color: var(--ink-sub);
  line-height: 2;
}
.legal .lrow { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.legal .co { margin-top: 8px; }
.legal .certs { display: flex; gap: 6px; margin-top: 8px; }
.legal .certs span {
  font-size: 8.5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 7px;
  color: var(--ink-sub);
  background: var(--bg-soft);
}

/* プロトタイプ注記 */
.proto-note {
  position: sticky;
  top: 0;
  z-index: 60;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-align: center;
  color: #b48;
  background: #fdf3f8;
  border-bottom: 1px solid #f6dfeb;
  padding: 3px 0;
}

/* 年齢確認 (エンジェルライブ・トレース: 白×ピンク×信頼表記) */
.agegate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #f6f0f3;
  padding: 22px;
}
.agegate .box {
  width: 100%; max-width: 350px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(120, 50, 80, 0.14);
  padding: 30px 24px 22px;
  text-align: center;
}
.agegate .brand { justify-content: center; margin-bottom: 6px; }
.agegate .brand .name { font-size: 26px; }
.agegate .lead { font-size: 12.5px; font-weight: 700; }
.agegate .lead .em { color: var(--rose-deep); }
.agegate .trust { font-size: 10.5px; color: var(--ink-sub); margin-top: 3px; }
.agegate .warn {
  margin: 16px 0 6px;
  background: var(--bg-pink);
  border-radius: 10px;
  padding: 14px 12px;
}
.agegate .warn .w18 {
  width: 40px; height: 40px;
  margin: 0 auto 8px;
  color: var(--rose);
}
.agegate .warn p { font-size: 10.5px; color: var(--ink); line-height: 1.8; }
.agegate .warn .q { font-family: var(--maru); font-weight: 800; font-size: 14.5px; color: var(--live); margin-top: 8px; }
.agegate .ag-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; margin-top: 14px; }
.agegate .ag-no {
  font-size: 12px; color: var(--ink-sub);
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 6px;
}
.agegate .ag-yes {
  font-family: var(--maru); font-weight: 800; font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), #f0759d);
  border: none; border-radius: 8px; padding: 12px 6px;
  box-shadow: 0 4px 10px rgba(232,96,138,0.3);
}
.agegate .ag-legal { font-size: 8.5px; color: var(--ink-sub); margin-top: 14px; line-height: 1.9; }

/* ============ ライブ視聴 ============ */
.watch {
  position: relative;
  height: calc(100dvh - env(safe-area-inset-bottom));
  min-height: 560px;
  background: #17121a;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.watch .stage { position: absolute; inset: 0; }
.watch .stage .pfoto { position: absolute; inset: 0; filter: blur(2px) brightness(0.82); }
.watch .stage .vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.42), transparent 26%, transparent 62%, rgba(0,0,0,0.6)); }
.watch .video-note {
  position: absolute; left: 50%; top: 40%;
  transform: translate(-50%,-50%);
  font-size: 9.5px; letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  padding: 5px 12px;
  white-space: nowrap;
}
.watch .w-top {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 0;
}
.watch .host-pill {
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,0.4);
  border-radius: 99px;
  padding: 4px 12px 4px 5px;
}
.watch .host-pill .mini { width: 27px; height: 27px; border-radius: 50%; overflow: hidden; }
.watch .host-pill .hn { font-size: 12px; font-weight: 700; }
.watch .host-pill .follow {
  font-size: 10px; font-weight: 800;
  color: #fff; background: var(--rose);
  border: none; border-radius: 99px;
  padding: 3px 10px;
}
.watch .w-meta { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.watch .w-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700;
  background: rgba(0,0,0,0.4);
  border-radius: 99px;
  padding: 4px 9px;
}
.watch .w-chip svg { width: 11px; height: 11px; }
.watch .w-chip.fee { color: #ffd9e6; }
.watch .top-guest {
  position: relative; z-index: 5;
  align-self: flex-start;
  margin: 8px 12px 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700;
  color: #6b4a00;
  background: linear-gradient(90deg, #ffe9a8, #ffd76e);
  border-radius: 99px;
  padding: 4px 12px 4px 8px;
  box-shadow: 0 2px 8px rgba(255,200,60,0.4);
}
.watch .top-guest svg { width: 13px; height: 13px; }
.watch .goal {
  position: relative; z-index: 5;
  margin: 8px 12px 0;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 9px;
  padding: 8px 11px;
}
.watch .goal .g-row { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; }
.watch .goal .g-row .g-pct { color: #ffd76e; }
.watch .goal .bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,0.18); overflow: hidden; margin-top: 5px; }
.watch .goal .bar i { display: block; height: 100%; width: 68%; border-radius: 99px; background: linear-gradient(90deg, #ffd76e, #ff9d5c); }
.watch .chat {
  position: relative; z-index: 5;
  margin-top: auto;
  padding: 0 12px;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 33%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%);
  mask-image: linear-gradient(180deg, transparent, #000 18%);
}
.watch .msg {
  align-self: flex-start;
  max-width: 84%;
  font-size: 12px;
  line-height: 1.55;
  background: rgba(0,0,0,0.45);
  border-radius: 9px;
  padding: 6px 11px;
}
.watch .msg .u { font-weight: 700; color: #9fd6ff; margin-right: 6px; font-size: 11px; }
.watch .msg.gift { background: linear-gradient(90deg, rgba(232,96,138,0.75), rgba(0,0,0,0.45) 78%); }
.watch .msg.gift .g { font-weight: 800; color: #ffe1ec; }
.watch .msg.host .u { color: #ffc2d6; }
.watch .w-bar {
  position: relative; z-index: 6;
  display: grid;
  grid-template-columns: 1fr 44px 44px 52px;
  gap: 8px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
}
.watch .say {
  display: flex; align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 99px;
  padding: 0 14px;
}
.watch .wbtn {
  height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border-radius: 50%;
}
.watch .wbtn svg { width: 19px; height: 19px; }
.watch .wbtn.gift-btn {
  border: none;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--rose), #f0759d);
  box-shadow: 0 3px 14px rgba(232,96,138,0.55);
}

/* ギフトシート */
.sheet-veil {
  position: fixed; inset: 0;
  background: rgba(30,10,20,0.45);
  z-index: 50;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.sheet-veil.open { opacity: 1; pointer-events: auto; }
.gift-sheet {
  position: fixed;
  left: 50%; bottom: 0;
  transform: translate(-50%, 105%);
  width: 100%; max-width: 430px;
  z-index: 51;
  background: #fff;
  color: var(--ink);
  border-radius: 18px 18px 0 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  max-height: 70dvh;
  overflow-y: auto;
}
.gift-sheet.open { transform: translate(-50%, 0); }
.gift-sheet .grip { width: 38px; height: 4px; border-radius: 2px; background: #e5dbe0; margin: 0 auto 10px; }
.gift-sheet .gs-head { display: flex; justify-content: space-between; align-items: baseline; }
.gift-sheet .gs-head h3 { font-family: var(--maru); font-weight: 800; font-size: 15px; }
.gift-sheet .gs-head .bal { font-size: 11px; color: var(--ink-sub); }
.gift-sheet .gs-head .bal b { color: var(--rose-deep); font-family: var(--maru); font-size: 13px; }
.gift-grid2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.gift-cell {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 9px 3px 7px;
  text-align: center;
}
.gift-cell:active { transform: scale(0.95); }
.gift-cell svg { width: 24px; height: 24px; color: var(--rose); }
.gift-cell .gn { font-size: 9.5px; color: var(--ink-sub); margin-top: 2px; }
.gift-cell .gp { font-family: var(--maru); font-weight: 800; font-size: 11.5px; }
.gift-cell.hi { border-color: var(--rose); background: var(--bg-pink); }
.gift-cell.hi svg { color: var(--rose-deep); }
.gift-free2 { grid-column: 1 / -1; display: flex; gap: 8px; }
.gift-free2 input {
  flex: 1;
  font-size: 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
}
.gift-free2 button {
  font-family: var(--maru); font-weight: 800;
  color: #fff; font-size: 12.5px;
  background: linear-gradient(135deg, var(--rose), #f0759d);
  border: none; border-radius: 9px;
  padding: 0 18px;
}

/* ギフト演出 */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.fx-float {
  position: absolute; bottom: 130px;
  display: grid; place-items: center;
  animation: floatUp 1.5s ease-out forwards;
  color: #ff87ab;
  filter: drop-shadow(0 0 6px rgba(255,135,171,0.8));
}
@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(-44vh) rotate(10deg); opacity: 0; }
}
.fx-center {
  position: absolute; left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: pop 3s cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}
.fx-center svg { width: 96px; height: 96px; color: #ff87ab; filter: drop-shadow(0 0 24px rgba(255,120,165,0.9)); }
.fx-center .fx-nm {
  font-family: var(--maru); font-weight: 800;
  font-size: 19px; letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 0 0 16px rgba(255,120,165,1), 0 1px 2px rgba(0,0,0,0.5);
}
@keyframes pop {
  0% { transform: translate(-50%,-50%) scale(0.4); opacity: 0; }
  14% { transform: translate(-50%,-50%) scale(1.1); opacity: 1; }
  24% { transform: translate(-50%,-50%) scale(1); }
  80% { opacity: 1; }
  100% { transform: translate(-50%,-54%); opacity: 0; }
}
.fx-heart {
  position: absolute; top: -22px;
  width: 14px; height: 13px;
  animation: fall2 linear forwards;
}
@keyframes fall2 {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(108vh) rotate(500deg); opacity: 0; }
}

/* ============ 管理画面 (PC想定・白ベース簡潔) ============ */
.admin-shell { max-width: 1080px; margin: 0 auto; background: #fff; min-height: 100dvh; box-shadow: 0 0 40px rgba(90,40,60,0.1); }
.admin-top {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-bottom: 2px solid var(--rose);
}
.admin-top .role { font-size: 10px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 3px; padding: 2px 8px; }
.admin-body { display: grid; grid-template-columns: 208px 1fr; min-height: calc(100dvh - 55px); }
.admin-nav { border-right: 1px solid var(--line); padding: 12px 0; background: var(--bg-soft); }
.admin-nav a {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  padding: 8px 16px;
  color: var(--ink);
}
.admin-nav a.on { background: var(--bg-pink); color: var(--rose-deep); font-weight: 700; border-right: 3px solid var(--rose); }
.admin-nav .group { font-size: 9.5px; color: var(--ink-sub); letter-spacing: 0.1em; padding: 12px 16px 4px; }
.admin-main { padding: 18px 22px; }
.admin-main h1 { font-family: var(--maru); font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.atable { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 12px; }
.atable th {
  text-align: left; font-size: 10.5px; color: var(--ink-sub);
  border-bottom: 2px solid var(--line);
  padding: 7px 10px;
  white-space: nowrap;
}
.atable td { border-bottom: 1px solid var(--line); padding: 9px 10px; vertical-align: middle; }
.atable .ab { font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 2px 9px; }
.ab.ok { color: #157347; background: #e2f5ea; }
.ab.ng { color: #b02a37; background: #fbe3e6; }
.ab.pend { color: #8a6d00; background: #fdf3d0; }
.ab.ban { color: #fff; background: #3a3236; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.stat-cards .sc { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stat-cards .sc .k { font-size: 10.5px; color: var(--ink-sub); }
.stat-cards .sc .v { font-family: var(--maru); font-size: 22px; font-weight: 800; color: var(--rose-deep); }
.stat-cards .sc .d { font-size: 10px; color: var(--wait); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
