/* style.css - Birthday Galaxy styling */

/* --- variables --- */
:root{
  --bg:#040412;
  --card:#0e0e1d;
  --muted:#9aa0c0;
  --accent:#8b5cf6;
  --accent2:#22d3ee;
  --accent3:#f472b6;
  --glass: rgba(255,255,255,0.04);
  --glass-strong: rgba(255,255,255,0.06);
  --text:#f4f7ff;
  --shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* --- reset --- */
*{box-sizing:border-box}
html,body{height:100%; margin:0; font-family: Inter, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; background:var(--bg); color:var(--text); overflow:hidden}
button{font:inherit}

/* The three.js canvas will fill the screen behind the #ui */
#ui{position:fixed; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; z-index:8; pointer-events:none}

/* Top bar */
.topbar{width:min(1100px,94vw); display:flex; align-items:center; justify-content:space-between; gap:12px; pointer-events:auto; margin-top:18px}
.brand{display:flex; gap:12px; align-items:center}
.logo{width:62px; height:62px; border-radius:14px; background:linear-gradient(135deg,var(--accent2),var(--accent3)); display:grid; place-items:center; font-size:28px; box-shadow:0 8px 26px rgba(0,0,0,0.5)}
.brand h1{margin:0; font-size:clamp(18px,2.2vw,28px)}
.muted{color:var(--muted); margin:6px 0 0; font-size:14px}
.dev{display:flex; gap:8px; align-items:center}
.devBadge{background:var(--glass); padding:8px 10px; border-radius:999px; border:1px solid rgba(255,255,255,0.05)}
.insta{background:var(--glass); padding:8px 10px; border-radius:999px; border:1px solid rgba(255,255,255,0.05); color:var(--text); text-decoration:none}

/* Card */
.card{width:min(1100px,94vw); margin:18px auto; display:flex; gap:18px; background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border-radius:18px; padding:18px; box-shadow:var(--shadow); pointer-events:auto}
.left{flex:1; min-width:260px}
.right{width:360px; display:flex; align-items:center; justify-content:center}

/* Quote text */
.big{font-family: "Playfair Display", Georgia, serif; font-weight:700; font-size:clamp(20px,3.6vw,40px); line-height:1.02}
#quoteBy{margin-top:8px}

/* Controls */
.controls{display:flex; gap:10px; align-items:center; margin-top:14px; flex-wrap:wrap}
.btn{background:var(--glass); border:1px solid rgba(255,255,255,0.06); color:var(--text); padding:9px 12px; border-radius:12px; cursor:pointer; box-shadow:0 8px 20px rgba(0,0,0,0.35); font-weight:700; pointer-events:auto; transition:transform .12s, box-shadow .12s}
.btn.primary{background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#03111a}
.btn.ghost{background:transparent; border:1px solid rgba(255,255,255,0.06)}

.lang{margin-left:auto; display:flex; gap:8px}

/* Panel & list */
.panel{margin-top:12px; background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); padding:12px; border-radius:12px; border:1px solid rgba(255,255,255,0.03)}
.list{display:grid; gap:8px}
.item{display:flex; gap:12px; align-items:flex-start; font-size:15px}

/* Stage & cake */
.stage{width:100%; height:320px; display:grid; place-items:center; position:relative; overflow:visible}
.cakeWrap{display:flex; flex-direction:column; align-items:center; pointer-events:auto; transition:transform .26s cubic-bezier(.2,.9,.2,1)}
.cakeWrap.pulse{animation:cakePulse 1.4s ease-out}
@keyframes cakePulse{0%{transform:scale(1)}50%{transform:scale(1.06)}100%{transform:scale(1)}}
.makeWish{margin-top:8px; font-weight:700}

/* floaters */
.floaters{position:absolute; inset:0; pointer-events:none; overflow:visible}

/* overlay */
.overlay{position:fixed; inset:0; display:grid; place-items:center; z-index:12; pointer-events:none}
.overlay.hidden{display:none}
.greetBox{background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); padding:24px 28px; border-radius:14px; box-shadow:0 30px 120px rgba(0,0,0,0.6); text-align:center}
.confettiCanvas{position:absolute; inset:0}

/* footer */
.footer{position:fixed; bottom:14px; width:100%; text-align:center; z-index:9; pointer-events:none}

/* toast */
.toast{position:fixed; left:50%; transform:translateX(-50%); bottom:20px; background:#0b1020cc; padding:8px 14px; border-radius:999px; box-shadow:0 10px 30px rgba(0,0,0,0.6); pointer-events:none; z-index:13}

/* keyboard hint */
kbd{background:#0a0a12; padding:2px 6px; border-radius:6px; border:1px solid rgba(255,255,255,0.06); font-weight:700}

/* responsive */
@media (max-width:900px){
  .card{flex-direction:column; align-items:stretch}
  .right{width:100%}
}
