/* Live rooms - prepared by Claude (Anthropic, Claude Opus 5.5), 2026-11-25
   Looks: nkh (nkhcards.com), binder (nicksbinder.com), family (plain, warm). Host screen: big colored buttons. */
:root{--bg:#0B0C10;--panel:#11141C;--line:#1E2230;--edge:#2A2F3F;--ink:#E9ECF2;--muted:#A9B0C2;--accent:#3DE0FF;--accent-ink:#0B0C10;--name:#8CEEFF;
  --font:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;--head:"Space Grotesk",Inter,system-ui,sans-serif;--r:16px}
body[data-theme=binder]{--bg:#323a47;--panel:#3c4452;--line:#525c6d;--edge:#6c778a;--ink:#eef1f6;--muted:#bac3d2;--accent:#9db4e0;--accent-ink:#141b2a;--name:#bacaeb;
  --font:Figtree,system-ui,sans-serif;--head:"Bricolage Grotesque",system-ui,sans-serif}
body[data-theme=family]{--bg:#fff8ef;--panel:#ffffff;--line:#f1dfc6;--edge:#d9c2a3;--ink:#2b2118;--muted:#6b5a48;--accent:#1fae4f;--accent-ink:#ffffff;--name:#b35400;
  --font:Nunito,system-ui,sans-serif;--head:Nunito,system-ui,sans-serif}
