*{box-sizing:border-box}:root{color-scheme:light dark;--background:light-dark(#f5f4f0,#151916);--surface:light-dark(#fffefa,#1e241f);--text:light-dark(#222721,#f1f4ef);--muted:light-dark(#535a51,#bdc9be);--control:light-dark(#f1f4ee,#2a342c);--hover:light-dark(#e3ebdf,#35473a);--edge:light-dark(#7e887b,#829585);--frame:light-dark(#d9ded5,#3d4a40);--focus:light-dark(#246141,#a9d9b1);--pairing-width:40rem;--theme-thumb-offset:0px}:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}.theme-moon{display:none}@media (prefers-color-scheme:dark){:root:not([data-theme]){--theme-thumb-offset:18px}:root:not([data-theme]) .theme-sun{display:none}:root:not([data-theme]) .theme-moon{display:block}}:root[data-theme=dark]{--theme-thumb-offset:18px}:root[data-theme=dark] .theme-sun{display:none}:root[data-theme=dark] .theme-moon{display:block}body{margin:0;background:var(--background);color:var(--text);font-family:system-ui,sans-serif}.desktop-advertisement{display:none}.advertisement-label{display:block;margin-bottom:.5rem;color:var(--muted);font-size:.6875rem;text-align:center}.midgame_desktop_ad{display:block;width:160px;height:600px}@media (max-width:1439px){.midgame_desktop_ad{display:none}}@media (min-width:1440px){main:has(>.desktop-advertisement){grid-template-columns:160px minmax(0,70rem);column-gap:2rem;justify-content:center}main:has(>.desktop-advertisement)>.site-header{grid-column:2;grid-row:1}main:has(>.desktop-advertisement)>.homepage-panels{grid-column:2;grid-row:2}.desktop-advertisement{display:block;grid-column:1;grid-row:2;align-self:start;margin-top:clamp(1rem,5vh,3rem)}}main{min-height:100svh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;padding:max(clamp(12px,3vw,36px),env(safe-area-inset-top)) clamp(12px,3vw,36px) clamp(12px,3vw,36px);padding-inline-start:max(clamp(12px,3vw,36px),env(safe-area-inset-left));padding-inline-end:max(clamp(12px,3vw,36px),env(safe-area-inset-right));padding-bottom:calc(clamp(12px, 3vw, 36px) + max(var(--ad-anchor-space, 0px), env(safe-area-inset-bottom)))}.site-header{justify-self:center;width:100%;max-width:var(--pairing-width);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.375rem;min-height:2.75rem}.header-controls,.site-brand{display:flex;align-items:center;gap:clamp(.375rem,1.5vw,.625rem)}.site-brand{gap:0;color:var(--muted);font-size:clamp(1.25rem,1rem + .8vw,1.75rem);font-weight:400;letter-spacing:-.02em;white-space:nowrap}.site-domain{opacity:.85}.site-mark{flex:none;margin-inline-end:clamp(.375rem,1.5vw,.625rem);width:clamp(1.5rem,1.25rem + 1vw,2rem);aspect-ratio:1;background-color:currentColor;-webkit-mask:url(/midgame-mark.svg) center/contain no-repeat;mask:url(/midgame-mark.svg) center/contain no-repeat}.header-controls{flex:1 1 11rem;margin-inline-start:auto;min-width:0;max-width:100%;justify-content:flex-end}.header-main{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.375rem;width:100%;min-width:0}.header-controls>.account-dropdown,.header-controls>form{min-width:0;max-width:calc(100% - 8rem)}.account-trigger span{min-width:0}.ads-preference{position:relative;flex:none}.ads-toggle{display:inline-flex;align-items:center;gap:.375rem;min-height:44px;padding:0;border:0;background:transparent;color:var(--muted);font:inherit;font-size:.8125rem;cursor:pointer}.ads-track{display:flex;align-items:center;width:36px;height:23px;padding:3px;border:1px solid var(--edge);border-radius:999px;background:var(--control)}.ads-thumb{width:15px;height:15px;border-radius:50%;background:var(--muted)}:root[data-ads=on] .ads-thumb{transform:translateX(13px);background:var(--focus)}.ads-toggle:hover .ads-track{background:var(--hover)}.ads-preference-error{position:absolute;z-index:5;inset-inline-end:0;width:min(15rem,80vw);margin:.25rem 0 0;padding:.625rem;border:1px solid var(--edge);border-radius:.5rem;color:var(--text);background:var(--surface);font-size:.8125rem}.dialog-preferences{display:flex;justify-content:flex-end;margin-top:.5rem}.dialog-preferences .ads-preference-error{position:static;width:auto;text-align:start}.pairing-panel{align-self:center;justify-self:center;width:100%;max-width:var(--pairing-width);margin-block:clamp(1rem,5vh,3rem)}.pairing-panel h1{margin:0;text-align:center;font-size:clamp(1.625rem,1.2rem + 2vw,2.75rem);font-weight:650;line-height:1.15;letter-spacing:-.025em}.intro{max-width:53ch;margin:.875rem auto clamp(1.25rem,4vw,2rem);color:var(--muted);text-align:center;font-size:clamp(.9375rem,.875rem + .3vw,1.0625rem);line-height:1.6}.clocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.375rem,1.5vw,.75rem);padding:clamp(.375rem,1.5vw,.875rem);border:1px solid var(--frame);border-radius:.875rem;background:var(--surface)}button{font:inherit;color:inherit;cursor:pointer}.clocks>button{display:grid;align-content:center;gap:.25rem;min-width:0;min-height:clamp(4.25rem,9vw,6.5rem);padding:.5rem .125rem;border:1px solid var(--edge);border-radius:.5rem;background:var(--control);overflow-wrap:anywhere}.clock-time{font-size:clamp(1.25rem,1rem + 1.2vw,2rem);font-weight:500;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;line-height:1.1}.clock-category{color:var(--muted);font-size:.875rem;line-height:1.25}.clocks>button:not(:disabled):hover,.clocks>button[aria-pressed=true]{background:var(--hover)}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.clocks>button[aria-pressed=true]{border-color:var(--focus)}button:disabled{cursor:default}.match-status{text-align:center;overflow-wrap:anywhere}.match-status p{margin:.9rem 0 .5rem}.match-status p:empty{margin:0}.account-button,.match-status a,.match-status button{display:inline-block;padding:.6rem .9rem;border:1px solid var(--edge);border-radius:6px;background:var(--control);color:inherit}.account-button{min-height:2.75rem;max-width:100%;font-size:.875rem}.provider-button{display:inline-flex;align-items:center;gap:.5rem}.theme-toggle{display:grid;place-items:center;flex:none;min-height:44px;padding:0;border:0;border-radius:999px;background:transparent}.theme-track{display:flex;align-items:center;width:46px;height:27px;padding:3px;border:1px solid var(--edge);border-radius:999px;background:var(--control)}.theme-toggle:not(:disabled):hover .theme-track{background:var(--hover)}.theme-thumb{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--focus);color:var(--background);transform:translateX(var(--theme-thumb-offset))}@media (prefers-reduced-motion:no-preference){.theme-thumb{transition:transform .15s ease}}@media (max-width:420px){.header-controls .account-button{padding-inline:.5rem}}.lichess-logo{flex:none;width:1.25rem;height:1.25rem;background-color:currentColor;-webkit-mask:url(/lichess-logo.svg) center/contain no-repeat;mask:url(/lichess-logo.svg) center/contain no-repeat}.provider-button:disabled{color:var(--muted)}.account-dropdown{position:relative;min-width:0}.account-trigger{display:flex;align-items:center;gap:.625rem;padding-inline:0;border:0;background:transparent}.header-controls .account-trigger{padding-inline:0}.header-controls .account-trigger:not(:disabled):hover{background:transparent;color:var(--focus)}.profile-portrait{flex:none;color:var(--muted)}.account-trigger span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.account-actions{position:absolute;z-index:1;inset:calc(100% + .375rem) 0 auto auto;min-width:8rem;padding:.375rem;border:1px solid var(--edge);border-radius:.5rem;background:var(--surface)}.account-actions form+form{margin-top:.375rem}.account-actions button{width:100%;text-align:start}.match-status a,.match-status button{margin:.25rem}.account-button:not(:disabled):hover,.match-status a:hover,.match-status button:not(:disabled):hover{background:var(--hover)}.match-dialog{position:fixed;inset-inline:0;inset-block-start:calc(var(--dialog-viewport-top, 0px) + env(safe-area-inset-top));inset-block-end:calc(100dvh - var(--dialog-viewport-height, 100dvh) - var(--dialog-viewport-top, 0px) + max(var(--ad-anchor-space, 0px), env(safe-area-inset-bottom)));width:min(25rem,calc(100% - 1.5rem - env(safe-area-inset-left) - env(safe-area-inset-right)));max-height:calc(var(--dialog-viewport-height, 100dvh) - max(var(--ad-anchor-space, 0px), env(safe-area-inset-bottom)) - env(safe-area-inset-top) - 1.5rem);overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:.75rem;padding:1.25rem 1rem;border:1px solid var(--edge);border-radius:.875rem;background:var(--surface);color:var(--text);text-align:center;box-shadow:0 .75rem 2.5rem #0004}.match-dialog::backdrop{background:#0007;inset-block-end:var(--ad-anchor-space,0)}.match-dialog h2{margin:0;font-size:1.25rem;line-height:1.25}.match-experience>.dialog-cancel{display:block;margin:1rem auto 0}.match-swords{display:block;width:3rem;height:3rem;margin:0 auto 1rem;color:var(--focus)}.experience-guidance{color:var(--muted);font-size:.8125rem;line-height:1.5}.match-experience>.historical-card{margin-top:1rem}.historical-card{display:block;width:min(100%,17rem);margin:0 auto;padding:.75rem;border:1px solid var(--frame);border-radius:.75rem;background:var(--control);color:var(--text);text-decoration:none}a.historical-card:hover{border-color:var(--focus);background:var(--hover)}.historical-meta{display:flex;justify-content:space-between;gap:.75rem;font-size:.8125rem}.historical-player{margin:.625rem 0;font-size:.875rem;line-height:1.4;overflow-wrap:anywhere}.historical-card img{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:.25rem}.historical-image-missing{display:grid;place-items:center;aspect-ratio:1;border:1px dashed var(--edge);color:var(--muted);font-size:.875rem}.historical-note{color:var(--muted);font-size:.8125rem;line-height:1.5}.next-game-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1rem}.next-game-actions button{min-height:2.75rem;padding:.65rem .5rem;font-size:.875rem}.next-game-actions .dialog-cancel{margin-top:0}.rematch-primary{background:#006de5;border-color:#006de5;color:#fff;font-weight:600}.rematch-primary:not(:disabled):hover{background:#005dc4;border-color:#005dc4}.rematch-status{font-size:.875rem;line-height:1.5;color:var(--muted)}.finish-dots{display:inline-block;width:1.25em;text-align:start;vertical-align:bottom}.finish-word{white-space:nowrap}.finish-dots:after{content:"..."}@media (prefers-reduced-motion:no-preference){.finish-dots:after{animation:finish-dots 1.5s step-end infinite}}@keyframes finish-dots{0%,to{content:"."}33%{content:".."}66%{content:"..."}}.dialog-cancel{margin-top:1rem;border-color:light-dark(#a57070,#a97474);background:light-dark(#f8eceb,#3b292b);color:light-dark(#762f35,#f2b9bc)}.dialog-cancel:not(:disabled):hover{background:light-dark(#f2dddc,#503437)}.account-actions .dialog-cancel{margin-top:0}.guest-actions{display:grid;justify-items:center;gap:.5rem;margin-top:1rem}.guest-link{padding:.375rem .25rem;color:var(--focus);font-size:.875rem;font-weight:500;text-underline-offset:.2em}.guest-link:hover{text-decoration-thickness:2px}.guest-link[aria-disabled=true]{color:var(--muted);cursor:default}.friend-dialog>.dialog-cancel{display:block;margin:1rem auto 0}.friend-settings{display:grid;gap:.75rem;margin-top:1.5rem;text-align:start}.friend-settings>label{display:flex;justify-content:space-between;align-items:center;gap:1rem;font-size:.9375rem}.friend-settings output{min-width:2.5rem;padding:.25rem .5rem;border-radius:.5rem;background:var(--control);text-align:center;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.friend-settings input[type=range]{width:100%;margin:0 0 .5rem;accent-color:var(--focus);min-height:1.5rem}.friend-settings fieldset{border:0;padding:0;margin:0;min-width:0}.friend-settings legend{margin-bottom:.5rem;font-size:.9375rem}.friend-sides{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.friend-sides label{position:relative;cursor:pointer}.friend-sides input{position:absolute;opacity:0}.friend-sides span{display:grid;place-items:center;min-height:3rem;padding:.25rem;border:1px solid var(--edge);border-radius:.5rem;font-size:.8125rem;line-height:1.2;text-align:center;background:var(--control)}.friend-sides input:checked+span{border-color:var(--focus);background:var(--hover);box-shadow:inset 0 0 0 1px var(--focus)}.friend-sides input:focus-visible+span{outline:3px solid var(--focus);outline-offset:2px}.friend-primary{background:var(--hover);font-weight:600}.friend-share{margin-top:1rem}.friend-share input{display:block;width:100%;padding:.75rem;margin-bottom:.75rem;border:1px solid var(--edge);border-radius:.5rem;background:var(--control);color:var(--text);font:inherit;font-size:.875rem}.search-spinner{display:block;width:1.375rem;height:1.375rem;margin:0 auto .75rem;border:2px solid var(--edge);border-top-color:var(--focus);border-radius:50%}.search-dots{display:inline-block;min-width:.9em;text-align:start}.queue-count{color:var(--muted);margin:.625rem 0 0}@media (prefers-reduced-motion:no-preference){.search-spinner{animation:search-spin 1s linear infinite}.search-dots span{animation:search-dot-two 1.5s step-end infinite}.search-dots span:last-child{animation-name:search-dot-three}}@keyframes search-spin{to{transform:rotate(1turn)}}@keyframes search-dot-two{0%{opacity:0}33.333%{opacity:1}}@keyframes search-dot-three{0%{opacity:0}66.667%{opacity:1}}.activity-panel{margin-top:.875rem;padding:.875rem clamp(.625rem,2vw,1rem);border:1px solid var(--frame);border-radius:.875rem;background:var(--surface);color:var(--muted);font-size:.8125rem}.activity-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.25rem .75rem}.activity-heading h2{margin:0;color:var(--text);font-size:.9375rem;font-weight:600}.faq{margin-top:1.5rem}.faq>h2{margin:0 0 .75rem;font-size:1.125rem;font-weight:650}.faq-items{border:1px solid var(--frame);border-radius:.875rem;overflow:hidden;background:var(--surface)}.faq details+details{border-top:1px solid var(--frame)}.faq summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;font-size:.9375rem;font-weight:600;line-height:1.4;cursor:pointer;list-style:none}.faq summary::-webkit-details-marker{display:none}.faq summary:after{content:"+";flex:none;width:1rem;text-align:center;color:var(--focus);font-size:1.25rem;font-weight:400}.faq details[open] summary:after{content:"−"}.faq details[open] summary{padding-bottom:.5rem}.faq summary:hover{background:var(--hover)}.faq summary:focus-visible{outline-offset:-4px}.faq-answer{display:grid;gap:.75rem;padding:.25rem 1.25rem 1.25rem;font-size:.9375rem;line-height:1.65;color:var(--muted)}.faq-answer p{margin:0}.faq-answer strong{color:var(--text)}.activity-heading p{margin:0 0 0 auto;text-align:end}.activity-live{color:light-dark(#17643a,#65e391);white-space:nowrap}.activity-live>span{display:inline-block;width:.5rem;height:.5rem;margin-inline-end:.35rem;border-radius:50%;background:currentColor}@media (prefers-reduced-motion:no-preference){.activity-live>span{animation:activity-pulse 1.6s ease-in-out infinite}}@keyframes activity-pulse{50%{opacity:.25}}.activity-note{margin:.625rem 0 0}.activity-chart{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.625rem;row-gap:.375rem;margin:.875rem .25rem 0 0;font-size:.75rem;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.activity-scale{display:flex;flex-direction:column;justify-content:space-between;text-align:end;line-height:1;margin-block:-.375rem}.activity-interaction{position:relative;min-width:0;cursor:crosshair}.activity-plot{display:block;width:100%;height:clamp(7rem,16vw,10rem);overflow:visible}.activity-gridline{stroke:var(--frame);stroke-width:1}.activity-line{fill:none;stroke:light-dark(#1766ad,#60b5ff);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.activity-guide,.activity-tooltip{position:absolute;pointer-events:none}.activity-guide{inset-block:0;border-left:1px solid light-dark(#1766ad,#60b5ff)}.activity-guide span{position:absolute;width:.375rem;height:.375rem;border-radius:50%;background:var(--text);transform:translate(-50%,-50%)}.activity-tooltip{top:.25rem;width:8rem;padding:.3rem .45rem;border:1px solid var(--frame);border-radius:.25rem;background:var(--surface);color:var(--text)}.activity-tooltip span{display:block;color:var(--muted)}.activity-dates{grid-column:2;display:flex;justify-content:space-between;gap:.25rem}.activity-description,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}main.event-explorer{display:block;max-width:46rem;margin-inline:auto}.event-explorer>a{color:var(--focus)}.event-explorer h1{overflow-wrap:anywhere}.event-list{list-style:none;padding:0;display:grid;gap:.625rem}.event-position{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(.5rem,2vw,1rem);padding:.5rem;border:1px solid var(--frame);border-radius:.75rem;background:var(--surface);color:var(--text);text-decoration:none}.event-position:hover{background:var(--hover);border-color:var(--edge)}.event-position img{width:clamp(4rem,18vw,6.25rem);height:auto;aspect-ratio:1}.event-players,.event-result{display:grid;gap:.25rem;font-size:.875rem}.event-players{overflow-wrap:anywhere}.event-year{font-weight:700}.event-result{text-align:right;color:var(--muted)}.event-result strong{color:var(--text)}.event-list-status{text-align:center;color:var(--muted)}.homepage-panels{align-self:center;justify-self:center;width:100%;max-width:var(--pairing-width)}.featured-games{min-width:0;overflow-wrap:anywhere;margin-bottom:1rem}.featured-games>h2{margin:0 0 .75rem;font-size:1.125rem}.featured-event-list{display:grid;gap:.625rem}.featured-event{display:grid;grid-template-columns:clamp(3rem,6vw,4.5rem) minmax(0,1fr);align-items:start;gap:.75rem;padding:.75rem;border:1px solid var(--frame);border-radius:.875rem;background:var(--surface)}.featured-picture{align-self:center;aspect-ratio:1;overflow:hidden;border-radius:.5rem;background:var(--control)}.featured-event{width:100%;text-align:start;color:var(--text)}.featured-event:hover{background:var(--hover);border-color:var(--edge)}.featured-event-active{border-color:light-dark(#709678,#6f9b78);background:light-dark(#eff6ef,#24352a)}.featured-event-active:hover{border-color:var(--focus);background:light-dark(#e6f1e7,#2a4032)}.featured-picture img{display:block;width:100%;height:100%;object-fit:cover}.featured-meta{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem;font-size:.8125rem}.featured-date{display:flex;flex-wrap:wrap;align-items:center;gap:.125rem .5rem}.featured-countdown{padding:.125rem .5rem;border-radius:999px;background:light-dark(#e7e7e7,#414141);color:light-dark(#404040,#ededed);font-size:.75rem;font-weight:400}.featured-date time{font-weight:700}.featured-active-label{flex:none;color:var(--focus);font-weight:700}.featured-details h3{margin:.25rem 0;font-size:1rem;line-height:1.25}.featured-details p{margin:0 0 .25rem;color:var(--muted);font-size:.875rem;line-height:1.35}.event-explorer-dialog{width:min(44rem,calc(100% - 1.5rem));text-align:start}.event-explorer-heading{display:grid;grid-template-columns:clamp(3rem,12vw,5rem) minmax(0,1fr);align-items:center;gap:.875rem;padding-bottom:.875rem;border-bottom:1px solid var(--frame)}.event-explorer-heading h2{margin:0;font-size:clamp(1.125rem,1rem + .5vw,1.375rem);font-weight:650;line-height:1.2;letter-spacing:-.015em;overflow-wrap:anywhere}.event-explorer-heading p{margin:.25rem 0 0;color:var(--muted);font-size:.875rem;line-height:1.45}@media (min-width:920px){.site-header{max-width:70rem;display:grid;grid-template-columns:minmax(0,var(--pairing-width)) minmax(21rem,1fr);column-gap:clamp(1.5rem,3vw,3rem)}.header-main{grid-column:1;grid-row:1}.homepage-panels{display:grid;grid-template-columns:minmax(0,var(--pairing-width)) minmax(21rem,1fr);gap:clamp(1.5rem,3vw,3rem);max-width:70rem;align-items:start}.featured-games{grid-column:2;grid-row:1/span 2;margin-top:clamp(1rem,5vh,3rem)}.homepage-panels>.pairing-panel{align-self:start;margin-bottom:0}.homepage-panels>.faq{grid-column:1;grid-row:2;margin:0 0 1rem}.featured-games>h2{display:flex;align-items:center;min-height:calc(clamp(1.625rem, 1.2rem + 2vw, 2.75rem) * 1.15)}}