:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f5f6f8;--surface:#fff;--surface-2:#f0f2f5;--border:#e3e6eb;--text:#16181d;--muted:#667085;--accent:#e5484d;--primary:#1f2937;--primary-text:#fff;--focus:#3b82f6;--wood:#e3b866;--wood-line:#4a3512;--shadow:0 1px 2px #1018280d, 0 4px 12px #1018280f;--shadow-hover:0 2px 4px #1018280f, 0 12px 24px #1018281a;--radius:14px;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.45}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#0f1115;--surface:#171a21;--surface-2:#1f232c;--border:#2a2f3a;--text:#e8eaee;--muted:#8b93a3;--accent:#ff6369;--primary:#e8eaee;--primary-text:#0f1115;--wood:#c99a4b;--wood-line:#2b1d07;--shadow:0 1px 2px #0006;--shadow-hover:0 8px 24px #00000080}}*{box-sizing:border-box}body{min-height:100vh;margin:0}h1,h2{letter-spacing:-.01em;margin:0}a{color:inherit}.muted{color:var(--muted)}.small{font-size:.85rem}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.topbar{z-index:10;background:color-mix(in srgb, var(--bg) 85%, transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);padding:.9rem clamp(1rem,3vw,2rem);position:sticky;top:0}.brand{align-items:center;gap:.75rem;max-width:1400px;margin:0 auto;display:flex}.brand h1{font-size:1.2rem;font-weight:700}.brand p{color:var(--muted);margin:0;font-size:.9rem}.brand p a{-webkit-text-decoration-color:color-mix(in srgb, var(--accent) 60%, transparent);text-decoration-color:color-mix(in srgb, var(--accent) 60%, transparent);text-underline-offset:3px;font-weight:600}.logo{flex:none;width:34px;height:34px}.logo-black{fill:#111}.logo-white{fill:#fff;stroke:#111;stroke-width:1.5px}@media (prefers-color-scheme:dark){.logo-black{stroke:#555;stroke-width:1.2px}}.layout{grid-template-columns:minmax(340px,520px) minmax(0,1fr);align-items:start;gap:clamp(1rem,2.5vw,2rem);max-width:1400px;margin:0 auto;padding:1.5rem clamp(1rem,3vw,2rem) 3rem;display:grid}@media (width<=960px){.layout{grid-template-columns:1fr}}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.1rem}.input{position:sticky;top:5.5rem}@media (width<=960px){.input{position:static}}.panel-head{justify-content:space-between;align-items:baseline;margin-bottom:.75rem;display:flex}.panel-head h2,.results-head h2{font-size:1.05rem;font-weight:650}.goban{display:block}.input-board{cursor:pointer;touch-action:manipulation;border-radius:10px;width:100%}.goban .board{fill:var(--wood)}.goban .grid{stroke:var(--wood-line);stroke-width:.035px;opacity:.8}.goban .grid.edge{stroke-width:.06px}.goban .hoshi{fill:var(--wood-line)}.goban .coord{fill:var(--wood-line);opacity:.75;text-anchor:middle;dominant-baseline:central;font-size:.5px;font-weight:600}.goban .stone.black{fill:url(#g-black)}.goban .stone.white{fill:url(#g-white);stroke:#00000059;stroke-width:.03px}.goban .stone.dim{opacity:.7}.goban .stone.ghost{opacity:.45;pointer-events:none}.goban .mark{fill:none;stroke:var(--accent);stroke-width:.13px}.controls{flex-direction:column;gap:1rem;margin-top:1rem;display:flex}.field{flex-direction:column;gap:.5rem;display:flex}.label{font-size:.9rem;font-weight:600}.segmented{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px;display:grid}.segmented input{opacity:0;pointer-events:none;position:absolute}.segmented span{cursor:pointer;color:var(--muted);border-radius:7px;justify-content:center;align-items:center;gap:.4rem;padding:.4rem .5rem;font-size:.9rem;transition:background .15s,color .15s;display:flex}.segmented input:checked+span{background:var(--surface);color:var(--text);box-shadow:var(--shadow);font-weight:600}.segmented input:focus-visible+span{outline:2px solid var(--focus)}.dot{border-radius:50%;width:.8rem;height:.8rem;display:inline-block}.dot.black{background:#111;box-shadow:inset 0 0 0 1px #555}.dot.white{background:#fff;box-shadow:inset 0 0 0 1px #999}.switch{cursor:pointer;align-items:center;gap:.75rem;display:flex}.switch input{opacity:0;pointer-events:none;position:absolute}.track{background:var(--border);border-radius:999px;flex:none;width:40px;height:24px;transition:background .15s;position:relative}.knob{background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0000004d}.switch input:checked+.track{background:var(--accent)}.switch input:checked+.track .knob{transform:translate(16px)}.switch input:focus-visible+.track{outline:2px solid var(--focus);outline-offset:2px}.switch-text{flex-direction:column;display:flex}.radius{align-items:center;gap:.75rem;padding-left:calc(40px + .75rem);transition:opacity .15s;display:flex}.radius.disabled{opacity:.4}.radius input{accent-color:var(--accent);flex:1}.pill{text-align:center;background:var(--surface-2);border:1px solid var(--border);border-radius:999px;min-width:1.8rem;padding:.1rem .5rem;font-size:.85rem;font-weight:600}.actions{gap:.5rem;display:flex}.btn{font:inherit;cursor:pointer;border:1px solid var(--border);border-radius:10px;justify-content:center;align-items:center;gap:.45rem;padding:.55rem .95rem;font-size:.9rem;font-weight:600;text-decoration:none;transition:background .15s,transform 50ms;display:inline-flex}.btn:active{transform:translateY(1px)}.btn svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:1.05rem;height:1.05rem}.btn.primary{background:var(--primary);color:var(--primary-text);border-color:#0000;flex:1}.btn.primary:hover{opacity:.9}.btn.ghost{background:var(--surface);color:var(--text)}.btn.ghost:hover{background:var(--surface-2)}.btn.small{border-radius:8px;padding:.35rem .7rem;font-size:.82rem}.hint{margin:0}.results-head{align-items:baseline;gap:.75rem;margin:.25rem 0 1rem;display:flex}.cards{gap:.9rem;margin:0;padding:0;list-style:none;display:grid}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);grid-template-columns:240px minmax(0,1fr) 150px;align-items:center;gap:1.1rem;padding:.8rem;transition:box-shadow .2s,transform .2s;display:grid}.card:hover{box-shadow:var(--shadow-hover);transform:translateY(-1px)}@media (width<=760px){.card{grid-template-columns:1fr 120px}.card .thumb{grid-column:1/-1}}.thumb{aspect-ratio:16/9;background:var(--surface-2);border-radius:10px;display:block;position:relative;overflow:hidden}.thumb img{object-fit:cover;width:100%;height:100%;transition:transform .3s;display:block}.card:hover .thumb img{transform:scale(1.03)}.thumb .play{opacity:0;background:#0009;border-radius:50%;place-items:center;width:44px;height:44px;margin:auto;transition:opacity .2s;display:grid;position:absolute;inset:0}.thumb .play:after{content:"";border-top:9px solid #0000;border-bottom:9px solid #0000;border-left:14px solid #fff;margin-left:4px}.card:hover .thumb .play{opacity:1}.badge{color:#fff;background:#000000bf;border-radius:6px;padding:.15rem .5rem;font-size:.78rem;font-weight:600;position:absolute;bottom:8px;left:8px}.info{flex-direction:column;gap:.35rem;min-width:0;display:flex}.info .title{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:1rem;font-weight:650;line-height:1.3;text-decoration:none;display:-webkit-box;overflow:hidden}.info .title:hover{text-underline-offset:3px;text-decoration:underline}.meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:.35rem .5rem;font-size:.85rem;display:flex}.tag{background:var(--surface-2);border:1px solid var(--border);color:var(--text);border-radius:999px;padding:.1rem .5rem;font-size:.78rem}.links{flex-wrap:wrap;gap:.4rem;margin-top:.3rem;display:flex}.mini{border-radius:10px;justify-self:end;width:150px;height:150px;overflow:hidden}@media (width<=760px){.mini{width:120px;height:120px}}.empty{text-align:center;border:1.5px dashed var(--border);border-radius:var(--radius);color:var(--muted);flex-direction:column;align-items:center;gap:.75rem;padding:3rem 1rem;display:flex}.empty svg{width:140px}.empty-board{fill:var(--wood);opacity:.85}.empty-grid path{stroke:var(--wood-line);stroke-width:1px;opacity:.6}.empty[hidden]{display:none}.empty p{max-width:34ch;margin:0}