*{box-sizing:border-box}
html,body{margin:0;min-height:100dvh;background:var(--bg);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased}
button,input{font:inherit}
.hidden{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- site headers ---------- */
.sitehead{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:20px;padding:0 20px;min-height:64px;border-bottom:1px solid var(--line);background:var(--bg)}
.live{display:none;margin-left:auto;align-items:center;gap:6px;font-size:14px;font-weight:800;color:#fff;background:#e5484d;padding:6px 12px;border-radius:99px}
.live.on{display:inline-flex}
.live:before{content:"";width:8px;height:8px;border-radius:50%;background:#fff;animation:pulse 1.4s infinite}
@keyframes pulse{50%{opacity:.3}}
.binder-head{justify-content:center;background:rgba(50,58,71,.95)}
.binder-head .live{position:absolute;right:16px}
.nb-logo{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-family:var(--head);font-weight:800;font-size:24px}
.nkh-bar{background:#0E1016;color:#A9B0C2;border-bottom:1px solid #1E2230;font-size:13px;padding:8px 16px;text-align:center}
.nkh-bar strong{color:#3DE0FF}
.nkh-head{min-height:76px;background:rgba(11,12,16,.94);flex-wrap:wrap}
.wordmark{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none}
.mark{font-size:30px;font-weight:900;letter-spacing:-5px;padding-right:5px;line-height:1}
.mark span{color:#3DE0FF}
.brand{font-size:16px;font-weight:800;letter-spacing:.15em}
.brand small{font-size:8px;display:block;letter-spacing:.27em}
.nkh-nav{display:flex;gap:20px;font-size:15px;font-weight:600}
.nkh-nav a{color:#A9B0C2;text-decoration:none}.nkh-nav a[aria-current]{color:#fff}
.family-head{justify-content:center;font-size:24px;font-weight:800;border-bottom-width:2px}
.family-head .live{position:absolute;right:16px}
@media (max-width:640px){.nkh-nav{display:none}.mark{font-size:25px}.brand{font-size:13px}}

/* ---------- buttons ---------- */
.btn{appearance:none;border:0;border-radius:20px;min-height:64px;padding:0 22px;font-weight:800;font-size:21px;cursor:pointer;color:#fff;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;transition:transform .05s}
.btn:active{transform:translateY(3px)}
.btn[disabled]{opacity:.55;cursor:default}
.b-green{background:#1fae4f;box-shadow:0 5px 0 #157a37}
.b-blue{background:#2f7bf5;box-shadow:0 5px 0 #1d55b3}
.b-yellow{background:#f2b42c;color:#1c1400;box-shadow:0 5px 0 #b07f12}
.b-red{background:#e5484d;box-shadow:0 5px 0 #a82d31}
.b-purple{background:#7c5cf5;box-shadow:0 5px 0 #5839c4}
.b-gray{background:#3a4256;box-shadow:0 5px 0 #222836}
.b-accent{background:var(--accent);color:var(--accent-ink);box-shadow:0 5px 0 rgba(0,0,0,.25)}
.b-ghost{background:transparent;color:var(--ink);border:2px solid var(--edge);box-shadow:none}
.btn.small{min-height:48px;font-size:17px;border-radius:14px}

/* ---------- guest + watch pages ---------- */
main{max-width:1280px;margin:0 auto;padding:16px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:24px}
.center{max-width:460px;margin:6vh auto 0;display:flex;flex-direction:column;gap:14px}
.center h1{font-family:var(--head);font-size:40px;line-height:1.05;margin:0}
.center p{margin:0;font-size:19px;line-height:1.45;color:var(--muted)}
.badge{align-self:flex-start;background:#e5484d;color:#fff;font-weight:800;font-size:15px;padding:6px 12px;border-radius:99px}
label.lbl{font-size:17px;font-weight:700}
.field{height:60px;border-radius:16px;border:2px solid var(--edge);background:var(--bg);color:var(--ink);font-weight:600;font-size:19px;padding:0 16px;width:100%}
body[data-theme=binder] .field{background:#2b323d}
body[data-theme=family] .field{background:#fff}
.note{font-size:15px;color:var(--muted);text-align:center;margin:0}
.layout{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.watchcol{flex:999 1 620px;min-width:0;display:flex;flex-direction:column;gap:12px}
.chatcol{flex:1 1 300px;min-width:0}
.stage{position:relative;display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.tile{position:relative;background:#000;border-radius:14px;overflow:hidden;aspect-ratio:4/3}
.tile.main{grid-column:1/-1;aspect-ratio:16/9}
.tile.speaking{outline:3px solid var(--accent)}
.tile video{width:100%;height:100%;object-fit:contain;background:#000}
.tile .tag{position:absolute;left:8px;bottom:8px;background:rgba(0,0,0,.65);color:#fff;font-size:14px;padding:3px 9px;border-radius:7px}
.tile .novideo{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#888;font-size:15px}
.waiting{aspect-ratio:16/9;border-radius:14px;background:var(--panel);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:18px;grid-column:1/-1}
.soundbtn{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:4}
.selfbox{position:fixed;right:12px;bottom:100px;width:min(30vw,150px);aspect-ratio:3/4;border-radius:14px;overflow:hidden;background:#000;border:2px solid var(--edge);z-index:6}
.selfbox video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.selfbox.back video{transform:none}
.titlebar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.titlebar h1{font-family:var(--head);font-size:28px;margin:0}
.count{color:var(--muted);font-size:15px}
.guestbar{position:sticky;bottom:0;display:flex;gap:10px;justify-content:center;flex-wrap:wrap;padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:var(--bg)}

/* chat */
.chat{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);display:flex;flex-direction:column;min-height:360px;max-height:70vh}
.chat h2{font-family:var(--head);font-size:20px;margin:0;padding:14px 16px;border-bottom:1px solid var(--line)}
.chatlist{flex:1;overflow-y:auto;padding:12px 14px;display:flex;flex-direction:column;gap:8px;font-size:17px;line-height:1.35}
.chatlist .m{background:var(--bg);border-radius:12px;padding:8px 12px;word-wrap:break-word}
body[data-theme=family] .chatlist .m{background:#fff;border:2px solid var(--line)}
.chatlist .m b{color:var(--name);margin-right:6px}
.chatlist .empty{color:var(--muted);font-size:15px}
.chatform{padding:12px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.chatrow{display:flex;gap:8px}
.chatrow .field{height:54px;font-size:17px}
.chatoff{padding:14px;color:var(--muted);font-size:15px;text-align:center}

/* ---------- host screen ---------- */
body.host{background:#111318;color:#fff;font-family:Inter,system-ui,sans-serif}
.h-start{min-height:100dvh;display:flex;flex-direction:column;padding:20px 18px calc(28px + env(safe-area-inset-bottom));max-width:560px;margin:0 auto}
.h-room{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:800}
.h-room i{width:14px;height:14px;border-radius:50%;background:var(--dot)}
.h-preview{margin-top:16px;flex:1;min-height:240px;border-radius:24px;background:#22262f;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#8a93a5;font-size:18px}
.h-preview video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.h-tip{margin:20px 0 0;font-size:20px;line-height:1.4;text-align:center;color:#e6e9ef}
.h-go{margin-top:18px;min-height:96px;font-size:32px;border-radius:24px;width:100%}
.h-live{position:fixed;inset:0;background:#000;overflow:hidden}
.h-live #self{position:absolute;inset:0}
.h-live #self video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.h-live #self.back video{transform:none}
.h-top{position:absolute;left:12px;right:12px;top:calc(12px + env(safe-area-inset-top));display:flex;gap:8px;align-items:center;z-index:3;flex-wrap:wrap}
.pill{background:rgba(0,0,0,.6);color:#fff;padding:8px 14px;border-radius:99px;font-size:16px;font-weight:700}
.pill.red{background:#e5484d}
.h-guests{position:absolute;right:12px;top:calc(64px + env(safe-area-inset-top));display:flex;flex-direction:column;gap:8px;z-index:3;max-height:45vh;overflow:hidden}
.h-guests .tile{width:88px;aspect-ratio:3/4;border:2px solid rgba(255,255,255,.3)}
.h-guests .tile .tag{font-size:11px;left:4px;bottom:4px;padding:2px 5px}
.h-chat{position:absolute;left:12px;right:110px;bottom:calc(250px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:6px;z-index:3;max-height:34vh;overflow:hidden;justify-content:flex-end}
.h-chat button{align-self:flex-start;text-align:left;max-width:100%;background:rgba(0,0,0,.62);color:#fff;border:0;border-radius:14px;padding:8px 12px;font-size:16px;line-height:1.35;cursor:pointer}
.h-chat button b{color:#ffd27a;margin-right:6px}
.h-bottom{position:absolute;left:0;right:0;bottom:0;z-index:4;padding:40px 14px calc(22px + env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(0,0,0,.88) 30%);display:flex;flex-direction:column;gap:12px;max-width:640px;margin:0 auto}
.h-bottom .btn{width:100%;min-height:72px;font-size:24px}
.h-row{display:flex;gap:12px}
.h-more{align-self:center;color:#e6e9ef;background:transparent;border:2px solid rgba(255,255,255,.35);border-radius:99px;font-size:18px;font-weight:700;padding:10px 22px;cursor:pointer}
.sheet-bg{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:30;display:flex;align-items:flex-end;justify-content:center}
.sheet{width:100%;max-width:560px;background:#fff;color:#14171c;border-radius:28px 28px 0 0;padding:26px 22px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;max-height:92dvh;overflow:auto}
.sheet h2{margin:0;font-size:28px;font-weight:800;text-align:center}
.sheet p{margin:0;font-size:18px;color:#454b57;text-align:center;line-height:1.4}
.sheet .btn{width:100%}
.sheet .plain{background:#eef0f4;color:#14171c;box-shadow:none}
.sheet .outline{background:#fff;color:#14171c;border:3px solid #14171c;box-shadow:none}
.qr{align-self:center;width:230px;height:230px}
.qr img,.qr svg{width:100%;height:100%;image-rendering:pixelated}
.linktext{font-size:15px;color:#454b57;text-align:center;word-break:break-all}
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-radius:20px;border:3px solid #14171c}
.toggle-row b{font-size:22px;display:block}.toggle-row span{font-size:16px;color:#454b57}
.toggle{width:96px;min-height:54px;border-radius:99px;border:0;font-weight:800;font-size:20px;color:#fff;cursor:pointer}
.toggle.on{background:#1fae4f}.toggle.off{background:#8a93a5}
.modal{align-items:center}
.modal .sheet{border-radius:28px;margin:0 16px;text-align:center}
.modal h2{font-size:32px}
.h-ended{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center}
.h-ended h1{font-size:34px;margin:0}.h-ended p{font-size:19px;color:#c9cfda;margin:0}
.toast{position:fixed;left:50%;top:16px;transform:translateX(-50%);background:#14171c;color:#fff;border:1px solid #333;padding:12px 18px;border-radius:12px;z-index:60;display:none;font-size:16px;max-width:90vw;text-align:center}
.toast.on{display:block}
/* ---- TV mode (2026-11-25) ---- */
.tvbox{margin:12px 0;padding:12px;border-radius:12px;background:rgba(255,255,255,.06);font-size:14px;line-height:1.4;text-align:left}
.tvbox .btn{margin-top:8px}
.tvbody{margin:0;background:#000;color:#fff;overflow:hidden;height:100dvh}
.tvbody.nocursor,.tvbody.nocursor *{cursor:none!important}
.tvstart{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:4vh 6vw;gap:2vh}
.tvstart h1{font-size:clamp(32px,6vw,80px);margin:0}
.tvstart p{font-size:clamp(16px,2vw,26px);color:#bbb;max-width:900px;margin:0}
.tvstart .tvhint{font-size:clamp(14px,1.4vw,20px);color:#888}
.tvbtn{font-size:clamp(22px,3vw,40px)!important;padding:.6em 2.2em!important;width:auto!important}
.tvbtn:focus{outline:4px solid #fff;outline-offset:4px}
.tvlive{display:inline-block;background:#e5484d;color:#fff;font-weight:800;border-radius:99px;padding:.3em .9em;font-size:clamp(14px,1.6vw,24px)}
.tvroom{position:relative;height:100dvh;width:100vw}
.tvstage{display:grid;gap:8px;height:100dvh;width:100vw;padding:8px;box-sizing:border-box;background:#000}
.tvstage .tile,.tvstage .tile.main{aspect-ratio:auto;width:100%;height:100%;min-height:0;grid-column:auto;border-radius:12px}
.tvstage .tile video{object-fit:contain}
.tvstage .tile .tag{font-size:clamp(14px,1.8vw,28px);left:14px;bottom:14px;padding:4px 14px;border-radius:10px}
.tvstage .tile.speaking{outline:4px solid #3DE0FF;outline-offset:-4px}
.tvstage .waiting{grid-column:1/-1;grid-row:1/-1;aspect-ratio:auto;height:100%;font-size:clamp(20px,3vw,40px);background:#0b0b0b;border:0}
.tvbar{position:absolute;top:18px;left:18px;display:flex;gap:10px;align-items:center;pointer-events:none}
.tvbar .tvlive{opacity:.9}
.tvcount{background:rgba(0,0,0,.6);border-radius:99px;padding:.3em .9em;font-size:clamp(14px,1.6vw,24px)}
.tvroom .soundbtn{bottom:40px;font-size:24px}
