/*! tailwindcss v4.2.2 | 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;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, 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;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-bold:700;--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%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, 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;-webkit-text-decoration:inherit;-webkit-text-decoration: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{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]){appearance:button}::file-selector-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{.static{position:static}.end{inset-inline-end:var(--spacing)}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.block{display:block}.grid{display:grid}.inline-flex{display:inline-flex}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-full{height:100%}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-full{width:100%}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.items-center{align-items:center}.justify-center{justify-content:center}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{color:#e2e8f0;background-color:#0f0f1a;width:100%;height:100%;font-family:Inter,system-ui,sans-serif;overflow:hidden}.app-layout{width:100%;height:100%;display:flex}.game-area{flex:1;position:relative;overflow:hidden}#game-canvas{width:100%;height:100%;display:block}.game-hud{background:linear-gradient(#1a1a2e 0%,#16161f 100%);border-left:1px solid #ffffff14;flex-direction:column;gap:12px;width:280px;height:100%;padding:16px;display:flex;overflow:hidden}.hud-section{background:#ffffff0a;border:1px solid #ffffff0f;border-radius:10px;padding:12px}.hud-section--grow{flex-direction:column;flex:1;min-height:0;display:flex}.turn-indicator{align-items:center;gap:12px;display:flex}.turn-dot{border-radius:50%;flex-shrink:0;width:14px;height:14px;animation:1.5s infinite pulse-dot}.turn-dot--red{background:#ef4444;box-shadow:0 0 12px #ef444480}.turn-dot--black{background:#6366f1;box-shadow:0 0 12px #6366f180}@keyframes pulse-dot{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(.85)}}.turn-info{flex-direction:column;gap:2px;display:flex}.turn-label{color:#f1f5f9;font-size:15px;font-weight:600}.thinking-text{color:#94a3b8;font-size:12px;animation:1s steps(2,start) infinite blink}.check-text{color:#f59e0b;font-size:12px;font-weight:600}.checkmate-text{color:#ef4444;font-size:12px;font-weight:700}@keyframes blink{to{visibility:hidden}}.captured-section{flex-direction:column;gap:8px;display:flex}.captured-row{align-items:center;gap:8px;display:flex}.captured-label{color:#94a3b8;flex-shrink:0;width:55px;font-size:11px}.captured-pieces{flex-wrap:wrap;gap:3px;display:flex}.captured-empty{color:#475569;font-size:12px}.section-title{color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;flex-shrink:0;margin-bottom:8px;font-size:13px;font-weight:600}.move-history{flex:1;min-height:0;overflow-y:auto}.move-empty{color:#475569;text-align:center;padding:20px 0;font-size:13px}.move-table{border-collapse:collapse;width:100%;font-size:13px}.move-table thead th{color:#64748b;text-align:center;background:#1a1a2ef2;border-bottom:1px solid #ffffff0f;padding:4px 6px;font-size:11px;font-weight:500;position:sticky;top:0}.move-table tbody tr{border-bottom:1px solid #ffffff08}.move-table tbody tr:hover{background:#ffffff08}.move-row--latest{background:#6366f11a!important}.move-num{color:#475569;text-align:center;width:30px;padding:4px}.move-cell{text-align:center;color:#cbd5e1;padding:4px 6px;font-family:Noto Serif SC,serif}.move-cell--check{color:#f59e0b;font-weight:600}.hud-controls{gap:8px;display:flex}.hud-btn{cursor:pointer;border:none;border-radius:8px;flex:1;padding:10px 14px;font-family:Inter,system-ui,sans-serif;font-size:13px;font-weight:600;transition:all .2s}.hud-btn--primary{color:#fff;background:linear-gradient(135deg,#6366f1,#4f46e5);box-shadow:0 2px 8px #6366f14d}.hud-btn--primary:hover{background:linear-gradient(135deg,#818cf8,#6366f1);transform:translateY(-1px);box-shadow:0 4px 16px #6366f166}.hud-btn--secondary{color:#cbd5e1;background:#ffffff0f;border:1px solid #ffffff1a}.hud-btn--secondary:hover{background:#ffffff1a;border-color:#fff3;transform:translateY(-1px)}.hud-btn:active{transform:translateY(0)}.dialog-overlay{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:100;background:#0009;justify-content:center;align-items:center;animation:.3s fadeIn;display:flex;position:absolute;inset:0}.dialog-card{text-align:center;background:linear-gradient(135deg,#1e1e2e,#2a2a3e);border:1px solid #ffffff1a;border-radius:20px;min-width:320px;padding:40px;animation:.3s scaleIn;box-shadow:0 20px 60px #00000080,0 0 40px #6366f11a}.dialog-emoji{margin-bottom:16px;font-size:64px;animation:.5s .2s both bounceIn}.dialog-title{color:#f1f5f9;margin-bottom:8px;font-size:28px;font-weight:700}.dialog-subtitle{color:#94a3b8;margin-bottom:28px;font-size:15px}.dialog-actions{justify-content:center;gap:12px;display:flex}.dialog-btn{min-width:120px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes scaleIn{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@keyframes bounceIn{0%{opacity:0;transform:scale(0)}60%{transform:scale(1.15)}to{opacity:1;transform:scale(1)}}.lobby{color:#e2e8f0;background:#0f0f1a;flex-direction:column;justify-content:center;align-items:center;gap:16px;width:100%;height:100%;display:flex}.lobby-title{color:#e8c56d;letter-spacing:.1em;font-family:Noto Serif SC,serif;font-size:3rem;font-weight:800}.lobby-subtitle{color:#88a;margin-top:-8px;margin-bottom:8px;font-size:1rem}.lobby-tabs{background:#ffffff0d;border-radius:10px;gap:4px;padding:4px;display:flex}.lobby-tab{color:#88a;cursor:pointer;background:0 0;border:none;border-radius:8px;padding:8px 24px;font-size:.9rem;font-weight:600;transition:all .2s}.lobby-tab--active{color:#e2e8f0;background:#ffffff1a}.lobby-panel{background:#ffffff0a;border:1px solid #ffffff14;border-radius:12px;flex-direction:column;align-items:center;gap:12px;min-width:320px;padding:24px;display:flex}.lobby-desc{color:#88a;font-size:.9rem}.lobby-input{color:#e2e8f0;text-align:center;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:8px;outline:none;width:100%;padding:10px 16px;font-size:.95rem;transition:border-color .2s}.lobby-input:focus{border-color:#e8c56d}.lobby-input--room{flex:1}.lobby-row{gap:8px;width:100%;display:flex}.lobby-divider{color:#5a5a7a;text-align:center;width:100%;font-size:.8rem;position:relative}.lobby-divider:before,.lobby-divider:after{content:"";background:#ffffff14;width:35%;height:1px;position:absolute;top:50%}.lobby-divider:before{left:0}.lobby-divider:after{right:0}.lobby-buttons{gap:12px;width:100%;display:flex}.lobby-btn{cursor:pointer;border:none;border-radius:8px;flex:1;padding:10px 20px;font-size:.9rem;font-weight:600;transition:all .2s}.lobby-btn--red{color:#fff;background:#b22222}.lobby-btn--red:hover{background:#c33}.lobby-btn--black{color:#e2e8f0;background:#1a1a2e;border:1px solid #ffffff26}.lobby-btn--black:hover{background:#2a2a3e}.lobby-btn--join{color:#fff;white-space:nowrap;background:#2563eb;flex:0}.lobby-btn--join:hover{background:#3b82f6}.lobby-btn--create{color:#fff;background:#16a34a}.lobby-btn--create:hover{background:#22c55e}.lobby-btn--back{color:#88a;background:#ffffff14;margin-top:12px}.lobby-btn--back:hover{background:#ffffff1f}.lobby-error{color:#f87171;font-size:.85rem}.waiting-spinner{border:3px solid #ffffff1a;border-top-color:#e8c56d;border-radius:50%;width:32px;height:32px;margin:12px 0;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.room-info{align-items:center;gap:8px;font-size:.85rem;display:flex}.room-label{color:#88a}.room-id{color:#e8c56d;background:#e8c56d1a;border-radius:4px;padding:2px 8px;font-family:monospace}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#3a3a5a;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#5a5a7a}@media (width<=768px){.app-layout{flex-direction:column}.game-area{flex:1;min-height:0}.game-hud{border-top:1px solid #ffffff14;border-left:none;flex-direction:row;gap:8px;width:100%;height:220px;padding:10px;overflow-x:auto}.hud-section{flex-shrink:0;min-width:200px}.hud-section--grow{min-width:250px}}@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}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
