/* coins.css — cinematic DoggoCoin Vault experience */

.coin-backdrop {
  backdrop-filter: blur(6px) saturate(120%);
}

.coin-modal {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(255,215,128,.12), transparent 60%),
              linear-gradient(180deg, rgba(35,40,90,.85), rgba(20,22,40,.95));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 80px rgba(0,0,0,.6), inset 0 0 40px rgba(255,215,128,.06);
  border-radius: 20px;
}

/* FX layers */
#coinFxCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.coin-stars {
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(2px 2px at 85% 65%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 10% 75%, rgba(255,255,255,.4), transparent 60%);
  opacity: .4; filter: blur(.3px);
  animation: starFloat 16s linear infinite;
  pointer-events: none;
}
@keyframes starFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-60px); }
}

.coin-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(1200px 700px at 50% 10%, transparent 50%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}

/* Header */
.coin-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; position: relative; z-index: 3;
}
.coin-glow {
  display: grid; line-height: 1; margin: 0;
  text-align: left; letter-spacing: .06em;
}
.coin-title-top {
  font: 900 18px/1 Nunito, system-ui, sans-serif;
  color: #ffd27d; opacity: .95;
  text-shadow: 0 0 10px rgba(255,215,128,.35), 0 0 24px rgba(255,215,128,.18);
}
.coin-title-bottom {
  font: 900 clamp(28px, 5vw, 56px)/0.95 Fredoka, Nunito, system-ui, sans-serif;
  background: linear-gradient(90deg,#fff7e0,#ffd27d,#ffdf9e,#fff7e0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 10px rgba(255,215,128,.25);
  animation: shineTitle 2.8s ease-in-out infinite;
}
@keyframes shineTitle {
  0%,100% { filter: drop-shadow(0 0 0 rgba(255,215,128,.25)); }
  50%     { filter: drop-shadow(0 0 18px rgba(255,215,128,.55)); }
}

.coin-close {
  position: relative;
}

/* Hero */
.coin-hero {
  position: relative; z-index: 2; margin: 8px 0 12px;
  min-height: 180px;
}
.coin-ring {
  position: absolute; inset: -20px -30px;
  background:
    radial-gradient(closest-side, rgba(255,215,128,.35), rgba(255,215,128,0) 65%),
    radial-gradient(closest-side, rgba(255,255,255,.14), rgba(255,255,255,0) 70%);
  filter: blur(12px);
  animation: pulseRing 2.6s ease-in-out infinite;
}
@keyframes pulseRing {
  0%,100% { opacity: .45; transform: scale(1); }
  50%     { opacity: .85; transform: scale(1.03); }
}

.coin-stack {
  position: relative; display: inline-block;
  margin: 24px auto 8px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 120px; perspective: 800px;
}
.coin-stack i {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 120px; height: 120px; border-radius: 50%;
  background:
    radial-gradient(60% 60% at 35% 30%, #fff6d6, #ffd27d 55%, #caa34d 85%),
    conic-gradient(from 180deg, #eac363, #ffebad, #d2af53, #eac363);
  box-shadow: inset 0 0 8px rgba(255,255,255,.5), 0 10px 30px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.15);
  animation: coinHover 3.2s ease-in-out infinite;
  opacity: .94;
}
.coin-stack i:nth-child(1){ transform: translate(-50%, 0) scale(1) rotateX(12deg); z-index:5; }
.coin-stack i:nth-child(2){ transform: translate(-50%, 8px) scale(.96) rotateX(12deg); filter: brightness(.98); z-index:4;}
.coin-stack i:nth-child(3){ transform: translate(-50%, 16px) scale(.92) rotateX(12deg); filter: brightness(.92); z-index:3;}
.coin-stack i:nth-child(4){ transform: translate(-50%, 24px) scale(.88) rotateX(12deg); filter: brightness(.86); z-index:2;}
.coin-stack i:nth-child(5){ transform: translate(-50%, 32px) scale(.84) rotateX(12deg); filter: brightness(.8);  z-index:1;}
@keyframes coinHover {
  0%,100% { transform: translate(-50%, 0) scale(1) rotateX(12deg); }
  50%     { transform: translate(-50%, -6px) scale(1.02) rotateX(12deg); }
}

.coin-shine {
  position: absolute; top: 8px; left: 50%; width: 160px; height: 160px;
  transform: translateX(-50%) rotate(0);
  background: conic-gradient(from 0deg, rgba(255,255,255,.0), rgba(255,255,255,.55), rgba(255,255,255,0));
  mix-blend-mode: screen; border-radius: 50%;
  filter: blur(10px) saturate(140%);
  opacity: .35; pointer-events: none;
  animation: spinShine 5.5s linear infinite;
}
@keyframes spinShine {
  to { transform: translateX(-50%) rotate(360deg); }
}

.coin-counter {
  text-align: center; margin-top: 8px;
}
.coin-counter-label {
  font: 700 14px/1 Nunito, system-ui, sans-serif; color: rgba(255,255,255,.8);
  letter-spacing: .04em;
}
.coin-counter-val {
  font: 900 clamp(28px, 6vw, 54px)/1 Fredoka, Nunito, system-ui, sans-serif;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 22px rgba(255,215,128,.35);
}

/* Grid */
.coin-grid {
  display: grid; gap: 16px; grid-template-columns: 1.1fr .9fr;
}
@media (max-width: 900px){
  .coin-grid { grid-template-columns: 1fr; }
}
.coin-box {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px;
  box-shadow: inset 0 0 24px rgba(255,255,255,.05);
}
.coin-box h4 {
  margin: 0 0 10px; font: 900 16px/1 Nunito, system-ui, sans-serif; color: #ffe7a8;
  text-shadow: 0 0 16px rgba(255,215,128,.35);
}
.coin-perks { margin: 0; padding-left: 18px; color: rgba(255,255,255,.9); }
.coin-perks li { margin: 6px 0; }

.coin-actions {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.coin-cta {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.btn.ghost {
  background: transparent;
  border: 1px dashed rgba(255,255,255,.25);
}

/* Footer */
.coin-footer {
  display: flex; justify-content: flex-end; margin-top: 10px;
}

/* Hint */
.coin-hint {
  margin: 8px 0 0;
  color: rgba(255,255,255,.6);
  font-size: 12px;
}
