/* Minimal, high-contrast mobile-first UI */
:root{
  --bg:#070a12;
  --panel:#0b0f1a;
  --panel2:#0f1527;
  --text:#e8ecff;
  --muted:#a9b2d6;
  --line:rgba(255,255,255,.08);
  --accent:#ffd44a;
  --good:#34d399;
  --bad:#fb7185;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 0%, rgba(255,212,74,.10), transparent 60%),
              radial-gradient(900px 700px at 90% 10%, rgba(52,211,153,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

.top{
  position:sticky; top:0; z-index:10;
  padding: 14px 14px calc(14px + env(safe-area-inset-top));
  background: rgba(7,10,18,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}

.brand{display:flex; align-items:center; gap:10px;}
.logo{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  font-weight:800; letter-spacing:.5px;
  background: linear-gradient(135deg, rgba(255,212,74,.95), rgba(255,212,74,.45));
  color:#151200;
  box-shadow: var(--shadow);
}
.title{font-weight:800; font-size:14px}
.subtitle{font-size:12px; color:var(--muted)}

.wrap{padding: 14px; padding-bottom: 40px; max-width: 920px; margin:0 auto; display:flex; flex-direction:column; gap:12px;}
.card{
  background: linear-gradient(180deg, rgba(15,21,39,.92), rgba(11,15,26,.92));
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.controls{overflow:hidden}
.row{display:flex; gap:10px; align-items:center; justify-content:space-between; margin-top:10px}
.row:first-child{margin-top:0}
.grid2{display:grid; grid-template-columns: 1fr; gap:12px; width:100%}
@media(min-width:720px){ .grid2{grid-template-columns: 1fr 1fr;} }

.fieldlbl{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}
.field{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(7,10,18,.6);
  color:var(--text);
  outline:none;
}
.small{font-size:12px; color:var(--muted); padding: 12px 12px; border:1px dashed var(--line); border-radius: 12px; background: rgba(7,10,18,.35)}

.toggle{display:flex; align-items:center; gap:10px; user-select:none; cursor:pointer}
.toggle input{display:none}
.pill{
  width:46px; height:28px; border-radius:999px; position:relative;
  background: rgba(255,255,255,.14);
  border:1px solid var(--line);
}
.pill::after{
  content:""; width:22px; height:22px; border-radius:999px;
  position:absolute; top:50%; left:3px; transform: translateY(-50%);
  background: rgba(255,255,255,.82);
  transition: all .2s ease;
}
.toggle input:checked + .pill{ background: rgba(52,211,153,.20); }
.toggle input:checked + .pill::after{ left:21px; background: var(--good); }
.lbl{font-size:13px; color:var(--text)}

.status{display:flex; gap:12px; align-items:center; width:100%}
.badge{
  min-width:86px;
  display:grid; place-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight:800;
  letter-spacing:.4px;
  border: 1px solid var(--line);
  background: rgba(251,113,133,.12);
  color: var(--bad);
}
.h{font-weight:800}
.p{font-size:12px; color:var(--muted); margin-top:2px}

.countdown{
  width:100%;
  border-radius: 16px;
  border:1px solid var(--line);
  background: radial-gradient(700px 240px at 30% 0%, rgba(255,212,74,.18), transparent 65%),
              rgba(7,10,18,.35);
  padding: 14px;
}
.countLabel{font-size:12px; color:var(--muted)}
.countValue{
  font-size: 30px; font-weight: 900; letter-spacing: .8px; margin-top:6px;
}
.countSub{font-size:12px; color:var(--muted); margin-top:6px}

.cardHead{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.cardTitle{font-weight:900}
.cardSub{font-size:12px; color:var(--muted); margin-top:2px}

.btn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,212,74,.45);
  background: rgba(255,212,74,.12);
  color: var(--text);
  font-weight: 800;
  cursor:pointer;
}
.btn.ghost{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.toast{
  margin-top:10px;
  border-radius: 14px;
  border:1px solid rgba(255,212,74,.35);
  background: rgba(255,212,74,.12);
  padding: 12px;
}
.toastTitle{font-weight:900}
.toastBody{font-size:12px; color:var(--muted); margin-top:3px}

.nudgeList{margin-top:10px; display:flex; flex-direction:column; gap:8px}
.nudgeItem{
  display:flex; gap:10px; align-items:flex-start; justify-content:space-between;
  padding: 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(7,10,18,.35);
}
.nudgeTime{font-size:12px; color:var(--muted)}
.nudgeText{font-size:13px; font-weight:700}
.nudgeDesc{font-size:12px; color:var(--muted); margin-top:3px}

.merch .grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}
@media(min-width:720px){ .merch .grid{grid-template-columns: repeat(3, 1fr);} }

.item{
  border-radius: 16px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(7,10,18,.55), rgba(15,21,39,.65));
  overflow:hidden;
  position:relative;
}
.item img{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: rgba(0,0,0,.12);
  display:block;
}
.itemBody{padding:10px}
.itemName{font-weight:900; font-size:13px}
.itemPrice{font-size:12px; color:var(--muted); margin-top:2px}
.itemBtn{
  margin-top:10px; width:100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 900;
}
.itemBtn:disabled{
  opacity:.45; cursor:not-allowed;
}
.glow{
  position:absolute; inset:-40px -40px auto auto;
  width:140px; height:140px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,212,74,.7), transparent 65%);
  filter: blur(10px);
  opacity:0;
  transition: opacity .2s ease;
}
.item.moment .glow{opacity:1}
.item.moment::after{
  content:"MOMENT DROP";
  position:absolute; top:10px; left:10px;
  font-size:11px; font-weight:900;
  padding: 6px 8px;
  border-radius:999px;
  background: rgba(255,212,74,.18);
  border:1px solid rgba(255,212,74,.40);
}

.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  font-size:11px; font-weight:900;
  padding: 6px 8px;
  border-radius: 999px;
  border:1px solid rgba(52,211,153,.45);
  background: rgba(52,211,153,.10);
  color: var(--good);
}
.chip.ghost{
  border:1px solid rgba(255,212,74,.35);
  background: rgba(255,212,74,.10);
  color: var(--accent);
}

.footnote{margin-top:12px; font-size:12px; color:var(--muted)}
.footer{
  padding: 16px;
  color: var(--muted);
  text-align:center;
  font-size:12px;
  border-top:1px solid var(--line);
}


/* Moment animation */
@keyframes rcPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,212,74,.0)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 18px rgba(255,212,74,.55)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,212,74,.0)); }
}
@keyframes rcBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.item.moment img{
  animation: rcPulse 1.1s ease-in-out infinite;
}
.item.moment .itemBody{
  animation: rcBounce 1.1s ease-in-out infinite;
}
.field:disabled{
  opacity:.55;
  cursor:not-allowed;
}


.unlockBar{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 20;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(7,10,18,.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.uTitle{font-weight:900; font-size:12px}
.uSub{font-size:11px; color:var(--muted); margin-top:2px}
@media(min-width:900px){
  .unlockBar{display:none;}
}
