*{ box-sizing:border-box; }

.noto-color-emoji-regular {
  font-family: "Noto Color Emoji", sans-serif;
  font-weight: 400;
  font-style: normal;
}

html,body{
  margin:0;
  width:100%;
  height:100%;
  background:#000;
  overflow:hidden;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, Noto Color Emoji;
}

#app{
  width:1080px;
  height:1920px;
  position:relative;
  margin:0 auto;
}

.count{
  position:absolute;
  left:40px;
  top:40px;
  color:#fff;
  font-size:34px;
  font-weight:700;
  opacity:0.9;
}

/* GRID */
.request-grid{
  position:absolute;
  right:36px;
  top:40px;

  width:360px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
}

/* CARD */
.request-card{
  aspect-ratio:1/1;
  position:relative;
  overflow:hidden;
  border-radius: 0px;
  background: radial-gradient(circle at top, #1a1a1a 0%, #0b0b0b 60%, #050505 100%);
  border:1px solid #111;

  display:flex;
  align-items:center;
  justify-content:center;

  --avatar-bg: none;
}

/* TikTok-like ambient blur from avatar */
.request-card::before{
  content:"";
  position:absolute;
  inset:-60px;
  background-image: var(--avatar-bg);
  background-size: cover;
  background-position:center;
  filter: blur(40px) saturate(1.3);
  opacity:0.45;
  z-index:0;
}
.request-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
  z-index:0;
}

.request-card > *{ position:relative; z-index:1; }

/* ===== MUTE ICON (bottom-right) ===== */
.mute-fixed{
  position:absolute;
  right:3px;
  bottom:5px;
  top:auto;

  width:30px;
  height:30px;
  opacity:0.95;
  z-index:2;
  pointer-events:none;

  display:none;              /* default: hidden */
}
.request-card.is-filled .mute-fixed{
  display:block;
}

/* EMPTY UI */
.empty-ui{
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  justify-content:center;
}
.empty-ui .plus{
  font-size:65px;
  font-weight:400;
  color:#8a8a8a;
  line-height:1;
}
.empty-ui .label{
  margin:0;
  font-size:20px;
  font-weight:500;
  color:#8a8a8a;
}

/* FILLED UI */
.filled-ui{
  display:none;
  width:100%;
  height:100%;
  padding:10px;
}

.request-card.is-filled .empty-ui{ display:none; }
.request-card.is-filled .filled-ui{ display:block; }

/* top counter bar */
.top{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#2c2a27;
  padding:0 10px;
  height:30px;
  border-radius:20px;
}

.coin-img{ width:22px; height:22px; }

.counter{
  color:#fff;
  font-size:18px;
  font-weight:800;
  height:22px;
  line-height:22px;
  overflow:hidden;
}
.counter-value{
  display:inline-block;
  font-size: 20px;
  font-weight: 400;
}

.counter.anim-up .counter-value{
  animation: countUp 620ms ease-out;
}
@keyframes countUp{
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* avatar circle */
.midle{
  margin:7px auto 10px;
  width:87px;
  height:87px;
  border-radius:50%;
  overflow:hidden;
}

.avatar-img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;

  opacity:0;
  transition: opacity 120ms ease;
}
.request-card.avatar-ready .avatar-img{
  opacity:1;
}

/* bottom pill: nickname + plus bubble */
.bottom{
  position:absolute;
  left:10px;
  right:50px;
  bottom:4px;
  width: 128px;
  height: 30px;
  background:#2c2a27;
  border-radius:999px;
  padding:4px 10px;
  display:flex;
  align-items:center;
  gap:8px;
}

