*{box-sizing:border-box;margin:0;padding:0}:root{--bg-app:#274c43;--bg-panel:#17332d;--bg-card:#0b1f1b;--text:#e5e7eb;--muted:#9ca3af;--chalk:#f9fafb;--yellow:#facc15;--pink:#fb7185;--cyan:#22d3ee;--green:#6ee7b7;--red:#f87171}body{background:var(--bg-card);color:var(--text);height:100vh;font-family:monospace;overflow:hidden}.chalk-nav{z-index:100;align-items:flex-end;gap:4px;height:36px;padding:0 16px;display:flex;position:fixed;top:0;left:0;right:0}.chalk-nav a{letter-spacing:.08em;color:var(--chalk);background:var(--bg-panel);border:1px solid #ffffff2e;border-bottom:none;border-radius:6px 6px 0 0;padding:4px 18px 6px;font-family:Schoolbell,cursive;font-size:.95rem}.layout{align-items:stretch;gap:16px;height:100vh;padding:52px 20px 22px;display:flex}.board{touch-action:none;background-color:var(--bg-app);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03 0.05' numOctaves='6' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeBlend in='SourceGraphic' mode='screen'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)' opacity='0.03'/%3E%3C/svg%3E"),radial-gradient(at 55% 45%,#2e6b52 0%,#274c43 45%,#1a3530 100%);background-size:cover;flex:1;min-width:0;min-height:0;display:block;box-shadow:0 0 0 3px #5a3a1a,0 0 0 9px #7a4e28,0 0 0 11px #3d2510,0 6px 24px #0009}#draw{cursor:crosshair}.flow-arrow{flex-shrink:0;justify-content:center;align-items:center;width:28px;display:flex}.panel{flex-direction:column;flex-shrink:0;gap:10px;width:290px;min-height:0;display:flex}.panel-top{align-items:center;gap:6px;display:flex}.label{text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-size:.7rem}.panel-top .label{margin-right:auto}.title{color:var(--chalk);letter-spacing:.06em;margin-right:auto;font-family:Schoolbell,cursive;font-size:1.25rem}button,.grid-input input{color:var(--muted);background:#0000004d;border:1px solid #fff3;border-radius:3px;padding:4px 8px;font-family:monospace;font-size:.75rem}button{cursor:pointer;transition:color .15s,border-color .15s}button:hover{color:var(--yellow);border-color:var(--yellow)}button.done{color:var(--green);border-color:var(--green)}button:disabled{opacity:.4;cursor:default;color:var(--muted);border-color:#fff3}.grid-input{align-items:center;gap:10px;display:flex}.grid-input label{color:var(--muted);align-items:center;gap:4px;font-size:.8rem;display:flex}.grid-input input{width:48px;color:var(--chalk);padding:3px 6px;font-size:.85rem}.grid-input input:focus{border-color:var(--yellow);color:var(--yellow);outline:none}.brushes{grid-template-columns:repeat(5,1fr);gap:4px;display:grid}.brush{color:var(--muted);flex-direction:column;align-items:center;gap:2px;padding:5px 2px 4px;display:flex}.brush b{color:var(--chalk);font-size:.95rem;font-weight:400}.brush span{font-size:.6rem}.brush i{border-radius:2px;width:18px;height:3px;display:block}.brush.active{border-color:var(--yellow);background:#facc1514}.brush.active b{color:var(--yellow)}#program{min-height:120px;color:var(--chalk);resize:none;white-space:pre;background:#0000004d;border:1px solid #ffffff26;border-radius:4px;flex:40%;padding:8px;font-family:monospace;font-size:.8rem;line-height:1.55;overflow:auto}#program:focus{border-color:var(--yellow);outline:none}#program.invalid{border-color:var(--red)}.relations{border-top:1px solid #ffffff14;flex:30%;min-height:60px;padding-top:6px;font-size:.75rem;list-style:none;overflow:auto}.relations li{cursor:pointer;color:var(--text);border-radius:3px;align-items:baseline;gap:6px;padding:2px 4px;display:flex}.relations li:hover{background:#ffffff0d}.relations li.selected{color:var(--yellow);background:#facc151f}.relations li.bad{color:var(--red)}.relations li i{border-radius:50%;flex-shrink:0;width:8px;height:8px;transform:translateY(1px)}.relations li small{color:var(--muted);margin-left:auto}.status{color:var(--green);min-height:1.2em;font-size:.75rem;line-height:1.5}.status.error{color:var(--red)}.hint{color:var(--muted);font-size:.7rem;line-height:1.6}.hint kbd{color:var(--yellow);font-family:monospace}@media (width<=900px){body{height:auto;overflow:auto}.layout{flex-direction:column;height:auto;padding:48px 12px 20px}.board{flex:none;height:78vw;max-height:520px}.panel{width:100%}#program{min-height:190px}.flow-arrow{width:auto;height:24px;transform:rotate(90deg)}}body.scroll{height:auto;min-height:100vh;overflow:auto}.chalk-nav{background:var(--bg-card)}.chalk-nav a{color:var(--muted);background:0 0;text-decoration:none}.chalk-nav a.active{color:var(--chalk);background:var(--bg-panel)}.chalk-nav a[href]:hover{color:var(--yellow)}.enc-page{flex-direction:column;gap:14px;padding:52px 20px 28px;display:flex}.enc-input{flex-direction:column;gap:8px;display:flex}#encodings{height:160px;color:var(--chalk);resize:vertical;background:#0000004d;border:1px solid #ffffff26;border-radius:4px;padding:8px;font-family:monospace;font-size:.8rem;line-height:1.4}#encodings:focus{border-color:var(--yellow);outline:none}.enc-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px;padding:11px;display:grid}.enc-card{flex-direction:column;gap:6px;min-width:0;display:flex}.enc-card .board+.status{margin-top:10px}.enc-card .board{aspect-ratio:1;flex:none;width:100%}.enc-card pre{color:var(--muted);max-height:0;font-size:.7rem;line-height:1.25;transition:max-height .2s;overflow:auto}.enc-card.open pre{max-height:400px}.enc-card .status{cursor:pointer}.rd [hidden]{display:none!important}body.reader .board{touch-action:manipulation}body.reader{background:var(--bg-card);height:auto;min-height:100vh;font-family:system-ui,sans-serif;overflow:auto}.rd{max-width:980px;padding:max(18px, env(safe-area-inset-top)) 16px 28px;flex-direction:column;gap:18px;margin:0 auto;display:flex}.rd-foot a{color:var(--yellow);text-decoration:none}.rd-head h1{color:var(--chalk);letter-spacing:.5px;font:36px Schoolbell,cursive}.rd-head p{color:var(--muted);max-width:60ch;margin-top:4px;font-size:15px;line-height:1.45}.rd-pick{background:var(--bg-panel);border-radius:14px;flex-direction:column;gap:12px;padding:14px;display:flex}.rd-models{grid-template-columns:1fr 1fr;gap:8px;display:grid}.rd-models button{background:var(--bg-card);color:var(--text);cursor:pointer;border:1.5px solid #0000;border-radius:10px;justify-content:space-between;align-items:baseline;gap:8px;min-height:44px;padding:10px 12px;font:15px system-ui,sans-serif;display:flex}.rd-models button b{font-weight:600}.rd-models button small{color:var(--muted);font-size:12px}.rd-models button[aria-checked=true]{border-color:var(--yellow)}.rd-models button[aria-checked=true] small{color:var(--yellow)}.rd-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.rd-btn{border:1.5px solid var(--muted);min-height:48px;color:var(--chalk);cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:0 16px;font:600 16px system-ui,sans-serif;display:inline-flex}.rd-btn:hover{border-color:var(--chalk)}.rd-btn.primary{background:var(--yellow);border-color:var(--yellow);color:#1a1a1a}.rd-btn.primary:hover{filter:brightness(1.08)}.rd-btn:focus-within,.rd-btn:focus-visible,.rd-models button:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}.rd-drop{text-align:center;color:var(--muted);border:1.5px dashed #3c5a52;border-radius:10px;padding:14px;font-size:14px}.rd-drop.over{border-color:var(--yellow);color:var(--yellow)}.rd-examples{flex-direction:column;gap:6px;min-width:0;display:flex}.rd-examples>span{color:var(--muted);font-size:13px}.rd-strip{scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;grid-auto-columns:76px;grid-auto-flow:column;gap:8px;padding-bottom:4px;display:grid;overflow-x:auto}.rd-strip button{cursor:pointer;aspect-ratio:1;scroll-snap-align:start;background:0 0;border:2px solid #0000;border-radius:10px;padding:0;overflow:hidden}.rd-strip button:hover,.rd-strip button:focus-visible{border-color:var(--yellow);outline:none}.rd-strip img{object-fit:cover;width:100%;height:100%;display:block}.rd-bar{background:var(--bg-card);border-radius:99px;height:6px;overflow:hidden}.rd-bar i{background:var(--yellow);width:0;height:100%;transition:width .2s;display:block}.rd-status{color:var(--green);min-height:1.4em;font-size:15px;line-height:1.4}.rd-status.error{color:var(--red)}.rd-result{grid-template-columns:1fr;gap:14px;display:grid}.rd-main{flex-direction:column;gap:8px;min-width:0;display:flex}.rd-frame{aspect-ratio:1;background:var(--bg-panel);border-radius:14px;width:100%;position:relative;overflow:hidden;box-shadow:0 10px 30px #00000059}.rd-frame canvas{width:100%;height:100%;display:block}#preview{object-fit:contain;background:var(--bg-card);opacity:0;pointer-events:none;width:100%;height:100%;transition:opacity .45s;position:absolute;inset:0}.rd-frame.reading #preview{opacity:1}.rd-frame.arriving #preview{opacity:0;transition:none}.rd-ghost{z-index:10;object-fit:cover;pointer-events:none;position:fixed;box-shadow:0 14px 40px #00000073}@media (hover:none){.rd-drop{display:none}}.rd-frame:after{content:"";pointer-events:none;opacity:0;background:linear-gradient(#0000 0%,#facc1500 35%,#facc152e 50%,#facc1500 65%,#0000 100%) 0 0/100% 220%;transition:opacity .3s;animation:2.2s ease-in-out infinite rd-scan;position:absolute;inset:0}.rd-frame.reading:after{opacity:1}@keyframes rd-scan{0%{background-position:0 100%}to{background-position:0 0}}@media (prefers-reduced-motion:reduce){.rd-frame:after{animation:none}}#caption{color:var(--chalk);text-align:center;min-height:1.4em;font:21px Schoolbell,cursive;transition:opacity .3s}.rd-side{grid-template-columns:96px 1fr;align-items:center;gap:10px 12px;min-width:0;display:grid}.rd-thumb{display:contents}.rd-thumb canvas{background:var(--bg-panel);border-radius:10px;grid-row:span 2;width:96px;height:96px}.rd-thumb figcaption{color:var(--muted);align-self:end;font-size:13px}#again{justify-self:start;min-height:40px;font-size:14px}.rd-side .rd-digits{grid-column:1/-1}.rd-digits{color:var(--muted);font-size:14px}.rd-digits summary{cursor:pointer;padding:6px 0}.rd-digits pre{color:var(--chalk);background:var(--bg-panel);border-radius:8px;height:220px;margin-top:6px;padding:10px 12px;font:14px/1.35 ui-monospace,monospace;overflow:auto}.rd-foot{color:var(--muted);border-top:1px solid var(--bg-panel);padding-top:14px;font-size:13px;line-height:1.5}.rd-foot a{color:var(--yellow)}.rd-foot p+p{margin-top:8px}.rd-small{color:#6b7a76;font-size:12px}@media (width>=720px){.rd{gap:22px;padding-top:32px}.rd-head h1{font-size:44px}.rd-pick{grid-template-columns:1fr 1fr;align-items:center;display:grid}.rd-drop,.rd-bar,.rd-status,.rd-examples{grid-column:1/-1}.rd-strip{grid-template-columns:repeat(8,1fr);grid-auto-columns:auto;grid-auto-flow:row;overflow:visible}.rd-result{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start}.rd-side{aspect-ratio:2/3;flex-direction:column;align-items:stretch;gap:10px;display:flex;overflow:hidden}.rd-thumb{flex-direction:column;flex:1 1 0;gap:6px;min-height:120px;display:flex}.rd-thumb canvas{object-fit:contain;background:0 0;flex:1 1 0;width:100%;height:auto;min-height:0}.rd-thumb figcaption{text-align:center;align-self:auto}#again{align-self:flex-start}.rd-side .rd-digits{flex:none;position:relative}.rd-side .rd-digits[open]{flex:1 1 0;min-height:100px}.rd-side .rd-digits pre{height:auto;margin:0;position:absolute;inset:34px 0 0}}.hw-sec{background:var(--bg-panel);border-radius:14px;flex-direction:column;gap:12px;padding:16px;display:flex}.hw-sec h2{color:var(--chalk);align-items:center;gap:10px;font:26px Schoolbell,cursive;display:flex}.hw-sec h2 span{background:var(--yellow);color:#1a1a1a;border-radius:50%;place-items:center;width:32px;height:32px;font:700 16px system-ui,sans-serif;display:inline-grid}.hw-sec p{color:var(--text);max-width:68ch;font-size:15px;line-height:1.55}.hw-sec b{color:var(--chalk)}.hw-gates{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.hw-gate{flex-direction:column;gap:6px;display:flex}.hw-gate figcaption{color:var(--muted);font-size:13px;line-height:1.35}.hw-gate figcaption b{color:var(--yellow);margin-right:4px;font:600 16px system-ui,sans-serif}.hw-gate figcaption small{display:block}.hw-play{grid-template-columns:1fr;align-items:start;gap:14px;display:grid}.hw-board figcaption{color:var(--chalk);text-align:center;margin-top:6px;font:19px Schoolbell,cursive}.hw-digits{flex-direction:column;align-items:center;gap:12px;display:flex}.hw-grid{flex-direction:column;align-items:center;gap:4px;font:600 18px ui-monospace,monospace;display:flex}.hw-row{gap:4px;display:flex}.hw-row.ud{padding:0 calc(min(36px,14.2857vw - 13.7143px)/2 + 2px)}.hw-row button{cursor:pointer;background:var(--bg-card);width:min(36px,14.2857vw - 13.7143px);height:min(36px,14.2857vw - 13.7143px);color:var(--chalk);font:inherit;border:1.5px solid #0000;border-radius:8px}.hw-row button.d1{color:var(--cyan)}.hw-row button.d2{color:var(--green)}.hw-row button.edge{background:#081613}.hw-row button{transition:transform 80ms,border-color .15s;box-shadow:0 2px #050e0c}.hw-row button:active{box-shadow:none;transform:translateY(1px)}.hw-row button.pulse{border-color:var(--yellow);animation:1.4s ease-in-out infinite hw-pulse}@keyframes hw-pulse{0%,to{box-shadow:0 0 #facc158c}50%{box-shadow:0 0 0 6px #facc1500}}.hw-hint{color:var(--yellow);background:#facc151f;border:1px solid #facc1573;border-radius:99px;align-self:flex-start;align-items:center;gap:8px;padding:8px 14px;font-size:14px;display:inline-flex}.hw-hint span{animation:1.4s ease-in-out infinite hw-nudge;display:inline-block}@keyframes hw-nudge{0%,to{transform:translateY(0)}50%{transform:translateY(-3px)}}.hw-tap{pointer-events:none;border:2.5px solid var(--yellow);border-radius:50%;animation:1.4s ease-out infinite hw-ring;position:absolute;transform:translate(-50%,-50%)}@keyframes hw-ring{0%{opacity:.95;transform:translate(-50%,-50%)scale(.7)}to{opacity:0;transform:translate(-50%,-50%)scale(1.6)}}.hw-legend{color:var(--muted);flex-wrap:wrap;justify-content:center;gap:6px 10px;max-width:300px;font:13px ui-monospace,monospace;display:flex}.hw-legend span{background:var(--bg-card);border-radius:6px;padding:2px 8px}.hw-legend .d1{color:var(--cyan)}.hw-legend .d2{color:var(--green)}.hw-legend .d3,.hw-legend .d6{color:var(--pink)}.hw-legend small{text-align:center;width:100%;font-family:system-ui,sans-serif;font-size:11.5px}@media (prefers-reduced-motion:reduce){.hw-tap,.hw-row button.pulse,.hw-hint span{animation:none}}.hw-row button.on{border-color:var(--yellow)}.hw-row button.d3,.hw-row button.d4,.hw-row button.d5,.hw-row button.d6,.hw-row button.d7,.hw-row button.d8{color:var(--pink)}#reset:disabled{opacity:.4;cursor:default}.hw-fade{animation:.7s hw-fade}@keyframes hw-fade{0%{opacity:.15}to{opacity:1}}.hw-row button:not(.edge):hover{border-color:var(--muted)}.hw-math{background:var(--bg-card);border-radius:12px;flex-direction:column;gap:8px;padding:12px 14px;display:flex}.hw-formula{text-align:center;font:600 20px ui-monospace,monospace;color:var(--yellow)!important}.hw-four{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.hw-four figure{flex-direction:column;gap:6px;display:flex}.hw-four img,.hw-looks img{aspect-ratio:1;object-fit:cover;border-radius:10px;width:100%;display:block}.hw-four figcaption{color:var(--muted);font-size:13px}.hw-four figcaption b{color:var(--chalk);font-size:14px;display:block}.hw-looks{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.hw-icon{background:var(--bg-card);width:72px;height:72px;color:var(--yellow);border-radius:50%;place-items:center;font-size:30px;display:grid}.hw-arrow{color:var(--yellow);font-size:22px;font-style:normal;transform:rotate(90deg)}.hw-resnet{align-items:center;gap:6px;height:120px;display:flex}.hw-resnet span{background:var(--bg-card);color:var(--cyan);border:1.5px solid #2c4a42;border-radius:8px;place-items:center;padding:4px;font-size:11px;display:grid}.hw-resnet span:first-child{width:64px;height:110px}.hw-resnet span:nth-child(2){width:52px;height:84px}.hw-resnet span:nth-child(3){width:44px;height:60px;color:var(--yellow)}.tf{grid-template-columns:minmax(0,1fr);gap:18px;display:grid;position:relative}.tf-link{pointer-events:none;z-index:2;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.tf-link path{fill:none;stroke:var(--yellow);stroke-width:2px;stroke-dasharray:5 9;opacity:.35;transition:opacity .3s,stroke-width .3s;animation:1.6s linear infinite tf-flow}.tf-link path.hot{opacity:1;stroke-width:3px;filter:drop-shadow(0 0 4px #facc15cc);animation-duration:.5s}@keyframes tf-flow{to{stroke-dashoffset:-28px}}@media (prefers-reduced-motion:reduce){.tf-link path{animation:none}}.tf-col{background:var(--bg-card);border-radius:12px;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:12px;display:flex}.tf-tag{text-align:center;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--bg-panel);align-self:stretch;margin-bottom:4px;padding-bottom:6px;font:600 12px system-ui,sans-serif}.tf-step{text-align:center;border:1.5px solid #0000;border-radius:10px;flex-direction:column;align-items:center;gap:6px;width:100%;padding:8px;transition:border-color .25s,background .25s;display:flex}.tf-step.lit{border-color:var(--yellow);background:#facc150f}.tf-step small{color:var(--muted);max-width:34ch;font-size:12.5px;line-height:1.35}.tf-step small b,.tf-sub b{color:var(--chalk);font-size:14.5px;display:block}.tf-sub b em{color:var(--yellow);font-size:12.5px;font-style:normal;font-weight:500}.tf-down{color:var(--yellow);font-size:18px;font-style:normal;line-height:1}.tf-photo{border-radius:10px;width:120px;height:120px;position:relative;overflow:hidden}.tf-photo img{object-fit:cover;width:100%;height:100%;display:block}.tf-photo i{background-image:linear-gradient(#0b1f1b8c 1px,#0000 1px),linear-gradient(90deg,#0b1f1b8c 1px,#0000 1px);background-size:5px 5px;position:absolute;inset:0}.tf-tokens{gap:1px;width:132px;height:132px;display:grid}.tf-tokens i{border-radius:1px;transition:opacity .3s}.tf-tokens i.hot{box-shadow:0 0 0 1.5px var(--yellow), 0 0 8px var(--yellow);z-index:1;position:relative}.tf-chips{flex-direction:column;justify-content:flex-end;align-items:center;gap:3px;height:128px;display:flex;overflow:hidden}.tf-chips div{gap:3px;display:flex}.tf-chips i{background:var(--bg-panel);min-width:20px;height:22px;color:var(--chalk);border-radius:6px;place-items:center;padding:0 4px;font:600 13px ui-monospace,monospace;display:grid}.tf-chips i.d1{color:var(--cyan)}.tf-chips i.d2{color:var(--green)}.tf-chips i.d3,.tf-chips i.d4,.tf-chips i.d5,.tf-chips i.d6,.tf-chips i.d7,.tf-chips i.d8{color:var(--pink)}.tf-chips i.new{box-shadow:inset 0 0 0 1.5px var(--yellow)}.tf-block{border:1.5px dashed #3c5a52;border-radius:12px;flex-direction:column;gap:6px;width:100%;padding:22px 8px 8px;display:flex;position:relative}.tf-x{background:var(--yellow);color:#1a1a1a;border-radius:99px;padding:1px 9px;font:700 12px system-ui,sans-serif;position:absolute;top:-10px;right:12px}.tf-sub{background:var(--bg-panel)}.tf-sub small{max-width:none}.tf-loop{color:var(--yellow);text-align:center;border:1.5px solid #0000;border-radius:99px;padding:6px 10px;font-size:13.5px}.tf-loop.lit{border-color:var(--yellow);background:#facc1514}.tf-svg{width:100%;max-width:440px;height:auto;display:block}.tf-svg text{fill:var(--chalk);text-anchor:middle;font:600 12.5px system-ui,sans-serif}.tf-svg .tf-sm{fill:var(--text);font-size:11px;font-weight:500}.tf-svg .tf-side{fill:var(--muted);text-anchor:start;font-size:10.5px;font-weight:400}.tf-note{text-align:center;color:var(--muted)!important;font-size:12px!important}.tf-svg .tf-kvt{fill:var(--yellow)}.tf-svg .tf-o{fill:var(--chalk);font-size:15px}.tf-svg .tf-nx{fill:var(--yellow);font:700 15px system-ui,sans-serif}.tf-wire{stroke:#9ca3af;stroke-width:1.6px;fill:none}.tf-res{stroke:#5d7a72;stroke-width:1.4px;fill:none;stroke-dasharray:4 3}.tf-kv{stroke:var(--yellow);stroke-width:1.8px;fill:none}.tf-n{fill:#ffffff08;stroke:#3c5a52;stroke-width:1.5px;stroke-dasharray:6 4}.tf-emb{fill:#3b1d26;stroke:#fb7185}.tf-att{fill:#3d2a12;stroke:#f59e0b}.tf-norm{fill:#36310f;stroke:#facc15}.tf-ff{fill:#10303a;stroke:#22d3ee}.tf-lin{fill:#2a1f3d;stroke:#a78bfa}.tf-add{fill:#0b1f1b;stroke:#9ca3af}.tf-svg rect,.tf-svg circle{stroke-width:1.5px;transition:stroke-width .25s,filter .25s}.tf-svg g.lit rect,.tf-svg g.lit circle{stroke:var(--yellow);stroke-width:3px;filter:drop-shadow(0 0 7px #facc15b3)}.tf-svg g.lit .tf-att{fill:#6b4712}.tf-svg g.lit .tf-ff{fill:#145466}.tf-svg g.lit .tf-emb{fill:#6a2a3b}.tf-svg g.lit .tf-lin{fill:#46326b}.tf-svg g.lit .tf-norm{fill:#5c5112}.tf-conv{fill:#0f332f;stroke:#2dd4bf}.tf-back{opacity:.45}.tf-map{fill:#2dd4bf;opacity:.55}.tf-svg g.lit .tf-conv{fill:#17544d}.tf-svg g.lit .tf-map{opacity:1}.tf-head{color:var(--muted);text-align:center;max-width:36ch;font-size:12.5px;line-height:1.35}.tf-head b{color:var(--chalk);font-size:14.5px;display:block}.tf-inset{margin-top:6px}.tf-enc,.tf-block1{max-width:380px}.tf-out .rd-frame{border-radius:10px;width:200px;height:200px}.tf-pick{height:3.2em;color:var(--text);justify-content:center;align-items:center;font-size:13.5px;display:flex;overflow:hidden}.tf-pick b{color:var(--yellow);font:700 16px ui-monospace,monospace}.hw-bars{grid-template-columns:repeat(11,minmax(0,1fr));gap:4px;width:100%;max-width:360px;height:96px;display:grid}.hw-bar{min-width:0}.hw-bar i .narrow{display:none}@media (width<=460px){.hw-bars{gap:2px}.hw-bar i .wide{display:none}.hw-bar i .narrow{display:inline}.hw-bar b{font-size:12px}}.hw-bar{grid-template-rows:1fr auto;display:grid;position:relative}.hw-bar>span{background:var(--muted);border-radius:3px 3px 0 0;align-self:end;min-height:2px;transition:height .25s}.hw-bar em{color:var(--muted);white-space:nowrap;font:600 11px system-ui,sans-serif;position:absolute;top:-2px;left:50%;transform:translate(-50%,-100%)}.hw-bar.win em{color:var(--yellow)}.hw-bar i{height:13px;color:var(--muted);text-align:center;white-space:nowrap;font:500 9.5px/13px ui-monospace,monospace}.hw-bar.win i{color:var(--yellow)}#tfBars{grid-template-rows:none;height:110px}#tfBars .hw-bar{grid-template-rows:1fr auto auto}.hw-bar b{color:var(--text);text-align:center;padding-top:3px;font:600 13px ui-monospace,monospace}.hw-bar.no b{color:#4b5d58;text-decoration:line-through}.hw-bar.no>span{background:#2c403b}.hw-bar.win>span{background:var(--yellow)}.hw-bar.win b{color:var(--yellow)}.wr{grid-template-columns:1fr 1fr;gap:10px;display:grid}.wr>.wr-pane:last-child{grid-column:1/-1}.wr-pane{flex-direction:column;gap:6px;min-width:0;display:flex}.wr-pane figcaption{color:var(--chalk);text-align:center;font:18px Schoolbell,cursive}.wr-pane figcaption small{color:var(--muted);font:12px system-ui,sans-serif;display:block}.wr-photo{aspect-ratio:1;border-radius:14px;position:relative;overflow:hidden}.wr-photo img,.wr-photo canvas{object-fit:cover;width:100%;height:100%;display:block;position:absolute;inset:0}.wr-grid{background:var(--bg-card);border-radius:14px;justify-content:center;gap:3px;padding:8px;font-size:15px}.wr-grid .hw-row{gap:3px}.wr-grid .hw-row.ud{padding:0 13px}.wr-grid span{background:var(--bg-panel);width:23px;height:23px;color:var(--chalk);border:1.5px solid #0000;border-radius:5px;place-items:center;display:grid}.wr-grid span.d1{color:var(--cyan)}.wr-grid span.d2{color:var(--green)}.wr-grid span.d3,.wr-grid span.d4,.wr-grid span.d5,.wr-grid span.d6,.wr-grid span.d7,.wr-grid span.d8{color:var(--pink)}.wr-grid span.todo{color:#3c5a52;background:0 0}.wr-grid span.on{border-color:var(--yellow)}.wr-bars{align-self:center;margin-top:14px}.wr-say{text-align:center;align-self:center;height:4.6em;overflow:hidden}.wr-say small{color:var(--muted);font-size:13px}.wr-say small b{color:var(--text);font-family:ui-monospace,monospace}.wr-ctl{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.wr-ctl .rd-btn{min-width:48px;min-height:40px;font-size:15px}.wr-ctl input{max-width:420px;accent-color:var(--yellow);flex:100%}@media (prefers-reduced-motion:reduce){.tf-step,.tf-tokens i,.hw-bar>span{transition:none}}.hw-train{grid-template-columns:1fr;align-items:center;gap:14px;display:grid}.hw-loop{grid-template-columns:1fr 1fr;gap:8px;display:grid}.hw-loop div{background:var(--bg-card);color:var(--text);border-radius:10px;padding:10px;font-size:13.5px;line-height:1.35}.hw-loop div b{background:var(--yellow);color:#1a1a1a;border-radius:50%;place-items:center;width:22px;height:22px;margin-right:4px;font-size:12px;display:inline-grid}.hw-again{text-align:center;color:var(--yellow);grid-column:1/-1;font-size:14px}.hw-chart{background:var(--bg-card);border-radius:12px;padding:10px}.hw-chart svg{width:100%;height:auto;display:block}.hw-chart .grid{stroke:#24392f}.hw-chart .loss{fill:none;stroke:var(--yellow);stroke-width:2.5px;stroke-linejoin:round}.hw-chart .exact{fill:var(--green);stroke:var(--bg-card);stroke-width:2px}.hw-chart text{font:11px system-ui,sans-serif}.hw-chart .acc{fill:var(--green)}.hw-chart .ax{fill:var(--muted)}.hw-chart .lossl{fill:var(--yellow)}.hw-chart figcaption{color:var(--muted);text-align:center;margin-top:4px;font-size:12.5px}.hw-chrome{flex-direction:column;align-items:center;gap:6px;display:flex}.hw-chrome>div{text-align:center;flex-direction:column;align-items:center;gap:4px;max-width:220px;display:flex}.hw-chrome b{color:var(--chalk);font-size:15px}.hw-chrome small{color:var(--muted);font-size:12.5px;line-height:1.35}@media (width>=720px){.hw-chrome{flex-direction:row;justify-content:center;align-items:flex-start}.hw-arrow{margin-top:48px;transform:none}.tf{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);align-items:start}.wr{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.wr>.wr-pane:last-child{grid-column:auto}.wr-grid{aspect-ratio:1}.wr-ctl input{flex:200px}.hw-chrome .hw-arrow{margin-top:24px}.hw-train{grid-template-columns:1fr 1.2fr}.hw-gates{grid-template-columns:repeat(4,1fr)}.hw-play{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.hw-four{grid-template-columns:repeat(4,1fr)}.hw-looks{grid-template-columns:repeat(6,1fr)}}.rd-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.rd-badge{color:var(--green);background:#6ee7b71a;border:1px solid #6ee7b766;border-radius:99px;align-items:center;gap:6px;padding:4px 10px;font:600 12px system-ui,sans-serif;display:inline-flex}.rd-badge span{color:var(--yellow)}.rd-pill{background:var(--yellow);border-radius:99px;align-items:center;gap:5px;padding:5px 12px;font:700 12.5px system-ui,sans-serif;text-decoration:none;animation:2.6s ease-in-out .8s infinite rd-hop;display:inline-flex;color:#1a1a1a!important}.rd-pill:hover{filter:brightness(1.07);animation:none}@keyframes rd-hop{0%,55%,to{transform:translateY(0)scale(1);box-shadow:0 0 #facc1599}63%{transform:translateY(-6px)scale(1.06)}71%{transform:translateY(0)scale(1);box-shadow:0 0 0 10px #facc1500}78%{transform:translateY(-3px)}85%{transform:translateY(0)}}.rd-gh{background:#0d1117;border:1px solid #30363d;border-radius:99px;align-items:center;gap:6px;padding:5px 11px;font:600 12.5px system-ui,sans-serif;text-decoration:none;display:inline-flex;color:#f0f6fc!important}.rd-gh:hover{border-color:#8b949e}.rd-links{flex-wrap:wrap;align-items:center;gap:8px;display:flex}@media (prefers-reduced-motion:reduce){.rd-pill{animation:none}}
