/* ===== Creeeam° style.css (v3 / 2026-11-15 整理済み) =====
   上書きされて効いていなかった古い指定・使われなくなった部品の指定・使われていないアニメーションを取り除きました。
   (整理の前後で、全画面の見た目が変わっていないことを確認済み)
   色・ボタンの最終的な見た目は palette.css で決めています。 */

:root {
    /* 背景の海 */
  --sky:        #8ccbe0;  /* ロゴの水色 */
  --foam:       #f3f9fb;
    /* チャット中の無地の背景 */
  --paper:      #fbf6e4;  /* 紙のクリーム */
  --cream:      #f3e6b0;  /* くらげの色 */
  --crab:       #d93a26;

  /* 背景タイル1枚分の大きさ (wallpaper.png = 1800 x 1269 の半分。12組が不規則に散らばっている) */
  --tile-w: 900px;
  --tile-h: 634.5px;

}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; margin: 0; }

body {

  line-height: 1.7;

  transition: background-color 0.4s ease;
  -webkit-text-size-adjust: 100%;
}

/* チャット中は、模様のない目に優しい薄い青の無地に切り替える */

.sr-only {
  position: absolute; width: 1px; height: 1px;  margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* ===== 背景: 模様がゆっくり斜め(右上)へ流れる ===== */
.sea {
  position: fixed;
  inset: 0;

  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0s linear 0s;
}

/* 1タイル分(横1枚・縦1枚)ぴったり動いて元に戻るので、つなぎ目なく繰り返せる */

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--tile-w), calc(var(--tile-h) * -1), 0); }
}

/* チャット画面では背景を消して、動きも止める */
body[data-screen="chat"] .sea,
body[data-screen="lounge"] .sea {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

/* ===== 画面切り替え ===== */
.screen { display: none; position: relative; z-index: 1; }

body[data-screen="home"]     #screen-home,
body[data-screen="matching"] #screen-matching { display: flex; }
body[data-screen="chat"]     #screen-chat     { display: flex; }
body[data-screen="lounge"]   #screen-lounge   { display: flex; }

.screen-center {
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}

/* ===== 真ん中の白い半透明カード (後ろの動きが透けて見える) ===== */
.card {

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 28px 24px 26px;
  /* 半透明の白 + ぼかし: 後ろでゆっくり動く模様がうっすら透けて見える */

  -webkit-backdrop-filter: blur(12px) saturate(140%);

}

/* すりガラスに対応していないブラウザでは、読みやすいように白を濃くする */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: rgba(255, 255, 255, 0.9); }
}

.card-narrow {  gap: 22px; }

/* ===== トップ ===== */

.tagline {
  margin: 0;

  line-height: 1.6;

}

.note {
  margin: 0;
  font-size: 0.85rem;

}

/* ===== 年齢確認のチェック (チェックするまで開始ボタンは押せない) ===== */
.age-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 1.05rem;

  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.age-check input {
  flex: none;

}

.btn-big:disabled {

  animation: none;

}

.btn-big:disabled:hover  { background: var(--crab); }
.btn-big:disabled:active { transform: none; box-shadow: 0 7px 0 var(--ink); background: var(--crab); }

/* ===== 大ボタン（ゆっくり揺れる） ===== */
.btn-big {

  cursor: pointer;
  animation: btn-bob 3.4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.btn-big:hover  { background: #e5452f; }

.btn-big:active {
  animation: none;
  transform: translateY(5px);
  box-shadow: 0 2px 0 var(--ink);
  background: var(--crab-dark);
}

@keyframes btn-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ===== サブボタン ===== */
.btn-sub {
  min-height: 46px;
  padding: 8px 26px;

  font-size: 0.95rem;

  border-radius: 999px;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-sub:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* ===== マッチング中 ===== */
.bubbles {
  position: relative;
  width: 120px;
  height: 150px;
}

.bubbles span {
  position: absolute;
  bottom: 0;
  display: block;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  animation: rise 2.8s ease-in infinite;
  opacity: 0;
}

.bubbles span:nth-child(1) { left: 14px; width: 26px; height: 26px; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 62px; width: 36px; height: 36px; animation-delay: 0.7s; }
.bubbles span:nth-child(3) { left: 36px; width: 20px; height: 20px; animation-delay: 1.4s; }
.bubbles span:nth-child(4) { left: 88px; width: 22px; height: 22px; animation-delay: 2.0s; }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0);       opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateY(-150px) translateX(8px); opacity: 0; }
}

.matching-text {
  margin: 0;

}

/* 待機中の文言: 切り替わるたびにふわっと表示 (文字数が違っても枠が上下に動かないよう高さを確保) */
.matching-text {

  display: flex;
  align-items: center;
  justify-content: center;
}

.matching-text.swap { animation: text-swap 0.6s ease both; }

@keyframes text-swap {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== チャット (無地の背景の上に表示) ===== */
#screen-chat,
#screen-lounge {
  height: 100dvh;
  justify-content: center;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  height: 100%;

  overflow: hidden;
}

.chat-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;

}

.chat-brand {

  font-size: 1.45rem;
  line-height: 1.2;

}

.btn-leave {
  min-height: 40px;
  padding: 6px 16px;

  font-size: 0.85rem;

  border-radius: 999px;

  cursor: pointer;
}

.btn-leave:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}

/* 会話を下から積み上げる (少ないときは下に寄り、増えると上へ流れる) */
.messages > :first-child { margin-top: auto; }

/* 吹き出し */
.msg {
  max-width: 78%;
  padding: 9px 14px;

  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;

}

.msg.me {
  align-self: flex-end;

  border-radius: 18px 18px 4px 18px;
}

