:root {
  --bg: #2B2B2A; --card: #323230; --card2: #3B3A37;
  --text: #FFF0DA; --faint: rgba(255, 240, 218, .6); --line: rgba(255, 240, 218, .13);
  --accent: #F4B029; --on-accent: #2B2B2A; --crit: #E29A8A;
  --ui: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 500 15px/1.5 var(--ui);
  display: grid; place-items: start center;
  padding-block: 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.card { width: 100%; max-width: 600px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px; display: grid; gap: 14px; }
.brand { display: flex; gap: 14px; align-items: center; }
.tile { width: 46px; height: 46px; border-radius: 11px; background: var(--card2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 3px; }
.tile i { width: 3px; border-radius: 2px; background: var(--text); }
.tile i:nth-child(1) { height: 4px; background: var(--accent); opacity: .5; }
.tile i:nth-child(2) { height: 4px; background: var(--accent); opacity: .7; }
.tile i:nth-child(3) { height: 12px; background: var(--accent); }
.tile i:nth-child(4) { height: 22px; background: var(--accent); }
.tile i:nth-child(5) { height: 26px; }
.tile i:nth-child(6) { height: 18px; }
.word { font-size: 26px; font-weight: 700; line-height: 1.1; }
.word b { color: var(--accent); }
.sub, .note, footer { color: var(--faint); font-size: 13px; }
h1 { font-size: 18px; margin: 8px 0 0; text-wrap: balance; }
.lead { margin: 0; color: var(--faint); }
form, #result { display: grid; gap: 8px; }
label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
textarea, input {
  width: 100%; background: var(--card2); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font: 13px/1.45 var(--mono); resize: vertical; word-break: break-all;
}
input { font-size: 17px; letter-spacing: .04em; color: var(--accent); }
textarea:focus, input:focus { outline: none; border-color: var(--accent); }
button {
  justify-self: start; border: 1px solid var(--line); border-radius: 999px; padding: 11px 26px;
  font: 600 15px var(--ui); cursor: pointer; background: transparent; color: var(--text);
}
#go { background: var(--accent); color: var(--on-accent); border-color: var(--accent); margin-top: 8px; }
button:disabled { opacity: .6; cursor: progress; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.error { color: var(--crit); margin: 0; font-weight: 600; }
footer { font-family: var(--mono); color: var(--accent); font-size: 12px; text-align: right; }
@media (max-width: 480px) { .card { padding: 22px 18px; } }
a { color: var(--accent); }
