:root {
  --ink: #06101d;
  --navy: #08182a;
  --navy-2: #102b48;
  --white: #f7fbff;
  --muted: #8ea8c1;
  --cyan: #23d5ff;
  --blue: #3478ff;
  --lime: #b9f53a;
  --purple: #9d7cff;
  --danger: #ff6075;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--ink);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: radial-gradient(circle at 50% -10%, #174474, transparent 52%), var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.site-header { width: min(1160px, calc(100% - 38px)); height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--white); text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 2px solid var(--cyan); border-radius: 13px; color: var(--cyan); font-weight: 900; }
.brand-copy strong, .brand-copy small { display: block; line-height: 1; }
.brand-copy strong { font-size: 15px; letter-spacing: .04em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .24em; }
.node-status { color: var(--muted); font-size: 11px; }
.node-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 13px var(--lime); }
.home { width: min(1160px, calc(100% - 38px)); margin: auto; padding: 8vh 0 80px; }
.home-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 8vw; }
.eyebrow { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .24em; margin-bottom: 19px; }
h1, h2, h3, p { margin-top: 0; }
.home h1 { margin-bottom: 24px; font-size: clamp(54px, 7.6vw, 108px); line-height: .88; letter-spacing: -.065em; }
.home .intro { max-width: 620px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.join-card { padding: 30px; border: 1px solid rgba(143,174,205,.2); border-radius: 25px; background: rgba(11,30,51,.83); box-shadow: 0 35px 75px rgba(0,0,0,.32); }
.join-card h2 { font-size: 27px; letter-spacing: -.04em; }
.join-card p { color: var(--muted); line-height: 1.5; }
label { display: block; margin-top: 18px; color: #c0d2e3; font-size: 12px; font-weight: 750; }
input { width: 100%; margin-top: 9px; padding: 15px 16px; border: 1px solid rgba(143,174,205,.24); border-radius: 13px; outline: 0; color: var(--white); background: rgba(2,12,22,.72); }
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(35,213,255,.12); }
.code-input { text-transform: uppercase; letter-spacing: .23em; font-size: 20px; font-weight: 900; text-align: center; }
.primary { width: 100%; min-height: 53px; margin-top: 17px; border: 0; border-radius: 13px; cursor: pointer; color: #03121d; background: linear-gradient(110deg, var(--cyan), #8beaff); font-weight: 900; box-shadow: 0 15px 34px rgba(35,213,255,.2); }
.primary:disabled { opacity: .5; cursor: wait; }
.error { min-height: 18px; margin: 11px 0 0; color: var(--danger) !important; font-size: 12px; }
.participant-shell { width: min(720px, calc(100% - 30px)); min-height: calc(100vh - 82px); margin: auto; padding: 3vh 0 52px; display: grid; align-content: start; }
.event-kicker { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.event-title { margin: 9px 0 27px; font-size: clamp(31px, 8vw, 54px); line-height: 1; letter-spacing: -.05em; }
.phone-panel { min-height: 440px; padding: clamp(23px, 5vw, 42px); border: 1px solid rgba(143,174,205,.2); border-radius: 26px; background: linear-gradient(145deg, rgba(17,45,75,.94), rgba(7,21,37,.95)); box-shadow: 0 34px 70px rgba(0,0,0,.26); }
.phase-chip { display: inline-flex; align-items: center; padding: 8px 11px; border: 1px solid rgba(185,245,58,.27); border-radius: 99px; color: #dcff91; background: rgba(185,245,58,.06); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.phase-chip::before { content: ""; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--lime); }
.big-message { margin: 35px 0 13px; font-size: clamp(31px, 7vw, 48px); line-height: 1.04; letter-spacing: -.045em; }
.muted { color: var(--muted); line-height: 1.6; }
.nickname-form { margin-top: 30px; }
.answer-grid { display: grid; gap: 12px; margin-top: 26px; }
.answer { position: relative; width: 100%; min-height: 65px; padding: 15px 18px 15px 58px; border: 1px solid rgba(143,174,205,.2); border-radius: 15px; cursor: pointer; text-align: left; color: var(--white); background: rgba(255,255,255,.035); font-weight: 750; transition: .18s; }
.answer::before { content: attr(data-letter); position: absolute; left: 15px; top: 15px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--cyan); background: rgba(35,213,255,.1); font-weight: 900; }
.answer:hover, .answer.selected { border-color: var(--cyan); background: rgba(35,213,255,.09); transform: translateY(-1px); }
.answer:disabled { cursor: default; transform: none; }
.timer-line { height: 4px; margin: 23px 0 7px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.08); }
.timer-line span { display: block; width: 100%; height: 100%; transform-origin: left; background: linear-gradient(90deg, var(--lime), var(--cyan)); }
.timer-copy { color: var(--muted); font-size: 11px; text-align: right; }
.confirmation { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: #dbff8c; font-size: 13px; }
.confirmation::before { content: "✓"; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); font-weight: 900; }
.result-list { display: grid; gap: 14px; margin-top: 30px; }
.result-row { position: relative; overflow: hidden; min-height: 64px; padding: 14px 17px; border: 1px solid rgba(143,174,205,.16); border-radius: 14px; background: rgba(255,255,255,.03); }
.result-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(52,120,255,.35), rgba(35,213,255,.18)); transition: width .5s ease; }
.result-content { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.result-content strong { font-size: 20px; }
.operator-layout { width: min(1240px, calc(100% - 38px)); margin: auto; padding: 28px 0 70px; }
.operator-head { display: flex; justify-content: space-between; gap: 25px; align-items: end; }
.operator-head h1 { margin-bottom: 0; font-size: clamp(42px, 6vw, 72px); letter-spacing: -.06em; line-height: .95; }
.operator-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-top: 35px; }
.operator-panel { border: 1px solid rgba(143,174,205,.18); border-radius: 22px; padding: 27px; background: rgba(10,27,46,.87); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.metric { padding: 17px; border-radius: 15px; background: rgba(255,255,255,.04); }
.metric span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.metric strong { display: block; margin-top: 8px; font-size: 26px; }
.question-preview { min-height: 270px; margin-top: 14px; padding: 27px; border-radius: 17px; background: linear-gradient(145deg, #153b62, #0d233c); }
.question-preview h2 { font-size: clamp(27px, 4vw, 42px); line-height: 1.07; letter-spacing: -.04em; }
.operator-actions { display: grid; gap: 10px; }
.command { width: 100%; min-height: 58px; padding: 13px 16px; border: 1px solid rgba(143,174,205,.2); border-radius: 13px; cursor: pointer; color: var(--white); text-align: left; background: rgba(255,255,255,.035); font-weight: 800; }
.command:hover { border-color: var(--cyan); }
.command.recommended { color: var(--ink); border-color: transparent; background: var(--cyan); }
.command:disabled { opacity: .36; cursor: not-allowed; }
.join-link { display: block; margin-top: 18px; color: var(--cyan); text-decoration: none; overflow-wrap: anywhere; }
.operator-error { color: var(--danger); }

@media (max-width: 820px) {
  .home-grid, .operator-grid { grid-template-columns: 1fr; }
  .home { padding-top: 4vh; }
  .home h1 { font-size: clamp(54px, 17vw, 80px); }
  .operator-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .site-header { width: calc(100% - 28px); height: 70px; }
  .node-status { display: none; }
  .participant-shell { min-height: calc(100vh - 70px); }
  .phone-panel { border-radius: 20px; }
  .metrics { grid-template-columns: 1fr 1fr 1fr; }
  .metric { padding: 13px 10px; }
  .metric strong { font-size: 20px; }
}