.msg.them {
  align-self: flex-start;

  border-radius: 18px 18px 18px 4px;
}

.msg.system {
  align-self: center;
  max-width: 92%;
  padding: 4px 14px;
  font-size: 0.85rem;
  text-align: center;

  border-radius: 999px;
}

/* 終了バナー */
.chat-ended {
  flex: none;
  padding: 14px;
  text-align: center;

}

.chat-ended p {
  margin: 0 0 10px;

  font-size: 1.1rem;

}

.chat-ended-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn-next {
  min-height: 46px;
  padding: 8px 26px;

  font-size: 0.95rem;

  border-radius: 999px;

  cursor: pointer;
}

.btn-next:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* 入力欄 */
.composer {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));

}

.composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  max-height: 140px;
  padding: 12px 14px;
  font-size: 16px; /* iOSの自動ズーム防止 */
  line-height: 1.5;

  border-radius: 18px;
  resize: none;
}

.composer textarea::placeholder { color: rgba(31, 42, 82, 0.5); }

.btn-send {
  flex: none;
  min-width: 68px;
  min-height: 46px;
  padding: 0 18px;

  font-size: 0.95rem;

  border-radius: 999px;

  cursor: pointer;
}

.btn-send:active   { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 小さい画面 ===== */
@media (max-width: 600px) {
  :root {
    --tile-w: 640px;
    --tile-h: 451.2px;
  }

  .card { padding: 18px 16px 18px; gap: 14px; }
  .screen-center {  padding-bottom: calc(12px + env(safe-area-inset-bottom)); }

  .msg { max-width: 84%; }
}

/* ===== 同意文言・フッター ===== */
.consent {
  margin: -6px 0 0;

  line-height: 1.5;

}

.consent a,
.legal a {

  text-underline-offset: 2px;
}

.copy {
  margin: 10px 0 0;
  padding: 1px 14px;
  font-size: 0.75rem;

  border-radius: 999px;
}

/* ===== 広告スペース (レスポンシブ) =====
   ・空のあいだは「仮のグレーの枠」が出ます (位置確認用)。
   ・広告コードを <aside> に貼ると、グレーの枠は自動で消えます。
   ・高さは --ad-h で変更できます (例: 300x250 の広告なら 250px)。
   ・本番で空のときに何も見せたくない場合は、下の「.ad-slot:empty」2つのブロックを削除してください
     (場所だけは確保されたままです)。 */
.ad-slot {
  --ad-h: 90px;
  width: min(100%, 728px);
  min-height: var(--ad-h);
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 仮のグレー背景 (広告コードが入るまで) */
.ad-slot:empty {

  border-radius: 14px;
}

.ad-slot:empty::after {
  content: "広告スペース";
  font-size: 0.8rem;
  font-weight: 700;

}

/* 広告コードが入ったときだけ「広告」の表示が出ます */
.ad-slot:not(:empty)::before {
  content: "広告";
  align-self: flex-start;
  margin-bottom: 2px;
  font-size: 0.7rem;
  line-height: 1.6;

}

/* チャット中の広告: 細い帯 (320x50)。会話の邪魔にならないよう小さめ */
.ad-slot-chat {
  --ad-h: 50px;
  flex: none;
  width: 100%;
  margin: 0;
  padding: 2px 0;

}
.ad-slot-chat:empty { border-radius: 0;    }

/* スマホを横向きにして画面が低いときだけ、チャットの広告をかくします (縦向きでキーボードを開いたときは、細い帯なので出したままにします) */
@media (max-height: 480px) and (orientation: landscape) { .ad-slot-chat { display: none; } }

@media (max-width: 600px) {
  .ad-slot { --ad-h: 100px; }
  .ad-slot-chat { --ad-h: 50px; }
}

/* ===== 画面最下部のリンク ===== */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  margin-top: 10px;

  font-size: 0.78rem;

}

.footer-links a,
.link-btn {
  padding: 3px 2px;
  font: inherit;

  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ===== お問い合わせフォーム ===== */
.contact-dialog {
  width: min(92vw, 520px);
  max-height: 92dvh;
  padding: 0;
  overflow: auto;

}

.contact-dialog::backdrop {
  background: rgba(31, 42, 82, 0.45);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px 20px;
}

.contact-title {
  margin: 0;

  font-size: 1.4rem;
  line-height: 1.4;

}

.contact-lead {
  margin: 0;
  font-size: 0.85rem;

}

.field { display: flex; flex-direction: column; gap: 4px; }

.field label { font-size: 0.85rem; font-weight: 700; }

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;

  font-size: 16px; /* iOSの自動ズーム防止 */
  line-height: 1.5;

}

.field textarea { resize: vertical; min-height: 120px; }

.field .is-invalid { border-color: var(--crab); background: #fff1ee; }

/* スパム対策のおとり欄 (画面の外に出す。display:none だと見抜かれやすいため) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-status.is-error { color: var(--crab-dark); }
.contact-status.is-ok    { color: #1f6b3a; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.contact-actions button:disabled { opacity: 0.5; cursor: not-allowed; }

/* お問い合わせの確認画面 */

.confirm-item { display: flex; flex-direction: column; gap: 4px; }
.confirm-label { font-size: 0.85rem; font-weight: 700; }
.confirm-value {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.6;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ===== 利用規約・プライバシーポリシーのページ ===== */
body.legal-page {
  height: auto;
  min-height: 100%;
  padding: calc(20px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));

}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 24px 30px;

}

.legal-back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.legal h1 {
  margin: 0 0 4px;

  font-size: 1.6rem;
  line-height: 1.4;

}

.legal .updated {
  margin: 0 0 20px;
  font-size: 0.85rem;

}

.legal h2 {
  margin: 28px 0 8px;
  padding-left: 10px;

  font-size: 1.15rem;
  line-height: 1.5;

}

.legal p,
.legal li {
  font-size: 0.95rem;
  line-height: 1.85;
}

.legal p { margin: 0 0 10px; }

.legal ul,
.legal ol {
  margin: 0 0 10px;
  padding-left: 1.5em;
}

.legal li { margin-bottom: 4px; }

/* ===== 動きを減らす設定 (背景も止める) ===== */
@media (prefers-reduced-motion: reduce) {

  .matching-text.swap { animation: none; }
  .btn-big { animation: none; }
  .bubbles span { animation: none; opacity: 1; }
  .bubbles span:nth-child(1) { bottom: 10px; }
  .bubbles span:nth-child(2) { bottom: 50px; }
  .bubbles span:nth-child(3) { bottom: 90px; }
  .bubbles span:nth-child(4) { bottom: 30px; }
  body, .sea { transition: none; }
}

/* AIが入力中 */

@keyframes typing { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* 画像のドラッグ保存をしにくくする (簡易的なものです。完全には防げません) */
img { -webkit-user-drag: none; user-select: none; }

/* 画面の高さが低いとき(小さめのスマホ・ノートPCなど)は、トップ画面がスクロールなしで収まるよう、すきまを詰める */
@media (max-height: 840px) {

  #screen-home .note br { display: none; }
}
@media (max-height: 700px) {
  .screen-center {  padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  #screen-home .card { gap: 7px; padding: 12px 16px; }
  #screen-home .tagline { font-size: 1.05rem; line-height: 1.45; }
  #screen-home .age-check { padding: 6px 18px; }
  #screen-home .btn-big { min-height: 54px;  }
  #screen-home .ad-slot { margin-top: 8px; }
  #screen-home .footer-links { margin-top: 6px; }
  #screen-home .copy { margin-top: 6px; }
}

/* 診断表示(?debug=1)の改行を表示する */
#matching-text { white-space: pre-line; }

/* ===== Xでシェアして友達を呼ぶ (インテントURLのリンク) ===== */
.btn-share {

  -webkit-tap-highlight-color: transparent;
}
.btn-share:hover  { background: #2b3a73; }
.btn-share:active { transform: translateY(2px); box-shadow: 0 1px 0 #0e1530; }

.chat-ended .btn-share { margin-top: 12px; }
/* プライバシーポリシーの小見出し (外部送信規律の各サービス名) */
.legal .legal-sub {
  margin: 18px 0 6px;
  font-size: 1rem;
  line-height: 1.5;

}

/* ===== 広告の中身 (ads.js が入れる部分) =====
   ・画面の幅より広い広告は、縦横の比率を保ったまま自動で小さくなります。
   ・計測用の 1x1 の画像は、場所をとらないように重ねています。 */

.ad-body {
  position: relative;
  max-width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.ad-body a {  max-width: 100%; line-height: 0; }
.ad-body img { max-width: 100%;  }
.ad-body img[width="1"] {
  position: absolute;
  left: 0;
  bottom: 0;

  opacity: 0;
  pointer-events: none;
}
.ad-body iframe, .ad-body ins, .ad-body div { max-width: 100%; }

/* チャット中の細い帯: 「広告」の文字を左に置き、バナーを横に並べて、高さを増やさない */
.ad-slot-chat:not(:empty) { flex-direction: row;   gap: 6px; }
.ad-slot-chat:not(:empty)::before { align-self: center; margin: 0 0 0 8px; flex: none; }

/* ===== ページの下の広告 (よくある質問) =====
   明るい背景なので、「広告」の文字を濃い色にしています。 */
.ad-slot-page { margin: 18px auto 0; }

/* ===== 今日の運勢 (数秘) ===== */
.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  margin-top: 12px;
}

/* =====================================================================
   v3: 暗い星空 × すりガラス (Cat See° と同じ雰囲気)
   ・機能・id・class はそのまま。見た目だけを、ここで上書きしています。
   ===================================================================== */
:root {
  --sea:        #070b1a;
  --chat-bg:    #070b1a;
  --ink:        #eef3fa;                 /* 文字 */
  --brown:      #eef3fa;
  --muted:      rgba(214, 226, 242, 0.72);
  --glass:      rgba(16, 20, 32, 0.58);
  --glass-2:    rgba(255, 255, 255, 0.07);
  --line:       rgba(255, 255, 255, 0.16);
  --ice:        #c4f4ff;                 /* 氷の水色 */
  --ice-glow:   rgba(110, 215, 255, 0.55);
  --crab-dark:  #ffb4a6;                 /* 警告の文字色 (暗い背景用に明るく) */
  --glow:       0 0 8px rgba(255, 255, 255, 0.35);
}

body {
  color: var(--ink);
  background-color: #070b1a;
  text-shadow: 0 0 7px rgba(255, 255, 255, 0.28);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #070b1a url("img/stars.jpg?v=20261113a") center / cover no-repeat;
}

:focus-visible {  outline-offset: 3px;  }

/* ----- 背景: ふわふわ浮かぶ泡 ----- */
.sea { z-index: 0; }
.bub {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.55) 0 7%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 70% 78%, rgba(170,220,255,.22) 0 10%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 58%, rgba(210,230,255,.20) 100%);
  box-shadow:
    inset 0 0 calc(var(--s) * .16) rgba(255,255,255,.38),
    inset 0 0 1px 1px rgba(255,255,255,.35),
    0 0 calc(var(--s) * .3) rgba(150,200,255,.10);
  opacity: .85;
  will-change: transform;
  animation: bub-float var(--dur) ease-in-out var(--dl) infinite alternate;
}
@keyframes bub-float {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(calc(var(--dx) * .4), calc(var(--dy) * -.7), 0) scale(1.03); }
  100% { transform: translate3d(var(--dx), calc(var(--dy) * -1), 0) scale(.98); }
}

/* ----- ガラスのカード ----- */
.card {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--line);
  border-radius: 20px;

}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: rgba(14, 18, 30, 0.94); }
}
.card { width: min(100%, 440px); }

