:root{
  --bg0: #0b0f16;
  --ink: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.52);

  --card: rgba(255,255,255,0.10);
  --card2: rgba(255,255,255,0.13);

  --accent: #7c5cff;
  --accent2: #22c55e;
  --danger: #ef4444;

  --radius: 22px;
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
}

*{ box-sizing: border-box; }

[hidden]{ display: none !important; }

html, body { height: 100%; }
body{
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;

  background:
    radial-gradient(1100px 800px at 18% 12%, rgba(124,92,255,0.26), transparent 60%),
    radial-gradient(900px 680px at 80% 25%, rgba(34,197,94,0.16), transparent 55%),
    radial-gradient(900px 900px at 60% 105%, rgba(239,68,68,0.09), transparent 45%),

    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 32px),

    url("data:image/svg+xml,%3Csvg%20xmlns='http:%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%3E%0A%3Cg%20fill='none'%20stroke='rgba(255,255,255,0.12)'%20stroke-width='2'%3E%0A%20%20%3Cpath%20d='M36%20102c8-16%2030-16%2038%200'%2F%3E%0A%20%20%3Cpath%20d='M40%20102v26M70%20102v26'%2F%3E%0A%20%20%3Cpath%20d='M42%20116h26'%2F%3E%0A%20%20%3Cpath%20d='M98%2078h44c10%200%2018%208%2018%2018v40'%2F%3E%0A%20%20%3Cpath%20d='M98%2078v22'%2F%3E%0A%20%20%3Cpath%20d='M98%20100h14'%2F%3E%0A%20%20%3Cpath%20d='M112%20100v36'%2F%3E%0A%20%20%3Cpath%20d='M98%20136h62'%2F%3E%0A%20%20%3Cpath%20d='M62%2040c0%2010%208%2018%2018%2018s18-8%2018-18'%2F%3E%0A%20%20%3Cpath%20d='M62%2040h36'%2F%3E%0A%20%20%3Cpath%20d='M80%2022v18'%2F%3E%0A%20%20%3Cpath%20d='M70%2030h20'%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E");

  background-size:
    auto, auto, auto,
    auto, auto,
    180px 180px;

  background-color: var(--bg0);
}

.app{
  min-height: 100%;
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  max-width: 540px;
  margin: 0 auto;
}

.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.dot{
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(124,92,255,0.14);
}

.brand__text{
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.78);
}

.status{ width: 46%; text-align: right; }
.status__text{
  display: block;
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 6px;
}
.progress{
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}
.progress__bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(34,197,94,0.95));
  border-radius: 999px;
  transition: width 260ms ease;
}

.card{
  align-self: center;
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.slide{
  display: grid;
  gap: 12px;
  position: relative;
}

.slide__title{
  margin: 2px 0 0;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.slide__body{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.actions{
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.btn{
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 14px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.96);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  transition: transform 120ms ease, background 120ms ease;
  cursor: pointer;
  touch-action: manipulation;
}
.btn:active{ transform: translateY(1px) scale(0.995); }

.btn--primary{
  background: linear-gradient(180deg, rgba(124,92,255,0.98), rgba(124,92,255,0.72));
}
.btn--secondary{ background: rgba(255,255,255,0.11); }
.btn--danger{
  background: linear-gradient(180deg, rgba(239,68,68,0.92), rgba(239,68,68,0.62));
}

.navRow{ display:flex; justify-content:flex-start; margin-top:6px; }

 .ghost{
  width: auto;
  border: 1px dashed rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.10);
  color: rgba(255,255,255,0.58);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 650;
  cursor: pointer;
}
.ghost:disabled{ opacity: 0.45; cursor: not-allowed; }

.footer{
  position: relative;
  text-align: center;
  padding-bottom: 4px;
  min-height: 20px;
}
.footer__hint{
  font-size: 12px;
  color: rgba(255,255,255,0.0);
}

/* Hidden hotspot: bottom-right, visually invisible but clickable */
.secretHotspot{
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 26px;
  height: 26px;
  border: 0;
  background: rgba(255,255,255,0.01);
  opacity: 0.01;
  padding: 0;
}

.fade-in{ animation: fadeIn 220ms ease both; }
@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* Input slide */
.inputWrap{ display: grid; gap: 10px; margin-top: 4px; }
.inputLabel{ font-size: 12px; color: rgba(255,255,255,0.62); }
.textInput{
  width: 100%;
  resize: vertical;
  min-height: 110px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.20);
  color: rgba(255,255,255,0.92);
  padding: 12px 12px;
  font-size: 15px;
  outline: none;
}
.textInput:focus{
  border-color: rgba(124,92,255,0.55);
  box-shadow: 0 0 0 6px rgba(124,92,255,0.14);
}
.inputActions{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Modal */
.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.58);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 50;
}
.modal{
  width: min(520px, 100%);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20,24,34,0.96), rgba(18,22,30,0.96));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  padding: 16px;
}
.modal__title{ margin: 0 0 8px; font-size: 18px; }
.modal__body{ margin: 0 0 12px; color: rgba(255,255,255,0.75); line-height: 1.4; white-space: pre-wrap; }
.modal__actions{ display: grid; gap: 10px; }

/* “End screen” overlay */
.graffiti{ position: relative; }
.graffiti::after{
  content: "END";
  position: absolute;
  inset: -10px;
  pointer-events: none;
  opacity: 0.22;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 64px;
  transform: rotate(-8deg);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.45);
  text-shadow: 0 0 18px rgba(124,92,255,0.35);
  mix-blend-mode: screen;
}

/* Confetti canvas */
.confetti{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 40;
  pointer-events: none;
}

@media (min-width: 900px){
  .app{ max-width: 590px; }
  .card{ padding: 22px; }
}



/* Clickable brand dot (keeps same look) */
.dotBtn{
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dotBtn:active{
  transform: translateY(1px);
  opacity: 0.9;
}
