:root{
  --bg0:#05060b;
  --bg1:#070a12;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(0,0,0,.35);
  --border: rgba(255,255,255,.14);
  --border2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --hard: rgba(255,255,255,.78);
  --a: #7c3aed;
  --b: #10b981;
  --c: #06b6d4;
  --danger: #ef4444;
  --shadow: 0 30px 100px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);

  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(0,130,255,.25), transparent 60%),
    radial-gradient(1000px 600px at 90% 10%, rgba(0,60,180,.25), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(0,30,90,.35), transparent 70%),
    linear-gradient(180deg, #020611 0%, #040b1c 40%, #030916 100%);

  overflow-x:hidden;
}

/* film grain + scanlines */
.noise{
 /* Star field (animated drift) */
body::before{
  content:"";
  position:fixed;
  inset:-30%;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,.70), transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,.70), transparent),
    radial-gradient(2px 2px at 10% 75%, rgba(255,255,255,.80), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 35% 90%, rgba(255,255,255,.55), transparent),
    radial-gradient(2px 2px at 92% 55%, rgba(255,255,255,.75), transparent);
  background-repeat: repeat;
  background-size: 650px 650px;
  opacity:.38;
  pointer-events:none;
  z-index:0;
  animation: starDrift 90s linear infinite;
  will-change: transform;
}

@keyframes starDrift{
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(120px, 80px, 0); }
}

}
.scanlines{
  position:fixed; inset:0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.04),
    rgba(255,255,255,.04) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity:.08;
  pointer-events:none;
  z-index:2;
}
/* Gravitational lens ripple overlay */
.lensRipple{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:4;
  opacity:0;
}

.lensRipple::before{
  content:"";
  position:absolute;
  left: var(--rx, 50%);
  top:  var(--ry, 50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  transform: translate(-50%,-50%) scale(1);
  background:
    radial-gradient(circle,
      rgba(150,220,255,.25) 0%,
      rgba(60,160,255,.18) 18%,
      rgba(0,0,0,0) 55%);
  filter: blur(0px);
  box-shadow:
    0 0 18px rgba(0,140,255,.25),
    0 0 40px rgba(0,90,255,.18);
}

.lensRipple.rippling{
  opacity:1;
  animation: lensFade .55s ease-out forwards;
}

.lensRipple.rippling::before{
  animation: lensExpand .55s ease-out forwards;
}

@keyframes lensExpand{
  0%   { transform: translate(-50%,-50%) scale(0.7); filter: blur(0px); opacity:1; }
  60%  { transform: translate(-50%,-50%) scale(24);  filter: blur(1.4px); opacity:.9; }
  100% { transform: translate(-50%,-50%) scale(34);  filter: blur(2.2px); opacity:0; }
}

@keyframes lensFade{
  0% { opacity:1; }
  100% { opacity:0; }
}

.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.muted{ color:var(--muted); }

.topbar{
  position:sticky; top:0;
  z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid var(--border2);
  backdrop-filter: blur(14px);
}
.brand{display:flex; align-items:center; gap:10px}
.logoMark{
  width:14px; height:14px; border-radius:4px;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 0 18px rgba(124,58,237,.45);
}
.brandName{font-weight:900; letter-spacing:1.1px; font-size:12px}
.brandSub{color:var(--muted); font-size:11px; margin-top:2px}

.nav{display:flex; gap:16px}
.nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:12px;
  border-bottom:1px solid transparent;
  padding:6px 2px;
}
.nav a:hover{color:var(--text); border-bottom-color: rgba(255,255,255,.18)}

.status{
  display:flex; align-items:center; gap:8px;
  font-size:11px;
  color:var(--muted);
  letter-spacing:.6px;
}
.status .dot{
  width:8px; height:8px; border-radius:999px;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(239,68,68,.50);
  animation: pulse 1.2s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(239,68,68,.55); }
  70%{ box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100%{ box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.layout{
  position:relative;
  z-index:3;
  max-width:1100px;
  margin:0 auto;
  padding:22px 18px 80px;
}

.hero{
  position:relative;
  border:1px solid var(--border2);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.35));
  border-radius:22px;
  box-shadow: var(--shadow);
  overflow:hidden;
  padding:22px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  margin-top:14px;
}
.heroGlow{
  position:absolute; inset:-1px;
  background:
    radial-gradient(closest-side at 20% 20%, rgba(124,58,237,.22), transparent 62%),
    radial-gradient(closest-side at 80% 30%, rgba(16,185,129,.16), transparent 62%);
  filter: blur(16px);
  opacity:.9;
  pointer-events:none;
}
.heroGrid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity:.08;
  pointer-events:none;
}

.heroContent{position:relative}
.heroContent h1{
  margin:0 0 8px;
  font-size:40px;
  letter-spacing:.2px;
  text-transform: none;
}
.subtitle{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.5;
  max-width:52ch;
}