/* モニュメント (カードの上の縁にかぶさって、ふわふわ浮かぶ) + ロゴ */
#screen-home, #screen-matching { padding-top: calc(112px + env(safe-area-inset-top)); }
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: -104px;
}
.monument {

  width: 210px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 16px rgba(190, 225, 255, 0.18));
  will-change: transform;
  animation: monument-float 7s ease-in-out infinite;
}
@keyframes monument-float {
  0%   { transform: translate3d(0, 0, 0) rotate(-1.2deg); }
  33%  { transform: translate3d(5px, -9px, 0) rotate(0.8deg); }
  66%  { transform: translate3d(-4px, -3px, 0) rotate(1.4deg); }
  100% { transform: translate3d(0, 0, 0) rotate(-1.2deg); }
}
.brand-logo {  width: min(66.7%, 260px); height: auto; margin-top: 4px; }

.tagline {

  font-weight: 500;
  font-size: clamp(0.98rem, 3.9vw, 1.1rem);
  letter-spacing: 0.04em;

}

.consent a:hover, .legal a:hover, .footer-links a:hover, .link-btn:hover { color: #fff; }

/* 年齢チェック */
.age-check {
  font-weight: 500;

  padding: 6px 12px;
}

/* ボタン */
.btn-big {

  min-height: 52px;

  animation: none;

  transition: background .25s, box-shadow .25s, transform .15s;
}
.btn-big:hover  { background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.17)); box-shadow: 0 0 24px rgba(190, 235, 255, .32), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-big:active { transform: translateY(1px); background: rgba(255,255,255,.2); box-shadow: 0 0 12px rgba(255,255,255,.2); }

