/* Energy Escape Room — custom styles on top of Tailwind CDN */

:root { --ease: cubic-bezier(.2, .8, .2, 1); }

body { -webkit-tap-highlight-color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .9rem; padding: .7rem 1.2rem; font-weight: 700; cursor: pointer;
  transition: transform .12s var(--ease), filter .12s var(--ease), background .12s;
  border: 1px solid transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, #f59e0b, #d97706); color: #1a1205; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-volt { background: linear-gradient(135deg, #38bdf8, #0284c7); color: #04121c; }
.btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #e2e8f0; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }

.card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: 1.25rem; }

.input {
  width: 100%; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14);
  border-radius: .8rem; padding: .7rem .9rem; color: #f1f5f9; font-size: 1rem;
}
.input:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.25); }

/* Board cells */
.board-cell { transition: box-shadow .3s var(--ease), border-color .3s, transform .3s var(--ease); }
.board-cell.solved { border-color: rgba(16,185,129,.7); box-shadow: 0 0 0 1px rgba(16,185,129,.5), 0 0 40px -8px rgba(16,185,129,.55); }
.board-cell.solved .cell-status { color: #34d399; }

@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pop { animation: popIn .4s var(--ease) both; }

@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5);} 50% { box-shadow: 0 0 0 14px rgba(16,185,129,0);} }
.pulse-glow { animation: pulseGlow 1.8s ease-out infinite; }

/* Order-puzzle chips */
.chip { transition: transform .12s var(--ease), background .12s, border-color .12s; }
.chip:active { transform: scale(.97); }
.chip.picked { background: rgba(56,189,248,.18); border-color: #38bdf8; }

/* Confetti dots (finale) */
.confetti { position: fixed; top: -10px; width: 10px; height: 14px; opacity: .9; z-index: 50; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: 1; } }

.toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  background: #0e1424; border: 1px solid rgba(255,255,255,.16); color: #f1f5f9;
  padding: .7rem 1.1rem; border-radius: .9rem; z-index: 60; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7);
  animation: popIn .25s var(--ease) both;
}

/* Hide scrollbars on the big board */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
