/* Keycube typewriter – styles */

:root { --bg:#787f87; --orange:#FE5D26; --dark:#2b2f33; --white:#fff; }
* { box-sizing: border-box; }
body { margin:0; min-height:100vh; background:var(--bg); color:var(--white);
       font-family:'Inter Tight', system-ui, sans-serif; font-weight:500;
       display:flex; justify-content:center; padding:48px 16px; }
main { width:100%; max-width:760px; }

/* Big one-line logo */
h1 { font-weight:900; font-size:clamp(3.5rem, 12vw, 6rem); line-height:.85; letter-spacing:-.05em; margin:0 0 36px; }
h1 { color:var(--orange); }

label { display:block; font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
        color:rgba(255,255,255,.75); margin-bottom:8px; }
textarea { width:100%; min-height:100px; padding:16px; font:inherit; font-size:1.1rem; resize:vertical;
           border:none; border-radius:16px; background:var(--white); color:var(--dark); }
textarea:focus { outline:3px solid var(--orange); outline-offset:2px; }
.hint { font-size:.8rem; color:rgba(255,255,255,.7); margin-top:8px; }

.row { display:flex; gap:12px; align-items:center; margin:16px 0 32px; flex-wrap:wrap; }
button { padding:12px 24px; font:inherit; font-weight:900; font-size:1rem; border:none; border-radius:999px;
         cursor:pointer; background:var(--orange); color:var(--white); box-shadow:0 4px 0 #b83a0e;
         transition:transform .05s; }
button:active { transform:translateY(3px); box-shadow:0 1px 0 #b83a0e; }
button.secondary { background:transparent; color:var(--white); box-shadow:inset 0 0 0 2px var(--white); }
.check { display:flex; align-items:center; gap:6px; margin:0; cursor:pointer; color:var(--white);
         font-size:.9rem; text-transform:none; letter-spacing:0; }
input[type=checkbox], input[type=range] { accent-color:var(--orange); }
input[type=color] { width:36px; height:36px; padding:0; border:none; border-radius:8px; background:none; cursor:pointer; }
select { padding:10px 14px; font:inherit; font-size:.9rem; border:none; border-radius:999px;
         background:var(--white); color:var(--dark); cursor:pointer; }
.speed { display:flex; align-items:center; gap:8px; margin-left:auto; }

canvas { display:block; margin:0 auto; width:auto; height:auto; max-width:100%; max-height:70vh;
         border-radius:16px; box-shadow:0 10px 30px rgba(0,0,0,.25); }
.status { font-size:.9rem; font-weight:700; margin-top:10px; min-height:1.2em; }
.status.rec::before { content:'● '; color:#ff4d4d; }
#result { display:none; margin-top:32px; }
#result video { display:block; margin:0 auto; max-width:100%; max-height:70vh; border-radius:16px; background:#000; }
#result a { display:inline-block; margin-top:12px; color:var(--orange); font-weight:900; }