.btn-sub:hover, .btn-share:hover, .btn-fortune:hover { background: rgba(255,255,255,.14); box-shadow: 0 0 14px rgba(255,255,255,.14); }
.btn-sub:active, .btn-share:active, .btn-fortune:active { transform: translateY(1px); box-shadow: none; }

/* 氷色のボタン (やめる / 送信 / 退室 / 次へ) */

.btn-next:active, .btn-send:active, .btn-leave:active { transform: translateY(1px); box-shadow: 0 0 6px rgba(110,215,255,.2); }
#btn-cancel {   min-width: 150px;  }

.footer-links {

  padding: 2px 8px;
}

/* ----- 待機中: 10目盛りのゲージ ----- */
.matching-text {

  font-weight: 500;
  font-size: clamp(1rem, 4.2vw, 1.12rem);
  letter-spacing: .05em;

}
.gauge {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  width: 100%;
  padding: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: inset 0 0 12px rgba(0,0,0,.35);
}
.gauge i {
  --l: 0;

  height: 34px;
  border-radius: 7px;

}

/* ----- チャット・あわつぶしの部屋 ----- */
.chat-panel {
  background: rgba(10, 14, 26, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.chat-header { background: rgba(255, 255, 255, 0.06); border-bottom: 1px solid var(--line); }
.chat-brand {  font-weight: 600; letter-spacing: .02em;   }

.msg { border: 1px solid rgba(255, 255, 255, 0.16);  text-shadow: none; }

.msg.them { background: rgba(255, 255, 255, 0.09); }

.msg.system {  border: 1px dashed rgba(255,255,255,.28); }

.chat-ended { background: rgba(255,255,255,.05); border-top: 1px solid var(--line); }
.chat-ended p {  font-weight: 500;  }
.composer { background: rgba(255,255,255,.05); border-top: 1px solid var(--line); }

.composer textarea::placeholder { color: rgba(214,226,242,.45); }
.composer textarea:focus { outline: none;   }

/* 広告 */
.ad-slot-chat { background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }

.ad-slot:empty { background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.22); }
.ad-slot:empty::after { color: rgba(214,226,242,.5); }
.ad-slot:not(:empty)::before { color: rgba(214,226,242,.7); text-shadow: none; }

/* ----- ダイアログ (お問い合わせ・今日の運勢) ----- */
.contact-dialog {
  color: var(--ink);
  background: rgba(14, 18, 30, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}
.contact-dialog::backdrop { background: rgba(3, 5, 12, 0.6); }
.contact-title {  font-weight: 600;  text-shadow: 0 0 10px rgba(255,255,255,.4); }

.field input, .field textarea {

  border-radius: 12px;

}
.field input:focus, .field textarea:focus { outline: none;   }
.field .is-invalid { border-color: #ff9a88; background: rgba(255, 120, 100, .12); }
.contact-status.is-ok { color: #9ff0c0; }
.confirm-value {  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; }

/* ----- 利用規約・プライバシー・よくある質問 ----- */

.legal {

  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255,255,255,.1);
}
.legal h1 {  font-weight: 600;  text-shadow: 0 0 12px rgba(255,255,255,.4); }
.legal .updated { color: var(--muted); }
.legal h2 {  font-weight: 600; color: #fff; border-left: 3px solid rgba(150, 228, 255, .7); }
.legal .legal-sub { color: #fff; }

/* 小さい画面 */
@media (max-width: 600px) {
  #screen-home, #screen-matching { padding-top: calc(96px + env(safe-area-inset-top)); }
  .brand { margin-top: -92px; }
  .monument { width: 180px; }
  .brand-logo { width: min(62.5%, 219px); }
  .gauge { gap: 4px; padding: 6px; }
  .gauge i { height: 30px; border-radius: 6px; }
  .chat-panel { border-left: 0; border-right: 0; }
}
@media (max-height: 760px) {
  #screen-home { padding-top: calc(84px + env(safe-area-inset-top)); }
  #screen-home .brand { margin-top: -80px; }
  #screen-home .monument { width: 150px; }
  #screen-home .brand-logo { width: min(54.2%, 198px); }
}

@media (prefers-reduced-motion: reduce) {
  .bub, .monument { animation: none; }
}
.legal p, .legal li, .legal .updated { text-shadow: none; }

/* 待機中: 2〜3秒のあと、あわつぶしの部屋の案内 (説明文) がふわっと出る */

.matching-text.swap { animation-duration: 1s; }
/* 画面の切り替え: マッチング画面はやさしく消え (フェードアウト)、次の画面はふわっと現れる (フェードイン) */
.screen-center { transition: opacity 0.5s ease; }
.screen-center.fade-out { opacity: 0; pointer-events: none; }
body[data-screen="lounge"] #screen-lounge,
body[data-screen="chat"] #screen-chat { animation: screen-in 0.8s ease both; }
@keyframes screen-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .screen-center { transition: none; }
  body[data-screen="lounge"] #screen-lounge, body[data-screen="chat"] #screen-chat { animation: none; }
}

/* 待機画面の文言: 2行 (「お相手が見つかるまで / あわつぶしの部屋でお待ちください。」) を中央揃えのまま、きれいな位置で改ぎょうする */
.matching-text {   min-height: 3.5em; word-break: keep-all;  text-wrap: balance; }
.msg { text-wrap: pretty; line-break: strict; }

/* =====================================================================
   あわつぶしの部屋: シャボン玉 (ゆらゆら浮かぶ玉を、クリックでパチンとつぶす)
   背景はサイトと同じ (星空)。箱やパネルは使わず、玉だけを浮かべます
   ===================================================================== */
.lounge-room { background: transparent; border-left: 0; border-right: 0; -webkit-backdrop-filter: none; backdrop-filter: none; max-width: 860px; }
.lounge-room .chat-header { background: rgba(10, 14, 26, 0.35); }
.bubble-field {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;

}
.pbub {
  position: absolute;

  border-radius: 50%;
  cursor: pointer;
  will-change: transform;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.62) 0 6%, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 70% 78%, rgba(170,220,255,.28) 0 10%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 50% 50%, rgba(190,225,255,.05) 55%, rgba(210,230,255,.24) 100%);
  box-shadow:
    inset 0 0 14px rgba(255,255,255,.34),
    inset 0 0 1px 1px rgba(255,255,255,.42),
    0 0 22px rgba(150,200,255,.14);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .pbub:hover { box-shadow: inset 0 0 16px rgba(255,255,255,.42), inset 0 0 1px 1px rgba(255,255,255,.55), 0 0 28px rgba(170,215,255,.28); } }   /* スマホでは、さわった泡が光ったままにならないように */
.pbub.pop { pointer-events: none; animation: pbub-pop .42s ease-out forwards; }
@keyframes pbub-pop {
  0%   { opacity: 1; scale: 1; filter: brightness(1); }
  28%  { opacity: 1; scale: 1.13; filter: brightness(1.5); }   /* ぷくっとふくらんで */
  100% { opacity: 0; scale: 1.45; filter: blur(3px) brightness(1.8); }   /* パチンとはじける */
}
.pburst { position: absolute; width: 0; height: 0; pointer-events: none; }
.pburst::before {
  content: "";
  position: absolute;
  left: calc(var(--r) * -1); top: calc(var(--r) * -1);
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  border-radius: 50%;
  border: 2.5px solid rgba(235, 246, 255, 0.9);
  animation: pburst-ring .7s ease-out forwards;
}
.pburst i {
  position: absolute;
  left: -2px; top: -2px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(235, 245, 255, 0.9);
  box-shadow: 0 0 6px rgba(200, 225, 255, 0.8);
  animation: pburst-drop .75s ease-out forwards;
}
@keyframes pburst-ring { 0% { transform: scale(0.85); opacity: .95; } 100% { transform: scale(1.85); opacity: 0; border-width: 0.5px; } }
@keyframes pburst-drop {
  0%   { transform: rotate(var(--a)) translateX(calc(var(--d) * 0.35)); opacity: 1; }
  100% { transform: rotate(var(--a)) translateX(var(--d)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pbub.pop { animation-duration: .01s; } .pburst { display: none; } }

/* あわつぶしの部屋: 最初だけ出る「Pop me！」(ゆらゆら揺れながら、ゆっくり溶けるように消える) */
.pop-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 2; }
.pop-hint img {
  width: min(92vw, 680px);
  height: auto;
  filter: drop-shadow(0 0 16px rgba(150, 205, 255, 0.45));
  animation: pop-hint-op 5.2s ease-in-out forwards, pop-hint-move 5.2s ease-in-out forwards, pop-hint-blur 5.2s ease-in-out forwards;
}
@keyframes pop-hint-op   { 0% { opacity: 0; } 14% { opacity: .92; } 100% { opacity: 0; } }
@keyframes pop-hint-move { 0% { transform: translate(-8px, 12px) scale(var(--hs-start, .72)); } 100% { transform: translate(8px, -24px) scale(var(--hs-end, 1.08)); } }
@keyframes pop-hint-blur { 0% { filter: blur(5px); } 14% { filter: blur(1.6px); } 100% { filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) { .pop-hint img { animation: pop-hint-rm 5s ease forwards; } @keyframes pop-hint-rm { 0%,70% { opacity: 1; } 100% { opacity: 0; } } }

/* スマホ: 「POP / ME！」を2段にして大きく、浮かび上がりも早めに */
@media (max-width: 600px) {
  .pop-hint img { width: min(60vw, 250px); animation-duration: 5.2s; }
}

/* つぶした場所に、次の玉がふわっと現れる */
.pbub.born { animation: pbub-born 3s ease-in-out both; }
@keyframes pbub-born { 0% { opacity: 0; scale: .55; } 100% { opacity: 1; scale: 1; } }

@media (max-width: 600px) { .pop-hint img { --hs-start: .8; --hs-end: 1.04; } }

/* あわつぶしの部屋: 「Creeeam° あわつぶしの部屋 退室する」の帯は、大きくして画面の下へ (広告は上に残ります) */
.lounge-room .chat-header {
  order: 3;
  border-bottom: 0;
  border-top: 1px solid var(--line);
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 14, 26, 0.55);
}
.lounge-room .chat-brand { font-size: 1.35rem; display: inline-flex; align-items: center; gap: 10px; }

@media (max-width: 600px) {
  .lounge-room .chat-header { padding-left: 14px; padding-right: 14px; }
  .lounge-room .chat-brand { font-size: 1.15rem; }

}

/* 色つきの泡: 5色のどれか (--t に色が入ります) */
.pbub.tint {
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.7) 0 6%, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 70% 78%, rgba(var(--t),.42) 0 10%, rgba(255,255,255,0) 32%),
    radial-gradient(circle at 50% 50%, rgba(var(--t),.10) 52%, rgba(var(--t),.42) 100%);
  box-shadow: inset 0 0 18px rgba(var(--t),.55), inset 0 0 1px 1px rgba(255,255,255,.55), 0 0 28px rgba(var(--t),.42);
}
/* 虹色の泡: ごくまれ。色がゆっくり巡ります */
.pbub.rainbow {
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.75) 0 6%, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.04) 52%, rgba(255,255,255,.28) 100%);
  box-shadow: inset 0 0 18px rgba(255,255,255,.45), inset 0 0 1px 1px rgba(255,255,255,.65), 0 0 30px rgba(190,200,255,.5);
}
.pbub.rainbow::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,120,170,.5), rgba(255,214,120,.5), rgba(130,255,200,.5), rgba(120,190,255,.5), rgba(200,140,255,.5), rgba(255,120,170,.5));
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 100%);
  mask: radial-gradient(circle, transparent 52%, #000 100%);
  animation: pbub-hue 6s linear infinite;
}
@keyframes pbub-hue { to { filter: hue-rotate(360deg); } }
/* 大きな泡: 10個つぶすごとにひとつ。ほんのり光ります */
.pbub.big { box-shadow: inset 0 0 22px rgba(255,255,255,.4), inset 0 0 1px 1px rgba(255,255,255,.55), 0 0 46px rgba(170,215,255,.38); }
.pbub.big.tint { box-shadow: inset 0 0 22px rgba(var(--t),.55), inset 0 0 1px 1px rgba(255,255,255,.55), 0 0 46px rgba(var(--t),.45); }
/* はじけたときの色 */
.pburst[style*="--t"]::before { border-color: rgba(var(--t), .95); }
.pburst[style*="--t"] i { background: rgba(var(--t), .95); box-shadow: 0 0 8px rgba(var(--t), .9); }
/* 大きな泡がはじけたとき: 輪がもうひとつ広がる */
.pburst.big::after {
  content: "";
  position: absolute;
  left: calc(var(--r) * -1); top: calc(var(--r) * -1);
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  border-radius: 50%;
  border: 2px solid rgba(235, 246, 255, .8);
  animation: pburst-ring2 1s .12s ease-out forwards;
  opacity: 0;
}
.pburst.big i { width: 8px; height: 8px; }
@keyframes pburst-ring2 { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; border-width: .5px; } }

