/* Cat See° 猫のおみくじ (2026-11-27) */

/* トップの「今日のおみくじ」: 雲の猫に合わせた、ふわふわの雲の形 (2026-11-28 吹き出しから変更)
   猫のほっぺの右、ロゴとのあいだで、ゆっくり ふわふわ 浮かびます。雲の形は下の SVG (まわり全体がもこもこ。色は fill="#fffbea") */
.kuji-bubble {
  position: absolute; z-index: 4; left: 72%; top: 54%; white-space: nowrap; isolation: isolate;
  padding: 1.15em 1.55em 1.05em; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: .9rem; font-weight: 700; line-height: 1.35; letter-spacing: .04em;
  color: #6b5640; -webkit-text-fill-color: #6b5640;
  filter: drop-shadow(0 0 10px rgba(255, 246, 214, .5)) drop-shadow(0 3px 6px rgba(0, 0, 0, .3));
  animation: kuji-float 3s ease-in-out infinite; /* 2026-11-28: 最初の、ゆっくり上下するふわふわに戻す */
}
.kuji-bubble::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20140%2094%22%20preserveAspectRatio%3D%22none%22%3E%3Cg%20fill%3D%22%23fffbea%22%3E%3Cellipse%20cx%3D%2270%22%20cy%3D%2248%22%20rx%3D%2250%22%20ry%3D%2230%22/%3E%3Ccircle%20cx%3D%2226%22%20cy%3D%2248%22%20r%3D%2219%22/%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%2227%22%20r%3D%2219%22/%3E%3Ccircle%20cx%3D%2264%22%20cy%3D%2219%22%20r%3D%2221%22/%3E%3Ccircle%20cx%3D%2291%22%20cy%3D%2222%22%20r%3D%2220%22/%3E%3Ccircle%20cx%3D%22113%22%20cy%3D%2238%22%20r%3D%2218%22/%3E%3Ccircle%20cx%3D%22117%22%20cy%3D%2258%22%20r%3D%2217%22/%3E%3Ccircle%20cx%3D%2297%22%20cy%3D%2272%22%20r%3D%2218%22/%3E%3Ccircle%20cx%3D%2270%22%20cy%3D%2274%22%20r%3D%2219%22/%3E%3Ccircle%20cx%3D%2244%22%20cy%3D%2272%22%20r%3D%2218%22/%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2264%22%20r%3D%2215%22/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.kuji-bubble:hover::before { filter: brightness(1.04); }
.kuji-bubble:focus-visible { outline: 2px solid #f4dc9c; outline-offset: 2px; border-radius: 1.2em; }
/* ゆっくり上下にふわふわ (最初の動き) */
@keyframes kuji-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) { .kuji-bubble { animation: none; } }
/* 画面がせまいときは、雲がカードからはみ出さないよう、少し小さく・猫に寄せる */
@media (max-width: 440px) { .kuji-bubble { font-size: .84rem; } }
@media (max-width: 345px) { .kuji-bubble { font-size: .78rem; left: 66%; } }

/* おみくじの紙 */
.kuji-paper {
  position: relative; margin: .4em auto 0; padding: 1.2em 1.1em 1.3em; max-width: 19em;
  background: linear-gradient(180deg, #fffaf0, #f6ecd8); color: #4a3a2a; border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); -webkit-text-fill-color: #4a3a2a;
}
.kuji-paper::before, .kuji-paper::after {   /* 紙の上下の赤い帯 */
  content: ""; position: absolute; left: 0; right: 0; height: 6px; background: #c9574f; opacity: .85;
}
.kuji-paper::before { top: 0; border-radius: 6px 6px 0 0; }
.kuji-paper::after { bottom: 0; border-radius: 0 0 6px 6px; }
.kuji-rank {
  margin: 0 0 .25em !important; font-family: var(--serif, "Shippori Mincho", serif); font-weight: 700;
  font-size: 2.6rem; letter-spacing: .25em; text-indent: .25em; color: #b23b33; -webkit-text-fill-color: #b23b33; line-height: 1.3 !important;
}
.kuji-say { margin: 0 !important; font-size: 1.02rem; font-weight: 700; line-height: 1.8 !important; word-break: keep-all; text-wrap: balance; }

/* めったに出ない「猫吉」は、金色にきらきら */
.kuji.rare .kuji-paper { background: linear-gradient(160deg, #fff6d8, #f1d78f 55%, #fff1c2); box-shadow: 0 0 28px rgba(244, 220, 156, .55), 0 6px 24px rgba(0, 0, 0, .35); }
.kuji.rare .kuji-paper::before, .kuji.rare .kuji-paper::after { background: #c99a2e; }
.kuji.rare .kuji-rank { color: #9a6a10; -webkit-text-fill-color: #9a6a10; }

.kuji-sis { margin: .7em 0 0 !important; }
.kuji-sis .btn { width: auto; max-width: 100%; padding-left: 1.4em; padding-right: 1.4em; font-size: .92rem; }
.kuji-streak { margin: 1.4em 0 0 !important; font-size: .95rem; color: var(--cs-gold, #f4dc9c); -webkit-text-fill-color: var(--cs-gold, #f4dc9c); }
.kuji-next { margin: .8em 0 0 !important; font-size: .82rem; opacity: .7; }
.kuji-wait { margin: .6em 0 0 !important; font-size: 1rem; opacity: .85; }

/* 引く演出: 猫がゆらゆら → 紙がふわっと出る */
.kuji.drawing .neko-cat { animation: kuji-sway .5s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes kuji-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.kuji.fresh .kuji-paper { animation: kuji-pop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.kuji.fresh .neko-lesson, .kuji.fresh .kuji-streak { animation: kuji-in .5s ease .35s both; }
@keyframes kuji-pop { from { opacity: 0; transform: translateY(14px) scale(.9) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes kuji-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .kuji.drawing .neko-cat, .kuji.fresh .kuji-paper, .kuji.fresh .neko-lesson, .kuji.fresh .kuji-streak { animation: none; }
}

/* おみくじ → 今日の占い (2026-11-27) */
.kuji-more { margin: 1.8em 0 0; padding-top: 1.3em; border-top: 1px solid rgba(255,255,255,.18); text-align: center; }
.kuji-more-lead { margin: 0 0 .8em !important; font-size: .9rem; opacity: .85; }
.kuji-more .kuji-to-solo { min-width: 0; width: 15em; max-width: 100%; }
