@font-face{
  font-family: InterLocal;
  font-style: normal;
  font-weight: 100 900;
  src: local("Inter");
}
:root{
  --bg0:#070a14;
  --bg1:#0b1020;
  --ink:#eef1ff;
  --muted:rgba(238,241,255,.72);
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.12);
  --purple:#7c4dff;
  --purple2:#a88cff;
  --cyan:#00e5ff;
  --shadow: 0 26px 80px rgba(0,0,0,.48);
  --r: 22px;
  --tap: 52px;
  --font: InterLocal, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:
    radial-gradient(900px 520px at 18% 10%, rgba(124,77,255,.28), transparent 65%),
    radial-gradient(820px 500px at 88% 12%, rgba(0,229,255,.18), transparent 60%),
    linear-gradient(180deg, #050711, var(--bg1) 55%, #050711);
}
.bg{
  position:fixed; inset:0;
  background-image:
    radial-gradient(1px 1px at 24px 32px, rgba(255,255,255,.22) 50%, transparent 51%),
    radial-gradient(1px 1px at 92px 64px, rgba(255,255,255,.14) 50%, transparent 51%),
    radial-gradient(1px 1px at 148px 128px, rgba(255,255,255,.10) 50%, transparent 51%);
  background-size: 190px 190px;
  opacity:.18;
  pointer-events:none;
}
.topbar{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 18px 12px;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7,10,20,.78), rgba(7,10,20,.25));
  border-bottom:1px solid rgba(255,255,255,.06);
}
.brand{display:flex; gap:12px; align-items:center}
.brand__mark{
  width:44px; height:44px; border-radius:16px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(124,77,255,.35), rgba(0,229,255,.18));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
  font-size:22px;
}
.brand__title{font-weight:900; letter-spacing:.2px}
.brand__sub{font-size:12px; color:var(--muted); margin-top:2px}

.wrap{max-width:1040px; margin:0 auto; padding:18px 16px 46px}

.panel{
  display:grid;
  grid-template-columns: 280px 1fr;
  border-radius: 28px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
}
.panel--glass{
  backdrop-filter: blur(12px);
}
.panel__left{
  background: linear-gradient(180deg, rgba(124,77,255,.22), rgba(255,255,255,.02));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.panel__right{
  position:relative;
  padding:22px 20px;
  background:
    radial-gradient(520px 380px at 80% 10%, rgba(168,140,255,.18), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.18));
}
@media (max-width:860px){
  .panel{grid-template-columns: 1fr}
  .panel__left{display:none}
}
.appIcon{
  width:160px; height:160px;
  border-radius: 26px;
  background: rgba(255,255,255,.06);
  border: 10px solid rgba(255,255,255,.82);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  display:grid; place-items:center;
}
.appIcon__inner{
  width:120px; height:120px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.12));
  display:grid; place-items:center;
  font-size:64px;
  font-weight:900;
  color: rgba(168,140,255,.95);
}
.xbtn{
  position:absolute; right:16px; top:14px;
  width:42px; height:42px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(238,241,255,.85);
  font-size:28px;
  line-height:0;
}
.title{
  margin: 0 0 8px;
  font-size: 38px;
  letter-spacing:-.6px;
  font-weight: 950;
}
.title span{color: var(--purple2)}
.desc{margin: 0 0 14px; color: var(--muted); line-height:1.35; max-width: 720px}
.desc b{color: rgba(238,241,255,.92)}
.tip{
  display:flex; gap:10px; align-items:center;
  border-radius: 18px;
  border:1px solid rgba(124,77,255,.28);
  background: rgba(124,77,255,.10);
  padding: 12px 14px;
  margin: 10px 0 16px;
}
.tip__bar{width:4px; height: 100%; border-radius: 99px; background: rgba(124,77,255,.75)}
.tip__txt{color: rgba(238,241,255,.82); font-weight:650}

.card, .card2{
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  padding: 16px;
}
.card2{margin-top: 16px; box-shadow: var(--shadow); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));}

