
:root{
  --bg:#090e1a;
  --bg2:#0e1628;
  --panel:#121b30;
  --panel2:#18233c;
  --line:rgba(255,255,255,.09);
  --text:#f4f6fb;
  --muted:#aeb8ce;
  --gold:#dfc17d;
  --blue:#8ea1ff;
  --green:#56d392;
  --red:#ff7d7d;
  --shadow:0 24px 80px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(112,86,220,.18), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(60,115,255,.14), transparent 28%),
    linear-gradient(180deg,var(--bg),#070b13 80%);
}
.bg{position:fixed;border-radius:50%;filter:blur(90px);opacity:.18;pointer-events:none}
.bg-1{width:320px;height:320px;background:#6a52d8;left:-100px;top:160px}
.bg-2{width:300px;height:300px;background:#3d78ff;right:-80px;top:430px}

.topbar{
  width:min(1180px,calc(100% - 32px));
  margin:18px auto 0;
  padding:14px 16px;
  display:flex;align-items:center;justify-content:space-between;
  background:rgba(10,15,28,.76);
  backdrop-filter:blur(18px);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
}
.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none}
.brand-mark{
  width:42px;height:42px;border-radius:13px;
  display:grid;place-items:center;font-weight:900;color:#11131c;
  background:linear-gradient(135deg,#f0dca7,var(--gold));
}
.brand-title{font-weight:800}
.brand-sub{font-size:12px;color:var(--muted);margin-top:2px}
.badge{
  padding:8px 11px;border-radius:999px;font-size:13px;font-weight:700;
  border:1px solid var(--line);background:rgba(255,255,255,.04)
}
.badge.offline{color:#ffc1c1}
.badge.online{color:#baf1d0}

main{width:min(1180px,calc(100% - 32px));margin:0 auto}
.hero{padding:68px 4px 30px}
.eyebrow{font-size:12px;font-weight:900;letter-spacing:.16em;color:var(--gold);margin-bottom:12px}
h1{font-size:clamp(42px,6vw,74px);line-height:1;letter-spacing:-.045em;margin:0}
.hero p{max-width:760px;color:var(--muted);font-size:18px;line-height:1.65;margin-top:20px}

.panel-wrap{padding:20px 0 64px}
.panel{
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015)),var(--panel);
  border-radius:22px;padding:26px;box-shadow:var(--shadow)
}
.hidden{display:none!important}
.state-panel{text-align:center;padding:48px 28px}
.state-icon{font-size:54px;margin-bottom:12px}
.state-panel h2{font-size:30px;margin:8px 0 12px}
.state-panel p{max-width:680px;margin:0 auto;color:var(--muted);line-height:1.65}
.pulse-row{display:flex;align-items:center;justify-content:center;gap:10px;margin:22px 0;color:var(--muted)}
.pulse{
  width:10px;height:10px;border-radius:50%;background:var(--gold);
  box-shadow:0 0 0 0 rgba(223,193,125,.5);
  animation:pulse 1.6s infinite
}
@keyframes pulse{70%{box-shadow:0 0 0 12px rgba(223,193,125,0)}100%{box-shadow:0 0 0 0 rgba(223,193,125,0)}}

label{display:block;font-weight:700;margin-top:16px}
input,textarea{
  width:100%;margin-top:8px;border:1px solid var(--line);border-radius:13px;
  background:#0c1323;color:var(--text);padding:13px 14px;font:inherit;outline:none
}
input:focus,textarea:focus{border-color:rgba(142,161,255,.65);box-shadow:0 0 0 3px rgba(142,161,255,.12)}
textarea{min-height:120px;resize:vertical}

.btn{
  border:1px solid var(--line);border-radius:13px;min-height:46px;padding:0 16px;
  font-weight:800;cursor:pointer;margin-top:18px
}
.btn.primary{background:linear-gradient(135deg,#f0dca7,var(--gold));color:#11131c;border-color:transparent}
.btn.secondary{background:rgba(255,255,255,.05);color:var(--text)}
.muted,.placeholder{color:var(--muted)}
.join-status{margin-top:16px;color:var(--muted);min-height:22px}

.session-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
.session-head h2{margin:0;font-size:30px}
.dashboard-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.card{
  background:var(--panel2);border:1px solid var(--line);border-radius:18px;padding:18px
}
.span-2{grid-column:span 2}
.card-title{font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#cad3ea;margin-bottom:12px}
.narrative{line-height:1.72;white-space:pre-wrap}
.map-placeholder{
  min-height:280px;display:grid;place-items:center;text-align:center;color:var(--muted);
  border:1px dashed rgba(255,255,255,.14);border-radius:14px;
  background:linear-gradient(180deg,#0d1526,#0a1120)
}
.action-form{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}
.action-form .btn{margin:0;min-width:140px}
footer{
  width:min(1180px,calc(100% - 32px));margin:0 auto;padding:24px 0 34px;
  color:var(--muted);display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);font-size:13px
}
@media(max-width:760px){
  .topbar{align-items:flex-start;gap:12px}
  .badge{font-size:11px}
  .dashboard-grid{grid-template-columns:1fr}
  .span-2{grid-column:auto}
  .action-form{grid-template-columns:1fr}
  footer{flex-direction:column}
}
