/* Infiltrado UI — visual refresh based on Stitch export (mobile-first) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#020617;          /* background-dark */
  --deep:#0A0F1E;        /* deep navy */
  --card:#0f172a;        /* card-dark */
  --glass: rgba(15,23,42,.62);
  --border: rgba(37,244,244,.14);
  --border2: rgba(148,163,184,.18);
  --text:#eaf2ff;
  --muted:#9fb6d0;

  --primary:#25F4F4;
  --teal:#2DD4BF;
  --purple:#A855F7;
  --yellow:#FACC15;
  --danger:#ff4d7d;

  --r: 18px;
  --r2: 26px;
  --shadow: 0 18px 55px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 700px at -10% -10%, rgba(37,244,244,.12), transparent 55%),
    radial-gradient(900px 700px at 110% 10%, rgba(168,85,247,.10), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(250,204,21,.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #050b1a 100%);
  overflow-x:hidden;
}

/* subtle sparkle grid */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background-image: radial-gradient(circle at 2px 2px, rgba(37,244,244,.07) 1px, transparent 0);
  background-size: 42px 42px;
  opacity:.35;
}

.container{
  width:min(620px, calc(100% - 28px));
  margin:0 auto;
  padding:18px 0 28px;
}

.top{margin-bottom:14px}
h1{margin:0 0 6px;font-size:26px;letter-spacing:-.4px;font-weight:900}
h2{margin:0 0 8px;font-size:18px;letter-spacing:-.2px;font-weight:850}
.muted{color:var(--muted)}
.small{font-size:13px}
.foot{margin-top:14px}

.brand{
  display:flex; align-items:center; gap:10px;
}
.brand-badge{
  width:44px; height:44px;
  border-radius:14px;
  display:grid; place-items:center;
  background: rgba(37,244,244,.14);
  border:1px solid rgba(37,244,244,.25);
  box-shadow: 0 0 22px rgba(37,244,244,.18);
}
.brand-title{
  display:flex; flex-direction:column; line-height:1.05;
}
.brand-title .name{font-weight:950; letter-spacing:-.6px; font-size:22px}
.brand-title .sub{font-size:12px; color:rgba(159,182,208,.9)}

.header-actions{display:flex; gap:10px}
.iconbtn{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:999px;
  background: rgba(148,163,184,.08);
  border:1px solid rgba(148,163,184,.18);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  color:rgba(234,242,255,.9);
  text-decoration:none;
}
.iconbtn:active{transform:scale(.98)}

/* glass cards */
.card{
  position:relative;
  background: var(--glass);
  border:1px solid var(--border2);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card.glass{
  border-color: rgba(37,244,244,.16);
}

.card.party::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(10px 10px at 10% 25%, rgba(37,244,244,.18), transparent 60%),
    radial-gradient(12px 12px at 30% 15%, rgba(168,85,247,.16), transparent 60%),
    radial-gradient(10px 10px at 75% 20%, rgba(250,204,21,.12), transparent 60%),
    radial-gradient(12px 12px at 85% 35%, rgba(45,212,191,.14), transparent 60%);
  pointer-events:none;
  opacity:1;
}

.alert{
  border:1px solid rgba(255,77,125,.38);
  background: rgba(255,77,125,.10);
  padding:12px 14px;
  border-radius:14px;
  margin-bottom:14px;
}

/* forms */
.form{display:grid; gap:12px}
label{display:grid; gap:7px; font-size:14px; font-weight:650}
input,select{
  width:100%;
  padding: 14px 14px;
  border-radius: 999px;
  border:1px solid rgba(148,163,184,.22);
  background: rgba(2,6,23,.45);
  color: var(--text);
  outline:none;
}
select{appearance:none}

.field{
  position:relative;
}
.field .icon{
  position:absolute;
  left:14px; top:50%;
  transform: translateY(-50%);
  opacity:.75;
}
.field input, .field select{
  padding-left:44px;
}

