.chess-shell{color:#e9e0cd;background:radial-gradient(at 8% 10%,#69522632,#0000 34%),radial-gradient(at 90% 26%,#1f5c6940,#0000 42%),#101e28;min-height:100vh}.chess-shell .site-header{border-color:#c2ab7733}.chess-shell .brand{color:#f2e8d4}.chess-shell .nav-link{color:#bdc9cd}.chess-shell .nav-link.active,.chess-shell .nav-link:hover{color:#e8c684;background:#25343c}.chess-shell .login-button,.chess-shell .account-avatar{color:#eee0c7;background:#293d45;border-color:#537078}.chess-shell .nav-link:focus-visible{outline-offset:3px;outline:2px solid #e2c07e}.chess-intro,.chess-arena,.hall-of-victories,.chess-credits{width:min(1180px,100% - 48px);margin:auto}.chess-intro{justify-content:space-between;align-items:center;gap:30px;padding:50px 0 35px;display:flex}.chess-eyebrow{color:#d0b477;text-transform:uppercase;letter-spacing:.13em;align-items:center;gap:9px;margin-bottom:16px;font-size:.8125rem;font-weight:650;line-height:1.6;display:flex}.chess-intro h1{letter-spacing:-.025em;color:#f5ead5;margin:0 0 18px;font-family:Georgia,serif;font-size:clamp(2.5rem,4.4vw,4rem);font-weight:500;line-height:1.12}.chess-intro h1 span{color:#d7bd85}.chess-intro>div>p:last-child{color:#b1c1c7;font-size:1.0625rem;line-height:1.7}.chess-difficulty{color:#dfc386;background:#172832;border:1px solid #c4a66c55;border-radius:18px;flex-shrink:0;align-items:center;gap:13px;padding:18px 23px;display:flex}.chess-difficulty strong{font-size:1.05rem;font-weight:650;display:block}.chess-difficulty span{color:#b4c4ca;margin-top:5px;font-size:.875rem;display:block}.chess-arena{grid-template-columns:minmax(0,720px) minmax(270px,1fr);align-items:start;gap:32px;display:grid}.chess-player{align-items:center;gap:13px;padding:7px 2px 18px;display:flex}.chess-player img{object-fit:cover;object-position:50% 24%;border:1px solid #c8ae76;border-radius:50%}.chess-player strong{color:#f2e9d5;font-size:1rem;display:block}.chess-player div>span{color:#aebfc6;margin-top:3px;font-size:.875rem;display:block}.player-state{color:#ddc18a;background:#2b3437;border-radius:30px;margin-left:auto;padding:7px 12px;font-size:.8125rem}.player-state.thinking{animation:1.8s ease-in-out infinite gentle-pulse}.chess-board-frame{background:linear-gradient(135deg,#ad8e52,#695330 25%,#c0a369 55%,#76603c);border:1px solid #d0b47b;border-radius:11px;padding:12px;box-shadow:0 20px 65px #0006,inset 0 0 0 3px #342e25}.chess-board{aspect-ratio:1;border:2px solid #302e2a;border-radius:3px;grid-template-columns:repeat(8,minmax(0,1fr));display:grid;overflow:hidden}.chess-square{aspect-ratio:1;cursor:pointer;touch-action:manipulation;isolation:isolate;border:0;justify-content:center;align-items:center;min-width:0;padding:0;transition:background .15s,box-shadow .15s;display:flex;position:relative}.chess-square:disabled{cursor:default;opacity:1}.light-square{background:#d8c9ad}.dark-square{background:#4b6165}.chess-square:focus-visible{outline-offset:-4px;z-index:2;outline:3px solid #f4c759}.chess-square:not(:disabled):hover{box-shadow:inset 0 0 0 4px #d5ab6680}.chess-square.selected-square{background:#be9753;box-shadow:inset 0 0 0 4px #eed797}.light-square.last-square{background:#dac38b}.dark-square.last-square{background:#7f8456}.chess-square.checked-square{background:#b86960}.chess-piece{pointer-events:none;z-index:1;-webkit-user-select:none;user-select:none;font-family:Segoe UI Symbol,DejaVu Sans,serif;font-size:clamp(2.2rem,5.6vw,4.65rem);line-height:1;transition:transform .2s;position:relative}.white-piece{color:#fffaeb;-webkit-text-stroke:1px #78654c;text-shadow:1px 3px #907957,0 5px 7px #192b3350}.black-piece{color:#17252d;-webkit-text-stroke:.65px #9babb0;text-shadow:1px 3px #0b1720,0 5px 7px #0006}.selected-square .chess-piece{transform:translateY(-4px)scale(1.07)}.legal-dot{z-index:2;background:#244b54a8;border-radius:50%;width:22%;height:22%;position:absolute;box-shadow:0 0 0 2px #f7efcc33}.capture-ring{z-index:2;border:4px solid #e8c66c;border-radius:50%;position:absolute;inset:4px}.rank-label,.file-label{pointer-events:none;color:#334950;font-family:system-ui,sans-serif;font-size:.75rem;font-weight:650;line-height:1;position:absolute}.dark-square .rank-label,.dark-square .file-label{color:#e4d7b9}.rank-label{top:4px;left:4px}.file-label{bottom:3px;right:4px}.you-player{padding:18px 2px 7px}.you-mark{color:#4f422a;background:#e3cfaa;border-radius:50%;justify-content:center;align-items:center;width:43px;height:43px;display:flex}.board-flip{color:#c9d2d2;cursor:pointer;background:#1a2c37;border:1px solid #4b606a;border-radius:13px;justify-content:center;align-items:center;width:43px;height:43px;margin-left:auto;display:inline-flex}:is(.board-flip:focus-visible,.chess-action:focus-visible){outline-offset:4px;outline:2px solid #ebd098}.chess-sidebar{flex-direction:column;gap:18px;padding-top:5px;display:flex}.chess-status-panel,.opening-panel,.move-panel{background:#182b35;border:1px solid #47606b88;border-radius:20px}.chess-status-panel{padding:27px}.chess-status-panel h2{color:#f1e5cb;min-height:2.5em;margin:0 0 17px;font-family:Georgia,serif;font-size:1.6rem;font-weight:500;line-height:1.25}.chess-status-panel>p:not(.chess-eyebrow){color:#b5c5cc;font-size:.9375rem;line-height:1.75}.chess-controls{flex-direction:column;gap:10px;margin-top:24px;display:flex}.chess-action{color:#e1e4dc;cursor:pointer;background:#213641;border:1px solid #536973;border-radius:12px;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:11px 17px;font-family:inherit;font-size:.9375rem;font-weight:650;line-height:1.4;text-decoration:none;transition:background .15s;display:inline-flex}.chess-action:hover:not(:disabled){background:#304751}.chess-action:disabled{opacity:.5;cursor:not-allowed}.gold-action{color:#292920;background:#d6b97c;border-color:#e6cb95}.gold-action:hover:not(:disabled){background:#e4cb97}.quiet-action{color:#b9c9d0;background:0 0;border-color:#0000}.engine-loading{color:#d2bf91;margin-top:17px;font-size:.875rem;animation:2s ease-in-out infinite gentle-pulse}.opening-panel{color:#d8bd81;align-items:flex-start;gap:13px;padding:21px;display:flex}.opening-panel>svg{flex-shrink:0;margin-top:2px}.opening-panel p{color:#ece1c8;font-size:.9375rem;line-height:1.5}.opening-panel span{color:#a9bec8;margin-top:8px;font-size:.8125rem;display:block}.move-panel{padding:22px}.move-panel>div:first-child{justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px;display:flex}.move-panel h3{color:#e4d8bd;font-family:Georgia,serif;font-size:1.2rem;font-weight:500}.move-panel>div>span{color:#a9bec8;font-size:.8125rem}.move-scroll{scrollbar-width:thin;scrollbar-color:#526c76 #1a2c37;border-top:1px solid #40576466;height:200px;overflow:auto}.move-scroll:focus-visible{outline-offset:4px;outline:2px solid #cdb27d}.move-row{border-bottom:1px solid #40576455;grid-template-columns:35px 1fr 1fr;gap:12px;padding:10px 3px;font-size:.9375rem;display:grid}.move-row span{color:#9eb7c2}.move-row strong{color:#dfddd2;font-weight:600}.empty-chronicle{text-align:center;color:#a9bec8;padding:35px 0;font-family:Georgia,serif;font-size:1.05rem;line-height:1.7}.hall-of-victories{padding:65px 0 30px}.hall-heading{justify-content:space-between;align-items:center;gap:20px;display:flex}.hall-heading h2{color:#f0e6cf;font-family:Georgia,serif;font-size:clamp(2rem,3vw,2.7rem);font-weight:500;line-height:1.2}.hall-intro{color:#b1c4cd;max-width:600px;margin:18px 0 28px;font-size:1rem;line-height:1.8}.empty-victories{text-align:center;color:#d5b97d;background:#182b3599;border:1px dashed #738078;border-radius:22px;padding:40px 24px}.empty-victories svg{margin:0 auto 16px}.empty-victories h3{color:#e8ddc4;font-family:Georgia,serif;font-size:1.55rem;font-weight:500}.empty-victories p{color:#acc1cb;margin-top:13px;font-size:1rem}.victory-grid{grid-template-columns:repeat(3,1fr);gap:23px;display:grid}.victory-card{background:#182c36;border:1px solid #4a626d;border-radius:19px;overflow:hidden}.victory-card img{width:100%;height:auto;display:block}.victory-card>div{padding:22px}.victory-card h3{color:#f2e6cb;overflow-wrap:anywhere;font-family:Georgia,serif;font-size:1.4rem;font-weight:500;line-height:1.3}.victory-card p{color:#aac1ca;margin:10px 0 17px;font-size:.875rem}.victory-card a:not(:has(img)){color:#d8bd81;align-items:center;gap:7px;font-size:.875rem;display:inline-flex}.community-note{color:#9fb9c7;max-width:850px;margin:22px 0 0;font-size:.875rem;line-height:1.7}.chess-credits{color:#9fb9c7;border-top:1px solid #49616d66;padding:24px 0 36px;font-size:.8125rem;line-height:1.9}.chess-credits a{color:#d8bc83;text-underline-offset:3px;text-decoration:underline}.chess-credits p+p{margin-top:8px}.chess-footer{color:#9fb9c7;border-color:#49616d66}.chess-dialog,.victory-dialog{color:#eee4cc;background:#182b35;border:1px solid #76928d;border-radius:23px;width:calc(100% - 32px);max-width:540px;max-height:90dvh;padding:29px;overflow:auto;box-shadow:0 30px 100px #0008}.chess-dialog [data-slot=dialog-title],.victory-title{color:#f5e9ce;font-family:Georgia,serif;font-size:1.85rem;font-weight:500;line-height:1.2}.chess-dialog [data-slot=dialog-description],.victory-description{color:#b7cbd3;font-size:.9375rem;line-height:1.7}.chess-instructions{color:#c7d5d8;padding-left:22px;font-size:1rem;line-height:1.7;list-style:decimal}.chess-instructions li{margin:13px 0}.chess-dialog [data-slot=dialog-close],.victory-dialog [data-slot=dialog-close]{color:#dfd6c3}.winner-actions{justify-content:flex-end;align-items:center;gap:12px;margin-top:17px;display:flex}.chess-error{color:#f4c7cb;background:#402c32;border:1px solid #985a65;border-radius:12px;margin-top:14px;padding:13px;font-size:.9375rem;line-height:1.7}.chess-error .chess-action{margin-top:12px}.promotion-options{grid-template-columns:1fr 1fr;gap:12px;margin-top:12px;display:grid}.promotion-options button{text-transform:capitalize;flex-direction:column}.promotion-options span{font-family:Segoe UI Symbol,serif;font-size:3rem;line-height:1.3}.victory-dialog{text-align:center;max-width:520px;position:fixed}.victory-emblem{color:#302c22;background:#d7bb7d;border:5px solid #ab925b;border-radius:50%;justify-content:center;align-items:center;width:74px;height:74px;margin:8px auto 5px;display:flex;box-shadow:0 0 40px #d3b26650}.victory-preview{border:1px solid #9a895f;border-radius:12px;width:205px;height:auto;margin:4px auto 12px}.victory-title,.victory-description{text-align:center}.winner-form{text-align:left}.winner-form label{color:#e5dabe;margin:5px 0 9px;font-size:.9375rem;font-weight:650;display:block}.winner-form input{color:#f5eddc;background:#11242f;border:1px solid #728f94;border-radius:12px;outline:none;width:100%;min-height:48px;padding:11px 14px;font-size:1rem}.winner-form input:focus{border-color:#e0c58a;box-shadow:0 0 0 3px #d7b97420}.winner-input-note{color:#a6bec9;justify-content:space-between;gap:15px;margin-top:7px;font-size:.8125rem;display:flex}.winner-consent{color:#b5cad2;margin:14px 0 0;font-size:.875rem;line-height:1.7}.victory-published p{color:#dbe8cb;overflow-wrap:anywhere;justify-content:center;align-items:center;gap:8px;font-size:1rem;line-height:1.7;display:flex}.victory-published a{margin:17px auto 5px}.victory-sparks{pointer-events:none;color:#e2c171;justify-content:space-between;display:flex;position:absolute;inset:24px 38px auto}.victory-sparks svg{width:16px;animation:2s ease-in-out infinite victory-shimmer}.victory-sparks svg:nth-child(2){animation-delay:.6s;transform:translateY(35px)}.victory-sparks svg:nth-child(3){animation-delay:1.2s}@keyframes gentle-pulse{50%{opacity:.65}}@keyframes victory-shimmer{50%{opacity:.4;filter:drop-shadow(0 0 8px #f3d58d)}}@media (max-width:950px){.chess-arena{grid-template-columns:minmax(0,1fr) 290px;gap:20px}.chess-status-panel{padding:22px}.chess-piece{font-size:clamp(2rem,5.8vw,4.65rem)}}@media (max-width:760px){.chess-intro{flex-direction:column;align-items:flex-start;gap:22px;padding-top:35px}.chess-difficulty{padding:12px 17px}.chess-arena{grid-template-columns:1fr}.board-column{width:100%;max-width:650px;margin:auto}.chess-sidebar{grid-template-columns:1fr 1fr;gap:16px;display:grid}.chess-status-panel{grid-row:span 2}.move-scroll{height:150px}.chess-piece{font-size:clamp(2rem,9vw,4.65rem)}.victory-grid{grid-template-columns:1fr 1fr}.chess-board-frame{padding:9px}.hall-of-victories{padding-top:42px}.chess-intro,.chess-arena,.hall-of-victories,.chess-credits{width:calc(100% - 32px)}}@media (max-width:500px){.chess-sidebar{grid-template-columns:1fr}.chess-status-panel{grid-row:auto}.chess-controls{flex-flow:wrap}.chess-controls button{flex:1;min-width:130px}.chess-status-panel h2{min-height:0}.chess-status-panel,.opening-panel,.move-panel{border-radius:17px}.chess-board-frame{padding:6px}.rank-label,.file-label{font-size:.6875rem}.chess-player div>span{font-size:.8125rem}.player-state{padding:6px 9px;font-size:.75rem}.chess-intro h1{font-size:2.55rem}.victory-grid{grid-template-columns:1fr}.hall-heading{align-items:flex-end}.hall-heading .chess-eyebrow{letter-spacing:.08em;font-size:.75rem}.hall-heading .chess-action{padding:10px 13px}.winner-actions{flex-wrap:wrap}.winner-actions button{flex:1;min-width:115px}.chess-dialog,.victory-dialog{padding:24px}.victory-preview{width:160px}.winner-input-note{font-size:.8125rem}}@media (prefers-reduced-motion:reduce){.chess-shell *,.chess-dialog *,.victory-dialog *{transition:none!important;animation:none!important}}
