: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}}#root{width:100%;min-height:100vh;margin:0;padding:0;text-align:center}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion:no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em}.read-the-docs{color:#888}.register-form{display:flex;flex-direction:column;gap:15px;max-width:300px;margin:50px auto;padding:20px;border:1px solid #ccc;border-radius:8px;box-shadow:0 2px 4px #0000001a;background-color:#fff}.form-group{display:flex;flex-direction:column}.form-group label{margin-bottom:5px;font-weight:700;color:#333}.form-input{padding:10px;border:1px solid #ddd;border-radius:4px;font-size:1rem}.form-input:focus{border-color:#007bff;outline:none;box-shadow:0 0 0 2px #007bff40}.submit-button{padding:10px 15px;border:none;border-radius:4px;background-color:#03080e;color:#fff;font-size:1rem;cursor:pointer;transition:background-color .2s ease-in-out}.submit-button:hover{background-color:#0056b3}.register-form{width:100%;max-width:380px;margin:2rem auto;padding:2rem;background:#1a1a1f;border-radius:18px;box-shadow:0 12px 32px #0f172a14;display:flex;flex-direction:column;gap:1rem}.register-form h2{margin:0;color:#e8f1ff;font-size:1.9rem;text-align:center}.register-form>p:first-of-type{color:#b8c6e0;opacity:.95;font-size:1rem;text-align:center;margin:.4rem 0 1rem}.form-group{display:flex;flex-direction:column;text-align:left;gap:.45rem}.form-group label{font-size:.9rem;font-weight:600;color:#e8f1ff}.register-form p button{background:none;border:none;padding:0;margin-left:.2rem;color:#4f46e5;font-weight:600;cursor:pointer;text-decoration:underline;font-size:.95rem;transition:color .15s ease}.register-form p button:hover{color:#645af7}.error-message{max-width:320px;align-self:center;width:100%;padding:.75rem .9rem;border-radius:10px;background:#401d1d;border:1px solid #7e2c2c;color:#ff6b6b;font-size:.95rem;text-align:center;box-sizing:border-box}.signup-form{width:100%;max-width:380px;margin:2rem auto;padding:2rem;background:#1a1a1f;border-radius:18px;box-shadow:0 12px 32px #0f172a14;display:flex;flex-direction:column;gap:1rem}.signup-form h2{margin:0;color:#e8f1ff;font-size:1.9rem;text-align:center}.signup-form>p:first-of-type{color:#b8c6e0;opacity:.95;font-size:1rem;text-align:center;margin:.4rem 0 1rem}p{margin:0;color:#c5dbf8;font-size:.9rem;line-height:1.4}.form-group{display:flex;flex-direction:column;gap:.4rem}.form-group label{color:#e8f1ff;font-size:.9rem;font-weight:600}.form-input{width:100%;max-width:320px;align-self:center;padding:.65rem .8rem;background:#22232b;border:1px solid #3c4454;border-radius:10px;color:#e5eaff;font-size:.95rem;transition:border-color .2s ease,box-shadow .2s ease}.form-input:focus{outline:none;border-color:#645af7;box-shadow:0 0 0 3px #4f46e540}.submit-button{width:100%;max-width:320px;align-self:center;padding:.75rem;border:none;border-radius:10px;background:#4f46e5;color:#fff;font-size:1rem;font-weight:700;cursor:pointer;transition:background .2s ease,transform .1s ease,box-shadow .2s ease}.submit-button:hover{background:#645af7;transform:translateY(-1px);box-shadow:0 8px 18px #4f46e54d}.submit-button:active{transform:translateY(0)}.error-message{color:#ff6b6b;text-align:center;font-size:.9rem}.menu{min-height:100vh;display:flex;position:relative;justify-content:center;align-items:center;padding:2rem;background-color:#111116;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='200' viewBox='0 0 112 200'%3E%3Cdefs%3E%3Cstyle%3E .hex %7B stroke: %232d2d35; stroke-width: 1; fill: none; %7D .blue %7B fill: %233b82f6; opacity: 0; animation: pulse 8s infinite; %7D .red %7B fill: %23ef4444; opacity: 0; animation: pulse 12s infinite 2s; %7D @keyframes pulse %7B 0%25, 100%25 %7B opacity: 0; %7D 50%25 %7B opacity: 0.15; %7D %7D %3C/style%3E%3C/defs%3E%3Cpath class='hex' d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100'/%3E%3Cpath class='hex' d='M84 66L56 50L56 16L84 0L112 16L112 50L84 66L84 100'/%3E%3Cpath class='hex blue' d='M28 66L0 50L0 16L28 0L56 16L56 50z'/%3E%3Cpath class='hex red' d='M84 166L56 150L56 116L84 100L112 116L112 150z'/%3E%3C/svg%3E");background-size:112px 200px;background-attachment:fixed;box-sizing:border-box;overflow:hidden}.menuCard{width:100%;max-width:760px;background:#1a1a1ff2;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.05);border-radius:22px;box-shadow:0 20px 50px #00000080;padding:2rem;box-sizing:border-box}.menuHeader{text-align:center;margin-bottom:2rem}.menuTitle{margin:0;font-size:2rem;color:#22d3ee}.menuSubtitle{margin-top:.6rem;color:#4b5563;font-size:1rem;line-height:1.5}.menuSection{margin-bottom:1.75rem}.sectionTitle{margin:0 0 .9rem;color:#155e75;font-size:1.05rem;font-weight:700}.carousel{display:flex;align-items:center;justify-content:center;gap:1rem}.carouselButton{width:50px;height:50px;border:none;border-radius:50%;background:linear-gradient(135deg,#14b8a6,#3b82f6);color:#fff;cursor:pointer;transition:transform .18s ease,box-shadow .2s ease,opacity .2s ease;flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:0;line-height:1;box-shadow:0 6px 16px #3b82f629}.carouselButton:hover{transform:translateY(-1px) scale(1.03);box-shadow:0 10px 20px #3b82f638}.carouselButton:active{transform:translateY(0) scale(1)}.carouselButton span{font-size:1.8rem;font-weight:700;line-height:1;transform:translateY(-1px)}.carouselCard{flex:1;max-width:430px;min-height:118px;background:var(--color-surface, #74748a);border:1.5px solid #b6e3ea;border-radius:18px;padding:1.2rem 1.5rem;display:flex;flex-direction:column;justify-content:center;text-align:center;box-sizing:border-box;transition:border-color .2s ease,box-shadow .2s ease,transform .15s ease}.carouselCard:hover{border-color:#14b8a6;box-shadow:0 0 0 4px #14b8a614}.optionTitle{font-size:1.15rem;font-weight:700;color:#e8f1ff;margin-bottom:.35rem}.optionDescription{font-size:.96rem;color:#b8c6e0;line-height:1.45}.actions{display:flex;justify-content:center;gap:1rem;margin-top:2rem;flex-wrap:wrap}.btn{color:#fff;border:none;border-radius:12px;padding:.9rem 1.4rem;font-size:1rem;font-weight:700;cursor:pointer;text-shadow:0 1px 2px rgba(0,0,0,.4);transition:transform .15s ease,box-shadow .2s ease,opacity .2s ease}.btnPrimary{background:#4f46e5;color:#fff;border:none;text-shadow:0 2px 6px rgba(0,0,0,.35);letter-spacing:.02em}.btnPrimary:hover{background:#7c73ff;transform:translateY(-1px);box-shadow:0 10px 22px #4f46e54d}.btnPrimary:active{transform:translateY(0)}.btnLarge{min-width:190px}.btnSecondary{background:#a5a5b5;color:#f9fafb;border:1px solid #5b5b6a;text-shadow:0 1px 3px rgba(0,0,0,.5)}.btnSecondary:hover{background:#3a3a44;border-color:#7c73ff;color:#fff;transform:translateY(-1px)}.btnSecondary:active{transform:translateY(0)}.historyButtonWrapper .btnSecondary{padding:.6rem 1rem;font-size:.9rem;background:#3a3a44;border-color:#7c73ff}@media(max-width:640px){.menu{padding:1rem}.menuCard{padding:1.4rem;border-radius:18px}.menuTitle{font-size:1.7rem}.menuSubtitle{font-size:.95rem}.carousel{gap:.75rem}.carouselButton{width:44px;height:44px}.carouselButton span{font-size:1.5rem}.carouselCard{flex:1;max-width:430px;min-height:118px;background:#1f1f24;border:1.5px solid #3c4454;border-radius:18px;padding:1.2rem 1.5rem;display:flex;flex-direction:column;justify-content:center;text-align:center;transition:border-color .2s ease,box-shadow .2s ease,transform .15s ease}.carouselCard:hover{border-color:#4f46e5;box-shadow:0 0 0 4px #4f46e526}.optionTitle{font-size:1.15rem;font-weight:700;color:#e8f1ff;margin-bottom:.35rem}.optionDescription{font-size:.96rem;color:#b8c6e0;line-height:1.45}}.history{min-height:100vh;display:flex;align-items:flex-start;justify-content:center;padding:2rem 1rem;background:var(--color-bg, #0f0f11)}.historyCard{width:100%;max-width:720px;background:var(--color-surface, #1a1a1f);border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}.historyHeader{display:flex;align-items:center;justify-content:space-between}.historyHeader h2{font-size:1.25rem;font-weight:600;color:var(--color-text, #f1f1f3);margin:0}.statsBar{display:flex;align-items:center;justify-content:center;gap:0;background:#ffffff0a;border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:1rem 1.5rem}.statItem{display:flex;flex-direction:column;align-items:center;gap:.25rem;flex:1}.statValue{font-size:1.5rem;font-weight:700;color:var(--color-text, #f1f1f3);line-height:1}.statValue.statWin{color:#4ade80}.statValue.statLoss{color:#f87171}.statLabel{font-size:.72rem;color:#ffffff73;text-transform:uppercase;letter-spacing:.05em}.statDivider{width:1px;height:2.5rem;background:#ffffff1a;flex-shrink:0}.filterTabs{display:flex;gap:.5rem}.filterTab{padding:.4rem 1rem;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:transparent;color:#ffffff80;font-size:.82rem;cursor:pointer;transition:all .15s}.filterTab:hover{background:#ffffff0f;color:#ffffffe6}.filterTab.activeTab{background:#6366f133;border-color:#6366f180;color:#c4b5fd}.tableWrapper{overflow-x:auto;border-radius:10px;border:1px solid rgba(255,255,255,.07)}.historyTable{width:100%;border-collapse:collapse;font-size:.88rem}.historyTable thead tr{background:#ffffff0a}.historyTable th{padding:.65rem 1rem;text-align:left;font-weight:500;color:#ffffff73;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;border-bottom:1px solid rgba(255,255,255,.07)}.historyTable th.sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.historyTable th.sortable:hover{color:#ffffffbf}.tdBoardSize{text-align:center;font-weight:500}.sortIcon{margin-left:.3rem;font-size:.75rem}.sortIcon.inactive{opacity:.3}.sortIcon.active{color:#a5b4fc}.historyTable tbody tr{border-bottom:1px solid rgba(255,255,255,.04);transition:background .12s}.historyTable tbody tr:last-child{border-bottom:none}.historyTable tbody tr:hover{background:#ffffff08}.historyTable td{padding:.7rem 1rem;color:var(--color-text, #f1f1f3)}.rowWin{border-left:2px solid rgba(74,222,128,.35)}.rowLoss{border-left:2px solid rgba(248,113,113,.35)}.tdIndex{color:#ffffff4d;font-size:.78rem;width:2rem}.tdMoves{font-variant-numeric:tabular-nums}.tdDate{color:#ffffff8c;font-size:.82rem;white-space:nowrap}.resultBadge{display:inline-flex;align-items:center;gap:.3rem;padding:.25rem .65rem;border-radius:999px;font-size:.78rem;font-weight:500}.badgeWin{background:#4ade801f;color:#4ade80;border:1px solid rgba(74,222,128,.25)}.badgeLoss{background:#f871711f;color:#f87171;border:1px solid rgba(248,113,113,.25)}.historyCenter{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:3rem 1rem}.spinner{width:32px;height:32px;border:3px solid rgba(255,255,255,.1);border-top-color:#a5b4fc;border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loadingText{color:#fff6;font-size:.88rem}.emptyText{color:#fff6;font-size:.95rem}.errorText{color:#f87171;font-size:.9rem}.board{position:fixed;inset:0;background:#fff;color:#000;display:flex;flex-direction:column;padding:20px;overflow:hidden}.boardCard{flex:1;display:flex;flex-direction:column;background:#fcfafa0a;border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:18px;min-height:0}.boardHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;flex-shrink:0}.boardTitle{margin:0;font-size:1.3rem;font-weight:700}.boardMeta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px;flex-shrink:0}.infoTag{padding:4px 10px;border-radius:8px;background:#ffffff0d;border:1px solid rgba(255,255,255,.09);font-size:.78rem;opacity:.75}.svgWrapper{flex:1;min-height:0;border-radius:10px;background:#00000040;border:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;padding:8px}.svgWrapper svg{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.btn{padding:10px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:#ffffff14;color:inherit;cursor:pointer;font-size:.9rem}.btn:hover{background:#ffffff21}
