﻿@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=Fraunces:wght@600;700&display=swap");

:root{
  --bg1:#0b0b12;
  --bg2:#151526;
  --card:#141426cc;
  --text:#ffffff;
  --muted:#c9c9d6;
  --primary:#ff4d8d;
  --primary2:#ff7aa8;
  --shadow: 0 16px 40px rgba(0,0,0,.45);
  --radius: 20px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "DM Sans", "Segoe UI", Tahoma, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, #301037 0%, transparent 55%),
              radial-gradient(900px 600px at 80% 30%, #2c1147 0%, transparent 60%),
              linear-gradient(160deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

h1,h2,h3,.brand{
  font-family: "Fraunces", "DM Sans", serif;
  letter-spacing: .2px;
}

.app{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  position:relative;
  z-index:1;
}

.topbar{
  position:fixed;
  top:0; left:0; right:0;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  backdrop-filter: blur(10px);
  background: rgba(10,10,20,.35);
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index:50;
}

.brand{
  font-weight:700;
}

.progress{
  width:42vw;
  max-width:260px;
  height:10px;
  background: rgba(255,255,255,.12);
  border-radius:999px;
  overflow:hidden;
}
.progress__bar{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  border-radius:999px;
  transition: width .35s ease;
}

.screen{
  width:100%;
  max-width:520px;
  display:none;
  margin-top:70px;
}
.screen--active{display:block}

.card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:20px;
}

h1{font-size:32px; margin:6px 0 8px}
h2{font-size:26px; margin:6px 0 10px}
h3{font-size:18px; margin:0 0 10px}
p{line-height:1.45}
.muted{color:var(--muted)}
.big{font-size:20px; margin-top:8px}

.hero-emoji{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  font-size:58px;
  line-height:1;
  margin:2px 0 8px;
  animation: heroWiggle 2.8s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.4));
}

@keyframes heroWiggle{
  0%,100%{ transform: translateY(0) rotate(-2deg); }
  40%{ transform: translateY(-4px) rotate(2deg); }
  70%{ transform: translateY(2px) rotate(-1deg); }
}

.btn{
  border:0;
  border-radius:16px;
  padding:14px 16px;
  font-weight:700;
  width:100%;
  min-height:48px;
  cursor:pointer;
  transform: translateY(0);
  transition: transform .15s ease, opacity .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active{transform: translateY(1px)}
.btn-primary{
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  color:#0b0b12;
}
.btn-ghost{
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.10);
}
.btn-small{
  width:auto;
  padding:10px 12px;
  min-height:40px;
  border-radius:14px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:12px;
}

.hint{
  margin:10px 0 12px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.button-area{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  height:auto;
  margin-top:10px;
  border-radius:16px;
  background: rgba(0,0,0,.18);
  border: 1px dashed rgba(255,255,255,.12);
  padding:10px;
  overflow:hidden;
  touch-action: none; /* helps pointermove on mobile */
  align-items:center;
}
#btnYes{
  position:relative;
}
#btnNo{
  position:relative;
}
.button-area{
  background: rgba(0,0,0,.22);
}
.button-area .btn{
  min-height:36px;
  padding:8px 10px;
  font-size:13px;
  border-radius:12px;
}
#btnNo{
  background: #ffffff;
  color:#1b1526;
  border: 2px solid rgba(255,255,255,.7);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  transition: left .22s ease, top .22s ease, transform .15s ease;
}
.button-area .btn{
  min-height:42px;
  padding:10px 12px;
  font-size:14px;
}

.toast{
  margin-top:14px;
  min-height:22px;
  font-weight:700;
  color:#ffd6e6;
}

.section{
  margin-top:18px;
  padding-top:14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.two{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
.mini{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding:12px;
}
.mini-title{font-weight:800; margin:0 0 6px}
.mini-text{margin:0 0 10px; color:var(--muted)}

.embed{
  width:100%;
  min-height:220px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
}

.audio{width:100%}

.video{
  width:100%;
  border-radius:16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}

.dest-card{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  padding:12px;
  border-radius:16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.dest-title{font-weight:900; margin:0 0 8px}
.dest-text{margin:0 0 6px}

.note{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding:12px;
}

.sequence{
  margin-top:12px;
  display:grid;
  gap:12px;
}
.sequence-item{
  display:none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding:12px;
}
.sequence-item--active{display:block}
.sequence-title{
  font-weight:800;
  margin:0 0 8px;
}
.photo-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
}
.photo{
  width:100%;
  height:90px;
  object-fit:cover;
  border-radius:12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}
.sequence-controls{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.sequence-count{
  font-weight:700;
  color:#ffd6e6;
}
.sequence-buttons{
  display:flex;
  gap:10px;
  width:100%;
}
.sequence-buttons .btn{
  width:100%;
}

/* Confetti container */
.confetti{
  position:relative;
  width:100%;
  height:0;
}

/* Floating emojis background */
.floating-emojis{
  position:fixed;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  z-index:0;
  opacity:.6;
}
.emoji{
  position:absolute;
  font-size:22px;
  animation: floatUp linear infinite;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.4));
}
@keyframes floatUp{
  from{ transform: translateY(110vh) rotate(0deg); opacity:0;}
  10%{opacity:1}
  to{ transform: translateY(-20vh) rotate(280deg); opacity:0;}
}

/* Responsive: slightly wider layout on larger screens */
@media (min-width: 700px){
  .grid{grid-template-columns:1fr 1fr}
  .two{grid-template-columns:1fr 1fr}
  .hero-emoji{font-size:72px}
  .sequence-buttons{width:auto}
  .sequence-buttons .btn{width:auto; min-width:120px}
}

/* Mobile tuning */
@media (max-width: 480px){
  .screen{max-width:94vw}
  .card{padding:16px}
  h1{font-size:28px}
  h2{font-size:22px}
  .big{font-size:18px}
  .hero-emoji{font-size:48px; gap:10px}
  .button-area{height:128px}
  .topbar{padding:10px 12px}
  .progress{width:46vw; height:9px}
  .photo{height:80px}
}
