:root{color-scheme:light dark;--hiddenword-paper: #f4ecdf;--hiddenword-card: #fffaf1;--hiddenword-ink: #1f2638;--hiddenword-muted: #5a5242;--hiddenword-line: #857862;--hiddenword-accent: #2a4a7a;--hiddenword-on-accent: #ffffff;--hiddenword-focus: #0b5cad;--hiddenword-select: #d9d4e8;--hiddenword-hint: #f7e9a0;--hiddenword-found-1: #0b5cad;--hiddenword-found-1-tint: #c3d9f2;--hiddenword-found-2: #9a5300;--hiddenword-found-2-tint: #f5d9a6;--hiddenword-found-3: #00714f;--hiddenword-found-3-tint: #c4e8d9;--hiddenword-found-4: #b3400a;--hiddenword-found-4-tint: #f6cdb8;--hiddenword-found-5: #9c3c78;--hiddenword-found-5-tint: #f0cde0;--hiddenword-found-6: #0d6d8f;--hiddenword-found-6-tint: #c5e4f2;--hiddenword-font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;--hiddenword-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif}@media(prefers-color-scheme:dark){:root{--hiddenword-paper: #1b1f2c;--hiddenword-card: #252a3a;--hiddenword-ink: #efe8da;--hiddenword-muted: #b0a998;--hiddenword-line: #8a90a8;--hiddenword-accent: #9db8e8;--hiddenword-on-accent: #141826;--hiddenword-focus: #8fc1ff;--hiddenword-select: #444a66;--hiddenword-hint: #5a5420;--hiddenword-found-1: #6fb2f0;--hiddenword-found-1-tint: #26425f;--hiddenword-found-2: #f0b255;--hiddenword-found-2-tint: #5c4216;--hiddenword-found-3: #4fd0a2;--hiddenword-found-3-tint: #1d5441;--hiddenword-found-4: #ff8e5c;--hiddenword-found-4-tint: #6a3017;--hiddenword-found-5: #ea8dc3;--hiddenword-found-5-tint: #5f2a4b;--hiddenword-found-6: #5cc6e8;--hiddenword-found-6-tint: #1b4d62}}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--hiddenword-paper);color:var(--hiddenword-ink);font-family:var(--hiddenword-font-sans);font-size:16px;line-height:1.4}:focus-visible{outline:3px solid var(--hiddenword-focus);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}button,input{font:inherit;color:inherit}.btn{min-width:44px;min-height:44px;padding:0 16px;border:1.5px solid var(--hiddenword-line);border-radius:12px;background:var(--hiddenword-card);cursor:pointer}.btn:disabled{opacity:.55;cursor:default}.btn.primary{background:var(--hiddenword-accent);border-color:var(--hiddenword-accent);color:var(--hiddenword-on-accent);font-weight:700}.app{max-width:560px;margin:0 auto;padding:0 16px calc(180px + env(safe-area-inset-bottom))}.header{display:flex;align-items:center;justify-content:space-between;min-height:56px}.header h1{margin:0;font-size:1.25rem;letter-spacing:.01em}.header .tools{display:flex;gap:4px}.icon-btn{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:12px;background:transparent;cursor:pointer}.icon-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.manifest{margin:8px 0 2px;font-size:1rem;font-weight:700}.title{margin:0 0 12px;color:var(--hiddenword-muted)}.card{background:var(--hiddenword-card);border:1.5px solid var(--hiddenword-line);border-radius:16px;padding:16px}.passage{margin:0;font-family:var(--hiddenword-font-serif);font-size:var(--hiddenword-passage-size, 20px);line-height:1.7;letter-spacing:normal;font-style:normal;overflow-wrap:anywhere;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.passage.dragging{touch-action:none}html[data-sans="1"] .passage{font-family:var(--hiddenword-font-sans)}html[data-font="1"]{--hiddenword-passage-size: 24px}html[data-font="2"]{--hiddenword-passage-size: 28px}.passage.locked{cursor:default}.passage [data-i]{border-radius:2px;text-decoration-thickness:3px;text-underline-offset:4px}.passage .hs{background:var(--hiddenword-hint)}.passage .hw{text-decoration:underline dotted var(--hiddenword-ink);text-decoration-thickness:3px}.passage .sel{background:var(--hiddenword-select);text-decoration:underline solid var(--hiddenword-ink);text-decoration-thickness:2px}.passage .f{text-decoration:underline solid;text-decoration-thickness:3px}.passage .f-1{background:var(--hiddenword-found-1-tint);text-decoration-color:var(--hiddenword-found-1)}.passage .f-2{background:var(--hiddenword-found-2-tint);text-decoration-color:var(--hiddenword-found-2)}.passage .f-3{background:var(--hiddenword-found-3-tint);text-decoration-color:var(--hiddenword-found-3)}.passage .f-4{background:var(--hiddenword-found-4-tint);text-decoration-color:var(--hiddenword-found-4)}.passage .f-5{background:var(--hiddenword-found-5-tint);text-decoration-color:var(--hiddenword-found-5)}.passage .f-6{background:var(--hiddenword-found-6-tint);text-decoration-color:var(--hiddenword-found-6)}.passage .fade-in{animation:hw-fade .15s ease-out}.card.shake{animation:hw-shake .32s ease-in-out}@keyframes hw-fade{0%{background-color:transparent}}@keyframes hw-shake{25%{transform:translate(-5px)}75%{transform:translate(5px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.feedback{min-height:1.6em;margin:10px 2px 0;font-weight:600}.loupe{position:fixed;z-index:20;pointer-events:none;transform:translate(-50%);padding:6px 10px;border:1.5px solid var(--hiddenword-line);border-radius:12px;background:var(--hiddenword-card);box-shadow:0 4px 14px #00000040;font-family:var(--hiddenword-font-serif);font-size:40px;line-height:1.2;letter-spacing:.04em;word-spacing:.2em;white-space:pre}.loupe b{background:var(--hiddenword-select);text-decoration:underline solid;text-decoration-thickness:3px;font-weight:400}.chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:0;list-style:none}.chip{min-width:56px;min-height:44px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:2px dashed var(--hiddenword-line);border-radius:999px;font-weight:700;letter-spacing:.06em;word-spacing:.3em}.chip.on{border-style:solid;text-decoration:underline solid;text-decoration-thickness:3px;text-underline-offset:4px}.chip.c-1{background:var(--hiddenword-found-1-tint);border-color:var(--hiddenword-found-1);text-decoration-color:var(--hiddenword-found-1)}.chip.c-2{background:var(--hiddenword-found-2-tint);border-color:var(--hiddenword-found-2);text-decoration-color:var(--hiddenword-found-2)}.chip.c-3{background:var(--hiddenword-found-3-tint);border-color:var(--hiddenword-found-3);text-decoration-color:var(--hiddenword-found-3)}.chip.c-4{background:var(--hiddenword-found-4-tint);border-color:var(--hiddenword-found-4);text-decoration-color:var(--hiddenword-found-4)}.chip.c-5{background:var(--hiddenword-found-5-tint);border-color:var(--hiddenword-found-5);text-decoration-color:var(--hiddenword-found-5)}.chip.c-6{background:var(--hiddenword-found-6-tint);border-color:var(--hiddenword-found-6);text-decoration-color:var(--hiddenword-found-6)}.actions{display:flex;gap:10px;align-items:center;margin-top:16px}.type-form{display:flex;gap:8px;margin-top:16px}.type-form input{flex:1;min-width:0;min-height:44px;padding:0 12px;border:1.5px solid var(--hiddenword-line);border-radius:12px;background:var(--hiddenword-card)}.selbar{position:fixed;left:0;right:0;bottom:0;z-index:10;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--hiddenword-card);border-top:1.5px solid var(--hiddenword-line);box-shadow:0 -6px 16px #0000001f}.selbar .inner{max-width:560px;margin:0 auto;display:grid;gap:8px}.selbar .readout{margin:0;min-height:1.3em;text-align:center;font-weight:700;letter-spacing:.08em;word-spacing:.3em}.selbar .row{display:flex;gap:8px;align-items:center;justify-content:space-between}.selbar .nudge{display:flex;align-items:center;gap:2px}.selbar .nudge span{min-width:44px;text-align:center;font-size:.85rem;color:var(--hiddenword-muted)}.selbar .btn.nudge-btn{padding:0;width:44px}.selbar .row.go .btn{flex:1}.end h2{margin:20px 0 6px;font-size:1.1rem}.end ul.log{margin:0;padding-left:0;list-style:none;font-variant-numeric:tabular-nums}.end ul.log li{padding:4px 0}.rating{font-size:1.4rem;font-weight:700;margin:0}.detail{margin:4px 0 0;color:var(--hiddenword-muted)}.statgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0;text-align:center}.statgrid dt{color:var(--hiddenword-muted);font-size:.85rem}.statgrid dd{margin:0;font-size:1.5rem;font-weight:700}.share-row{display:flex;gap:10px;margin-top:14px}.share-row .btn{flex:1}.next{margin-top:20px;text-align:center;color:var(--hiddenword-muted)}.next strong{display:block;color:var(--hiddenword-ink)}dialog{width:min(92vw,480px);max-height:88vh;padding:0;border:1.5px solid var(--hiddenword-line);border-radius:20px;background:var(--hiddenword-card);color:var(--hiddenword-ink)}dialog::backdrop{background:#00000080}dialog .dlg{padding:8px 20px 20px}dialog .dlg-head{display:flex;align-items:center;justify-content:space-between}dialog h2{margin:0;font-size:1.2rem}dialog h3{margin:16px 0 4px;font-size:1rem}dialog p{margin:8px 0}.setting{display:flex;align-items:center;gap:12px;min-height:44px;margin:8px 0}.setting input[type=checkbox]{width:44px;height:44px;flex:none}.seg{display:flex;gap:8px}.seg .btn[aria-pressed=true]{background:var(--hiddenword-accent);border-color:var(--hiddenword-accent);color:var(--hiddenword-on-accent);font-weight:700}.status-screen{margin-top:48px;text-align:center}
