/* Who wrote this word */
.word { position: relative; }
.word.fresh { animation: word-pop .55s cubic-bezier(.2, 1.6, .4, 1) both, word-ring 1.8s ease-out both; }
@keyframes word-pop { from { transform: scale(.3) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes word-ring { from { box-shadow: 0 0 0 0 var(--c); } to { box-shadow: 0 0 0 16px transparent; } }
.wbubble {
  position: absolute; left: 50%; top: -36px; z-index: 3; pointer-events: none; display: inline-flex;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); animation: bubble 2.5s ease-out both;
}
@keyframes bubble {
  0% { opacity: 0; transform: translate(-50%, 14px) scale(.4); }
  14% { opacity: 1; transform: translate(-50%, 0) scale(1.18); }
  24% { transform: translate(-50%, 0) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -10px) scale(.9); }
}
.wq { font-size: 24px; line-height: 1; }
.word.mine { outline: 1px dashed rgba(255, 255, 255, .4); }

/* Secret round */
.secret-av { font-size: 34px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #2b1b5e; box-shadow: 0 0 0 3px #7c5cff, 0 0 20px rgba(124, 92, 255, .6); flex: none; }
.now-playing.secret .status { text-align: left; }
.secret-card { background: rgba(124, 92, 255, .16); border-color: rgba(124, 92, 255, .55); }
.secret-show {
  position: fixed; inset: 0; z-index: 32; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(76, 44, 160, .96), rgba(14, 8, 45, .98) 72%); animation: fade-in .2s ease-out; overflow: hidden; padding: 24px;
}
.secret-show.out { animation: fade-out .45s ease-in forwards; }
.secret-icon { font-size: 120px; line-height: 1; animation: spy-in .8s cubic-bezier(.2, 1.4, .4, 1) both; filter: drop-shadow(0 12px 0 rgba(0, 0, 0, .3)); }
@keyframes spy-in { from { transform: translateX(-140%) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.secret-title { font: 700 40px Fredoka, sans-serif; color: #D9CCFF; letter-spacing: 3px; animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) .6s both; }
.secret-sub { font: 500 18px/1.4 Fredoka, sans-serif; color: #B9A8F0; animation: fade-in .5s ease-out 1s both; }
.secret-q { position: absolute; bottom: -30px; font: 700 34px Fredoka, sans-serif; font-style: normal; color: rgba(217, 204, 255, .35); animation: rise 3s ease-in infinite; }
.secret-show.reveal { background: radial-gradient(circle at 50% 40%, rgba(255, 201, 60, .35), rgba(14, 8, 45, .97) 70%); }
.secret-show.reveal .secret-title { color: var(--cruche); animation-delay: .2s; }

/* Journal row and AI settings */
.footer-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.footer-row .logbox[open] { flex: 1 1 100%; order: 3; }
.ai-btn { padding: 6px 12px; font: 600 13px Fredoka, sans-serif; border-radius: 999px; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.sheet-backdrop.top { z-index: 40; }
.bot-sheet { z-index: 41; max-height: 88dvh; overflow-y: auto; }
.bot-rows { display: flex; flex-direction: column; gap: 8px; }
.bot-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--card); }
.bot-row b { display: block; font: 600 16px Fredoka, sans-serif; }
.bot-row small { color: var(--muted); font-size: 12px; }
.bot-preview { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: block; box-shadow: 0 0 0 3px var(--line); flex: none; }
.bot-preview img { width: 100%; height: 100%; display: block; }
.bot-sheet textarea {
  width: 100%; font: 500 16px/1.4 Inter, system-ui, sans-serif; color: var(--text); background: rgba(7, 18, 56, .6);
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none; resize: none;
}
.bot-sheet textarea:focus { border-color: var(--sky); }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; padding: 10px 6px; font-size: 15px; background: var(--card); color: var(--muted); box-shadow: none; border: 1px solid var(--line); }
.seg button.on { background: var(--sky); color: var(--deep); border-color: transparent; }
.chip-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-pick { padding: 6px 10px; font-size: 14px; background: var(--card); color: var(--text); box-shadow: none; border: 1px solid var(--line); border-radius: 999px; }
.chip-pick.on { background: var(--cruche); color: var(--deep); border-color: transparent; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; padding: 0; border-radius: 50%; box-shadow: none; border: 3px solid transparent; }
.swatch.on { border-color: #fff; }
.bot-pick.custom { border-style: dashed; }

.pill { white-space: nowrap; }