.grid2{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
@media (max-width:900px){ .grid2{grid-template-columns: 1fr} }

.field label{display:block; font-size:13px; color:var(--muted); margin:0 0 8px}
.input{
  width:100%;
  height: var(--tap);
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color:var(--ink);
  outline:none;
}
.input:focus{border-color: rgba(0,229,255,.35); box-shadow: 0 0 0 3px rgba(0,229,255,.12)}

.row{display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:flex-start; margin-top:12px}
.row--end{justify-content:flex-end}

.btn{
  height: var(--tap);
  padding: 0 16px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  font-weight:800;
  letter-spacing:.2px;
}
.btn:active{transform: translateY(1px)}
.btn--primary{
  background: linear-gradient(135deg, rgba(124,77,255,.95), rgba(0,229,255,.65));
  border-color: rgba(255,255,255,.18);
}
.btn--ghost{background: transparent}
.btn--soft{background: rgba(255,255,255,.07)}
.btn--xl{height: 60px; padding: 0 18px; border-radius: 18px; font-size:16px}
.btn[disabled]{opacity:.55}

.preview{
  margin-top:12px;
  padding:12px 14px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  font-weight:900;
  font-size:18px;
  letter-spacing:.2px;
}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(238,241,255,.9);
  font-size:12px;
}

.h2{margin: 8px 0 8px; font-size:26px; letter-spacing:-.2px}
.muted{color:var(--muted); line-height:1.35}

.playersGrid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
}
@media (max-width:900px){ .playersGrid{grid-template-columns: repeat(2, minmax(0,1fr));} }

.playerTile{
  position:relative;
  min-height: 92px;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  padding: 14px;
  text-align:left;
}
.playerTile__n{font-size:12px; color: rgba(238,241,255,.70); font-weight:800}
.playerTile__name{font-size:20px; font-weight:950; margin-top:4px}
.playerTile__hint{font-size:12px; color: rgba(238,241,255,.58); margin-top:6px}
.playerTile:active{transform: translateY(1px)}

.playerTile--done{
  filter: saturate(.08) brightness(.92);
  opacity:.72;
}
.playerTile--done::after{
  content:"✓";
  position:absolute;
  right:12px; top:10px;
  width:28px; height:28px;
  border-radius: 999px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(238,241,255,.85);
  font-weight:900;
}

.modal{position:fixed; inset:0; z-index:100}
.modal__backdrop{position:absolute; inset:0; background: rgba(0,0,0,.58); backdrop-filter: blur(6px)}
.modal__box{
  position:relative;
  max-width: 720px;
  margin: 10vh auto 0;
  padding: 18px 18px 16px;
  border-radius: 28px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  background:
    radial-gradient(600px 420px at 20% 10%, rgba(124,77,255,.22), transparent 70%),
    radial-gradient(560px 400px at 90% 10%, rgba(0,229,255,.14), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.22));
}
@media (max-width:760px){
  .modal__box{margin: 6vh 14px 0}
}
.modal__x{
  position:absolute; right:14px; top:14px;
  width:42px; height:42px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(238,241,255,.88);
  font-size:28px;
  line-height:0;
}
.hold{
  width:100%;
  border:none;
  border-radius: 22px;
  padding: 18px 16px;
  margin-top:14px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
  color:var(--ink);
  text-align:left;
}
.hold__label{display:block; font-size:12px; color:var(--muted); font-weight:800}
.hold__big{display:block; font-size:28px; font-weight:950; margin-top:6px}
.hold__sub{display:block; font-size:12px; color:rgba(238,241,255,.6); margin-top:6px}

.reveal{
  margin-top:14px;
  padding: 18px 16px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.26);
  font-size: 22px;
  font-weight:950;
  letter-spacing:.2px;
  min-height: 92px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.timer{
  margin-top:14px;
  position:relative;
  height: 16px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  overflow:hidden;
}
.timer__bar{
  position:absolute; inset:0;
  width:100%;
  background: linear-gradient(90deg, rgba(46,242,163,.85), rgba(0,229,255,.55), rgba(124,77,255,.75));
  transform-origin: left center;
  transform: scaleX(1);
}
.timer__text{
  position:absolute; right:10px; top:50%;
  transform: translateY(-50%);
  font-size:12px;
  color: rgba(238,241,255,.9);
  font-weight:900;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.footer{margin-top:18px; padding: 8px 4px; text-align:center}
