/* Ngene website styles (kept out of index.html so the page can run under a strict Content-Security-Policy). */
:root{--ink:#1f2328;--muted:#5d6670;--line:#dfe3e8;--brand:#2f5d9a;--brand-soft:#eef3fa;--warn:#7a5b00;--warn-bg:#fff7df}
*{box-sizing:border-box}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif;color:var(--ink);margin:0;background:#fbfcfd}
main{max-width:720px;margin:0 auto;padding:36px 18px 60px}
h1{font-size:40px;margin:0 0 4px;letter-spacing:.5px}
.tag{color:var(--muted);margin:0 0 18px;font-size:18px}
.notice{background:var(--warn-bg);color:var(--warn);border:1px solid #f0dfa6;border-radius:10px;padding:10px 14px;font-size:15px}
section.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;margin:20px 0}
.top{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
button{font:inherit;font-size:17px;padding:10px 18px;border:0;border-radius:9px;background:var(--brand);color:#fff;cursor:pointer}
button:disabled{background:#a3adb8;cursor:default}
.big{font-size:21px;padding:13px 26px}
.ghost{background:#fff;color:var(--brand);border:1px solid var(--brand)}
.ghost:disabled{background:#fff;color:#a3adb8;border-color:#cfd5dc}
/* fixed layout: always 5 slots of fixed size, so the card never changes height */
.words{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,58px);gap:10px;margin-top:18px;container-type:inline-size}
.word{position:relative;height:58px;display:flex;align-items:center;justify-content:center;gap:4px;padding:0 6px;
 font-size:clamp(13px,3.8cqi,22px);border:1px solid #cfd7e3;border-radius:10px;background:var(--brand-soft);white-space:nowrap;overflow:hidden}
.word.empty{background:#fafbfc;border-style:dashed;color:#b8c0c8}
.word.loading{background:#f4f6f9;color:#b8c0c8}
@media (max-width:600px){.words{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,58px)}.word{font-size:clamp(12px,5.8cqi,22px)}}
.copy{border:0;background:none;padding:2px 3px;cursor:pointer;color:#6f7f99;border-radius:5px;flex-shrink:0;line-height:0}
.copy:hover{background:#dde6f3;color:var(--brand)}
.copy svg{width:16px;height:16px}
input[type=number]{font:inherit;font-size:17px;padding:8px 10px;border:1px solid #aeb7c2;border-radius:8px;width:110px}
.dl{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.bar{height:8px;background:#e9edf1;border-radius:4px;margin:12px 0 4px;visibility:hidden}.bar div{height:8px;background:var(--brand);border-radius:4px;width:0;transition:width .2s}
.muted{color:var(--muted);font-size:14px}
#msg{min-height:20px;margin:8px 0 0}
details{margin-top:8px}summary{cursor:pointer;font-weight:600}
.about p,.about li{line-height:1.55}
footer{color:var(--muted);font-size:13px;margin-top:30px;border-top:1px solid var(--line);padding-top:14px;line-height:1.7}
footer a,.about a{color:var(--brand)}
header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.lang{display:inline-flex;border:1px solid #aeb7c2;border-radius:9px;overflow:hidden;margin-top:8px;flex-shrink:0}
.lang a{background:#fff;color:var(--ink);font-size:15px;padding:7px 13px;text-decoration:none}
.lang a[aria-current="page"]{background:var(--brand);color:#fff}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
