@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{font-family:'Golos Text',sans-serif;color:#30332e;background:#f5f4f0;font-synthesis:none;--bg:#f5f4f0;--surface:#fffefa;--ink:#30332e;--muted:#85877e;--line:#e3e3da;--hover:#eeeee7;--accent:#ac6947;--selected:#e5e8db;--peer:#f0f1e9;--grid:#b5b8ad;--shadow:0 12px 45px #30332e09;color-scheme:light}
:root[data-theme=dark]{--bg:#1a1d1b;--surface:#242824;--ink:#e9e9df;--muted:#979e93;--line:#3c423a;--hover:#30362f;--accent:#d4a181;--selected:#485445;--peer:#2d342c;--grid:#626d5e;--shadow:0 12px 45px #0002;color:var(--ink);background:var(--bg);color-scheme:dark}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.35}button{border:0;background:none}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}svg{display:block}h1,h2,h3,p{margin:0}button{transition:background .18s,transform .18s,border-color .18s}button:active{transform:translateY(1px)}.header{height:93px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;max-width:1440px;margin:auto;padding:0 58px;gap:25px}.brand{display:flex;align-items:center;gap:12px;font-family:Manrope,sans-serif;font-weight:800;font-size:20px;letter-spacing:-.9px;padding:8px 0;white-space:nowrap}.brand-symbol{display:grid;grid-template-columns:repeat(2,9px);gap:3px;transform:rotate(-7deg)}.brand-symbol i{height:9px;background:var(--ink);border-radius:1px}.brand-symbol i:last-child{background:var(--accent)}.nav{display:flex;gap:7px;align-items:center}.nav button{padding:12px 19px;color:var(--muted);font-size:13px;border-radius:7px;font-weight:500}.nav button.active{color:var(--ink);background:var(--hover)}.nav button:hover{color:var(--ink)}.header-tools{display:flex;gap:12px}.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:transparent}.iconbtn:hover{background:var(--hover)}.icon{width:19px;height:19px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round}.container{max-width:1324px;margin:0 auto;padding:0 48px}.hero{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:65px 0 51px}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:2.1px;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:8px}.eyebrow .dot{width:5px;height:5px;border-radius:50%;background:var(--accent)}h1{font-family:Manrope,'Golos Text',sans-serif;font-size:53px;line-height:1.15;letter-spacing:-2.5px;font-weight:500;margin-top:17px}h1 em{font-family:Georgia,serif;font-weight:400;color:var(--accent)}.hero p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:18px}.hero-side{display:flex;gap:24px;align-items:center;padding-right:34px;transform:rotate(-4deg)}.hero-tile{width:130px;height:150px;display:flex;justify-content:center;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:5px;box-shadow:9px 11px 0 var(--hover);position:relative}.hero-tile small{position:absolute;bottom:10px;font-size:9px;letter-spacing:2px;color:var(--muted)}.hero-hand{width:100px;color:var(--muted);font:italic 13px/1.5 Georgia,serif;transform:rotate(4deg)}.hero-hand svg{width:59px;height:30px;stroke:var(--muted);fill:none;margin-top:12px}.resume{display:flex;align-items:center;gap:20px;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:15px 21px;margin-bottom:35px;box-shadow:var(--shadow)}.resume-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--hover)}.resume-main{flex:1}.resume-main strong{font-size:13px;font-weight:500}.resume-main p{font-size:11px;margin-top:6px;color:var(--muted)}.resume-progress{width:160px}.progress-label{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:7px}.progress-bar{height:3px;background:var(--line);border-radius:2px;overflow:hidden}.progress-bar i{height:100%;display:block;background:var(--ink)}.btn{border:1px solid var(--line);border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:41px;padding:11px 18px;font-size:12px;font-weight:500}.btn:hover{background:var(--hover)}.btn.primary{background:var(--ink);color:var(--bg);border-color:var(--ink)}.btn.primary:hover{opacity:.85}.btn.soft{background:var(--hover)}.btn .icon{width:15px;height:15px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:20px}.section-title{display:flex;align-items:center;gap:10px}.section-title h2{font-size:19px;font-weight:500;letter-spacing:-.5px}.count{font-size:10px;color:var(--muted);background:var(--hover);border:1px solid var(--line);padding:3px 6px;border-radius:4px}.segmented{display:flex;border:1px solid var(--line);border-radius:7px;padding:4px;gap:3px}.segmented button{font-size:11px;color:var(--muted);padding:8px 14px;border-radius:4px;display:flex;gap:7px;align-items:center}.segmented button.active{background:var(--surface);box-shadow:0 1px 4px #0000000b;color:var(--ink)}.level-dots{display:inline-flex;align-items:flex-end;gap:2px;height:10px}.level-dots i{width:2px;background:currentColor;opacity:.25}.level-dots i:nth-child(1){height:4px}.level-dots i:nth-child(2){height:7px}.level-dots i:nth-child(3){height:10px}.level-dots i.filled{opacity:1}.gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.shape-card{border:1px solid var(--line);border-radius:9px;background:var(--surface);text-align:left;overflow:hidden;transition:transform .25s,box-shadow .25s,border-color .25s;position:relative}.shape-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:var(--grid)}.shape-art{height:174px;display:flex;align-items:center;justify-content:center;position:relative;background-image:radial-gradient(var(--line) .7px,transparent .7px);background-size:12px 12px;background-position:center}.shape-art:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 25%,var(--surface) 75%);pointer-events:none}.shape-svg{position:relative;overflow:visible;max-width:130px;max-height:126px}.shape-card:nth-child(3n) .shape-svg{transform:rotate(4deg)}.shape-card:nth-child(3n+1) .shape-svg{transform:rotate(-4deg)}.card-info{padding:17px 18px 18px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.card-info h3{font-size:13px;font-weight:500;letter-spacing:-.1px}.card-info p{font-size:10px;color:var(--muted);margin-top:5px}.card-arrow{color:var(--muted);font-size:17px}.card-no{position:absolute;left:15px;top:14px;font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums;z-index:1}.card-badge{position:absolute;right:12px;top:12px;font-size:8px;letter-spacing:.3px;padding:4px 6px;background:var(--hover);border-radius:3px;z-index:1}.create-banner{margin-top:25px;padding:25px 28px;border:1px dashed var(--grid);border-radius:9px;display:flex;align-items:center;gap:22px}.create-banner .banner-icon{width:37px;height:37px;display:grid;grid-template-columns:repeat(3,9px);grid-template-rows:repeat(3,9px);gap:3px;transform:rotate(-8deg)}.banner-icon i{border:1px solid var(--grid);border-radius:1px}.banner-icon i:nth-child(3),.banner-icon i:nth-child(7){border-style:dashed;opacity:.5}.create-banner div:nth-child(2){flex:1}.create-banner h3{font-size:13px;font-weight:500}.create-banner p{font-size:11px;color:var(--muted);margin-top:7px}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;margin-top:45px;padding:22px 0 28px;color:var(--muted);font-size:10px;gap:20px}.footer span{display:flex;align-items:center;gap:7px}.footer .icon{width:13px;height:13px}.fade-in{animation:fade .35s ease-out}@keyframes fade{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.page-heading{padding:43px 0 29px;display:flex;align-items:end;justify-content:space-between;gap:20px}.page-heading h1{font-size:35px;margin:8px 0 0;letter-spacing:-1.5px}.page-heading p{font-size:12px;color:var(--muted);margin-top:12px}.game-heading{padding:30px 0 22px;display:flex;align-items:center;justify-content:space-between;gap:20px}.game-heading-left{display:flex;align-items:center;gap:17px}.back-btn{color:var(--muted);width:37px;height:37px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:6px}.game-heading h1{font-size:22px;letter-spacing:-.5px;margin:0}.game-sub{font-size:10px;color:var(--muted);display:flex;gap:7px;margin-top:7px;align-items:center}.game-heading-actions{display:flex;gap:8px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:30px;align-items:start}.board-panel{border:1px solid var(--line);background:var(--surface);border-radius:11px;overflow:hidden;position:relative}.board-toolbar{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid var(--line)}.timer{display:flex;align-items:center;gap:10px;font-size:12px;font-variant-numeric:tabular-nums}.timer .icon{width:15px;height:15px}.toolbar-actions{display:flex;gap:5px}.toolbar-actions button{width:30px;height:30px;border-radius:4px;display:flex;align-items:center;justify-content:center;color:var(--muted)}.toolbar-actions button:hover{background:var(--hover)}.toolbar-actions .icon{width:16px;height:16px}.board-stage{padding:28px;min-height:430px;display:flex;align-items:center;justify-content:center;overflow:auto;background-image:radial-gradient(var(--line) .6px,transparent .6px);background-size:14px 14px}.board{display:grid;width:100%;max-width:530px;aspect-ratio:var(--w)/var(--h);grid-template-columns:repeat(var(--w),1fr);grid-template-rows:repeat(var(--h),1fr);touch-action:manipulation;isolation:isolate;user-select:none;flex-shrink:0}.board.zoomed{width:850px;max-width:none}.cell{padding:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface);font-size:clamp(13px,2vw,25px);display:flex;align-items:center;justify-content:center;position:relative;color:var(--accent);font-weight:500;min-width:0;min-height:0;border-radius:0;transition:background .12s}.cell.top{border-top:1.5px solid var(--grid)}.cell.left{border-left:1.5px solid var(--grid)}.cell.right{border-right:1.5px solid var(--grid)}.cell.bottom{border-bottom:1.5px solid var(--grid)}.cell.given{color:var(--ink);font-weight:500}.cell.peer{background:var(--peer)}.cell.same{background:var(--selected)}.cell.selected{outline:2px solid var(--ink);outline-offset:-2px;background:var(--selected);z-index:1}.cell.wrong{color:#b54742;background:#c76e5b18}.cell[data-color]{background:var(--paint)!important}.cell .notes{position:absolute;inset:2px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);font-size:clamp(6px,.8vw,10px);color:var(--muted);line-height:1}.notes span{display:flex;align-items:center;justify-content:center}.board.large .cell{font-size:clamp(12px,1.4vw,19px)}.board.large .notes{font-size:clamp(5px,.6vw,8px)}.board-caption{padding:13px 20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted)}.board-caption span{display:flex;gap:7px;align-items:center}.board-caption .icon{width:12px;height:12px}.controls{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:23px}.control-label{font-size:10px;font-weight:500;color:var(--muted);letter-spacing:1.2px;text-transform:uppercase}.digits{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:15px}.digit{height:53px;border:1px solid var(--line);border-radius:6px;position:relative;font-size:23px;font-weight:400}.digit:hover,.digit.active{background:var(--selected);border-color:var(--grid)}.digit small{position:absolute;bottom:3px;right:6px;font-size:8px;color:var(--muted)}.tools{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:19px;padding-bottom:21px;border-bottom:1px solid var(--line)}.tool{display:flex;align-items:center;flex-direction:column;gap:8px;padding:12px 0 9px;border-radius:6px;font-size:9px;color:var(--muted)}.tool:hover,.tool.active{background:var(--hover);color:var(--ink)}.tool.active .icon{color:var(--accent)}.color-section{padding-top:21px}.color-label{display:flex;justify-content:space-between;align-items:center}.color-label button{font-size:10px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.swatches{display:flex;gap:9px;margin:14px 0}.swatch{width:27px;height:27px;border-radius:50%;border:3px solid var(--surface);outline:1px solid var(--line);background:var(--paint);padding:0}.swatch.active{outline:2px solid var(--ink)}.color-mode{display:flex;border:1px solid var(--line);border-radius:5px;padding:3px}.color-mode button{font-size:10px;flex:1;padding:8px 4px;border-radius:3px;color:var(--muted)}.color-mode button.active{background:var(--hover);color:var(--ink)}.color-hint{font-size:10px;line-height:1.6;color:var(--muted);margin-top:11px;min-height:32px}.secondary-tools{margin-top:20px;display:grid;gap:9px}.secondary-tools .btn{width:100%}.keyboard-tip{font-size:10px;line-height:1.9;text-align:center;color:var(--muted);margin-top:19px}kbd{font-family:inherit;border:1px solid var(--line);border-radius:3px;padding:1px 4px;font-size:9px}.pause-cover{position:absolute;inset:59px 0 37px;z-index:3;backdrop-filter:blur(14px);background:color-mix(in srgb,var(--surface) 85%,transparent);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px}.pause-cover h2{font-weight:500;font-size:25px}.empty-state{padding:70px 20px;text-align:center;border:1px dashed var(--grid);border-radius:10px;margin-top:10px}.empty-state h2{font-size:23px;font-weight:500}.empty-state p{font-size:13px;color:var(--muted);margin:14px 0 25px}.library-list{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.saved-card{border:1px solid var(--line);border-radius:9px;background:var(--surface);overflow:hidden}.saved-card-top{display:flex;gap:22px;padding:23px;align-items:center}.saved-card-top .shape-svg{width:66px;height:70px;flex-shrink:0}.saved-card h3{font-size:14px;font-weight:500;word-break:break-word}.saved-card p{font-size:10px;color:var(--muted);margin-top:7px}.saved-card-bottom{padding:13px 16px;display:flex;gap:7px;align-items:center;border-top:1px solid var(--line)}.saved-card-bottom .btn:first-child{flex:1}.saved-card-bottom .iconbtn{border-radius:5px;width:34px;height:34px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px}.editor-stage{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:35px;display:flex;flex-direction:column;align-items:center;gap:24px}.editor-grid{width:min(100%,420px);display:grid;grid-template-columns:repeat(7,1fr);gap:6px;user-select:none;touch-action:none}.editor-tile{aspect-ratio:1;border:1px dashed var(--grid);border-radius:3px;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;padding:0;background:var(--hover)}.editor-tile.on{background:var(--surface);border:1px solid var(--ink);box-shadow:0 1px 5px #0000000a}.editor-tile.on i{background:var(--ink);opacity:.8}.editor-tile.on i:nth-child(2n){opacity:.9}.editor-tile:hover{border-color:var(--accent)}.editor-note{font-size:11px;color:var(--muted);display:flex;gap:8px;align-items:center}.editor-note .icon{width:15px;height:15px}.editor-settings{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:25px;align-self:start}.field{display:block;font-size:11px;color:var(--muted);margin-bottom:20px}.field input,.field select{display:block;width:100%;border:1px solid var(--line);background:var(--bg);border-radius:5px;padding:12px;color:var(--ink);font-size:13px;margin-top:9px;min-width:0}.editor-settings .segmented{margin-top:10px}.editor-settings .segmented button{padding:8px 10px;flex:1;justify-content:center}.validation{border-radius:6px;background:var(--hover);padding:13px;font-size:11px;line-height:1.7;margin:22px 0;color:var(--muted)}.validation.valid{color:var(--ink)}.editor-settings>.btn{width:100%;margin-bottom:10px}.editor-settings .small-note{color:var(--muted);font-size:10px;line-height:1.7;margin-top:16px}.editor-actions{display:flex;gap:10px;align-items:center;width:100%;max-width:420px;justify-content:space-between}.editor-actions button{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.editor-actions .icon{width:14px;height:14px}.editor-actions button.active{color:var(--accent)}.overlay{position:fixed;inset:0;z-index:100;background:#151a174f;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:22px;animation:fade .16s}.modal{background:var(--surface);border:1px solid var(--line);padding:32px;border-radius:14px;max-width:430px;width:100%;box-shadow:0 25px 80px #0002;position:relative;max-height:90dvh;overflow:auto}.modal-close{position:absolute;right:15px;top:15px;width:29px;height:29px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--muted)}.modal-close:hover{background:var(--hover)}.modal h2{font-size:25px;letter-spacing:-.7px;font-weight:500;margin-bottom:13px;padding-right:22px}.modal p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:18px}.modal .shape-svg{width:96px;height:100px;margin:0 auto 25px}.modal .segmented{margin:21px 0 12px}.modal .segmented button{flex:1;justify-content:center}.modal .btn{width:100%;margin-top:9px}.modal .level-info{font-size:11px;min-height:38px;margin:0 0 15px}.modal .field{margin:20px 0 10px}.rule{display:flex;gap:15px;margin:20px 0}.rule b{font-family:Georgia,serif;font-weight:400;color:var(--accent);font-size:23px;width:19px;flex-shrink:0}.rule div{font-size:12px;line-height:1.75}.rule small{color:var(--muted);font-size:11px}.spinner{width:34px;height:34px;border:2px solid var(--line);border-top-color:var(--ink);border-radius:50%;animation:spin 1s linear infinite;margin:15px auto 25px}@keyframes spin{to{transform:rotate(360deg)}}.modal.loading{text-align:center}.modal.loading h2{padding:0}.share-input{width:100%;font-size:11px;padding:12px;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:5px;overflow:hidden}.success-icon{margin:4px auto 22px;width:58px;height:58px;border:1px solid var(--grid);border-radius:50%;display:flex;align-items:center;justify-content:center}.success-icon .icon{width:29px;height:29px}.win-stats{display:flex;gap:30px;justify-content:center;margin:20px 0 27px}.win-stats strong{display:block;font-size:21px;font-weight:400}.win-stats small{display:block;font-size:10px;color:var(--muted);margin-top:8px}#toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:200;background:var(--ink);color:var(--bg);font-size:12px;border-radius:7px;padding:13px 20px;transition:all .2s;max-width:calc(100vw - 36px);box-shadow:var(--shadow);text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.checkbox{display:flex;gap:10px;font-size:12px;line-height:1.7;align-items:center;margin:19px 0}.checkbox input{accent-color:var(--ink)}.modal ul{font-size:12px;line-height:2;color:var(--muted);padding-left:17px}.error-text{font-size:11px;color:#b25c4c;margin:10px 0}.local-note{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px}.local-note .icon{width:13px;height:13px}.hidden{display:none!important}
@media(min-width:1450px){.hero{padding-top:75px}.shape-art{height:185px}}
@media(max-width:1100px){.header{padding:0 32px}.container{padding:0 32px}.gallery{grid-template-columns:repeat(5,1fr);gap:10px}.shape-art{height:152px}.shape-svg{max-width:106px;max-height:108px}.card-info{padding:14px 12px}.card-info h3{font-size:12px}.hero-side{padding-right:0}.game-layout{gap:20px;grid-template-columns:minmax(0,1fr) 270px}.board-stage{padding:20px;min-height:350px}.controls{padding:20px}.library-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.header{height:78px;padding:0 24px;gap:15px}.brand{font-size:17px}.nav button{padding:10px 12px;font-size:12px}.header-tools{gap:7px}.header-tools .iconbtn{width:33px;height:33px}.container{padding:0 24px}.hero{padding:45px 0 37px}h1{font-size:43px}.hero-hand{display:none}.hero-tile{width:112px;height:133px}.gallery{grid-template-columns:repeat(3,1fr);gap:14px}.shape-art{height:170px}.shape-svg{max-width:124px;max-height:122px}.gallery .shape-card:last-child{grid-column:auto}.game-layout{grid-template-columns:minmax(0,1fr) 240px;gap:15px}.controls{padding:16px}.digit{height:44px}.board-stage{padding:13px;min-height:290px}.board.large .cell{font-size:15px}.game-heading h1{font-size:20px}.editor-layout{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.editor-stage{padding:22px}.editor-settings{padding:20px}.resume-progress{width:110px}}
@media(max-width:650px){.header{height:auto;min-height:72px;padding:17px 20px 0;flex-wrap:wrap;gap:9px}.brand{font-size:18px;order:0}.header-tools{order:1;margin-left:auto}.nav{order:2;width:100%;justify-content:space-between;margin-top:7px;border-top:1px solid var(--line);padding:7px 0;gap:4px}.nav button{flex:1;padding:10px 5px;font-size:11px}.container{padding:0 20px}.hero{padding:32px 0 30px;gap:10px}h1{font-size:35px;letter-spacing:-1.7px;margin-top:13px;line-height:1.2}.eyebrow{font-size:8px;letter-spacing:1.5px}.hero p{font-size:11px;margin-top:13px;max-width:225px}.hero-tile{width:84px;height:108px;box-shadow:5px 7px 0 var(--hover)}.hero-tile .shape-svg{width:62px;height:72px}.hero-tile small{font-size:7px}.hero-side{margin-right:5px}.resume{padding:13px;gap:11px;margin-bottom:28px}.resume-icon{width:35px;height:35px}.resume-main strong{font-size:11px}.resume-main p{font-size:9px}.resume-progress{display:none}.resume .btn{font-size:10px;padding:10px 12px;min-height:36px}.section-head{align-items:start;flex-wrap:wrap;gap:15px;margin-bottom:16px}.section-title h2{font-size:17px}.section-head>.segmented{width:100%}.section-head>.segmented button{flex:1;justify-content:center}.gallery{grid-template-columns:repeat(2,1fr);gap:12px}.shape-art{height:157px}.shape-svg{max-width:109px;max-height:110px}.card-info{padding:14px}.card-info h3{font-size:12px}.card-info p{font-size:9px}.create-banner{padding:20px;gap:17px;flex-wrap:wrap;margin-top:20px}.create-banner h3{font-size:12px}.create-banner p{font-size:10px;line-height:1.7}.create-banner .btn{width:100%}.footer{font-size:9px;flex-direction:column;align-items:center;gap:12px;margin-top:30px;padding-top:20px}.game-heading{padding:22px 0 16px;gap:10px;align-items:start}.game-heading h1{font-size:18px}.game-heading-left{gap:10px;min-width:0}.game-heading-actions{gap:6px}.game-heading-actions .btn{width:35px;height:35px;padding:0;min-height:35px}.game-heading-actions .btn span{display:none}.back-btn{width:31px;height:33px;flex-shrink:0}.game-layout{display:flex;flex-direction:column;gap:15px}.board-panel{width:100%;border-radius:8px}.board-toolbar{padding:9px 13px}.board-stage{padding:17px;min-height:0}.board{max-width:480px}.board .cell{font-size:23px}.board.large .cell{font-size:16px}.board .notes{font-size:9px}.board.large .notes{font-size:6px;inset:1px}.board-caption{padding:10px 12px;font-size:9px}.board-caption>span:last-child{display:none}.controls{width:100%;padding:17px;border-radius:8px}.digits{grid-template-columns:repeat(9,1fr);gap:5px;margin-top:12px}.digit{height:42px;font-size:21px}.digit small{font-size:7px;right:3px;bottom:2px}.tools{margin-top:11px;padding-bottom:12px;grid-template-columns:repeat(6,1fr);gap:4px}.tool{padding:9px 0;font-size:8px;gap:6px}.tool .icon{width:19px;height:19px}.color-section{padding-top:15px;display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.color-label{grid-column:1/-1}.swatches{gap:9px;margin:13px 0 6px;align-self:center}.swatch{width:25px;height:25px}.color-mode{margin-top:12px;align-self:center}.color-hint{grid-column:1/-1;min-height:0;margin-top:6px;font-size:9px}.secondary-tools{display:flex;gap:8px;margin-top:15px}.secondary-tools .btn{font-size:11px;padding:10px}.keyboard-tip{display:none}.game-layout+.footer{margin-top:25px}.pause-cover{inset:49px 0 32px}.page-heading{padding:29px 0 22px;align-items:start}.page-heading h1{font-size:29px}.page-heading p{font-size:11px;line-height:1.7;max-width:230px}.page-heading>.btn{font-size:10px;padding:10px}.page-heading>.btn .icon{display:none}.library-list{grid-template-columns:1fr;gap:12px}.saved-card-top{padding:19px;gap:20px}.saved-card-top .shape-svg{width:60px;height:60px}.editor-layout{display:flex;flex-direction:column;gap:17px}.editor-stage{padding:22px;width:100%}.editor-settings{width:100%;padding:22px}.editor-grid{max-width:350px;gap:5px}.editor-note{font-size:10px}.editor-settings .small-note{margin-top:10px}.modal{padding:28px 23px}.modal h2{font-size:24px}.modal .shape-svg{width:84px;height:90px}.local-note{font-size:10px;margin-top:14px}.library-filter{overflow:auto;max-width:100%;white-space:nowrap}.library-filter button{padding:8px 11px!important}.empty-state{padding:45px 15px}.empty-state h2{font-size:21px}.empty-state p{font-size:11px}.header:has(+.container .game-layout) .nav{display:none}.header:has(+.container .game-layout){padding-bottom:17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.account-btn{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:6px;padding:8px 11px;font-size:11px;max-width:155px}.account-btn:hover{background:var(--hover)}.account-btn span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.account-btn .icon{width:14px;height:14px;flex-shrink:0}.auth-switch{display:block;width:100%;font-size:11px;color:var(--muted);padding:17px 0 0}.auth-switch:hover{color:var(--ink)}.modal .error-text{color:#b25c4c;line-height:1.6;font-size:11px;margin:6px 0 10px}.auth-switch+.modal p{font-size:10px}
@media(max-width:850px){.account-btn{max-width:110px}.header-tools{gap:6px}.header-tools .iconbtn{width:30px;height:30px}}
@media(max-width:650px){.header-tools .account-btn{padding:7px 8px;font-size:10px;max-width:95px}.header-tools .account-btn .icon{display:none}.header-tools{gap:6px}.header-tools .iconbtn{width:28px;height:28px}.header-tools .icon{width:16px;height:16px}.brand{font-size:17px}.brand-symbol{grid-template-columns:repeat(2,8px);gap:2px}.brand-symbol i{height:8px}.header{padding-left:17px;padding-right:17px}.board.large .cell{font-size:15px}}
.swatches{flex-wrap:wrap;row-gap:10px}.swatch{flex-shrink:0}
@media(max-width:650px){.swatches{grid-column:1/-1;justify-content:space-between;gap:6px;margin:15px 0 2px}.swatch{width:26px;height:26px}.color-mode{grid-column:1/-1}.color-hint{margin-top:9px}}

.board-stage:has(.zoomed){justify-content:flex-start}
