:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #4a3728; background: #f9f6f0; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: radial-gradient(circle at 50% 20%, #fffdf8, #f9f6f0 68%); }
.app { width: min(100% - 32px, 480px); margin: 0 auto; padding: 42px 0 calc(32px + env(safe-area-inset-bottom)); text-align: center; }
.eyebrow { margin: 0 0 10px; letter-spacing: .16em; font-size: 11px; font-weight: 700; color: #9a775b; }
.greeting { margin: 0 0 8px; color: #8b5e3c; font-size: 15px; font-weight: 600; }
h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(30px, 8vw, 42px); font-weight: 500; }
.hint { margin: 10px 0 4px; color: #806954; }
.stage { position: relative; min-height: 550px; display: grid; place-items: center; padding-top: 32px; }
.cup-button { position: relative; z-index: 2; width: min(100%, 390px); height: 500px; overflow: visible; border: 0; padding: 0; background: transparent; cursor: pointer; animation: breathe 3s ease-in-out infinite; transform-origin: center bottom; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cup-button img { position: absolute; left: 50%; top: 50%; display: block; width: 100%; max-width: none; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 20px 18px rgba(74,55,40,.16)); }
.cup-card-overlay { position: absolute; z-index: 3; left: 50%; top: 61%; width: 52%; height: 94px; padding: 10px; display: flex; align-items: center; justify-content: center; color: #9a6438; font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", cursive; font-size: clamp(10px, 2.5vw, 15px); line-height: 1.2; text-align: center; white-space: normal; word-break: normal; overflow-wrap: break-word; opacity: 0; transform: translate(-50%, -50%) rotate(-2deg); transition: opacity .25s ease; pointer-events: none; }
.cup-card-overlay.compact { font-size: clamp(9px, 2.1vw, 12px); line-height: 1.15; }
.cup-card-overlay.show { opacity: 1; }
.outside-save { position: absolute; z-index: 5; left: 50%; bottom: 8px; transform: translateX(-50%); margin: 0; padding: 8px 14px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 12px; }
.cup-button:focus-visible { outline: 4px solid #d9b79d; outline-offset: 6px; border-radius: 24px; }
.cup-button.is-tapped { animation: squish .62s cubic-bezier(.2, 1.5, .4, 1); }
.steam { position: absolute; z-index: 3; top: 4px; width: 26px; height: 112px; border-left: 6px solid rgba(255,255,255,.9); border-radius: 50%; filter: blur(1px) drop-shadow(0 0 3px rgba(255,255,255,.35)); pointer-events: none; animation: rise 2.7s ease-in-out infinite; }
.steam-one { left: 43%; animation-delay: -.7s; }
.steam-two { left: 50%; height: 98px; animation-delay: -.1s; }
.steam-three { left: 57%; height: 106px; animation-delay: -1.3s; }
.message-card { position: absolute; z-index: 4; left: 50%; bottom: 7px; width: min(88%, 340px); transform: translate(-50%, 22px) scale(.88); opacity: 0; padding: 18px 18px 14px; border: 1px solid #eadfd1; border-radius: 18px; background: rgba(255,253,248,.97); box-shadow: 0 12px 30px rgba(74,55,40,.14); transition: opacity .42s ease, transform .48s cubic-bezier(.2,.9,.3,1); }
.message-card.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.message-card p { margin: 0; font-family: Georgia, serif; font-size: 20px; line-height: 1.35; }
.save-button { margin-top: 12px; border: 0; border-radius: 999px; padding: 9px 14px; color: #fffdf8; background: #8b5e3c; cursor: pointer; }
.status { margin: 0; color: #806954; font-size: 14px; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.018,.988); } }
@keyframes squish { 0% { transform: scale(1); } 32% { transform: scale(1.08,.91); } 64% { transform: scale(.96,1.04); } 100% { transform: scale(1); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(18px) scale(.72) rotate(-7deg); } 35% { opacity: .72; } 100% { opacity: 0; transform: translateY(-48px) scale(1.12) rotate(7deg); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
