._verified_lvyh0_1{margin-left:.125rem;max-width:20px;max-height:20px;height:1.25em;fill:currentColor;-webkit-user-select:none;user-select:none;vertical-align:text-bottom}._root_98iqw_1{width:100%;min-width:250px;max-width:550px;overflow:hidden;color:var(--tweet-font-color);font-family:var(--tweet-font-family);font-weight:400;box-sizing:border-box;border:var(--tweet-border);border-radius:12px;margin:var(--tweet-container-margin);background-color:var(--tweet-bg-color);transition-property:background-color,box-shadow;transition-duration:.2s}._root_98iqw_1:hover{background-color:var(--tweet-bg-color-hover)}._article_98iqw_21{position:relative;box-sizing:inherit;padding:.75rem 1rem}.react-tweet-theme{--tweet-container-margin: 1.5rem 0;--tweet-header-font-size: .9375rem;--tweet-header-line-height: 1.25rem;--tweet-body-font-size: 1.25rem;--tweet-body-font-weight: 400;--tweet-body-line-height: 1.5rem;--tweet-body-margin: 0;--tweet-quoted-container-margin: .75rem 0;--tweet-quoted-body-font-size: .938rem;--tweet-quoted-body-font-weight: 400;--tweet-quoted-body-line-height: 1.25rem;--tweet-quoted-body-margin: .25rem 0 .75rem 0;--tweet-info-font-size: .9375rem;--tweet-info-line-height: 1.25rem;--tweet-actions-font-size: .875rem;--tweet-actions-line-height: 1rem;--tweet-actions-font-weight: 700;--tweet-actions-icon-size: 1.25em;--tweet-actions-icon-wrapper-size: calc( var(--tweet-actions-icon-size) + .75em );--tweet-replies-font-size: .875rem;--tweet-replies-line-height: 1rem;--tweet-replies-font-weight: 700}:where(.react-tweet-theme) *{margin:0;padding:0;box-sizing:border-box}:is([data-theme=light],.light) :where(.react-tweet-theme),:where(.react-tweet-theme){--tweet-skeleton-gradient: linear-gradient( 270deg, #fafafa, #eaeaea, #eaeaea, #fafafa );--tweet-border: 1px solid rgb(207, 217, 222);--tweet-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--tweet-font-color: rgb(15, 20, 25);--tweet-font-color-secondary: rgb(83, 100, 113);--tweet-bg-color: #fff;--tweet-bg-color-hover: rgb(247, 249, 249);--tweet-quoted-bg-color-hover: rgba(0, 0, 0, .03);--tweet-color-blue-primary: rgb(29, 155, 240);--tweet-color-blue-primary-hover: rgb(26, 140, 216);--tweet-color-blue-secondary: rgb(0, 111, 214);--tweet-color-blue-secondary-hover: rgba(0, 111, 214, .1);--tweet-color-red-primary: rgb(249, 24, 128);--tweet-color-red-primary-hover: rgba(249, 24, 128, .1);--tweet-color-green-primary: rgb(0, 186, 124);--tweet-color-green-primary-hover: rgba(0, 186, 124, .1);--tweet-twitter-icon-color: var(--tweet-font-color);--tweet-verified-old-color: rgb(130, 154, 171);--tweet-verified-blue-color: var(--tweet-color-blue-primary)}:is([data-theme=dark],.dark) :where(.react-tweet-theme){--tweet-skeleton-gradient: linear-gradient( 270deg, #15202b, rgb(30, 39, 50), rgb(30, 39, 50), rgb(21, 32, 43) );--tweet-border: 1px solid rgb(66, 83, 100);--tweet-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--tweet-font-color: rgb(247, 249, 249);--tweet-font-color-secondary: rgb(139, 152, 165);--tweet-bg-color: rgb(21, 32, 43);--tweet-bg-color-hover: rgb(30, 39, 50);--tweet-quoted-bg-color-hover: rgba(255, 255, 255, .03);--tweet-color-blue-primary: rgb(29, 155, 240);--tweet-color-blue-primary-hover: rgb(26, 140, 216);--tweet-color-blue-secondary: rgb(107, 201, 251);--tweet-color-blue-secondary-hover: rgba(107, 201, 251, .1);--tweet-color-red-primary: rgb(249, 24, 128);--tweet-color-red-primary-hover: rgba(249, 24, 128, .1);--tweet-color-green-primary: rgb(0, 186, 124);--tweet-color-green-primary-hover: rgba(0, 186, 124, .1);--tweet-twitter-icon-color: var(--tweet-font-color);--tweet-verified-old-color: rgb(130, 154, 171);--tweet-verified-blue-color: #fff}@media (prefers-color-scheme: dark){:where(.react-tweet-theme){--tweet-skeleton-gradient: linear-gradient( 270deg, #15202b, rgb(30, 39, 50), rgb(30, 39, 50), rgb(21, 32, 43) );--tweet-border: 1px solid rgb(66, 83, 100);--tweet-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--tweet-font-color: rgb(247, 249, 249);--tweet-font-color-secondary: rgb(139, 152, 165);--tweet-bg-color: rgb(21, 32, 43);--tweet-bg-color-hover: rgb(30, 39, 50);--tweet-color-blue-primary: rgb(29, 155, 240);--tweet-color-blue-primary-hover: rgb(26, 140, 216);--tweet-color-blue-secondary: rgb(107, 201, 251);--tweet-color-blue-secondary-hover: rgba(107, 201, 251, .1);--tweet-color-red-primary: rgb(249, 24, 128);--tweet-color-red-primary-hover: rgba(249, 24, 128, .1);--tweet-color-green-primary: rgb(0, 186, 124);--tweet-color-green-primary-hover: rgba(0, 186, 124, .1);--tweet-twitter-icon-color: var(--tweet-font-color);--tweet-verified-old-color: rgb(130, 154, 171);--tweet-verified-blue-color: #fff}}._header_nqq4j_1{display:flex;padding-bottom:.75rem;line-height:var(--tweet-header-line-height);font-size:var(--tweet-header-font-size);white-space:nowrap;overflow-wrap:break-word;overflow:hidden}._avatar_nqq4j_11{position:relative;height:48px;width:48px}._avatarOverflow_nqq4j_16{height:100%;width:100%;position:absolute;overflow:hidden;border-radius:9999px}._avatarSquare_nqq4j_23{border-radius:4px}._avatarShadow_nqq4j_26{height:100%;width:100%;transition-property:background-color;transition-duration:.2s;box-shadow:#00000008 0 0 2px inset}._avatarShadow_nqq4j_26:hover{background-color:#1a1a1a26}._author_nqq4j_37{max-width:calc(100% - 84px);display:flex;flex-direction:column;justify-content:center;margin:0 .5rem}._authorLink_nqq4j_44{text-decoration:none;color:inherit;display:flex;align-items:center}._authorLink_nqq4j_44:hover{text-decoration-line:underline}._authorVerified_nqq4j_53{display:inline-flex}._authorLinkText_nqq4j_56{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._authorMeta_nqq4j_63,._authorFollow_nqq4j_66{display:flex}._username_nqq4j_69{color:var(--tweet-font-color-secondary);text-decoration:none;text-overflow:ellipsis}._follow_nqq4j_74{color:var(--tweet-color-blue-secondary);text-decoration:none;font-weight:700}._follow_nqq4j_74:hover{text-decoration-line:underline}._separator_nqq4j_82{padding:0 .25rem}._brand_nqq4j_86{margin-inline-start:auto}._twitterIcon_nqq4j_90{width:23.75px;height:23.75px;color:var(--tweet-twitter-icon-color);fill:currentColor;-webkit-user-select:none;user-select:none}._verifiedOld_lcna5_1{color:var(--tweet-verified-old-color)}._verifiedBlue_lcna5_4{color:var(--tweet-verified-blue-color)}._verifiedGovernment_lcna5_7{color:#829aab}._root_1ec15_1{text-decoration:none;color:var(--tweet-font-color-secondary);font-size:.9375rem;line-height:1.25rem;margin-bottom:.25rem;overflow-wrap:break-word;white-space:pre-wrap}._root_1ec15_1:hover{text-decoration-thickness:1px;text-decoration-line:underline}._root_eihfa_1{font-weight:inherit;color:var(--tweet-color-blue-secondary);text-decoration:none;cursor:pointer}._root_eihfa_1:hover{text-decoration-thickness:1px;text-decoration-line:underline}._root_1xq52_1{font-size:var(--tweet-body-font-size);font-weight:var(--tweet-body-font-weight);line-height:var(--tweet-body-line-height);margin:var(--tweet-body-margin);overflow-wrap:break-word;white-space:pre-wrap}._root_g9tkv_1{margin-top:.75rem;overflow:hidden;position:relative}._rounded_g9tkv_6{border:var(--tweet-border);border-radius:12px}._mediaWrapper_g9tkv_10{display:grid;grid-auto-rows:1fr;gap:2px;height:100%;width:100%}._grid2Columns_g9tkv_17{grid-template-columns:repeat(2,1fr)}._grid3_g9tkv_20>a:first-child{grid-row:span 2}._grid2x2_g9tkv_23{grid-template-rows:repeat(2,1fr)}._mediaContainer_g9tkv_26{position:relative;height:100%;width:100%;display:flex;align-items:center;justify-content:center}._mediaLink_g9tkv_34{text-decoration:none;outline-style:none}._skeleton_g9tkv_38{padding-bottom:56.25%;width:100%;display:block}._image_g9tkv_43{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;margin:0;object-fit:cover;object-position:center}._anchor_fp31d_1{display:flex;align-items:center;color:#fff;padding:0 1rem;border:1px solid transparent;border-radius:9999px;font-weight:700;transition:background-color .2s;cursor:pointer;-webkit-user-select:none;user-select:none;outline-style:none;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}._videoButton_fp31d_17{position:relative;height:67px;width:67px;display:flex;align-items:center;justify-content:center;background-color:var(--tweet-color-blue-primary);transition-property:background-color;transition-duration:.2s;border:4px solid #fff;border-radius:9999px;cursor:pointer}._videoButton_fp31d_17:hover,._videoButton_fp31d_17:focus-visible{background-color:var(--tweet-color-blue-primary-hover)}._videoButtonIcon_fp31d_35{margin-left:3px;width:calc(50% + 4px);height:calc(50% + 4px);max-width:100%;color:#fff;fill:currentColor;-webkit-user-select:none;user-select:none}._watchOnTwitter_fp31d_44{position:absolute;top:12px;right:8px}._watchOnTwitter_fp31d_44>a{min-width:2rem;min-height:2rem;font-size:.875rem;line-height:1rem;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:#0f1419bf}._watchOnTwitter_fp31d_44>a:hover{background-color:#272c30bf}._viewReplies_fp31d_60{position:relative;min-height:2rem;background-color:var(--tweet-color-blue-primary);border-color:var(--tweet-color-blue-primary);font-size:.9375rem;line-height:1.25rem}._viewReplies_fp31d_60:hover{background-color:var(--tweet-color-blue-primary-hover)}._root_i24yn_1{color:inherit;text-decoration:none;font-size:var(--tweet-info-font-size);line-height:var(--tweet-info-line-height)}._root_i24yn_1:hover{text-decoration-thickness:1px;text-decoration-line:underline}._info_19qcj_1{display:flex;align-items:center;color:var(--tweet-font-color-secondary);margin-top:.125rem;overflow-wrap:break-word;white-space:nowrap;text-overflow:ellipsis}._infoLink_19qcj_10{color:inherit;text-decoration:none}._infoLink_19qcj_10{height:var(--tweet-actions-icon-wrapper-size);width:var(--tweet-actions-icon-wrapper-size);font:inherit;margin-left:auto;display:flex;justify-content:center;align-items:center;margin-right:-4px;border-radius:9999px;transition-property:background-color;transition-duration:.2s}._infoLink_19qcj_10:hover{background-color:var(--tweet-color-blue-secondary-hover)}._infoIcon_19qcj_30{color:inherit;fill:currentColor;height:var(--tweet-actions-icon-size);-webkit-user-select:none;user-select:none}._infoLink_19qcj_10:hover>._infoIcon_19qcj_30{color:var(--tweet-color-blue-secondary)}._actions_n2anf_1{display:flex;align-items:center;color:var(--tweet-font-color-secondary);padding-top:.25rem;margin-top:.25rem;border-top:var(--tweet-border);overflow-wrap:break-word;white-space:nowrap;text-overflow:ellipsis}._like_n2anf_13,._reply_n2anf_14,._copy_n2anf_15{text-decoration:none;color:inherit;display:flex;align-items:center;margin-right:1.25rem}._like_n2anf_13:hover,._reply_n2anf_14:hover,._copy_n2anf_15:hover{background-color:#0000}._like_n2anf_13:hover>._likeIconWrapper_n2anf_27{background-color:var(--tweet-color-red-primary-hover)}._like_n2anf_13:hover>._likeCount_n2anf_30{color:var(--tweet-color-red-primary);text-decoration-line:underline}._likeIconWrapper_n2anf_27,._replyIconWrapper_n2anf_35,._copyIconWrapper_n2anf_36{width:var(--tweet-actions-icon-wrapper-size);height:var(--tweet-actions-icon-wrapper-size);display:flex;justify-content:center;align-items:center;margin-left:-.25rem;border-radius:9999px}._likeIcon_n2anf_27,._replyIcon_n2anf_35,._copyIcon_n2anf_36{height:var(--tweet-actions-icon-size);fill:currentColor;-webkit-user-select:none;user-select:none}._likeIcon_n2anf_27{color:var(--tweet-color-red-primary)}._likeCount_n2anf_30,._replyText_n2anf_56,._copyText_n2anf_57{font-size:var(--tweet-actions-font-size);font-weight:var(--tweet-actions-font-weight);line-height:var(--tweet-actions-line-height);margin-left:.25rem}._reply_n2anf_14:hover>._replyIconWrapper_n2anf_35{background-color:var(--tweet-color-blue-secondary-hover)}._reply_n2anf_14:hover>._replyText_n2anf_56{color:var(--tweet-color-blue-secondary);text-decoration-line:underline}._replyIcon_n2anf_35{color:var(--tweet-color-blue-primary)}._copy_n2anf_15{font:inherit;background:none;border:none;cursor:pointer}._copy_n2anf_15:hover>._copyIconWrapper_n2anf_36{background-color:var(--tweet-color-green-primary-hover)}._copy_n2anf_15:hover ._copyIcon_n2anf_36{color:var(--tweet-color-green-primary)}._copy_n2anf_15:hover>._copyText_n2anf_57{color:var(--tweet-color-green-primary);text-decoration-line:underline}._replies_1cutb_1{padding:.25rem 0}._link_1cutb_4{text-decoration:none;color:var(--tweet-color-blue-secondary);display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;-webkit-user-select:none;user-select:none;outline-style:none;transition-property:background-color;transition-duration:.2s;padding:0 1rem;border:var(--tweet-border);border-radius:9999px}._link_1cutb_4:hover{background-color:var(--tweet-color-blue-secondary-hover)}._text_1cutb_23{font-weight:var(--tweet-replies-font-weight);font-size:var(--tweet-replies-font-size);line-height:var(--tweet-replies-line-height);overflow-wrap:break-word;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}._root_q5799_1{width:100%;overflow:hidden;border:var(--tweet-border);border-radius:12px;margin:var(--tweet-quoted-container-margin);transition-property:background-color,box-shadow;transition-duration:.2s;cursor:pointer}._root_q5799_1:hover{background-color:var(--tweet-quoted-bg-color-hover)}._article_q5799_16{position:relative;box-sizing:inherit}._header_r31i5_1{display:flex;padding:.75rem .75rem 0;line-height:var(--tweet-header-line-height);font-size:var(--tweet-header-font-size);white-space:nowrap;overflow-wrap:break-word;overflow:hidden}._avatar_r31i5_11{position:relative;height:20px;width:20px}._avatarSquare_r31i5_17{border-radius:4px}._author_r31i5_21{display:flex;margin:0 .5rem}._authorText_r31i5_26{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._username_r31i5_33{color:var(--tweet-font-color-secondary);text-decoration:none;text-overflow:ellipsis;margin-left:.125rem}._root_175ot_1{font-size:var(--tweet-quoted-body-font-size);font-weight:var(--tweet-quoted-body-font-weight);line-height:var(--tweet-quoted-body-line-height);margin:var(--tweet-quoted-body-margin);overflow-wrap:break-word;white-space:pre-wrap;padding:0 .75rem}._root_16yxa_1{display:flex;flex-direction:column;align-items:center;padding-bottom:.75rem}._root_16yxa_1>h3{font-size:1.25rem;margin-bottom:.5rem}._skeleton_oi7hr_1{display:block;width:100%;border-radius:5px;background-image:var(--tweet-skeleton-gradient);background-size:400% 100%;animation:_loading_oi7hr_1 8s ease-in-out infinite}@media (prefers-reduced-motion: reduce){._skeleton_oi7hr_1{animation:none;background-position:200% 0}}@keyframes _loading_oi7hr_1{0%{background-position:200% 0}to{background-position:-200% 0}}._root_17qqv_1{pointer-events:none;padding-bottom:.25rem}:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.chess-game{width:100vw;min-height:100vh;height:100vh;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch;background:#000;overflow:hidden;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;padding:0}.left-sidebar,.right-sidebar{min-width:160px;max-width:200px;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border:1px solid #00ff00;display:flex;flex-direction:column;flex-shrink:0;border-radius:0;margin:4px;box-shadow:0 0 6px #0f0,0 0 2px #0f0;padding:8px;min-height:0;height:calc(100% - 8px);overflow-y:auto}.center-area{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;min-height:0;height:100%;padding:4px;overflow:hidden;gap:4px}.chessboard-container{width:100%;height:100%;max-width:75vh;max-height:75vh;min-width:400px;min-height:400px;display:flex;align-items:center;justify-content:center;margin:0;flex:1 1 0;position:relative;overflow:hidden}.chessboard{width:100%;height:100%;max-width:75vh;max-height:75vh;min-width:400px;min-height:400px;aspect-ratio:1 / 1;background-image:url(/images/chessboard1.png);background-size:cover;background-position:center;background-repeat:no-repeat;border-radius:0;box-shadow:0 20px 40px #00000026;border:3px solid rgba(255,255,255,.3);display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);transition:all .3s ease}.chessboard:hover{transform:translateY(-2px);box-shadow:0 25px 50px #0003}.game-info{width:100%;display:flex;justify-content:space-between;align-items:center;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:1px solid #00ff00;padding:8px 16px;font-size:14px;font-weight:600;min-height:40px;max-height:40px;box-sizing:border-box;margin:0 0 4px;border-radius:0;box-shadow:0 0 6px #0f0,0 0 2px #0f0;flex-shrink:0}.game-info span{color:#0f0;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.chess-header{display:flex;justify-content:space-between;align-items:center;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:none;padding:8px 24px;border-radius:0;margin:4px;box-shadow:none}.chess-header h2{font-size:18px;font-weight:900;font-family:Impact,Arial Black,sans-serif;color:red;margin:0;text-transform:uppercase;letter-spacing:1px;text-shadow:0 0 6px #ff0000,0 0 2px #ff0000}.theme-toggle-btn,.minimize-btn,.close-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:0;padding:8px 12px;font-size:16px;cursor:pointer;transition:all .3s ease;text-shadow:0 1px 2px rgba(0,0,0,.2)}.theme-toggle-btn:hover,.minimize-btn:hover,.close-btn:hover{background:linear-gradient(135deg,#5a67d8,#6b46c1);transform:translateY(-1px);box-shadow:0 4px 12px #667eea4d}.close-btn:hover{background:linear-gradient(135deg,#e53e3e,#c53030)}.game-info{display:flex;justify-content:space-between;align-items:center;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.2);padding:16px 24px;font-size:14px;font-weight:600;min-height:48px;box-sizing:border-box;margin:0 8px 8px;border-radius:0;box-shadow:0 4px 16px #0000001a}.game-status-section{display:flex;flex-direction:column;gap:4px}.game-details-section{display:flex;flex-direction:column;gap:4px;align-items:flex-end}.status{color:#2d3748;text-shadow:0 1px 2px rgba(0,0,0,.1);font-weight:700}.check-status{color:#e53e3e;animation:checkPulse 2s infinite}@keyframes checkPulse{0%{opacity:1}50%{opacity:.7}to{opacity:1}}.current-player{font-size:12px;color:#718096;font-weight:500}.red-turn{color:#e53e3e;font-weight:600}.blue-turn{color:#3182ce;font-weight:600}.wager-display{color:#38a169;font-weight:700;font-size:16px}.opponent-info{font-size:12px;color:#718096;font-weight:500}.move-history,.leaderboard{flex:1 1 0;overflow-y:auto;background:#ffffffe6;border-radius:0;margin:0;display:flex;flex-direction:column;align-items:center;color:#2d3748!important;padding:8px 0;min-height:0;border:1px solid rgba(255,255,255,.2)}.move-history h4,.leaderboard h3{font-size:16px;font-weight:700;color:#4a5568;margin:0 0 12px;text-align:center;text-transform:uppercase;letter-spacing:.5px}.leaderboard-table table{width:100%;border-collapse:collapse;font-size:13px}.leaderboard-table th,.leaderboard-table td{padding:8px 6px;text-align:center;border:1px solid rgba(203,213,224,.5)}.leaderboard-table th{background:#4299e11a;font-weight:600;color:#2b6cb0}.piece-gallery-panel{max-height:85vh;overflow-y:auto;border-radius:0;box-shadow:0 20px 40px #00000026;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:24px;border:1px solid rgba(255,255,255,.2);position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1000;min-width:300px;max-width:90vw}.gallery-modal,.chess-multiplayer-lobby,.chess-multiplayer-waiting{max-height:85vh;overflow-y:auto;border-radius:0;box-shadow:0 20px 40px #00000026;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:24px;border:1px solid rgba(255,255,255,.2)}.piece-gallery{padding:8px 0;margin:0 auto;max-width:400px}.piece-gallery-grid{display:grid;grid-template-columns:1fr;gap:12px}.piece-gallery-item{background:#ffffffe6;border-radius:0;box-shadow:0 4px 12px #0000001a;padding:16px 12px;display:flex;flex-direction:column;align-items:center;border:1px solid rgba(255,255,255,.3);transition:all .3s ease}.piece-gallery-item:hover{transform:translateY(-2px);box-shadow:0 8px 24px #00000026}.piece-gallery-name{font-weight:700;color:#2d3748;margin-bottom:4px;text-align:center;font-size:14px}.piece-gallery-desc{font-size:12px;color:#718096;text-align:center;line-height:1.4}.game-controls{display:flex;flex-direction:column;gap:16px;justify-content:center;padding:20px;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.2);border-radius:12px;margin-top:8px;box-shadow:0 4px 16px #0000001a}.control-section{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.settings-section{display:flex;justify-content:center}.gallery-toggle-btn,.reset-game-btn{padding:10px 20px;border:1px solid rgba(255,255,255,.3);background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-size:14px;font-weight:600;cursor:pointer;border-radius:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;transition:all .3s ease;text-shadow:0 1px 2px rgba(0,0,0,.2)}.gallery-toggle-btn:hover,.reset-game-btn:hover{background:linear-gradient(135deg,#5a67d8,#6b46c1);transform:translateY(-1px);box-shadow:0 4px 12px #667eea4d}.reset-game-btn{background:linear-gradient(135deg,#e53e3e,#c53030)}.reset-game-btn:hover{background:linear-gradient(135deg,#c53030,#9b2c2c)}.sound-controls{display:flex;flex-direction:column;gap:8px}.control-label{display:flex;align-items:center;gap:8px;cursor:pointer;padding:4px;border-radius:0;transition:all .3s ease}.control-label:hover{background:#667eea1a}.control-checkbox{width:16px;height:16px;accent-color:#667eea;cursor:pointer}.control-text{font-size:14px;font-weight:500;color:#4a5568}.claim-winnings-btn{background:linear-gradient(135deg,#48bb78,#38a169)!important;color:#fff!important;border-color:#48bb784d!important;font-weight:700!important;padding:12px 24px!important;font-size:16px!important;border-radius:0!important;text-transform:uppercase!important;letter-spacing:.5px!important;border:none!important;cursor:pointer!important;transition:all .3s ease!important}.claim-winnings-btn:hover:not(:disabled){background:linear-gradient(135deg,#38a169,#2f855a)!important;transform:translateY(-2px)!important;box-shadow:0 8px 20px #48bb784d!important}.claim-winnings-btn:disabled{background:#cbd5e080!important;color:#a0aec0!important;border-color:#cbd5e04d!important;transform:none!important;box-shadow:none!important;cursor:not-allowed!important}.moves{display:flex;flex-direction:column;gap:4px;padding:8px;max-height:200px;overflow-y:auto}.move{background:#fffc;padding:6px 8px;border-radius:0;font-size:12px;font-weight:600;color:#2d3748;text-align:center;border:1px solid rgba(255,255,255,.3);transition:all .3s ease}.move:hover{background:#667eea1a;transform:translate(2px)}.promotion-dialog{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.promotion-content{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:0;padding:32px;text-align:center;box-shadow:0 20px 40px #00000026;border:1px solid rgba(255,255,255,.2)}.promotion-content h3{font-size:24px;font-weight:800;color:#2d3748;margin-bottom:24px;text-transform:uppercase;letter-spacing:1px}.promotion-pieces{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:24px}.promotion-piece{background:#ffffffe6;border:2px solid rgba(255,255,255,.3);border-radius:0;padding:16px;cursor:pointer;transition:all .3s ease;display:flex;flex-direction:column;align-items:center}.promotion-piece:hover{transform:translateY(-4px);box-shadow:0 8px 24px #00000026;border-color:#667eea}.promotion-piece img{width:48px;height:48px;object-fit:contain;margin-bottom:8px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.victory-celebration{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:2000;animation:victoryFadeIn .5s ease-out}@keyframes victoryFadeIn{0%{opacity:0}to{opacity:1}}.victory-content{background:linear-gradient(135deg,#48bb78,#38a169);border-radius:20px;padding:48px;text-align:center;box-shadow:0 20px 40px #48bb784d;border:3px solid rgba(255,255,255,.3);animation:victoryPulse 2s infinite}@keyframes victoryPulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}.victory-content h2{font-size:36px;font-weight:900;color:#fff;margin-bottom:16px;text-shadow:0 2px 4px rgba(0,0,0,.3)}.victory-content p{font-size:18px;color:#ffffffe6;font-weight:600}.square{position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;border:1px solid rgba(255,255,255,.1)}.square:hover{background:#fff3;transform:scale(1.05)}.square.selected{background:#4299e199;box-shadow:inset 0 0 0 2px #fffc}.square.legal-move{background:#48bb7866;box-shadow:inset 0 0 0 2px #48bb78cc}.square.last-move{background:#f6ad5566;box-shadow:inset 0 0 0 2px #f6ad55cc}.legal-move-indicator{width:20%;height:20%;background:#48bb78cc;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);animation:pulse 2s infinite}@keyframes pulse{0%{transform:translate(-50%,-50%) scale(1);opacity:1}50%{transform:translate(-50%,-50%) scale(1.2);opacity:.7}to{transform:translate(-50%,-50%) scale(1);opacity:1}}.piece{width:80%;height:80%;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3));transition:all .3s ease;z-index:10}.piece:hover{transform:scale(1.1);filter:drop-shadow(0 4px 8px rgba(0,0,0,.4))}.capture-animation{position:absolute;pointer-events:none;z-index:1000;animation:captureExplosion .6s ease-out}.explosion-effect{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:24px;animation:explosionSpin .6s ease-out}@keyframes captureExplosion{0%{transform:scale(0);opacity:1}50%{transform:scale(1.2);opacity:1}to{transform:scale(1.5);opacity:0}}@keyframes explosionSpin{0%{transform:rotate(0) scale(0)}50%{transform:rotate(180deg) scale(1.2)}to{transform:rotate(360deg) scale(1.5)}}.chess-multiplayer-lobby{max-width:600px;margin:0 auto;padding:32px 24px;background:transparent;border-radius:0;box-shadow:none;text-align:center}.chess-multiplayer-lobby h2{font-size:2rem;font-weight:700;color:#0f0;text-align:center;margin-bottom:16px;letter-spacing:1px;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.wallet-notice{background:transparent;border:1px solid #00ff00;border-radius:0;padding:20px;text-align:center;font-weight:600;color:#0f0;margin-bottom:24px;box-shadow:0 0 6px #0f0,0 0 2px #0f0;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.status-bar{background:transparent;border:1px solid #00ff00;border-radius:0;padding:12px 20px;text-align:center;font-weight:600;color:#0f0;margin-bottom:24px;box-shadow:0 0 6px #0f0,0 0 2px #0f0;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.lobby-content{display:flex;flex-direction:column;gap:24px}.open-games h3{font-size:1.1rem;font-weight:700;color:#0f0;margin-bottom:16px;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.games-list{display:flex;flex-direction:column;gap:12px}.game-item{background:transparent;border:1px solid #00ff00;border-radius:0;padding:16px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 0 6px #0f0,0 0 2px #0f0;transition:all .3s ease}.game-item:hover{transform:translateY(-2px);box-shadow:0 0 12px #0f0,0 0 4px #0f0}.game-info{flex:1}.game-id{font-weight:700;color:#0f0;font-size:16px;margin-bottom:4px;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.wager{font-weight:600;color:#0f0;font-size:14px;margin-bottom:4px;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.title{font-size:12px;color:#0f0;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.join-btn{background:transparent;color:#0f0;border:1px solid #00ff00;border-radius:0;padding:10px 20px;font-weight:700;cursor:pointer;transition:all .3s ease;letter-spacing:1px;box-shadow:0 0 6px #0f0,0 0 2px #0f0}.join-btn:hover{background:#0f0;color:#000;transform:translateY(-1px);box-shadow:0 0 12px #0f0,0 0 4px #0f0}.no-games{text-align:center;color:#0f0;font-style:italic;padding:24px;background:transparent;border-radius:0;border:2px dashed #00ff00;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.actions{display:flex;flex-direction:column;gap:12px}.create-btn,.resume-btn{background:transparent;color:#0f0;border:1px solid #00ff00;border-radius:0;padding:16px 24px;font-weight:700;cursor:pointer;transition:all .3s ease;letter-spacing:1px;font-size:16px;box-shadow:0 0 6px #0f0,0 0 2px #0f0}.create-btn:hover,.resume-btn:hover{background:#0f0;color:#000;transform:translateY(-2px);box-shadow:0 0 12px #0f0,0 0 4px #0f0}.create-form{background:transparent;border-radius:0;padding:24px;border:1px solid #00ff00;box-shadow:0 0 6px #0f0,0 0 2px #0f0}.create-form h3{font-size:1.1rem;font-weight:700;color:#0f0;margin-bottom:16px;text-align:center;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.form-group{margin-bottom:16px}.form-group label{display:block;font-weight:600;color:#0f0;margin-bottom:8px;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.form-group input{width:100%;padding:12px;border:2px solid #00ff00;border-radius:0;font-size:14px;color:#0f0;transition:all .3s ease;background:transparent;box-shadow:0 0 6px #0f0,0 0 2px #0f0}.form-group input:focus{outline:none;border-color:#0f0;box-shadow:0 0 12px #0f0,0 0 4px #0f0}.form-actions{display:flex;gap:12px;justify-content:center}.create-confirm-btn,.cancel-btn{padding:12px 24px;border-radius:0;font-weight:700;cursor:pointer;transition:all .3s ease;letter-spacing:1px;background:transparent;color:#0f0;border:1px solid #00ff00;box-shadow:0 0 6px #0f0,0 0 2px #0f0}.create-confirm-btn{background:transparent}.create-confirm-btn:hover:not(:disabled){background:#0f0;color:#000;transform:translateY(-1px);box-shadow:0 0 12px #0f0,0 0 4px #0f0}.cancel-btn{background:transparent}.cancel-btn:hover{background:#0f0;color:#000;transform:translateY(-1px);box-shadow:0 0 12px #0f0,0 0 4px #0f0}.chess-multiplayer-waiting{max-width:500px;margin:0 auto;padding:32px 24px;text-align:center;background:transparent}.chess-multiplayer-waiting h2{font-size:2rem;font-weight:700;color:#0f0;margin-bottom:16px;letter-spacing:1px;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.game-code{background:transparent;border:1px solid #00ff00;border-radius:0;padding:20px;margin-bottom:24px;font-size:18px;font-weight:700;color:#0f0;box-shadow:0 0 6px #0f0,0 0 2px #0f0;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.game-code strong{font-family:Courier New,monospace;background:transparent;padding:4px 8px;border-radius:0;border:1px solid #00ff00;color:#0f0;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.game-info p{font-size:16px;color:#0f0;margin-bottom:8px;font-weight:500;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}@media (max-width: 900px){.game-content,.game-stable-layout{flex-direction:column;gap:0;padding:0}.center-area{max-width:100vw;min-width:0}.chessboard-container{max-width:100vw;max-height:60vw}.chessboard{max-width:98vw;max-height:60vw}.left-sidebar,.right-sidebar{min-width:0;max-width:100vw;margin:4px;border-radius:8px;padding:8px}.chess-header{padding:6px 16px;margin:2px}.chess-header h2{font-size:16px;font-weight:900;font-family:Impact,Arial Black,sans-serif;color:red;text-shadow:0 0 6px #ff0000,0 0 2px #ff0000}.game-info{flex-direction:column;gap:8px;align-items:flex-start;padding:12px 16px;margin:0 4px 4px}.game-details-section{align-items:flex-start}.game-controls{padding:16px}.control-section{flex-direction:column;align-items:center}.promotion-content{padding:24px;margin:16px}.promotion-pieces{grid-template-columns:repeat(2,1fr);gap:12px}.victory-content{padding:32px;margin:16px}.victory-content h2{font-size:28px}}@media (max-width: 600px){.chessboard-container,.chessboard{min-width:0;max-width:100vw;max-height:60vw}.piece-gallery-panel,.gallery-modal,.chess-multiplayer-lobby,.chess-multiplayer-waiting{max-width:98vw;max-height:80vh;padding:16px;margin:8px}.chess-multiplayer-lobby h2,.chess-multiplayer-waiting h2{font-size:24px}.game-item{flex-direction:column;gap:12px;text-align:center}.form-actions{flex-direction:column}.chess-header h2{font-size:14px;font-weight:900;font-family:Impact,Arial Black,sans-serif;color:red;text-shadow:0 0 6px #ff0000,0 0 2px #ff0000}.game-info{font-size:12px;padding:8px 12px}.wager-display{font-size:14px}.game-controls{padding:12px}.gallery-toggle-btn,.reset-game-btn{padding:8px 16px;font-size:12px}.control-text{font-size:12px}.promotion-content h3{font-size:20px}.promotion-piece img{width:36px;height:36px}.victory-content h2{font-size:24px}.victory-content p{font-size:16px}}@media (max-width: 768px){.square{min-height:50px;min-width:50px;touch-action:manipulation}.piece{touch-action:manipulation;cursor:pointer}.game-controls button,.lobby-btn,.create-game-btn,.join-game-btn,.claim-btn,.force-resolve-btn{min-height:44px;min-width:44px;padding:12px 16px;font-size:16px;touch-action:manipulation}.square:active,.piece:active{transform:scale(.95);transition:transform .1s ease}.left-sidebar{max-height:40vh;overflow-y:auto;-webkit-overflow-scrolling:touch}.game-info{font-size:14px;padding:8px 12px}.lobby-container{padding:12px}.game-list{max-height:50vh;overflow-y:auto;-webkit-overflow-scrolling:touch}.game-item{padding:12px;margin-bottom:8px;min-height:60px}.wager-input,.invite-code-input{min-height:44px;font-size:16px;padding:12px}.game-status{font-size:14px;padding:8px 12px;line-height:1.4}}@media (max-width: 600px){.chessboard-container,.chessboard{max-width:95vw;max-height:95vw;min-width:280px;min-height:280px}.game-stable-layout{padding:8px;gap:8px}.center-area{min-width:0;width:100%}.game-controls{flex-wrap:wrap;gap:8px;justify-content:center}.lobby-container{padding:16px 12px}.create-game-form,.join-game-form{gap:12px;margin-bottom:16px}.game-list{gap:8px}.game-item{flex-direction:column;align-items:flex-start;gap:8px}.game-item-info{width:100%}.game-item-actions{width:100%;justify-content:space-between}}@media (max-width: 768px){.chess-dark-mode .game-controls button,.chess-dark-mode .lobby-btn,.chess-dark-mode .create-game-btn,.chess-dark-mode .join-game-btn,.chess-dark-mode .claim-btn,.chess-dark-mode .force-resolve-btn{background:#2a2a2a;border-color:#444;color:#fff}.chess-dark-mode .game-controls button:hover,.chess-dark-mode .lobby-btn:hover,.chess-dark-mode .create-game-btn:hover,.chess-dark-mode .join-game-btn:hover,.chess-dark-mode .claim-btn:hover,.chess-dark-mode .force-resolve-btn:hover{background:#3a3a3a}.chess-dark-mode .game-controls button:active,.chess-dark-mode .lobby-btn:active,.chess-dark-mode .create-game-btn:active,.chess-dark-mode .join-game-btn:active,.chess-dark-mode .claim-btn:active,.chess-dark-mode .force-resolve-btn:active{background:#1a1a1a}.chess-dark-mode .wager-input,.chess-dark-mode .invite-code-input{background:#2a2a2a;border-color:#444;color:#fff}}.waiting-actions{margin-top:20px;text-align:center}.refund-game-btn{background:transparent;color:#0f0;border:1px solid #00ff00;padding:12px 24px;border-radius:0;font-size:16px;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 0 6px #0f0,0 0 2px #0f0;margin-bottom:10px;letter-spacing:1px}.refund-game-btn:hover:not(:disabled){background:#0f0;color:#000;transform:translateY(-2px);box-shadow:0 0 12px #0f0,0 0 4px #0f0}.refund-game-btn:active:not(:disabled){transform:translateY(0);box-shadow:0 0 8px #0f0,0 0 3px #0f0}.refund-game-btn:disabled{background:transparent;color:#666;border-color:#666;cursor:not-allowed;transform:none;box-shadow:none}.refund-note{font-size:12px;color:#0f0;margin:0;font-style:italic;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.chess-dark-mode .refund-game-btn{background:transparent;color:#0f0;border:1px solid #00ff00;box-shadow:0 0 6px #0f0,0 0 2px #0f0}.chess-dark-mode .refund-game-btn:hover:not(:disabled){background:#0f0;color:#000;box-shadow:0 0 12px #0f0,0 0 4px #0f0}.chess-dark-mode .refund-note{color:#0f0;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.chess-game{width:100vw;min-height:100vh;height:100vh;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch;background:silver;overflow:hidden;font-family:"MS Sans Serif","Microsoft Sans Serif",sans-serif;padding:0}.chess-game.game-active{background-image:url(/assets/background.gif)!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}.game-content,.game-stable-layout{flex:1 1 0;display:flex;flex-direction:row;gap:0;width:100vw;max-width:100vw;margin:0;align-items:stretch;justify-content:stretch;box-sizing:border-box;padding:0}.left-sidebar,.right-sidebar{min-width:160px;max-width:220px;background:#f0f0f0;border:1px solid #bbb;display:flex;flex-direction:column;flex-shrink:0;border-radius:0;margin:0;box-shadow:none;padding:4px 2px;min-height:0;height:100%;overflow-y:auto}.chess-game.game-active .left-sidebar,.chess-game.game-active .right-sidebar{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}.center-area{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;height:100%;padding:0}.chessboard-container{width:100%;height:100%;max-width:100vh;max-height:100vh;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;margin:0;flex:1 1 0}.chessboard{width:100%;height:100%;max-width:80vh;max-height:80vh;aspect-ratio:1 / 1;background-image:url(/images/chessboard1.png);background-size:cover;background-position:center;background-repeat:no-repeat;border-radius:8px;box-shadow:0 0 8px #0000000f;border:1px solid #bbb;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr)}.board-row{display:contents}.square{position:relative;width:100%;height:100%;cursor:pointer;display:flex;align-items:center;justify-content:center}.square.selected{background-color:#00ff004d}.square.legal-move{background-color:#0f03}.square.last-move{background-color:#ffff004d}.legal-move-indicator{position:absolute;width:30px;height:30px;background-color:#00ff0080;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%)}.piece{position:absolute;width:100%;height:100%;background-size:contain;background-repeat:no-repeat;background-position:center;cursor:pointer;transition:transform .2s ease;z-index:2;top:0;left:0}.piece:hover{transform:scale(1.1);filter:brightness(1.2) drop-shadow(0 0 8px rgba(50,205,50,.7));z-index:3}.game-info{width:100%;display:flex;justify-content:space-between;align-items:center;background:#f0f0f0;border-bottom:1px solid #bbb;padding:2px 8px;font-size:13px;font-weight:700;min-height:28px;box-sizing:border-box;margin:0 0 2px}.chess-game.game-active .game-info-compact,.chess-game.game-active .game-controls-compact{background:#f0f0f0e6;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.chess-game.game-active .leaderboard-compact,.chess-game.game-active .move-history-compact{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border:1px solid #00ff00}.move-history,.leaderboard{flex:1 1 0;overflow-y:auto;background:transparent;border-radius:4px;margin:0;display:flex;flex-direction:column;align-items:center;color:#0f0!important;padding:2px 0;min-height:0}.move-history h4,.leaderboard h3{font-size:13px;font-weight:700;color:#0f0;margin:0 0 4px;text-align:center}.leaderboard-table{width:100%;overflow-x:auto}.leaderboard-table table{width:100%;border-collapse:collapse;font-size:12px}.leaderboard-table th,.leaderboard-table td{padding:2px;text-align:center;border:1px solid #ccc}.piece-gallery-panel,.gallery-modal{max-height:80vh;overflow-y:auto;border-radius:8px;box-shadow:0 2px 8px #0000000f;background:#f0f0f0;padding:12px 8px}.piece-gallery{padding:8px 0;margin:0 auto;max-width:100%}.piece-gallery h3{font-size:14px;font-weight:700;color:navy;margin:0 0 12px;text-align:center;text-transform:uppercase;letter-spacing:.5px}.piece-gallery-grid{display:grid;grid-template-columns:1fr;gap:12px;padding:0 4px}.piece-gallery-item{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;padding:12px 8px;display:flex;flex-direction:column;align-items:center;border:1px solid #e0e0e0;transition:all .2s ease;cursor:pointer}.piece-gallery-item:hover{transform:translateY(-2px);box-shadow:0 4px 8px #00000026;border-color:navy}.piece-gallery-img{width:48px;height:48px;object-fit:contain;margin-bottom:8px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.piece-gallery-name{font-weight:700;color:navy;margin-bottom:4px;text-align:center;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.piece-gallery-desc{font-size:10px;color:#666;text-align:center;line-height:1.3;margin:0}@media (max-width: 900px){.game-content,.game-stable-layout{flex-direction:column;gap:0;padding:0}.center-area{max-width:100vw;min-width:0}.chessboard-container{max-width:100vw;max-height:60vw}.chessboard{max-width:98vw;max-height:60vw}.left-sidebar,.right-sidebar{min-width:0;max-width:100vw;margin:0 0 4px;border-radius:0;padding:2px 0}}@media (max-width: 600px){.chessboard-container,.chessboard{min-width:0;max-width:100vw;max-height:60vw}.piece-gallery-panel,.gallery-modal{max-width:98vw;max-height:80vh;padding:4px 0}}.chess-controls{display:flex;gap:8px}.chess-controls button{background:silver;border:2px outset #c0c0c0;color:#000;width:20px;height:20px;cursor:pointer;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center}.chess-controls button:hover{background:#d4d4d4}.chess-controls button:active{border:2px inset #c0c0c0}.status{color:navy}.current-player{color:maroon}.wager-display{color:green;font-weight:700}.difficulty-display{color:purple;font-weight:700}.game-content,.game-stable-layout{display:flex;flex-direction:row;gap:24px;width:100%;max-width:1200px;margin:0 auto;align-items:flex-start;justify-content:center;box-sizing:border-box;padding:24px 0 0}.left-sidebar,.right-sidebar{min-width:200px;max-width:300px;background:#f0f0f0;border:2px inset #c0c0c0;display:flex;flex-direction:column;flex-shrink:0;border-radius:8px;margin:0 8px;box-shadow:0 2px 8px #0000000a;padding:12px 8px;min-height:400px;height:auto}.center-area{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:320px;max-width:700px}.move-history,.piece-gallery{flex:1;overflow-y:auto;padding:8px;font-size:11px;line-height:1.2;background:#fff;border-radius:2px;margin-top:0;display:flex;flex-direction:column;align-items:center;color:#c00!important}.chess-dark-mode .move-history{color:#0f0!important}.move-history h4{font-size:13px;font-weight:700;color:navy;margin:0 0 8px;text-align:center}.moves{display:flex;flex-direction:column;gap:2px}.move{color:#000;padding:2px 0}.chess-main-area{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex:1 1 0;min-height:600px;height:100%;width:100%}.chessboard-container{width:auto;height:auto;max-width:min(80vh,80vw);max-height:min(80vh,80vw);min-width:300px;min-height:300px;display:flex;align-items:center;justify-content:center;margin:0 auto;flex-shrink:0;aspect-ratio:1 / 1}.chessboard{width:100%;height:100%;max-width:min(80vh,80vw);max-height:min(80vh,80vw);min-width:300px;min-height:300px;aspect-ratio:1 / 1;background-image:url(/images/chessboard1.png);background-size:cover;background-position:center;background-repeat:no-repeat;border-radius:12px;box-shadow:0 0 15px #0000001a;border:2px solid rgba(50,205,50,.3);display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);flex-shrink:0}.game-controls{flex:0 0 auto;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:32px;margin-top:12px;margin-bottom:0;width:100%;max-width:600px}.piece-gallery-panel,.gallery-modal{max-height:80vh;overflow-y:auto;border-radius:12px;box-shadow:0 4px 24px #0000001a;background:#f0f0f0;padding:16px 0}.piece-gallery-panel>*{border-radius:0!important}.piece-gallery{flex:1;overflow-y:auto;padding:8px 0;margin:0 auto;max-width:340px}.gallery-item{margin-bottom:8px;padding:4px;background:#fff;border:1px solid #c0c0c0;border-radius:2px;width:100%;box-sizing:border-box;display:flex;align-items:center;gap:6px}.piece-info{display:flex;align-items:center;gap:6px;width:100%}.gallery-piece{width:24px;height:24px;object-fit:contain;flex-shrink:0}.piece-details{flex:1;min-width:0}.piece-name{font-size:10px;font-weight:700;color:navy;margin-bottom:1px}.piece-desc{font-size:8px;color:#333;line-height:1.1}.right-sidebar{width:260px;min-width:220px;max-width:300px;flex-shrink:0;display:flex;flex-direction:column;overflow-y:auto;max-height:100%;min-height:400px;height:100%}.piece-gallery-panel{flex:1;overflow-y:auto;max-height:100%;display:flex;flex-direction:column;height:100%}.piece-gallery{flex:1;overflow-y:auto;padding:8px;font-size:11px;line-height:1.2;max-height:100%;height:100%}.leaderboard{background:#f0f0f0;border:2px inset #c0c0c0;padding:8px;height:100%;overflow-y:auto;flex-shrink:0}.leaderboard h3{margin:0 0 8px;font-size:13px;text-transform:uppercase;text-align:center;color:#c00}.leaderboard-table{max-height:370px;overflow-y:auto;background:#fff;border-radius:2px;margin-top:0;display:flex;flex-direction:column;align-items:center}.leaderboard-table table{width:100%;table-layout:fixed;border-collapse:collapse}.leaderboard-table th,.leaderboard-table td{padding:6px 2px;font-size:13px;text-align:center;border-bottom:1px solid #e0e0e0;min-width:38px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leaderboard-table th:nth-child(1),.leaderboard-table td:nth-child(1){min-width:32px;max-width:38px}.leaderboard-table th:nth-child(2),.leaderboard-table td:nth-child(2){min-width:90px;max-width:120px}.leaderboard-table th:nth-child(3),.leaderboard-table td:nth-child(3),.leaderboard-table th:nth-child(4),.leaderboard-table td:nth-child(4),.leaderboard-table th:nth-child(5),.leaderboard-table td:nth-child(5),.leaderboard-table th:nth-child(6),.leaderboard-table td:nth-child(6){min-width:32px;max-width:38px}.leaderboard-table th{background:silver;color:navy;font-weight:700;position:sticky;top:0;z-index:1}.leaderboard-table tr:nth-child(n+12) td{background:#f8f8f8}.leaderboard-table td{color:#c00}@media (max-width: 1200px){.game-stable-layout{gap:12px;max-width:100vw}.chessboard-container{max-width:min(70vh,70vw);max-height:min(70vh,70vw);min-width:300px;min-height:300px;width:auto;height:auto}.left-sidebar,.right-sidebar{width:150px;min-width:100px;max-width:180px}}@media (max-width: 900px){.game-stable-layout{flex-direction:column;align-items:stretch;gap:8px}.left-sidebar,.right-sidebar{width:100%;min-width:0;max-width:none;height:auto}.center-area{width:100%;min-width:0;height:auto}.chessboard-container{max-width:min(60vh,60vw);max-height:min(60vh,60vw);min-width:250px;min-height:250px;width:auto;height:auto}}@media (max-width: 600px){.chessboard-container{max-width:min(50vh,50vw);max-height:min(50vh,50vw);min-width:200px;min-height:200px;width:auto;height:auto}.game-info{font-size:10px;padding:4px 6px}.game-controls{gap:8px;font-size:12px}}.gallery-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000059;display:flex;align-items:center;justify-content:flex-end;padding-top:60px;padding-right:40px;z-index:1000}.gallery-modal{background:#f0f0f0;border:3px outset #c0c0c0;box-shadow:0 8px 32px #0000002e;padding:32px 24px 24px;border-radius:0!important;margin-right:0;margin-top:0;min-width:340px;max-width:90vw;max-height:80vh;overflow-y:auto;position:relative;display:flex;flex-direction:column;align-items:center}.close-modal-btn{position:absolute;top:10px;right:10px;width:36px;height:36px;background:silver;color:#222;border:2px outset #c0c0c0;border-radius:50%;font-size:22px;font-weight:700;display:flex;align-items:center;justify-content:center;z-index:10;margin:0;box-shadow:0 2px 8px #00000014;cursor:pointer;transition:background .2s}.close-modal-btn:hover{background:#e0e0e0;color:#c00}.leaderboard-updated-msg{position:absolute;top:60px;left:50%;transform:translate(-50%);background:#fffbe6;color:#c00;border:2px solid #c0c0c0;padding:12px 32px;font-size:18px;font-weight:700;z-index:2000;box-shadow:0 2px 8px #0000001f;border-radius:0}.wallet-indicator{position:absolute;top:54px;left:50%;transform:translate(-50%);background:#e0e0e0;color:#0a2a7a;border:2px inset #c0c0c0;padding:4px 18px;font-size:15px;font-family:monospace;border-radius:0;z-index:1001}.piece-gallery-panel,.gallery-modal{border-radius:0!important}.chess98-wallet-status{margin-left:auto;margin-right:24px;color:#fff;font-size:16px;font-family:monospace;font-weight:700;letter-spacing:1px;cursor:pointer;background:none;border:none;outline:none;display:flex;align-items:center}.chess98-wallet-status span{color:#fff;font-size:16px;font-family:monospace;font-weight:700;letter-spacing:1px}.game-info-bar{display:flex;justify-content:center;align-items:center;gap:24px;width:100%;min-width:220px;max-width:700px;margin:0 auto 2px;background:none;border-radius:0;padding:2px 0;font-size:15px;font-family:"MS Sans Serif",Arial,sans-serif;font-weight:700;box-shadow:none;min-height:24px}.game-info-bar span,.game-info-bar div,.game-info-bar .mode-novice,.game-info-bar .mode-intermediate,.game-info-bar .mode-master,.game-info-bar .mode-grand-master{color:#0f0!important;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.game-info-bar .mode-play{color:#000!important;text-shadow:none}.game-info-bar .current-blue{color:#0a2a7a!important}.game-info-bar .current-red{color:#c00!important}.game-info-bar .wager-label{color:gold!important}.game-stable-layout,.center-area{height:100%;min-height:0}.center-area{overflow:auto}.chess-dark-mode,.chess-dark-mode body,html.chess-dark-mode,body.chess-dark-mode{background:#000!important;color:#0f0!important;background-image:none!important;background-size:initial!important;background-repeat:initial!important;background-position:initial!important;background-attachment:initial!important}html.chess-dark-mode,body.chess-dark-mode{background:#000!important;color:#0f0!important}.chess-dark-mode .chess98-main-window,.chess-dark-mode .chess98-header,.chess-dark-mode .chess98-content,.chess-dark-mode .left-sidebar,.chess-dark-mode .right-sidebar,.chess-dark-mode .piece-gallery-panel,.chess-dark-mode .leaderboard,.chess-dark-mode .gallery-modal,.chess-dark-mode .move-history,.chess-dark-mode .game-controls,.chess-dark-mode .chessboard-container,.chess-dark-mode .center-area,.chess-dark-mode .game-content,.chess-dark-mode .game-stable-layout{background:#000!important;color:#0f0!important;border-color:#0f0!important}.chess-dark-mode.chess-game.game-active .game-stable-layout,.chess-dark-mode.chess-game.game-active .left-sidebar,.chess-dark-mode.chess-game.game-active .right-sidebar,.chess-dark-mode.chess-game.game-active .center-area,.chess-dark-mode.chess-game.game-active .chessboard-container,.chess-dark-mode.chess-game.game-active .piece-gallery-panel,.chess-dark-mode.chess-game.game-active .piece-gallery,.chess-dark-mode.chess-game.game-active .move-history,.chess-dark-mode.chess-game.game-active .gallery-item,.chess-dark-mode.chess-game.game-active .leaderboard,.chess-dark-mode.chess-game.game-active .leaderboard-table,.chess-dark-mode.chess-game.game-active .game-info,.chess-dark-mode.chess-game.game-active .game-content{background:transparent!important}.chess-dark-mode .move-history,.chess-dark-mode .leaderboard,.chess-dark-mode .game-info-bar{background:#111!important;color:#0f0!important}.chess-dark-mode .chess98-header{border-bottom:2px solid #00ff00!important}.chess-dark-mode .chess98-title,.chess-dark-mode .chess98-wallet-status span{color:#0f0!important}.chess-dark-mode .game-info-bar{border-radius:0!important;box-shadow:none!important;border:2px solid #00ff00!important}.chess-dark-mode .game-info-bar span,.chess-dark-mode .game-info-bar div{color:#0f0!important;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.chess-dark-mode .chess98-back-btn{background:#222!important;color:#0f0!important;border:2px solid #00ff00!important}.chess-dark-mode .chess98-back-btn:hover{background:#333!important;color:#0f0!important}.chess-dark-mode .dark-mode-toggle{color:#0f0!important;background:none!important;border:none!important}.chess-dark-mode .dark-mode-toggle:hover{color:gold!important;background:#ffffff14!important}.chess-dark-mode .game-info-bar span,.chess-dark-mode .game-info-bar div,.chess-dark-mode .status,.chess-dark-mode .current-player,.chess-dark-mode .wager-label,.chess-dark-mode .mode-novice,.chess-dark-mode .mode-intermediate,.chess-dark-mode .mode-world-class{color:#0f0!important;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.chess-dark-mode .mode-master,.chess-dark-mode .mode-grand-master{color:#0f0!important;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00;font-weight:700}.chess-dark-mode .mode-play{color:#000!important;text-shadow:none}.chess-dark-mode .leaderboard-table th,.chess-dark-mode .leaderboard-table td{color:#0f0!important;background:#222!important;border-color:#0f03!important}.chess-dark-mode .leaderboard h3{color:#0f0!important;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.chess-dark-mode .game-controls button{background:#222!important;color:#0f0!important;border:2px solid #00ff00!important;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.chess-dark-mode .game-controls button:hover{background:#333!important;color:#0f0!important}.chess-dark-mode .chessboard{border:2px solid #00ff00!important;box-shadow:0 0 16px #0f03}.chess-dark-mode .piece{filter:brightness(1.2) drop-shadow(0 0 6px #00ff00cc)}.chess-dark-mode .close-modal-btn{background:#222!important;color:#0f0!important;border:2px solid #00ff00!important}.game-mode-panel{width:100%;max-width:420px;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;padding-top:8px;padding-bottom:0;flex-shrink:0}.game-mode-title{margin-bottom:8px;font-size:20px;color:#fff;text-align:center;font-weight:500;letter-spacing:1px}.mode-btn{margin-bottom:6px}.pvp-under-construction{margin-bottom:0}.continue-btn{margin-top:10px;margin-bottom:0;width:180px;font-size:16px;font-weight:700;background:#0a2a7a;color:#fff;border:2px outset #c0c0c0;border-radius:4px;padding:10px 0;box-shadow:0 1px 4px #0000000a;transition:background .2s,color .2s}.continue-btn:hover{background:#3a7bd5;color:#fff}.dark-mode-toggle{background:none;border:none;color:#fff;font-size:16px;margin-left:8px;cursor:pointer;padding:2px 6px;outline:none;vertical-align:middle;transition:color .2s,background .2s;border-radius:50%;position:relative;top:1px;box-shadow:none;font-family:monospace;font-weight:700}.dark-mode-toggle:hover{color:gold;background:#ffffff14}.chess-header .dark-mode-toggle{margin-left:12px;align-self:center}html,body{background:silver;color:#222}html.chess-dark-mode,body.chess-dark-mode{background:#111!important;color:#0f0!important}.chess98-main-window,.chess98-content{background:silver;color:#222}.chess-dark-mode .chess98-main-window,.chess-dark-mode .chess98-content{background:transparent!important}.chess-dark-mode .chess98-content,.chess-dark-mode .center-area,.chess-dark-mode .piece-gallery-panel,.chess-dark-mode .game-mode-panel,.chess-dark-mode .left-sidebar,.chess-dark-mode .right-sidebar,.chess-dark-mode .chessboard-container,.chess-dark-mode .piece-gallery,.chess-dark-mode .move-history,.chess-dark-mode .gallery-item,.chess-dark-mode .leaderboard,.chess-dark-mode .leaderboard-table,.chess-dark-mode .game-info,.chess-dark-mode .game-content{background:#111!important;color:#0f0!important;border-color:#0f0!important}.chess-dark-mode.chess-game.game-active .left-sidebar,.chess-dark-mode.chess-game.game-active .right-sidebar,.chess-dark-mode.chess-game.game-active .move-history,.chess-dark-mode.chess-game.game-active .leaderboard,.chess-dark-mode.chess-game.game-active .leaderboard-compact,.chess-dark-mode.chess-game.game-active .move-history-compact{background:transparent!important;color:#0f0!important;border-color:#0f0!important}.chess-dark-mode .leaderboard-table th,.chess-dark-mode .leaderboard-table td{background:#111!important;color:#0f0!important}body.chess-dark-mode,html.chess-dark-mode{background:#111!important;background-image:none!important}.chess-dark-mode.chess-game.game-active,.chess-dark-mode.chess-game.game-active body,.chess-dark-mode.chess-game.game-active html{background:transparent!important;background-image:url(/assets/background.gif)!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}body:not(.chess-dark-mode),html:not(.chess-dark-mode){background:url(/assets/background.gif) no-repeat center center fixed;background-size:cover;color:#000}.chess-dark-mode .current-blue{color:#00bfff!important;text-shadow:0 0 6px #00bfff,0 0 2px #00bfff}.chess-dark-mode .current-red{color:#f44!important;text-shadow:0 0 6px #ff4444,0 0 2px #ff4444}.chess-dark-mode .wager-label{color:#ff0!important;text-shadow:0 0 6px #ffff00,0 0 2px #ffff00}.stockfish-status{font-size:11px;font-weight:700;padding:2px 6px;border-radius:3px;margin-left:8px}.stockfish-status.loading{color:#06c;background-color:#e6f3ff;border:1px solid #99ccff}.stockfish-status.ready{color:#060;background-color:#e6ffe6;border:1px solid #99cc99}.stockfish-status.failed{color:#c00;background-color:#ffe6e6;border:1px solid #cc9999}.chess-dark-mode .stockfish-status.loading{color:#66b3ff;background-color:#1a1a2e;border:1px solid #4d4d80}.chess-dark-mode .stockfish-status.ready{color:#6f6;background-color:#1a2e1a;border:1px solid #4d804d}.chess-dark-mode .stockfish-status.failed{color:#f66;background-color:#2e1a1a;border:1px solid #804d4d}.opening-suggestions{display:flex;align-items:center;gap:8px;margin-left:12px;font-size:11px}.opening-label{color:#666;font-weight:700}.opening-move{background-color:#f0f0f0;color:#333;padding:2px 6px;border-radius:3px;border:1px solid #ccc;font-weight:500}.chess-dark-mode .opening-label{color:#aaa}.chess-dark-mode .opening-move{background-color:#2a2a2a;color:#ddd;border:1px solid #555}.how-to-section{margin-top:20px;padding:16px;background:#f8f8f8;border:2px inset #c0c0c0;border-radius:4px;max-width:500px;margin-left:auto;margin-right:auto}.how-to-section h4{color:navy;font-size:16px;font-weight:700;margin:0 0 12px;text-align:center}.how-to-content{font-size:12px;line-height:1.4;color:#333}.how-to-content p{margin:8px 0;text-align:left}.how-to-content strong{color:navy;font-weight:700}.chess-dark-mode .how-to-section{background:#2a2a2a;border-color:#555}.chess-dark-mode .how-to-section h4{color:#0f0}.chess-dark-mode .how-to-content{color:#e0e0e0}.chess-dark-mode .how-to-content strong,.chess-dark-mode .opening-move{color:#0f0}@keyframes particle-explosion{0%{transform:scale(0) rotate(0);opacity:1}50%{transform:scale(1) rotate(180deg);opacity:.8}to{transform:scale(0) rotate(360deg);opacity:0}}@keyframes confetti-fall{0%{transform:translateY(-10px) rotate(0);opacity:1}to{transform:translateY(100vh) rotate(720deg);opacity:0}}@keyframes epic-glow{0%,to{box-shadow:0 0 20px #ffd70080}50%{box-shadow:0 0 40px #ffd700cc,0 0 60px #ffd70099}}@keyframes victory-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes check-flash{0%,to{background-color:#ff00001a}50%{background-color:#ff00004d}}.epic-mode .chessboard{animation:epic-glow 2s ease-in-out infinite}.epic-mode .chess-square{transition:all .3s ease}.epic-mode .chess-square:hover{transform:scale(1.1);box-shadow:0 0 15px #ffd70099}.victory-celebration,.stalemate-victory{animation:victory-pulse .5s ease-in-out infinite}.stalemate-defeat{animation:defeat-pulse .5s ease-in-out infinite}@keyframes defeat-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.02);opacity:.9}}.square-in-check{animation:check-flash 1s ease-in-out infinite}.chess-piece{transition:all .2s ease}.chess-piece:hover{transform:scale(1.1);filter:brightness(1.2)}.move-indicator{position:absolute;width:100%;height:100%;background:radial-gradient(circle,rgba(255,215,0,.3) 0%,transparent 70%);pointer-events:none;animation:move-indicator .5s ease-out}@keyframes move-indicator{0%{opacity:0;transform:scale(0)}50%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.5)}}.epic-status{background:linear-gradient(45deg,#f44,#4f4,#44f,#ff4);background-size:400% 400%;animation:epic-gradient 3s ease infinite;color:#fff;text-shadow:2px 2px 4px rgba(0,0,0,.8);font-weight:700;padding:10px;border-radius:10px;margin:10px 0}@keyframes epic-gradient{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.epic-controls{display:flex;gap:10px;margin:10px 0;flex-wrap:wrap}.epic-button{background:linear-gradient(45deg,#f44,#f84);color:#fff;border:none;padding:8px 16px;border-radius:20px;cursor:pointer;transition:all .3s ease;font-weight:700;text-transform:uppercase;letter-spacing:1px}.epic-button:hover{transform:translateY(-2px);box-shadow:0 5px 15px #f446}.epic-button:active{transform:translateY(0)}.epic-toggle{display:flex;align-items:center;gap:8px;margin:5px 0}.epic-toggle input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:40px;height:20px;background:#ccc;border-radius:10px;position:relative;cursor:pointer;transition:all .3s ease}.epic-toggle input[type=checkbox]:checked{background:linear-gradient(45deg,#4f4,#4c4)}.epic-toggle input[type=checkbox]:before{content:"";position:absolute;width:16px;height:16px;background:#fff;border-radius:50%;top:2px;left:2px;transition:all .3s ease}.epic-toggle input[type=checkbox]:checked:before{transform:translate(20px)}.victory-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:#000c;display:flex;justify-content:center;align-items:center;z-index:10000;animation:victory-modal-fade .5s ease-out}@keyframes victory-modal-fade{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.victory-content{background:linear-gradient(45deg,#f44,#f84,#ff4,#4f4,#44f);background-size:400% 400%;animation:epic-gradient 2s ease infinite;padding:40px;border-radius:20px;text-align:center;color:#fff;text-shadow:2px 2px 4px rgba(0,0,0,.8);font-size:24px;font-weight:700;box-shadow:0 20px 40px #00000080}.chessboard-container{position:relative}.chessboard-container:before{content:"";position:absolute;top:-10px;left:-10px;right:-10px;bottom:-10px;background:linear-gradient(45deg,#f44,#4f4,#44f,#ff4);background-size:400% 400%;animation:epic-gradient 4s ease infinite;border-radius:15px;z-index:-1;opacity:.3;filter:blur(10px)}.piece-captured{animation:piece-capture .5s ease-out}@keyframes piece-capture{0%{transform:scale(1) rotate(0);opacity:1}50%{transform:scale(1.2) rotate(180deg);opacity:.8}to{transform:scale(0) rotate(360deg);opacity:0}}.balloons-container{position:absolute;width:100vw;height:100vh;pointer-events:none;z-index:10}.balloon{width:60px;height:100px;opacity:.85;animation:balloon-float 4s linear forwards}@keyframes balloon-float{0%{transform:translateY(100vh) scale(1);opacity:0}10%{opacity:1}80%{opacity:1}to{transform:translateY(-120vh) scale(1.1);opacity:.7}}.blood-overlay{position:fixed;top:0;left:0;width:100vw;height:0;background:linear-gradient(to bottom,#a80000,#d10000 60%,#5a0000);opacity:.92;z-index:1999;pointer-events:none;animation:blood-drip 4s cubic-bezier(.4,0,.2,1) forwards;box-shadow:0 0 60px 20px #a80000}@keyframes blood-drip{0%{height:0;opacity:.7}10%{opacity:1}80%{opacity:1}to{height:100vh;opacity:.98}}.blood-drip{position:absolute;top:0;width:18px;height:60px;background:linear-gradient(to bottom,#a80000,#d10000 80%,#5a0000);border-radius:50% 50% 60% 60%/60% 60% 100% 100%;opacity:.85;z-index:2000;animation:blood-drip-fall 2.8s linear forwards}@keyframes blood-drip-fall{0%{top:-60px;opacity:.7}80%{opacity:1}to{top:100vh;opacity:.1}}.blood-overlay,.defeat-overlay{pointer-events:none}.defeat-overlay button,.victory-overlay button{pointer-events:auto;z-index:3000}.victory-overlay,.balloons-container{pointer-events:none}.victory-overlay button{pointer-events:auto;z-index:3000}.leaderboard-compact{flex:1 1 0;overflow-y:auto;background:transparent;border:1px solid #00ff00;border-radius:4px;margin:0 0 4px;display:flex;flex-direction:column;color:#0f0!important;padding:2px 0;min-height:0}.leaderboard-compact h3{font-size:12px;font-weight:700;color:navy;margin:0 0 4px;text-align:center}.leaderboard-table-compact{width:100%;overflow-x:auto}.leaderboard-table-compact table{width:100%;border-collapse:collapse;font-size:10px}.leaderboard-table-compact th,.leaderboard-table-compact td{padding:1px 2px;text-align:center;border:1px solid #ccc}.leaderboard-table-compact th:nth-child(1),.leaderboard-table-compact td:nth-child(1){min-width:24px;max-width:28px}.leaderboard-table-compact th:nth-child(2),.leaderboard-table-compact td:nth-child(2){min-width:60px;max-width:80px}.leaderboard-table-compact th:nth-child(3),.leaderboard-table-compact td:nth-child(3){min-width:24px;max-width:28px}.move-history-compact{flex:1 1 0;overflow-y:auto;background:transparent;border:1px solid #00ff00;border-radius:4px;margin:0;display:flex;flex-direction:column;color:#0f0!important;padding:2px 0;min-height:0}.move-history-compact .move-history-title{font-size:12px;font-weight:700;color:#0f0;margin:0 0 4px;text-align:center}.move-history-list-compact{list-style:none;padding:0;margin:0;font-size:10px;max-height:120px;overflow-y:auto}.move-history-list-compact li{padding:1px 4px;border-bottom:1px solid #eee;text-align:center}.game-info-compact{width:100%;display:flex;justify-content:space-between;align-items:center;background:transparent;border-bottom:1px solid #bbb;padding:2px 8px;font-size:11px;font-weight:700;min-height:20px;box-sizing:border-box;margin:0 0 1px}.game-info-compact span{margin:0 4px}.game-controls-compact{display:flex;gap:8px;justify-content:center;padding:8px;background:#f0f0f0;border-top:1px solid #bbb}.game-controls-compact button{background:silver;border:2px outset #fff;padding:6px 12px;font-size:11px;font-weight:700;color:#000;cursor:pointer;border-radius:0;min-width:60px}.game-controls-compact button:hover{background:#d0d0d0}.game-controls-compact button:active{border:2px inset #fff;background:#a0a0a0}.game-mode-panel-streamlined{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;background:#f0f0f0;border-radius:8px;margin:20px;max-width:400px;width:100%}.mode-selection-compact{display:flex;gap:16px;margin-bottom:20px}.mode-btn-compact{background:silver;border:2px outset #fff;padding:12px 24px;font-size:14px;font-weight:700;color:#000;cursor:pointer;border-radius:0;min-width:80px;text-align:center}.mode-btn-compact:hover{background:#d0d0d0}.mode-btn-compact:active{border:2px inset #fff;background:#a0a0a0}.mode-btn-compact.selected{background:navy;color:#fff;border:2px inset #fff}.start-btn-compact{background:green;border:2px outset #fff;padding:12px 32px;font-size:16px;font-weight:700;color:#fff;cursor:pointer;border-radius:0;margin-bottom:20px}.start-btn-compact:hover{background:#006000}.start-btn-compact:active{border:2px inset #fff;background:#004000}.pvp-info{text-align:center;margin-bottom:20px;padding:12px;background:#fff;border:1px solid #ccc;border-radius:4px}.pvp-info p{margin:4px 0;font-size:12px;color:#666}.help-section-compact{background:#fff;border:1px solid #ccc;border-radius:4px;padding:12px;margin-top:16px;max-width:100%}.help-section-compact h4{font-size:14px;font-weight:700;color:navy;margin:0 0 8px;text-align:center}.help-content{font-size:11px;line-height:1.3}.help-content p{margin:6px 0;color:#333}.help-content strong{color:navy;font-weight:700}.chess-dark-mode .leaderboard-compact,.chess-dark-mode .move-history-compact{background:transparent;color:#0f0!important}.chess-dark-mode .leaderboard-compact h3,.chess-dark-mode .move-history-compact .move-history-title{color:#0f0}.chess-dark-mode .leaderboard-table-compact th,.chess-dark-mode .leaderboard-table-compact td{border-color:#4a5568;color:#e2e8f0}.chess-dark-mode .game-info-compact{background:transparent;border-color:#4a5568;color:#e2e8f0}.chess-dark-mode .game-controls-compact{background:#2d3748;border-color:#4a5568}.chess-dark-mode .game-controls-compact button{background:#4a5568;border-color:#718096;color:#e2e8f0}.chess-dark-mode .game-controls-compact button:hover{background:#718096}.chess-dark-mode .game-mode-panel-streamlined{background:#2d3748}.chess-dark-mode .mode-btn-compact{background:#4a5568;border-color:#718096;color:#e2e8f0}.chess-dark-mode .mode-btn-compact:hover{background:#718096}.chess-dark-mode .mode-btn-compact.selected{background:#3182ce;color:#fff}.chess-dark-mode .start-btn-compact{background:#38a169}.chess-dark-mode .start-btn-compact:hover{background:#2f855a}.chess-dark-mode .pvp-info{background:#4a5568;border-color:#718096}.chess-dark-mode .pvp-info p{color:#e2e8f0}.chess-dark-mode .help-section-compact{background:#4a5568;border-color:#718096}.chess-dark-mode .help-section-compact h4{color:#90cdf4}.chess-dark-mode .help-content p{color:#e2e8f0}.chess-dark-mode .help-content strong{color:#90cdf4}@media (max-width: 900px){.mode-selection-compact{flex-direction:column;gap:8px}.mode-btn-compact{min-width:120px}.game-controls-compact{flex-wrap:wrap}.game-controls-compact button{min-width:50px;font-size:10px}}@media (max-width: 600px){.leaderboard-compact h3,.move-history-compact .move-history-title{font-size:11px}.leaderboard-table-compact table{font-size:9px}.game-info-compact{font-size:10px;padding:2px 4px}.help-content{font-size:10px}.piece-gallery-grid{grid-template-columns:1fr;gap:8px}.piece-gallery-img{width:40px;height:40px}.piece-gallery-name{font-size:11px}.piece-gallery-desc{font-size:9px}}.left-sidebar{overflow-y:auto;height:100%}.left-sidebar .piece-gallery{flex:1 1 0;overflow-y:auto;max-height:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center}.left-sidebar .piece-gallery-compact{overflow-y:auto;max-height:100%;height:100%;min-height:0}.wallet-connection-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000}.wallet-connection-content{background:#fff;border:3px outset #c00000;padding:40px 32px;text-align:center;max-width:500px;border-radius:0;box-shadow:0 8px 32px #0000004d}.wallet-connection-content h3{margin:0 0 20px;font-size:24px;color:#c00;text-transform:uppercase;letter-spacing:1px}.wallet-connection-content p{margin:10px 0;font-size:16px;color:#333;line-height:1.4}.switch-network-btn{background:navy;color:#fff;border:2px outset #c00000;padding:12px 24px;font-size:16px;font-weight:700;cursor:pointer;margin:20px 0;text-transform:uppercase;letter-spacing:1px;transition:background .2s}.switch-network-btn:hover{background:#01a}.switch-network-btn:active{border:2px inset #c00000;background:#03c}.wallet-status{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:20px;padding:12px;background:#fff;border:2px inset #c0c0c0;border-radius:0}.status-indicator{font-size:20px;font-weight:700}.status-indicator.disconnected{color:red}.status-indicator.wrong-network{color:#ff8c00}.status-indicator.connected{color:#00c000}.chess-dark-mode .wallet-connection-content{background:#222;border-color:#0ff0ff;color:#0f0}.chess-dark-mode .wallet-connection-content h3{color:#0f0;text-shadow:0 0 6px #00ff00,0 0 2px #00ff00}.chess-dark-mode .wallet-connection-content p{color:#e0e0e0}.chess-dark-mode .switch-network-btn{background:#0f0f0f;color:#0f0;border-color:#0f0;text-shadow:none}.chess-dark-mode .switch-network-btn:hover{background:#0c0}.chess-dark-mode .wallet-status{background:#333;border-color:#0ff0ff;color:#0f0}.chess-game.fullscreen{width:100vw;height:100vh;max-width:none;max-height:none;padding:0;margin:0}.chess-game.fullscreen .game-stable-layout{height:calc(100vh - 60px);width:100%;max-width:none;display:flex;align-items:center;justify-content:center}.chess-game.fullscreen .center-area{height:100%;max-height:none;justify-content:center;align-items:center;display:flex;flex-direction:column;flex:1}.chess-game.fullscreen .chessboard-container{width:auto;height:auto;max-width:min(85vh,85vw);max-height:min(85vh,85vw);min-width:250px;min-height:250px;flex:none;display:flex;align-items:center;justify-content:center;margin:0 auto}.chess-game.fullscreen .chessboard{width:100%;height:100%;max-width:min(85vh,85vw);max-height:min(85vh,85vw);min-width:250px;min-height:250px;aspect-ratio:1 / 1;flex-shrink:0;object-fit:contain}.chess-game.fullscreen .left-sidebar{width:180px;min-width:180px;max-width:180px;height:100%;flex-shrink:1}.chessboard-container{position:relative;z-index:10}.chessboard{position:relative;z-index:11;box-shadow:0 0 20px #0000004d;aspect-ratio:1 / 1!important}@media (max-width: 768px){.square{min-height:50px;min-width:50px;touch-action:manipulation}.piece{touch-action:manipulation;cursor:pointer}.game-controls-compact button,.mode-btn-compact,.start-btn-compact,.sidebar-toggle-btn{min-height:44px;min-width:44px;padding:12px 16px;font-size:16px;touch-action:manipulation}.square:active,.piece:active{transform:scale(.95);transition:transform .1s ease}.left-sidebar{max-height:40vh;overflow-y:auto;-webkit-overflow-scrolling:touch}.game-info-compact{font-size:14px;padding:8px 12px}.game-info-compact span{font-size:14px;margin:0 4px}.leaderboard-table-compact th,.leaderboard-table-compact td{padding:8px 4px;font-size:12px}.help-content{font-size:13px;line-height:1.4}.help-content ul,.help-content ol{padding-left:20px}.help-content li{margin-bottom:4px}}@media (max-width: 600px){.chessboard-container,.chessboard{max-width:95vw;max-height:95vw;min-width:280px;min-height:280px}.game-stable-layout{padding:8px;gap:8px}.center-area{min-width:0;width:100%}.game-controls-compact{flex-wrap:wrap;gap:8px;justify-content:center}.sidebar-toggle-group{flex-wrap:wrap;gap:4px}.game-mode-panel-streamlined{padding:16px 12px}.mode-selection-compact{gap:12px;margin-bottom:16px}}@media (hover: none) and (pointer: coarse){.square.selected{background-color:#4caf50!important;box-shadow:inset 0 0 0 3px #2e7d32}.square.legal-move{background-color:#ffc107!important;box-shadow:inset 0 0 0 2px #ff8f00}.square.last-move{background-color:#2196f3!important;box-shadow:inset 0 0 0 2px #1976d2}}@media (max-width: 768px){.chess-dark-mode .game-controls-compact button{background:#2a2a2a;border-color:#444;color:#fff}.chess-dark-mode .game-controls-compact button:hover{background:#3a3a3a}.chess-dark-mode .game-controls-compact button:active{background:#1a1a1a}}.chess-page{padding:0;max-width:100vw;margin:0;height:100vh;overflow:hidden}.chess-content{height:100vh;width:100vw}
