/* 清台's squishy-head break: her head at the top centre of the screen, and its calm kneading screen. */

/* just her head (no plate, no frame), centred at the very top of the 清台 screen; the tap area is a 56 px square */
.squish-btn { position: fixed; z-index: 7; top: calc(4px + env(safe-area-inset-top, 0px)); left: 50%; margin: 0 0 0 -28px;
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer; outline: none;
  display: flex; align-items: center; justify-content: center; transition: transform .12s cubic-bezier(.3,1.6,.5,1), filter .12s;
  -webkit-appearance: none; appearance: none; }
.squish-btn img { width: 54px; height: 54px; object-fit: contain; pointer-events: none; animation: sqBtnIdle 4s ease-in-out infinite;
  filter: drop-shadow(0 2px 1px rgba(194, 69, 122, .45)) drop-shadow(0 0 3px rgba(255, 255, 255, .8)); }
.squish-btn.pop { animation: sqBtnPop .35s cubic-bezier(.3,1.7,.5,1); }
.squish-btn:hover, .squish-btn:focus-visible { transform: scale(1.12); filter: brightness(1.05); }
.squish-btn:active { transform: scale(.88, .8); }
.squish-btn .sq-key { position: absolute; right: -2px; bottom: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #c2457a;
  color: #fff; font-size: 11px; line-height: 18px; text-align: center; border: 2px solid #fff; display: none; }
@media (pointer: fine) { .squish-btn .sq-key { display: block; } }
@keyframes sqBtnPop { 0% { transform: scale(.3); } 100% { transform: scale(1); } }
@keyframes sqBtnIdle { 0%, 82%, 100% { transform: scale(1); } 86% { transform: scale(1.14, .86); } 90% { transform: scale(.9, 1.1); } 94% { transform: scale(1.05, .95); } }

#squish { position: fixed; inset: 0; z-index: 32; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(rgba(255, 236, 244, .35), rgba(255, 236, 244, .35)), url(../assets/tablecloth.webp) center / 150px repeat; }
#squish .sq-card { width: min(92vw, 400px); max-height: 94vh; color: var(--ink); text-align: center; animation: popIn 0.3s cubic-bezier(.2,1.6,.4,1); }
#squish .sq-inner { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 6px 4px 4px; }
#squish .sq-title { font-size: 26px; line-height: 1.15; }
#squish .sq-hint { font-size: 15px; line-height: 1.35; font-weight: 800; color: var(--ink); min-height: 2.7em; display: flex; align-items: center; justify-content: center; }
#squish .sq-stage { position: relative; width: min(100%, 44vh); aspect-ratio: 1 / 1; margin: 0 auto; touch-action: none; }
#squish .sq-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#squish .sq-stage canvas:active { cursor: grabbing; }
/* milestone hearts (20) and stars (50) floating up from her head */
#squish .sq-float { position: absolute; z-index: 3; width: 18%; aspect-ratio: 1 / 1; margin: -9% 0 0 -9%; pointer-events: none;
  display: flex; align-items: center; justify-content: center; font-size: 34px; line-height: 1;
  transform: scale(0); animation: sqFloat 1.6s cubic-bezier(.2,.8,.3,1) forwards; }
#squish .sq-float img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(194, 69, 122, .35)); }
#squish .sq-float.sq-star { width: 12%; margin: -6% 0 0 -6%; font-size: 24px; }
@keyframes sqFloat {
  0% { transform: translate(0, 10px) scale(0) rotate(0); opacity: 0; }
  14% { transform: translate(calc(var(--dx) * .2), -14px) scale(calc(var(--s) * 1.2)) rotate(var(--rot)); opacity: 1; }
  28% { transform: translate(calc(var(--dx) * .35), -30px) scale(var(--s)) rotate(calc(var(--rot) * -.5)); opacity: 1; }
  75% { opacity: .95; }
  100% { transform: translate(var(--dx), -120px) scale(calc(var(--s) * .85)) rotate(var(--rot)); opacity: 0; }
}
#squish .sq-plate { position: absolute; left: 6%; right: 6%; bottom: 3%; height: 22%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #ffe6f0 60%, #ffcfe1 100%); box-shadow: 0 5px 0 #f3a9c6, inset 0 -4px 8px rgba(194,69,122,.12); }
#squish .sq-count { font-size: 20px; line-height: 1.1; }
#squish .sq-count.zero { opacity: .55; }
#squish .sq-count.bump { animation: bump .35s cubic-bezier(.3,1.8,.5,1); }
#squish .sq-close { margin: 2px 8px 0; }

/* the pause menu's 回到難度選擇頁 question: two buttons side by side, each label on one line */
.bd-row .btn { padding: 2px 4px; }
.bd-row .btn span { white-space: nowrap; }
