.gate{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px 18px 40px;
}
.gate-shell{
  width:min(460px,100%);
  display:grid;
  gap:18px;
}
.gate-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
}
.gate-name{
  margin:0;
  min-width:0;
  color:#f8fafc;
  font-size:clamp(1.15rem,3vw,1.45rem);
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.gate-lang{
  display:flex;
  justify-content:flex-end;
  margin:0;
  position:relative;
  z-index:40;
  flex:0 0 auto;
}
.gate-lang .lang-select{
  width:auto;
  min-width:148px;
  margin:0;
}
.gate-lang .lang-select-trigger{
  min-height:42px;
  padding:8px 12px;
  border-radius:12px;
  background:rgba(15,23,42,.42);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:none;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.gate-lang .lang-select-meta small{
  display:none;
}
.gate-lang .lang-select-meta{
  gap:0;
}
.gate-lang .lang-select-meta strong{
  font-size:.82rem;
}
.gate-lang .lang-select-menu{
  min-width:180px;
  right:0;
  left:auto;
  background:rgba(8,12,28,.92);
}
.gate-card{
  width:100%;
  display:grid;
  gap:12px;
  padding:22px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:22px;
  background:rgba(12,18,40,.38);
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.gate-card>p:first-child{
  margin:0;
  color:inherit;
  font-size:inherit;
  font-weight:inherit;
  letter-spacing:normal;
  text-transform:none;
}
.gate-card h1{
  display:none;
}
.gate-photo{
  display:block;
  width:96px;
  height:96px;
  margin:2px auto 6px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.18);
  box-shadow:0 10px 24px rgba(0,0,0,.28);
  background:rgba(255,255,255,.06);
}
.gate-title,
.gate-copy{
  margin:0;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.gate-title{
  color:#f8fafc;
  font-size:1.02rem;
  font-weight:800;
  letter-spacing:.01em;
  line-height:1.35;
}
.gate-copy{
  color:#cbd5e1;
  font-size:.95rem;
  font-weight:500;
  line-height:1.6;
}
.gate-card label{
  display:grid;
  gap:8px;
  margin-top:4px;
  color:#cbd5e1;
  font-size:.88rem;
  font-weight:700;
}
.gate-card input{
  width:100%;
  box-sizing:border-box;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(10,14,39,.55);
  color:#fff;
  font:inherit;
}
.gate-card button,
.gate-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 14px;
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg,#6366f1f2,#818cf8bf);
  color:#fff;
  font:inherit;
  font-weight:700;
  text-decoration:none;
}
.gate-error{
  margin:0;
  color:#fda4af;
  font-size:.88rem;
}
.gate-card .timer{
  width:100%;
  min-width:0;
  max-width:100%;
  margin:2px 0 4px;
  padding:14px 16px 15px;
  border-radius:16px;
  background:rgba(99,102,241,.14);
  border:1px solid rgba(99,102,241,.28);
  box-shadow:none;
}
.gate-card .timer-label{
  margin:0;
  color:#a5b4fc;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-align:center;
  line-height:1.35;
}
.gate-card .timer-display{
  font-size:clamp(1.85rem,8vw,2.55rem);
}
.gate-card .timer-date{
  margin:0;
  color:#c7d2fe;
  font-size:.78rem;
  text-align:center;
}
@media (max-width:520px){
  .gate-top{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .gate-name{
    white-space:normal;
    max-width:100%;
  }
  .gate-lang,
  .gate-lang .lang-select{
    width:100%;
  }
}
html[dir="rtl"] .gate-top{
  flex-direction:row-reverse;
}
html[dir="rtl"] .gate-lang .lang-select-menu{
  left:0;
  right:auto;
}