/* =====================================================================
   待機画面: 大きな文言 → 「あわつぶしスタート」+「クリック！」の吹き出し
   ===================================================================== */
.matching-text.notice { font-size: clamp(1.45rem, 6.6vw, 1.9rem); line-height: 1.65; letter-spacing: .06em; font-weight: 600; text-shadow: 0 0 14px rgba(150, 215, 255, .35); min-height: 3.6em; }
.bubble-start-wrap { position: relative; display: flex; justify-content: center; align-items: center;  padding: 0 4px; }

.bubble-start-wrap.swap { animation: text-swap 1s ease both; }
.bubble-start {

  font-size: clamp(1.25rem, 5.6vw, 1.6rem);

  letter-spacing: .08em;

  padding: 16px 30px;
  border-radius: 999px;

  cursor: pointer;
  animation: bubble-start-glow 2.8s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.bubble-start:active { transform: translateY(1px) scale(.99); }
@keyframes bubble-start-glow { 0%, 100% { box-shadow: 0 0 18px rgba(110, 200, 255, .3), inset 0 0 14px rgba(255, 255, 255, .1); } 50% { box-shadow: 0 0 34px rgba(130, 215, 255, .6), inset 0 0 18px rgba(255, 255, 255, .2); } }
.click-balloon {
  position: absolute;

  font-size: .95rem;

  letter-spacing: .04em;

  border-radius: 14px;

  pointer-events: none;
  animation: balloon-bob 1.6s ease-in-out infinite;
}
.click-balloon::after {            /* 吹き出しのしっぽ (ボタンのほうへ) */
  content: "";
  position: absolute;

}
@keyframes balloon-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .bubble-start, .click-balloon { animation: none; } }

