:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #08090d;
  color: #f6f7fb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(134, 73, 255, .24), transparent 38rem),
    radial-gradient(circle at 90% 70%, rgba(255, 178, 36, .12), transparent 34rem),
    #08090d;
}
.shell { width: min(1180px, 100%); margin: 0 auto; padding: 24px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.brand { font-size: clamp(20px, 4vw, 30px); font-weight: 800; }
.header-side { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.participants { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; flex-wrap: wrap; }
.participant { display: inline-flex; align-items: center; gap: 6px; max-width: 180px; padding: 4px 9px 4px 4px; border: 1px solid #343844; border-radius: 999px; background: #1d2028; }
.participant-avatar { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #7655d9, #4b328e); font-weight: 800; }
.participant-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e4e6ed; font-size: 13px; }
.status { padding: 8px 12px; border-radius: 999px; background: #252831; color: #cbd0dc; font-size: 14px; }
.status.online { background: rgba(40, 190, 120, .15); color: #75e2ab; }
.status.offline { background: rgba(240, 72, 72, .15); color: #ff9393; }
.card { padding: clamp(18px, 4vw, 36px); border: 1px solid #292c36; border-radius: 24px; background: rgba(20, 22, 28, .93); box-shadow: 0 24px 90px rgba(0,0,0,.34); }
.eyebrow { color: #b99cff; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; }
h1 { margin: 8px 0 4px; font-size: clamp(25px, 5vw, 44px); line-height: 1.1; }
.muted, .notice { color: #a8adba; }
.player-wrap { position: relative; margin-top: 24px; overflow: hidden; border-radius: 16px; background: #000; aspect-ratio: 16 / 9; }
video { display: block; width: 100%; height: 100%; background: #000; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-size: clamp(22px, 5vw, 42px); font-weight: 800; background: rgba(0,0,0,.76); }
.hidden { display: none; }
.details { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; color: #d9dce4; }
button { border: 1px solid #6351a5; border-radius: 12px; padding: 10px 14px; color: white; background: #322763; cursor: pointer; font: inherit; }
button:hover { background: #433482; }
input { width: 100%; margin-top: 7px; border: 1px solid #414654; border-radius: 10px; padding: 10px 12px; color: white; background: #171921; font: inherit; color-scheme: dark; }
.host-panel { display: grid; grid-template-columns: minmax(210px, 1fr) auto auto; align-items: end; gap: 12px; margin-top: 22px; padding: 16px; border: 1px solid #3a315c; border-radius: 14px; background: rgba(73, 53, 141, .15); }
.host-panel label { color: #ddd7f5; font-size: 13px; font-weight: 700; }
.host-panel #hostFeedback { grid-column: 1 / -1; min-height: 20px; }
.notice { margin-bottom: 0; font-size: 14px; }
.home-shell { max-width: 860px; padding-top: clamp(28px, 8vh, 90px); }
.home-card { text-align: left; }
.home-lead { max-width: 700px; margin: 18px 0 28px; color: #c9cdd7; font-size: clamp(17px, 2.5vw, 21px); line-height: 1.55; }
.home-steps { display: grid; gap: 14px; margin: 0 0 26px; }
.home-steps div { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid #303440; border-radius: 14px; background: rgba(8, 9, 13, .45); }
.home-steps strong { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #49358d; color: #fff; }
.home-steps span { line-height: 1.45; }
code { padding: 2px 7px; border-radius: 6px; background: #29233c; color: #d9cfff; font: inherit; }
@media (max-width: 620px) {
  .shell { padding: 14px; }
  header, .details, .header-side { align-items: flex-start; flex-direction: column; }
  .participants { justify-content: flex-start; }
  .host-panel { grid-template-columns: 1fr; }
  .host-panel #hostFeedback { grid-column: auto; }
  .card { border-radius: 18px; }
}
