/* IONA LIVE — the "See & talk to Iona" frame. Uses the site's own colours (style.css :root). Built 14 Oct 2026. */
.il-dot{width:9px;height:9px;border-radius:50%;background:#37d67a;box-shadow:0 0 10px #37d67a;animation:pulse 1.6s infinite;flex:none}

.iona-live{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.86);backdrop-filter:blur(6px);padding:20px}
.iona-live.open{display:flex}
.il-frame{position:relative;width:min(440px,100%);height:min(86vh,780px);border-radius:26px;overflow:hidden;background:#000;
  box-shadow:0 30px 80px rgba(0,0,0,.6),0 0 0 1px var(--line)}
.il-frame video,.il-frame .il-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% 30%;background:#000}
.il-frame .il-poster{z-index:1}
.il-frame .il-poster[hidden]{display:none}
.il-shade{position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(to bottom,rgba(0,0,0,.55) 0,rgba(0,0,0,0) 22%,rgba(0,0,0,0) 55%,rgba(0,0,0,.78) 100%)}

.il-top{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;align-items:center;gap:10px;padding:16px 16px 0 18px}
.il-state{display:inline-flex;align-items:center;gap:8px;padding:.42rem .85rem;border-radius:100px;background:rgba(0,0,0,.55);
  border:1px solid var(--line);color:#fff;font-size:.8rem;font-weight:600;letter-spacing:.01em}
.il-state::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--grey)}
.iona-live[data-state="connecting"] .il-state::before{background:var(--orange);animation:pulse 1s infinite}
.iona-live[data-state="live"] .il-state::before{background:#37d67a;box-shadow:0 0 10px #37d67a;animation:pulse 1.6s infinite}
.il-timer{margin-left:auto;color:#fff;font-family:var(--display);font-weight:700;font-size:.95rem;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.il-close{width:42px;height:42px;border-radius:50%;background:rgba(0,0,0,.55);border:1px solid var(--line);color:#fff;font-size:1.6rem;line-height:1;
  display:flex;align-items:center;justify-content:center;flex:none}
.il-close:hover{border-color:#fff}

.il-bottom{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:0 18px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center}
.il-msg{background:rgba(0,0,0,.66);border:1px solid var(--line);border-radius:16px;padding:.8rem 1rem;color:#fff;font-size:.95rem;line-height:1.5;max-width:100%}
.il-msg a{color:var(--orange);font-weight:700;white-space:nowrap}
.il-msg[hidden]{display:none}
.il-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;width:100%}
.il-actions .btn{justify-content:center}
.il-actions [hidden]{display:none}
.il-start{min-width:220px}
.il-end{background:#d93636;color:#fff;box-shadow:0 14px 34px rgba(217,54,54,.4)}
.il-end:hover{background:#ee4a4a;transform:translateY(-2px)}
.il-mute[aria-pressed="true"]{background:#fff;color:#111}
.il-sound{position:absolute;z-index:4;left:50%;top:72px;transform:translateX(-50%);padding:.55rem 1.15rem;font-size:.9rem;white-space:nowrap;box-shadow:0 8px 22px rgba(0,0,0,.35)}
.il-sound[hidden]{display:none}
.il-note{font-size:.74rem;color:rgba(255,255,255,.72);line-height:1.45;max-width:340px}

/* phones: the frame fills the screen, Iona's face full height */
@media (max-width:600px){
  .iona-live{padding:0;background:#000}
  .il-frame{width:100%;height:100%;height:100dvh;border-radius:0;box-shadow:none}
  .il-top{padding-top:calc(14px + env(safe-area-inset-top))}
}
@media (prefers-reduced-motion:reduce){.il-dot,.il-state::before{animation:none!important}}

/* computers (15 Oct 2026, WEB PASTE 5): Anam sends Iona as a wide 3:2 picture (1152x768).
   On a wide screen show all of it, big, like a video call, instead of trimming it to a phone shape. */
@media (min-width:900px) and (min-height:520px) and (orientation:landscape){
  .iona-live{background:rgba(0,0,0,.8);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);padding:24px}
  .il-frame{width:min(1200px,92vw,calc(86vh * 1.5));height:auto;aspect-ratio:3/2;border-radius:22px}
  .il-frame video,.il-frame .il-poster{object-position:50% 40%}
  .il-shade{background:linear-gradient(to bottom,rgba(0,0,0,.5) 0,rgba(0,0,0,0) 15%,rgba(0,0,0,0) 66%,rgba(0,0,0,.75) 100%)}
  .il-top{padding:20px 20px 0 22px}
  .il-bottom{padding:0 28px 24px}
  .il-note{max-width:560px}
}
