@font-face {
  font-family: 'Manrope Variable';
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #06101f;
  --surface: #0c2039;
  --surface-2: #101b2d;
  --text: #f4f8ff;
  --muted: #a9b8ce;
  --border: #263950;
  --cyan: #16d9f3;
  --blue: #168bff;
  --violet: #7657ff;
  --danger: #ff6d86;
  --success: #55e6b0;
  --radius: 20px;
  --font: 'Manrope Variable', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 10% 0%, #14395c66, transparent 42%),
    radial-gradient(ellipse at 90% 10%, #4a2f8c55, transparent 44%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { top: 16px; }

.guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
}
.guest-brand { display: inline-flex; align-items: center; text-decoration: none; }
.guest-brand img { display: block; width: 210px; height: auto; }
.guest-kicker {
  padding: 7px 11px;
  border: 1px solid #35506d;
  border-radius: 999px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guest-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 70px;
}
.guest-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #0d1e34f2, #091525f5);
  box-shadow: 0 24px 80px #0008;
}
.guest-intro { max-width: 650px; }
.guest-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2, p { margin: 0; }
h1 {
  max-width: 720px;
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.guest-meta, .guest-hint, .guest-media-status, .guest-footer { color: var(--muted); }
.guest-meta { margin-top: 16px; font-size: 15px; }

.guest-notice {
  margin-top: 22px;
  padding: 12px 15px;
  border: 1px solid #35506d;
  border-radius: 10px;
  background: #0a192b;
  color: #dce8f8;
  font-size: 14px;
}
.guest-notice.is-error { border-color: #8e3f53; background: #2a121c; color: #ffd6dd; }

.guest-form { margin-top: 28px; }
.guest-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.guest-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #35506d;
  border-radius: 9px;
  background: #071425;
  color: var(--text);
}
.guest-field input:focus { border-color: var(--cyan); }
.guest-hint { margin-top: 7px; font-size: 12px; }

.guest-preview {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  margin-top: 22px;
  border: 1px solid #2e435c;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, #142b45, #07111e 72%);
}
.guest-preview video {
  display: block;
  width: 100%;
  min-height: 250px;
  max-height: 460px;
  object-fit: cover;
  background: #050b14;
  transform: scaleX(-1);
}
.guest-preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background: radial-gradient(circle at 50% 40%, #142b45, #07111e 72%);
}
.guest-preview-empty strong { color: var(--text); font-size: 18px; }
.guest-preview-empty span { max-width: 430px; font-size: 13px; }
.guest-preview-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #05101ee6;
  color: #dce8f8;
  font-size: 10px;
  letter-spacing: .04em;
}
.guest-media-status { min-height: 22px; margin-top: 10px; font-size: 12px; }

.guest-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.guest-button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s, background .18s, border-color .18s;
}
.guest-button:hover:not(:disabled) { transform: translateY(-1px); }
.guest-button:disabled { cursor: not-allowed; opacity: .45; }
.guest-button.primary { background: linear-gradient(110deg, var(--cyan), var(--blue) 58%, var(--violet)); color: #05101d; }
.guest-button.secondary { border-color: #35506d; background: #0a192b; color: var(--text); }
.guest-button.danger { border-color: #7b3044; background: #2a121c; color: #ffd6dd; }

.guest-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 36px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #091525;
  text-align: center;
}
.guest-state-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #35506d;
  border-radius: 50%;
  color: var(--cyan);
  font-size: 22px;
  letter-spacing: .1em;
}
.guest-state p { max-width: 520px; color: var(--muted); font-size: 14px; }
#guest-closed .guest-state-icon { color: var(--danger); }

.guest-room { margin-top: 28px; }
.guest-room-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.guest-status { color: var(--cyan); font-size: 12px; font-weight: 700; white-space: nowrap; }
.guest-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.guest-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid #2e435c;
  border-radius: 12px;
  background: #050b14;
}
.guest-tile video { width: 100%; height: 100%; min-height: 190px; max-height: 360px; object-fit: cover; }
.guest-tile-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #05101ee6;
  color: #eaf3ff;
  font-size: 11px;
  font-weight: 600;
}
.room-controls { margin-top: 16px; }

.guest-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid #1c2d40;
  font-size: 11px;
}

@media (max-width: 680px) {
  .guest-header { width: calc(100% - 32px); padding: 18px 0; }
  .guest-brand img { width: 170px; }
  .guest-kicker { font-size: 9px; }
  .guest-main { width: calc(100% - 24px); padding-bottom: 48px; }
  .guest-card { padding: 22px 18px; border-radius: 16px; }
  .guest-preview, .guest-preview video { min-height: 210px; }
  .guest-controls { align-items: stretch; }
  .guest-button { flex: 1 1 44%; }
  .guest-button.primary { flex-basis: 100%; }
  .guest-video-grid { grid-template-columns: 1fr; }
  .guest-room-head { display: block; }
  .guest-status { display: inline-block; margin-top: 8px; }
  .guest-footer { width: calc(100% - 32px); }
}