.nickname{
  margin:0;
  color:#fff;
  font-size:20px;
  font-weight:350;
  line-height:4;

  flex:1;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.plus-bubble{
  position: relative;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#585652;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:300;
  font-size:30px;
  flex:0 0 auto;
  padding-bottom: 5px;
  right: -5px;
}

/* ===========================
   ✅ LION POP (moved from JS to CSS)
   =========================== */
.request-card{ position:relative; }
.request-card .lion-pop{
  position:absolute;
  top:8px;
  right:8px;
  width:37px;
  height:37px;
  opacity:0;
  transform:scale(.85);
  pointer-events:none;
  transition: opacity .55s ease, transform .55s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
  z-index: 5;
}
.request-card.lion-visible .lion-pop{
  opacity:1;
  transform:scale(1);
}

/* ===========================
   INPUTS (✅ moved UP)
   =========================== */
.inputs-wrapper{
  position:absolute;
  left:0px;

  /* აქ იყო 520px — ძალიან დაბლაა.
     ავწიეთ ზემოთ რომ "0"-სთან ახლოს დაჯდეს */
  top:100px;

  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px 18px;
  z-index:9999;
}

.oneperson{
  display:flex;
  gap:8px;
  align-items:center;
}

.personone{
  width:120px;
  height:34px;
  border-radius:12px;
  border:none;
  outline:none;
  text-align:center;
  font-weight:800;
  color:#fff;
  background:#141414;
}

.btn{
  height:34px;
  border:none;
  border-radius:10px;
  padding:0 12px;
  font-weight:800;
  cursor:pointer;
}
.btn.search{ background:#1f7a2e; color:#fff; }
.btn.clear{ background:#a61b1b; color:#fff; }
.btn:disabled{ opacity:0.6; cursor:not-allowed; }

/* sendlion (✅ moved UP a bit to match inputs) */
.sendlion{
  position:absolute;
  left:15px;
  top:520px;
  width:350px;
  transform: translateX(-120%);
  opacity:0;
  pointer-events:none;
}
.sendlion.show{ animation: lionIn 350ms ease-out forwards; }
.sendlion.hide{ animation: lionFade 1000ms ease-out forwards; }

@keyframes lionIn{
  from { transform: translateX(-120%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes lionFade{
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(0) scale(1); }
}

/* ===== Manual Add (COMPACT) ===== */
.manual-panel{
  grid-column: 1 / -1;
  margin-top:12px;
  padding:10px 12px;
  border-radius:16px;
  background: rgba(16,16,16,0.88);
  border:1px solid #1a1a1a;

  max-width: 440px;
  margin-bottom: 8px; /* ✅ space for Auto toggle below */
}

.manual-title{
  color:#fff;
  font-weight:800;
  margin:0 0 8px 0;
  font-size:14px;
  opacity:0.9;
}

.manual-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.manual-row label{
  color:#9c9c9c;
  font-size:11px;
  font-weight:800;
  margin-right:2px;
}

.manual-row select,
.manual-row input{
  height:32px;
  border-radius:12px;
  border:none;
  outline:none;
  padding:0 10px;
  background:#141414;
  color:#fff;
  font-weight:800;
  font-size:12px;
}

.manual-slot{ width:64px; }
.manual-name{ width:150px; }
.manual-avatar{ width:220px; }

.btn.manual-add{
  background:#1f7a2e;
  color:#fff;
  height:32px;
  border-radius:12px;
  padding:0 12px;
}

.btn.manual-clear{
  background:#3a3a3a;
  color:#fff;
  height:32px;
  border-radius:12px;
  padding:0 12px;
}

.manual-hint{ display:none; }

/* ===========================
   ✅ AUTO TOGGLE (Manual-ის ქვემოთ)
   =========================== */
.auto-toggle-wrap{
  grid-column: 1 / -1;
  width: 440px;
  max-width: 440px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:10px 12px;
  border-radius:16px;
  background: rgba(16,16,16,0.88);
  border:1px solid #1a1a1a;
}

.auto-toggle-title{
  font-size: 13px;
  font-weight: 800;
  opacity: .9;
  color:#fff;
  user-select:none;
}

.auto-toggle-btn{
  cursor:pointer;
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .4px;
  color: #fff;
  background: rgba(60,180,80,.95);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  user-select:none;
}
.auto-toggle-btn.off{
  background: rgba(200,60,60,.95);
}