@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap";*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px}body{color:#e0e0e0;background:#312e2b;margin:0;font-family:Inter,system-ui,-apple-system,sans-serif}#root{min-height:100vh}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.piece{width:100%;height:100%;cursor:inherit;-webkit-user-select:none;user-select:none;will-change:transform;justify-content:center;align-items:center;transition:transform .1s;display:flex}.piece__img{object-fit:contain;pointer-events:none;width:100%;height:100%}.piece__fallback{pointer-events:none;text-shadow:0 1px 2px #00000073;font-size:clamp(22px,4.2vw,46px);line-height:1}.piece:hover{transform:scale(1.05)}.square{aspect-ratio:1;cursor:pointer;justify-content:center;align-items:center;width:100%;transition:background-color .15s;display:flex;position:relative}.square--light{background-color:#ebecd0}.square--dark{background-color:#739552}.square--selected{background-color:#ffff3380!important}.square--legal{cursor:pointer}.square--last-from{background-color:#ff36!important}.square--last-to{background-color:#ffff3380!important}.square--check{background:radial-gradient(circle,red 0%,#c00 40%,#0000 70%)!important}.square__legal-dot{pointer-events:none;background-color:#0003;border-radius:50%;width:28%;height:28%}.square__legal-capture{pointer-events:none;border:5px solid #0003;border-radius:50%;position:absolute;inset:0}.square__badge{z-index:2;color:#101010;pointer-events:none;background:#ffffffeb;border-radius:999px;justify-content:center;align-items:center;min-width:1.45rem;min-height:1.1rem;padding:0 .28rem;font-size:.66rem;font-weight:800;line-height:1;display:inline-flex;position:absolute;top:.22rem;right:.22rem;box-shadow:0 2px 10px #00000047}.square__badge--missed{color:#533500;background:#f7c95c}.square__badge--mistake{color:#4a1c00;background:#f29a5e}.square__badge--blunder{color:#fff3f3;background:#e06b6b}.square:hover{filter:brightness(1.05)}.board-wrapper{padding-bottom:24px;padding-left:24px;display:inline-block;position:relative}.board{border-radius:4px;grid-template-rows:repeat(8,1fr);grid-template-columns:repeat(8,1fr);width:min(75vmin,560px);height:min(75vmin,560px);display:grid;overflow:hidden;box-shadow:0 8px 32px #0006,0 2px 8px #0003}.board-labels{display:flex;position:absolute}.board-labels--files{flex-direction:row;height:24px;bottom:0;left:24px;right:0}.board-labels--ranks{flex-direction:column;width:24px;top:0;bottom:24px;left:0}.board-label{color:#a0a0a0;flex:1;justify-content:center;align-items:center;font-family:Inter,system-ui,sans-serif;font-size:.75rem;font-weight:600;display:flex}@media (width<=600px){.board{width:min(92vmin,560px);height:min(92vmin,560px)}.board-wrapper{padding-bottom:16px;padding-left:16px}.board-labels--files{height:16px;left:16px}.board-labels--ranks{width:16px;bottom:16px}.board-label{font-size:.6rem}}.gh-root{width:100%;max-width:900px;margin:0 auto;padding:1.5rem 1rem 3rem}.gh-header-row{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.25rem;display:flex}.gh-title{color:var(--color-text,#e8e8e8);letter-spacing:.02em;margin:0;font-size:1.5rem;font-weight:700}.gh-section-title{color:var(--color-text-muted,#9a9a9a);text-transform:uppercase;letter-spacing:.08em;margin:1.5rem 0 .65rem;font-size:1rem;font-weight:600}.gh-toggle-stats{color:var(--color-text-muted,#b8b8b8);cursor:pointer;white-space:nowrap;background:#ffffff0f;border:1px solid #ffffff1a;border-radius:8px;padding:.3rem .75rem;font-size:.8rem;transition:background .15s}.gh-toggle-stats:hover{background:#ffffff1a}.gh-stats{grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:.5rem;display:grid}.gh-stat-card{background:#ffffff08;border:1px solid #ffffff12;border-radius:12px;padding:1rem 1.1rem}.gh-stat-card--full{grid-column:1/-1}.gh-stat-card__title{text-transform:uppercase;letter-spacing:.1em;color:var(--color-text-muted,#7a7a7a);margin:0 0 .85rem;font-size:.75rem;font-weight:700}.gh-overall__numbers{align-items:baseline;gap:.3rem;margin-bottom:.65rem;display:flex}.gh-overall__num{font-size:2rem;font-weight:800;line-height:1}.gh-overall__num small{margin-left:1px;font-size:.9rem;font-weight:600}.gh-overall__num--win{color:#6dda9a}.gh-overall__num--draw{color:#f5c26b}.gh-overall__num--loss{color:#f48a8a}.gh-overall__sep{color:#fff3;font-size:1.5rem}.gh-streak-row{flex-wrap:wrap;gap:.75rem;margin-top:.6rem;display:flex}.gh-streak-badge{color:var(--color-text-muted,#9a9a9a);background:#ffffff0d;border-radius:999px;padding:.2em .7em;font-size:.8rem}.gh-streak-badge strong{color:var(--color-text,#e0e0e0)}.gh-record{flex-direction:column;gap:.3rem;display:flex}.gh-record__bar{background:#ffffff12;border-radius:999px;height:8px;display:flex;overflow:hidden}.gh-bar-seg{transition:width .4s}.gh-bar-seg--win{background:#4caf78}.gh-bar-seg--draw{background:#f0a842}.gh-bar-seg--loss{background:#e05c5c}.gh-record__labels{gap:.5rem;font-size:.78rem;display:flex}.gh-rl{font-weight:600}.gh-rl--win{color:#6dda9a}.gh-rl--draw{color:#f5c26b}.gh-rl--loss{color:#f48a8a}.gh-rl--pct{color:var(--color-text-muted,#9a9a9a);margin-left:auto}.gh-stat-empty{color:var(--color-text-muted,#6a6a6a);font-size:.8rem}.gh-act-grid{grid-template-columns:repeat(4,1fr);gap:.6rem;display:grid}.gh-act-tile{text-align:center;background:#ffffff0a;border:1px solid #ffffff0f;border-radius:8px;padding:.65rem .5rem}.gh-act-tile__count{color:var(--color-text,#e8e8e8);font-size:1.7rem;font-weight:800;line-height:1}.gh-act-tile__label{color:var(--color-text-muted,#7a7a7a);text-transform:uppercase;letter-spacing:.05em;margin:.2rem 0 .35rem;font-size:.7rem}.gh-act-tile__record{justify-content:center;gap:.35rem;font-size:.72rem;display:flex}.gh-color-grid{flex-direction:column;gap:.6rem;display:flex}.gh-color-row{grid-template-columns:1.4rem 3.5rem 1fr;align-items:center;gap:.5rem;display:grid}.gh-color-icon{text-align:center;font-size:1.2rem}.gh-color-name{color:var(--color-text,#d0d0d0);font-size:.82rem;font-weight:600}.gh-color-bar{flex-direction:column;gap:.25rem;display:flex}.gh-elo-table{flex-direction:column;gap:.3rem;display:flex}.gh-elo-row{grid-template-columns:4.5rem 4rem 5rem 1fr;align-items:center;gap:.5rem;padding:.25rem 0;font-size:.82rem;display:grid}.gh-elo-row--header{text-transform:uppercase;letter-spacing:.07em;color:var(--color-text-muted,#6a6a6a);border-bottom:1px solid #ffffff0f;margin-bottom:.1rem;padding-bottom:.35rem;font-size:.7rem;font-weight:700}.gh-elo-label{color:var(--color-text,#d8d8d8);font-weight:600}.gh-elo-range{color:var(--color-text-muted,#7a7a7a);font-size:.75rem}.gh-elo-rec{gap:.3rem;display:flex}.gh-elo-bar-col{align-items:center;gap:.45rem;display:flex}.gh-elo-bar-col .gh-record{flex:1}.gh-elo-bar-col .gh-record__bar{height:6px}.gh-elo-pct{color:var(--color-text-muted,#9a9a9a);text-align:right;min-width:2.2rem;font-size:.75rem}.gh-loading{height:200px;color:var(--color-text-muted,#9a9a9a);justify-content:center;align-items:center;font-size:1rem;animation:1.4s ease-in-out infinite pulse;display:flex}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}.gh-empty{color:var(--color-text-muted,#9a9a9a);flex-direction:column;align-items:center;gap:1rem;padding:3rem 0;display:flex}.gh-empty__icon{opacity:.3;font-size:3.5rem}.gh-list{flex-direction:column;gap:.65rem;display:flex}.gh-card{text-align:left;background:#ffffff0a;border:1px solid #ffffff12;border-radius:10px;align-items:stretch;gap:.75rem;width:100%;padding:.85rem 1rem;transition:background .18s,border-color .18s,transform .12s;display:flex}.gh-card:hover{background:#ffffff14;border-color:#ffffff26;transform:translateY(-1px)}.gh-card:active{transform:translateY(0)}.gh-card__main{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;flex:1;gap:.5rem;margin:0;padding:0;display:flex}.gh-card--win{border-left:3px solid #4caf78}.gh-card--loss{border-left:3px solid #e05c5c}.gh-card--draw{border-left:3px solid #f0a842}.gh-card__top{align-items:center;gap:.75rem;display:flex}.gh-card__bottom{flex-wrap:wrap;align-items:center;gap:1.25rem;display:flex}.gh-card__date{color:var(--color-text-muted,#9a9a9a);margin-left:auto;font-size:.8rem}.gh-card__time{opacity:.65}.gh-card__meta{color:var(--color-text-muted,#b8b8b8);font-size:.82rem}.gh-delete-btn{color:#ffb0b0;cursor:pointer;background:#e05c5c29;border:1px solid #e05c5c59;border-radius:8px;padding:.36rem .75rem;font-size:.78rem;font-weight:600;transition:background .15s,border-color .15s,opacity .15s}.gh-delete-btn:hover:not(:disabled){background:#e05c5c3d;border-color:#e05c5c80}.gh-delete-btn:disabled{opacity:.55;cursor:default}.gh-delete-btn--inline{flex-shrink:0;align-self:center}@media (width<=640px){.gh-card{flex-direction:column;gap:.55rem}.gh-delete-btn--inline{align-self:flex-end}}.gh-badge{letter-spacing:.03em;border-radius:999px;padding:.2em .65em;font-size:.78rem;font-weight:700;display:inline-block}.gh-badge--win{color:#6dda9a;background:#4caf7833}.gh-badge--loss{color:#f48a8a;background:#e05c5c33}.gh-badge--draw{color:#f5c26b;background:#f0a84233}.gh-replay{flex-direction:column;gap:1rem;width:100%;padding:.5rem .5rem 2rem;display:flex}.gh-replay__header{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}.gh-back-btn{color:var(--color-text,#e8e8e8);cursor:pointer;background:#ffffff12;border:1px solid #ffffff1a;border-radius:8px;padding:.4rem .85rem;font-size:.88rem;transition:background .15s}.gh-back-btn:hover{background:#ffffff21}.gh-replay__meta{color:var(--color-text-muted,#b8b8b8);flex-wrap:wrap;align-items:center;gap:.85rem;font-size:.85rem;display:flex}.gh-replay__body{flex-wrap:wrap;align-items:flex-start;gap:1.25rem;display:flex}.gh-replay__board-wrap{flex-direction:column;flex-shrink:0;align-items:stretch;gap:.65rem;width:100%;max-width:550px;display:flex}.gh-replay__board-wrap>.board-wrapper{width:100%;max-width:550px;margin:0 auto;display:block}.gh-replay__board-wrap .board{aspect-ratio:1;width:calc(100% - 24px);max-width:526px;height:auto;max-height:526px}@media (width<=600px){.gh-replay__board-wrap .board{width:calc(100% - 16px);max-width:calc(100vw - 48px)}}.gh-controls{grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr) minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,.9fr);align-items:stretch;gap:.55rem;width:min(100%,540px);margin:0 auto;display:grid}.gh-ctrl-btn{min-height:3.1rem;color:var(--color-text,#e8e8e8);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;background:#ffffff12;border:1px solid #ffffff1f;border-radius:14px;justify-content:center;align-items:center;gap:.45rem;padding:.7rem .8rem;font-size:.92rem;font-weight:700;transition:background .15s,transform .12s,border-color .15s,opacity .15s;display:inline-flex}.gh-ctrl-btn:hover:not(:disabled){background:#ffffff1f;border-color:#fff3;transform:translateY(-1px)}.gh-ctrl-btn:active:not(:disabled){transform:translateY(0)}.gh-ctrl-btn:disabled{opacity:.45;cursor:default}.gh-ctrl-btn--primary{background:#63aaff24;border-color:#63aaff42}.gh-ctrl-btn--primary:hover:not(:disabled){background:#63aaff33;border-color:#63aaff5c}.gh-ctrl-btn__icon{font-size:1rem;line-height:1}.gh-ctrl-btn__label{line-height:1}.gh-ctrl-counter{min-height:3.1rem;color:var(--color-text,#e8e8e8);text-align:center;background:#ffffff0a;border:1px solid #ffffff14;border-radius:14px;justify-content:center;align-items:center;padding:.55rem .85rem;font-size:.92rem;font-weight:700;display:flex}.gh-controls__hint{text-align:center;color:var(--color-text-muted,#8f8f8f);margin:.05rem 0 0;font-size:.78rem}.gh-replay__graph-area{flex-direction:column;align-items:center;width:100%;margin-bottom:1.25rem;display:flex}.gh-eval-graph-container{cursor:crosshair;background:#ffffff08;border:1px solid #ffffff12;border-radius:8px;width:100%;position:relative;overflow:hidden}.gh-eval-svg{height:70px;display:block}.gh-analyze-btn{color:#c9e2ff;cursor:pointer;background:#60b0ff26;border:1px solid #60b0ff4d;border-radius:6px;align-self:center;margin-top:.6rem;padding:.4rem 1rem;font-size:.85rem;font-weight:600;transition:all .2s}.gh-analyze-btn:hover{background:#60b0ff40}.gh-analyze-progress{background:#ffffff0d;border-radius:6px;justify-content:center;align-items:center;width:100%;height:1.8rem;margin-top:.2rem;display:flex;position:relative;overflow:hidden}.gh-analyze-progress-bar{background:#60b0ff40;transition:width .2s linear;position:absolute;top:0;bottom:0;left:0}.gh-analyze-progress span{color:#fff;text-shadow:0 1px 2px #00000080;font-size:.75rem;font-weight:600;position:relative}.gh-analysis-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;display:grid}.gh-analysis-summary--pending{grid-template-columns:1fr}.gh-analysis-summary__card,.gh-analysis-summary__empty{background:#ffffff08;border:1px solid #ffffff12;border-radius:14px;padding:.9rem 1rem}.gh-analysis-summary__empty{color:var(--color-text-muted,#a2a2a2);font-size:.84rem;line-height:1.45}.gh-analysis-summary__top{justify-content:space-between;align-items:flex-start;gap:.8rem;margin-bottom:.8rem;display:flex}.gh-analysis-summary__title{text-transform:uppercase;letter-spacing:.07em;color:var(--color-text-muted,#a7a7a7);margin:0;font-size:.82rem}.gh-analysis-summary__meta{color:var(--color-text-muted,#818181);margin:.28rem 0 0;font-size:.78rem}.gh-analysis-summary__time{color:#b7d3ff;margin:.18rem 0 0;font-size:.76rem}.gh-analysis-summary__accuracy{color:#f0f6ff;flex-shrink:0;font-size:1.7rem;font-weight:800;line-height:1}.gh-analysis-summary__grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem;display:grid}.gh-analysis-stat{background:#ffffff08;border:1px solid #ffffff0f;border-radius:12px;flex-direction:column;justify-content:space-between;gap:.35rem;min-height:4rem;padding:.55rem .6rem;display:flex}.gh-analysis-stat__label{letter-spacing:.05em;text-transform:uppercase;color:var(--color-text-muted,#929292);font-size:.68rem;font-weight:700}.gh-analysis-stat strong{color:var(--color-text,#ededed);font-size:1.1rem;line-height:1}.gh-analysis-stat--best{background:#52c57b1a;border-color:#52c57b2e}.gh-analysis-stat--good{background:#63aaff14;border-color:#63aaff29}.gh-analysis-stat--missed{background:#ffc8571a;border-color:#ffc85729}.gh-analysis-stat--mistake{background:#ff995c1a;border-color:#ff995c29}.gh-analysis-stat--blunder{background:#eb65651a;border-color:#eb656529}.gh-replay__sidebar{flex-direction:column;flex:1;gap:1rem;min-width:200px;max-width:280px;display:flex}.gh-replay__sidebar-head{justify-content:space-between;align-items:flex-end;gap:.75rem;display:flex}.gh-replay__sidebar-title{color:var(--color-text,#ececec);margin:0;font-size:.9rem;font-weight:800}.gh-replay__sidebar-subtitle{color:var(--color-text-muted,#8f8f8f);margin:.18rem 0 0;font-size:.74rem;line-height:1.35}.gh-replay__sidebar-step{color:#cfe3ff;background:#63aaff1f;border:1px solid #63aaff33;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;min-height:2rem;padding:.35rem .7rem;font-size:.74rem;font-weight:700;display:inline-flex}.gh-replay__moves{scroll-snap-type:y proximity;background:#ffffff08;border:1px solid #ffffff12;border-radius:10px;flex-direction:column;gap:.15rem;max-height:480px;padding:.5rem;display:flex;overflow-y:auto}.gh-replay__moves::-webkit-scrollbar{width:5px}.gh-replay__moves::-webkit-scrollbar-track{background:0 0}.gh-replay__moves::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:100px}.gh-move-row{border-radius:5px;grid-template-columns:2.2rem 1fr 1fr;align-items:stretch;gap:.3rem;display:grid}.gh-move-row--header{z-index:1;color:var(--color-text-muted,#6a6a6a);text-transform:uppercase;letter-spacing:.06em;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#12161df5;border-bottom:1px solid #ffffff0f;margin-bottom:.15rem;padding:.2rem .25rem;font-size:.72rem;font-weight:600;position:sticky;top:0}.gh-move-num{color:var(--color-text-muted,#6a6a6a);text-align:right;align-self:center;padding-right:.4rem;font-size:.75rem}.gh-move{color:var(--color-text,#d8d8d8);text-align:left;cursor:pointer;scroll-snap-align:start;background:#ffffff05;border:1px solid #0000;border-radius:10px;flex-direction:column;align-items:flex-start;gap:.22rem;min-height:2.65rem;padding:.5rem .55rem;font-family:inherit;font-size:.85rem;transition:background .12s,border-color .12s,transform .12s;display:flex}.gh-move:hover{background:#ffffff14;border-color:#ffffff14}.gh-move--active{color:#90c8ff;background:#63aaff40;border-color:#63aaff66;font-weight:700;box-shadow:0 0 0 1px #63aaff1f}.gh-move__main{line-height:1.2;display:block}.gh-move__meta{flex-wrap:wrap;align-items:center;gap:.35rem;display:flex}.gh-move-note-indicator{color:#e8eef7e0;justify-content:center;align-items:center;min-width:1rem;min-height:1rem;font-size:1rem;line-height:1;display:inline-flex}.gh-move-time{min-height:1.35rem;color:var(--color-text-muted,#b7b7b7);letter-spacing:.03em;background:#ffffff12;border-radius:999px;align-items:center;padding:.08rem .42rem;font-size:.66rem;font-weight:700;display:inline-flex}.gh-move-tag{letter-spacing:.03em;white-space:nowrap;border-radius:999px;align-items:center;padding:.12rem .45rem;font-size:.62rem;font-weight:700;display:inline-flex}.gh-move-tag--best{color:#86ecaa;background:#52c57b2e}.gh-move-tag--missed{color:#ffd37f;background:#ffc8572e}.gh-move-tag--mistake{color:#ffb17e;background:#ff995c33}.gh-move-tag--blunder{color:#ff9a9a;background:#eb656538}.gh-empty-moves{color:var(--color-text-muted,#6a6a6a);text-align:center;padding:1rem 0;font-size:.82rem}.gh-analysis-panel{background:#ffffff08;border:1px solid #ffffff12;border-radius:10px;flex-direction:column;width:100%;min-height:120px;margin-top:1.25rem;padding:.8rem;display:flex}.gh-analysis-panel__title{text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-muted,#9a9a9a);border-bottom:1px solid #ffffff0f;margin:0 0 .6rem;padding-bottom:.4rem;font-size:.75rem}.gh-analysis-loading{color:var(--color-text-muted,#6a6a6a);text-align:center;padding:.5rem;font-size:.8rem}.gh-analysis-content{flex-direction:column;gap:.5rem;display:flex}.gh-review-summary{background:#ffffff0a;border:1px solid #ffffff0f;border-radius:8px;align-items:flex-start;gap:.65rem;padding:.6rem .7rem;display:flex}.gh-review-pill{letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;border-radius:999px;align-items:center;padding:.2rem .6rem;font-size:.68rem;font-weight:800;display:inline-flex}.gh-review-pill--best{color:#86ecaa;background:#52c57b2e}.gh-review-pill--missed{color:#ffd37f;background:#ffc8572e}.gh-review-pill--mistake{color:#ffb17e;background:#ff995c33}.gh-review-pill--blunder{color:#ff9a9a;background:#eb656538}.gh-review-summary__text{color:var(--color-text-muted,#b6b6b6);margin:0;font-size:.82rem;line-height:1.45}.gh-line-compare{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;display:grid}.gh-line-compare__card{background:#ffffff08;border:1px solid #ffffff14;border-radius:10px;padding:.7rem .75rem}.gh-line-compare__card--best{background:#63aaff0f;border-color:#63aaff38}.gh-line-compare__card--played{background:#ffb35e0f;border-color:#ffb35e2e}.gh-line-compare__head{justify-content:space-between;align-items:center;gap:.6rem;display:flex}.gh-line-compare__label{text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted,#9c9c9c);font-size:.72rem;font-weight:800}.gh-line-compare__score{color:#cfe2ff;font-size:.78rem;font-weight:700}.gh-line-compare__moves{color:var(--color-text,#ededed);margin:.42rem 0 0;font-size:.84rem;line-height:1.45}.gh-move-note{background:#ffffff08;border:1px solid #ffffff14;border-radius:10px;flex-direction:column;gap:.45rem;padding:.75rem;display:flex}.gh-move-note__head{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.gh-move-note__title{letter-spacing:.05em;text-transform:uppercase;color:var(--color-text-muted,#a5a5a5);font-size:.74rem;font-weight:800}.gh-move-note__status{align-items:center;gap:.45rem;display:flex}.gh-move-note__state{font-size:.72rem;font-weight:700}.gh-move-note__state--saved{color:#8fd3a1}.gh-move-note__state--saving{color:#9fc8ff}.gh-move-note__state--error{color:#ffadad}.gh-move-note__retry{color:#ffd4d4;cursor:pointer;background:#ff75751f;border:1px solid #ffa4a447;border-radius:999px;min-height:1.8rem;padding:.1rem .7rem;font-size:.72rem;font-weight:700}.gh-move-note__input{resize:vertical;width:100%;min-height:5.4rem;color:var(--color-text,#ededed);font:inherit;background:#101318e0;border:1px solid #ffffff1a;border-radius:10px;padding:.75rem .85rem;line-height:1.45}.gh-move-note__input:focus{border-color:#63aaff80;outline:none;box-shadow:0 0 0 1px #63aaff38}.gh-move-note__input::placeholder{color:var(--color-text-muted,#7f8792)}.gh-analysis-eval{color:#e0e0e0;font-size:1.8rem;font-weight:800;line-height:1}.gh-analysis-lines{flex-direction:column;gap:.25rem;display:flex}.gh-analysis-line{background:#ffffff05;border-radius:4px;align-items:baseline;gap:.6rem;padding:.25rem .4rem;font-size:.8rem;display:flex}.gh-al-score{color:#8bbdff;min-width:2.8rem;font-weight:700}.gh-al-move{line-height:1.4}.gh-al-move strong{color:#d0d0d0}.gh-al-rest{color:#888;margin-left:.3rem;font-size:.75rem}@media (width<=640px){.gh-root{padding:1rem .8rem 2rem}.gh-header-row{flex-direction:column;align-items:flex-start}.gh-stats{grid-template-columns:1fr}.gh-stat-card--full{grid-column:1}.gh-act-grid{grid-template-columns:repeat(2,1fr)}.gh-elo-row{grid-template-columns:3.5rem 3.2rem 1fr}.gh-elo-bar-col{display:none}.gh-analysis-summary{grid-template-columns:1fr}.gh-analysis-summary__grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gh-card__top{flex-direction:column;align-items:flex-start;gap:.45rem}.gh-card__date{margin-left:0}.gh-card__bottom{gap:.55rem .9rem}.gh-delete-btn--inline{align-self:stretch;width:100%;min-height:2.8rem}}@media (width<=600px){.gh-replay{padding:.25rem .15rem 1.75rem}.gh-replay__header{align-items:stretch;gap:.75rem}.gh-back-btn,.gh-delete-btn{min-height:2.9rem}.gh-replay__meta{grid-template-columns:1fr 1fr;gap:.55rem;width:100%;display:grid}.gh-replay__meta .gh-card__date,.gh-replay__meta .gh-delete-btn{grid-column:1/-1}.gh-analyze-btn{width:100%;min-height:2.9rem;font-size:.92rem}.gh-analysis-summary__top{flex-direction:column;align-items:flex-start}.gh-analysis-summary__accuracy{font-size:1.5rem}.gh-replay__body{flex-direction:column}.gh-replay__board-wrap{width:100%}.gh-replay__sidebar{gap:.7rem;width:100%;min-width:0;max-width:none}.gh-replay__sidebar-head{flex-direction:column;align-items:flex-start}.gh-replay__moves{gap:.3rem;width:100%;max-height:300px;padding:.6rem}.gh-move-row{grid-template-columns:1.8rem 1fr 1fr;gap:.35rem}.gh-move-num{padding-right:.2rem;font-size:.78rem}.gh-move{min-height:3.3rem;padding:.6rem .55rem;font-size:.95rem}.gh-move-tag{font-size:.66rem}.gh-move-time{font-size:.7rem}.gh-analysis-summary__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gh-review-summary{flex-direction:column;gap:.4rem}.gh-line-compare{grid-template-columns:1fr}.gh-move-note__head{flex-direction:column;align-items:flex-start}.gh-move-note__status{justify-content:space-between;width:100%}.gh-controls{grid-template-columns:repeat(4,minmax(0,1fr));width:100%}.gh-ctrl-counter{order:-1;grid-column:1/-1;min-height:2.8rem}.gh-ctrl-btn{min-height:3.45rem;padding:.8rem .5rem;font-size:.95rem}.gh-controls__hint{font-size:.74rem}}.game-status{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff0d;border:1px solid #ffffff1a;border-radius:12px;justify-content:center;align-items:center;gap:12px;min-width:220px;padding:12px 20px;display:flex}.game-status__body{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.game-status--check{background:#e74c3c1a;border-color:#e74c3c;animation:1s ease-in-out infinite alternate pulse-check}.game-status--gameover{background:#f39c121a;border-color:#f39c12}.game-status__indicator{justify-content:center;align-items:center;width:16px;height:16px;display:flex}.game-status__turn-dot{border:2px solid #ffffff4d;border-radius:50%;width:14px;height:14px}.game-status__turn-dot--w{background:#f0f0f0;box-shadow:0 0 8px #ffffff80}.game-status__turn-dot--b{background:#1a1a2e;box-shadow:0 0 8px #00000080}.game-status__text{color:#e0e0e0;font-family:Inter,system-ui,sans-serif;font-size:1.1rem;font-weight:600}.game-status__timer{color:#e0e0e0c7;letter-spacing:.02em;font-size:.78rem}@keyframes pulse-check{0%{box-shadow:0 0 8px #e74c3c4d}to{box-shadow:0 0 16px #e74c3c99}}@media (width<=600px){.game-status{gap:8px;min-width:140px;padding:8px 16px}.game-status__text{font-size:.9rem}.game-status__timer{font-size:.72rem}.game-status__turn-dot{width:10px;height:10px}}.move-history{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff0d;border:1px solid #ffffff1a;border-radius:12px;flex-direction:column;width:240px;padding:16px;display:flex}.move-history__title{color:#a0a0a0;text-transform:uppercase;letter-spacing:1px;margin:0 0 12px;font-family:Inter,system-ui,sans-serif;font-size:.9rem;font-weight:700}.move-history__list{scrollbar-width:thin;scrollbar-color:#fff3 transparent;flex:1;max-height:400px;overflow-y:auto}.move-history__empty{color:#666;font-size:.85rem;font-style:italic}.move-history__row{border-radius:4px;grid-template-columns:30px 1fr 1fr;gap:4px;padding:3px 4px;font-family:JetBrains Mono,Fira Code,monospace;font-size:.85rem;display:grid}.move-history__row:nth-child(2n){background:#ffffff08}.move-history__number{color:#666;text-align:right;padding-right:4px}.move-history__move{color:#d0d0d0;cursor:default;border-radius:3px;padding:1px 4px}.move-history__move:hover{background:#ffffff1a}.move-history__move--white{color:#f0f0f0}.move-history__move--black{color:#b0b0b0}.promotion-overlay{z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0009;justify-content:center;align-items:center;animation:.2s fade-in;display:flex;position:fixed;inset:0}.promotion-dialog{text-align:center;background:#1e1e2e;border:1px solid #ffffff26;border-radius:16px;padding:24px;box-shadow:0 16px 48px #00000080}.promotion-dialog__title{color:#a0a0a0;text-transform:uppercase;letter-spacing:1px;margin:0 0 16px;font-family:Inter,system-ui,sans-serif;font-size:1rem;font-weight:600}.promotion-dialog__options{gap:12px;display:flex}.promotion-dialog__option{cursor:pointer;background:#ffffff0d;border:2px solid #ffffff26;border-radius:12px;justify-content:center;align-items:center;width:64px;height:64px;font-size:2.4rem;transition:all .2s;display:flex}.promotion-dialog__option:hover{background:#ffffff26;border-color:#ffffff4d;transform:scale(1.1)}.promotion-dialog__option--w{color:#fff;text-shadow:0 0 3px #00000080}.promotion-dialog__option--b{color:#1a1a2e;text-shadow:0 0 3px #ffffff4d}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.controls{justify-content:center;gap:12px;display:flex}.controls__button{color:#e0e0e0;cursor:pointer;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff14;border:1px solid #ffffff26;border-radius:10px;padding:10px 24px;font-family:Inter,system-ui,sans-serif;font-size:.95rem;font-weight:600;transition:all .2s}.controls__button:hover{background:#ffffff26;border-color:#ffffff4d;transform:translateY(-1px);box-shadow:0 4px 12px #0000004d}.controls__button:active{transform:translateY(0)}.controls__button--pulse{background:#f39c1226;border-color:#f39c12;animation:2s ease-in-out infinite alternate button-pulse}@keyframes button-pulse{0%{box-shadow:0 0 8px #f39c1233}to{box-shadow:0 0 20px #f39c1266}}@media (width<=600px){.controls{gap:8px;width:100%}.controls__button{white-space:nowrap;flex:1;justify-content:center;padding:8px 12px;font-size:.85rem;display:flex}}.eval-bar{background:#333;border-radius:4px;width:24px;height:100%;min-height:min(75vmin,560px);position:relative;overflow:hidden;box-shadow:0 4px 12px #0006}.eval-bar__white{background:#fff;transition:height .6s cubic-bezier(.25,.8,.25,1);position:absolute;bottom:0;left:0;right:0}.eval-bar__text{text-align:center;z-index:5;border-radius:4px;width:auto;padding:2px 4px;font-family:inherit;font-size:.7rem;font-weight:800;position:absolute;left:50%;transform:translate(-50%)}.eval-bar__text--top{color:#fff;background:#0006;top:6px}.eval-bar__text--bottom{color:#000;background:#fff9;bottom:6px}.game-menu{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#302e2bf2;border:1px solid #ffffff1a;border-radius:20px;flex-direction:column;gap:24px;width:90%;max-width:500px;margin:40px auto;padding:32px;display:flex;box-shadow:0 20px 50px #00000080}.game-menu__title{color:#fff;text-align:center;letter-spacing:-.5px;margin:0;font-size:1.8rem;font-weight:800}.game-menu__options{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.game-menu__button{color:#e0e0e0;cursor:pointer;background:#ffffff0d;border:2px solid #ffffff1a;border-radius:12px;flex-direction:column;flex:1;align-items:center;gap:8px;min-width:100px;padding:16px 12px;font-size:.95rem;font-weight:600;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex}.game-menu__button:hover{background:#ffffff1a;border-color:#fff3;transform:translateY(-2px)}.game-menu__button.active{color:#fff;background:#739552;border-color:#81b64c;box-shadow:0 8px 20px #7395524d}.game-menu__bot-settings{background:#0003;border:1px solid #ffffff0d;border-radius:16px;flex-direction:column;gap:20px;padding:24px;display:flex}.game-menu__icon{font-size:2rem;line-height:1}.game-menu__color-select{gap:12px;display:flex}.color-btn{color:#fff;cursor:pointer;background:#ffffff0d;border:2px solid #ffffff1a;border-radius:10px;flex:1;padding:12px;font-weight:600;transition:all .2s}.color-btn:hover{background:#ffffff1a}.color-btn.selected{background:#81b64c26;border-color:#81b64c}.game-menu__setting{flex-direction:column;display:flex}.game-menu__setting label{color:#a0a0a0;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px;font-size:.85rem;font-weight:700;display:block}.game-menu__slider{accent-color:#739552;width:100%}.game-menu__start-btn{color:#fff;cursor:pointer;background:#81b64c;border:none;border-radius:12px;margin-top:10px;padding:18px;font-size:1.25rem;font-weight:800;transition:all .2s}.game-menu__start-btn:hover{background:#95cc5e;transform:translateY(-2px);box-shadow:0 10px 25px #81b64c66}.game-menu__start-btn:active{transform:translateY(0)}@media (width<=600px){.game-menu{gap:20px;width:95%;margin:20px auto;padding:24px 16px}.game-menu__title{font-size:1.5rem}.game-menu__options{grid-template-columns:repeat(2,1fr);gap:8px;display:grid}.game-menu__button{min-width:0;padding:12px 8px;font-size:.85rem}.game-menu__icon{font-size:1.5rem}.game-menu__bot-settings{padding:16px}.color-btn{padding:10px 4px;font-size:.9rem}.game-menu__start-btn{padding:16px;font-size:1.1rem}}.app{color:#fff;-webkit-user-select:none;user-select:none;touch-action:manipulation;background:radial-gradient(circle,#312e2b 0%,#22201e 100%);flex-direction:column;align-items:center;min-height:100dvh;font-family:Inter,system-ui,-apple-system,sans-serif;display:flex;overflow-x:hidden}.app__header{padding:calc(16px + env(safe-area-inset-top,0px)) 20px 8px;box-sizing:border-box;justify-content:space-between;align-items:center;width:100%;max-width:1200px;display:flex}.back-to-menu-btn{color:#e0e0e0;cursor:pointer;background:#ffffff0d;border:1px solid #ffffff1a;border-radius:8px;align-items:center;gap:8px;padding:8px 16px;font-weight:600;transition:all .2s;display:flex}.back-to-menu-btn:hover{color:#fff;background:#ffffff1a;transform:translate(-2px)}.app__title{color:#fff;letter-spacing:1px;margin:0;font-size:1.8rem;font-weight:800}.app__main{box-sizing:border-box;flex-direction:column;flex:1;justify-content:flex-start;align-items:center;width:100%;padding:16px 24px;display:flex}.app__game-area{align-items:flex-start;gap:32px;display:flex}.app__board-section{flex-direction:column;align-items:center;gap:16px;display:flex}.app__sidebar{padding-top:48px}.bot-thinking{color:#fff;pointer-events:none;z-index:100;background:#000000b3;border-radius:20px;padding:8px 16px;font-weight:600;animation:1.5s infinite fade-pulse;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 4px 12px #00000080}@keyframes fade-pulse{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}.puzzle-feedback{z-index:100;border-radius:10px;justify-content:center;align-items:center;width:fit-content;margin-bottom:20px;padding:12px 24px;font-weight:700;transition:all .3s;animation:.3s ease-out scale-in;display:flex;box-shadow:0 4px 15px #0003}@keyframes scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.puzzle-feedback.success{color:#fff;background:#739552;box-shadow:0 4px 12px #73955266}.puzzle-feedback.error{color:#fff;background:#e74c3c;box-shadow:0 4px 12px #e74c3c66}.puzzle-feedback.info{color:#fff;background:#f39c12;box-shadow:0 4px 12px #f39c1266}.app__controls-container{flex-direction:column;gap:12px;width:100%;display:flex}.next-puzzle-btn{color:#fff;cursor:pointer;background:#739552;border:none;border-radius:8px;padding:12px;font-weight:700;transition:background .2s}.theory-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#2f4f64,#466d86);border:none;border-radius:8px;padding:12px;font-weight:700;transition:transform .2s,filter .2s}.theory-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}.endgame-info{background:#ffffff0d;border:1px solid #ffffff1a;border-radius:12px;margin-bottom:20px;padding:16px}.endgame-info h3{color:#739552;margin:0 0 8px;font-size:1.1rem}.endgame-info p{color:#b0b0b0;margin:0;font-size:.9rem;line-height:1.4}.theory-card{background:linear-gradient(#466d862e,#ffffff0a);border-color:#77b5d92e}.theory-section{margin-top:14px}.theory-section h4{color:#dcefff;text-transform:uppercase;letter-spacing:.08em;margin:0 0 8px;font-size:.8rem}.theory-list{color:#c8d5df;margin:0;padding-left:18px}.theory-list li{margin-bottom:8px;line-height:1.45}.statistics-card{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:linear-gradient(135deg,#ffffff14 0%,#ffffff08 100%);border:1px solid #ffffff1a;position:relative;overflow:hidden;box-shadow:0 8px 32px #0000004d}.statistics-card:before{content:"";background:linear-gradient(90deg,#739552,#81b64c);height:4px;position:absolute;top:0;left:0;right:0}.statistics-card h3{color:#fff;align-items:center;gap:8px;margin-bottom:20px;font-size:1.2rem;display:flex}.statistics-card h3:after{content:"📊";font-size:1.1rem}.stats-grid{grid-template-columns:repeat(2,1fr);gap:16px;display:grid}.stat-item{background:#0003;border:1px solid #ffffff0d;border-radius:12px;flex-direction:column;padding:14px;transition:transform .2s,border-color .2s;display:flex}.stat-item:hover{border-color:#ffffff26;transform:translateY(-2px)}.stat-item.due{background:#81b64c1a;border-color:#81b64c33}.stat-item.highlight{background:#f0c33014;border-color:#f0c33033;grid-column:span 2}.stat-label{color:#ffffff80;text-transform:uppercase;letter-spacing:1px;margin-bottom:4px;font-size:.65rem;font-weight:700}.stat-value{color:#fff;font-variant-numeric:tabular-nums;font-size:1.3rem;font-weight:800}.stat-item.due .stat-value{color:#81b64c;text-shadow:0 0 10px #81b64c4d}.stat-item.highlight .stat-value{color:#f0c330}.category-progress-bar{background:#0000004d;border-radius:3px;width:100%;height:6px;margin-top:8px;overflow:hidden}.category-progress-fill{background:linear-gradient(90deg,#f0c330,#e67e22);border-radius:3px;height:100%;transition:width .5s ease-out}.forecast-section{border-top:1px solid #ffffff1a;margin-top:20px;padding-top:20px}.forecast-section h4{color:#fff6;text-transform:uppercase;letter-spacing:.5px;margin:0 0 12px;font-size:.75rem;font-weight:700}.forecast-grid{grid-template-columns:repeat(7,1fr);gap:8px;display:grid}.forecast-item{background:#ffffff08;border:1px solid #ffffff0d;border-radius:8px;flex-direction:column;align-items:center;padding:10px 4px;transition:background .2s,border-color .2s;display:flex}.forecast-item.active{background:#81b64c14;border-color:#81b64c33}.forecast-day{color:#ffffff4d;margin-bottom:6px;font-size:.55rem;font-weight:600}.forecast-count{color:#fff3;font-size:.9rem;font-weight:800}.forecast-item.active .forecast-count{color:#81b64c}.forecast-item:hover{background:#ffffff12;border-color:#ffffff1a}.forecast-item.active:hover{background:#81b64c26}@media (width<=900px){.app__game-area{flex-direction:column;align-items:center;gap:16px;width:100%}.app__sidebar{width:100%;max-width:min(95vmin,600px);padding-top:0}.app__board-section{width:100%}}@media (width<=600px){.app__header{padding:12px}.app__title{font-size:1.1rem}.back-to-menu-btn{padding:6px 10px;font-size:.85rem}.user-pill{gap:4px;padding:3px 6px 3px 3px!important}.user-name{display:none}.app__main{padding:8px}.app__game-area{gap:12px}.app__board-section{gap:10px}.statistics-card{padding:12px}.stats-grid{gap:8px;grid-template-columns:1fr!important}.stat-item{padding:10px}.stat-value{font-size:1.1rem}.forecast-grid{gap:4px}.forecast-item{padding:8px 2px}.forecast-count{font-size:.8rem}}@media (height<=700px) and (width<=600px){.app__header{padding:8px 12px}.app__title{font-size:1rem}}.login-page{background:radial-gradient(circle,#312e2b 0%,#1a1917 100%);justify-content:center;align-items:center;min-height:100vh;display:flex}.login-card{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);text-align:center;background:#ffffff0a;border:1px solid #ffffff1a;border-radius:24px;flex-direction:column;align-items:center;gap:16px;width:90vw;max-width:420px;padding:52px 48px;animation:.45s cubic-bezier(.22,1,.36,1) both card-in;display:flex;box-shadow:0 32px 80px #00000080}@keyframes card-in{0%{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}.login-icon{filter:drop-shadow(0 0 24px #73955280);font-size:3.5rem;line-height:1}.login-title{color:#fff;letter-spacing:.5px;margin:0;font-size:1.9rem;font-weight:800}.login-subtitle{color:#ffffff80;margin:0;font-size:.95rem;line-height:1.6}.login-google-btn{margin-top:8px}.login-error{color:#ff7b72;box-sizing:border-box;background:#e74c3c26;border:1px solid #e74c3c59;border-radius:8px;width:100%;padding:10px 18px;font-size:.9rem}.login-loading{color:#ffffff80;padding:12px;font-size:.95rem}.app__header-right{align-items:center;gap:12px;display:flex}.user-pill{background:#ffffff12;border:1px solid #ffffff1a;border-radius:999px;align-items:center;gap:8px;padding:5px 14px 5px 6px;display:flex}.user-avatar{object-fit:cover;border:1px solid #ffffff26;border-radius:50%;width:28px;height:28px}.user-name{color:#ddd;font-size:.9rem;font-weight:600}.logout-btn{color:#fff6;cursor:pointer;background:0 0;border:none;padding:0 0 0 4px;font-size:1rem;line-height:1;transition:color .2s}.logout-btn:hover{color:#e74c3c}.app-loading{color:#fff6;background:radial-gradient(circle,#312e2b 0%,#1a1917 100%);justify-content:center;align-items:center;min-height:100vh;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:1.1rem;display:flex}
