/* 清台 feast close-up and the duel emotes (buttons under the duel bar, bubbles under the sender's side). */

/* ---------------------------------------------------------------- feast: over the table, under menus and subtitles */
#feast { position: absolute; inset: 0; z-index: 25; touch-action: none; cursor: pointer; animation: feastIn .28s cubic-bezier(.3,1.5,.5,1); }
#feast canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#feast.out { animation: feastOut .25s ease-in forwards; }
#feast .feast-skip { position: absolute; left: 50%; bottom: calc(15% + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  font-size: 15px; font-weight: 900; color: #fff; white-space: nowrap; animation: feastPulse 1.2s ease-in-out infinite;
  text-shadow: -2px -2px 0 #c2457a, 2px -2px 0 #c2457a, -2px 2px 0 #c2457a, 2px 2px 0 #c2457a; }
@keyframes feastIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes feastOut { to { opacity: 0; transform: scale(.96); } }
@keyframes feastPulse { 50% { opacity: .55; } }

/* ---------------------------------------------------------------- emote buttons (top centre, under the duel bar) */
#emote-bar { position: absolute; z-index: 7; top: calc(60px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 4px 8px; border-radius: 30px; background: rgba(255, 240, 246, .55); border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 3px 0 rgba(194, 69, 122, .35); transition: opacity .2s; }
#emote-bar.hidden { display: none; }
.emo-btn { position: relative; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 3px solid #fff; cursor: pointer; outline: none;
  background: radial-gradient(110% 70% at 50% 18%, rgba(255,255,255,.75), rgba(255,255,255,0) 60%), linear-gradient(#ffd6e6, #ff9cc4);
  box-shadow: 0 3px 0 #c2457a, inset 0 -4px 6px rgba(0,0,0,.06); display: flex; align-items: center; justify-content: center;
  transition: transform .14s cubic-bezier(.3,1.6,.5,1), filter .2s; touch-action: none; -webkit-tap-highlight-color: transparent; }
.emo-btn img { width: 40px; height: 40px; object-fit: contain; pointer-events: none; }
.emo-btn .emo-fb { font-size: 24px; }
.emo-btn .emo-key { position: absolute; right: -4px; bottom: -4px; min-width: 16px; height: 16px; border-radius: 8px; font-size: 11px; line-height: 16px;
  font-weight: 900; color: #fff; background: #c2457a; display: none; }
@media (hover: hover) and (pointer: fine) { .emo-btn .emo-key { display: block; } .emo-btn:hover { transform: scale(1.1); filter: brightness(1.05); } }
.emo-btn.pressed { animation: btnSquash .22s cubic-bezier(.3,1.6,.5,1); }
#emote-bar.cool .emo-btn { filter: saturate(.35) brightness(.95); opacity: .7; }
#emote-bar.nope { animation: emoNope .3s; }
@keyframes emoNope { 25% { transform: translateX(calc(-50% - 4px)); } 75% { transform: translateX(calc(-50% + 4px)); } }

/* ---------------------------------------------------------------- wardrobe: the 清台 note under the title */
.closet-note { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; padding: 6px 12px; border-radius: 16px; border: 3px solid #fff;
  background: radial-gradient(120% 70% at 50% 15%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%), linear-gradient(#ffc6dc, #ff8fbd);
  box-shadow: 0 3px 0 #c2457a; animation: notePop .35s cubic-bezier(.3,1.6,.5,1); }
.closet-note img { width: 28px; height: 28px; object-fit: contain; flex: 0 0 auto; }
.closet-note span { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.3; font-weight: 900; color: #fff;
  text-shadow: -1.5px -1.5px 0 #c2457a, 1.5px -1.5px 0 #c2457a, -1.5px 1.5px 0 #c2457a, 1.5px 1.5px 0 #c2457a; }
@keyframes notePop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- 清台 results: 1–3 jelly stars */
.pool-stars { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 2px 0; }
.star-slot { position: relative; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; }
.star-slot:nth-child(2) { width: 70px; height: 70px; margin-bottom: 8px; }
.star-slot .star { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) brightness(1.25); opacity: .35; }
.star-slot .star-fb { font-size: 48px; line-height: 1; color: #ffd84d; -webkit-text-stroke: 2px #c2457a; }
.star-slot.on .star { filter: drop-shadow(0 3px 0 rgba(194, 69, 122, .45)); opacity: 1; animation: starPop .5s cubic-bezier(.3,1.9,.5,1); }
.pool-stars.perfect .star-slot.on .star { animation: starPop .5s cubic-bezier(.3,1.9,.5,1), starShine 1.4s ease-in-out .5s infinite; }
@keyframes starPop { 0% { transform: scale(0) rotate(-40deg); } 60% { transform: scale(1.3) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes starShine { 50% { transform: scale(1.08); filter: drop-shadow(0 3px 0 rgba(194, 69, 122, .45)) brightness(1.15); } }
.star-cap { text-align: center; font-size: 18px; font-weight: 900; color: #fff4a8; opacity: 0; animation: capIn .35s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes capIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- bubbles */
.emo-bubble { position: absolute; z-index: 7; width: 84px; height: 84px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(100% 70% at 50% 20%, #fff, #ffe9f2); border: 4px solid #ff8fbd; box-shadow: 0 4px 0 #c2457a;
  display: flex; align-items: center; justify-content: center; transform-origin: var(--tail, 50%) 0; animation: emoPop .35s cubic-bezier(.3,1.8,.5,1); }
.emo-bubble.b { border-color: #7ab6f7; box-shadow: 0 4px 0 #2f6fb8; }
.emo-bubble::before { content: ""; position: absolute; top: -14px; left: calc(var(--tail, 42px) - 10px); border: 10px solid transparent; border-top: 0;
  border-bottom: 14px solid #ff8fbd; }
.emo-bubble.b::before { border-bottom-color: #7ab6f7; }
.emo-bubble img { width: 70px; height: 70px; object-fit: contain; animation: emoWiggle .9s ease-in-out infinite; }
.emo-bubble .emo-fb { font-size: 40px; }
.emo-bubble.out { animation: emoOut .25s ease-in forwards; }
@keyframes emoPop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes emoOut { to { transform: scale(.5); opacity: 0; } }
@keyframes emoWiggle { 50% { transform: rotate(-6deg) scale(1.06); } }
