*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#0f0e17;--bg2:#1a1932;--surface:#2a2950;--surface-light:#3a3970;--accent:#ff6e6e;--valid:#4ade80;--valid-dim:#4ade801f;--invalid:#f87171;--invalid-dim:#f871711f;--text:#fffffe;--text-muted:#a7a9be;--gold:#fbbf24}html,body{background:var(--bg);height:100%;color:var(--text);-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;font-family:Segoe UI,system-ui,-apple-system,sans-serif;overflow:hidden}#app{flex-direction:column;height:100%;display:flex;position:relative}.overlay{z-index:50;background:#0f0e17f2;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:20px;display:none;position:absolute;inset:0}.confetti-canvas{pointer-events:none;z-index:100;position:absolute;inset:0}@keyframes slideIn{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes popIn{0%{opacity:0;transform:scale(0)}70%{transform:scale(1.15)}to{opacity:1;transform:scale(1)}}@keyframes starDrop{0%{opacity:0;transform:scale(0)rotate(-30deg)}60%{transform:scale(1.3)rotate(10deg)}to{opacity:1;transform:scale(1)rotate(0)}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes flashGreen{0%{background:var(--bg2)}50%{background:#4ade8026}to{background:var(--bg2)}}@keyframes flashRed{0%{background:var(--bg2)}50%{background:#f8717126}to{background:var(--bg2)}}.slide-in{animation:.3s ease-out slideIn}.flash-correct{animation:.4s ease-out flashGreen}.flash-wrong{animation:.4s ease-out flashRed}.home-screen{flex-direction:column;justify-content:center;align-items:center;gap:20px;height:100%;padding:24px 16px;display:flex}.home-cards{flex-wrap:wrap;justify-content:center;gap:16px;width:100%;max-width:560px;display:flex}.home-card{background:var(--surface);border:1px solid var(--surface-light);cursor:pointer;text-align:center;border-radius:16px;flex-direction:column;flex:1;align-items:center;gap:8px;min-width:200px;max-width:260px;padding:20px 16px;transition:all .2s;display:flex}.home-card:hover{background:var(--surface-light);transform:translateY(-4px);box-shadow:0 8px 24px #0000004d}.home-card-cat{margin:4px 0}.home-card-title{font-size:1.1rem;font-weight:700}.home-card-desc{color:var(--text-muted);font-size:.8rem;line-height:1.4}.menu-screen{flex-direction:column;justify-content:center;align-items:center;gap:16px;height:100%;padding:24px 16px;display:flex}.menu-demo{margin:8px 0}.menu-buttons{flex-direction:column;gap:10px;width:100%;max-width:260px;margin-top:8px;display:flex}.menu-btn{border:1px solid var(--surface-light);background:var(--surface);color:var(--text);cursor:pointer;text-align:center;border-radius:14px;padding:14px 24px;font-size:1rem;font-weight:600;transition:all .15s}.menu-btn:hover{background:var(--surface-light);transform:scale(1.03)}.menu-btn-primary{color:#fff;background:linear-gradient(135deg,#a78bfa,#818cf8);border:none;padding:16px 24px;font-size:1.1rem}.menu-btn-primary:hover{box-shadow:0 4px 20px #a78bfa59}.share-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:1px solid #ffffff1a;border-radius:20px;align-self:center;margin:8px 0;padding:8px 20px;font-size:.85rem;transition:all .15s}.share-btn:hover{border-color:var(--gold);color:var(--gold)}.shared-stats{text-align:center;color:var(--gold);padding:12px;font-size:1rem;font-weight:600}.help-try-btn{align-self:center;margin-top:20px}.game-title{letter-spacing:-.5px;background:linear-gradient(135deg,#ff6e6e,#a78bfa,#6dd5fa) 0 0/200% 200%;-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin-top:8px;font-size:2.2rem;font-weight:800;animation:4s ease-in-out infinite pulse}.game-subtitle{color:var(--text-muted);margin-top:-12px;font-size:.9rem}.chooser-screen{flex-direction:column;align-items:center;gap:0;height:100%;display:flex}.path-wrap{flex:1;width:100%;padding:8px 8px 16px;overflow:auto}@media (orientation:portrait){.path-wrap{max-width:450px}}.path-wrap::-webkit-scrollbar{width:4px}.path-wrap::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:2px}.path-map{flex-direction:column;align-items:stretch;display:flex}.path-row{justify-content:center;align-items:center;display:grid}.seg{cursor:pointer;z-index:1;border-radius:50%;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;transition:transform .15s,filter .2s;display:flex;position:relative}.seg:hover{z-index:2;transform:scale(1.1)}.seg:active{transform:scale(.95)}.seg-locked{cursor:default;pointer-events:none}.seg-passed{box-shadow:0 0 14px #ffffff26}.seg-head{border-radius:50% 45% 45% 50%}.seg-tail{border-radius:45% 50% 50% 45%}.seg-eyes{gap:6px;margin-bottom:1px;display:flex}.seg-eye{background:#fff;border-radius:50%;width:10px;height:10px;display:inline-block;position:relative}.seg-eye:after{content:"";background:#1a1a2e;border-radius:50%;width:5px;height:5px;position:absolute;top:3px;left:1px}.seg-num{color:#ffffffe6;text-shadow:0 1px 3px #0006;font-size:1.05rem;font-weight:700}.seg-stars{gap:1px;margin-top:-1px;display:flex}.seg-stars .star{font-size:.5rem;line-height:1}.star.filled{color:var(--gold)}.star.empty{color:#ffffff40}.seg-conn{z-index:0;border-radius:0;justify-self:center}.bend-row{z-index:0}.bend-bar{border-radius:0;justify-self:center;height:100%}.path-map-landscape{flex-direction:row;align-items:flex-start;width:max-content;margin:0 auto}.path-col{place-items:center;display:grid}.seg-conn-v{z-index:0;border-radius:0;justify-self:center}.bend-col{z-index:0;display:grid}.bend-bar-h{border-radius:0;place-self:center;width:100%}.help-btn{border:1px solid var(--surface-light);color:var(--text-muted);cursor:pointer;background:0 0;border-radius:24px;padding:10px 24px;font-size:.9rem;transition:all .2s}.help-btn:hover{border-color:var(--accent);color:var(--text);background:#ff6e6e14}.chooser-buttons{justify-content:center;gap:12px;display:flex}.tutorial-hint{background:#fbbf2414;border-bottom:1px solid #fbbf2440;justify-content:center;align-items:center;gap:12px;width:100%;padding:8px 16px;animation:.25s ease-out popIn;display:flex}.tutorial-hint-text{color:var(--gold);text-align:center;font-size:.85rem;line-height:1.4}.tutorial-next-btn{border:1px solid var(--gold);color:var(--gold);cursor:pointer;background:#fbbf241f;border-radius:12px;flex-shrink:0;padding:4px 14px;font-size:.8rem;transition:all .2s}.tutorial-next-btn:hover{background:#fbbf2440}.tutorial-ready-msg{color:var(--text-muted);text-align:center;font-size:1rem}.level-screen{flex-direction:column;width:100%;height:100%;display:flex}.top-bar{background:var(--bg2);border-bottom:1px solid #ffffff0a;align-items:center;gap:12px;padding:8px 12px;display:flex}.back-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:8px;padding:6px 10px;font-size:1.1rem;transition:all .15s}.back-btn:hover{color:var(--text);background:#ffffff0f}.level-label{font-size:1rem;font-weight:700}.tested-counter{color:var(--text-muted);background:#ffffff0d;border-radius:12px;margin-left:auto;padding:3px 10px;font-size:.8rem}.rule-toggle-btn{color:var(--text-muted);cursor:pointer;text-align:center;background:#ffffff0d;border:1px solid #ffffff14;padding:4px 14px;font-size:.8rem;transition:all .2s}.rule-toggle-btn:hover{background:#ffffff14}.rule-toggle-btn.revealed{color:var(--gold);font-style:italic}.history-area{background:#ffffff08;flex:1;gap:1px;min-height:0;display:flex}.history-panel{flex-direction:column;flex:1;min-height:0;display:flex}.valid-panel{background:var(--valid-dim)}.invalid-panel{background:var(--invalid-dim)}.panel-header{text-align:center;text-transform:uppercase;letter-spacing:1.5px;justify-content:center;align-items:center;gap:6px;padding:6px 8px;font-size:.8rem;font-weight:600;display:flex}.header-icon{font-size:.75rem}.valid-header{background:var(--valid-dim);color:var(--valid)}.invalid-header{background:var(--invalid-dim);color:var(--invalid)}.caterpillar-list{flex-direction:column;flex:1;justify-content:space-evenly;gap:0;padding:4px;display:flex;overflow-y:auto}.caterpillar-list::-webkit-scrollbar{width:4px}.caterpillar-list::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:2px}.caterpillar-item{justify-content:center;display:flex}.caterpillar-item canvas{display:block}.bottom-section{background:var(--bg2);border-top:1px solid #ffffff0a;flex-direction:column;flex-shrink:0;align-items:center;gap:5px;padding:6px 12px 8px;transition:background .3s;display:flex}.builder-row{justify-content:center;align-items:center;gap:10px;width:100%;display:flex}.input-label{color:var(--text-muted);letter-spacing:.5px;font-size:.75rem}.input-preview{background:#ffffff08;border-radius:10px;flex:1;justify-content:center;align-items:center;min-width:100px;max-width:200px;min-height:36px;padding:2px 6px;transition:background .25s;display:flex}.input-preview.preview-valid{background:var(--valid-dim)}.input-preview.preview-invalid{background:var(--invalid-dim)}.input-preview canvas{max-width:100%}.input-controls{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.btn-group{gap:6px;display:flex}.action-group{gap:4px}.color-btn{cursor:pointer;border:2px solid #ffffff26;border-radius:12px;width:40px;height:36px;transition:transform .1s,border-color .15s,box-shadow .15s}.color-btn:hover{border-color:#fff6;transform:scale(1.12);box-shadow:0 0 12px #ffffff1a}.color-btn:active{transform:scale(.92)}.action-btn{cursor:pointer;border:none;border-radius:12px;width:40px;height:36px;font-size:1.1rem;font-weight:600;transition:transform .1s}.backspace-btn{background:var(--surface);color:var(--text-muted)}.ok-btn{background:var(--valid);color:#052e16}.action-btn:hover{transform:scale(1.1)}.action-btn:active{transform:scale(.92)}.exam-start-btn{color:#fff;cursor:pointer;white-space:nowrap;background:linear-gradient(135deg,#a78bfa,#818cf8);border:none;border-radius:20px;padding:7px 16px;font-size:.8rem;font-weight:600;transition:transform .15s,box-shadow .2s}.exam-start-btn:hover{transform:scale(1.04);box-shadow:0 4px 20px #a78bfa59}.exam-progress-wrap{background:var(--surface);border-radius:3px;width:100%;max-width:300px;height:6px;overflow:hidden}.exam-progress-bar{background:linear-gradient(90deg, var(--valid), #6dd5fa);border-radius:3px;height:100%;transition:width .3s ease-out}.exam-label{color:var(--text-muted);font-size:.85rem}.exam-caterpillar{justify-content:center;padding:4px 0;display:flex}.exam-buttons{gap:12px;display:flex}.exam-btn{cursor:pointer;border:none;border-radius:12px;align-items:center;gap:6px;padding:12px 28px;font-size:1rem;font-weight:600;transition:transform .15s;display:flex}.exam-btn:hover{transform:scale(1.06)}.exam-btn:active{transform:scale(.95)}.valid-answer{background:var(--valid);color:#052e16}.invalid-answer{background:var(--invalid);color:#fff}.exam-result{flex-direction:column;align-items:center;gap:8px;padding:16px;animation:.4s ease-out popIn;display:flex}.result-icon{font-size:2.5rem}.result-text{color:var(--text-muted);font-size:1rem;font-weight:600}.code-section{flex-direction:column;gap:4px;width:100%;max-width:600px;margin-top:4px;display:flex}.code-label-row{justify-content:space-between;align-items:center;display:flex}.code-label{color:var(--text-muted);letter-spacing:.5px;font-size:.75rem}.cheat-toggle-btn{border:1px solid var(--surface-light);width:22px;height:22px;color:var(--text-muted);cursor:pointer;background:0 0;border-radius:50%;justify-content:center;align-items:center;font-size:.75rem;font-weight:700;transition:all .15s;display:flex}.cheat-toggle-btn:hover,.cheat-toggle-btn.active{border-color:var(--gold);color:var(--gold);background:#fbbf2414}.cheat-sheet{background:var(--surface);border-radius:8px;padding:8px 12px;font-size:.78rem;line-height:1.6;animation:.2s ease-out popIn}.cheat-colors{gap:6px;margin-bottom:6px;display:flex}.cheat-color{color:#000000b3;border-radius:4px;justify-content:center;align-items:center;width:24px;height:20px;font-size:.7rem;font-weight:700;display:flex}.cheat-vars{color:var(--text-muted)}.cheat-vars code{color:var(--gold);font-family:Cascadia Code,Fira Code,Consolas,monospace;font-weight:600}.cheat-ex{color:var(--text-muted);opacity:.7;font-family:Cascadia Code,Fira Code,Consolas,monospace;font-size:.72rem}.cheat-var-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.cheat-var-row canvas{flex-shrink:0}.cheat-example-row{color:var(--text-muted);opacity:.8;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;display:flex}.cheat-example-row canvas{flex-shrink:0}.cheat-example-row code{color:var(--valid);font-family:Cascadia Code,Fira Code,Consolas,monospace}.code-input-row{align-items:center;gap:6px;display:flex;position:relative}.code-input{border:1px solid var(--surface-light);min-width:0;color:var(--text);resize:none;background:#ffffff0f;border-radius:8px;outline:none;flex:1;padding:8px 10px;font-family:Cascadia Code,Fira Code,Consolas,monospace;font-size:.85rem;line-height:1.4;transition:border-color .2s,box-shadow .2s;overflow:hidden}.code-input:focus{border-color:var(--valid);box-shadow:0 0 8px #4ade8033}.code-input::placeholder{color:var(--text-muted);opacity:.4}.char-counter{color:var(--text-muted);white-space:nowrap;text-align:right;min-width:55px;font-size:.7rem}.char-counter.near-limit{color:var(--gold)}.char-counter.at-limit{color:var(--invalid);font-weight:600}.code-error{color:var(--invalid);word-break:break-all;flex-wrap:wrap;align-items:center;gap:8px;padding:4px 0;font-family:Cascadia Code,Fira Code,Consolas,monospace;font-size:.78rem;line-height:1.4;display:none}.error-caterpillar{vertical-align:middle;flex-shrink:0}.code-submit-btn{color:#fff;cursor:pointer;white-space:nowrap;background:linear-gradient(135deg,#a78bfa,#818cf8);border:none;border-radius:20px;align-self:center;padding:8px 20px;font-size:.85rem;font-weight:600;transition:transform .15s,box-shadow .2s,opacity .2s}.code-submit-btn:hover{transform:scale(1.04);box-shadow:0 4px 20px #a78bfa59}.code-submit-btn.submitting{opacity:.7;cursor:wait}.toast{color:#fff;z-index:200;opacity:0;pointer-events:none;background:linear-gradient(135deg,#a78bfa,#818cf8);border-radius:20px;padding:8px 20px;font-size:.9rem;font-weight:600;transition:opacity .3s,transform .3s;position:absolute;top:80px;left:50%;transform:translate(-50%)translateY(-10px);box-shadow:0 4px 20px #a78bfa66}.toast-visible{opacity:1;transform:translate(-50%)translateY(0)}@keyframes highlightFlash{0%{outline-offset:2px;outline:2px solid #0000}25%{outline:2px solid var(--gold);outline-offset:2px}75%{outline:2px solid var(--gold);outline-offset:2px}to{outline-offset:2px;outline:2px solid #0000}}.highlight-flash{animation:1.5s ease-out highlightFlash}.code-reveal{color:var(--text-muted);text-align:center;font-size:.85rem;animation:.5s ease-out .7s both popIn}.code-reveal code{color:var(--valid);font-family:Cascadia Code,Fira Code,Consolas,monospace;font-weight:600}.threshold-hint{color:var(--text-muted);opacity:.6;font-size:.72rem;animation:.5s ease-out .8s both popIn}.bottom-section.victory{gap:12px;padding:20px 16px}.victory-stars{gap:8px;display:flex}.vstar{font-size:2.5rem;animation:.5s ease-out both starDrop}.vstar.filled{color:var(--gold);filter:drop-shadow(0 0 8px #fbbf2480)}.vstar.empty{color:var(--surface)}.victory-text{font-size:1.4rem;font-weight:700;animation:.5s ease-out .4s both popIn}.rule-reveal{text-align:center;background:#ffffff0d;border-radius:12px;max-width:360px;padding:12px 16px;animation:.5s ease-out .6s both popIn}.reveal-title{color:var(--text-muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:6px;font-size:.75rem}.reveal-text{color:var(--gold);font-size:.95rem;line-height:1.5}.victory-stats{color:var(--text-muted);font-size:.8rem;animation:.5s ease-out .8s both popIn}.victory-stats strong{color:var(--text)}.victory-buttons{gap:10px;animation:.5s ease-out 1s both popIn;display:flex}.victory-retry-btn{background:var(--surface)!important;border:1px solid var(--surface-light)!important}.victory-retry-btn:hover{background:var(--surface-light)!important}.next-level-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#a78bfa,#818cf8);border:none;border-radius:24px;padding:12px 28px;font-size:1rem;font-weight:600;transition:transform .15s,box-shadow .2s;animation:.5s ease-out 1s both popIn}.next-level-btn:hover{transform:scale(1.05);box-shadow:0 4px 20px #a78bfa59}.help-screen{max-width:560px;height:100%;margin:0 auto;padding:20px 16px;overflow-y:auto}.help-title{margin:12px 0;font-size:1.4rem}.help-demo{justify-content:center;margin:12px 0;display:flex}.help-text p{color:var(--text-muted);margin:10px 0;font-size:.92rem;line-height:1.6}.help-text strong{color:var(--text)}.help-text em{color:var(--accent)}.help-text ul{margin:8px 0;padding-left:20px}.help-text li{color:var(--text-muted);margin:4px 0;font-size:.92rem}.help-text code{color:var(--gold);background:#fbbf2414;border-radius:3px;padding:1px 4px;font-family:Cascadia Code,Fira Code,Consolas,monospace;font-size:.85rem}.hl-valid{color:var(--valid);font-weight:600}.hl-invalid{color:var(--invalid);font-weight:600}.help-example{background:#ffffff0a;border-radius:12px;margin:16px 0 8px;padding:12px 16px}.help-example-title{color:var(--gold);margin-bottom:8px;font-size:.9rem;font-weight:700}.help-example-text{color:var(--text-muted);margin:6px 0;font-size:.88rem;line-height:1.5}.help-example-cats{flex-wrap:wrap;gap:12px;margin:6px 0;display:flex}.help-inspired{opacity:.6;margin-top:20px!important;font-size:.85rem!important}.auth-section{flex-direction:column;align-items:center;gap:8px;margin-top:auto;padding-top:16px;display:flex}.auth-user-row{align-items:center;gap:8px;display:flex}.auth-avatar{border-radius:50%;width:28px;height:28px}.auth-username{font-size:.85rem;font-weight:600}.auth-label{color:var(--text-muted);font-size:.78rem}.auth-btn-row{gap:10px;display:flex}.auth-link{color:var(--text-muted);cursor:pointer;background:0 0;border:none;padding:2px 6px;font-size:.78rem;transition:color .15s}.auth-link:hover{color:var(--text)}.auth-btn-oauth{border:1px solid var(--surface-light);background:var(--surface);color:var(--text);cursor:pointer;border-radius:8px;padding:6px 16px;font-size:.82rem;transition:all .15s}.auth-btn-oauth:hover{background:var(--surface-light)}.community-screen{flex-direction:column;height:100%;display:flex}.create-level-top-btn{border:1px solid var(--valid);color:var(--valid);cursor:pointer;background:0 0;border-radius:12px;margin-left:auto;padding:4px 12px;font-size:.78rem;font-weight:600;transition:all .15s}.create-level-top-btn:hover{background:var(--valid-dim)}.sort-tabs{border-bottom:1px solid #ffffff0f;gap:0;display:flex}.sort-tab{text-align:center;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;flex:1;padding:8px;font-size:.78rem;font-weight:600;transition:all .15s}.sort-tab:hover{color:var(--text)}.sort-tab-active{color:var(--accent);border-bottom-color:var(--accent)}.level-list{flex:1;padding:8px;overflow-y:auto}.level-card{background:var(--surface);cursor:pointer;border-radius:10px;margin-bottom:6px;padding:12px;transition:all .15s}.level-card:hover{background:var(--surface-light);transform:translate(3px)}.level-card-title{margin-bottom:4px;font-size:.9rem;font-weight:600}.level-card-meta{color:var(--text-muted);font-size:.75rem}.loading-text,.empty-text{text-align:center;color:var(--text-muted);padding:40px 16px;font-size:.9rem}.create-level-screen{flex-direction:column;height:100%;display:flex}.create-form{flex-direction:column;flex:1;gap:10px;width:100%;max-width:560px;margin:0 auto;padding:16px;display:flex}.create-label{color:var(--text-muted);font-size:.78rem;font-weight:600}.create-input{border:1px solid var(--surface-light);color:var(--text);background:#ffffff0f;border-radius:8px;outline:none;padding:8px 10px;font-size:.9rem;transition:border-color .2s}.create-input:focus{border-color:var(--valid)}.create-expr{resize:none;overflow:hidden}.create-preview{min-height:40px}.create-stats{color:var(--valid);text-align:center;padding:8px;font-size:.85rem;font-weight:600}.create-btn-row{justify-content:center;gap:10px;margin-top:8px;display:flex}.rating-row{align-items:center;gap:10px;animation:.5s ease-out .9s both popIn;display:flex}.rating-label{color:var(--text-muted);font-size:.8rem}.rating-btn{border:1px solid var(--surface-light);background:var(--surface);width:36px;height:36px;color:var(--text-muted);cursor:pointer;border-radius:50%;font-size:.9rem;transition:all .15s}.rating-btn:hover{background:var(--surface-light);color:var(--text)}.rating-up.rating-selected{background:var(--valid-dim);border-color:var(--valid);color:var(--valid)}.rating-down.rating-selected{background:var(--invalid-dim);border-color:var(--invalid);color:var(--invalid)}.profile-screen{flex-direction:column;height:100%;display:flex}.profile-content{flex:1;width:100%;max-width:480px;margin:0 auto;padding:24px 16px}.profile-header{align-items:center;gap:12px;margin-bottom:24px;display:flex}.profile-avatar{border-radius:50%;width:48px;height:48px}.profile-name{font-size:1.2rem;font-weight:700}.profile-stats{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.stat-item{background:var(--surface);text-align:center;border-radius:10px;padding:12px}.stat-value{color:var(--gold);font-size:1.3rem;font-weight:700}.stat-label{color:var(--text-muted);margin-top:4px;font-size:.75rem}.leaderboard-screen{flex-direction:column;height:100%;display:flex}.leaderboard-content{flex:1;padding:8px 16px;overflow-y:auto}.lb-row{border-bottom:1px solid #ffffff0a;grid-template-columns:32px 28px 1fr 70px 70px;align-items:center;gap:8px;padding:10px 8px;display:grid}.lb-header{border-bottom:1px solid #ffffff1a;margin-bottom:2px;padding-bottom:6px}.lb-header .lb-name,.lb-header .lb-stars,.lb-header .lb-community{text-transform:uppercase;letter-spacing:1px;color:var(--text-muted);font-size:.7rem;font-weight:600}.lb-rank{color:var(--gold);min-width:32px;font-size:.85rem;font-weight:700}.lb-avatar{border-radius:50%;width:28px;height:28px}.lb-name{flex:1;font-size:.9rem;font-weight:600}.lb-stars{color:var(--gold);text-align:right;font-size:.82rem}.lb-community{color:var(--text-muted);text-align:right;font-size:.75rem}@media (orientation:landscape) and (height<=500px){.game-title{font-size:1.3rem}.game-subtitle{font-size:.75rem}.chooser-screen{gap:8px;padding:10px 16px}.top-bar{padding:4px 8px}.panel-header{padding:3px;font-size:.7rem}.bottom-section{gap:4px;padding:4px 10px}.input-label{display:none}.input-preview{max-width:140px;min-height:28px}.builder-row{gap:6px}.btn-group{gap:3px}.color-btn,.action-btn{border-radius:7px;width:28px;height:28px}.code-section{margin-top:2px}.code-input{padding:5px 8px;font-size:.75rem}.code-submit-btn{padding:5px 12px;font-size:.75rem}.cheat-sheet{padding:5px 8px;font-size:.7rem}.exam-start-btn{white-space:nowrap;margin-left:auto;padding:6px 10px;font-size:.7rem}}@media (width<=420px){.game-title{font-size:1.5rem}.game-subtitle{font-size:.8rem}.color-btn,.action-btn{width:36px;height:32px}.btn-group{gap:4px}.code-input{font-size:.8rem}.code-submit-btn{padding:6px 16px;font-size:.8rem}.exam-btn{padding:8px 16px;font-size:.85rem}.exam-start-btn{padding:6px 14px;font-size:.78rem}.panel-header{padding:4px;font-size:.7rem}.bottom-section{gap:4px;padding:5px 8px}.vstar{font-size:1.8rem}.victory-text{font-size:1.1rem}.home-card{min-width:160px;padding:14px 12px}}
