:root{color-scheme:dark;--bg:#0E0F11;--ink:#F2F3F5;--muted:#A9AEB8;--accent:#F2F3F5;--accent-hover:#E4E5E8;--accent-ink:#0E0F11;--paper:#1A1D22;--line:#33373F;--surface-hover:#33373F;--space:8px;--radius:0px;--small:14px;--body:16px;--heading:clamp(26px,5vw,34px)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:var(--body)/1.5 "Golos Text",system-ui,sans-serif}header,footer{max-width:1120px;margin:auto;padding:calc(var(--space)*4);display:flex;align-items:center;justify-content:space-between;gap:calc(var(--space)*2)}a{color:var(--accent);text-underline-offset:4px}.brand{display:flex;align-items:center;gap:var(--space);color:var(--ink);font-weight:750;text-decoration:none}.brand-mark{width:var(--space);height:var(--space);border-radius:50%;background:var(--accent)}.header-note,footer,#host-note{color:var(--muted);font-size:var(--small)}main{max-width:800px;min-height:70vh;margin:auto;padding:calc(var(--space)*7) calc(var(--space)*4)}h1{font-size:var(--heading);line-height:1.08;letter-spacing:-.04em;margin:calc(var(--space)*3) 0 calc(var(--space)*5);font-weight:700;overflow-wrap:anywhere}form{max-width:440px}label{display:block;margin-bottom:var(--space);font-size:var(--small);font-weight:600}input,button{font:inherit;min-height:48px;border-radius:var(--radius)}input{width:100%;background:var(--paper);border:1px solid var(--line);padding:var(--space) calc(var(--space)*2);color:var(--ink)}button{border:1px solid transparent;background:var(--accent);color:var(--accent-ink);padding:var(--space) calc(var(--space)*3);cursor:pointer;font-weight:600}form button{margin-top:calc(var(--space)*2)}button:hover:not(:disabled){background:var(--accent-hover)}.secondary:hover:not(:disabled){background:var(--surface-hover)}a:hover{color:var(--accent-hover)}input:hover{border-color:var(--muted)}input::placeholder{color:var(--muted)}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:wait}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}.secondary{background:transparent;border-color:var(--line);color:var(--ink)}.room-top,.actions,.share-row{display:flex;gap:calc(var(--space)*2);align-items:center;justify-content:space-between}.room-top{font-size:var(--small);color:var(--muted)}#status.live{color:var(--accent);font-weight:700}#count{font-variant-numeric:tabular-nums}.stage{padding:calc(var(--space)*4);background:var(--paper);border-radius:var(--radius);text-align:center}.stage svg{width:64px;height:64px;fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round}.stage p{color:var(--muted);margin:calc(var(--space)*2) 0 0}.actions{justify-content:flex-start;flex-wrap:wrap;margin:calc(var(--space)*3) 0 calc(var(--space)*4)}#share{border-top:1px solid var(--line);padding-top:calc(var(--space)*3)}.share-row{margin-bottom:calc(var(--space)*2)}.share-row input{min-width:0}#error{border:1px solid var(--line);padding:calc(var(--space)*2);max-width:75ch}audio{width:100%;margin-top:calc(var(--space)*2)}[hidden]{display:none!important}footer{border-top:1px solid var(--line)}@media(max-width:600px){header,footer{padding:calc(var(--space)*3)}main{padding:calc(var(--space)*5) calc(var(--space)*3)}.header-note{display:none}.share-row{flex-wrap:wrap}.share-row button{width:100%}.actions button{flex-grow:1}footer{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){button:active{transform:none}}

#create-key-field{margin-top:calc(var(--space)*2)}

.unknown-page{min-height:100dvh;display:grid;place-items:center;padding:calc(var(--space)*3);text-align:center}
.unknown-page p{margin:0}

::selection{background:var(--accent);color:var(--accent-ink)}

.create-page{min-height:100dvh;display:flex;flex-direction:column}
.create-page header{width:100%;justify-content:flex-end}
.create-page header:not(:has(button:not([hidden]))){display:none}
.create-page main{width:100%;min-height:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}
.create-page #login,.create-page #create,.create-page #error{width:100%;max-width:440px}
.create-page h1{margin-top:0}

#login-form button{display:block;margin-left:auto;margin-right:auto}

body:not(.create-page):not(.unknown-page){min-height:100dvh;display:flex;align-items:center}
body:not(.create-page) header{display:none}
body:not(.create-page) main{width:100%;max-width:640px;min-height:0}
h1{font-family:"Unbounded","Golos Text",sans-serif;letter-spacing:-.03em}
#room h1{margin-top:calc(var(--space)*3);margin-bottom:calc(var(--space)*4)}
#room .actions{margin-bottom:0}
#share{margin-top:calc(var(--space)*5)}
.share-row{margin-bottom:0}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:100 900;font-display:swap;src:url("/fonts/golos-text-latin-wght-normal.woff2") format("woff2");unicode-range:U+0000-00FF}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:100 900;font-display:swap;src:url("/fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:100 900;font-display:swap;src:url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2");unicode-range:U+0000-00FF}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:100 900;font-display:swap;src:url("/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2");unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}

#create{text-align:center}
#create-form{margin-inline:auto}
#create-form button{display:block;margin-inline:auto}

#error,.create-page #error{position:fixed;top:calc(env(safe-area-inset-top) + var(--space)*3);left:50%;transform:translateX(-50%);z-index:10;width:calc(100% - var(--space)*6);max-width:440px;margin:0;background:var(--paper);color:var(--ink);text-align:center;overflow-wrap:anywhere}

#count{margin-left:auto;display:inline-flex;align-items:center;padding:var(--space) calc(var(--space)*2);background:var(--paper);border:1px solid var(--line);color:var(--muted)}

#room-title{text-align:center}
#room .actions{justify-content:center}
#join{display:inline-flex;align-items:center;justify-content:center;gap:calc(var(--space)*2);flex-wrap:wrap}
#join #count{margin:0;padding:0;border:0;background:transparent;color:inherit;font-size:var(--small);font-weight:400}
.room-top:has(#status[hidden]){display:none}

#room > #count{display:block;margin:calc(var(--space)*2) 0 0;padding:0;border:0;background:transparent;color:var(--muted);font-size:var(--small);text-align:center}
