.cg-wrap{box-sizing:content-box;position:relative;display:block}cg-container{position:absolute;width:100%;height:100%;display:block;top:0}cg-board{position:absolute;top:0;left:0;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:0;background-size:cover}.cg-wrap.manipulable cg-board{cursor:pointer}cg-board square{position:absolute;top:0;left:0;width:12.5%;height:12.5%;pointer-events:none}cg-board square.move-dest{pointer-events:auto}cg-board square.last-move{will-change:transform}.cg-wrap piece{position:absolute;top:0;left:0;width:12.5%;height:12.5%;background-size:cover;z-index:2;will-change:transform;pointer-events:none}cg-board piece.dragging{cursor:move;z-index:11!important}piece.anim{z-index:8}piece.fading{z-index:1;opacity:.5}.cg-wrap piece.ghost{opacity:.3}.cg-wrap piece svg{overflow:hidden;position:relative;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:2;opacity:.6}.cg-wrap cg-auto-pieces,.cg-wrap .cg-shapes,.cg-wrap .cg-custom-svgs,.cg-wrap .cg-shapes-below,.cg-wrap .cg-custom-below{overflow:visible;position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.cg-wrap cg-auto-pieces{z-index:2}.cg-wrap cg-auto-pieces piece{opacity:.3}.cg-wrap .cg-shapes{overflow:hidden;opacity:.6;z-index:2}.cg-wrap .cg-shapes-below{overflow:hidden;z-index:1}.cg-wrap .cg-custom-below{z-index:1}.cg-wrap .cg-custom-svgs{z-index:9}.cg-wrap .cg-custom-svgs svg,.cg-wrap .cg-custom-below svg{overflow:visible}.cg-wrap coords{position:absolute;display:flex;pointer-events:none;opacity:.8;font-family:sans-serif;font-size:9px}.cg-wrap coords.ranks{left:4px;top:-20px;flex-flow:column-reverse;height:100%;width:12px}.cg-wrap coords.ranks.black{flex-flow:column}.cg-wrap coords.ranks.left{left:-15px;align-items:flex-end}.cg-wrap coords.files{bottom:-4px;left:24px;flex-flow:row;width:100%;height:16px;text-transform:uppercase;text-align:center}.cg-wrap coords.files.black{flex-flow:row-reverse}.cg-wrap coords coord{flex:1 1 auto}.cg-wrap coords.ranks coord{transform:translateY(39%)}.cg-wrap coords.squares{bottom:0;left:0;text-transform:uppercase;text-align:right;flex-flow:column-reverse;height:100%;width:12.5%}.cg-wrap coords.squares.black{flex-flow:column}.cg-wrap coords.squares.left{text-align:left}.cg-wrap coords.squares coord{padding:6% 4%}.cg-wrap coords.squares.rank2{transform:translate(100%)}.cg-wrap coords.squares.rank3{transform:translate(200%)}.cg-wrap coords.squares.rank4{transform:translate(300%)}.cg-wrap coords.squares.rank5{transform:translate(400%)}.cg-wrap coords.squares.rank6{transform:translate(500%)}.cg-wrap coords.squares.rank7{transform:translate(600%)}.cg-wrap coords.squares.rank8{transform:translate(700%)}cg-board{background-color:#f0d9b5;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4PSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIgogICAgIHZpZXdCb3g9IjAgMCA4IDgiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyI+CjxnIGlkPSJhIj4KICA8ZyBpZD0iYiI+CiAgICA8ZyBpZD0iYyI+CiAgICAgIDxnIGlkPSJkIj4KICAgICAgICA8cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBpZD0iZSIgb3BhY2l0eT0iMCIvPgogICAgICAgIDx1c2UgeD0iMSIgeT0iMSIgaHJlZj0iI2UiIHg6aHJlZj0iI2UiLz4KICAgICAgICA8cmVjdCB5PSIxIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBpZD0iZiIgb3BhY2l0eT0iMC4yIi8+CiAgICAgICAgPHVzZSB4PSIxIiB5PSItMSIgaHJlZj0iI2YiIHg6aHJlZj0iI2YiLz4KICAgICAgPC9nPgogICAgICA8dXNlIHg9IjIiIGhyZWY9IiNkIiB4OmhyZWY9IiNkIi8+CiAgICA8L2c+CiAgICA8dXNlIHg9IjQiIGhyZWY9IiNjIiB4OmhyZWY9IiNjIi8+CiAgPC9nPgogIDx1c2UgeT0iMiIgaHJlZj0iI2IiIHg6aHJlZj0iI2IiLz4KPC9nPgo8dXNlIHk9IjQiIGhyZWY9IiNhIiB4OmhyZWY9IiNhIi8+Cjwvc3ZnPg==)}cg-board square.move-dest{background:radial-gradient(#14551e80 22%,#208530 0,#0000004d,#0000 0)}cg-board square.premove-dest{background:radial-gradient(#141e5580 22%,#203085 0,#0000004d,#0000 0)}cg-board square.oc.move-dest{background:radial-gradient(transparent 0%,transparent 80%,rgba(20,85,0,.3) 80%)}cg-board square.oc.premove-dest{background:radial-gradient(transparent 0%,transparent 80%,rgba(20,30,85,.2) 80%)}cg-board square.move-dest:hover,cg-board square.move-dest.hover{background:#14551e4d}cg-board square.premove-dest:hover,cg-board square.premove-dest.hover{background:#141e5533}cg-board square.last-move{background-color:#9bc70069}cg-board square.selected{background-color:#14551e80}cg-board square.check{background:radial-gradient(ellipse at center,red,#e70000 25%,#a9000000 89%,#9e000000)}cg-board square.current-premove{background-color:#141e5580}.orientation-white .ranks :nth-child(odd),.orientation-white .files :nth-child(2n),.orientation-black .ranks :nth-child(2n),.orientation-black .files :nth-child(odd),coords.squares:nth-of-type(odd) :nth-child(2n),coords.squares:nth-of-type(2n) :nth-child(odd){color:#484848cc}.orientation-white .ranks :nth-child(2n),.orientation-white .files :nth-child(odd),.orientation-black .ranks :nth-child(odd),.orientation-black .files :nth-child(2n),coords.squares:nth-of-type(odd) :nth-child(odd),coords.squares:nth-of-type(2n) :nth-child(2n){color:#fffc}:root{color-scheme:light;--paper: #f4f0e6;--paper-deep: #e7e0cf;--surface: #fffdf7;--ink: #172522;--muted: #58635f;--forest: #1e4b42;--forest-dark: #143a33;--gold: #d9aa45;--gold-soft: #f4dfae;--coral: #b8553f;--line: #d9d3c4;--shadow: 0 22px 60px rgba(37, 48, 43, .12);--radius-lg: 24px;--radius-md: 14px;font-family:Hiragino Kaku Gothic ProN,Yu Gothic,Meiryo,sans-serif;background:var(--paper);color:var(--ink)}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--paper);line-height:1.75}button,textarea,select{font:inherit}button,summary,.dropzone{-webkit-tap-highlight-color:transparent}button:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,.dropzone:focus-within{outline:3px solid rgba(184,85,63,.38);outline-offset:3px}.site-header,main,footer{width:min(1120px,calc(100% - 40px));margin-inline:auto}.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 0}.brand{display:inline-flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--forest);color:var(--gold-soft);font:800 22px/1 Georgia,serif;transform:rotate(-3deg)}.brand-symbol{background:transparent;overflow:hidden}.brand-symbol img{display:block;width:100%;height:100%}.brand b{display:block;font:800 15px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em}.brand small{display:block;margin-top:4px;color:var(--muted);font-size:14px}.local-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid #bdd2c8;border-radius:999px;color:var(--forest);background:#edf5ee;font-size:14px;font-weight:700}.local-badge span{color:#4d9a70;font-size:14px}.hero{padding:78px 0 48px}.eyebrow,.step-label{margin:0 0 10px;color:var(--coral);font:800 14px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.13em}.hero h1{max-width:920px;margin:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:clamp(42px,8vw,84px);line-height:1.12;letter-spacing:-.045em}.hero h1 span{color:var(--forest)}.hero-copy{max-width:720px;margin:28px 0 0;color:var(--muted);font-size:16px}.tool-shell{position:relative;padding:clamp(24px,5vw,50px);overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)}.tool-shell:before{content:"";position:absolute;top:-90px;right:-70px;width:250px;height:250px;border:34px solid rgba(217,170,69,.16);border-radius:50%;pointer-events:none}.tool-heading-row,.file-meta,footer{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}h2{margin:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:clamp(24px,4vw,36px);line-height:1.35}.text-button{padding:7px 0;border:0;border-bottom:1px solid currentColor;background:transparent;color:var(--forest);cursor:pointer;font-weight:700}#sourceText,#resultText{width:100%;border:1px solid #cbc4b3;border-radius:var(--radius-md);background:#fff;color:var(--ink);font-family:ui-monospace,SFMono-Regular,Consolas,BIZ UDPGothic,monospace;line-height:1.7;resize:vertical}#sourceText,#resultText{min-height:280px;padding:18px;font-size:15px}#sourceText::placeholder,#resultText::placeholder{color:#9a988f}#resultText{background:#f7f8f4}.repair-grid{display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);align-items:start;margin-top:28px}.editor-panel{min-width:0}.editor-heading{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}.editor-heading span{padding:3px 7px;border-radius:5px;background:var(--paper-deep);color:var(--muted);font:800 14px ui-monospace,monospace}.editor-heading label{font-size:14px;font-weight:800}.flow-arrow{display:grid;place-items:center;min-height:280px;color:var(--coral);font:700 24px/1 Georgia,serif}.primary-actions{display:flex;align-items:center;gap:10px;margin-top:14px;flex-wrap:wrap}.primary-button,.secondary-button,.copy-button{border-radius:10px;cursor:pointer;font-weight:800;transition:transform .15s ease,background .15s ease,border-color .15s ease}.primary-button{display:inline-flex;align-items:center;justify-content:space-between;gap:36px;min-width:240px;padding:14px 18px;border:1px solid var(--forest);background:var(--forest);color:#fff}.primary-button:hover{background:var(--forest-dark);transform:translateY(-1px)}.primary-button:disabled{opacity:.45;cursor:not-allowed;transform:none}.primary-button.compact{min-width:210px;margin-top:16px}.secondary-button{padding:14px 18px;border:1px solid var(--line);background:transparent;color:var(--ink)}.secondary-button:hover{border-color:var(--ink)}.shortcut{margin:8px 0 0;color:var(--muted);font-size:14px}.status{min-height:1.75em;margin:0;color:var(--forest);font-size:14px;font-weight:700}.result-actions{display:flex;align-items:center;gap:14px;margin-top:14px}.copy-button{min-width:104px;padding:9px 14px;border:1px solid var(--forest);background:transparent;color:var(--forest)}.copy-button:hover,.copy-button.copied{background:var(--forest);color:#fff}.copy-button:disabled{opacity:.42;cursor:not-allowed;background:transparent;color:var(--forest)}.result-copy{min-height:48px}.alternatives{margin-top:14px;border-top:1px solid var(--line)}.alternatives summary{padding:14px 2px 8px;cursor:pointer;color:var(--muted);font-size:14px;font-weight:700}.alternate-list{display:flex;gap:8px;flex-wrap:wrap;padding:4px 0 2px}.alternate-button{padding:8px 11px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--ink);cursor:pointer;font-size:14px;font-weight:700}.alternate-button:hover{border-color:var(--forest);color:var(--forest)}.trust-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:28px 0 72px;border-block:1px solid var(--line)}.trust-strip article{position:relative;padding:28px}.trust-strip article+article{border-left:1px solid var(--line)}.trust-strip span{position:absolute;top:28px;right:28px;color:#a7a090;font:700 14px ui-monospace,monospace}.trust-strip h3{margin:0 0 8px;font-size:15px}.trust-strip p{margin:0;color:var(--muted);font-size:14px}.file-tool{margin:0 0 84px}.file-tool>details{border:1px solid var(--line);border-radius:var(--radius-lg);background:#ebe4d5;overflow:hidden}.file-tool summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 32px;cursor:pointer;list-style:none}.file-tool summary::-webkit-details-marker{display:none}.file-tool summary span:first-child{display:flex;align-items:center;gap:18px}.file-tool summary small{padding:5px 8px;border-radius:6px;background:var(--forest);color:#fff;font:700 14px ui-monospace,monospace}.file-tool summary strong{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:20px}.summary-action{color:var(--forest);font-size:14px;font-weight:800}.file-tool-body{padding:0 32px 32px}.section-intro{max-width:720px;margin:0 0 20px;color:var(--muted);font-size:14px}.dropzone{display:grid;place-items:center;min-height:180px;padding:25px;border:2px dashed #a8a18f;border-radius:var(--radius-md);background:#ffffff73;cursor:pointer;text-align:center}.dropzone.dragging{border-color:var(--coral);background:#fff7e8}.dropzone input{position:absolute;width:1px;height:1px;opacity:0}.drop-icon{font:300 34px/1 Georgia,serif;color:var(--coral)}.dropzone strong{margin-top:8px}.dropzone small{margin-top:4px;color:var(--muted)}.file-result{margin-top:22px;padding:22px;border-radius:var(--radius-md);background:var(--surface)}.file-meta{justify-content:flex-start}.file-meta>div{min-width:210px}.file-meta small,.preview-box small{display:block;color:var(--muted);font-size:11px}.file-meta strong{display:block;margin-top:4px;word-break:break-word}.encoding-settings{display:flex;align-items:end;gap:14px;margin-top:22px}.encoding-settings label{display:grid;gap:7px;flex:1;color:var(--muted);font-size:14px}.encoding-settings select{width:100%;padding:11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}.preview-box{margin-top:20px;padding:14px;border:1px solid var(--line);border-radius:9px;background:#fff}.preview-box pre{max-height:180px;margin:7px 0 0;overflow:auto;white-space:pre-wrap;word-break:break-all;font:12px/1.65 ui-monospace,monospace}.warning{margin:12px 0 0;font-size:14px;font-weight:700}.warning.safe{color:#347155}.warning.danger{color:var(--coral)}.guide{display:grid;grid-template-columns:.85fr 1.4fr;gap:60px;margin-bottom:90px}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.guide-grid article{padding:24px;border-top:3px solid var(--forest);background:#ffffff6b}.guide-grid article+article{border-top-color:var(--coral)}.guide-kicker{margin:0 0 14px;font-size:14px;font-weight:800;letter-spacing:.08em}.guide-kicker.good{color:var(--forest)}.guide-kicker.bad{color:var(--coral)}.guide-grid h3{margin:0 0 10px;font-size:17px}.guide-grid article>p:last-child{margin:0;color:var(--muted);font-size:14px}.faq{max-width:820px;margin-bottom:90px}.faq h2{margin-bottom:24px}.faq details{border-top:1px solid var(--line)}.faq details:last-child{border-bottom:1px solid var(--line)}.faq summary{padding:18px 4px;cursor:pointer;font-weight:800}.faq details p{margin:-5px 0 20px;color:var(--muted);font-size:14px}footer{align-items:end;padding:28px 0 42px;border-top:1px solid var(--line)}footer b{font:800 14px ui-monospace,monospace;letter-spacing:.14em}footer p{margin:5px 0 0;color:var(--muted);font-size:14px}footer nav{display:flex;flex:none;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:22px;color:var(--muted);font-size:14px}footer nav a,footer nav span{white-space:nowrap}footer nav a{color:inherit;text-decoration:none}footer nav a:hover{color:var(--forest);text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:780px){main{width:min(100% - 28px,1120px)}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition-duration:.01ms!important}}:root{--chess-navy:#1f2e3b;--chess-blue:#426b8a;--chess-gold:#d3aa58;--chess-paper:#f4f0e6;--chess-ink:#18232d;--chess-muted:#64717a;--chess-line:#d8d1c4}*{box-sizing:border-box}.chess-page{margin:0;background:var(--chess-paper);color:var(--chess-ink);font-family:Yu Gothic,Hiragino Kaku Gothic ProN,sans-serif}.chess-page .brand-mark,.chess-page footer{background:var(--chess-navy)}.site-header{display:flex;align-items:center;justify-content:space-between;max-width:1200px;margin:auto;padding:20px 28px}.brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;color:#fff;font:900 21px Georgia,serif}.brand b,.brand small{display:block}.brand b{font:900 14px/1.1 ui-monospace,monospace;letter-spacing:.12em}.brand small{margin-top:3px;color:var(--chess-muted);font-size:14px}.mini-nav{display:flex;gap:22px}.mini-nav a{color:var(--chess-muted);font-size:14px;font-weight:800;text-decoration:none}.chess-page main{max-width:1180px;margin:auto;padding:0 28px}.chess-hero{padding:48px 0 34px}.eyebrow{margin:0 0 7px;color:var(--chess-gold);font:900 14px ui-monospace,monospace;letter-spacing:.18em}.chess-hero h1{margin:0;color:var(--chess-navy);font:900 clamp(48px,7vw,78px)/1 Georgia,serif;letter-spacing:.04em}.chess-hero>p:last-child{margin:14px 0 0;color:var(--chess-muted);font-size:15px;font-weight:700}.chess-app{overflow:hidden;margin-bottom:70px;border:1px solid #c5bba8;border-radius:18px;background:#fffdf8;box-shadow:0 24px 65px #2f26151f}.chess-settings{display:flex;align-items:end;gap:14px;padding:16px 20px;border-bottom:1px solid #c7bda9;background:var(--chess-navy)}.chess-settings label{display:grid;gap:5px;color:#e2e8ed;font-size:14px;font-weight:800}.chess-settings select{min-width:150px;padding:9px 34px 9px 10px;border:1px solid #6e7e8b;border-radius:7px;background:#fff;color:var(--chess-ink);font:800 14px sans-serif}.new-chess-game{margin-left:auto;padding:10px 18px;border:1px solid #e8ca86;border-radius:7px;background:var(--chess-gold);color:#192631;cursor:pointer;font-weight:900}.new-chess-game:disabled{cursor:default;opacity:.55}.chess-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;min-height:700px}.chess-board-column{display:grid;align-content:center;justify-items:center;gap:10px;padding:25px;background:#e7ecef}.chess-player{display:flex;align-items:center;justify-content:space-between;width:min(100%,650px);min-height:36px;padding:5px 4px}.chess-player b{font-size:14px}.chess-player small{color:var(--chess-muted);font-size:14px;font-weight:800}.chess-board-frame{width:min(100%,650px);padding:7px;border:4px solid #493424;background:#8d6849;box-shadow:0 12px 27px #33302947}.chess-board{width:100%;aspect-ratio:1}.chess-board.cg-wrap cg-container{left:0;width:100%!important;height:100%!important}.chess-board.cg-wrap cg-board{background-size:100% 100%;background-position:0 0}.chess-sidebar{display:flex;min-width:0;flex-direction:column;padding:22px 18px;background:#fff}.chess-turn-card{display:grid;gap:4px;padding:15px;border-radius:10px;background:#edf1f3}.chess-turn-card small{color:var(--chess-muted);font-size:14px}.chess-turn-card strong{font-size:17px}.chess-result{display:flex;align-items:baseline;gap:7px;margin-top:8px;padding:8px 9px;border:1px solid #d7c286;border-radius:7px;background:#fff8e6}.chess-result[hidden]{display:none}.chess-result strong{font-size:14px}.chess-result span{color:var(--chess-muted);font-size:14px}.chess-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.chess-actions button{padding:10px;border:1px solid #9ca9b0;border-radius:7px;background:#fff;cursor:pointer;font-weight:900}.chess-actions button:last-child{border-color:#c79e96;color:#8d2c20}.chess-actions button:disabled{cursor:default;opacity:.42}.chess-history{display:flex;min-height:0;flex:1;flex-direction:column;margin-top:23px}.chess-history>div{display:flex;align-items:center;justify-content:space-between}.chess-history h2{margin:0;font-size:14px}.pgn-actions{display:flex;gap:5px}.pgn-actions button{padding:5px 7px;border:1px solid #9ca9b0;border-radius:6px;background:#fff;color:var(--chess-navy);cursor:pointer;font-size:14px;font-weight:900}.pgn-actions button:disabled{cursor:default;opacity:.4}.chess-history ol{overflow:auto;max-height:390px;margin:10px 0 0;padding:0;list-style:none;border-top:1px solid var(--chess-line)}.chess-history li{display:grid;grid-template-columns:28px 1fr 1fr;gap:7px;padding:8px 4px;border-bottom:1px solid #eee9de;font-size:14px}.chess-history li span{color:var(--chess-muted);font:700 14px ui-monospace,monospace}.chess-history .empty-moves{display:block;color:var(--chess-muted);font-size:14px;text-align:center}.chess-promotion{border:0;border-radius:13px;background:#fffdf8;box-shadow:0 28px 80px #0000004d}.chess-promotion::backdrop{background:#15222b85}.chess-promotion form{min-width:280px;padding:18px}.chess-promotion p{margin:0 0 13px;font-weight:900;text-align:center}.promotion-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.promotion-choices button{padding:10px 3px;border:1px solid #9ca9b0;border-radius:7px;background:#fff;cursor:pointer;font-weight:900}.promotion-choices button:hover{border-color:var(--chess-blue);background:#edf4f8}.chess-page footer{display:flex;align-items:flex-end;justify-content:space-between;padding:32px max(28px,calc((100vw - 1124px)/2));color:#fff}.chess-page footer b{font:900 14px ui-monospace,monospace}.chess-page footer p{margin:5px 0 0;color:#c4d1da;font-size:14px}.chess-page footer nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:18px}.chess-page footer a{color:#e1edf4;font-size:14px;text-decoration:none}@media(max-width:880px){.chess-layout{grid-template-columns:1fr}.chess-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:12px}.chess-history{grid-column:1/-1;margin-top:8px}.chess-history ol{max-height:180px}.chess-result{grid-column:1/-1;margin:0}}@media(max-width:620px){.site-header{padding:17px 15px}.mini-nav{display:none}.chess-page main{padding:0 10px}.chess-hero{padding:28px 7px 23px}.chess-hero h1{font-size:52px}.chess-settings{display:grid;grid-template-columns:1fr 1fr;padding:13px 12px}.chess-settings select{width:100%;min-width:0}.new-chess-game{grid-column:1/-1;width:100%;margin:0}.chess-board-column{padding:16px 6px}.chess-board-frame{padding:4px;border-width:3px}.chess-sidebar{grid-template-columns:1fr;padding:16px 12px}.chess-history,.chess-result{grid-column:1}.chess-page footer{display:grid;gap:20px;padding:28px 18px}.chess-page footer nav{justify-content:flex-start}}.chess-review-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px}.chess-review-controls[hidden]{display:none}.chess-review-controls button{min-width:0;padding:7px 3px;border:1px solid #9ca9b0;border-radius:6px;background:#fff;color:var(--chess-navy);cursor:pointer;font-size:14px;font-weight:900}.chess-review-controls button:disabled{cursor:default;opacity:.38}.chess-review-controls #chessAiAnalysis{grid-column:1/-1;background:var(--chess-navy);color:#fff;font-size:14px}.chess-history li button{min-width:0;padding:0;border:0;background:none;color:inherit;cursor:pointer;font:inherit;font-weight:900}.chess-history li button[aria-current=true]{color:#9a5f08;text-decoration:underline}.chess-history li.is-current{background:#f8edcf}.chess-history li.is-variation{background:#e8f2ec;color:#245d42}.chess-history li.is-variation span{color:#245d42}@media(max-width:880px){.chess-layout{grid-template-columns:minmax(0,1fr)}.chess-board-column,.chess-board-frame{min-width:0}}.chess-board-frame{display:grid;place-items:center}.chess-settings .chess-actions{grid-template-columns:repeat(2,auto);gap:8px;margin:0 0 0 8px}@media(max-width:620px){.chess-settings .chess-actions{grid-column:1/-1;justify-self:end;margin:0}}@media(max-width:620px){.chess-page .chess-board-column{padding:8px 3px 10px}.chess-page .chess-player{min-height:30px;padding-block:2px}.chess-page .chess-sidebar{padding:10px}.chess-page .chess-app{margin-bottom:32px;border-radius:12px}}@media(max-width:620px){.chess-page .chess-settings{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 8px!important;padding:9px 10px!important}.chess-page .chess-settings label{min-width:0;gap:3px;font-size:14px}.chess-page .chess-settings select{width:100%!important;min-width:0!important;min-height:35px;padding:6px 22px 6px 7px!important;font-size:14px!important}}@media(max-width:620px){.chess-page .chess-settings{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 8px;padding:9px 10px}.chess-page .chess-settings .ai-delay-option{display:flex;align-items:center;min-height:32px;padding:4px 5px;gap:5px;font-size:14px;white-space:nowrap}.chess-page .chess-settings .ai-delay-option input{flex:0 0 16px;width:16px;height:16px;margin:0}.chess-page .chess-settings .new-chess-game{grid-column:auto;justify-self:end;width:auto;min-width:0;min-height:32px;margin:0;padding:5px 9px;font-size:14px;white-space:nowrap}.chess-page .chess-settings .chess-actions{grid-column:1/-1;justify-self:end;display:grid;grid-template-columns:repeat(2,max-content);gap:5px;margin:0}.chess-page .chess-settings .chess-actions button{min-width:0;min-height:32px;padding:5px 9px;font-size:14px}}
