@font-face{font-family:lichess;font-display:block;src:url(/fonts/lichess.woff2) format("woff2")}button,a,summary,label,select,input,[role=button],[data-node-id]{touch-action:manipulation}[data-icon]:before{font-family:lichess;content:attr(data-icon);font-style:normal;font-weight:400;line-height:1}:root{--page-bg: #161512;--panel-bg: #262421;--header-bg: #2e2a24;--card-nested-bg: #33302c;--border: #403d39;--text: #bababa;--text-dim: #a3a3a3;--text-strong: #ffffff;--primary: #3692e7;--primary-hover: #4aa0f0;--good: #3fbf60;--warn: #e0a53f;--lirep: #ef8a3c;--info: #8dbbd8;--bad: #d62929;--bad-soft: #e05252;--shadow: rgba(0, 0, 0, .35);--pawn-white: #f0f0f0;--pawn-black: #4a4a4a;--pct-white: #e8e8e8;--pct-black: #9a9a9a;color-scheme:dark}:root[data-theme=light]{--page-bg: #edebe9;--panel-bg: #ffffff;--header-bg: #e4e1dd;--card-nested-bg: #f3f1ee;--border: #d4d1cc;--text: #4d4d4d;--text-dim: #6f6f6f;--text-strong: #1a1a1a;--primary: #1f78d1;--primary-hover: #1565b3;--good: #1d8a3a;--warn: #a5680f;--lirep: #c0570f;--info: #2a6f99;--bad: #c42323;--bad-soft: #c93a3a;--shadow: rgba(0, 0, 0, .18);--pawn-white: #ffffff;--pawn-black: #3a3a3a;--pct-white: #4d4d4d;--pct-black: #4d4d4d;color-scheme:light}.theme-toggle{flex-shrink:0;width:34px;height:34px;margin-left:auto;padding:0;border:1px solid var(--border);border-radius:6px;background:transparent;color:var(--text);font-size:1.05rem;line-height:1;cursor:pointer}.theme-toggle:hover{border-color:var(--primary);color:var(--text-strong)}.theme-toggle+.site-auth{margin-left:0}.tips-toggle{flex-shrink:0;width:34px;height:34px;margin-left:-16px;padding:0;border:1px solid var(--border);border-radius:6px;background:transparent;color:var(--text);font:inherit;font-size:1.05rem;font-weight:700;line-height:1;cursor:pointer}.tips-toggle:hover{border-color:var(--primary);color:var(--text-strong)}.tips-toggle[aria-pressed=true]{border-color:var(--primary);background:var(--primary);color:#fff}.tips-toggle+.site-auth{margin-left:0}:root:not(.tips-on) .tips{display:none!important}.mobile-hint{background:color-mix(in srgb,var(--lirep) 14%,var(--page-bg));border-bottom:1px solid color-mix(in srgb,var(--lirep) 45%,var(--border));color:var(--text-strong)}.mobile-hint__inner{max-width:1100px;margin:0 auto;padding:8px 8px 8px 16px;display:flex;align-items:center;gap:8px}.mobile-hint__text{flex:1;margin:0;font-size:.9rem;line-height:1.4}.mobile-hint__link{color:var(--lirep);font-weight:600}.mobile-hint__close{flex-shrink:0;width:36px;height:36px;padding:0;border:0;background:transparent;color:var(--text-dim);font-size:1rem;cursor:pointer}.mobile-hint__close:hover{color:var(--text-strong)}.focus-mode .mobile-hint{display:none}.tips-card{margin:0 0 28px;padding:16px 20px;background:color-mix(in srgb,var(--primary) 7%,var(--panel-bg));border:1px solid color-mix(in srgb,var(--primary) 35%,var(--border));border-radius:10px}.tips-card__title{margin:0 0 8px;color:var(--text-strong);font-size:1.05rem}.tips-card__list{margin:0;padding-left:1.2em;color:var(--text);line-height:1.5}.tips-card__list li+li{margin-top:6px}.source-link{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:34px;height:34px;margin-left:auto;border:1px solid var(--border);border-radius:6px;color:var(--text)}.source-link:hover,.source-link[aria-current=page]{border-color:var(--primary);color:var(--text-strong)}.source-link+.theme-toggle{margin-left:-16px}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--page-bg);color:var(--text)}.site-header{background:var(--header-bg);border-bottom:1px solid var(--border)}.site-header{position:sticky;top:0;z-index:20;transition:transform .2s ease}.bar--hidden{transform:translateY(-100%)}@media (prefers-reduced-motion: reduce){.site-header{transition:none}}.site-header__inner{max-width:1100px;margin:0 auto;padding:0 16px;display:flex;align-items:center;gap:24px;height:52px}.site-title{display:flex;align-items:center;gap:.75rem;color:var(--text-strong);font-size:1.75rem;font-weight:600;text-decoration:none;white-space:nowrap}.site-title .site-icon{display:inline-block;height:40px;width:40px;background-color:currentColor;-webkit-mask-image:url(/logos/rook2.png);mask-image:url(/logos/rook2.png);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;mask-mode:alpha}.site-title .tld{color:var(--text-dim);font-weight:400}.site-title:hover,.site-title:hover .tld{color:var(--primary-hover)}.site-nav{display:flex;gap:18px;flex:1;flex-wrap:wrap}.site-nav a{color:var(--text);text-decoration:none;font-size:.95rem}.site-nav a:hover{color:var(--text-strong)}.site-nav a[aria-current=page]{color:var(--text-strong);font-weight:600}.site-auth{display:flex;align-items:center;gap:12px}.username{color:var(--text-strong);font-size:.95rem;text-decoration:none;font-weight:600}.username__icon{display:none}.username:hover{color:var(--primary-hover)}.btn{display:inline-block;padding:6px 14px;border-radius:4px;font-size:.9rem;font-weight:600;text-decoration:none;cursor:pointer;border:none}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-secondary{background:transparent;color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{color:var(--text-strong);border-color:var(--text-dim)}.btn-split{display:inline-flex}.btn-split__main{border-top-right-radius:0;border-bottom-right-radius:0}.btn-split__side{display:inline-flex;align-items:center;margin-left:-1px;padding-inline:7px;border-top-left-radius:0;border-bottom-left-radius:0}.btn-split .btn:hover{position:relative;z-index:1}.btn-warning{background:#a5680f;color:var(--text-strong)}.btn-warning:hover{background:#c07a12}.site-main{max-width:1100px;margin:0 auto;padding:60px 16px}.empty-state{text-align:center;color:var(--text-dim);padding:80px 0;background:var(--panel-bg);border:1px dashed var(--border);border-radius:8px}.empty-state p{margin:0 0 16px}.empty-state p:last-child{margin-bottom:0}.profile-header{margin-bottom:24px}.profile-header h1{margin:0 0 4px;color:var(--text-strong);font-size:1.6rem}.profile-subtitle{margin:0;color:var(--text-dim);font-size:.9rem}.profile-section+.profile-section{margin-top:34px}.profile-section__heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:14px}.profile-section__heading h2{margin:0 0 4px;color:var(--text-strong);font-size:1.2rem}.profile-section__aside,.profile-section__link{color:var(--text-dim);font-size:.82rem}.profile-section__link{color:var(--primary-hover);text-decoration:none}.profile-section__link:hover{color:var(--text-strong)}.profile-prefs{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px 32px}.profile-pref{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;border:0}.profile-pref legend{margin-bottom:4px;color:var(--text-strong);font-weight:600}.profile-pref label{display:flex;align-items:center;gap:8px;cursor:pointer}.badge-matrix{margin-top:18px;overflow-x:auto}.badge-matrix table{border-collapse:collapse}.badge-matrix th,.badge-matrix td{padding:8px 12px;text-align:center;vertical-align:middle}.badge-matrix thead th{color:var(--text-strong);font-size:.85rem;font-weight:600;border-bottom:1px solid var(--border)}.badge-matrix tbody th{color:var(--text-strong);font-size:.85rem;font-weight:600;text-align:left;white-space:nowrap}.badge-matrix__corner{text-align:left!important;font-weight:400!important;color:var(--text-dim)!important}.badge-matrix__corner-sep{margin:0 2px}.badge-matrix__range{display:block;color:var(--text-dim);font-size:.75rem;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}.badge-matrix__corner .badge-matrix__range{display:inline}.profile-empty{padding:34px 18px}.rating-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px;margin-bottom:40px}.rating-card{background:var(--panel-bg);border:1px solid var(--border);border-radius:8px;padding:16px;text-align:center}.rating-card__icon:before{font-size:1.7rem;color:var(--primary)}.rating-card__label{color:var(--text-dim);font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}.rating-card__value{color:var(--text-strong);font-size:1.8rem;font-weight:700}.rating-card__detail{color:var(--text-dim);font-size:.8rem;margin-top:4px}.profile-section h2{color:var(--text-strong);font-size:1.2rem;margin-bottom:12px}.profile-section .empty-state{padding:40px 0}.page-title{color:var(--text-strong);font-size:1.6rem;margin:0 0 24px}.studies-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.opening-groups{display:grid;gap:44px}.opening-group h2,.opening-group h4{margin:0 0 14px;padding-bottom:8px;border-bottom:2px solid var(--primary-hover);color:var(--primary-hover);font-size:1.15rem;font-weight:700}.opening-group__empty{grid-column:1 / -1;margin:0;padding:14px 16px;color:var(--text-dim);background:var(--panel-bg);border:1px dashed var(--border);border-radius:8px}.study-create-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));margin-top:16px}.study-card{display:block;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px;padding:16px;text-decoration:none;color:var(--text);transition:border-color .15s ease-in-out}.study-card:hover{border-color:var(--primary)}.study-card h3{margin:0 0 8px;color:var(--text-strong);font-size:1.05rem}.study-card__line{display:flex;flex-direction:column;gap:2px;margin:10px 0 0;padding-top:9px;border-top:1px solid var(--border);font-family:Courier New,monospace;font-size:.85rem;color:var(--text);overflow-wrap:anywhere}.study-card--summary{display:flex;flex-direction:column;gap:8px}.studies-grid--sortable [data-study-id]{cursor:grab}.study-card--summary .study-card__line{flex-grow:1;justify-content:flex-start}.study-card__header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.study-card__header h3{flex:1 1 auto;min-width:0;margin:0;font-size:1.1em}.study-card__title-text{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-indent:0;transition:text-indent var(--title-time, .4s) linear}.study-card__title-text--scrolled{text-overflow:clip;text-indent:var(--title-shift, 0)}.study-card__variation{display:block;overflow:hidden;color:var(--text-dim);font-size:.78em;font-style:italic;font-weight:400;white-space:nowrap;text-overflow:ellipsis}.archived-bar{margin-top:20px}.opening-group--archived{margin-top:44px}.opening-group__side+.opening-group__side{margin-top:24px}.opening-group--archived h4{margin-bottom:10px;padding-bottom:6px;border-bottom-width:1px;font-size:.95rem}.opening-group__note{margin:-4px 0 12px;color:var(--text-dim);font-size:.85rem}.study-card--archived{border-style:dashed;background:transparent;opacity:.75;transition:opacity .15s}.study-card--archived:hover,.study-card--archived:focus-within{opacity:1}.study-card--archived .piece-badge{--piece-c1: #8a8a8a;--piece-c2: #55555a;--metal-edge: #8a8a8a;--metal-body: #77777c;--metal-light: #a0a0a4;--metal-line: transparent;animation:none;filter:none}.study-card--archived .piece-badge:before,.study-card--archived .piece-badge:after{display:none}.archive-note{position:fixed;bottom:calc(20px + env(safe-area-inset-bottom,0px));left:50%;z-index:20;max-width:calc(100vw - 32px);margin:0;padding:10px 14px;border:1px solid var(--border);border-radius:8px;background:var(--panel-bg);box-shadow:0 4px 16px var(--shadow);color:var(--text);font-size:.88rem;transform:translate(-50%)}.archive-note__undo{margin-left:8px;padding:0;border:0;background:none;color:var(--primary);font:inherit;font-weight:600;cursor:pointer}.study-card__icons{display:inline-flex;justify-self:end;gap:2px}.study-card__icon-btn,.study-card__delete{display:inline-flex;flex-shrink:0;align-self:center;padding:3px;border:0;border-radius:4px;background:transparent;color:var(--text-dim);cursor:pointer;transition:color .15s ease-in-out,background-color .15s ease-in-out}.study-card__icon-btn:hover{color:var(--primary);background:color-mix(in srgb,var(--primary) 14%,transparent)}.study-card__delete:hover{color:var(--bad);background:color-mix(in srgb,var(--bad) 14%,transparent)}.study-card__delete:disabled{opacity:.5;cursor:default}.study-card__score{display:flex;align-items:baseline;justify-content:space-between;color:var(--text-dim);font-size:.8rem}.study-card__score+.study-card__line{margin-top:2px}.study-card__broken{margin:8px 0 0;color:var(--warn);font-size:.85rem}.study-card__results{display:inline-flex;align-items:baseline;gap:5px;color:var(--primary);font-size:1.05rem;white-space:nowrap}.study-card__result{font-weight:600}.study-card__result--ranked{font-weight:700}.study-card__result--unranked{font-weight:400}.study-card__result--missing{color:var(--text-dim);font-weight:400}.study-card__results-sep{color:var(--text-dim);font-size:.9rem}.study-card__games{color:var(--primary);text-decoration:none}.study-card__actions{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:4px;margin-top:auto;padding-top:4px}.study-card__duplicate{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:auto;padding-top:4px}.study-card__duplicate[hidden],.study-card__actions[hidden]{display:none}.study-card__duplicate-name{flex:1 1 100%;min-width:0;padding:5px 8px;border:1px solid var(--border);border-radius:4px;background:var(--card-nested-bg);color:var(--text-strong);font:inherit;font-size:.85rem}.study-card__duplicate .btn{font-size:.82rem;padding-inline:8px}.study-card__actions .btn{font-size:.82rem;padding-inline:8px;text-align:center;white-space:nowrap}.study-card__move-line{display:block;min-height:1.4em;white-space:nowrap}.study-card__line .tree-move{padding:0;cursor:inherit}.study-card__line .study-card__start{color:var(--text-dim);font-family:inherit;font-size:.78rem}.study-card__meta{margin:0;color:var(--text-dim);font-size:.8rem}.study-card__rank{display:inline-block;min-width:1.6em;margin-right:2px;padding:1px 6px;border-radius:999px;background:var(--card-nested-bg);color:var(--text-dim);font-size:.8rem;text-align:center;vertical-align:.1em}.study-card__title-link{color:inherit;text-decoration:none}.study-card__title-link:hover{color:var(--primary);text-decoration:underline}.study-card__section{margin-top:2px;padding-top:8px;border-top:1px solid var(--border)}.study-card__footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;margin-top:auto;padding-top:8px;border-top:1px solid var(--border)}.study-card__footer .btn{font-size:.82rem;padding-inline:8px;white-space:nowrap}.study-card__footer .community-yours{padding-block:7px;font-size:.82rem;line-height:normal}.study-card__line--board{font-family:inherit}.study-card__board{width:100%;aspect-ratio:1 / 1;pointer-events:none}.study-card__caption{overflow:hidden;color:var(--text-dim);font-family:Courier New,monospace;font-size:.8rem;white-space:nowrap;text-overflow:ellipsis}.study-card__settings{margin-top:-4px}.study-card__settings-list{display:flex;flex-direction:column;gap:2px;min-width:0}.study-card__settings summary{cursor:pointer}.study-card__settings summary:hover{color:var(--text)}.study-card__settings[open] summary{margin-bottom:4px}.study-card__setting{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.study-card__setting strong{color:var(--text);font-weight:600}.study-card__author{min-width:0;color:var(--text-dim);font-size:.85rem;overflow-wrap:anywhere}.study-card--new{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-style:dashed;color:var(--text-dim);min-height:96px}.study-card--new:hover{color:var(--text-strong)}.study-card__plus{font-size:2rem;line-height:1}.stat-card{background:var(--panel-bg);border:1px solid var(--border);border-radius:8px;padding:16px}.stat-card[role=button]{cursor:pointer;transition:border-color .15s ease-in-out}.stat-card[role=button]:hover,.stat-card[role=button]:focus-visible{border-color:var(--primary);outline:none}.stat-card__header{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px}.stat-card__header h3{display:flex;align-items:center;gap:6px;margin:0;color:var(--text-strong);font-size:1.05rem}.stat-card__side{display:inline-flex;align-items:center;color:var(--text-dim);font-size:.75rem;white-space:nowrap}.side-pawn{display:inline-block;margin-right:5px;font-size:1.1rem;line-height:1;vertical-align:-1px}.side-pawn--white{color:var(--pawn-white);-webkit-text-stroke:.5px var(--text-dim)}.side-pawn--black{color:var(--pawn-black);-webkit-text-stroke:.5px var(--text-dim)}.stat-card__score{color:var(--primary);font-size:2.2rem;font-weight:700;line-height:1.1}.stat-card__score--empty{color:var(--text-dim)}.stat-card__label{margin:2px 0 10px;color:var(--text-dim);font-size:.75rem}.stat-card__meta{margin:0 0 12px;color:var(--text-dim);font-size:.78rem;line-height:1.4}.stat-card__recalc{width:100%}.stat-page{max-width:900px;margin-top:16px;background:var(--panel-bg);border:1px solid var(--border);border-radius:12px;padding:24px}.stat-page__header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:4px}.stat-page__header h1{display:flex;align-items:center;gap:8px;margin:0;color:var(--text-strong);font-size:1.4rem}.stat-detail__score{color:var(--primary);font-size:2.6rem;font-weight:700;line-height:1.1;margin-top:16px}.stat-page [hidden]{display:none!important}.stat-page a:not(.btn){color:var(--primary);text-decoration:none}.stat-page a:not(.btn):hover{text-decoration:underline}.stat-page__sub{margin:4px 0 20px;color:var(--text-dim);font-size:.85rem}.calc-settings{margin:0 0 24px;padding:16px 18px;background:var(--card-nested-bg);border:1px solid var(--border);border-radius:10px}.calc-settings__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.calc-settings h2{margin:0 0 4px;color:var(--text-strong);font-size:1.05rem}.calc-settings__summary{margin:0;color:var(--text);font-size:.88rem}.calc-settings__body{display:grid;gap:18px;margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.calc-settings__group h3{margin:0 0 2px;color:var(--text-strong);font-size:.92rem}.calc-settings__group .stat-card__meta{margin:0 0 10px}.calc-settings__group .explorer-settings-panel{margin:0}.calc-settings__actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}.calc-settings__actions .stat-card__meta{margin:0}.btn-small{padding:4px 10px;font-size:.8rem}.stat-result{margin:0 0 20px;padding:18px 20px;background:var(--card-nested-bg);border:1px solid var(--border);border-radius:10px}.stat-result__head{display:flex;align-items:center;justify-content:space-between;gap:12px}.stat-result__head h2{margin:0;color:var(--text-strong);font-size:1.15rem}.stat-result__what{margin:4px 0 12px;color:var(--text-dim);font-size:.82rem}.stat-result__toggle{display:inline-flex;align-items:center;gap:4px;padding:0;background:none;border:none;color:inherit;font:inherit;cursor:pointer}.stat-result__toggle:hover{color:var(--primary)}.stat-result__chevron{color:var(--text-dim);transition:transform .15s}.stat-result__toggle[aria-expanded=true] .stat-result__chevron{transform:rotate(90deg)}.stat-result__explain{margin:0 0 12px;padding:8px 10px;border-left:3px solid var(--warn);background:color-mix(in srgb,var(--warn) 8%,var(--card-nested-bg));color:var(--text);font-size:.82rem;line-height:1.45}.stat-result__explain p{margin:0 0 6px}.stat-result .stat-detail__score{margin-top:0}.stat-result .stat-card__meta{margin:0 0 8px}.stat-outcomes{margin:4px 0 8px;color:var(--text-dim);font-size:.88rem}.stat-outcomes strong{color:var(--text-strong)}.stat-stale{margin:0 0 8px;padding:6px 10px;border-left:3px solid var(--warn);background:color-mix(in srgb,var(--warn) 12%,transparent);color:var(--text);font-size:.82rem}.stat-rank{margin:0 0 8px;color:var(--text-dim);font-size:.82rem}.stat-rank:empty{display:none}.stat-rank:has(.stat-rank__badge){margin:4px 0 12px;color:var(--text-strong);font-size:.95rem;font-weight:600}.stat-rank__badge{display:inline-block;margin-right:6px;padding:3px 10px;border-radius:999px;background:var(--primary);color:#fff;font-size:1.05rem;font-weight:700}.stat-rank__badge--gold{background:#b8860b}.stat-rank__badge--silver{background:#7d8790}.stat-rank__badge--bronze{background:#a0612b}.stat-knowledge{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;padding:12px 20px;background:var(--card-nested-bg);border:1px solid var(--border);border-radius:10px;color:var(--text-dim);font-size:.88rem}.stat-knowledge strong{color:var(--text-strong);font-size:1.1rem}.stat-knowledge .stat-card__meta{margin:0;flex:1 1 200px}.piece-badge-btn{border:none;background:none;padding:0;margin:0;cursor:pointer;line-height:1}.piece-badge{display:inline-block;font-size:1.9rem;font-weight:700;line-height:1;background-image:linear-gradient(120deg,var(--piece-c1),var(--piece-c2),var(--piece-c1));background-size:220% auto;background-position:left center;-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 1px 1px rgba(0,0,0,.45));transition:transform .15s ease,background-position .6s ease}.piece-badge-btn:hover .piece-badge{transform:scale(1.35) rotate(-5deg);background-position:right center}.piece-badge--sm{font-size:1.15rem}.study-card__header-end{display:inline-flex;flex:none;align-items:center;gap:8px}.study-card__trophy{display:inline-flex;flex:none;align-self:center;margin:-4px -2px -4px 0;text-decoration:none}.study-card__trophy .piece-badge{font-size:1.6rem}.study-card__trophy:hover .piece-badge{transform:scale(1.6) rotate(-6deg);background-position:right center}.piece-badge--legendary{--piece-c1: #d6a8ff;--piece-c2: #3fc7dd}@media (prefers-reduced-motion: no-preference){.piece-badge.piece-badge--legendary{position:relative;overflow:visible;background-image:linear-gradient(115deg,#b57bff,#3fc7dd,#ff8ad8,#ffd76a,#fff,#b57bff);background-size:400% auto;animation:legendary-flow 4s linear infinite,legendary-halo 2.4s ease-in-out infinite}.piece-badge--legendary:before,.piece-badge--legendary:after{position:absolute;color:#fff6c9;font-size:.42em;line-height:1;text-shadow:0 0 4px rgba(255,230,150,.9);content:"✦";opacity:0;pointer-events:none;animation:legendary-sparkle 2.6s ease-in-out infinite}.piece-badge--legendary:before{top:-.15em;right:-.25em}.piece-badge--legendary:after{bottom:.05em;left:-.3em;font-size:.32em;animation-delay:1.3s}.piece-badge-btn:hover .piece-badge--legendary{animation-duration:1.6s,1.2s}}@keyframes legendary-flow{0%{background-position:0% center}to{background-position:133.333% center}}@keyframes legendary-halo{0%,to{filter:drop-shadow(0 0 2px rgba(181,123,255,.6)) drop-shadow(0 1px 1px rgba(0,0,0,.45))}50%{filter:drop-shadow(0 0 7px rgba(63,199,221,.95)) drop-shadow(0 0 3px rgba(255,138,216,.8))}}@keyframes legendary-sparkle{0%,to{opacity:0;transform:scale(.4) rotate(0)}45%{opacity:1;transform:scale(1) rotate(45deg)}70%{opacity:0;transform:scale(.5) rotate(90deg)}}.piece-badge--brilliant{--piece-c1: #f2fdff;--piece-c2: #67bfd8}@media (prefers-reduced-motion: no-preference){.piece-badge.piece-badge--brilliant{position:relative;overflow:visible;background-image:linear-gradient(115deg,var(--piece-c2) 0%,var(--piece-c1) 34%,#ffffff 42%,#ffffff 50%,var(--piece-c1) 58%,var(--piece-c2) 100%);background-size:300% auto;animation:brilliant-glint 1.8s ease-in-out infinite}.piece-badge--brilliant:after{position:absolute;top:-.12em;right:-.22em;color:#fff;font-size:.36em;line-height:1;text-shadow:0 0 4px rgba(170,235,255,1);content:"✦";opacity:0;pointer-events:none;animation:legendary-sparkle 1.8s ease-in-out infinite}.piece-badge-btn:hover .piece-badge--brilliant{animation-duration:1s}}@keyframes brilliant-glint{0%,35%{background-position:150% center;filter:drop-shadow(0 0 2px rgba(170,235,255,.5)) drop-shadow(0 1px 1px rgba(0,0,0,.45))}65%{filter:drop-shadow(0 0 7px rgba(170,235,255,1)) drop-shadow(0 0 2px rgba(255,255,255,.9))}to{background-position:0% center;filter:drop-shadow(0 0 2px rgba(170,235,255,.5)) drop-shadow(0 1px 1px rgba(0,0,0,.45))}}.piece-badge--gold,.piece-badge--silver,.piece-badge--bronze{background-image:linear-gradient(120deg,var(--metal-edge) 0%,var(--metal-body) 28%,var(--metal-light) 46%,var(--metal-body) 58%,var(--metal-edge) 100%);background-size:160% auto;filter:drop-shadow(0 0 .6px var(--metal-line)) drop-shadow(0 1px 1px rgba(0,0,0,.22))}.piece-badge--gold{--metal-edge: #e9b22a;--metal-body: #ffd95a;--metal-light: #fffbe3;--metal-line: #8a5d00}.piece-badge--silver{--metal-edge: #b9c2cc;--metal-body: #e3e8ee;--metal-light: #ffffff;--metal-line: #4d5866}.piece-badge--bronze{--metal-edge: #d9894c;--metal-body: #f4b47c;--metal-light: #ffe9d4;--metal-line: #7a3b12}@media (prefers-reduced-motion: no-preference){.piece-badge.piece-badge--gold{background-image:linear-gradient(120deg,var(--metal-edge) 0%,var(--metal-body) 30%,var(--metal-light) 50%,var(--metal-body) 70%,var(--metal-edge) 100%);background-size:300% auto;animation:gold-flow 5s linear infinite}}@keyframes gold-flow{0%{background-position:0% center}to{background-position:150% center}}.piece-badge--none{--piece-c1: #b4b4b8;--piece-c2: #8c8c91;filter:none}.piece-legend{display:flex;flex-direction:column;gap:8px;background:var(--card-nested-bg);border:1px solid var(--border);border-radius:10px;padding:14px 18px;margin:10px 0 4px}.piece-legend__title{margin:0 0 2px;color:var(--text-strong);font-size:.85rem;font-weight:600}.piece-legend__note{margin:2px 0 0;color:var(--text-dim);font-size:.78rem}.piece-legend__note+.piece-legend__title{margin-top:8px}.piece-legend__row{display:flex;align-items:center;gap:8px;color:var(--text-dim);font-size:.85rem}.stat-card__eval{margin:0 0 8px;color:var(--text-dim);font-size:.82rem}.stat-card__eval strong{color:var(--text-strong)}.explorer-settings-panel{display:flex;flex-direction:column;gap:18px;margin:14px 0 24px}.explorer-settings-panel .analysis-header__settings{gap:18px}.explorer-settings-panel select{padding:7px 14px}.explorer-settings-panel .speed-checkboxes{gap:22px;margin-bottom:0}.explorer-settings-panel .speed-checkbox{gap:7px}.stat-card__meta--warning{color:var(--warn)}.eval-depth-control{display:inline-flex;align-items:center;gap:9px;color:var(--text-dim);font-size:.82rem}.eval-depth-control select{padding:6px 9px;background:var(--panel-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font:inherit}.status-check{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#3fbf6026;color:var(--good);font-size:.85rem;font-weight:700;flex-shrink:0}.progress-bar{display:flex;flex-direction:column;gap:4px}.progress-bar__track{height:6px;border-radius:3px;background:var(--border);overflow:hidden}.progress-bar__fill{height:100%;width:0%;background:var(--primary);border-radius:3px;transition:width .2s ease}.progress-bar__label{min-height:1.3em;color:var(--text-dim);font-size:.78rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.progress-bar__label--error{color:var(--bad-soft);white-space:normal}.progress-bar--error .progress-bar__track{display:none}.progress-bar--indeterminate .progress-bar__fill{width:35%;animation:progress-bar-indeterminate 1.1s ease-in-out infinite}@keyframes progress-bar-indeterminate{0%{margin-left:0%}50%{margin-left:65%}to{margin-left:0%}}.coverage-chart-wrap{position:relative;height:320px;margin-top:8px}.study-editor{max-width:1100px}.study-name-row{display:flex;gap:10px;margin-bottom:20px}.study-name-input{flex:1;padding:10px 12px;background:var(--panel-bg);border:1px solid var(--border);border-radius:6px;color:var(--text-strong);font-size:1rem}.study-name-input:focus{outline:none;border-color:var(--primary)}.study-name-input--attention{border-color:var(--bad);animation:study-name-shake .4s ease-in-out}@keyframes study-name-shake{0%,to{transform:translate(0)}20%{transform:translate(-4px)}40%{transform:translate(4px)}60%{transform:translate(-3px)}80%{transform:translate(3px)}}@media (prefers-reduced-motion: reduce){.study-name-input--attention{animation:none}}.study-color-select{padding:0 10px;background:var(--panel-bg);border:1px solid var(--border);border-radius:6px;color:var(--text-strong);font-size:.9rem}.study-color-badge{display:flex;align-items:center;padding:0 12px;background:var(--panel-bg);border:1px solid var(--border);border-radius:6px;color:var(--text-dim);font-size:.9rem;white-space:nowrap}.study-grid{display:grid;grid-template-columns:minmax(0,55fr) minmax(0,45fr);gap:20px;margin-bottom:20px}.study-card{background:var(--panel-bg);border:1px solid var(--border);border-radius:12px;padding:16px}.study-card--board{position:relative;display:block}.material{display:flex;align-items:center;gap:6px;height:var(--material-row);margin:0;color:var(--text-dim);font-size:1.05rem;line-height:1}#material-top{margin-bottom:var(--material-gap)}#material-bottom{margin-top:var(--material-gap)}.material__group{letter-spacing:-.3em;padding-right:.3em}.material__score{color:var(--text);font-size:.85rem;font-weight:600}.eval-gauge{position:absolute;top:calc(16px + var(--material-row, 0px) + var(--material-gap, 0px));bottom:calc(16px + var(--material-row, 0px) + var(--material-gap, 0px));left:3px;width:10px;overflow:hidden;background:#f4f4f4;border-radius:2px;box-shadow:0 0 0 1px var(--border)}.eval-gauge__black{position:absolute;top:0;left:0;width:100%;height:50%;background:#404040;transition:height 1s ease}.eval-gauge--flipped .eval-gauge__black{top:auto;bottom:0}.eval-gauge:after{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to bottom,transparent calc(50% - 1px),#d6492e calc(50% - 1px),#d6492e calc(50% + 1px),transparent calc(50% + 1px)),repeating-linear-gradient(to bottom,transparent 0,transparent calc(12.5% - 1px),rgba(128,128,128,.6) calc(12.5% - 1px),rgba(128,128,128,.6) 12.5%);content:"";pointer-events:none}.study-board-tools{display:flex;justify-content:flex-end;margin-bottom:10px}.board-flip-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;background:var(--panel-bg);border:1px solid var(--border);border-radius:4px;color:var(--text-dim);font-size:1.3rem;line-height:1;cursor:pointer}.board-flip-btn:hover{color:var(--text-strong);border-color:var(--text-dim)}.study-editor--edit{max-width:1200px}.study-editor--edit [hidden]{display:none!important}.study-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;margin-bottom:14px}.study-head__title{display:flex;flex:1 1 320px;align-items:center;gap:10px;min-width:0}.study-head__side{margin:0;font-size:1.5rem;cursor:default}.study-title{min-width:0;margin:0;overflow:hidden;color:var(--text-strong);font-size:1.35rem;text-overflow:ellipsis;white-space:nowrap;cursor:text}.study-rename-btn{display:inline-flex;flex:none;padding:4px;background:none;border:none;border-radius:4px;color:var(--text-dim);cursor:pointer}.study-rename-btn:hover{color:var(--text-strong);background:var(--card-nested-bg)}.study-head__title .study-name-input{flex:0 1 380px;min-width:0;padding:5px 10px;font-size:1.1rem}.study-head__title .study-color-select{height:32px}.study-head__title .study-save-status{flex:0 1 auto;min-width:0;font-size:.8rem;white-space:nowrap}.study-head__title .study-save-status--error{white-space:normal}.study-head__link{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border:1px solid var(--primary);border-radius:6px;color:var(--primary);font-size:.9rem;font-weight:600;text-decoration:none}button.study-head__link{background:none;font-family:inherit;cursor:pointer}button.study-head__link:disabled{opacity:.6;cursor:default}.study-head__link:hover{background:var(--primary);color:#fff}button.study-head__link:disabled:hover{background:none;color:var(--primary)}.study-menu>summary.btn{padding:5px 10px}.study-head__links{display:flex;align-items:center;gap:8px}.study-menu{position:relative}.study-menu>summary{list-style:none}.study-menu>summary::-webkit-details-marker{display:none}.study-menu__panel{position:absolute;top:calc(100% + 6px);right:0;z-index:20;display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:270px;padding:14px;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px;box-shadow:0 6px 20px #00000040}.study-menu__panel .study-share{margin:0}.study-menu__note{margin:0;color:var(--text-dim);font-size:.78rem}.study-editor--edit .study-grid{grid-template-columns:minmax(0,52fr) minmax(0,48fr)}.study-board-col{display:flex;flex-direction:column;gap:10px}.board-nav{display:flex;gap:6px}.board-nav__btn{flex:1;height:36px;padding:0;background:var(--panel-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:.95rem;cursor:pointer}.board-nav__btn:hover:not(:disabled){color:var(--text-strong);border-color:var(--text-dim)}.board-nav__btn:disabled{opacity:.4;cursor:default}.board-nav .board-flip-btn{flex:0 0 44px;width:auto;height:36px;font-size:1.2rem}.study-side-col{position:relative;min-height:0}.study-side-col__inner{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;gap:14px}.study-editor--edit .study-card--moves{flex:2 1 0;min-height:0;aspect-ratio:auto;gap:10px;padding:12px 14px}.study-editor--edit .study-actions{flex-wrap:wrap;align-items:center;gap:6px;margin:-12px -14px 0;padding:7px 14px;background:var(--card-nested-bg);border-bottom:1px solid var(--border);border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}.study-editor--edit .study-actions .study-icon-btn{width:32px;height:32px;font-size:1rem}.study-editor--edit .study-keyboard-help-btn{width:30px;height:30px;margin-left:auto}.study-editor--edit .off-prep-bar{background:color-mix(in srgb,var(--warn) 22%,var(--card-nested-bg));border-bottom-color:var(--warn)}.off-prep-bar__label{margin-right:auto;color:var(--warn);font-weight:600;line-height:32px}.study-editor--edit .study-card--off-prep{outline:1px solid var(--warn);outline-offset:-1px}.study-card--off-prep>.live-score,.study-card--off-prep>.study-comment-editor{display:none}.off-prep-line{margin:0;color:var(--text-dim)}.tree-move--off-prep{color:var(--warn);font-weight:600}.tree-move--off-prep.tree-move--current{background:var(--warn);color:var(--panel-bg)}.btn--active{border-color:var(--primary);color:var(--primary)}.study-editor--edit .explorer-source{display:none}.board-nav__btn svg{vertical-align:middle}.study-editor--edit .study-comment-editor{padding:0;background:none;border:none}.study-editor--edit .study-comment-editor textarea{min-height:48px}.study-card--tools{display:flex;flex-direction:column;flex:none;min-height:0;padding:8px 14px 4px}.study-card--tools.study-card--tools-explorer{flex:0 1 auto;padding-top:12px}.tool-tabs{display:flex;gap:4px;border-top:1px solid var(--border)}.tool-tab{display:inline-flex;align-items:center;margin-top:-1px;padding:8px 10px;background:none;border:none;border-top:2px solid transparent;color:var(--text-dim);font:inherit;font-size:.88rem;cursor:pointer}.tool-tab:hover,.tool-tab[aria-pressed=true]{color:var(--text-strong)}.tool-tab__switch{position:relative;width:24px;height:13px;flex:none;margin-right:7px;border-radius:7px;background:var(--border);transition:background .15s}.tool-tab__switch:after{position:absolute;top:2px;left:2px;width:9px;height:9px;border-radius:50%;background:var(--panel-bg);content:"";transition:transform .15s}.tool-tab[aria-pressed=true] .tool-tab__switch{background:var(--primary)}.tool-tab[aria-pressed=true] .tool-tab__switch:after{transform:translate(11px)}.tool-panel{flex:1;min-height:0;overflow:auto;padding-bottom:10px}.study-card--tools-both .tool-panel--engine{padding-top:8px;border-top:1px solid var(--border)}.tool-panel--engine{display:flex;flex:none;align-items:center;gap:8px}.engine-chips{display:flex;flex:1;flex-wrap:nowrap;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:thin}.engine-chip{display:inline-flex;flex:none;align-items:center;gap:4px;padding:2px 6px;background:var(--panel-bg);border:1px solid var(--border);border-radius:12px;color:var(--text-dim);font:inherit;font-family:Courier New,monospace;font-size:.78rem;white-space:nowrap;cursor:pointer}.engine-chip strong{color:var(--text-strong);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.engine-chip:hover{border-color:var(--primary)}.engine-chip:disabled{color:var(--text-dim);cursor:default}.engine-chip:disabled:hover{border-color:var(--border)}.engine-chip__dot{width:8px;height:8px;border-radius:50%}.tool-tabs__status{align-self:center;font-size:.75rem}.engine-depth{display:inline-flex;align-items:center;gap:2px}.engine-depth .engine-eval{min-width:6.5em;text-align:center}.engine-eval--busy:after{content:"";display:inline-block;width:.7em;height:.7em;margin-left:.4em;vertical-align:-.05em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:engine-eval-spin .7s linear infinite}@keyframes engine-eval-spin{to{transform:rotate(360deg)}}.engine-depth__btn{width:22px;height:22px;padding:0;background:none;border:1px solid var(--border);border-radius:4px;color:var(--text-dim);font-size:.95rem;line-height:1;cursor:pointer}.engine-depth__btn:hover:not(:disabled){border-color:var(--text-dim);color:var(--text-strong)}.engine-depth__btn:disabled{opacity:.35;cursor:default}.study-card--tools-none .tool-tabs{border-top-color:transparent}.explorer-settings-line{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;color:var(--text);font-size:.82rem}.tool-settings__group+.tool-settings__group{margin-top:14px}.tool-settings__radios{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:.85rem}.tool-settings__radio{display:inline-flex;align-items:center;gap:7px;cursor:pointer}.tool-settings__radio input{margin:0;accent-color:var(--primary)}.tool-settings__title{margin:0 0 2px;font-size:.9rem}.tool-settings__note{margin:0 0 8px;color:var(--text-dim);font-size:.78rem}.tool-settings__doc{text-decoration:none}.tool-tab--icon{padding-inline:8px}.tool-tab--suggest,.tool-tab--settings{margin-left:auto}.tool-tab--suggest+.tool-tab--settings{margin-left:0}.tool-tab--icon[aria-pressed=true]{color:var(--primary)}.tool-tab__emoji{font-size:1rem;line-height:1;filter:grayscale(1);opacity:.75}.tool-tab--suggest:hover .tool-tab__emoji,.tool-tab--suggest[aria-pressed=true] .tool-tab__emoji{filter:none;opacity:1}.suggest-doc{color:var(--text-dim);font-size:.78rem;font-weight:400}.suggest-doc a{color:var(--primary);text-decoration:none}.suggest-goal{display:grid;gap:6px;font-size:.85rem}.suggest-goal+.suggest-goal{margin-top:8px}.suggest-goal input[type=number],.suggest-advanced input[type=number],.suggest-advanced select{width:4.5em;margin:0 4px}.suggest-advanced{margin-top:10px;font-size:.82rem;color:var(--text-dim)}.suggest-advanced summary{cursor:pointer}.suggest-advanced label{display:block;margin-top:6px}.suggest-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}.suggest-status{margin:8px 0 0;color:var(--text-dim);font-size:.8rem}.suggest-list{margin:10px 0 0;padding:0;list-style:none;font-size:.85rem}.suggest-row{display:flex;align-items:center;gap:8px;padding:5px 0;border-top:1px solid var(--border)}.suggest-row__line{flex:1;min-width:0;padding:0;background:none;border:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}.suggest-row__line:hover{color:var(--text-strong)}.suggest-row__score{color:var(--text-dim);white-space:nowrap}.suggest-row--added .suggest-row__line{color:var(--text-dim)}@media (max-width: 600px){.tool-tab__name{display:none}.tool-tab .analysis-label:before{margin-right:0}}.explorer-row.explorer-row--prepared{border-left:3px solid var(--good)}.explorer-row.explorer-row--gap{border-left:3px solid var(--warn)}.explorer-row__mark{margin-right:4px;color:var(--good)}.study-editor--edit .explorer-rows{gap:1px}.study-editor--edit .explorer-row{padding:2px 8px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;background:transparent;line-height:1.2}.study-editor--edit .explorer-row:not(.explorer-row--prepared,.explorer-row--gap){border-left-color:transparent}.study-editor--edit .explorer-row:hover{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;background:var(--border)}.study-editor--edit .explorer-row__bar-wrap{gap:1px}.study-editor--edit .explorer-row__bar{height:7px}.engine-status-line{margin:0 0 8px;color:var(--text-dim);font-size:.8rem}@media (max-width: 980px){.study-editor--edit .study-grid{grid-template-columns:minmax(0,1fr)}.tool-tabs{flex-wrap:wrap}.study-side-col__inner{position:static}.study-editor--edit .study-card--moves,.study-card--tools{flex:none}.study-editor--edit .tree-view{max-height:320px}.study-card--tools .tool-panel--explorer{min-height:200px}.study-editor--edit .study-keyboard-help-btn{display:none}.study-head__links{width:100%}}.study-editor--edit{--material-row: 22px;--material-gap: 4px}.site-main--board{padding-top:8px}.study-editor--edit .study-head{justify-content:center;width:fit-content;max-width:100%;margin:0 auto 10px;padding:3px 6px 3px 14px;gap:4px 16px;background:var(--panel-bg);border:1px solid var(--border);border-radius:999px}.study-editor--edit .study-head__title{flex:0 1 auto;gap:7px}.study-editor--edit .study-head__side{font-size:1.1rem}.study-editor--edit .study-title{font-size:.98rem;font-weight:600}.study-editor--edit .study-head__title .study-name-input{padding:2px 8px;font-size:.95rem}.study-editor--edit .study-head__title .study-color-select{height:26px}.study-editor--edit .study-head__links{gap:6px}.study-editor--edit .study-head__link{padding:2px 9px;border-radius:999px;font-size:.8rem}.study-editor--edit .study-head__link svg{width:14px;height:14px}.study-editor--edit .study-menu>summary.btn{padding:1px 8px;border-radius:999px}@media (max-width: 980px){.study-editor--edit .study-head{width:auto;border-radius:12px}}.study-moves-footer{display:flex;flex:none;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:-4px 0;color:var(--text-dim);font-size:.75rem}.study-moves-footer__info{display:flex;gap:0 6px;min-width:0;font-style:italic;white-space:nowrap}.study-moves-footer__info>:not([hidden])~:not([hidden]):before{content:"·";margin-right:6px;font-style:normal}.study-moves-footer__start{padding:0;border:none;background:none;color:inherit;font:inherit;cursor:pointer}.study-moves-footer__start:hover{color:var(--primary);text-decoration:underline}.study-moves-footer .study-save-status{flex:0 1 auto;font-size:inherit;text-align:right}.focus-mode .study-moves-footer .study-save-status,.focus-mode .site-header,.focus-mode .study-head{display:none}.focus-mode .site-main--board{padding-top:12px}.focus-save-status{display:none}.focus-mode .focus-save-status{display:inline;margin-left:auto;color:var(--text-dim);font-size:.78rem;white-space:nowrap}.focus-mode .focus-save-status.study-save-status--error{color:var(--bad)}.board-nav .board-focus-btn{flex:0 0 44px;width:auto;height:36px}.board-focus-btn .focus-leave,.board-focus-btn[aria-pressed=true] .focus-enter{display:none}.board-focus-btn[aria-pressed=true] .focus-leave{display:inline}@media (min-width: 981px){.site-main--board{--board-size: max(360px, min(calc(100vh - var(--editor-top, 12px) - 144px), calc(100vw - 700px) ));max-width:calc(var(--board-size) + 700px);padding-bottom:12px}.site-main--board .study-editor--edit{max-width:none}.site-main--board .study-editor--edit .study-grid{grid-template-columns:calc(var(--board-size) + 24px) minmax(0,1fr);gap:12px;margin-bottom:0;min-height:calc(100vh - var(--editor-top, 12px) - 12px)}.site-main--board .study-editor--edit .study-board-col{align-self:start}.site-main--board .study-editor--edit .study-card--board{padding-right:6px}}.study-board{width:100%;aspect-ratio:1 / 1}.study-card--moves{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:hidden;aspect-ratio:45 / 55}.tree-view{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;font-family:Courier New,monospace;font-size:.9rem;color:var(--text);line-height:1.7}.tree-move{cursor:pointer;padding:1px 3px;border-radius:3px}.tree-move:hover{background:var(--border)}.tree-move-comment-marker{display:inline-block;width:5px;height:5px;margin-left:5px;border-radius:50%;background:var(--primary-hover);vertical-align:2px}.tree-move-comment-marker[hidden]{display:none}.tree-move-unfetched{display:inline-block;width:7px;height:7px;margin-left:5px;border:1.5px solid var(--warn);border-radius:50%;vertical-align:1px}.tree-fold__count{margin-left:6px;color:var(--text-dim);font-size:.8em}.tree-fold[open]>.tree-fold__head>.tree-fold__count{display:none}.tree-move-stat{margin-left:6px;padding:0 5px;border-radius:4px;background:var(--card-nested-bg);color:var(--text-dim);font-family:system-ui,sans-serif;font-size:.72rem;font-weight:400;white-space:nowrap}.live-score{margin:0 0 6px;color:var(--text-dim);font-size:.8rem}.study-start-btn{position:relative;font-size:.95rem}.study-start-btn__cross{position:absolute;top:0;right:0;bottom:0;left:0;display:none;align-items:center;justify-content:center;color:var(--bad);font-size:1.3rem;font-weight:700;pointer-events:none}.study-start-btn--clear .study-start-btn__cross{display:flex}.tree-start-flag{margin-left:4px;padding:0 2px;border:0;border-radius:3px;background:none;font-size:.8rem;line-height:1;cursor:pointer}.tree-start-flag:hover{background:var(--border)}.study-switch{display:inline-flex;align-items:center;gap:6px;padding:2px 4px;border:0;background:none;color:var(--text-dim);font:inherit;font-size:.82rem;cursor:pointer}.study-switch[aria-checked=true]{color:var(--text)}.study-switch:disabled{opacity:.45;cursor:default}.study-switch__track{position:relative;width:26px;height:14px;flex:none;border-radius:7px;background:var(--border);transition:background .15s}.study-switch__track:after{position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:var(--panel-bg);content:"";transition:transform .15s}.study-switch[aria-checked=true] .study-switch__track{background:var(--primary)}.study-switch[aria-checked=true] .study-switch__track:after{transform:translate(12px)}.tree-calc{border:0;color:var(--primary-hover);cursor:pointer}button.tree-calc:hover{text-decoration:underline}.tree-move-stat .tree-calc{margin-left:4px;padding:0;background:none;font:inherit}.tree-calc--busy{color:var(--text-dim);cursor:default}.tree-start-stat{margin-bottom:2px}.tree-start-stat .tree-move-stat{margin-left:0}.tree-move--mine{color:var(--primary-hover)}.tree-move--mismatch{color:var(--bad-soft);text-decoration:underline wavy var(--bad-soft);text-underline-offset:3px}.tree-move-number{color:var(--good)}.tree-move--current{background:var(--primary);color:#fff}.tree-move--start-point{color:var(--info)}.tree-move--current.tree-move--start-point{color:#fff}.tree-variation{position:relative;color:var(--text-dim)}.tree-variations{margin:2px 0 4px 8px;padding-left:7px;border-left:1px solid var(--border)}.tree-variation:before{position:absolute;top:15px;left:-8px;width:5px;border-top:1px solid var(--border);content:""}.tree-folds{margin:2px 0 4px 2px;padding-left:4px;border-left:1px solid var(--border)}.tree-fold{padding-left:10px}.tree-fold__head{display:block;list-style:none}summary.tree-fold__head{cursor:pointer}summary.tree-fold__head::-webkit-details-marker{display:none}.tree-fold__head:before{display:inline-block;width:10px;margin-left:-10px;color:var(--text-dim);content:""}summary.tree-fold__head:before{content:"▸"}details[open]>summary.tree-fold__head:before{content:"▾"}.tree-fold__body{margin-left:0}.tree-fold--others .tree-fold__head{color:var(--text-dim);font-family:system-ui,sans-serif;font-size:.8rem}.tree-empty{color:var(--text-dim)}.tree-hint{margin:0;color:var(--text-dim);font-size:.8rem}.study-comment-editor{display:flex;flex-direction:column;gap:5px;padding:12px;background:var(--card-nested-bg);border:1px solid var(--border);border-radius:8px}.study-comment-editor textarea{width:100%;min-height:64px;padding:7px 9px;resize:vertical;background:var(--panel-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font:inherit;font-size:.85rem}.study-comment-editor textarea:focus{outline:none;border-color:var(--primary)}.study-keyboard-help-btn{width:32px;height:32px;padding:0;border-radius:50%;font-size:1rem;line-height:1}.editor-tips{margin-bottom:16px;padding:14px 18px;background:color-mix(in srgb,var(--primary) 7%,var(--card-nested-bg));border:1px solid color-mix(in srgb,var(--primary) 35%,var(--border));border-radius:10px;color:var(--text);font-size:.85rem;line-height:1.45}:root.tips-on:not(.focus-mode) .study-editor--edit:has(>.editor-tips:not([hidden]))>.study-grid{opacity:.4;filter:grayscale(1);pointer-events:none;-webkit-user-select:none;user-select:none;transition:opacity .2s,filter .2s}.tip-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px;margin-top:12px;padding-top:12px;border-top:1px solid color-mix(in srgb,var(--primary) 25%,var(--border))}.tip-footer__note{flex:1 1 320px;margin:0;color:var(--text-dim);font-size:.82rem}.tip-footer__key{display:inline-block;min-width:1.4em;padding:0 4px;border:1px solid var(--border);border-radius:4px;font-style:normal;font-weight:700;text-align:center}.tip-footer__actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}.tip-footer__hide{padding:10px 22px;font-size:1rem}.editor-tips__list{margin:0;padding:0;list-style:none;columns:340px 3;column-gap:28px}.editor-tips__row{display:flex;align-items:baseline;gap:8px;margin-bottom:7px;break-inside:avoid}.focus-mode .editor-tips{display:none}.editor-tips__icons{display:inline-flex;flex:none;gap:3px}.tips-icon{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 4px;border:1px solid var(--border);border-radius:5px;background:var(--panel-bg);color:var(--text-strong);font-size:.78rem;line-height:1;white-space:nowrap;transform:translateY(5px)}.tips-icon svg{width:14px;height:14px}.study-keyboard-help{max-height:40vh;overflow-y:auto;padding:12px 14px;background:var(--card-nested-bg);border:1px solid var(--border);border-radius:8px;color:var(--text);box-shadow:0 8px 24px var(--shadow)}.study-keyboard-help__title{margin:0 0 8px;color:var(--text-strong);font-size:.85rem;font-weight:600}.study-keyboard-help__intro{margin:0 0 10px;color:var(--text-dim);font-size:.82rem;line-height:1.4}.study-keyboard-help ul{display:grid;gap:6px;margin:0;padding:0;list-style:none;font-size:.82rem}.study-keyboard-help li{display:flex;align-items:center;gap:6px}.study-keyboard-help kbd{min-width:28px;padding:2px 5px;background:var(--panel-bg);border:1px solid var(--border);border-radius:4px;color:var(--text-strong);font:inherit;text-align:center}.study-keyboard-help[hidden]{display:none}.study-actions{display:flex;gap:8px}.study-actions .study-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;font-size:1.15rem}.analysis-label{display:inline-flex;align-items:center}.analysis-label:before{margin-right:6px;font-size:1.1rem}.btn:disabled{opacity:.4;cursor:not-allowed}.study-card--explorer,.study-card--engine{display:flex;flex-direction:column}.analysis-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:10px;font-size:.9rem;min-height:28px}.analysis-header__settings{display:flex;flex-wrap:wrap;gap:8px}.explorer-toggle{display:flex;align-items:center;gap:6px;color:var(--text);cursor:pointer;white-space:nowrap}.analysis-header select,.analysis-header__settings select{background:var(--panel-bg);border:1px solid var(--border);color:var(--text);border-radius:4px;padding:4px 8px;font-size:.85rem}.analysis-header select:disabled,.analysis-header__settings select:disabled{opacity:.4}.speed-checkboxes{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:10px}.speed-checkbox{display:flex;align-items:center;gap:4px;color:var(--text-dim);font-size:.8rem;cursor:pointer}.speed-checkbox:has(input:disabled){opacity:.4;cursor:not-allowed}.engine-eval{color:var(--text-dim);font-family:Courier New,monospace;font-size:.85rem}.engine-panel{display:flex;flex-direction:column;gap:2px;margin-top:6px}.engine-line{display:grid;grid-template-columns:10px 1fr 56px;align-items:center;gap:8px;width:100%;padding:4px 8px;background:var(--panel-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font:inherit;text-align:left;cursor:pointer}.engine-line:hover{border-color:var(--primary)}.engine-line__dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.engine-line__san{font-weight:600;color:var(--text-strong);font-size:.85rem}.engine-line__score{text-align:right;color:var(--text-dim);font-family:Courier New,monospace;font-size:.8rem}.explorer-header{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px;color:var(--text-dim);font-size:.8rem}.explorer-opening{color:var(--text);font-weight:600}.explorer-fetched-at{white-space:nowrap;cursor:help}.explorer-rows{display:flex;flex-direction:column;gap:2px}.explorer-rows--scroll{overflow-y:auto;overscroll-behavior:contain}.explorer-row{display:grid;grid-template-columns:56px 1fr 92px;align-items:center;gap:10px;width:100%;padding:6px 8px;background:var(--panel-bg);border:1px solid var(--border);border-radius:4px;color:var(--text);font:inherit;text-align:left;cursor:pointer}.explorer-row:hover{border-color:var(--primary)}.explorer-row__san{font-weight:600;color:var(--text-strong)}.explorer-row__bar-wrap{display:flex;flex-direction:column;gap:3px}.explorer-row__bar{display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--border)}.explorer-row__white{background:#e8e8e8}.explorer-row__draws{background:#8a8a8a}.explorer-row__black{background:#3a3a3a}.explorer-row__pct{display:flex;justify-content:space-between;font-size:.7rem;font-family:Courier New,monospace}.explorer-row__pct-white{color:var(--pct-white)}.explorer-row__pct-draws{color:var(--text-dim)}.explorer-row__pct-black{color:var(--pct-black)}.explorer-row__games{text-align:right;color:var(--text-dim);font-size:.85rem}.explorer-row__share{display:inline-block;min-width:38px;margin-left:6px;color:var(--text);font-weight:600}.explorer-empty{margin:0;color:var(--text-dim);font-size:.85rem}.study-save-status{flex:1;margin:0;color:var(--text-dim);font-size:.82rem;text-align:left}.study-save-status--error{color:var(--bad)}.profile-delete{margin-top:40px}.profile-delete .btn{margin-right:12px}.btn-danger{background:#7e2424;color:#fff}.btn-danger:hover{background:#a02d2d}.error-page{max-width:480px;margin:0 auto;padding:32px 28px;background:var(--panel-bg);border:1px solid var(--border);border-left:4px solid var(--bad);border-radius:8px;text-align:center}.error-page__title{margin:0 0 12px;color:var(--text-strong);font-size:1.4rem}.error-page__message{margin:0 0 24px;color:var(--text);line-height:1.5}.error-page__actions{display:flex;justify-content:center;gap:12px}.doc-main{max-width:900px;padding-top:40px}.doc-intro{max-width:680px;margin:-12px 0 20px;color:var(--text-dim);font-size:1.05rem}.doc-section{padding:22px 24px;margin:16px 0;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px}.doc-section h2,.doc-main h2{margin:0 0 10px;color:var(--text-strong);font-size:1.2rem}.doc-section h3,.doc-main h3{margin:18px 0 6px;color:var(--text-strong);font-size:1rem}.doc-section p,.doc-section li,.doc-main>section p,.doc-main>section li{line-height:1.65}.doc-section ul,.doc-section ol,.doc-main>section ul,.doc-main>section ol{padding-left:22px}.doc-section a,.doc-main a{color:var(--primary-hover)}.doc-link{display:inline-flex;gap:8px;margin-top:8px;font-weight:600;text-decoration:none}.doc-link:hover,.doc-main nav a:hover{color:var(--text-strong)}.doc-code{overflow-x:auto;padding:12px 14px;background:var(--card-nested-bg);border:1px solid var(--border);border-radius:6px;font-size:.82rem;line-height:1.45}.doc-callout,.doc-main .callout{padding:12px 14px;border-left:3px solid var(--primary);background:var(--card-nested-bg)}.doc-main>nav[aria-label=Documentation]{display:flex;gap:18px;padding:12px 16px;margin-bottom:16px;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px}.doc-main>nav a{color:var(--text-dim);text-decoration:none}.doc-main>nav a[aria-current=page]{color:var(--text-strong)}.doc-main>section{padding:22px 24px;margin:16px 0;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px}.doc-main>section h2{margin-bottom:8px;color:var(--text-strong)}.doc-main code{padding:1px 4px;border-radius:3px;background:var(--header-bg);color:var(--text-strong);font-size:.9em}.doc-main footer{display:flex;justify-content:space-between;gap:12px;padding-top:20px;color:var(--text-dim);font-size:.85rem}@media (max-width: 640px){.doc-main{padding:28px 16px}.doc-section{padding:18px 16px}.doc-main>section{padding:18px 16px}}.practice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.knowledge-ring{flex:none;align-self:center;width:26px;height:26px;margin:-4px -2px -4px 0;border-radius:50%;background:radial-gradient(closest-side,var(--panel-bg) 70%,transparent 72%),conic-gradient(var(--good) calc(var(--pct) * 1%),var(--border) 0)}.practice-card__counts{display:flex;gap:6px;margin:8px 0}.practice-badge{padding:2px 8px;border-radius:10px;font-size:.75rem;white-space:nowrap}.practice-badge--due{color:var(--warn);background:#e0a53f1f}.practice-badge--new{color:var(--primary-hover);background:#4aa0f01f}.practice-card__status{margin:auto 0 0;color:var(--text-dim);font-size:.8rem}.practice-card--unavailable{opacity:.72}.practice-card{position:relative}.practice-card__practice:after{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;content:""}.practice-card__actions{display:flex;justify-content:center;gap:10px;margin-top:auto}.practice-card__action{display:inline-flex;align-items:center;justify-content:center;width:44px;height:32px;border:1px solid var(--border);border-radius:6px;background:var(--card-nested-bg);color:var(--text);font-size:1.15rem;text-decoration:none}.practice-card__action:hover{border-color:var(--primary);color:var(--primary)}.practice-card__bullet{position:relative;z-index:1}.bullet-title-tag{margin-left:6px;padding:2px 9px;border-radius:999px;background:var(--warn);color:#fff;font-size:.8rem;vertical-align:middle}.bullet-clock{position:relative;margin-left:auto;overflow:hidden;padding:1px 12px 5px;background:var(--card-nested-bg);border-radius:6px;color:var(--text-dim);transition:background .15s,color .15s}.bullet-clock__time{font-family:Roboto Mono,DejaVu Sans Mono,Menlo,Consolas,monospace;font-size:2.2rem;font-weight:500;line-height:1.15;font-variant-numeric:tabular-nums;letter-spacing:.02em}.bullet-clock__sep{transition:opacity .1s}.bullet-clock__sep--dim{opacity:.4}.bullet-clock__tenths{font-size:.6em}.bullet-clock__bar{position:absolute;right:0;bottom:0;left:0;height:3px}.bullet-clock__fill{width:100%;height:100%;background:var(--text-dim);opacity:.5}.bullet-clock--running{background:color-mix(in srgb,var(--good) 30%,var(--panel-bg));color:var(--text-strong)}.bullet-clock--running .bullet-clock__fill{background:var(--good);opacity:1}.bullet-clock--low{background:color-mix(in srgb,var(--bad) 35%,var(--panel-bg));color:var(--text-strong)}.bullet-clock--low .bullet-clock__fill{background:var(--bad);opacity:1}.bullet-info{display:flex;flex-direction:column;gap:10px;color:var(--text-dim);font-size:.88rem}.bullet-info p{margin:0}.bullet-info__btn{align-self:flex-start}.bullet-board-col{display:flex;flex-direction:column;min-width:0}.bullet-board-col .practice-session__tools{margin-bottom:8px}.bullet-controls{display:flex;align-items:center;gap:12px;margin-top:10px}.bullet-analysis-link{align-self:center;font-size:.85rem}.bullet-status{margin-top:8px;font-size:1rem}.bullet-side-col{display:flex;flex-direction:column;gap:12px;min-width:0}.bullet-side-col .practice-history:empty{display:none}.bullet-start kbd{margin-left:6px;font-size:.75rem;opacity:.8}.bullet-options-btn{display:inline-flex;flex:0 0 34px;align-items:center;justify-content:center;height:34px;padding:0;background:var(--panel-bg);border:1px solid var(--border);border-radius:4px;color:var(--text-dim);cursor:pointer}.bullet-options-btn:hover,.bullet-options-btn[aria-expanded=true]{border-color:var(--primary);color:var(--primary)}.bullet-options{display:flex;flex-direction:column;gap:10px;margin-bottom:10px;padding:10px 12px;background:var(--card-nested-bg);border:1px solid var(--border);border-radius:8px}.bullet-options .study-switch{align-self:flex-start;padding:0}.bullet-options__lines{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;border:0;font-size:.85rem}.bullet-options__lines legend{margin-bottom:4px;padding:0;color:var(--text-dim);font-size:.8rem}.bullet-options__hint{margin-left:6px;color:var(--text-dim);font-size:.78rem}.bullet-cycle{color:var(--text-dim);font-size:.85rem;white-space:nowrap}.bullet-end-info{align-self:center;margin-top:4px;color:var(--text);font-size:.85rem;text-align:center}.bullet-end-info p{margin:2px 0}.bullet-end-info--done{margin:-8px 0 16px}.bullet-done__restart{margin:12px 0 0;color:var(--text-dim);font-size:.85rem}.bullet-stats{margin-left:auto;color:var(--text-dim);font-size:.85rem;white-space:nowrap}.bullet-stats strong{color:var(--text-strong);font-size:1rem}.bullet-done{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;background:#0000008c;animation:bullet-done-fade .2s ease-out}.bullet-done__box{position:relative;z-index:1;width:min(380px,100%);padding:28px 24px 22px;background:var(--panel-bg);border:1px solid var(--border);border-radius:14px;box-shadow:0 12px 40px var(--shadow);text-align:center;animation:bullet-done-pop .45s cubic-bezier(.2,1.4,.4,1)}.bullet-done__title{margin:0 0 8px;color:var(--good);font-size:1.6rem}.bullet-done__detail{margin:0 0 20px;color:var(--text)}.bullet-done__actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.bullet-done__confetti{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none}.bullet-done__confetti span{position:absolute;top:-20px;left:var(--x);width:9px;height:14px;border-radius:2px;background:hsl(var(--hue) 85% 60%);animation:bullet-confetti var(--duration) cubic-bezier(.3,.6,.6,1) var(--delay) both}.bullet-done__confetti span:nth-child(3n){width:7px;height:7px;border-radius:50%}@keyframes bullet-confetti{0%{transform:translate(0) rotate(0);opacity:1}80%{opacity:1}to{transform:translate(var(--drift),105vh) rotate(var(--spin));opacity:0}}@keyframes bullet-done-pop{0%{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}@keyframes bullet-done-fade{0%{opacity:0}}@media (prefers-reduced-motion: reduce){.bullet-done,.bullet-done__box{animation:none}.bullet-done__confetti{display:none}}@media (max-width: 640px){.study-card--board{margin:0 -16px;padding:0;background:none;border:none;border-radius:0;overflow:hidden}.study-card--board:has(>.eval-gauge:not([hidden])){padding-left:14px}.study-card--board .eval-gauge{top:calc(var(--material-row, 0px) + var(--material-gap, 0px));bottom:calc(var(--material-row, 0px) + var(--material-gap, 0px));left:1px}.study-card--board .material{padding-inline:8px}html:has(.practice-session){overflow-x:hidden}}.practice-overview{display:grid;grid-template-columns:max-content minmax(220px,1fr);gap:16px;margin-bottom:40px}.activity,.practice-stats{display:flex;flex-direction:column;min-width:0}.activity__title,.practice-stats__title{margin:0 0 8px;color:var(--text);font-size:1rem;font-weight:400}.activity__box,.practice-stats__box{flex:1;padding:12px 16px 10px;background:var(--panel-bg);border:1px solid var(--border);border-radius:6px}.activity__box{display:flex;flex-direction:column;justify-content:center}.activity__scroll{overflow-x:auto}.activity__calendar{display:grid;grid-template-columns:auto repeat(53,10px);grid-template-rows:auto repeat(7,10px);gap:3px;width:max-content;font-size:.75rem;line-height:1;color:var(--text)}.activity__month{grid-row:1;line-height:1.3;padding-bottom:2px;white-space:nowrap}.activity__weekday{grid-column:1;align-self:center;height:0;line-height:0;padding-right:6px}.activity__day{display:inline-block;width:10px;height:10px;border-radius:2px}.activity__day--0{background:var(--card-nested-bg);outline:1px solid var(--border);outline-offset:-1px}.activity__day--1{background:color-mix(in srgb,var(--good) 30%,var(--card-nested-bg))}.activity__day--2{background:color-mix(in srgb,var(--good) 55%,var(--card-nested-bg))}.activity__day--3{background:color-mix(in srgb,var(--good) 78%,var(--card-nested-bg))}.activity__day--4{background:var(--good)}.activity__legend{display:flex;align-items:center;justify-content:flex-end;gap:3px;margin-top:8px;font-size:.75rem;color:var(--text-dim)}.activity__legend .activity__day{margin:0 1px}.practice-stats__box{display:flex;flex-direction:column;gap:14px}.practice-stats__heading{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 4px;color:var(--text-dim);font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em}.practice-stats__unit{font-weight:400;text-transform:none;letter-spacing:0}.practice-stats__empty{margin:0;color:var(--text-dim);font-size:.8rem}.rank-list{margin:0;padding:0;list-style:none}.rank-list__row{display:grid;grid-template-columns:12px 9px minmax(0,1fr) auto;align-items:center;column-gap:7px;padding:3px 0;font-size:.8rem}.rank-list__rank{color:var(--text-dim);font-size:.72rem;font-variant-numeric:tabular-nums}.rank-list__side{width:9px;height:9px;border-radius:50%;border:1px solid var(--text-dim)}.rank-list__side--white{background:var(--pawn-white)}.rank-list__side--black{background:var(--pawn-black)}.rank-list__name{overflow:hidden;color:var(--primary);text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.rank-list__name:hover{color:var(--primary-hover)}.rank-list__value{color:var(--text-strong);font-weight:600;font-variant-numeric:tabular-nums}@media (max-width: 1000px){.practice-overview{grid-template-columns:minmax(0,1fr)}}.practice-session__header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}.practice-session__header .page-title{margin:0}.practice-session__header-right{display:flex;align-items:center;gap:14px}.practice-knowledge-badge{display:flex;align-items:baseline;gap:6px;color:var(--text-dim);font-size:.85rem;white-space:nowrap}.practice-knowledge-badge strong{color:var(--primary);font-size:1.15rem}.practice-session__tools{display:flex;align-items:center;gap:10px;margin-bottom:12px}.practice-session__tools .board-focus-btn{flex:0 0 34px;height:34px}.focus-mode .practice-session__header{display:none}.focus-mode .site-main:has(>.practice-session){max-width:1400px;padding-top:12px;padding-bottom:12px}@media (min-width: 1001px){.focus-mode .practice-layout{grid-template-columns:minmax(0,min(calc(100vh - 70px),calc((100% - 20px) * 2 / 3))) minmax(0,1fr)}.focus-mode .bullet .practice-layout{grid-template-columns:minmax(0,min(calc(100vh - 140px),calc((100% - 20px) * 2 / 3))) minmax(0,1fr)}}.practice-layout{display:grid;grid-template-columns:2fr 1fr;gap:20px;align-items:start}@media (min-width: 1001px){.practice-layout{grid-template-columns:minmax(0,min(calc(100vh - 225px),calc((100% - 20px) * 2 / 3))) minmax(0,1fr)}.bullet .practice-layout{grid-template-columns:minmax(0,min(calc(100vh - 278px),calc((100% - 20px) * 2 / 3))) minmax(0,1fr)}.site-main:has(>.practice-session){padding-bottom:12px}}.practice-panel{display:flex;flex-direction:column;gap:12px}.practice-session [hidden]{display:none!important}.practice-show-answer{align-self:flex-start}.practice-save-warning{margin:0;padding:8px 10px;border:1px solid var(--bad);border-radius:6px;color:var(--bad);font-size:.85rem}.engine-line--readonly{cursor:default}.engine-line--readonly:hover{border-color:var(--border)}.practice-progress{margin:0;color:var(--text-dim);font-size:.85rem}.practice-prompt{margin:0;color:var(--text-strong);font-size:1.3rem;font-weight:600;min-height:1.6em}.practice-prompt--correct{color:var(--good)}.practice-prompt--incorrect{color:var(--bad)}.practice-feedback{padding:12px 14px;border-radius:8px;background:var(--panel-bg);border:1px solid var(--border)}.practice-feedback p{margin:0}.practice-feedback--summary{color:var(--text)}.practice-feedback--summary p{margin-bottom:8px}.practice-feedback--summary .btn{margin-top:4px}.practice-celebration{position:relative;overflow:hidden;text-align:center;border-color:#e0c93f}.practice-celebration__badge{font-size:2.4rem;line-height:1;animation:practice-celebration-pop .6s cubic-bezier(.34,1.56,.64,1)}.practice-celebration__title{margin:6px 0 10px!important;color:var(--text-strong);font-size:1.15rem;font-weight:700}.practice-celebration__actions{display:flex;justify-content:center;gap:10px;margin-top:4px}.practice-confetti-field{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none}.practice-confetti{position:absolute;top:-10px;width:7px;height:7px;border-radius:1px;opacity:.9;animation-name:practice-confetti-fall;animation-timing-function:ease-in;animation-fill-mode:forwards}@keyframes practice-celebration-pop{0%{transform:scale(.3);opacity:0}60%{transform:scale(1.15);opacity:1}to{transform:scale(1)}}@keyframes practice-confetti-fall{0%{transform:translateY(0) rotate(0);opacity:1}to{transform:translateY(160px) rotate(360deg);opacity:0}}@media (prefers-reduced-motion: reduce){.practice-celebration__badge{animation:none}.practice-confetti-field{display:none}}.practice-history{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;max-height:60vh;overflow-y:auto}.practice-history__item{display:flex;align-items:baseline;gap:8px;padding:6px 10px;border-radius:6px;background:var(--panel-bg);border:1px solid var(--border);font-size:.85rem}.practice-history__mark{flex-shrink:0;font-weight:700}.practice-history__item--correct .practice-history__mark{color:var(--good)}.practice-history__item--incorrect .practice-history__mark{color:var(--bad)}.practice-history__san{flex:1;min-width:0;overflow-wrap:anywhere;color:var(--text);font-family:Courier New,monospace}.practice-history__expected{color:var(--text-strong)}.practice-history__analysis{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:20px;height:20px;color:var(--text-dim);font-size:.95rem;text-decoration:none}.practice-history__analysis:hover{color:var(--text-strong)}.practice-history__knowledge{flex-shrink:0;color:var(--text-dim)}@media (max-width: 720px){.profile-study-row{align-items:flex-start;flex-direction:column}.profile-study-row__practice{width:100%;justify-content:space-between}.study-grid{grid-template-columns:1fr}.study-card--moves{aspect-ratio:1;min-height:420px}.stat-page,.calc-settings,.stat-result{padding:14px}.practice-layout{grid-template-columns:1fr}}.community-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:20px 0 34px}.community-stat{padding:14px 16px;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px}.community-stat span{display:block;color:var(--text-dim);font-size:.8rem}.community-stat strong{color:var(--text-strong);font-size:1.5rem}.community-note{margin:0 0 14px;color:var(--text-dim);font-size:.85rem}.community-message{margin-bottom:12px;padding:10px 14px;border:1px solid var(--border);border-radius:6px;background:var(--panel-bg)}.community-table-wrap{overflow-x:auto;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px}.community-table{width:100%;border-collapse:collapse}.community-table th,.community-table td{padding:10px 14px;text-align:left;vertical-align:middle}.community-table th{color:var(--text-dim);font-size:.8rem;font-weight:600;border-bottom:1px solid var(--border)}.community-table tbody tr+tr td{border-top:1px solid var(--border)}.community-rank{width:40px;color:var(--text-dim)}.community-sub,.community-settings{color:var(--text-dim);font-size:.8rem}.community-score{color:var(--primary);font-size:1.05rem;font-weight:700;white-space:nowrap}.community-action{text-align:right;white-space:nowrap}.community-yours{color:var(--text-dim);font-size:.85rem}.browse-description{line-height:1.4}.study-share{display:inline-flex;align-items:center;gap:6px;margin-left:auto;margin-right:12px;color:var(--text);font-size:.9rem;cursor:pointer}.community-owner{color:var(--primary);text-decoration:none}.community-anonymous{color:var(--text-dim);font-style:italic}.profile-anonymous{margin:0 12px 0 0}.profile-option--unavailable{color:var(--text-dim);opacity:.6;cursor:not-allowed}.community-owner:hover{color:var(--primary-hover);text-decoration:underline}.lichess-link{display:inline-flex;vertical-align:middle;margin-left:6px;color:var(--text-strong);text-decoration:none}.lichess-link__icon{display:inline-block;width:24px;height:24px;background-color:currentColor;-webkit-mask-image:url(/lichess-logo.svg);mask-image:url(/lichess-logo.svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}.lichess-link:hover{color:var(--primary-hover)}.lichess-link:hover .lichess-link__icon{background-color:var(--primary-hover)}.explorer-player{width:9.5rem;padding:4px 8px;border:1px solid var(--border);border-radius:4px;background:var(--panel-bg);color:var(--text-strong);font:inherit;font-size:.85rem}.explorer-player[hidden]{display:none}.menu-toggle{display:none;flex-shrink:0;width:38px;height:38px;padding:0;border:1px solid var(--border);border-radius:6px;background:transparent;color:var(--text-strong);font-size:1.2rem;line-height:1;cursor:pointer}@media (max-width: 980px){.site-header{position:relative}.site-header__inner{gap:10px;padding:0 12px}.site-title{font-size:1.4rem;gap:.5rem}.site-title .site-icon{height:32px;width:32px}.menu-toggle{display:inline-flex;align-items:center;justify-content:center}.site-nav{display:none;position:absolute;top:100%;left:0;right:0;z-index:50;flex-direction:column;flex-wrap:nowrap;gap:0;padding:4px 16px 8px;background:var(--header-bg);border-bottom:1px solid var(--border);box-shadow:0 8px 16px var(--shadow)}.site-nav--open{display:flex}.site-nav a{padding:13px 0;font-size:1.05rem;border-top:1px solid var(--border)}.site-nav a:first-child{border-top:0}.theme-toggle{margin-left:auto}.source-link+.theme-toggle{margin-left:-4px}.theme-toggle+.tips-toggle{margin-left:-4px}.username{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--border);border-radius:6px}.username__name{display:none}.username__icon{display:block}}.leaderboards{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;margin-top:24px}.leaderboard .opening-groups{grid-template-columns:minmax(0,1fr)}.leaderboard .opening-groups{gap:28px}.leaderboard .opening-group h4{margin-bottom:10px;padding-bottom:6px;border-bottom-width:1px;font-size:.95rem}.leaderboard .empty-state{padding:18px 0}.leaderboard>.profile-subtitle{margin-bottom:18px}.leaderboards-heading{flex-wrap:wrap;align-items:center;row-gap:8px}.leaderboards-heading h2{margin:0}.leaderboards-options{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}.source-switch{display:inline-flex;flex:none;align-items:center;gap:0;font-size:.82rem}.source-switch__label{margin-right:8px;color:var(--text-dim)}.source-switch button{padding:4px 12px;background:var(--panel-bg);border:1px solid var(--border);color:var(--text);font:inherit;cursor:pointer}.source-switch button:first-of-type{border-radius:6px 0 0 6px}.source-switch button+button{margin-left:-1px}.source-switch button:last-of-type{border-radius:0 6px 6px 0}.source-switch button[aria-pressed=true]{position:relative;background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}.source-switch[hidden]{display:none}.beta-tag{display:inline-block;margin-left:6px;padding:1px 8px;border:1px solid var(--warn);border-radius:999px;color:var(--warn);font-size:.75rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.community-stat--link{color:inherit;text-decoration:none}.community-stat--link:hover{border-color:var(--primary)}.community-stat--link strong{color:var(--primary)}#player-main{padding-top:24px}.opening-title{cursor:default}.opening-link{color:inherit;text-decoration:none}.opening-link:hover strong{color:var(--primary-hover);text-decoration:underline}.opening-comment{margin:10px 0 0;padding:8px 10px;border-left:3px solid var(--primary);background:var(--card-nested-bg);border-radius:0 4px 4px 0;white-space:pre-wrap}.opening-import-message{color:var(--text-dim);font-size:.9rem}.doc-note{color:var(--text-dim);font-size:.85rem}.login--good{color:var(--good);font-weight:600}.login--good:before{content:"✓ "}.login--bad{color:var(--bad-soft);font-weight:600}.login--bad:before{content:"✗ "}.login--ok{color:var(--warn);font-weight:600}.login--ok:before{content:"~ "}.community-table .tool-runs{color:var(--text-dim);font-size:.8rem}.community-table a{text-decoration:none}.community-table a:hover{text-decoration:underline}.community-table .has-more{cursor:help}.tool-table th,.tool-table td{padding:9px 12px;font-size:.7rem}.tool-table .tool-runs{font-size:.7rem}.tool-table td:first-child>a,.tool-table td:first-child>strong,.tool-table td:first-child>a>strong{font-size:.875rem}.tool-table .has-more .more{display:none;position:fixed;z-index:20;width:245px;padding:9px 10px;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px;box-shadow:0 6px 20px var(--shadow);color:var(--text);font-size:.7rem;font-weight:400}.tool-table .has-more .more.open{display:block}.tool-table .cell-list{margin:0;padding-left:14px}.tool-table .cell-list li.has-more{text-decoration:underline dotted;text-underline-offset:3px}.tool-table .cell-list li.has-more:hover,.tool-table .cell-list li.has-more:focus{color:var(--primary-hover);outline:none}.tool-table-bar{display:flex;justify-content:flex-end;padding:6px 8px 0}.tool-table-fullscreen{padding:3px 10px;font-size:.75rem}.tool-table-wrap:fullscreen,.tool-table-wrap.is-fullscreen{overflow:auto;padding:8px 16px 16px;border:none;border-radius:0;background:var(--panel-bg)}.tool-table-wrap.is-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100}.tool-table .tool-source{font-size:.7rem}.tool-table .tool-runs a{color:inherit}.tool-table .price--free{color:var(--good)}.tool-table .price--fee{color:var(--bad-soft)}.tool-table .price.has-more,.tool-table .tool-runs.has-more{text-decoration:underline dotted;text-underline-offset:3px}.tool-table td:first-child{min-width:190px}.landing{display:grid;gap:40px}.landing__hero{max-width:720px;margin:0 auto;text-align:center}.landing__hero h1{margin:0 0 16px;color:var(--text-strong);font-size:clamp(1.6rem,4vw,2.4rem);line-height:1.2}.landing__pitch{margin:0 0 28px;font-size:1.1rem;line-height:1.5}.landing__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.landing__cta{padding:10px 20px;font-size:1rem}.landing__note{margin:16px 0 0;color:var(--text-dim);font-size:.85rem}.landing__shot{display:block;width:100%;height:auto;border:1px solid var(--border);border-radius:8px;box-shadow:0 6px 24px #0000001f}.landing__zoom{display:block;width:100%;padding:0;background:none;border:none;cursor:zoom-in}.landing__zoom:hover .landing__shot,.landing__zoom:focus-visible .landing__shot{border-color:var(--primary)}.tut-page{max-width:980px}.tut-page a{color:var(--primary-hover)}.tut-intro{margin:-8px 0 16px;color:var(--text-dim)}.tut-toc ol{display:flex;flex-wrap:wrap;gap:6px 10px;margin:0 0 8px;padding:0;list-style:none;counter-reset:tut-toc}.tut-toc li{counter-increment:tut-toc}.tut-toc a{display:inline-block;padding:4px 12px;border:1px solid var(--border);border-radius:999px;background:var(--panel-bg);color:var(--text);text-decoration:none}.tut-toc a:before{margin-right:6px;color:var(--text-dim);content:counter(tut-toc) "."}.tut-toc a:hover{border-color:var(--primary);color:var(--primary)}.tut-section{margin-top:40px;scroll-margin-top:16px}.tut-section h2{margin:0 0 6px}.tut-section>p{margin:0 0 14px}.tut-figure{margin:0}.tut-shot{position:relative;display:block;width:100%;padding:0;background:none;border:none;cursor:zoom-in}.tut-shot:hover .landing__shot,.tut-shot:focus-visible .landing__shot{border-color:var(--primary)}.tut-marks{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.tut-mark__halo{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round}.tut-mark__arrow{fill:none;stroke:#f76707;stroke-linecap:round;stroke-linejoin:round}.tut-mark__dot{fill:#f76707;stroke:#fff}.tut-mark__n{fill:#fff;font-family:system-ui,sans-serif;font-weight:700;text-anchor:middle;dominant-baseline:central}.tut-legend{margin:12px 0 0;padding:0;list-style:none;counter-reset:tut-mark}.tut-legend li{position:relative;margin:6px 0;padding-left:32px;counter-increment:tut-mark}.tut-legend li:before{position:absolute;top:0;left:0;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#f76707;color:#fff;font:700 12px system-ui,sans-serif;content:counter(tut-mark)}.tut-more{margin-top:40px;color:var(--text-dim)}.tut-shot--zoomed{width:min(100%,1600px);margin:auto;cursor:zoom-out}.landing__lightbox .tut-shot--zoomed img{width:100%;max-width:none;max-height:none}.landing__lightbox{max-width:100vw;max-height:100vh;width:100vw;height:100vh;margin:0;padding:24px;overflow:auto;background:transparent;border:none;cursor:zoom-out}.landing__lightbox::backdrop{background:#000000d1}.landing__lightbox img{display:block;width:auto;max-width:min(100%,1400px);height:auto;max-height:calc(100vh - 48px);margin:auto;border-radius:8px;box-shadow:0 10px 40px #00000080}@media (max-width: 760px){.landing__lightbox img{width:900px;max-width:none;max-height:none}}.landing__lightbox-close{position:fixed;top:12px;right:16px;width:40px;height:40px;background:#00000080;border:1px solid rgba(255,255,255,.4);border-radius:50%;color:#fff;font-size:1.6rem;line-height:1;cursor:pointer}.landing__shot--dark,:root[data-theme=dark] .landing__shot--light{display:none}:root[data-theme=dark] .landing__shot--dark{display:block}.landing__hero-shot{max-width:1040px;margin:0 auto}.landing__hero-shot figcaption{margin-top:10px;color:var(--text-dim);font-size:.9rem;text-align:center}.landing__features{display:grid;gap:48px;max-width:1040px;margin:0 auto}.landing__feature{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:center;gap:32px}.landing__feature:nth-child(2n) .landing__feature-text{order:2}.landing__feature h2{margin:0 0 8px;color:var(--text-strong);font-size:1.3rem}.landing__feature p{margin:0;font-size:1.02rem;line-height:1.55}@media (max-width: 760px){.landing__feature{grid-template-columns:1fr;gap:16px}.landing__feature:nth-child(2n) .landing__feature-text{order:0}}.source-lirep{color:var(--lirep);font-weight:600;text-decoration:none}.source-lirep:hover{text-decoration:underline}.source-lichess{color:var(--good);font-weight:600;text-decoration:none}.source-lichess:hover{text-decoration:underline}.forum-title{margin:0 0 4px;color:var(--text-strong);font-size:1.5rem}.forum-filters{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0 12px}.forum-filter{padding:4px 12px;border:1px solid var(--border);border-radius:999px;color:var(--text);font-size:.88rem;text-decoration:none}.forum-filter:hover{border-color:var(--primary)}.forum-filter--active{background:var(--primary);border-color:var(--primary);color:#fff}.forum-topic-link{color:inherit;text-decoration:none}.forum-topic-link:hover strong{color:var(--primary-hover);text-decoration:underline}.forum-count{text-align:center}.forum-category{display:inline-block;padding:2px 8px;border-radius:999px;background:var(--card-nested-bg);color:var(--text-dim);font-size:.78rem;font-weight:600;white-space:nowrap}.forum-category--bug{background:color-mix(in srgb,var(--bad) 15%,transparent);color:var(--bad)}.forum-category--suggestion{background:color-mix(in srgb,var(--good) 15%,transparent);color:var(--good)}.forum-topic-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:16px}.forum-topic-head .forum-title{margin:0}.forum-posts{display:grid;gap:12px;margin-bottom:20px}.forum-post{padding:14px 16px;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px}.forum-post__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:8px;color:var(--text-strong)}.forum-post__date{color:var(--text-dim);font-size:.82rem}.forum-post__delete{margin-left:auto;padding:0;background:none;border:none;color:var(--text-dim);font:inherit;font-size:.82rem;cursor:pointer}.forum-post__delete:hover{color:var(--bad);text-decoration:underline}.forum-post__body{line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.forum-author{color:inherit;text-decoration:none}.forum-author:hover{color:var(--primary-hover);text-decoration:underline}.forum-post__body a,.forum-note a{color:var(--primary)}.forum-post__body a:hover,.forum-note a:hover{color:var(--primary-hover)}.forum-form{display:grid;gap:10px;margin:16px 0;padding:14px 16px;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px}.forum-form[hidden]{display:none}.forum-form__row{display:flex;gap:8px}.forum-form__row input{flex:1;min-width:0}.forum-form input,.forum-form select,.forum-form textarea{padding:8px 10px;background:var(--card-nested-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font:inherit}.forum-form textarea{resize:vertical}.forum-form__actions{display:flex;align-items:center;gap:12px}.forum-form__status{color:var(--bad);font-size:.88rem}.forum-note{margin:0;color:var(--text-dim);font-size:.82rem}@media (max-width: 640px){.forum-form__row{flex-direction:column}.forum-table th:nth-child(2),.forum-table td:nth-child(2),.forum-table th:nth-child(4),.forum-table td:nth-child(4){display:none}}.top-players{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.top-players__column{padding:14px 16px;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px}.top-players__speed{display:flex;align-items:center;gap:8px;margin:0 0 10px;color:var(--text-strong);font-size:1rem}.top-players__speed [data-icon]:before{color:var(--primary);font-size:1.3rem}.top-players__list{display:grid;gap:2px;margin:0;padding:0;list-style:none}.top-players__row{display:flex;align-items:baseline;gap:10px;padding:5px 0;border-top:1px solid var(--border)}.top-players__row:first-child{border-top:none}.top-players__rank{width:1.4em;color:var(--text-dim);font-size:.85rem;text-align:right}.top-players__name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-players__title{color:var(--lirep);font-weight:700}.top-players__rating{color:var(--text-strong);font-variant-numeric:tabular-nums;font-weight:600}@media (max-width: 760px){.top-players{grid-template-columns:1fr}}.study-import{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:24px}.study-import__btn{cursor:pointer}.study-import__status{color:var(--text-dim);font-size:.88rem}.study-import__status--error{color:var(--bad)}.games-page{max-width:1200px;margin:0 auto}.games-page__header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.games-page__actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.games-page__actions .source-switch button[aria-pressed=true]{background:var(--text-dim);border-color:var(--text-dim);color:var(--panel-bg)}.games-page__header .page-title{margin:0}.games-page__sub{margin:4px 0 0;color:var(--text-dim);font-size:.9rem}.games-page__sub a{color:var(--primary);text-decoration:none}.games-page__sub a:hover{text-decoration:underline}.games-add{display:grid;gap:10px;margin-bottom:16px;padding:14px 16px;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px}.games-page [hidden]{display:none}.games-add textarea,.games-add input,.games-add select,.games-menu__section select{padding:8px 10px;background:var(--card-nested-bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font:inherit}.games-add textarea{font-family:Courier New,monospace;font-size:.85rem;resize:vertical}.games-add__row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.games-add__row label,.games-menu__section{display:flex;align-items:center;gap:6px;color:var(--text-dim);font-size:.9rem}.games-status{margin:0;color:var(--text-dim);font-size:.88rem}.games-status--error{color:var(--bad)}.games-section+.games-section{margin-top:28px}.games-section__head{display:flex;align-items:center;gap:8px;margin-bottom:10px}.games-section__head h2{margin:0;color:var(--text-strong);font-size:1.1rem}.games-section__count{color:var(--text-dim);font-size:.85rem}.games-section__empty{margin:0;color:var(--text-dim);font-size:.85rem}.games-tools{display:inline-flex;gap:2px}.games-tools button{width:24px;height:24px;padding:0;background:none;border:1px solid transparent;border-radius:4px;color:var(--text-dim);cursor:pointer}.games-tools button:hover{border-color:var(--border);color:var(--text-strong)}.games-grip{display:inline-flex;flex:none;align-items:center;justify-content:center;width:20px;height:28px;padding:0;background:none;border:none;border-radius:4px;color:var(--text-dim);cursor:grab;opacity:.5}.games-section__head:hover .games-grip,.games-grip:focus-visible{opacity:1}.games-ghost,.studies-ghost{border-radius:8px;outline:2px dashed var(--primary);opacity:.5}.games-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;min-height:12px}.games-card{position:relative;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px}.games-card:hover,.games-card:focus-within{border-color:var(--primary)}.games-card__link{display:grid;gap:4px;padding:8px 10px 10px;color:var(--text);text-decoration:none}.games-card__board{width:100%;aspect-ratio:1 / 1;pointer-events:none}.games-card__player{display:flex;align-items:baseline;gap:6px;min-width:0;font-size:.85rem}.games-card__name{overflow:hidden;color:var(--text-strong);font-weight:600;text-overflow:ellipsis;white-space:nowrap}.games-card__elo{flex:none;color:var(--text-dim);font-size:.78rem}.games-card__score{flex:none;margin-left:auto;color:var(--text-strong);font-weight:700}.games-card__details{overflow:hidden;color:var(--text-dim);font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.games-card__delete{position:absolute;top:-9px;right:-9px;width:22px;height:22px;padding:0;background:var(--panel-bg);border:1px solid var(--border);border-radius:50%;color:var(--text-dim);font-size:.95rem;line-height:1;cursor:pointer;opacity:0}.games-card:hover .games-card__delete,.games-card:focus-within .games-card__delete{opacity:1}.games-card__delete:hover{border-color:var(--bad);color:var(--bad)}.games-grid--loose{min-height:0;margin-bottom:28px}.games-grid--loose:empty{margin-bottom:0}.games-page--dragging .games-grid--loose:empty{min-height:80px;margin-bottom:28px;border:1px dashed var(--border);border-radius:8px}.games-comment-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}#new-section-btn{margin-top:20px}.xs-page{max-width:1200px}.xs-page>section{margin-bottom:36px}.xs-curve-wrap{overflow-x:auto;margin:4px 0 12px}.xs-curve{border-collapse:collapse;font-size:.9rem;font-variant-numeric:tabular-nums}.xs-curve th,.xs-curve td{padding:6px 12px;border:1px solid var(--border);text-align:center;white-space:nowrap}.xs-curve th{color:var(--text-dim);font-weight:600;text-align:left}.xs-intro{margin:0 0 36px;padding:18px 22px;background:var(--panel-bg);border:1px solid var(--border);border-radius:10px;font-size:1.02rem;line-height:1.65}.xs-intro p{margin:0 0 12px}.xs-intro p:last-child{margin-bottom:0}.xs-figure{margin:18px 0 22px;padding:16px;background:var(--panel-bg);border:1px solid var(--border);border-radius:10px}.xs-figure svg{display:block;width:100%;height:auto}.xs-figure figcaption{margin-top:10px;color:var(--text-dim);font-size:.85rem}.xs-figure text{fill:var(--text);font-family:inherit;font-size:15px;dominant-baseline:middle}.xs-own text,.xs-opp text,.xs-value text,.xs-weight,.xs-caption,.xs-bar-label{text-anchor:middle}.xs-own rect{fill:color-mix(in srgb,var(--primary) 16%,var(--panel-bg));stroke:var(--primary);stroke-width:1.5}.xs-own text{font-weight:700}.xs-opp rect{fill:var(--card-nested-bg);stroke:var(--border);stroke-width:1.5}.xs-out rect{stroke-dasharray:5 4;stroke:var(--text-dim)}.xs-ignored rect{stroke-dasharray:5 4;stroke:var(--text-dim);opacity:.6}.xs-figure .xs-ignored text{fill:var(--text-dim);text-decoration:line-through}.xs-value rect{fill:color-mix(in srgb,var(--good) 16%,var(--panel-bg));stroke:var(--good)}.xs-value--reply rect{fill:color-mix(in srgb,var(--good) 9%,var(--panel-bg));stroke-dasharray:5 4}.xs-edge{fill:none;stroke:var(--text-dim);stroke-width:1.6}.xs-edge--hint{stroke-dasharray:4 5}.xs-arrowhead{fill:var(--text-dim)}.xs-figure .xs-weight{fill:var(--primary);font-weight:700;font-size:14px}.xs-figure .xs-caption{fill:var(--text-dim);font-size:13px}.xs-figure .xs-caption.xs-left,.xs-figure .xs-legend{text-anchor:start}.xs-figure .xs-legend{fill:var(--text-dim);font-size:14px}.xs-table__frame{fill:var(--card-nested-bg);stroke:var(--border)}.xs-figure .xs-table__title{font-weight:700}.xs-figure .xs-table__head{fill:var(--text-dim);font-size:13px}.xs-table__mark{fill:color-mix(in srgb,var(--primary) 14%,transparent);stroke:var(--primary)}.xs-figure .xs-table__note{fill:var(--good);font-weight:700}.xs-bar-track{fill:var(--card-nested-bg)}.xs-bar{fill:var(--primary)}.xs-figure .xs-bar-label{font-weight:700}.xs-figure .xs-bar-label.xs-after{text-anchor:start}.xs-formula{padding:12px 16px;background:var(--card-nested-bg);border-left:3px solid var(--good);border-radius:0 6px 6px 0;font-size:1.02rem}.about-intro h3{margin:20px 0 6px}.about-arrows{max-width:760px}.changelog-source{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px}.changelog-source__icon{flex-shrink:0;color:var(--lirep)}.changelog-source__text{display:flex;flex:1 1 220px;flex-direction:column;gap:2px;color:var(--text-dim)}.doc-main .changelog-source__repo{color:var(--text-strong);font-weight:600;text-decoration:none;overflow-wrap:anywhere}.doc-main .changelog-source__repo:hover{color:var(--primary-hover)}.changelog-source__actions{display:flex;flex-wrap:wrap;gap:8px}.doc-main .changelog-source__actions .btn-primary{color:#fff}.doc-main .changelog-source__actions .btn-secondary{color:var(--text-strong)}.changelog{margin-top:28px}.changelog__hint{margin:-4px 0 8px;color:var(--text-dim)}.changelog-day__date{margin:22px 0 8px;color:var(--text-dim);font-size:.85rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.changelog-list{margin:0;padding:0;list-style:none;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px;overflow:hidden}.changelog-list>li+li{border-top:1px solid var(--border)}.changelog-item>summary{display:flex;align-items:baseline;gap:10px;padding:12px 16px;cursor:pointer;list-style:none}.changelog-item>summary::-webkit-details-marker{display:none}.changelog-item>summary:before{content:"▸";flex-shrink:0;width:.8em;color:var(--text-dim);transition:transform .15s}.changelog-item[open]>summary:before{transform:rotate(90deg)}.changelog-item>summary:hover{background:var(--card-nested-bg)}.changelog-item[open]>summary{background:var(--card-nested-bg)}.changelog-item__area{flex-shrink:0;min-width:84px;color:var(--lirep);font-size:.8rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.changelog-item__summary{flex:1;color:var(--text-strong)}.changelog-item__has-figure{flex-shrink:0;color:var(--text-dim);font-size:.85rem}.changelog-item__body{padding:4px 20px 16px 50px;line-height:1.65}.changelog-item__body p{margin:10px 0}.changelog-item__body ul{padding-left:22px}.changelog-kbd{display:inline-block;min-width:1.6em;padding:0 6px;border:1px solid var(--border);border-bottom-width:2px;border-radius:4px;background:var(--card-nested-bg);color:var(--text-strong);font-family:inherit;font-size:.85em;line-height:1.6;text-align:center}.changelog-figure{margin:16px 0 4px;padding:18px;background:var(--page-bg);border:1px solid var(--border);border-radius:8px}.changelog-figure figcaption{margin-top:12px;color:var(--text-dim);font-size:.88rem;line-height:1.5;text-align:center}.changelog-tiers{margin:0 auto;border-collapse:collapse}.changelog-tiers th,.changelog-tiers td{padding:6px 16px;text-align:right}.changelog-tiers th:first-child,.changelog-tiers td:first-child{text-align:left}.changelog-tiers th{color:var(--text-dim);font-size:.8rem;font-weight:600;border-bottom:1px solid var(--border)}.changelog-tiers td{color:var(--text-strong);font-variant-numeric:tabular-nums}.changelog-tiers .piece-badge{margin-right:8px;vertical-align:middle}.changelog-mock-card{max-width:300px;margin:0 auto;padding:14px 16px;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px}.changelog-mock-card__head{display:flex;justify-content:space-between;gap:12px}.changelog-mock-card__title{color:var(--text-strong);font-weight:600}.changelog-mock-card__meta{color:var(--text-dim);font-size:.85rem}.changelog-mock-card__trophy{font-size:1.3rem}.changelog-mock-card__actions,.changelog-mock-bullet__buttons{display:flex;gap:8px;margin-top:14px}.changelog-mock-card__actions span,.changelog-mock-bullet__buttons span{padding:4px 12px;border:1px solid var(--border);border-radius:4px;color:var(--text-strong);font-size:.85rem}.changelog-mock-bullet__buttons span.is-primary{border-color:var(--primary);background:var(--primary);color:#fff}.changelog-mock-bullet{display:flex;flex-direction:column;align-items:center;gap:14px}.changelog-mock-bullet__clock{display:flex;align-items:baseline;gap:10px;padding:6px 18px;background:var(--panel-bg);border:1px solid var(--border);border-radius:6px}.changelog-mock-bullet__clock span{color:var(--text-strong);font-size:2rem;font-variant-numeric:tabular-nums;font-weight:700}.changelog-mock-bullet__clock small{color:var(--text-dim)}.changelog-mock-bullet__options{display:flex;flex-wrap:wrap;justify-content:center;overflow:hidden;border:1px solid var(--border);border-radius:6px}.changelog-mock-bullet__options span{padding:6px 12px;color:var(--text);font-size:.85rem}.changelog-mock-bullet__options span+span{border-left:1px solid var(--border)}.changelog-mock-bullet__options span.is-on{background:var(--primary);color:#fff}.changelog-mock-bullet__buttons{margin-top:0}.changelog-mock-moves{max-width:420px;margin:0 auto;padding:10px 14px;background:var(--panel-bg);border:1px solid var(--border);border-radius:8px;color:var(--text-strong);line-height:1.9}.changelog-mock-moves b{color:var(--text-dim);font-weight:400}.changelog-mock-moves__fold{padding-left:16px}.changelog-mock-moves__stat{margin-left:8px;color:var(--info);font-size:.85em}.changelog-mock-moves__count{margin-left:4px;padding:0 4px;border-radius:4px;background:color-mix(in srgb,var(--lirep) 22%,transparent);color:var(--text-strong);font-size:.85em}.changelog-mock-keys{display:grid;gap:8px;max-width:380px;margin:0 auto}.changelog-mock-keys>div{display:flex;align-items:center;gap:6px}.changelog-mock-keys span{margin-left:auto;color:var(--text-dim);font-size:.9rem}@media (max-width: 600px){.changelog-item>summary{flex-wrap:wrap;gap:2px 10px;padding:12px}.changelog-item__area{min-width:0}.changelog-item__summary{flex-basis:100%;padding-left:calc(.8em + 10px)}.changelog-item__has-figure{display:none}.changelog-item__body{padding:4px 14px 14px}.changelog-figure{padding:14px 10px}}:root[data-badge-shine=flat] .piece-badge{animation:none!important}:root[data-badge-shine=flat] .piece-badge:before{display:none!important}:root[data-badge-shine=flat] .piece-badge:after{animation:none!important}:root[data-badge-icons] .piece-badge{position:relative;width:1.05em;height:1.05em;overflow:hidden;vertical-align:-.15em;color:transparent;-webkit-background-clip:border-box!important;background-clip:border-box!important;-webkit-mask:var(--badge-mask) center / contain no-repeat;mask:var(--badge-mask) center / contain no-repeat}:root[data-badge-icons] .piece-badge:after{display:block!important;position:absolute;top:0;right:0;bottom:0;left:0;background:var(--badge-mask) center / contain no-repeat;content:""!important;mix-blend-mode:multiply;opacity:1;animation:none}:root[data-badge-icons] .piece-badge:before{display:none!important}.piece-badge-fx{display:inline-block;position:relative;line-height:1}.piece-badge-fx--legendary{--fx-glow: rgba(181, 123, 255, .95);--fx-glow-2: rgba(63, 199, 221, .95);--fx-spark: #fff6c9}.piece-badge-fx--brilliant{--fx-glow: rgba(150, 225, 255, .95);--fx-glow-2: rgba(255, 255, 255, .95);--fx-spark: #ffffff}.piece-badge-fx--gold{--fx-glow: rgba(255, 200, 40, .9);--fx-glow-2: rgba(255, 240, 170, .95);--fx-spark: #fff3b0}.piece-badge-fx--silver{--fx-glow: rgba(220, 230, 245, .85);--fx-glow-2: rgba(255, 255, 255, .9)}.piece-badge-fx--bronze{--fx-glow: rgba(240, 150, 80, .8);--fx-glow-2: rgba(255, 205, 160, .9)}:root[data-badge-shine=vivid] .piece-badge-fx:not(.piece-badge-fx--none){filter:drop-shadow(0 0 3px var(--fx-glow)) drop-shadow(0 0 1px var(--fx-glow-2))}:root[data-badge-shine=vivid] .piece-badge:not(.piece-badge--none){filter:saturate(1.3) brightness(1.08)!important}@media (prefers-reduced-motion: no-preference){:root[data-badge-shine=vivid] .piece-badge.piece-badge--silver,:root[data-badge-shine=vivid] .piece-badge.piece-badge--bronze,:root[data-badge-shine=vivid] .piece-badge.piece-badge--gold{background-image:linear-gradient(120deg,var(--metal-edge) 0%,var(--metal-body) 30%,#ffffff 50%,var(--metal-body) 70%,var(--metal-edge) 100%);background-size:300% auto;animation:badge-fx-flow 2.6s linear infinite}:root[data-badge-shine=vivid] .piece-badge.piece-badge--silver{animation-duration:3.4s}:root[data-badge-shine=vivid] .piece-badge.piece-badge--bronze{animation-duration:4s}:root[data-badge-shine=vivid] .piece-badge.piece-badge--brilliant{animation-duration:1.2s}:root[data-badge-shine=vivid] .piece-badge.piece-badge--legendary{animation-duration:2.2s,1.6s}:root[data-badge-shine=vivid] .piece-badge-fx--gold,:root[data-badge-shine=vivid] .piece-badge-fx--brilliant{animation:badge-fx-pulse 1.8s ease-in-out infinite}:root[data-badge-shine=vivid] .piece-badge-fx--legendary{animation:badge-fx-legendary 3s linear infinite}:root[data-badge-shine=vivid] .piece-badge-fx--gold:before,:root[data-badge-shine=vivid] .piece-badge-fx--brilliant:before,:root[data-badge-shine=vivid] .piece-badge-fx--brilliant:after,:root[data-badge-shine=vivid] .piece-badge-fx--legendary:before,:root[data-badge-shine=vivid] .piece-badge-fx--legendary:after{position:absolute;z-index:1;color:var(--fx-spark);font-size:1rem;line-height:1;text-shadow:0 0 3px var(--fx-glow),0 0 1px rgba(0,0,0,.5);content:"✦";opacity:0;pointer-events:none;animation:badge-fx-sparkle 2.2s ease-in-out infinite}:root[data-badge-shine=vivid] .piece-badge-fx--gold:before,:root[data-badge-shine=vivid] .piece-badge-fx--brilliant:before,:root[data-badge-shine=vivid] .piece-badge-fx--legendary:before{top:-.2em;right:-.35em}:root[data-badge-shine=vivid] .piece-badge-fx--brilliant:after,:root[data-badge-shine=vivid] .piece-badge-fx--legendary:after{bottom:-.1em;left:-.45em;font-size:.75rem;animation-delay:1.1s}:root[data-badge-shine=vivid] .piece-badge-fx--legendary:before{font-size:1.1rem;text-shadow:0 0 5px var(--fx-glow),0 0 2px #fff,-.1em 1.5em 0 var(--fx-spark);animation-duration:1.8s}}@keyframes badge-fx-flow{0%{background-position:0% center}to{background-position:150% center}}@keyframes badge-fx-sparkle{0%,to{opacity:0;transform:scale(.4) rotate(0)}45%{opacity:1;transform:scale(1) rotate(45deg)}70%{opacity:0;transform:scale(.5) rotate(90deg)}}@keyframes badge-fx-pulse{0%,to{filter:drop-shadow(0 0 2px var(--fx-glow)) drop-shadow(0 0 1px var(--fx-glow-2))}50%{filter:drop-shadow(0 0 7px var(--fx-glow)) drop-shadow(0 0 3px var(--fx-glow-2))}}@keyframes badge-fx-legendary{0%,to{filter:drop-shadow(0 0 3px rgba(181,123,255,.95)) drop-shadow(0 0 1px #fff)}33%{filter:drop-shadow(0 0 8px rgba(63,199,221,1)) drop-shadow(0 0 2px #fff)}66%{filter:drop-shadow(0 0 8px rgba(255,138,216,1)) drop-shadow(0 0 2px rgba(255,215,106,1))}}.study-card--archived .piece-badge-fx{filter:none!important;animation:none!important}.study-card--archived .piece-badge-fx:before,.study-card--archived .piece-badge-fx:after{display:none!important}.study-card--archived .piece-badge{filter:none!important}
