:root { --bg:#0f1115; --panel:#171a21; --panel2:#1f2330; --line:#2a2f3d; --text:#e9ecf1; --muted:#9aa3b5; --accent:#f2c94c; --ink:#0f1115; --red:#ff6b6b; --ok:#58d68d; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif; -webkit-text-size-adjust: 100%; }
main { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
button { appearance: none; border: 0; font: inherit; font-weight: 600; color: var(--text); background: var(--panel2); border-radius: 14px; padding: 14px 16px; min-height: 50px; cursor: pointer; }
button.primary { background: var(--accent); color: var(--ink); }
button.ghost { background: transparent; border: 1px solid var(--line); }
button:disabled { opacity: .45; }
.muted { color: var(--muted); } .small { font-size: 14px; } .tiny { font-size: 12px; }
.center { text-align: center; }

/* invite */
.brand { font-weight: 800; letter-spacing: -.02em; font-size: 22px; margin: 6px 0 22px; }
.notif { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.invite { background: #fff; color: #1a1d24; border-radius: 18px; padding: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.invite .bar { height: 5px; border-radius: 3px; background: #3a7bd5; margin: -4px 0 14px; width: 48px; }
.invite h1 { font-size: 21px; margin: 0 0 4px; }
.invite .when { font-weight: 600; margin: 2px 0; }
.invite .who { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.invite .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.invite button { background: #eef1f6; color: #1a1d24; min-height: 46px; }
.invite button.yes { background: #1f8f4e; color: #fff; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.moved { margin-top: 12px; background: #fff7e0; color: #6b4e00; border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.party { margin-top: auto; padding-top: 28px; text-align: center; }
.party a { color: var(--muted); font-size: 14px; }

/* meeting room */
.room { flex: 1; display: flex; flex-direction: column; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.live { font-size: 13px; color: var(--red); font-weight: 700; } .live::before { content: "● "; }
.who-big { display: flex; flex-direction: column; align-items: center; margin: 10px 0 6px; }
.face { width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; font-weight: 800; color: #fff; position: relative; }
.face.speaking::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--accent); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: .4; } }
.name { font-weight: 700; margin-top: 10px; } .title { font-size: 13px; color: var(--muted); }
.caption { min-height: 120px; font-size: 21px; line-height: 1.35; font-weight: 500; text-align: center; padding: 14px 6px; }
.caption.thinking { color: var(--muted); font-size: 18px; }
.you { text-align: center; color: var(--muted); font-size: 15px; min-height: 22px; margin-bottom: 8px; }
.marks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.marks button { font-size: 15px; min-height: 46px; }
.marks button.on { outline: 2px solid var(--accent); }
.mic { width: 88px; height: 88px; border-radius: 50%; margin: 6px auto 8px; display: grid; place-items: center; font-size: 34px; background: var(--accent); color: var(--ink); }
.mic.rec { background: var(--red); color: #fff; animation: pulse 1s ease-in-out infinite; }
.hint { text-align: center; font-size: 13px; color: var(--muted); }
.typebar { display: flex; gap: 8px; margin-top: 10px; }
.typebar input { flex: 1; font: inherit; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); min-height: 50px; }
.typebar button { min-width: 64px; }
.foot { display: flex; justify-content: space-between; margin-top: 14px; }
.foot button { min-height: 40px; padding: 8px 12px; font-size: 14px; }

/* debrief */
.score { text-align: center; padding: 18px 0 8px; }
.score .big { font-size: 34px; font-weight: 800; }
.score .verdict { font-size: 19px; font-weight: 700; margin-top: 4px; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 14px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 22px; }
.moment { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.moment.flagged { border-color: #3d6b4f; } .moment.missed { border-color: #6b3d3d; }
.moment .tac { font-weight: 700; } .moment .q { font-style: italic; color: var(--muted); margin: 6px 0; }
.moment .tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tag.good { color: var(--ok); } .tag.bad { color: var(--red); }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 20px 0 6px; }
ul { padding-left: 20px; } li { margin: 4px 0; }
.notes { background: #fffbe6; color: #3b3200; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.actions { display: grid; gap: 8px; margin-top: 18px; }
