:root{--bg: #f7f6f2;--surface: #ffffff;--surface-2: #efede6;--text: #1d1c1a;--muted: #5f5c55;--border: #d9d5cb;--accent: #256a4f;--accent-text: #ffffff;--link: #1d5fa8;--focus: #1d5fa8;--t1: #2e7d32;--t1-text: #ffffff;--t2: #f2c230;--t2-text: #1d1c1a;--t3: #ef7d22;--t3-text: #1d1c1a;--t4: #c62828;--t4-text: #ffffff;--win: #5b3fb8;--win-text: #ffffff;--radius: 10px;--shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 16px rgb(0 0 0 / .06);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #161615;--surface: #201f1d;--surface-2: #2b2a27;--text: #edebe6;--muted: #a7a399;--border: #3b3935;--accent: #4fb38a;--accent-text: #0f1f18;--link: #8cbcf5;--focus: #8cbcf5;--shadow: none;color-scheme:dark}}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);line-height:1.5;min-height:100vh;display:flex;flex-direction:column}a{color:var(--link)}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:absolute;left:-9999px}.skip:focus{left:1rem;top:.5rem;z-index:10;background:var(--surface);padding:.4rem .8rem}.top{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem max(1rem,calc(50vw - 330px));border-bottom:1px solid var(--border);background:var(--surface)}.top h1{margin:0;font-size:1.35rem;letter-spacing:-.01em}.logo{font-weight:800}.puzzle-label{color:var(--muted);font-weight:500;font-size:1rem}.top nav{display:flex;gap:.4rem}.icon-btn{display:inline-grid;place-items:center;width:2.3rem;height:2.3rem;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--text);font:700 1rem/1 inherit;cursor:pointer}.icon-btn:hover{background:var(--surface-2)}.icon-btn svg{width:1.15rem;height:1.15rem;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;fill:none}.foot{margin-top:auto;padding:1.5rem 1rem;text-align:center;font-size:.8rem;color:var(--muted)}main{width:100%;max-width:660px;margin:0 auto;padding:1.25rem 1rem 0}.loading,.notice{text-align:center;color:var(--muted);padding:3rem 0}.notice h2{color:var(--text)}.guess-box,.input-wrap{position:relative}#guess-input{width:100%;font:inherit;font-size:1.1rem;padding:.8rem 1rem;border:2px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text)}#guess-input:focus{border-color:var(--focus);outline:none}.options{position:absolute;z-index:5;left:0;right:0;top:calc(100% + 4px);margin:0;padding:.25rem;list-style:none;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);max-height:22rem;overflow-y:auto}.option{padding:.55rem .75rem;border-radius:6px;cursor:pointer}.option[aria-selected=true]{background:var(--surface-2);outline:2px solid var(--focus);outline-offset:-2px}.option[aria-disabled=true]{color:var(--muted);cursor:not-allowed}.option .alias{color:var(--muted)}.option .tag{float:right;font-size:.75rem;border:1px solid var(--border);border-radius:999px;padding:0 .5rem}.input-message{min-height:1.5em;margin:.35rem 0 0;font-size:.9rem;color:var(--muted)}.link-btn{border:0;background:none;padding:0;font:inherit;color:var(--link);text-decoration:underline;cursor:pointer}.status-line{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;margin:.5rem 0 1rem;color:var(--muted)}.status-line p{margin:0}.status-line strong{color:var(--text)}.guesses{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}.guess{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.75rem .9rem;animation:enter .25s ease-out}.guess.correct{border-color:var(--win)}.guess-head{display:flex;align-items:center;gap:.6rem}.guess-title{font-weight:650}.found{margin:.4rem 0 0;font-weight:600}.badge{display:inline-grid;place-items:center;min-width:1.9rem;height:1.9rem;padding:0 .4rem;border-radius:6px;font-weight:800;font-variant-numeric:tabular-nums}.badge.t1{background:var(--t1);color:var(--t1-text)}.badge.t2{background:var(--t2);color:var(--t2-text)}.badge.t3{background:var(--t3);color:var(--t3-text)}.badge.t4{background:var(--t4);color:var(--t4-text)}.badge.win{background:var(--win);color:var(--win-text)}.path{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:.25rem 0;margin:.5rem 0 0;padding:0;font-size:.95rem}.step+.step:before{content:"→" / "";margin:0 .45rem;color:var(--muted)}.step.masked,.hidden-step{font-weight:700;letter-spacing:.05em;color:var(--muted)}.step.answer:not(.masked) a{font-weight:700}.fake-link{color:var(--link);text-decoration:underline}.end{background:var(--surface);border:2px solid var(--border);border-radius:var(--radius);padding:1.1rem 1.2rem;margin-bottom:1.25rem;text-align:center}.end.won{border-color:var(--win)}.end:focus{outline:none}.end h2{margin:0 0 .25rem}.answer-line{font-size:1.15rem;margin:.25rem 0}.intro{color:var(--muted);font-size:.95rem;margin:.25rem auto .75rem;max-width:34rem}.intro:empty{display:none}.end-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:.6rem;margin:.75rem 0}button.primary,button.secondary{font:inherit;font-weight:700;padding:.6rem 1.2rem;border-radius:999px;cursor:pointer}button.primary{background:var(--accent);color:var(--accent-text);border:2px solid var(--accent)}button.secondary{background:transparent;color:var(--text);border:2px solid var(--border)}.end-stats,.next{margin:.25rem 0;color:var(--muted);font-size:.9rem}.countdown{font-variant-numeric:tabular-nums;font-weight:700;color:var(--text)}dialog{width:min(32rem,calc(100vw - 2rem));max-height:calc(100vh - 2rem);padding:0;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 10px 40px #00000040}dialog::backdrop{background:#00000073}.dlg-inner{padding:1rem 1.25rem 1.25rem}.dlg-head{display:flex;justify-content:space-between;align-items:center}.dlg-head h2{margin:0;font-size:1.25rem}.close{font-size:1.4rem}dialog h3{font-size:1rem;margin:1.1rem 0 .4rem}.rules{padding-left:1.2rem}.rules li{margin:.3rem 0}.muted{color:var(--muted);font-size:.9rem}.stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin-top:1rem;text-align:center}.stat-num{display:block;font-size:1.8rem;font-weight:800;font-variant-numeric:tabular-nums}.stat-label{font-size:.75rem;color:var(--muted)}.bars{list-style:none;padding:0;margin:0;display:grid;gap:.3rem}.bar{display:grid;grid-template-columns:1.4rem 1fr;align-items:center;gap:.4rem;font-variant-numeric:tabular-nums}.bar-label{text-align:right;font-weight:700}.bar-fill{display:block;min-width:1.6rem;background:var(--surface-2);color:var(--text);text-align:right;padding:.05rem .45rem;border-radius:4px;font-weight:700;font-size:.85rem}.bar.on .bar-fill{background:var(--accent);color:var(--accent-text)}.toast{position:fixed;left:50%;top:4.5rem;transform:translate(-50%);z-index:20;max-width:calc(100vw - 2rem);white-space:pre-line;background:var(--text);color:var(--bg);padding:.6rem 1rem;border-radius:8px;font-weight:600}@keyframes enter{0%{opacity:0;transform:translateY(-4px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media(max-width:420px){.stat-num{font-size:1.4rem}.path{font-size:.9rem}}
