:root,:root[data-theme=light]{--bg: #fbf7ef;--surface: #f1ead9;--text: #14323b;--muted: #51676c;--faint: #85979b;--accent: #1f8fb5;--gold: #c8901a;--border: rgba(20, 50, 59, .12);--shadow: rgba(20, 50, 59, .07)}:root[data-theme=dark]{--bg: #0f1b22;--surface: #16262e;--text: #e8f0f1;--muted: #9fc0c9;--faint: #5f7b83;--accent: #38c0e8;--gold: #f0c24b;--border: rgba(232, 240, 241, .1);--shadow: rgba(0, 0, 0, .35)}*{box-sizing:border-box}html{scroll-behavior:smooth;overflow-x:clip}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.65 system-ui,-apple-system,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased;transition:background .2s ease,color .2s ease;overflow-x:clip}code,pre,.mono{font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.92em}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.wrap{max-width:880px;margin:0 auto;padding:0 1.25rem}header.site{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}header.site .wrap{display:flex;align-items:center;gap:1.25rem;height:3.25rem}.wordmark{font-weight:650;color:var(--text);letter-spacing:.01em}.wordmark .fin{color:var(--gold)}.wordmark:hover{text-decoration:none}header.site nav{display:flex;gap:1.1rem;margin-left:auto;font-size:.92rem}header.site nav a{color:var(--muted)}.theme-toggle{border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:8px;width:2rem;height:2rem;font-size:.95rem;cursor:pointer;line-height:1}.theme-toggle:hover{color:var(--text)}.hero{text-align:center;padding:4.5rem 0 3rem}.eyebrow{display:inline-block;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);border:1px solid var(--border);border-radius:999px;padding:.3rem .8rem;margin-bottom:1.4rem}.hero h1{font-size:clamp(2.6rem,8vw,4rem);margin:0 0 .5rem;letter-spacing:-.02em}.hero .tagline{font-size:clamp(1.1rem,3vw,1.4rem);color:var(--text);font-weight:600;margin:0 0 1rem}.hero p.lead{max-width:36rem;margin:0 auto 1.8rem;color:var(--muted)}.cta{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}.btn{display:inline-block;padding:.6rem 1.2rem;border-radius:10px;font-weight:600;border:1px solid var(--border)}.btn.primary{background:var(--accent);color:#fff;border-color:transparent}.btn.primary:hover{text-decoration:none;filter:brightness(1.05)}.btn.ghost{background:var(--surface);color:var(--text)}.btn.ghost:hover{text-decoration:none;border-color:var(--accent)}button.btn{font:inherit;cursor:pointer;line-height:inherit}.dl-menu{position:relative;display:inline-block}.dl-toggle{display:inline-flex;align-items:center;gap:.4rem}.dl-caret{font-size:.7em;transition:transform .15s ease}.dl-caret.is-open{transform:rotate(180deg)}.dl-panel{position:absolute;z-index:30;top:calc(100% + .4rem);left:0;min-width:max(100%,15rem);display:flex;flex-direction:column;padding:.35rem;text-align:left;background:var(--bg);border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 30px var(--shadow)}.dl-item{display:flex;flex-direction:column;gap:.1rem;padding:.5rem .65rem;border-radius:8px;color:var(--text)}.dl-item:hover{text-decoration:none;background:var(--surface)}.dl-name{font-weight:600}.dl-sub{font-size:.78rem;color:var(--faint)}.dl-all{margin-top:.2rem;padding:.45rem .65rem;border-top:1px solid var(--border);border-radius:0 0 8px 8px;font-size:.82rem;color:var(--accent)}.dl-all:hover{text-decoration:none;background:var(--surface)}.hero-shot{width:min(420px,92vw);margin:2rem auto 0}.hero-shot .shots{position:relative;aspect-ratio:var(--shot-ratio, 960 / 1560);cursor:pointer;overflow:hidden;border-radius:12px;border:1px solid var(--border);box-shadow:0 12px 40px var(--shadow);background:var(--surface)}.hero-shot .shot{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .7s ease;pointer-events:none}:root[data-theme=dark] .hero-shot .shot-light{display:none}:root[data-theme=light] .hero-shot .shot-dark{display:none}:root[data-theme=dark] .hero-shot .shot-dark.is-active,:root[data-theme=light] .hero-shot .shot-light.is-active{opacity:1}.hero-shot[data-app=dorado] .shot[data-app=gyotaku],.hero-shot[data-app=gyotaku] .shot[data-app=dorado]{display:none}.hero-shot .app-toggle{display:flex;justify-content:center;margin-bottom:.85rem}.hero-shot .at-opt{font-size:.8rem;font-weight:550;padding:.3rem .85rem;background:var(--surface);color:var(--muted);border:1px solid var(--border);cursor:pointer}.hero-shot .at-opt:first-child{border-radius:8px 0 0 8px}.hero-shot .at-opt:last-child{border-radius:0 8px 8px 0;border-left:none}.hero-shot .at-opt.is-active{background:var(--accent);color:#fff;border-color:transparent}.hero-shot .dots{display:flex;gap:.45rem;justify-content:center;margin-top:.85rem}.hero-shot .dot{width:7px;height:7px;border-radius:50%;border:none;padding:0;cursor:pointer;background:color-mix(in srgb,var(--faint) 45%,transparent);transition:background .2s ease}.hero-shot .dot.is-active{background:var(--accent)}.lightbox{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:4vmin;background:#000000d1;cursor:zoom-out}.lightbox.open{display:flex}.lightbox-img{max-width:96vw;max-height:92vh;width:auto;height:auto;border-radius:12px;border:1px solid var(--border);box-shadow:0 24px 80px #00000080;cursor:default}section{padding:2.5rem 0;border-top:1px solid var(--border)}section h2{font-size:1.5rem;margin:0 0 .4rem}section .sub{color:var(--muted);margin:0 0 1.8rem;max-width:40rem}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1.2rem 1.25rem;box-shadow:0 1px 2px var(--shadow)}.card h3{margin:0 0 .35rem;font-size:1.05rem}.card h3 .badge{font:600 .7rem/1 ui-monospace,monospace;color:var(--gold);border:1px solid var(--border);border-radius:6px;padding:.2rem .4rem;margin-left:.5rem;vertical-align:middle}.card p{margin:0;color:var(--muted);font-size:.94rem}.card p.card-langs{margin:.7rem 0 0;padding-top:.6rem;border-top:1px solid var(--border);font:600 .72rem/1.2 ui-monospace,monospace;color:var(--gold)}.layers{display:grid;gap:.7rem;counter-reset:layer}.layer{display:flex;gap:.9rem;align-items:baseline;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:.9rem 1.1rem}.layer:before{counter-increment:layer;content:counter(layer);font:700 .85rem/1.6 ui-monospace,monospace;color:var(--bg);background:var(--gold);border-radius:6px;min-width:1.6rem;height:1.6rem;display:inline-grid;place-items:center;flex:none}.layer b{color:var(--text)}.layer span{color:var(--muted)}.checks{list-style:none;padding:0;margin:0;display:grid;gap:.6rem}.checks li{padding-left:1.7rem;position:relative;color:var(--muted)}.checks li:before{content:"✓";position:absolute;left:0;color:var(--accent);font-weight:700}.checks li b{color:var(--text)}.note{background:color-mix(in srgb,var(--gold) 12%,transparent);border:1px solid color-mix(in srgb,var(--gold) 40%,var(--border));border-radius:12px;padding:1.1rem 1.25rem;color:var(--text)}.note b{color:var(--gold)}pre.snippet{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1rem 1.15rem;overflow-x:auto;color:var(--text)}.demo{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:1.25rem;box-shadow:0 1px 2px var(--shadow)}.demo-heading{font-size:1.1rem;margin:2.2rem 0 .4rem}.demo-heading:first-of-type{margin-top:.5rem}.demo-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.85rem}.demo-field{display:flex;flex-direction:column;gap:.35rem;font-size:.82rem;color:var(--muted)}.demo-field.demo-wide{grid-column:1 / -1}.demo-field span{font-weight:600}.demo-field input,.demo-field select,.demo-field textarea{font:inherit;font-size:.92rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:.5rem .6rem}.demo-field textarea{resize:vertical;font-family:ui-monospace,monospace}.demo-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-top:1rem}.demo-actions .btn{cursor:pointer}.demo-actions .btn:disabled{opacity:.55;cursor:default}.demo-check{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem;color:var(--muted)}.demo-out{margin-top:1.1rem;border-top:1px solid var(--border);padding-top:1rem}.demo-meta{display:flex;flex-wrap:wrap;gap:.4rem .6rem;font:600 .72rem/1.4 ui-monospace,monospace;color:var(--muted);margin-bottom:.7rem}.demo-meta span{border:1px solid var(--border);border-radius:6px;padding:.2rem .45rem}.demo-meta b{color:var(--gold)}.demo-b64{display:block;max-height:8rem;overflow:auto;word-break:break-all;font-size:.78rem;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:.6rem .7rem}.demo-result{margin-top:1rem;border-radius:8px;padding:.7rem .85rem;font-size:.92rem}.demo-ok{background:color-mix(in srgb,var(--accent) 12%,transparent);border:1px solid color-mix(in srgb,var(--accent) 40%,var(--border))}.demo-err{background:color-mix(in srgb,var(--gold) 12%,transparent);border:1px solid color-mix(in srgb,var(--gold) 45%,var(--border))}.demo-note{margin:1rem 0 0;font-size:.82rem;color:var(--faint)}.demo-note strong{color:var(--gold)}.demo-note a{color:var(--accent)}.cmp-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:12px}.cmp{border-collapse:collapse;width:100%;min-width:680px;font-size:.86rem}.cmp th,.cmp td{text-align:left;padding:.6rem .8rem;border-bottom:1px solid var(--border);vertical-align:top}.cmp thead th{position:sticky;top:0;background:var(--surface);color:var(--text);font:600 .8rem/1.2 ui-monospace,monospace;border-bottom:2px solid var(--border)}.cmp tbody th{color:var(--text);font-weight:600;white-space:nowrap}.cmp tbody td{color:var(--muted)}.cmp tr.cmp-ref th,.cmp tr.cmp-ref td{background:color-mix(in srgb,var(--gold) 8%,transparent)}.cmp tr.cmp-ref th{color:var(--gold)}.cmp tbody tr:last-child th,.cmp tbody tr:last-child td{border-bottom:none}.prose{max-width:48rem}.prose .back{font-size:.9rem;margin:0 0 1.5rem}.prose h1{font-size:1.9rem;margin:0 0 .8rem}.prose h2{font-size:1.3rem;margin:2rem 0 .6rem;padding-top:1.2rem;border-top:1px solid var(--border)}.prose h3{font-size:1.05rem;margin:1.4rem 0 .4rem}.prose p,.prose li{color:var(--muted);line-height:1.7}.prose ul{padding-left:1.2rem}.prose li{margin:.35rem 0}.prose strong{color:var(--text)}.prose code{font-family:ui-monospace,monospace;font-size:.88em;background:var(--surface);border:1px solid var(--border);border-radius:5px;padding:.08rem .32rem}.prose a{color:var(--accent)}footer.site{border-top:1px solid var(--border);margin-top:1rem;padding:2rem 0;color:var(--faint);font-size:.88rem}footer.site .wrap{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}@media(max-width:600px){header.site .wrap{flex-wrap:wrap;height:auto;gap:.5rem;padding-top:.55rem;padding-bottom:.55rem}.wordmark{white-space:nowrap}.theme-toggle{margin-left:auto}header.site nav{order:3;width:100%;margin-left:0;justify-content:center;flex-wrap:wrap;gap:.5rem 1.1rem}}