.hr{
  height:1px;
  background: rgba(148,163,184,.16);
  margin: 10px 0;
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width:520px){
  .grid2{grid-template-columns:1fr}
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 14px 16px;
  border-radius: 999px;
  border:1px solid rgba(148,163,184,.18);
  background: rgba(148,163,184,.08);
  color: var(--text);
  cursor:pointer;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.6px;
  text-transform: uppercase;
  transition: transform .08s ease, filter .15s ease, box-shadow .2s ease;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active{transform:scale(.98)}
.btn.primary{
  background: linear-gradient(180deg, rgba(37,244,244,.95), rgba(37,244,244,.78));
  color: #02121a;
  border-color: rgba(37,244,244,.55);
  box-shadow: 0 0 28px rgba(37,244,244,.22);
}
.btn.secondary{
  background: rgba(148,163,184,.08);
}
.btn.ghost{
  background: transparent;
  border-color: rgba(148,163,184,.22);
}
.btn.danger{
  background: linear-gradient(180deg, rgba(255,77,125,.30), rgba(255,77,125,.12));
  border-color: rgba(255,77,125,.42);
  box-shadow: 0 0 28px rgba(255,77,125,.12);
  color: var(--text);
  text-transform:none;
  letter-spacing:.2px;
}
.btn.purple{
  background: linear-gradient(180deg, rgba(168,85,247,.30), rgba(168,85,247,.12));
  border-color: rgba(168,85,247,.44);
  box-shadow: 0 0 28px rgba(168,85,247,.12);
}

.row{display:flex; align-items:center; justify-content:space-between; gap:10px}
.gap{gap:10px; flex-wrap:wrap}
.link{
  color: var(--muted);
  text-decoration:none;
  border-bottom:1px dashed rgba(159,182,208,.35);
  padding-bottom:2px;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid rgba(148,163,184,.18);
  background: rgba(148,163,184,.08);
  font-weight:850;
  font-size:12px;
  color: rgba(234,242,255,.92);
}
.pill.primary{border-color: rgba(37,244,244,.35); background: rgba(37,244,244,.12); color: var(--primary)}
.pill.warn{border-color: rgba(250,204,21,.30); background: rgba(250,204,21,.10); color: #ffe38f}
.pill.good{border-color: rgba(45,212,191,.30); background: rgba(45,212,191,.10); color: #96fff0}
.pill.bad{border-color: rgba(255,77,125,.35); background: rgba(255,77,125,.10); color: #ffc0d0}

/* avatars + agent list */
.agentList{
  display:grid;
  gap:10px;
}
.agentRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.18);
  background: rgba(148,163,184,.06);
}
.agentLeft{display:flex; align-items:center; gap:10px; min-width:0}
.avatar{
  width:40px; height:40px; border-radius:999px;
  display:grid; place-items:center;
  font-weight:950;
  letter-spacing:.4px;
  color:#02121a;
  background: linear-gradient(180deg, rgba(37,244,244,.95), rgba(37,244,244,.70));
  box-shadow: 0 0 18px rgba(37,244,244,.18);
  flex: 0 0 auto;
}
.avatar.alt{
  color: rgba(37,244,244,.92);
  background: rgba(148,163,184,.10);
  border:1px solid rgba(37,244,244,.18);
  box-shadow:none;
}
.agentName{
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.agentMeta{
  font-size:12px;
  color: rgba(159,182,208,.9);
}

/* stage */
.stage{
  min-height: 410px;
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden;
}
.shield,.reveal{width:100%; text-align:center; padding:10px}
.big{font-size:24px; font-weight:950; margin-bottom:6px; letter-spacing:-.2px}

.swipe{margin:18px auto 10px; width:100%; max-width:380px}
.swipeHint{font-size:14px; color:var(--muted); margin-bottom:10px}
.swipeBar{
  height:10px; width:0;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(37,244,244,0), rgba(37,244,244,.90));
  box-shadow: 0 0 26px rgba(37,244,244,.20);
  transition: width .05s linear;
}

.hidden{display:none}
.reveal .label{font-size:14px; margin-bottom:10px}
.secret{
  font-size:36px;
  font-weight:1000;
  letter-spacing:.6px;
  padding:18px 14px;
  border-radius: var(--r);
  border:1px solid rgba(148,163,184,.18);
  background: rgba(148,163,184,.08);
  margin: 0 auto 14px;
  word-break: break-word;
}
.reveal.impostor .secret{
  border-color: rgba(255,77,125,.45);
  background: rgba(255,77,125,.12);
}

.countWrap{
  display:grid;
  place-items:center;
  text-align:center;
  gap:10px;
  padding:20px 12px;
}
.countNum{
  width:120px; height:120px;
  border-radius:999px;
  display:grid; place-items:center;
  font-size:48px;
  font-weight:1000;
  border:1px solid rgba(148,163,184,.18);
  background: rgba(148,163,184,.06);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.pop{animation: pop .35s ease both}
@keyframes pop{from{transform:scale(.75); opacity:.2}to{transform:scale(1); opacity:1}}

@media (max-width:380px){
  h1{font-size:24px}
  .secret{font-size:30px}
  .countNum{width:105px;height:105px;font-size:44px}
}


/* fixed pass bar spacing */
#passBar{padding-bottom: env(safe-area-inset-bottom, 0px);}



/* ===== TIMER FULL (centralizado e gigante) ===== */
.timerFull{
  text-align:center;
  padding:18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(148,163,184,.06);
}
.timerFull .title{
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(234,242,255,.78);
  font-size: 16px;
}
.timerFull .time{
  margin-top: 10px;
  font-weight: 1000;
  letter-spacing: 2px;
  font-size: 78px;
  line-height: 1;
  color: rgba(234,242,255,.98);
  text-shadow: 0 0 22px rgba(255,255,255,.10);
}
@media (max-width:520px){ .timerFull .time{ font-size: 64px; } }
@media (max-width:380px){ .timerFull .time{ font-size: 56px; } }

/* ===== Curtain drag area: better touch feel ===== */
#curtainWrap{
  touch-action: pan-y;
  -webkit-user-select:none;
  user-select:none;
}
