/* ═══ INSÔNIA — Dicas: Copão (mesma identidade da loja: preto e dourado) ═══ */
.cp { --cp: #D4AF37; position: relative; overflow: hidden; background: var(--bg0); border-top: 1px solid var(--border); }
.cp::before { content: ''; position: absolute; left: 50%; top: 0; width: min(900px, 140%); aspect-ratio: 2 / 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(212,175,55,.12), transparent); pointer-events: none; }
.cp .sec-hd { margin-bottom: 2rem; }

.cp-box { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: center;
  max-width: 980px; margin: 0 auto; padding: 1.5rem; border-radius: 22px; background: var(--bg1); border: 1px solid var(--border-md); }

/* copão: fundo PRETO (as fotos foram feitas para fundo preto) */
.cp-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.4rem 1rem 1.1rem; background: #000; border-radius: 18px; }
.cp-cup { position: relative; width: clamp(140px, 19vw, 200px); aspect-ratio: 403 / 560; }
.cp-cup img { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.cp-empty { transition: opacity .3s; }
.cp-cup.filled .cp-empty { opacity: 0; }
.cp-full.pop { animation: cpPop .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cpPop { from { opacity: 0; transform: scale(.9) translateY(8px); } to { opacity: 1; transform: none; } }
.cp-sel { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-height: 3.6rem; }
.cp-group { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cp-name { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; color: var(--t0); }
.cp-sel.in > * { animation: cpIn .45s cubic-bezier(.2,.8,.2,1) both; }
.cp-sel.in > *:nth-child(2) { animation-delay: .05s; }
@keyframes cpIn { from { opacity: 0; transform: translateY(8px); } }

/* escolha do sabor */
.cp-panel { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.cp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; padding: .3rem; border-radius: 12px; background: var(--bg0); border: 1px solid var(--border); }
.cp-tabs button { border: 0; border-radius: 9px; padding: .55rem .4rem; background: transparent; color: var(--t1); font: 700 .8rem 'Inter', sans-serif; cursor: pointer;
  transition: background .2s, color .2s; }
.cp-tabs button em { font-style: normal; font-weight: 600; opacity: .6; margin-left: .2rem; }
.cp-tabs button.on { background: var(--gold); color: #000; }
.cp-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem .5rem; min-height: 212px; align-content: start; }
.cp-f { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .2rem 0; border: 0; background: none; color: var(--t1); cursor: pointer;
  font: 600 .72rem/1.2 'Inter', sans-serif; text-align: center; -webkit-tap-highlight-color: transparent; }
.cp-f img { width: 62px; height: 70px; border-radius: 14px; object-fit: contain; padding: 5px 6px 4px; background: #000;
  border: 2px solid var(--border-md); transition: border-color .2s, transform .2s, box-shadow .2s; }
.cp-f:hover img { transform: translateY(-2px); border-color: var(--gold-b); }
.cp-f.on { color: var(--t0); }
.cp-f.on img { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.2); transform: scale(1.05); }
.cp-f.flash img { border-color: var(--gold); }
.cp-acts { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
.cp-acts .cp-add, .cp-acts .cp-done { grid-column: 1 / -1; }
.cp-done { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem; border-radius: 12px; text-decoration: none;
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); color: #4ade80; font-weight: 700; font-size: .88rem; }
.cp-done b { color: #f5f5f5; }
.cp-done[hidden], .cp-add[hidden] { display: none; }
.cp-cup.shake { animation: cpShake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes cpShake { 25% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) scale(1.04); } 75% { transform: rotate(-2deg); } }
.cp-acts .btn { justify-content: center; }
.cp-acts .btn:disabled { opacity: .6; cursor: wait; }

@media (max-width: 760px) {
  .cp-box { grid-template-columns: 1fr; padding: 1rem .9rem 1.1rem; gap: .6rem; }
  .cp-stage { flex-direction: row; justify-content: center; gap: 1.1rem; padding: .9rem 1rem; }
  .cp-cup { width: 104px; }
  .cp-sel { align-items: flex-start; text-align: left; min-height: 0; }
  .cp-list { grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 0; }
  .cp-f img { width: 56px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .cp *, .cp { transition: none !important; animation: none !important; } }