.kpis{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.kpi{
  border:1px solid var(--border2);
  background: rgba(0,0,0,.30);
  border-radius:16px;
  padding:12px;
}
.k{font-size:11px; color:var(--muted); margin-bottom:8px; letter-spacing:.4px}
.v{font-size:16px; font-weight:900}

.heroActions{display:flex; gap:10px; margin-top:14px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  border:1px solid var(--border2);
  color:var(--text);
}
.btn.primary{
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(16,185,129,.75));
  border-color: rgba(255,255,255,.20);
}
.btn.ghost{
  background: rgba(0,0,0,.25);
}
.btn:hover{ transform: translateY(-1px); }

.heroArt{position:relative; display:flex; align-items:center; justify-content:center}
.orb{
  width:260px; height:260px;
  border-radius:999px;
  position:relative;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.55));
}
.orbInner{
  position:absolute; inset:0;
  border-radius:999px;
  background:
  radial-gradient(closest-side at 35% 35%, rgba(255,255,255,.35), transparent 62%),
  radial-gradient(closest-side at 70% 65%, rgba(0,140,255,.22), transparent 64%),
  radial-gradient(closest-side, rgba(0,60,180,.35), rgba(0,0,0,.75));

  border:1px solid rgba(255,255,255,.14);
}
.orbRing, .orbRing2{
  position:absolute; inset:-18px;
  border-radius:999px;
  border:1px dashed rgba(255,255,255,.18);
  opacity:.6;
  animation: spin 10s linear infinite;
}
.orbRing2{
  inset:-32px;
  border-style: solid;
  border-color: rgba(255,255,255,.10);
  opacity:.45;
  animation-duration: 16s;
}
@keyframes spin{ to { transform: rotate(360deg); } }

.hud{
  position:absolute;
  bottom:-8px;
  right:-8px;
  width:260px;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--border2);
  background: rgba(0,0,0,.40);
  backdrop-filter: blur(10px);
}
.hudTitle{
  font-size:10px;
  letter-spacing:1px;
  color:rgba(255,255,255,.70);
  margin-bottom:10px;
}
.hudRow{
  display:flex; justify-content:space-between;
  font-size:12px;
  color:rgba(255,255,255,.72);
  padding:6px 0;
  border-top:1px solid rgba(255,255,255,.07);
}
.hudRow:first-of-type{border-top:none}

.card{
  margin-top:22px;
  border-radius:22px;
  padding:20px;

  /* stronger outer border */
  border:1px solid rgba(0,150,255,.35);

  /* glass background */
  background:
    linear-gradient(180deg,
      rgba(255,255,255,.08),
      rgba(0,0,0,.35)
    );

  backdrop-filter: blur(12px);

  /* outer glow + depth */
  box-shadow:
    0 0 0 1px rgba(0,120,255,.15),
    0 18px 60px rgba(0,0,0,.6),
    0 0 30px rgba(0,120,255,.08);

  position:relative;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

/* subtle top highlight edge */
.card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(120,220,255,.8),
    transparent
  );
  opacity:.7;
}

/* hover lift */
.card:hover{
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(0,180,255,.35),
    0 25px 80px rgba(0,0,0,.7),
    0 0 50px rgba(0,160,255,.12);
}

.cardHead{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.cardHead h2{margin:0; font-size:18px}
.cardHead p{margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.45}
.pill{
  border:1px solid var(--border2);
  background: rgba(0,0,0,.28);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  color:rgba(255,255,255,.75);
  height:fit-content;
}

.bdayGrid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:12px;
}

.bdayBlock{
  border-radius:16px;
  padding:14px;

  border:1px solid rgba(0,140,255,.25);

  background:
    linear-gradient(180deg,
      rgba(255,255,255,.06),
      rgba(0,0,0,.35)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 30px rgba(0,0,0,.5);
}

.bdayRow{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
}

#bdayInput{
  flex: 1;
  min-width: 220px;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.9);
}


@media (max-width: 980px){
  .bdayGrid{ grid-template-columns: 1fr; }
}

.funGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.funBlock{
  border-radius:16px;
  padding:14px;

  border:1px solid rgba(0,140,255,.25);

  background:
    linear-gradient(180deg,
      rgba(255,255,255,.06),
      rgba(0,0,0,.35)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 30px rgba(0,0,0,.5);
}

.funRow{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
}

#eventSelect{
  flex:1;
  min-width: 220px;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.9);
}

