:root {
  --ink: #102044;
  --muted: #66738f;
  --navy: #10245d;
  --indigo: #283b88;
  --cyan: #10bfd0;
  --blue: #2588df;
  --green: #67bb55;
  --lime: #b4dd52;
  --gold: #e7c35a;
  --paper: #fff;
  --mist: #f4f8fb;
  --line: #dbe6ee;
  --danger: #c95567;
  --shadow: 0 18px 48px rgba(27, 47, 93, .12);
  --futura: Futura, "Futura PT", "Avenir Next", Avenir, "Trebuchet MS", Arial, sans-serif;
  font-family: var(--futura);
}
* { box-sizing: border-box; }
html { background: var(--mist); color: var(--ink); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 12% 0%, rgba(16, 191, 208, .17), transparent 33%), linear-gradient(180deg, #eef8fb 0, var(--mist) 44%, #edf3f8 100%); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1500px, 96vw); margin: 0 auto; padding: 22px 0 44px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 50; border-radius: 10px; background: var(--paper); color: var(--ink); padding: 12px 16px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.topbar { min-height: 138px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; border-radius: 28px; color: var(--paper); background: linear-gradient(112deg, var(--navy), var(--indigo) 58%, var(--cyan)); box-shadow: 0 22px 52px rgba(16, 36, 93, .24); }
.brand { display: flex; align-items: center; gap: 18px; }
.brand > span:last-child { display: grid; gap: 5px; }
.brand strong { font-size: clamp(23px, 3vw, 35px); letter-spacing: -.02em; }
.brand small { color: rgba(255,255,255,.78); letter-spacing: .18em; text-transform: uppercase; font-size: 10px; }
.lotus { display: grid; place-items: center; width: 86px; height: 86px; flex: 0 0 86px; padding: 7px; border-radius: 24px; overflow: hidden; background: rgba(255,255,255,.96); box-shadow: 0 14px 28px rgba(6,26,79,.22); }
.lotus img { display: block; width: 100%; height: 100%; border-radius: 18px; object-fit: contain; }
.hero-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.pilot-badge { border: 1px solid rgba(255,255,255,.42); border-radius: 99px; padding: 9px 12px; color: var(--paper); background: rgba(255,255,255,.1); font-size: 10px; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
.safe-badge { border-color: rgba(180,221,82,.68); background: rgba(103,187,85,.2); }
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.journey-step { min-height: 70px; display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.82); color: var(--muted); box-shadow: 0 8px 24px rgba(27,47,93,.06); }
.journey-step > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 12px; background: #e9f1f6; color: var(--navy); font-weight: 800; }
.journey-step p { display: grid; gap: 2px; margin: 0; }
.journey-step strong { color: var(--ink); font-size: 13px; }
.journey-step small { font-size: 10px; letter-spacing: .04em; }
.journey-step.active { border-color: rgba(16,191,208,.5); background: linear-gradient(135deg, #fff, #f2fbfd); }
.journey-step.active > span { color: var(--paper); background: linear-gradient(135deg, var(--indigo), var(--cyan)); }
.join-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(360px, .68fr); gap: 18px; align-items: stretch; }
.intro, .join-card, .waiting-view, .room-view { border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.intro { padding: clamp(28px, 4vw, 54px); overflow: hidden; position: relative; }
.intro::after { content: "◇"; position: absolute; right: -55px; bottom: -112px; color: rgba(16,191,208,.08); font-size: 310px; line-height: 1; transform: rotate(12deg); pointer-events: none; }
.eyebrow, .step-kicker { color: var(--indigo); letter-spacing: .15em; text-transform: uppercase; font-size: 11px; font-weight: 800; }
h1 { font-family: var(--futura); font-weight: 700; letter-spacing: -.045em; font-size: clamp(44px, 6.3vw, 88px); line-height: .95; margin: 18px 0 22px; color: var(--navy); }
.lead { color: var(--muted); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.55; max-width: 700px; }
.safety-card, .side-panel section { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #f8fcfe, #f1f7fa); }
.safety-card { position: relative; z-index: 1; padding: 22px 24px; margin-top: 32px; max-width: 720px; }
.safety-card h2, .side-panel h2, .card-heading h2 { margin: 0; color: var(--navy); font-size: 16px; }
.safety-card ul { margin: 13px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.fallback-note, .field-help, .status { position: relative; z-index: 1; color: var(--muted); font-size: 12px; line-height: 1.55; }
.fallback-note { margin: 18px 0 0; }
.join-card { padding: clamp(20px, 2.5vw, 30px); display: grid; gap: 16px; }
.card-heading { display: grid; gap: 5px; }
.card-heading h2 { font-size: 23px; }
.card-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.preview { min-height: 220px; background: linear-gradient(145deg, var(--navy), #071536); border-radius: 16px; overflow: hidden; display: grid; place-items: center; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.preview video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
#preview-off { display: grid; place-items: center; color: rgba(255,255,255,.72); }
#preview-off span { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--indigo), var(--cyan)); color: var(--paper); font-size: 25px; box-shadow: 0 14px 28px rgba(4,15,47,.32); }
label { display: grid; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink); }
input, textarea { width: 100%; color: var(--ink); background: var(--paper); border: 1px solid #cbdbe6; border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 1px 2px rgba(27,47,93,.04); }
input:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(16,191,208,.28); outline-offset: 2px; border-color: var(--cyan); }
fieldset { margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #f9fbfd; }
legend { padding: 0 6px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.choice { grid-template-columns: 18px 1fr; align-items: center; margin-top: 8px; font-weight: 500; color: var(--muted); }
.choice input { width: 17px; height: 17px; accent-color: var(--cyan); }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.primary, .secondary, .controls button { min-height: 45px; border-radius: 13px; border: 1px solid var(--indigo); padding: 10px 16px; background: var(--paper); color: var(--indigo); font-weight: 800; }
.primary:hover, .secondary:hover { background: #f1f6fc; }
.primary.filled { border-color: transparent; background: linear-gradient(110deg, var(--indigo), var(--blue), var(--cyan)); color: var(--paper); box-shadow: 0 10px 24px rgba(37,136,223,.22); }
.waiting-view { width: min(760px, 100%); margin: 0 auto; min-height: 540px; padding: 50px; display: grid; align-content: center; justify-items: center; text-align: center; }
.waiting-view h1 { font-size: clamp(40px, 7vw, 70px); }
.waiting-symbol { width: 110px; height: 110px; border: 2px solid var(--cyan); border-radius: 30px; display: grid; place-items: center; color: var(--indigo); background: #f4fbfd; font-size: 50px; animation: breathe 2.5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); box-shadow: 0 0 54px rgba(16,191,208,.2); } }
.room-view { padding: 20px 20px 108px; }
.room-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 6px 4px 20px; }
.room-header h1 { font-size: clamp(28px, 4vw, 46px); margin: 6px 0 0; }
.room-state { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.room-state span { border: 1px solid var(--line); border-radius: 99px; padding: 8px 11px; font-size: 10px; color: var(--muted); background: var(--paper); }
.room-state .safe { color: #397b32; border-color: rgba(103,187,85,.42); background: rgba(180,221,82,.13); }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; }
.stage { min-height: calc(100vh - 300px); border-radius: 20px; padding: 12px; background: linear-gradient(145deg, #071536, var(--navy)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.remote-stage { display: contents; }
.tile { position: relative; border-radius: 16px; overflow: hidden; background: linear-gradient(150deg, var(--indigo), #111d49); min-height: 230px; border: 1px solid rgba(255,255,255,.13); }
.tile video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.64); font-size: 30px; }
.tile footer { position: absolute; inset: auto 0 0; padding: 28px 14px 12px; color: var(--paper); background: linear-gradient(transparent, rgba(5,14,42,.9)); display: flex; justify-content: space-between; align-items: end; }
.tile footer span { color: rgba(255,255,255,.62); font-size: 10px; }
.empty-stage { grid-column: 1 / -1; min-height: 180px; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.64); }
.empty-stage span { color: var(--cyan); font-size: 38px; }
.side-panel { display: grid; gap: 12px; align-content: start; }
.side-panel section { padding: 18px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; }
.panel-title span { color: var(--indigo); font-weight: 800; }
.waiting-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.waiting-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
.waiting-list button { border: 1px solid var(--cyan); color: var(--indigo); background: var(--paper); border-radius: 9px; padding: 6px 9px; }
.safeguards { margin: 14px 0 0; display: grid; gap: 10px; }
.safeguards div { display: flex; justify-content: space-between; }
.safeguards dt { color: var(--muted); }.safeguards dd { margin: 0; color: #397b32; font-weight: 800; }
.fallback a { display: block; color: var(--indigo); margin-top: 9px; }
.controls { position: fixed; z-index: 20; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 16px; padding: 7px; backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.controls button { min-width: 94px; border-color: var(--line); color: var(--ink); }
.controls button[aria-pressed="true"] { background: rgba(16,191,208,.1); border-color: var(--cyan); color: var(--indigo); }
.controls .leave { border-color: rgba(201,85,103,.38); color: var(--danger); }
.page-foot { display: flex; justify-content: space-between; gap: 16px; padding: 18px 6px 0; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 980px) { .journey { grid-template-columns: repeat(2, 1fr); }.join-layout, .room-grid { grid-template-columns: 1fr; }.room-grid { padding-bottom: 300px; }.side-panel { grid-row: 2; }.stage { min-height: 500px; }.room-header { align-items: flex-start; }.room-state { max-width: 190px; }.controls { width: calc(100% - 24px); overflow-x: auto; }.controls button { min-width: 88px; } }
@media (max-width: 620px) { .shell { width: 94vw; padding-top: 10px; }.topbar { min-height: 0; padding: 18px; border-radius: 22px; align-items: flex-start; }.lotus { width: 58px; height: 58px; flex-basis: 58px; padding: 5px; border-radius: 17px; }.lotus img { border-radius: 12px; }.brand strong { font-size: 20px; }.hero-status { display: none; }.journey { display: flex; overflow-x: auto; padding-bottom: 5px; }.journey-step { min-width: 185px; }.intro, .join-card { padding: 22px 18px; }.intro h1 { font-size: 48px; }.button-row { grid-template-columns: 1fr; }.stage { grid-template-columns: 1fr; }.self { min-height: 170px; }.room-view { padding-inline: 10px; }.room-header .eyebrow { font-size: 9px; }.page-foot { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
