/* The LFG Pod guest room. Palette + type from the brand guide:
   primary #FFC928, charcoal #292929, cream #FFFCF6, accents #FF0969 / #45D7DD / #8965AD. Garet -> Outfit (closest free geometric). */
:root {
  --yellow: #FFC928;
  --yellow-d: #e6b11a;
  --char: #292929;
  --bg: #1b1b1b;
  --bg2: #232323;
  --panel: #2d2d2d;
  --line: #3d3d3d;
  --cream: #FFFCF6;
  --mute: #b9b5ac;
  --pink: #FF0969;
  --teal: #45D7DD;
  --purple: #8965AD;
  --radius: 18px;
  --font: "Outfit", "Garet", ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--cream); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
body[data-state="live"] { overflow: hidden; }

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(700px 480px at 85% -8%, rgba(255,201,40,.13), transparent 70%),
    radial-gradient(640px 520px at -10% 108%, rgba(137,101,173,.20), transparent 70%),
    radial-gradient(400px 300px at 100% 100%, rgba(69,215,221,.07), transparent 70%),
    var(--bg); }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: #111; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { position: relative; z-index: 1; min-height: 100%; }
.screen { max-width: 560px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 22px max(32px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; animation: rise .45s ease both; }
.screen.wide { max-width: 980px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.logo { width: min(46vw, 180px); height: auto; margin-top: 10px; }
.logo.small { width: 52px; margin-top: 0; }
.eyebrow { margin: 6px 0 -6px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); font-size: .78rem; }
h1 { margin: 0; font-weight: 800; font-size: clamp(1.8rem, 7.4vw, 2.7rem); line-height: 1.08; letter-spacing: -.01em; }
h1.h2 { font-size: clamp(1.45rem, 5.4vw, 2rem); }
.accent { color: var(--yellow); }
.lead { margin: 0; color: var(--cream); opacity: .9; font-size: 1.05rem; max-width: 36em; }
.fine { margin: 0; color: var(--mute); font-size: .86rem; max-width: 40em; }
.fine.left { text-align: left; }
strong { font-weight: 600; }

.card { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; text-align: left; }
.card.center { align-items: center; text-align: center; }

.steps { list-style: none; padding: 0; margin: 4px 0; width: 100%; display: grid; gap: 10px; text-align: left; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: .95rem; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: #151515; font-weight: 800; display: grid; place-items: center; }
.steps.plain li { background: var(--panel); }

.field { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 0; }
input[type=text], select { width: 100%; font: inherit; color: var(--cream); background: #222; border: 1.5px solid #4a4a4a; border-radius: 12px; padding: 12px 14px; min-height: 48px; appearance: none; -webkit-appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; text-overflow: ellipsis; }
input::placeholder { color: #8c887f; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
input[type=text]:focus, select:focus { border-color: var(--yellow); outline-offset: 0; }

.btn { font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 999px; padding: 12px 22px; min-height: 48px; color: var(--cream); background: #3a3a3a; transition: transform .12s ease, background .2s, box-shadow .2s; display: inline-flex; align-items: center; justify-content: center; gap: 10px; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--yellow); color: #181818; font-weight: 800; box-shadow: 0 8px 24px rgba(255,201,40,.22); }
.btn.primary:hover { background: #ffd24f; }
.btn.primary:disabled { background: #4a4637; color: #b3ad93; box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1.5px solid #5a5a5a; }
.btn.ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn.big { width: 100%; max-width: 420px; min-height: 58px; font-size: 1.12rem; }
.btn.danger-solid { background: var(--pink); color: #fff; font-weight: 800; }
.link { background: none; border: 0; color: var(--yellow); font: inherit; text-decoration: underline; cursor: pointer; padding: 8px; min-height: 40px; }
.row { display: flex; gap: 10px; align-items: center; width: 100%; }
.row.center { justify-content: center; }

/* device check */
.check-grid { width: 100%; display: grid; gap: 18px; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 820px) { .check-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.check-form { display: flex; flex-direction: column; gap: 14px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #0e0e0e; border: 1px solid var(--line); box-shadow: 0 14px 44px rgba(0,0,0,.45); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.video-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); font-weight: 600; background: repeating-linear-gradient(45deg, #151515, #151515 12px, #191919 12px, #191919 24px); }
.meter-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.meter-label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.meter { position: relative; flex: 1; height: 14px; border-radius: 99px; background: #111; border: 1px solid var(--line); overflow: hidden; }
.meter-bar { height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal) 0 62%, var(--yellow) 62% 88%, var(--pink) 88%); clip-path: inset(0 100% 0 0); transition: clip-path .06s linear; }
.meter-tick { position: absolute; top: 0; bottom: 0; left: 62%; width: 2px; background: rgba(255,255,255,.18); }
.seg { display: flex; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1; text-align: center; padding: 12px; min-height: 48px; border: 1.5px solid #5a5a5a; border-radius: 12px; cursor: pointer; font-weight: 600; display: grid; place-items: center; }
.seg input:checked + label { background: var(--yellow); color: #181818; border-color: var(--yellow); }
.seg input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 2px; }
.warnings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.warnings li { display: flex; gap: 10px; border-radius: 12px; padding: 10px 12px; font-size: .92rem; background: rgba(255,9,105,.12); border: 1px solid rgba(255,9,105,.45); }
.warnings li.info { background: rgba(69,215,221,.10); border-color: rgba(69,215,221,.4); }
.warnings li.ok { background: rgba(69,215,221,.10); border-color: rgba(69,215,221,.4); }
.warnings li::before { content: "!"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.warnings li.info::before { content: "i"; background: var(--teal); color: #111; }
.warnings li.ok::before { content: "\2713"; background: var(--teal); color: #111; }

/* room: waiting + live share one persistent #stage so the iframe is never reloaded */
.room { position: relative; min-height: 100%; }
.wait-head { max-width: 640px; margin: 0 auto; padding: max(26px, env(safe-area-inset-top)) 22px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.stage { position: relative; background: #0b0b0b; }
.stage-frame { position: absolute; inset: 0; }
.stage-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #0b0b0b; }
.room[data-phase="waiting"] .stage { width: min(calc(100% - 44px), 640px); aspect-ratio: 16 / 10; margin: 10px auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 0 6px rgba(255,201,40,.08), 0 20px 60px rgba(0,0,0,.5); }
.room[data-phase="waiting"] .live-top, .room[data-phase="waiting"] .live-bar { display: none; }
.wait-foot { max-width: 640px; margin: 0 auto; padding: 8px 22px max(30px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.status { margin: 0; display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 1.05rem; }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255,201,40,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(255,201,40,0); } 100% { box-shadow: 0 0 0 0 rgba(255,201,40,0); } }

.room[data-phase="live"] { position: fixed; inset: 0; min-height: 0; background: #000; z-index: 5; display: flex; flex-direction: column; }
.room[data-phase="live"] .wait-head, .room[data-phase="live"] .wait-foot { display: none; }
.room[data-phase="live"] .stage { position: relative; flex: 1 1 auto; min-height: 0; width: auto; aspect-ratio: auto; margin: 0; border: 0; border-radius: 0; }
.live-top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; gap: 8px; flex-wrap: wrap; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left)); background: linear-gradient(#000a, transparent); pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; padding: 6px 12px; font-size: .82rem; font-weight: 600; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); }
.chip.rec { color: #fff; }
.chip.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.chip.warn { background: var(--yellow); color: #151515; border-color: transparent; }
.live-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 14px; padding: 14px 14px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, #000b); }
.btn.round { min-width: 56px; height: 56px; padding: 0 20px; border-radius: 99px; background: rgba(40,40,40,.85); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.round.danger { background: var(--pink); border-color: transparent; color: #fff; }
.btn.round[aria-pressed="true"] { background: var(--yellow); color: #181818; border-color: transparent; }
.ic { width: 24px; height: 24px; fill: currentColor; }
.btn .mic-off { display: none; }
.btn[aria-pressed="true"] .mic-off { display: block; }
.btn[aria-pressed="true"] .mic-on { display: none; }
@media (orientation: landscape) and (max-height: 520px) {
  .live-bar { left: auto; right: 0; top: 0; bottom: 0; flex-direction: column; justify-content: center; padding: 10px max(14px, env(safe-area-inset-right)) 10px 14px; background: linear-gradient(90deg, transparent, #000b); }
  .btn.round span { display: none; }
  .btn.round { padding: 0; width: 56px; }
  .live-top { right: 90px; }
  .wait-head { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .wait-head .lead { display: none; }
  .room[data-phase="waiting"] .stage { width: min(calc(100% - 44px), 420px); }
}

/* In-flow banners: they take space in the layout (pushing content down) instead of floating over it. */
.banners { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.banners > * { width: min(100% - 28px, 560px); margin: 10px auto 0; }
.banners > [hidden] { display: none !important; }
body:not([data-state="live"]) > .banners { padding-top: env(safe-area-inset-top); }
.banners:not(:has(> :not([hidden]))) { display: none; }
.room > .banners { flex: none; background: #0b0b0b; padding: env(safe-area-inset-top) max(0px, env(safe-area-inset-right)) 10px max(0px, env(safe-area-inset-left)); }
.room > .banners > * { margin-top: 8px; }
.host-msg { display: flex; align-items: flex-start; gap: 8px; background: var(--yellow); color: #181818; border-radius: 16px; padding: 10px 6px 10px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.35); text-align: left; animation: rise .3s ease both; max-height: 34vh; overflow-y: auto; }
.host-msg-body { flex: 1; min-width: 0; }
.host-msg-from { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.host-msg p { margin: 2px 0 0; font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.host-msg .x { flex: none; width: 44px; height: 44px; margin: -4px 0; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: #181818; }
.host-msg[data-kind="urgent"] { background: var(--pink); color: #fff; }
.host-msg[data-kind="urgent"] .x, .host-msg[data-kind="urgent"] .host-msg-from { color: #fff; }
.studio-note { border-radius: 14px; padding: 10px 16px; font-size: .95rem; font-weight: 600; text-align: center; background: #2d2a1f; border: 1px solid rgba(255,201,40,.55); color: var(--cream); display: flex; align-items: center; justify-content: center; gap: 10px; }
.studio-note[hidden] { display: none; }
.studio-note[data-kind="wait"]::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid rgba(255,201,40,.35); border-top-color: var(--yellow); animation: spin .9s linear infinite; }
.studio-note[data-kind="bad"] { background: rgba(255,9,105,.18); border-color: rgba(255,9,105,.6); }
.spin { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: currentColor; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (orientation: landscape) and (max-height: 520px) {
  .host-msg { padding-top: 6px; padding-bottom: 6px; max-height: 40vh; }
  .host-msg p { font-size: .95rem; }
  .studio-note { padding: 6px 14px; font-size: .88rem; }
}
.host-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.host-log li { background: var(--panel); border-left: 4px solid var(--yellow); border-radius: 10px; padding: 8px 12px; text-align: left; font-size: .95rem; }

.dlg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 20px; }
.dlg-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; max-width: 380px; width: 100%; text-align: center; }
.dlg-card h2 { margin: 0 0 6px; }
.dlg-card p { color: var(--mute); margin: 0 0 16px; }

.stage-wait { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none; color: var(--mute); font-weight: 600; background: radial-gradient(60% 60% at 50% 50%, rgba(255,201,40,.10), transparent 70%); }
.stage-wait img { width: 84px; height: 84px; border-radius: 22px; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.07); box-shadow: 0 0 40px rgba(255,201,40,.35); } }
.room[data-phase="waiting"] .stage-wait { display: flex; }

h1:focus { outline: none; }
.status { text-align: left; max-width: 100%; }
