/* ===== Sahara - Read your coffee cup (home page, js/coffee.js) ===== */
.coffee-section { background: var(--star-gold), linear-gradient(#3a0d0d, #240707); color: #f1e3d3; }
.coffee-section h2 { color: var(--gold); }
.coffee-section .intro { color: #e3d2c0; }
#coffee-cup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 920px; margin: 30px auto 0; text-align: left; }

/* the cup */
.cc-stage { position: relative; display: block; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 1; padding: 0; border: 0; background: radial-gradient(circle at 50% 55%, rgba(227, 179, 65, .18), transparent 65%); cursor: pointer; }
.cc-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s ease, transform .6s ease; }
.cc-hint { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); color: var(--gold); font: 500 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; transition: opacity .4s; }
.cc-cup { transform-origin: 100px 110px; transition: transform 1s cubic-bezier(.5, 0, .3, 1); }
.cc-steam path { animation: cc-steam 2.6s ease-in-out infinite; }
.cc-steam path:nth-child(2) { animation-delay: -.9s; }
.cc-steam path:nth-child(3) { animation-delay: -1.7s; }
@keyframes cc-steam { 0% { transform: translateY(6px); opacity: 0; } 40% { opacity: .8; } 100% { transform: translateY(-14px); opacity: 0; } }
.cc-stage:hover .cc-cup { transform: translateY(-4px) rotate(-3deg); }

/* swirl, turn over, then the inside of the cup appears */
#coffee-cup.cc-swirl .cc-cup { animation: cc-swirl 1.3s ease-in-out; }
@keyframes cc-swirl { 0%, 100% { transform: none; } 20% { transform: translate(-6px, -10px) rotate(-10deg); } 45% { transform: translate(6px, -12px) rotate(10deg); } 70% { transform: translate(-5px, -10px) rotate(-8deg); } }
#coffee-cup.cc-flip .cc-cup { animation: none; transform: rotate(180deg) translateY(-8px); }
#coffee-cup.cc-swirl .cc-steam, #coffee-cup.cc-read .cc-steam { opacity: 0; transition: opacity .3s; }
.cc-inside { opacity: 0; transform: scale(.85) rotate(-30deg); }
#coffee-cup.cc-read .cc-scene { opacity: 0; transform: scale(.9); }
#coffee-cup.cc-read .cc-inside { opacity: 1; transform: none; }
#coffee-cup.cc-swirl .cc-hint, #coffee-cup.cc-read .cc-hint { opacity: 0; }

/* the words */
.cc-step { margin: 0 0 14px; color: #e3d2c0; font-size: 1.05rem; }
.cc-result:empty { display: none; }
.cc-fortune { margin: 0 0 12px; font-family: var(--serif); font-size: 1.55rem; line-height: 1.35; color: #fff; animation: cc-appear .8s ease both; }
.cc-small { margin: 0 0 6px; color: #d9c6b3; font-size: .95rem; animation: cc-appear .8s ease .3s both; }
.cc-small a { color: var(--gold); text-decoration: underline; }
@keyframes cc-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cc-actions .btn[disabled] { opacity: .6; cursor: wait; }
.cc-actions [hidden] { display: none; }

@media (max-width: 760px) {
  #coffee-cup { grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: center; }
  .cc-stage { max-width: 260px; }
  .cc-actions { justify-content: center; }
  .cc-fortune { font-size: 1.3rem; }
}