.miniStats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.mini{
  border-radius:16px;
  padding:14px;

  border:1px solid rgba(0,140,255,.25);

  background:
    linear-gradient(180deg,
      rgba(255,255,255,.06),
      rgba(0,0,0,.35)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 30px rgba(0,0,0,.5);
}
.mini .k{font-size:11px; color:rgba(255,255,255,.62); margin-bottom:6px}
.mini .v{font-size:14px; font-weight:900}

.playRow{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.flyStage{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  border-radius:16px;
  padding:12px;
  position:relative;
  overflow:hidden;
}

/* fun “streaks” background */
.flyStage::before{
  content:"";
  position:absolute; inset:-40px;
  background:
    repeating-linear-gradient(120deg,
      rgba(120,220,255,.10) 0px,
      rgba(120,220,255,.10) 2px,
      transparent 2px,
      transparent 10px);
  opacity:.25;
  transform: translateX(-40px);
  animation: streak 6s linear infinite;
  pointer-events:none;
}
@keyframes streak{
  0%{ transform: translateX(-40px); }
  100%{ transform: translateX(40px); }
}

.yearCard{
  position:relative;
  z-index:1;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  border-radius:16px;
  padding:12px;
}
.yearLabel{
  font-size:10px;
  letter-spacing:1px;
  color:rgba(255,255,255,.62);
  margin-bottom:8px;
}
.yearBig{
  font-size:42px;
  font-weight:950;
  line-height:1;
}
.yearSub{
  margin-top:8px;
  color:rgba(255,255,255,.65);
  font-size:12px;
}

.meter{
  margin-top:12px;
  height:12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.30);
  overflow:hidden;
  position:relative;
  z-index:1;
}
.meterFill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(0,90,255,.95), rgba(0,180,255,.75), rgba(120,220,255,.85));
  box-shadow: 0 0 20px rgba(0,120,255,.35);
  transition: width .1s linear;
}
.caption{
  position:relative;
  z-index:1;
  margin-top:10px;
  font-size:13px;
  color:rgba(255,255,255,.75);
}

@media (max-width: 980px){
  .funGrid{ grid-template-columns:1fr; }
  .miniStats{ grid-template-columns:1fr; }
}

.task-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
.task{
  text-align:left;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:12px;
  cursor:pointer;
  background: rgba(0,0,0,.30);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.task:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.20);
}
.task .t{font-weight:900; margin-bottom:6px}
.task .d{font-size:12px; color:var(--muted); line-height:1.35}

.custom{margin-top:14px}
.customTop{display:flex; justify-content:space-between; align-items:center; margin-bottom:8px}
.label{font-size:12px; color:var(--muted)}
.chip{
  border:1px solid var(--border2);
  background: rgba(0,0,0,.28);
  padding:8px 10px;
  border-radius:999px;
  min-width:150px;
  text-align:center;
  font-weight:900;
}
input[type="range"]{width:100%}

.result{
  margin-top:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.30);
}
.big{font-size:22px; font-weight:950}
.small{font-size:12px; color:rgba(255,255,255,.65); margin-top:6px}

.simRow{display:flex; gap:12px; align-items:center}
.timeline{margin-top:12px}
.bar{
  height:12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.30);
  overflow:hidden;
}
.fill{
  height:100%;
  width:0%;
  background: linear-gradient(
  90deg,
  rgba(0,90,255,.95),
  rgba(0,180,255,.75),
  rgba(120,220,255,.85)
);
box-shadow: 0 0 20px rgba(0,120,255,.45);

  box-shadow: 0 0 18px rgba(124,58,237,.35);
  transition: width .18s ease;
}
.timeline-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}

.aboutGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
.aboutBlock{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.30);
  border-radius:16px;
  padding:12px;
}
.aboutK{font-size:12px; color:var(--muted); margin-bottom:8px}
.aboutV{font-size:13px; color:rgba(255,255,255,.78); line-height:1.45}

.footer{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color:rgba(255,255,255,.55);
  font-size:12px;
  padding:0 4px;
}

/* responsive */
@media (max-width: 980px){
  .hero{grid-template-columns: 1fr; }
  .heroArt{justify-content:flex-start}
  .kpis{grid-template-columns:1fr}
  .task-grid{grid-template-columns:1fr}
  .aboutGrid{grid-template-columns:1fr}
  .nav{display:none}
}
#eventSelect{
  flex:1;
  min-width: 220px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.85);
  color: rgba(255,255,255,.92);
  font-weight:600;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  cursor:pointer;
}

/* Dropdown options styling */
#eventSelect option{
  background:#050a18;
  color:white;
}

/* subtle glow on focus */
#eventSelect:focus{
  outline:none;
  border-color: rgba(0,140,255,.55);
  box-shadow: 0 0 12px rgba(0,120,255,.35);
}
.soundBtn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.85);
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
  font-size:12px;
}

.soundBtn:hover{ background: rgba(255,255,255,.06); }
.soundBtn.on{
  border-color: rgba(0,140,255,.45);
  box-shadow: 0 0 12px rgba(0,120,255,.25);
}
.feedbackWrap{
  border-radius:16px;
  padding:14px;

  border:1px solid rgba(0,140,255,.25);

  background:
    linear-gradient(180deg,
      rgba(255,255,255,.06),
      rgba(0,0,0,.35)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 30px rgba(0,0,0,.5);
}

#fbText{
  width:100%;
  resize: vertical;
  min-height: 110px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.92);
  font-size:14px;
}

#fbName{
  flex:1;
  min-width: 160px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.92);
}

.feedbackRow{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:10px;
}
