*{box-sizing:border-box;margin:0;padding:0}html{font-size:16px}body{min-height:100vh;background:#FFFDF8;color:#3A2D4F;font-family:'Nunito',sans-serif;line-height:1.65;letter-spacing:.005em;overflow:hidden;transition:background .4s ease,color .4s ease}body.dark-mode{background:#1A1128;color:#E8E0F0}.dashboard-shell{display:flex;width:100vw;height:100vh;background:radial-gradient(circle at 80% 10%,rgba(0,224,178,.08),transparent 24rem),radial-gradient(circle at 34% 82%,rgba(244,114,182,.08),transparent 20rem),#FFFDF8}.dark-mode .dashboard-shell{background:radial-gradient(circle at 80% 10%,rgba(0,224,178,.15),transparent 25rem),radial-gradient(circle at 30% 80%,rgba(139,92,246,.16),transparent 23rem),#1A1128}@keyframes auroraShift{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}@keyframes float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-8px) rotate(2deg)}}@keyframes bounce{0%,100%{transform:translateY(0) rotate(var(--tilt))}50%{transform:translateY(-4px) rotate(calc(var(--tilt) * -1))}}@keyframes sketchLine{to{stroke-dashoffset:0}}@keyframes cardIn{0%{opacity:0;transform:translateY(18px) rotateY(90deg)}100%{opacity:1;transform:translateY(0) rotateY(0)}}@keyframes opCycle{0%{color:#00E0B2}33%{color:#8B5CF6}66%{color:#34D399}100%{color:#F472B6}}.sidebar{position:relative;flex:0 0 220px;height:100vh;background:#F4F0EB;padding:24px 17px 24px 18px;box-shadow:4px 0 0 rgba(107,73,132,.08);z-index:3;transition:flex-basis .3s ease,background .4s ease}.dark-mode .sidebar{background:#2B1D3A;box-shadow:4px 0 0 rgba(0,224,178,.08)}.sidebar-squiggle{position:absolute;right:-8px;top:0;width:16px;height:100%;fill:none;stroke:#3A2D4F;stroke-width:3;stroke-linecap:round;stroke-dasharray:12 9;stroke-dashoffset:950;animation:sketchLine .8s ease forwards}.dark-mode .sidebar-squiggle{stroke:#E8E0F0}.brand-card{position:relative;margin-bottom:24px;padding:16px 12px 18px;border-radius:22px;background:#FFFDF8;color:#3A2D4F;box-shadow:4px 4px 0 rgba(107,73,132,.12);transform:rotate(-1deg)}.dark-mode .brand-card{background:#1A1128;color:#E8E0F0}.brand-card:before,.sketch-card:before{content:"";position:absolute;inset:0;border:2px solid #3A2D4F;border-radius:inherit;clip-path:polygon(2% 4%,99% 1%,97% 96%,4% 99%)}.dark-mode .brand-card:before,.dark-mode .sketch-card:before{border-color:#E8E0F0}.brand-bubble{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#00E0B2,#8B5CF6,#34D399,#F472B6);background-size:400% 400%;animation:auroraShift 12s ease infinite,float 4s ease-in-out infinite;color:#FFFDF8;font-family:'Space Grotesk',sans-serif;font-size:1.6rem;font-weight:700;margin-bottom:10px}.brand-card h1{font-family:'Space Grotesk',sans-serif;font-size:2.4rem;letter-spacing:-.01em;line-height:1.15}.brand-card p{font-size:.83rem}.tab-stack{display:flex;flex-direction:column;gap:12px}.nav-tab{--tilt:-1deg;position:relative;width:100%;min-height:58px;display:flex;align-items:center;gap:11px;padding:10px 12px;border:0;border-radius:18px;background:transparent;color:#3A2D4F;font-family:'Space Grotesk',sans-serif;font-size:.94rem;font-weight:700;text-align:left;cursor:pointer;transform:rotate(var(--tilt));transition:background .25s ease,color .25s ease,box-shadow .25s ease}.nav-tab:nth-child(2){--tilt:1deg}.nav-tab:nth-child(3){--tilt:-.5deg}.nav-tab:nth-child(4){--tilt:1.5deg}.nav-tab:nth-child(5){--tilt:-1.5deg}.dark-mode .nav-tab{color:#E8E0F0}.nav-tab:before{content:"";position:absolute;inset:0;border:2px solid rgba(58,45,79,.55);border-radius:18px;clip-path:polygon(1% 8%,98% 3%,96% 96%,4% 92%)}.dark-mode .nav-tab:before{border-color:rgba(232,224,240,.5)}.nav-tab svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.nav-tab:hover{animation:bounce .42s ease;background:rgba(0,224,178,.1)}.nav-tab.active{color:#8B5CF6;background:linear-gradient(135deg,rgba(0,224,178,.18),rgba(139,92,246,.18),rgba(52,211,153,.14));box-shadow:4px 4px 0 rgba(139,92,246,.18)}.nav-tab.active:after{content:"";position:absolute;left:8px;right:8px;bottom:5px;height:4px;border-radius:99px;background:linear-gradient(135deg,#00E0B2,#8B5CF6,#34D399,#F472B6);background-size:400% 400%;animation:auroraShift 12s ease infinite}.sidebar-doodles{position:absolute;left:24px;right:24px;bottom:20px;display:flex;justify-content:space-between;color:#F472B6;font-family:'Space Grotesk',sans-serif;font-size:1.6rem}.sidebar-doodles span{animation:float 4s ease-in-out infinite}.sidebar-doodles span:nth-child(2){animation-delay:.7s;color:#00E0B2}.sidebar-doodles span:nth-child(3){animation-delay:1.2s;color:#34D399}.workspace{display:flex;flex-direction:column;min-width:0;flex:1;height:100vh}.top-bar{position:relative;height:60px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 32px;background:rgba(255,253,248,.88);border-bottom:0;opacity:0;animation:cardIn .3s ease .8s forwards}.dark-mode .top-bar{background:rgba(15,10,26,.88)}.top-bar:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(135deg,#00E0B2,#8B5CF6,#34D399,#F472B6);background-size:400% 400%;animation:auroraShift 12s ease infinite;opacity:.6}.top-title-wrap{display:flex;align-items:center;gap:10px;font-family:'Inconsolata',monospace;font-size:1rem;font-weight:700}.clock-doodle{width:34px;height:34px;fill:none;stroke:#3A2D4F;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.dark-mode .clock-doodle{stroke:#E8E0F0}.formula-ribbon{display:flex;gap:14px;min-width:0;overflow:hidden;font-family:'Inconsolata',monospace;font-size:.9rem}.logic-op{font-family:'Inconsolata',monospace;letter-spacing:.04em;animation:opCycle 6s linear infinite}.formula-ribbon .logic-op:nth-child(2){animation-delay:2s}.formula-ribbon .logic-op:nth-child(3){animation-delay:4s}.mode-toggle{position:relative;width:44px;height:44px;border:2px solid #3A2D4F;border-radius:50%;background:#FFFDF8;color:#3A2D4F;font-size:1.35rem;cursor:pointer;overflow:hidden;box-shadow:3px 3px 0 rgba(107,73,132,.12)}.dark-mode .mode-toggle{background:#2B1D3A;color:#E8E0F0;border-color:#E8E0F0}.mode-toggle span{position:absolute;inset:0;display:grid;place-items:center;transition:clip-path .35s ease,transform .35s ease}.mode-toggle .sun{clip-path:circle(65% at 50% 50%)}.mode-toggle .moon{clip-path:circle(0 at 72% 38%);transform:rotate(-35deg)}.dark-mode .mode-toggle .sun{clip-path:circle(0 at 28% 68%);transform:rotate(90deg)}.dark-mode .mode-toggle .moon{clip-path:circle(65% at 50% 50%);transform:rotate(0)}.main-grid{height:calc(100vh - 60px);overflow:auto;padding:40px;background:transparent}.content-section{display:none;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px;align-items:start}.content-section.active{display:grid}.sketch-card{position:relative;height:360px;border-radius:24px;perspective:1200px;filter:drop-shadow(4px 4px 0 rgba(107,73,132,.12));opacity:0;transform-style:preserve-3d}.dark-mode .sketch-card{filter:drop-shadow(4px 4px 0 rgba(0,224,178,.08))}.sketch-card.entered{animation:cardIn .58s cubic-bezier(.4,0,.2,1) var(--stagger,0ms) forwards}.sketch-card.wide{grid-column:span 2}.sketch-card.tall{height:520px}.card-inner{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.4,0,.2,1);cursor:pointer}.card-inner.flipped{transform:rotateY(180deg)}.card-inner.no-flip{cursor:default}.card-face{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:28px;text-align:center;border-radius:24px;backface-visibility:hidden;overflow:hidden}.card-front{background:#FFFDF8;color:#3A2D4F}.card-back{background:#2B1D3A;color:#E8E0F0;transform:rotateY(180deg)}.dark-mode .card-front{background:#2B1D3A;color:#E8E0F0}.dark-mode .card-back{background:#0F0A1A}.card-back:before,.card-back:after{content:"";position:absolute;left:18px;right:18px;height:5px;border-radius:99px;background:linear-gradient(135deg,#00E0B2,#8B5CF6,#34D399,#F472B6);background-size:400% 400%;animation:auroraShift 12s ease infinite}.card-back:before{top:18px}.card-back:after{bottom:18px}.sketch-card:hover{transform:translateY(-3px)}.sketch-card:hover:before{border-width:3px}.card-face h2,.card-face h3{font-family:'Space Grotesk',sans-serif;font-size:clamp(1.2rem,2.5vw,1.8rem);font-weight:700;letter-spacing:-.01em;line-height:1.15}.card-face p{font-size:clamp(.95rem,1.5vw,1.1rem);max-width:60ch}.category-bubble{position:absolute;right:16px;top:14px;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#00E0B2,#34D399);color:#FFFDF8;font-family:'Space Grotesk',sans-serif;font-weight:700;box-shadow:0 6px 18px rgba(0,224,178,.24);animation:float 4s ease-in-out infinite;backdrop-filter:blur(4px)}.category-bubble.smile:after{content:"◡";font-size:.8rem;position:absolute;bottom:3px}.category-bubble.sad:after{content:"⌢";font-size:.8rem;position:absolute;bottom:3px}.category-bubble.confused:after{content:"•";font-size:.65rem;position:absolute;bottom:5px;right:11px}.notation{font-family:'Inconsolata',monospace;font-size:.9rem!important;letter-spacing:.04em;background:rgba(0,224,178,.12);border-radius:8px;padding:6px 10px}.doodle-board{width:min(100%,520px);height:auto;fill:none;stroke:#3A2D4F;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.dark-mode .doodle-board{stroke:#E8E0F0}.doodle-board text{font-family:'Inconsolata',monospace;font-size:18px;fill:#3A2D4F;stroke:none}.dark-mode .doodle-board text{fill:#E8E0F0}.gate-svg{width:78%;max-width:210px;fill:none;stroke:#3A2D4F;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.wide-gate{max-width:360px}.dark-mode .gate-svg{stroke:#E8E0F0}.gate-svg text{font-family:'Inconsolata',monospace;font-size:22px;fill:#8B5CF6;stroke:none}.truth-grid{display:grid;grid-template-columns:repeat(3,46px);gap:7px;font-family:'Inconsolata',monospace;justify-content:center}.truth-grid>*{min-height:34px;border-radius:999px;display:grid;place-items:center;background:rgba(232,224,240,.5);color:#3A2D4F}.dark-mode .truth-grid>*{background:rgba(232,224,240,.12);color:#E8E0F0}.true-val,.tap-table .true{background:#34D399!important;color:#FFFDF8!important}.false-val,.tap-table .false{background:#F472B6!important;color:#FFFDF8!important}.proof-lines{display:flex;flex-direction:column;gap:9px;align-items:stretch;min-width:210px;text-align:left;font-family:'Inconsolata',monospace}.proof-lines span,.proof-lines b{padding:8px 12px;border-radius:12px;background:rgba(0,224,178,.12)}.proof-lines i{height:3px;background:#3A2D4F;border-radius:99px;transform:rotate(-1deg)}.dark-mode .proof-lines i{background:#E8E0F0}.tree-svg{width:min(100%,240px);fill:none;stroke:#3A2D4F;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.dark-mode .tree-svg{stroke:#E8E0F0}.tree-svg circle{fill:rgba(0,224,178,.12)}.tree-svg text{font-family:'Inconsolata',monospace;font-size:16px;text-anchor:middle;fill:#3A2D4F;stroke:none}.dark-mode .tree-svg text{fill:#E8E0F0}.venn-svg{width:min(100%,430px);height:auto;fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.venn-a{stroke:#00E0B2;fill:rgba(0,224,178,.16)}.venn-b{stroke:#8B5CF6;fill:rgba(139,92,246,.16)}.venn-mid{stroke:#34D399;fill:rgba(52,211,153,.24);transition:fill .3s ease}.venn-svg:hover .venn-mid{fill:rgba(244,114,182,.42)}.venn-svg text{font-family:'Inconsolata',monospace;font-size:22px;text-anchor:middle;fill:#3A2D4F}.dark-mode .venn-svg text{fill:#E8E0F0}.machine-layout{position:relative;display:grid;grid-template-columns:1fr 1fr 150px 95px;gap:16px;align-items:center;width:min(100%,620px);padding:20px;border-radius:24px;background:rgba(232,224,240,.36)}.dark-mode .machine-layout{background:rgba(232,224,240,.08)}.machine-layout label{font-family:'Space Grotesk',sans-serif;font-weight:700;display:flex;align-items:center;gap:10px;justify-content:center}.machine-layout input{display:none}.machine-layout label span{width:58px;height:32px;border:2px solid #3A2D4F;border-radius:999px;position:relative;background:#FFFDF8}.dark-mode .machine-layout label span{border-color:#E8E0F0;background:#0F0A1A}.machine-layout label span:after{content:"";position:absolute;width:22px;height:22px;border-radius:50%;background:#3A2D4F;left:3px;top:3px;transition:transform .25s ease,background .25s ease}.dark-mode .machine-layout label span:after{background:#E8E0F0}.machine-layout input:checked+span{background:linear-gradient(135deg,#00E0B2,#34D399)}.machine-layout input:checked+span:after{transform:translateX(26px);background:#FFFDF8}.machine-layout select{height:42px;border:2px solid #3A2D4F;border-radius:14px;background:#FFFDF8;color:#3A2D4F;font-family:'Inconsolata',monospace;font-weight:700;padding:0 10px}.dark-mode .machine-layout select{background:#0F0A1A;color:#E8E0F0;border-color:#E8E0F0}.output-bubble{width:86px;height:86px;border-radius:50%;display:grid;place-items:center;background:#F472B6;color:#FFFDF8;font-family:'Space Grotesk',sans-serif;font-size:3rem;font-weight:700;box-shadow:0 8px 0 rgba(244,114,182,.2)}.output-bubble.true{background:#34D399;box-shadow:0 8px 0 rgba(52,211,153,.22)}.output-bubble.pop{animation:float .42s ease}.machine-note{font-family:'Inconsolata',monospace}.star-burst{position:absolute;inset:0;pointer-events:none}.star-burst i{position:absolute;left:50%;top:50%;color:#34D399;font-style:normal;font-size:1.4rem;opacity:0}.star-burst.bursting i:nth-child(1){animation:star1 .7s ease}.star-burst.bursting i:nth-child(2){animation:star2 .7s ease}.star-burst.bursting i:nth-child(3){animation:star3 .7s ease}.star-burst.bursting i:nth-child(4){animation:star4 .7s ease}.star-burst.bursting i:nth-child(5){animation:star5 .7s ease}@keyframes star1{50%{opacity:1;transform:translate(-110px,-70px) rotate(90deg)}}@keyframes star2{50%{opacity:1;transform:translate(120px,-60px) rotate(-90deg)}}@keyframes star3{50%{opacity:1;transform:translate(90px,70px) rotate(70deg)}}@keyframes star4{50%{opacity:1;transform:translate(-80px,80px) rotate(-70deg)}}@keyframes star5{50%{opacity:1;transform:translate(0,-110px) rotate(120deg)}}.tap-table{display:grid;grid-template-columns:repeat(2,58px);gap:12px}.tap-table button{width:58px;height:58px;border:2px solid #3A2D4F;border-radius:50%;background:#E8E0F0;color:#3A2D4F;font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:1.2rem;cursor:pointer;transition:transform .2s ease,background .2s ease}.tap-table button:hover{transform:translateY(-4px)}.dark-mode .tap-table button{border-color:#E8E0F0;background:#2B1D3A;color:#E8E0F0}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:rgba(139,92,246,.35);border-radius:999px}.dark-mode ::-webkit-scrollbar-thumb{background:rgba(0,224,178,.35)}@media (max-width:1024px){.sidebar{flex-basis:64px;padding:18px 8px}.sidebar:hover{flex-basis:220px}.brand-card h1,.brand-card p,.nav-tab span,.sidebar-doodles{opacity:0;transition:opacity .2s ease}.sidebar:hover .brand-card h1,.sidebar:hover .brand-card p,.sidebar:hover .nav-tab span,.sidebar:hover .sidebar-doodles{opacity:1}.brand-card{padding:10px 6px}.brand-bubble{width:42px;height:42px}.nav-tab{padding:10px;justify-content:flex-start}.main-grid{padding:28px}.sketch-card.wide{grid-column:span 1}.machine-layout{grid-template-columns:1fr 1fr}}@media (max-width:768px){body{overflow:hidden}.dashboard-shell{display:block}.sidebar{position:fixed;left:0;right:0;bottom:0;top:auto;height:82px;display:flex;align-items:center;flex-basis:auto;width:100%;padding:8px 10px;z-index:9}.sidebar:hover{flex-basis:auto}.sidebar-squiggle,.brand-card,.sidebar-doodles{display:none}.tab-stack{width:100%;flex-direction:row;gap:8px;justify-content:space-between}.nav-tab{min-height:62px;justify-content:center;flex:1;padding:7px 5px}.nav-tab span{display:none}.nav-tab svg{width:30px;height:30px}.workspace{height:calc(100vh - 82px)}.top-bar{height:56px;padding:0 16px}.formula-ribbon{display:none}.main-grid{height:calc(100vh - 56px);padding:18px 18px 98px}.content-section{grid-template-columns:1fr}.sketch-card,.sketch-card.tall{height:350px}.machine-layout{grid-template-columns:1fr;gap:12px}.output-bubble{margin:auto}.card-face{padding:22px}}@media (max-width:480px){.sketch-card,.sketch-card.tall{height:330px}.card-face h2,.card-face h3{font-size:1.2rem}.card-face p{font-size:.92rem}.category-bubble{width:38px;height:38px}.top-title-wrap{font-size:.9rem}.doodle-board{display:none}}
