:root { color-scheme: dark; font: 15px/1.6 system-ui, sans-serif; background: #0c111b; color: #e7edf8; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 4vw; border-bottom: 1px solid #263143; }
.brand { color: inherit; text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.5px; }
.brand span, .eyebrow { font-size: 11px; letter-spacing: 2px; color: #75ddc3; }
.brand span { margin-left: 10px; }
#status { color: #b3bfd1; font-size: 13px; overflow-wrap: anywhere; }
main { width: min(1440px, 94vw); margin: 30px auto; }
.panel { width: min(560px, 100%); margin: 9vh auto; background: #131d2d; padding: 38px; border: 1px solid #2c3b50; border-radius: 20px; }
h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -1px; margin: 10px 0 20px; }
p { color: #b3bfd1; }
label { display: block; font-size: 13px; }
input, button { font: inherit; border-radius: 8px; border: 1px solid #3d506d; padding: 10px 14px; }
input { color: #e7edf8; background: #0c1422; min-width: 0; }
#invite { display: block; width: 100%; margin: 8px 0 14px; }
button { cursor: pointer; background: #22334d; color: #e7edf8; }
button:disabled { opacity: .5; cursor: default; }
button:hover:not(:disabled) { background: #30476a; }
.primary { width: 100%; background: #76ddc3; color: #0b2220; font-weight: 700; border: none; }
.primary:hover:not(:disabled) { background: #a2efd8; }
:focus-visible { outline: 2px solid #76ddc3; outline-offset: 3px; }
.hint { font-size: 12px; color: #97a6bd; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
nav label { display: flex; align-items: center; gap: 6px; }
#stats { margin-right: auto; font-size: 12px; color: #97a6bd; }
#screen-wrap { display: flex; align-items: center; justify-content: center; background: #000; height: min(70vh, 900px); overflow: hidden; border: 1px solid #263143; border-radius: 10px; }
#screen-wrap:fullscreen { height: 100vh; width: 100vw; }
canvas { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; touch-action: none; }
#text-form { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
#text { flex: 1; }
footer { padding: 16px; text-align: center; color: #74839a; font-size: 12px; }
[hidden] { display: none !important; }
@media(max-width: 600px) { header { flex-direction: column; align-items: flex-start; gap: 6px; } .panel { padding: 24px; margin: 5vh auto; } #text-form { flex-wrap: wrap; } #text-form label { width: 100%; } }
