:root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f7f3e9;color:#304c41;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{border:1px solid #bfcbba;background:#fffcf4;color:inherit;border-radius:9px;padding:10px 14px;min-height:44px;cursor:pointer;font-size:13px;touch-action:manipulation}button:hover:not(:disabled){background:#e8eddf}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:3px solid #af683b;outline-offset:3px}[hidden]{display:none!important}.site-header,main,footer{width:min(1220px,calc(100% - 64px));margin:auto}.site-header{height:76px;border-bottom:1px solid #d9ddce;display:flex;justify-content:space-between;align-items:center;font-size:13px}.brand{font-size:25px;font-weight:750;letter-spacing:-1px}.brand span{font-weight:400}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0}.title-group{display:flex;align-items:center;gap:16px;min-width:0}.title-group img{width:108px;height:auto;mix-blend-mode:multiply}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:700;color:#718067;margin:0 0 10px}h1{font:400 clamp(27px,3vw,40px)/1.1 Georgia,serif;letter-spacing:-.8px;margin:0}.toolbar{display:flex;align-items:center;gap:7px;flex-shrink:0}.toolbar>button{white-space:nowrap}.desk{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:40px;align-items:center}.board-column{min-width:0;max-width:770px;width:100%;margin:auto}.score-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 10px 16px}.score-strip>div{display:grid;gap:4px}.score-strip>div:last-child{text-align:right}.score-strip span{font-size:9px;letter-spacing:1.5px;color:#708066}.score-strip strong{font:32px Georgia,serif;font-variant-numeric:tabular-nums}#move-message{min-height:44px;line-height:1.6;font-size:13px;text-align:center;margin:14px 8px 7px}.board-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.primary{background:#355b48;color:#fff9ed;border-color:#355b48}.primary:hover:not(:disabled){background:#436e57}#stuck{display:grid;gap:5px;background:#eee3cb;border:1px solid #c7b486;border-radius:10px;margin:8px 0 13px;padding:13px 16px;font-size:12px;line-height:1.6}#stuck strong{font-size:14px}.companion{text-align:center;min-width:0;padding:22px 0}.companion>img{display:block;width:100%;height:auto;mix-blend-mode:multiply}.companion h2{font:italic 29px Georgia,serif;margin:15px 0}.companion>p:not(.eyebrow){font-size:13px;line-height:1.8;color:#708068}.little-lesson{text-align:left;border-top:1px solid #d4dac8;border-bottom:1px solid #d4dac8;margin:24px 15px;padding:18px 0;font-size:12px;line-height:1.75;color:#718065}.little-lesson span{font:24px Georgia,serif;letter-spacing:9px;color:#8d926a}.little-lesson p{margin:9px 0}.companion #new-btn{width:calc(100% - 30px)}.under-game{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0}.under-game button{font-size:11px;min-height:38px;background:transparent}#storage-status{font-size:11px;line-height:1.6;color:#78826c;text-align:right}.company-hidden .desk{grid-template-columns:1fr}.company-hidden #companion{display:none}.company-hidden .board-column{max-width:900px}#outcome{text-align:center;background:#e6edda;border:1px solid #c6d5b8;border-radius:14px;padding:22px;margin-top:20px}#outcome>span{font:36px Georgia,serif;color:#a38b4e}#outcome h2{font:28px Georgia,serif;margin:9px 0}#outcome p{font-size:13px;line-height:1.7}footer{border-top:1px solid #d9ddce;padding:25px 0 32px;font-size:11px;display:flex;justify-content:space-between;gap:20px;line-height:1.6}dialog{border:1px solid #bec9b5;border-radius:17px;background:#fffaf0;color:#304c41;width:min(570px,calc(100% - 30px));max-height:90dvh;padding:26px;box-shadow:0 24px 90px #1a352a44}dialog::backdrop{background:#203b3294;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}dialog h2{font:30px Georgia,serif;margin:0 0 14px}dialog p,dialog li{font-size:14px;line-height:1.7}dialog ol{padding-left:23px}dialog li{margin:8px 0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}input{border:1px solid #c2cdb7;border-radius:8px;background:#fffdf6;color:inherit;padding:10px;min-width:0}#player-list{display:grid;gap:8px;margin-bottom:20px}#player-form{border-top:1px solid #d9ddce;padding:18px 0;display:flex;flex-wrap:wrap;gap:10px}#player-form label{display:grid;gap:7px;flex:1;min-width:160px;font-size:13px}#player-form>button{align-self:end}#name-error{width:100%;color:#945136;margin:0}.skip-link{position:absolute;top:-80px;left:15px;z-index:5;background:#fff;padding:10px}.skip-link:focus{top:10px}.desk{align-items:start;grid-template-columns:minmax(0,1fr) 330px;gap:30px}.board-column{max-width:none;margin-block:0;margin-inline:auto}.chess-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #d9ddce;padding-bottom:14px;margin-bottom:20px}.chess-tab{font-size:12px;padding:9px 14px;border-radius:20px}.chess-tab[aria-selected=true]{background:#355b48;color:#fff9ed;border-color:#355b48}.score-strip .context{text-align:center}.score-strip strong{font-size:21px}.engine-status{font-size:11px;line-height:1.6;text-align:center;margin:0 0 12px;color:#78826c;min-height:18px}.engine-status[data-state=cargando],.engine-status[data-state=pensando]{color:#7c6534}.engine-status[data-state=error]{color:#945136;font-weight:600}.engine-status[data-state=listo]{color:#4a6f55}.board-frame{max-width:min(100%,68vh);margin:auto;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:5px;background:#e6dcc2;border:6px solid #cbb185;border-radius:14px;padding:9px;box-shadow:0 12px 30px #5c5b4225}.rank-labels,.file-labels{display:grid;font-size:10px;color:#7d7355;font-variant-numeric:tabular-nums}.rank-labels{grid-template-rows:repeat(8,1fr);align-items:center;justify-items:center;width:14px}.file-labels{grid-template-columns:repeat(8,1fr);justify-items:center;grid-column:2}.chess-board{display:grid;grid-template-rows:repeat(8,1fr);aspect-ratio:1;position:relative;touch-action:none;user-select:none;-webkit-user-select:none;border:1px solid #9c8a66}.board-row{display:grid;grid-template-columns:repeat(8,1fr)}.square{min-height:0;padding:0;border:0;border-radius:0;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#e9dcbd}.square.dark{background:#a88256}.square:disabled{cursor:default;opacity:1}.square:hover:not(:disabled){filter:brightness(1.07)}.square.movable{cursor:grab}.square .piece{width:92%;height:92%;display:block;pointer-events:none}.piece-body{stroke-linejoin:round;stroke-width:1.3}.piece-w .piece-body{fill:#fbf5e6;stroke:#3a3126}.piece-b .piece-body{fill:#2d2721;stroke:#efe4cd}.piece-mark{fill:none;stroke-width:1.9;stroke-linecap:round}.piece-w .piece-mark{stroke:#3a3126}.piece-b .piece-mark{stroke:#efe4cd}.piece-w .piece-eye{fill:#3a3126}.piece-b .piece-eye{fill:#efe4cd}.square.selected{box-shadow:inset 0 0 0 4px #d9a441}.square.target:after{content:"";position:absolute;width:30%;height:30%;border-radius:50%;background:#3c6a4b8c;pointer-events:none}.square.capture:after{content:"";position:absolute;inset:6%;border-radius:50%;border:5px solid #a7453f9e;pointer-events:none}.square.last-from,.square.last-to{box-shadow:inset 0 0 0 3px #7fa4c47a}.square.in-check{background:radial-gradient(circle,#e08a7f 0 42%,transparent 72%),#c96f62}.chess-board.dragging .square{cursor:grabbing}.drag-piece{position:absolute;z-index:40;pointer-events:none;filter:drop-shadow(0 8px 10px #2b241a66)}.board-actions{margin-top:4px}#outcome{margin-top:18px}#outcome .dialog-actions{justify-content:center}.chess-panel{min-width:0;font-size:13px;line-height:1.7}.chess-panel h2{font:26px Georgia,serif;margin:0 0 10px}.chess-panel h3{font:19px Georgia,serif;margin:22px 0 8px}.chess-panel h4{font:15px Georgia,serif;margin:14px 0 6px}.chess-panel p{margin:0 0 12px;color:#5f7062}.chess-panel label{display:grid;gap:6px;font-size:11px;letter-spacing:.5px;color:#708066;margin-bottom:10px}.chess-panel select,.chess-panel input{font:inherit;font-size:13px;background:#fffcf4;color:inherit;border:1px solid #bfcbba;border-radius:8px;padding:10px;min-height:44px;max-width:100%}.setup-grid{display:grid;gap:2px}.level-blurb{background:#eef1e5;border-radius:10px;padding:12px 14px;font-size:12px}.fine-print{font-size:11px;line-height:1.65;color:#7c866f}#start-btn{width:100%}.move-list-block{margin-top:20px}.move-list{list-style:none;margin:0;padding:0;max-height:260px;overflow:auto;border:1px solid #dde1d2;border-radius:10px;background:#fffdf6}.move-list li{display:grid;grid-template-columns:34px 1fr 1fr;gap:6px;padding:5px 10px;font-size:13px;font-variant-numeric:tabular-nums}.move-list li:nth-child(odd){background:#f4f2e6}.move-list li b{font-weight:400;color:#8a937c}.move-list li.empty{display:block;color:#8a937c;font-size:12px}.opening-idea{background:#eef1e5;border-radius:10px;padding:12px 14px;font-size:12px}.opening-actions,.puzzle-actions,.review-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.opening-actions button,.puzzle-actions button,.review-actions button{font-size:12px;padding:9px 12px;flex:1 1 auto}.opening-steps{list-style:none;margin:0 0 14px;padding:0;max-height:330px;overflow:auto;border:1px solid #dde1d2;border-radius:10px;background:#fffdf6}.opening-steps li{padding:9px 12px;border-bottom:1px solid #eceadc;font-size:12px;line-height:1.6}.opening-steps li:last-child{border-bottom:0}.opening-steps li.done{background:#e9f0e2}.opening-steps b{display:block;font-weight:600;margin-bottom:3px}.plans p{font-size:12px;margin:0 0 8px}.puzzle-goal{background:#f0ead9;border-radius:10px;padding:11px 14px;font-size:12px}.puzzle-goal em{font-style:normal;color:#4a6f55;font-weight:700}.hint-list{margin:0 0 12px;padding-left:20px;font-size:12px;line-height:1.7;color:#5f7062}.hint-list li{margin:6px 0}.puzzle-feedback{min-height:22px;font-size:12px;font-weight:600;color:#54684f}.lesson{background:#e6edda;border:1px solid #c6d5b8;border-radius:10px;padding:12px 14px;font-size:12px;line-height:1.7}.review-nav{display:flex;gap:6px;margin-bottom:12px}.review-nav button{flex:1;font-size:15px;padding:8px}.review-position{font-size:12px;background:#eef1e5;border-radius:10px;padding:10px 13px}.analysis{font-size:12px;line-height:1.7;min-height:44px;border:1px solid #dde1d2;border-radius:10px;background:#fffdf6;padding:11px 13px;margin-bottom:10px}.analysis-heading{font-size:11px;color:#7c866f;margin:0 0 8px}.analysis-lines{list-style:none;margin:0;padding:0}.analysis-lines li{padding:5px 0;border-bottom:1px solid #eceadc}.analysis-lines li:last-child{border-bottom:0}.analysis-lines .score{color:#8a5a2b;font-weight:600}.analysis-lines .line{display:block;font-variant-numeric:tabular-nums;color:#5f7062}.analysis-played{font-size:11px;color:#7c866f;margin:8px 0 0}.progress-summary{background:#eef1e5;border-radius:10px;padding:12px 14px;font-size:12px}.progress-summary p{margin:0 0 8px;color:inherit}.progress-summary p:last-child{margin:0}.records-table{width:100%;border-collapse:collapse;font-size:12px}.records-table caption{font-size:11px;color:#7c866f;text-align:left;padding-bottom:6px}.records-table th,.records-table td{border-bottom:1px solid #e2e5d6;padding:6px 4px;text-align:right}.records-table th[scope=row],.records-table thead th:first-child{text-align:left}.progress-lists ul{list-style:none;margin:0;padding:0;font-size:12px;line-height:1.8}.progress-lists li{color:#8a937c}.progress-lists li.done{color:#41694f;font-weight:600}.promotion-choices{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}.promotion-choices button{flex:1 1 90px}#export-dialog fieldset{border:1px solid #d9ddce;border-radius:10px;padding:12px 14px;margin:0 0 6px}#export-dialog legend{font-size:11px;letter-spacing:1px;color:#708066;padding:0 6px}#export-dialog fieldset label{display:flex;align-items:center;gap:8px;font-size:13px;padding:5px 0}#export-status{font-size:12px;min-height:20px;color:#54684f}.company-hidden .chess-panel{display:none}.company-hidden .board-column{max-width:720px}.game-expanded{overflow:hidden!important}.chess-shell:fullscreen,.chess-shell.expanded-view{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;overflow:auto;margin:0;padding:12px max(16px,env(safe-area-inset-right)) 20px;background:#f7f3e9;z-index:2000}.chess-shell:is(:fullscreen,.expanded-view) .game-heading{padding:0 0 10px}.chess-shell:is(:fullscreen,.expanded-view) .title-group img{width:60px}.chess-shell:is(:fullscreen,.expanded-view) h1{font-size:26px}.chess-shell:is(:fullscreen,.expanded-view) .eyebrow{display:none}.chess-shell:is(:fullscreen,.expanded-view) .under-game{margin:10px 0 0}@media(min-width:1400px){.site-header,main,footer{width:min(1420px,calc(100% - 70px))}.desk{grid-template-columns:minmax(0,1fr) 360px;gap:40px}}@media(max-width:1050px){.site-header,main,footer{width:calc(100% - 36px)}.desk{grid-template-columns:minmax(0,1fr) 255px;gap:20px}.title-group img{width:85px}.toolbar{gap:5px}.toolbar>button{padding:9px 10px}.chess-panel{font-size:12px}}@media(max-width:850px){.site-header{height:60px}.desk{display:flex;flex-direction:column;gap:18px}.game-heading{flex-wrap:wrap;padding:15px 0 16px;gap:12px}.toolbar{margin-left:auto}.title-group{gap:10px}.title-group img{width:72px}h1{font-size:29px}.chess-tabs{padding-bottom:10px;margin-bottom:14px;gap:5px}.chess-tab{font-size:11px;padding:8px 11px;min-height:40px}.board-column,.chess-panel{width:100%}.company-hidden .chess-panel{display:none}.score-strip{padding:0 3px 10px;gap:8px}.score-strip strong{font-size:18px}.board-actions{gap:6px}.board-actions button{font-size:11px;padding:9px 10px;min-height:42px}.under-game{margin:18px 0;gap:12px}#storage-status{font-size:10px;max-width:58%}.chess-shell:is(:fullscreen,.expanded-view) .chess-panel,.chess-shell:is(:fullscreen,.expanded-view) .under-game{display:none}.chess-shell:is(:fullscreen,.expanded-view) .title-group>div{display:none}}@media(max-width:440px){.site-header,main,footer{width:calc(100% - 16px)}.title-group img{width:54px}h1{font-size:24px}.eyebrow{font-size:7px;letter-spacing:1px}.board-frame{padding:5px;border-width:4px;border-radius:10px;gap:3px}.rank-labels{width:11px;font-size:8px}.file-labels{font-size:8px}.chess-tab{font-size:10px;padding:7px 9px}.score-strip strong{font-size:15px}.score-strip span{font-size:7px}.board-actions button{padding:8px 9px;font-size:10.5px;min-height:40px}dialog{padding:18px}.dialog-actions{flex-wrap:wrap}.dialog-actions button{flex:1 1 auto}.square.capture:after{border-width:3px}.chess-shell:is(:fullscreen,.expanded-view){padding:8px 7px 14px}}@media(max-height:620px)and (min-width:620px){.chess-shell:is(:fullscreen,.expanded-view) .desk{display:block}.chess-shell:is(:fullscreen,.expanded-view) .chess-panel{display:none}.chess-shell:is(:fullscreen,.expanded-view) .board-frame{max-width:min(78vh,100%);margin:auto}.chess-shell:is(:fullscreen,.expanded-view) .game-heading{padding-bottom:4px}.chess-shell:is(:fullscreen,.expanded-view) .chess-tabs{padding-bottom:6px;margin-bottom:8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}@media(prefers-color-scheme:dark){html body .chess-tabs{border-color:var(--night-line)}html body .board-frame{background:#3b3125;border-color:#6d5c42;box-shadow:0 12px 30px #0006}html body :is(.rank-labels,.file-labels){color:#cdbb96}html body :is(.level-blurb,.opening-idea,.puzzle-goal,.review-position,.progress-summary){background:var(--night-raised);color:var(--night-ink)}html body :is(.lesson){background:#2c4536;border-color:#5d8168;color:var(--night-ink)}html body :is(.move-list,.opening-steps,.analysis){background:var(--night-panel);border-color:var(--night-line)}html body .move-list li:nth-child(odd){background:var(--night-raised)}html body .opening-steps li{border-color:var(--night-line)}html body .opening-steps li.done{background:#2f4a3a}html body .analysis-lines li{border-color:var(--night-line)}html body .analysis-lines .score{color:var(--night-accent)}html body .analysis-lines .line{color:var(--night-muted)}html body :is(.records-table th,.records-table td){border-color:var(--night-line)}html body .progress-lists li{color:var(--night-muted)}html body .progress-lists li.done,html body .engine-status[data-state=listo]{color:#a9d7b3}html body .engine-status[data-state=error]{color:#ffb69b}html body .engine-status[data-state=cargando],html body .engine-status[data-state=pensando]{color:var(--night-accent)}html body .puzzle-feedback{color:#cfe3c8}html body #export-dialog fieldset{border-color:var(--night-line)}}