/* あわつぶしの画面: 文字は出さない。退室ボタンだけを、下の中央に大きく */
.lounge-footer { order: 3; display: flex; justify-content: center; padding: 12px 16px calc(18px + env(safe-area-inset-bottom, 0px)); background: rgba(10, 14, 26, .35); border-top: 1px solid var(--line); }
.lounge-room .lounge-exit { font-size: 1.25rem; padding: 16px 56px; min-height: 60px; min-width: min(78vw, 300px);  letter-spacing: .12em; }

/* =====================================================================
   「Xでシェア」ボタンの統一デザイン (Creeeam° / Cat See° のすべてのページで同じ見た目)
   ===================================================================== */
.x-share, .btn-share.x-share {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
    font-size: 0.98rem; letter-spacing: .04em; line-height: 1.3;

  border-radius: 999px;

  text-decoration: none;  -webkit-tap-highlight-color: transparent;
}
.x-share:hover, .btn-share.x-share:hover { background: linear-gradient(180deg, #5cc6ff, #2a94f5); box-shadow: 0 0 24px rgba(80, 185, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .4); }
.x-share:active, .btn-share.x-share:active { transform: translateY(1px); }
.x-share .x-icon { flex: none; width: 18px; height: 18px; }

/* トップ画面: 「今日の運勢」と「Xでシェア」を大きく。今日の運勢は色を変えて目立たせる */
.home-actions { gap: 12px; }
#screen-home .home-actions .btn-share.x-share,
.home-actions .btn-fortune { min-height: 58px; padding: 12px 22px; font-size: 1.08rem; flex: 1 1 0; min-width: 0; white-space: nowrap; }

@media (max-width: 400px) { #screen-home .home-actions .btn-share.x-share, .home-actions .btn-fortune { font-size: 1rem; padding: 12px 10px; } }

/* あわつぶし: 1分たつと1回だけ出る、透明なモニュメント(モナ)の形の泡。ほかの泡と同じガラスのような質感 (monument-bubble.png) */

.pbub.cloud,
.pbub.cloud:hover {
  border-radius: 0;                     /* 円で切り抜かない (モナの形のまま) */
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;             /* 画像を泡の大きさにぴったり収める */
  box-shadow: none;                     /* 丸い光の輪は付けない */
  filter: drop-shadow(0 0 18px rgba(150, 200, 255, .28));
}

/* ===== 明るいパステル配色 (色のついた部分は透過なしのベタ塗り。Xのボタンだけは今までの青) ===== */
.btn-big, .btn-big:disabled {      -webkit-backdrop-filter: none;  }
.btn-big:hover, .btn-big:disabled:hover { background: #ffd5e8; }
.btn-sub {      -webkit-backdrop-filter: none;  }
.btn-sub:hover { background: #e4daff; }
.btn-next {      -webkit-backdrop-filter: none;  }
.btn-next:hover { background: #c9f5e5; }
.btn-send {      -webkit-backdrop-filter: none;  }

.btn-leave, #btn-cancel {      -webkit-backdrop-filter: none;  }

.bubble-start {      -webkit-backdrop-filter: none;  }

.bubble-start { animation: none;  }

.age-check input { accent-color: #ff9cc6; }

/* ===== 100の配色: チャットを始める=水色 / やめる・退室する=ミント (透過なし) ===== */

.btn-big:hover { background: #cae8ff; }

/* あわつぶしスタート: 白い枠、太字の抜き文字(中が空洞) */
.bubble-start, .bubble-start:hover {  -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.1px #fff;      animation: none; }

/* 「Click！」の吹き出し: 赤、太字の抜き文字、左右にゆれる */
.click-balloon {  -webkit-text-fill-color: transparent; -webkit-text-stroke: 1px #fff;    animation: balloon-sway 1.1s ease-in-out infinite; transform-origin: 20px 100%; }

@keyframes balloon-sway { 0%, 100% { transform: translateX(-7px) rotate(-5deg); } 50% { transform: translateX(7px) rotate(5deg); } }

/* ===== 白い枠・ピンクの文字・ベタ塗りの白い太字 (2026-11-14) ===== */
:root { --pk: #f29bc4; }

/* 18歳以上: 枠は最初からピンク。チェックすると、ピンクの地に白いチェック */
.age-check input[type="checkbox"] { -webkit-appearance: none;  width: 26px; height: 26px; margin: 0 8px 0 0; vertical-align: middle;  border-radius: 8px; background: transparent center / 78% no-repeat; cursor: pointer; }

/* あわつぶしスタート・Click！: 太いベタ塗りの白い文字 */
.bubble-start, .bubble-start:hover {  -webkit-text-fill-color: #fff; -webkit-text-stroke: 0;  }
.click-balloon {  -webkit-text-fill-color: #fff; -webkit-text-stroke: 0;  }
/* やめる: 白いボタン、文字は空洞(抜き)の太字・線なし */
#btn-cancel, #btn-cancel:hover {     -webkit-text-fill-color: #0b0f1c; -webkit-text-stroke: 0;  }

/* ===== チャットを始める=線なしの白 / 18歳チェック=白枠 / 退室=白地に黒の太字 / Cat See°で占う ===== */
.btn-big, .btn-big:hover, .btn-big:disabled, .btn-big:disabled:hover, .btn-big:disabled:active {     -webkit-text-fill-color: var(--pk);   }
.btn-big:active:not(:disabled) { transform: translateY(3px); }

.btn-leave, .btn-leave:hover {     -webkit-text-fill-color: #0b0f1c;  }
.catsee-link { display: flex; align-items: center; justify-content: center;   margin: 14px auto 6px;   border-radius: 999px;        text-decoration: none;  }
.catsee-link:active { transform: translateY(3px); }

/* ===== 黒文字・白地のボタン、Click！の吹き出し(白地に黒線・黒の太字) ===== */
.btn-big, .btn-big:hover, .btn-big:disabled, .btn-big:disabled:hover, .btn-big:disabled:active {  -webkit-text-fill-color: #0b0f1c; }
.bubble-start, .bubble-start:hover {    -webkit-text-fill-color: #0b0f1c; -webkit-text-stroke: 0;  }

.click-balloon {  border: 2.5px solid #0b0f1c;  -webkit-text-fill-color: #0b0f1c; -webkit-text-stroke: 0; font-weight: 900; padding: 4px 12px; }
.click-balloon::after { border: 7px solid transparent;  border-bottom: 0; left: 12px; bottom: -8px; z-index: 1; }
.click-balloon::before { content: ""; position: absolute; left: 9px; bottom: -13px; border: 10px solid transparent;  border-bottom: 0; }
.catsee-link {       white-space: nowrap; }

/* =====================================================================
   Creeeam° デザイン統一 (2026-11-14)
   背景・モナ・あわつぶしの泡 (画像と動き) は変えず、ボタンや文字の色・形だけをここで揃えます。
   色は「白」「濃紺 #0b0f1c」「アイスブルー #bcdcf5」の3つだけ。
     主ボタン  = 白地 + 濃紺の太字        (チャットを始める / あわつぶしスタート / 送信)
     副ボタン  = 透明 + 白い細枠 + 白の太字 (やめる / 退室 / 次へ / トップへ / Cat See°で占う ほか)
     Xでシェア = 落ち着いた青 + 白の太字
   ===================================================================== */
:root { --ts-white: #fff; --ts-ink: #0b0f1c; --ts-ice: #bcdcf5; --ts-x: #2f86d6; }

/* 主ボタン */
.btn-big, .btn-big:hover, .btn-big:active, .btn-big:disabled, .btn-big:disabled:hover, .btn-big:disabled:active,
.bubble-start, .bubble-start:hover, .btn-send, .btn-send:hover {

   -webkit-text-fill-color: var(--ts-ink) !important; -webkit-text-stroke: 0 !important;
    animation: none;
}
.btn-send:disabled { opacity: .55; }

.btn-big:active:not(:disabled), .bubble-start:active, .btn-send:active:not(:disabled) { transform: translateY(2px); }

/* 副ボタン */
.btn-sub, .btn-sub:hover, .btn-next, .btn-next:hover, .btn-leave, .btn-leave:hover, #btn-cancel, #btn-cancel:hover, .catsee-link, .catsee-link:hover {

   -webkit-text-fill-color: var(--ts-white) !important; -webkit-text-stroke: 0 !important;
  font-weight: 800 !important;
}

.btn-sub:active, .btn-next:active, .btn-leave:active, #btn-cancel:active, .catsee-link:active { transform: translateY(2px); }

/* Xでシェア */
.x-share, .btn-share.x-share, #screen-home .home-actions .btn-share.x-share {      font-weight: 800; }
.x-share:hover, .btn-share.x-share:hover { background: #4097e6 !important; box-shadow: none !important; }

/* チェック・入力・タグ・ふきだし */
.age-check input[type="checkbox"] { border: 2px solid var(--ts-white); }

.composer textarea, .field input, .field textarea { border: 2px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .06); color: #fff;  }

/* あわつぶしスタートの前の説明 (何のボタンか、つながったらどうなるか) */
.bubble-start-wrap { flex-direction: column; gap: 14px; min-height: 0; }
.bubble-btnbox { position: relative; display: flex; justify-content: center; }
.bubble-note { margin: 0;  font-weight: 700;  letter-spacing: .05em;   }
.bubble-note-sub { font-size: .82rem; font-weight: 500;  }
.bubble-btnbox .click-balloon { right: -10px; top: -30px; }

/* あわつぶし中に、お相手がみつかったときの知らせ (1秒ほど) */
.found-toast { position: fixed; left: 50%; top: 42%; z-index: 60; transform: translate(-50%, -50%) scale(.96); padding: 16px 30px; border-radius: 999px; background: #fff; color: #0b0f1c; font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; white-space: nowrap; opacity: 0; pointer-events: none; }
.found-toast.show { animation: found-pop 1.4s ease both; }
@keyframes found-pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.94); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 82% { opacity: 1; } 100% { opacity: 0; } }

/* あわつぶしの画面に入った直後: 背景の泡を急に止めて消さず、ゆっくり薄くする。最初の泡は、すぐにゆらゆら現れる */
body[data-screen="lounge"] .sea { transition: opacity 1.6s ease, visibility 0s linear 1.6s; }

.pbub.born.first { animation-duration: 1.2s; }

/* 姉妹サイトへ: Cat See° の色(ゴールド)の枠と、外へ出る矢印 */
.catsee-link {   -webkit-text-fill-color: #f4dc9c !important; }
.catsee-link:hover { background: rgba(244, 220, 156, .14) !important; }
.catsee-link::after { content: "→"; margin-left: .5em; font-weight: 700; }
/* (スマホで見た、暗い空白を防ぐ) 背景の泡は、ゲームの泡が出そろうまで残して、そのあとゆっくり薄くする */
body[data-screen="lounge"] .sea { transition: opacity 1.4s ease .9s, visibility 0s linear 2.3s; }
.pbub.born.first { animation-duration: .9s; }
