#home-view[hidden], #review-workspace[hidden] { display: none !important; }
.home-main { max-width: 1180px; margin: 0 auto; padding: 38px 32px 50px; }
.home-main svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.home-nav-button { display: inline-flex; align-items: center; gap: 7px; }
.home-nav-button[aria-current="page"] { color: var(--green, #a7cc64); }
.home-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.home-heading .eyebrow { margin-bottom: 8px; color: var(--green, #a7cc64); }
.home-heading h1 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.8px; line-height: 1.2; margin: 0 0 10px; }
.home-heading > div > p:last-child { color: var(--muted, #aaa79f); margin: 0; font-size: 13px; }
.home-account-badge { display: inline-flex; gap: 9px; align-items: center; padding: 11px 15px; border: 1px solid var(--border, #ffffff10); background: var(--surface, #272522); border-radius: 9px; font-weight: 650; flex-shrink: 0; }
.home-account-badge svg { color: var(--green, #a7cc64); width: 17px; }
.home-shortcuts { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 13px; margin-bottom: 30px; }
.home-shortcut { border: 1px solid var(--border, #ffffff10); border-radius: 11px; background: var(--surface, #272522); padding: 18px; display: flex; align-items: center; gap: 13px; text-align: left; transition: background .15s, border-color .15s; }
.home-shortcut:hover { background: var(--surface-raised, #393733); border-color: #ffffff24; }
.home-shortcut > svg { color: var(--green, #a7cc64); width: 24px; height: 24px; }
.home-shortcut > span { display: grid; gap: 3px; }
.home-shortcut strong { font-size: 13px; font-weight: 650; }
.home-shortcut small { font-size: 11px; color: var(--muted, #aaa79f); }
.home-recent { border: 1px solid var(--border, #ffffff10); background: var(--surface, #272522); border-radius: 12px; overflow: hidden; }
.home-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 22px 17px; }
.home-list-heading h2 { font-size: 17px; margin: 0 0 3px; }
.home-list-heading p { color: var(--muted, #aaa79f); font-size: 11px; margin: 0; }
.home-list-heading strong { font-variant-numeric: tabular-nums; color: var(--text, #f5f3ee); }
.home-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px 18px; }
.home-filter-field { display: flex; align-items: center; gap: 10px; width: min(370px, 100%); border: 1px solid #ffffff19; background: var(--surface-deep, #22211e); padding: 9px 12px; border-radius: 7px; }
.home-filter-field svg { width: 17px; height: 17px; color: var(--muted, #aaa79f); }
.home-filter-field input { background: transparent; border: 0; width: 100%; padding: 0; color: var(--text, #f5f3ee); font-size: 12px; min-width: 0; }
.home-filter-field input::placeholder { color: #89867e; }
.home-period { font-size: 11px; color: var(--muted, #aaa79f); white-space: nowrap; }
.home-update-status { display: flex; align-items: center; gap: 8px; min-height: 31px; padding: 0 22px 12px; font-size: 11px; color: var(--muted, #aaa79f); }
.home-loader { width: 12px; height: 12px; border: 2px solid #a7cc6433; border-top-color: var(--green, #a7cc64); border-radius: 50%; animation: home-spin .8s linear infinite; flex-shrink: 0; }
.home-notice { margin: 0 22px 15px; padding: 12px 14px; background: #e3aa4210; border: 1px solid #e3aa4233; border-radius: 6px; color: #e1c18e; font-size: 12px; line-height: 1.6; }
.home-table-header, .home-game-row { display: grid; grid-template-columns: minmax(220px, 1fr) 94px 85px 140px 86px 20px; align-items: center; gap: 16px; }
.home-table-header { padding: 10px 22px; color: #88867d; border-top: 1px solid var(--border, #ffffff10); border-bottom: 1px solid var(--border, #ffffff10); font-size: 10px; letter-spacing: .5px; text-transform: uppercase; }
.home-games { list-style: none; margin: 0; padding: 0; }
.home-games > li + li { border-top: 1px solid #ffffff08; }
.home-game-row { width: 100%; background: transparent; border: 0; padding: 16px 22px; text-align: left; }
.home-game-row:hover { background: #ffffff05; }
.home-game-row:focus-visible { outline-offset: -3px; }
.home-game-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-player-mark { display: grid; place-items: center; height: 37px; width: 37px; border-radius: 8px; flex-shrink: 0; border: 1px solid #ffffff11; }
.home-player-mark.white { background: #ebe6d3; color: #36342c; }
.home-player-mark.black { background: #161613; color: #d6d1bd; }
.home-player-mark svg { height: 23px; width: 23px; }
.home-game-names { display: grid; gap: 2px; min-width: 0; }
.home-opponent-name { font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-game-detail { font-size: 10px; color: #99968e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-game-color { font-size: 11px; color: #bbb7ac; }
.home-game-color::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.home-game-color.white::before { background: #ece8d6; }
.home-game-color.black::before { background: #161613; border: 1px solid #726e63; }
.home-result { font-size: 11px; font-weight: 650; }
.home-result.win { color: var(--green, #a7cc64); }
.home-result.loss { color: #e59289; }
.home-result.draw, .home-result.neutral { color: #b7b3a7; }
.home-game-date { font-size: 11px; color: #a6a299; }
.home-game-speed { display: grid; gap: 1px; }
.home-speed-name { font-size: 11px; color: #c6c2b7; }
.home-game-open { color: #77766c; display: flex; }
.home-game-open svg { height: 16px; width: 16px; }
.home-game-row:hover .home-game-open { color: var(--green, #a7cc64); }
.home-empty { text-align: center; padding: 40px 22px; }
.home-empty > svg { width: 34px; height: 34px; color: #8fa866; margin-bottom: 10px; }
.home-empty h3 { margin: 0 0 6px; font-size: 15px; }
.home-empty p { margin: 0; color: var(--muted, #aaa79f); font-size: 12px; }
.home-list-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 61px; padding: 15px 22px; border-top: 1px solid var(--border, #ffffff10); }
.home-visible-count { font-size: 11px; color: var(--muted, #aaa79f); }
.home-footer-actions { display: flex; align-items: center; gap: 8px; }
.home-footnote { margin: 15px 0 0; color: #858279; font-size: 10px; }
@keyframes home-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .home-loader { animation: none; } }
@media (max-width: 950px) {
  .home-main { padding: 28px 22px 40px; }
  .home-table-header, .home-game-row { grid-template-columns: minmax(180px, 1fr) 76px 68px 120px 65px 15px; gap: 10px; }
  .home-shortcut { padding: 15px 12px; gap: 10px; }
}
@media (max-width: 750px) {
  .home-heading { align-items: flex-start; }
  .home-account-badge { display: none; }
  .home-shortcuts { grid-template-columns: 1fr; gap: 8px; margin-bottom: 22px; }
  .home-shortcut { padding: 13px 15px; }
  .home-shortcut > span { display: block; }
  .home-shortcut small { display: block; margin-top: 2px; }
  .home-list-heading { padding: 18px 16px 15px; }
  .home-filterbar { padding: 0 16px 12px; flex-wrap: wrap; gap: 9px; }
  .home-filter-field { width: 100%; }
  .home-update-status { padding: 0 16px 12px; }
  .home-table-header { display: none; }
  .home-game-row { grid-template-columns: minmax(0, 1fr) auto auto; padding: 14px 16px; gap: 6px 12px; }
  .home-game-player { grid-row: 1 / 3; }
  .home-game-color { grid-column: 2; font-size: 10px; }
  .home-result { grid-column: 3; text-align: right; }
  .home-game-date { grid-column: 2 / 4; grid-row: 2; text-align: right; font-size: 10px; }
  .home-game-speed { grid-column: 1 / 4; display: flex; padding-left: 49px; gap: 7px; }
  .home-game-open { display: none; }
  .home-list-footer { padding: 13px 16px; flex-wrap: wrap; }
  .home-notice { margin: 0 16px 13px; }
}
@media (max-width: 420px) {
  .home-main { padding: 24px 12px 34px; }
  .home-heading h1 { font-size: 24px; }
  .home-game-row { gap: 5px 8px; }
  .home-player-mark { height: 31px; width: 31px; }
  .home-game-player { gap: 8px; }
  .home-game-detail { max-width: 145px; }
  .home-game-speed { padding-left: 39px; }
}
