/* Letisztult, mobilra optimalizált megjelenés */
:root{color-scheme:light;--bg:#f5f6f8;--panel:#fff;--line:#e2e5e9;--text:#20242b;--muted:#68717d;--red:#c93636;--red-dark:#a92727;--green:#18794e}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
.topbar,main{width:min(760px,calc(100% - 28px));margin-inline:auto}
.topbar{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
.brand-mark{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:10px;background:var(--red);color:#fff;font-size:21px}
.eyebrow{margin:0 0 4px;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.1em}
h1{margin:0;font-size:18px;line-height:1.2;font-weight:800;letter-spacing:-.03em}h1 span{color:var(--red)}
.status{margin-left:auto;color:var(--green);font-size:10px;font-weight:700;white-space:nowrap}.status-dot{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#2e9d67}
main{padding:16px 0 24px}.panel{margin-bottom:13px;padding:21px;background:var(--panel);border:1px solid var(--line);border-radius:13px;box-shadow:0 2px 8px #20242b05}
.intro{display:block;padding:23px 22px;border-top:3px solid var(--red)}.intro .eyebrow{color:var(--red)}.intro-copy{max-width:590px}
h2{margin:0 0 10px;font-size:22px;line-height:1.2;letter-spacing:-.03em;font-weight:750}.intro h2 span{color:var(--red)}
.muted{margin:0;color:var(--muted);font-size:13px;line-height:1.65}.reactor{display:none}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.section-heading .eyebrow{margin-bottom:5px}.section-heading h2{margin:0;font-size:20px}
.counter{flex:0 0 auto;color:var(--muted);font-size:12px}.counter strong{color:var(--red);font-size:20px}
.progress-track{height:6px;margin-bottom:18px;overflow:hidden;border-radius:10px;background:#eceef1}.progress-fill{width:0;height:100%;background:var(--red);transition:width .25s ease}
.message-grid{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:48px}.char-tile{display:grid;place-items:center;min-width:31px;height:40px;padding:0 7px;border:1px solid #e5e7eb;border-radius:7px;background:#fafafa;color:var(--red);font-size:20px;font-weight:750}
.char-tile.locked{background:#f1f2f4;border-style:dashed;color:#9da3ac}.char-tile.space{min-width:13px;padding:0;border-color:transparent;background:transparent}
.message-hint{margin:12px 0 0;color:var(--muted);font-size:11px}.terminal .section-heading{margin-bottom:10px}.terminal-icon{display:none}.terminal>.muted{margin-bottom:18px}
.form-row{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px}
label{display:flex;flex-direction:column;gap:7px;color:#424953;font-size:12px;font-weight:700}
input,select{width:100%;min-height:46px;padding:0 12px;border:1px solid #d4d9e0;border-radius:9px;background:#fff;color:var(--text);font:14px system-ui,sans-serif;outline:none}
input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.04em}input::placeholder{color:#9aa1ab}
input:focus,select:focus{border-color:var(--red);box-shadow:0 0 0 3px #c936361a}
.form-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}
button{min-height:45px;padding:0 16px;border:0;border-radius:9px;background:var(--red);color:#fff;font:750 12px system-ui,sans-serif;cursor:pointer}
button:hover{background:var(--red-dark)}button:focus-visible{outline:3px solid #c9363640;outline-offset:2px}button span{margin-left:7px;font-size:16px}
.secondary-button{border:1px solid #d9dde3;background:#fff;color:#4b535e;font-weight:600}.secondary-button:hover{background:#f5f6f8}
.feedback{min-height:20px;margin-top:13px;font-size:12px;line-height:1.5}.feedback.success{color:var(--green)}.feedback.error{color:#b42323}
.legend{display:flex;align-items:center;flex-wrap:wrap;gap:13px;padding-top:14px;border-top:1px solid var(--line);margin-top:12px;color:var(--muted);font-size:12px}
.legend-title{color:#555d68;font-size:10px;font-weight:800;letter-spacing:.08em}.legend b{margin-right:4px;font-size:18px;vertical-align:-2px}.symbol-zero{color:#626b77}.symbol-one{color:var(--red)}.legend-note{margin-left:auto;font-size:11px}
.help{padding:17px 20px}.help summary{color:#343b45;font-size:13px;font-weight:700;cursor:pointer}.help-content{padding-top:12px;color:var(--muted);font-size:12px;line-height:1.7}.help-content p:last-child{margin-bottom:0}
code{padding:2px 5px;border-radius:4px;background:#f0f1f3;color:var(--red-dark)}
footer{display:flex;justify-content:space-between;gap:12px;padding:7px 2px 0;color:#858c96;font-size:10px}
@media(max-width:520px){.topbar,main{width:calc(100% - 24px)}.topbar{gap:10px;padding:13px 0}.brand-mark{flex-basis:36px;width:36px;height:36px;border-radius:9px}h1{font-size:16px}.status{font-size:0}.status-dot{width:8px;height:8px;margin:0}main{padding-top:12px}.panel{padding:17px 15px;margin-bottom:11px;border-radius:12px}.intro{padding:20px 17px}.intro h2{font-size:23px}.muted{font-size:13px}.section-heading h2{font-size:19px}.form-row{grid-template-columns:1fr;gap:12px}input,select{min-height:48px;font-size:16px}.form-actions{display:grid;grid-template-columns:1fr}.form-actions button{width:100%;min-height:47px}.legend{gap:12px}.legend-note{width:100%;margin-left:0}.message-grid{gap:5px}.char-tile{min-width:27px;height:36px;padding:0 5px;font-size:18px}footer{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important}}


/* Beküldő űrlap */
.entry-form { display: grid; gap: 13px; margin-top: 18px; }
.entry-form label:not(.privacy-consent) { display: flex; flex-direction: column; gap: 7px; color: #424953; font-size: 12px; font-weight: 700; }
.privacy-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.55; font-weight: 400; }
.privacy-consent input { flex: 0 0 18px; width: 18px; min-height: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }
.entry-form button:disabled { opacity: .65; cursor: wait; }
