:root{--bg:#111;--fg:#fff;--ac:#ffd54a;--card:#1e1e1e;--mute:#ccc;--ok:#7be08a;--warn:#ff9f6b}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--fg);font:clamp(20px,2.4vw,28px)/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;margin:0;padding:1rem;max-width:1000px;margin-inline:auto}
h1,h2,h3{color:var(--ac);line-height:1.2}
a{color:var(--ac)}
section{background:var(--card);border-radius:14px;padding:1rem 1.25rem;margin:1rem 0}
button,select,.btn{font:inherit;min-height:56px;min-width:56px;padding:.4rem 1rem;border-radius:12px;border:3px solid var(--ac);background:#000;color:var(--fg);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.4rem}
button:hover,.btn:hover{background:#333}
button[aria-pressed=true],button.on{background:var(--ac);color:#000}
button:disabled,.btn[aria-disabled=true]{opacity:.45;cursor:not-allowed}
button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible,.btn:focus-visible{outline:4px solid #fff;outline-offset:3px}
.row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:.5rem 0}
.big{font-size:1.5em}
.note{color:var(--mute);font-size:.85em}
.rom{color:var(--ac)}
.card{border-top:1px solid #444;padding:.5rem 0}
.banner{border:3px solid var(--warn);border-radius:14px;padding:.75rem 1rem;margin:1rem 0;background:#2a1a10}
.good{color:var(--ok)}
input[type=checkbox]{width:32px;height:32px;flex:none}
label{display:flex;gap:.6rem;align-items:center;margin:.4rem 0}
nav.top{display:flex;gap:1rem;flex-wrap:wrap;font-size:.85em;margin-bottom:.5rem}
progress{width:100%;height:20px;accent-color:var(--ac)}
#quiz{text-align:center}
/* show-it-to-a-local screen: huge text, big controls, readable by someone without their glasses */
dialog#show{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;background:#000;color:#fff;text-align:center;padding:1rem;overflow:auto;--s:1}
dialog#show.light{background:#fff;color:#000}
dialog#show::backdrop{background:#000}
dialog#show[open]{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1rem}
dialog#show .th{font-size:calc(var(--s) * clamp(48px,13vw,170px));line-height:1.25;font-weight:700;word-break:break-word;margin:2vh 0}
dialog#show .en{font-size:calc(var(--s) * clamp(24px,5vw,56px));color:var(--ac)}
dialog#show .ro{font-size:calc(var(--s) * clamp(20px,4vw,44px));color:var(--mute)}
dialog#show.light .en{color:#7a5a00}
dialog#show.light .ro{color:#333}
dialog#show.only .en,dialog#show.only .ro{display:none}
dialog#show .bar{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center}
dialog#show button{min-height:64px;font-size:1.1em}
dialog#show.light button{background:#fff;color:#000;border-color:#000}
dialog#show.light button[aria-pressed=true]{background:#000;color:#fff}
/* point-at-me page: nothing but big targets */
.pt{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;margin:.6rem 0;padding:1rem 1.2rem;min-height:96px;background:#000}
.pt-th{font-size:1.6em;font-weight:700;line-height:1.3;color:#fff}
.pt-en{font-size:.9em;color:var(--ac)}
textarea{width:100%;font:inherit;min-height:120px;padding:.6rem .8rem;border-radius:12px;border:3px solid var(--ac);background:#000;color:var(--fg)}
textarea:focus-visible{outline:4px solid #fff;outline-offset:3px}
.toast{position:fixed;left:50%;bottom:1.5rem;transform:translateX(-50%);background:#000;border:3px solid var(--ac);border-radius:12px;padding:.6rem 1rem;z-index:10}
