/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.table{display:table}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}}.room-controls{margin-bottom:14px;padding:12px 14px;font-size:13px}.room-buttons,.room-heading{flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;display:flex}.room-heading{justify-content:space-between;margin-top:0}.room-heading span{color:var(--muted);font-size:12px}.room-controls input{border:1px solid var(--border);min-width:0;color:inherit;background:0 0;border-radius:8px;flex:1;padding:10px}.room-controls button{min-height:40px;padding:8px 12px}.room-controls .error{margin:6px 0 0}:root{color:#e8eade;font-synthesis:none;--surface:#202722;--border:#343e35;--muted:#9da99d;--text:#e8eade;--accent:#c4d78d;color-scheme:dark;background:#171c19;font-family:Inter,Segoe UI,Arial,sans-serif}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer;color:inherit;border:1px solid var(--border);background:var(--surface);border-radius:9px;justify-content:center;align-items:center;gap:9px;padding:12px;display:inline-flex}button:hover{filter:brightness(1.13)}button:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #d6b66a}button:disabled{opacity:.35;cursor:default}select{color:inherit;border:1px solid var(--border);background:0 0;border-radius:8px;padding:9px}option{background:var(--surface)}.shell{max-width:1180px;margin:auto;padding:0 36px}header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;height:96px;display:flex}.brand{letter-spacing:2px;align-items:center;gap:12px;font-size:17px;font-weight:750;display:flex}.brand svg{color:var(--accent)}.brand-thin{font-weight:350}.preferences{align-items:center;gap:12px;display:flex}.icon{background:0 0;padding:10px}.intro{justify-content:space-between;align-items:center;padding:36px 0 26px;display:flex}.eyebrow{text-transform:uppercase;letter-spacing:2px;color:var(--accent);margin:0 0 10px;font-size:11px}.dot{background:var(--accent);border-radius:50%;width:6px;height:6px;margin-left:7px;display:inline-block}h1{margin:0;font-family:Georgia,serif;font-size:36px;font-weight:400}.edition{color:var(--muted);letter-spacing:3px;font-size:11px}.layout{grid-template-columns:minmax(0,650px) minmax(270px,1fr);align-items:start;gap:32px;display:grid}.player{align-items:center;gap:12px;height:59px;display:flex}.avatar{background:var(--surface);border:1px solid var(--border);border-radius:9px;place-items:center;width:37px;height:37px;font-size:28px;display:grid}.player strong{font-size:14px}.player.active strong:after{content:"";background:var(--accent);border-radius:50%;width:6px;height:6px;margin-left:10px;display:inline-block}.player-label{color:var(--muted);margin-left:auto;font-size:27px}.board{aspect-ratio:1;border:5px solid #414c3d;border-radius:5px;grid-template-columns:repeat(8,1fr);display:grid;overflow:hidden;box-shadow:0 10px 40px #0003}.square{aspect-ratio:1;border:0;border-radius:0;place-items:center;padding:0;display:grid;position:relative}.square:hover{filter:none}.square.selected{background:#c3b862}.piece-wrap{z-index:2;touch-action:manipulation;width:88%;height:88%;display:block}.piece{filter:drop-shadow(0 3px 1px #0003);width:100%;height:100%;transition:transform .16s}.square.selected .piece{transform:translateY(-3px)}.rank,.file{z-index:3;font-size:11px;font-weight:700;position:absolute}.rank{top:4px;left:5px}.file{bottom:2px;right:5px}.legal-dot{z-index:3;pointer-events:none;background:#243b3455;border-radius:50%;width:23%;height:23%;position:absolute}.capture-ring{pointer-events:none;z-index:3;border:5px solid #243b3455;border-radius:50%;position:absolute;top:3%;right:3%;bottom:3%;left:3%}.board-footer{color:var(--muted);justify-content:space-between;align-items:center;font-size:11px;display:flex}.panel{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin-bottom:16px}.status{padding:24px}.status h2{margin:0 0 12px;font-size:22px;font-weight:550}.status>p:last-child{color:var(--muted);margin:0;font-size:12px;line-height:1.7}.panel-title{border-bottom:1px solid var(--border);justify-content:space-between;padding:18px 20px;display:flex}h3{margin:0;font-size:13px;font-weight:550}.panel-title>span{color:var(--muted);font-size:12px}.move-scroll{height:210px;padding:8px 12px;overflow:auto}.empty{height:100%;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:10px;font-size:12px;display:flex}.empty svg{opacity:.4}.move-row{grid-template-columns:40px 1fr 1fr;padding:0 8px;font-size:14px;line-height:30px;display:grid}.move-row:nth-child(2n){background:#88888809}.move-row>span:first-child{color:var(--muted);font-size:12px}.latest{color:var(--accent);font-weight:700}.actions{grid-template-columns:1fr 1fr;gap:6px;padding:10px;display:grid}.actions button{border:0;justify-content:flex-start;font-size:12px}.primary{background:var(--accent);color:#253323;border-color:#0000;width:100%;font-weight:650}.error{color:#df877d;min-height:18px;font-size:12px}footer{border-top:1px solid var(--border);color:var(--muted);letter-spacing:2px;justify-content:space-between;margin-top:40px;padding:24px 0 32px;font-size:10px;display:flex}footer span{letter-spacing:0}.overlay{z-index:10;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0009;place-items:center;padding:20px;display:grid;position:fixed;top:0;right:0;bottom:0;left:0}.modal{background:var(--surface);border:1px solid var(--border);border-radius:16px;width:min(440px,100%);padding:28px;box-shadow:0 20px 80px #0005}.modal h2{margin:0 0 24px;font-size:20px}.promotion{gap:10px;margin-bottom:20px;display:flex}.promotion button{aspect-ratio:1;width:25%;padding:3px}.modal-actions{gap:12px;display:flex}.modal-actions>button{flex:1}.modal-actions .primary{width:auto}[data-theme=light]{--surface:#fffdf6;--border:#d8dece;--muted:#6b7769;--text:#273327;--accent:#55733a;color:var(--text);color-scheme:light;background:#f1f2e9}[data-theme=light] .primary{color:#fff}[data-theme=light] .latest{color:#4d6e30}@media(max-width:800px){.shell{padding:0 18px}.layout{grid-template-columns:1fr;gap:8px}.play-area{width:100%;max-width:650px;margin:auto}aside{grid-template-columns:1fr 1fr;gap:12px;padding-top:10px;display:grid}.panel{margin:0}.moves{grid-row:span 2}.primary{align-self:start}.error{grid-column:1/-1}h1{font-size:30px}.intro{padding-top:28px}.edition{display:none}header{height:76px}.brand{letter-spacing:1px;gap:7px;font-size:13px}.preferences{gap:7px}.board{border-width:3px}footer{margin-top:25px}.status{padding:18px}.actions{grid-template-columns:1fr}.move-scroll{height:250px}}@media(max-width:430px){aside{grid-template-columns:1fr}.moves{grid-row:auto}.move-scroll{height:170px}.actions{grid-template-columns:1fr 1fr}.shell{padding:0 12px}.rank,.file{font-size:9px}.brand svg{width:22px}select{font-size:12px}.status h2{font-size:20px}footer span{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}.board{border-color:#d6a6bb;border-radius:9px;box-shadow:0 12px 38px #28101c40,0 0 0 1px #eab6ca66}.light-square{color:#934763;background:linear-gradient(135deg,#fff4f7,#fce8ef)}.dark-square{color:#874762;background:linear-gradient(135deg,#f0cbdc,#e4b4ca)}.square.last{box-shadow:inset 0 0 0 50px #fff3ba44}.square.selected{background:linear-gradient(135deg,#f9d9e9,#efbfd7);box-shadow:inset 0 0 0 3px #8c3c69}.square.checked{background:radial-gradient(#ffb4ac,#b83b60)}.legal-dot{background:#7b355e66}.capture-ring{border-color:#7b355e88}.piece-wrap{width:94%;height:94%}.piece{filter:drop-shadow(1px 3px 1.5px #4a263755)}.shell{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right));padding-bottom:env(safe-area-inset-bottom)}.play-area,aside{min-width:0}.board{grid-template-rows:repeat(8,minmax(0,1fr));width:100%}.square{touch-action:manipulation;-webkit-user-select:none;user-select:none;min-width:0;min-height:0}.piece-wrap{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.modal{max-height:calc(100dvh - 40px);overflow:auto}@media(min-width:601px)and (max-width:1023px){.shell{max-width:820px}header{height:72px}.intro{padding:22px 0 12px}h1{font-size:30px}.edition{display:none}.layout{grid-template-columns:minmax(0,1fr);gap:12px}.play-area{width:100%;max-width:700px;margin-inline:auto}.player{height:48px}aside{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding-top:0;display:grid}.panel{margin:0}.status{grid-area:1/1;padding:18px}.moves{grid-area:1/2/span 3}.actions{grid-area:2/1;grid-template-columns:1fr 1fr}aside>.primary{grid-area:3/1;align-self:start}.move-scroll{height:240px}.error{grid-column:1/-1;margin:0}footer{margin-top:20px}}@media(min-width:1024px)and (max-width:1400px)and (max-height:1100px){.shell{max-width:1180px}header{height:64px}.intro{padding:18px 0 10px}h1{font-size:28px}.layout{grid-template-columns:minmax(0,1fr) minmax(280px,.56fr);gap:24px}.play-area{width:100%;max-width:min(650px,100dvh - 230px);margin-inline:auto}.player{height:44px}aside{padding-top:44px}.status{padding:18px}.panel{margin-bottom:12px}.move-scroll{height:clamp(130px,21dvh,210px)}footer{margin-top:20px;padding-top:16px}}@media(pointer:coarse){button:not(.square),select{min-height:44px}.icon{min-width:44px}.actions button{font-size:14px}.preferences select{font-size:16px}.board-footer{gap:12px;font-size:12px}.promotion button{min-height:60px}}@media(max-width:600px){.shell{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}@media(orientation:portrait)and (max-width:1100px){.layout{flex-direction:column;gap:12px;display:flex}.play-area{order:2;width:100%;max-width:700px;margin-inline:auto}aside{display:contents}aside>.status{order:1;width:100%;margin:0}aside>.moves{order:3;width:100%;margin:0}aside>.actions{order:4;grid-template-columns:1fr 1fr;width:100%;margin:0}aside>.primary{order:5;width:100%}aside>.error{order:6;width:100%;margin:0}.move-scroll{height:170px}}.layout>.status{flex-wrap:wrap;order:0;grid-area:auto/1/auto/-1;align-items:center;gap:6px 16px;width:100%;margin:0;padding:10px 14px;display:flex}.layout>.status .eyebrow{letter-spacing:1px;margin:0;font-size:10px}.layout>.status h2{margin:0;font-size:18px;line-height:1.3}.layout>.status>p:last-child{flex-basis:100%;font-size:11px;line-height:1.4}.panel-title{padding:10px 14px}.move-scroll{height:140px}.actions{gap:2px;padding:6px}.actions button{padding:8px;font-size:12px}.empty{gap:4px}.empty p{margin:0}.empty svg{width:24px;height:24px}aside{padding-top:0}@media(max-width:1023px),(orientation:portrait){.layout{flex-direction:column;gap:10px;display:flex}.layout>.status{order:0}.play-area{order:2;width:100%;max-width:700px;margin-inline:auto}aside{display:contents}aside>.moves{order:3;width:100%;margin:0}aside>.actions{order:4;grid-template-columns:1fr 1fr;width:100%;margin:0}aside>.primary{order:5;width:100%}aside>.error{order:6;width:100%;margin:0}.move-scroll{height:110px}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}
