:root {
  --primary: #8cb365;
  --accent: #e2b740;
  --bg: #1e1d1b;
  --grey: #6b7280;
  --border: #484c53;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  width: 100%;
  color: var(--primary);
}
body.no-scroll {
overflow: hidden;
}
.form-container{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 10px 12px;
    width: 400px;
    z-index: 11;
    background-color: var(--bg);
}
.form{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.return-button{
    background: var(--bg);
    border: solid 1px var(--border);
    aspect-ratio: 1/1;
    padding: 6px 6px 4px 6px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: absolute;
    top: 10px;
    right: 10px;
}
.return-button p, .return-button i{
    color: var(--grey);
    font-size: .8em;
    margin: 0;
}
.OAuth-button{
    border: 2px solid var(--border);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    width: 200px;
    padding: 3px 8px;
}
.OAuth-button:hover{
    border-color: var(--primary);
}
.OAuth-button img{
    height: 35px;
}
.OAuth-button p{
    font-size: .9em;
    color: #fff;
}
.OAuth-buttons-container{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* ===== Signup Form Fields ===== */
.input-group {
display: flex;
flex-direction: column;
gap: 6px;
width: 100%;
margin-bottom: 16px;
}

.input-group label {
font-size: 0.9em;
color: #fff;
font-weight: 500;
}

.input-group input {
box-sizing: border-box;
width: 100%;
height: 42px;
padding: 0 12px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 7px;
color: #fff;
font-size: 0.95em;
font-family: "Inter", sans-serif;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input::placeholder {
color: var(--grey);
opacity: 0.6;
}

.input-group input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(140, 179, 101, 0.15);
}

.input-group input:invalid:not(:placeholder-shown) {
border-color: #c0392b;
}
.optional-tag {
color: var(--grey);
font-weight: 400;
}
.button {
width: 100%;
height: 46px;
margin-top: 6px;
background: linear-gradient(to right, var(--primary), var(--accent));
border: none;
border-radius: 7px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 0 var(--border);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button p {
margin: 0;
color: var(--bg);
font-weight: 700;
font-size: 1.3em;
}

.button:hover {
transform: translateY(2px);
box-shadow: 0 2px 0 var(--border);
}

.button:active {
transform: translateY(4px);
box-shadow: none;
}
/* ===== Chessmate Landing Page Styles ===== */
/* Uses the same design tokens as practice.css */

.landing-body {
display: block;
width: 100%;
height: auto;
overflow-x: hidden;
background: var(--bg);
color: #fff;
}

.landing-body * {
box-sizing: border-box;
}

/* ===== Header ===== */
.landing-header {
position: sticky;
top: 0;
z-index: 9;
width: 100%;
background: rgba(30, 29, 27, 0.85);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border);
}

.landing-nav-container {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1200px;
margin: 0 auto;
padding: 14px 24px;
}

.landing-logo {
display: flex;
align-items: center;
gap: 8px;
color: var(--primary);
font-weight: 700;
font-size: 1.3em;
}

.landing-logo img {
height: 30px;
}

.landing-logo p {
margin: 0;
color: #fff;
}

.landing-nav-links {
display: flex;
gap: 28px;
}

.landing-nav-links a {
color: var(--grey);
text-decoration: none;
font-size: 0.95em;
transition: color .2s ease;
}

.landing-nav-links a:hover {
color: var(--primary);
}

.landing-nav-buttons {
display: flex;
align-items: center;
gap: 10px;
}

/* ===== Buttons ===== */
.btn-primary {
background: linear-gradient(to right, var(--primary), var(--accent));
color: var(--bg);
border: none;
border-radius: 7px;
padding: 10px 18px;
font-weight: 600;
font-size: 0.95em;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: transform .2s ease, box-shadow .2s ease;
box-shadow: 0 4px 0 var(--border);
}

.btn-primary:hover {
transform: translateY(2px);
box-shadow: 0 2px 0 var(--border);
}

.btn-ghost {
background: transparent;
color: #fff;
border: 1px solid var(--border);
border-radius: 7px;
padding: 10px 18px;
font-weight: 600;
font-size: 0.95em;
cursor: pointer;
transition: border-color .2s ease, color .2s ease;
}

.btn-ghost:hover {
border-color: var(--primary);
color: var(--primary);
}

.btn-large {
padding: 14px 26px;
font-size: 1.05em;
border-radius: 9px;
}

/* ===== Hero ===== */
.hero-section {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
gap: 40px;
max-width: 1200px;
margin: 0 auto;
padding: 90px 24px 110px;
overflow: hidden;
}

.hero-glow {
position: absolute;
top: -120px;
left: 10%;
width: 500px;
height: 500px;
background: radial-gradient(circle, rgba(140, 179, 101, 0.25), transparent 70%);
filter: blur(30px);
pointer-events: none;
z-index: 0;
}

.hero-content {
position: relative;
z-index: 1;
flex: 1;
max-width: 560px;
}

.hero-badge {
display: inline-flex;
align-items: center;
gap: 6px;
border: 1px solid var(--border);
border-radius: 20px;
padding: 6px 14px;
color: var(--accent);
font-size: 0.85em;
margin-bottom: 18px;
}

.hero-content h1 {
font-size: 2.6em;
line-height: 1.15;
margin: 0 0 18px 0;
color: #fff;
font-weight: 800;
}

.hero-subtitle {
color: var(--grey);
font-size: 1.05em;
line-height: 1.6;
margin: 0 0 30px 0;
}

.hero-cta-group {
display: flex;
gap: 14px;
margin-bottom: 44px;
}

.hero-stats {
display: flex;
gap: 36px;
}
.link-button{
text-decoration: none;
}
.hero-stat-number {
color: var(--primary);
font-size: 1.6em;
font-weight: 700;
margin: 0;
}

.hero-stat-label {
color: var(--grey);
font-size: 0.85em;
margin: 4px 0 0 0;
}

.hero-visual {
position: relative;
z-index: 1;
flex-shrink: 0;
margin-right: 40px;
}

.hero-board-card {
width: 320px;
border: 1px solid var(--border);
border-radius: 14px;
padding: 18px;
background: rgba(255,255,255,0.02);
box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.hero-board-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
}

.hero-board-avatar {
width: 42px;
height: 42px;
border-radius: 50%;
background: linear-gradient(to right, var(--primary), var(--accent));
display: flex;
align-items: center;
justify-content: center;
color: var(--bg);
font-size: 1.1em;
flex-shrink: 0;
}

.hero-board-name {
margin: 0;
font-weight: 600;
color: #fff;
}

.hero-board-elo {
margin: 2px 0 0 0;
font-size: 0.8em;
color: var(--grey);
}

.hero-board-image {
width: 100%;
aspect-ratio: 1/1;
border-radius: 10px;
background: repeating-conic-gradient(#2a2926 0% 25%, var(--border) 0% 50%) 50% / 80px 80px;
display: flex;
align-items: center;
justify-content: center;
font-size: 3em;
margin-bottom: 16px;
}

.hero-board-footer {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.hero-board-fade {
transition: opacity 0.4s ease, transform 0.4s ease;
opacity: 1;
transform: translateY(0);
}

.hero-board-fade.is-swapping {
opacity: 0;
transform: translateY(6px);
}

.tag {
display: inline-flex;
align-items: center;
gap: 6px;
border-radius: 6px;
padding: 5px 10px;
font-size: 0.78em;
font-weight: 600;
}

.tag-accent {
background: rgba(226, 183, 64, 0.15);
color: var(--accent);
}

.tag-grey {
background: rgba(107, 114, 128, 0.15);
color: var(--grey);
}

/* ===== Section heading shared ===== */
.section-heading {
max-width: 700px;
margin: 0 auto 56px;
text-align: center;
}

.section-tag {
color: var(--primary);
font-weight: 600;
font-size: 0.85em;
text-transform: uppercase;
letter-spacing: 0.06em;
}

.section-heading h2 {
font-size: 2.1em;
color: #fff;
margin: 12px 0 14px 0;
font-weight: 700;
}

.section-subtitle {
color: var(--grey);
font-size: 1.02em;
line-height: 1.6;
margin: 0;
}

/* ===== Feature section ===== */
.feature-section {
max-width: 1200px;
margin: 0 auto;
padding: 100px 24px;
border-top: 1px solid var(--border);
}

.feature-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
}

.accuracy-card {
border: 1px solid var(--border);
border-radius: 14px;
padding: 28px;
padding-bottom: 0;
background: rgba(255,255,255,0.02);
}

.accuracy-title {
margin: 0 0 20px 0;
color: #fff;
font-size: 1.1em;
text-align: center;
}

.feature-list {
display: flex;
flex-direction: column;
gap: 28px;
}

.feature-item {
display: flex;
gap: 18px;
align-items: flex-start;
}

.feature-icon {
flex-shrink: 0;
width: 44px;
height: 44px;
border-radius: 10px;
border: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
color: var(--primary);
font-size: 1.1em;
}

.feature-item h3 {
margin: 0 0 6px 0;
font-size: 1.1em;
color: #fff;
}

.feature-item p {
margin: 0;
color: var(--grey);
font-size: 0.92em;
line-height: 1.55;
}

.feature-item p img {
  height: 19px;
  vertical-align: -4px;
  margin-right: 2px;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--grey);
  line-height: 1.6;
  margin-top: 12px;
}

/* ============================================================
   GRID — 3 cards side by side
============================================================ */
.analytics-section{
  padding-top: 100px;
  border-top: 1px solid var(--border);
  max-width: 1200px;
}
.analytics-grid {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 0 auto;
  margin-bottom: 100px;
}
.analytics-grid > * {
  flex: 1 1 0;
}

.feature-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-card-head .feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(46, 204, 113, 0.1);
  color: var(--green);
  font-size: 1.1em;
  margin-bottom: 14px;
}

.feature-card-head h3 {
  margin: 0 0 8px;
  font-size: 1.1em;
  color: var(--dark);
}

.feature-card-head p {
  margin: 0;
  color: var(--grey);
  font-size: 0.9em;
  line-height: 1.55;
}

.illustration {
  margin-top: auto;
  border-radius: 12px;
  padding: 20px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   ILLUSTRATION 1 — mini table + animated winrate bars
============================================================ */
@property --target {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

.mini-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 10px;
}

.opening-name {
  font-size: 0.78em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winrate-track {
  height: 8px;
  border-radius: 6px;
  background: var(--border);
  overflow: hidden;
}

.winrate-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: fillBar 9s ease-out infinite;
  animation-delay: var(--delay, 0s);
}

.winrate-value {
  font-size: 0.75em;
  font-weight: 600;
  min-width: 30px;
  text-align: right;
}

@keyframes fillBar {
  0%   { width: 0%; }
  10%  { width: var(--target, 0%); }
  100%  { width: var(--target, 0%); }
}

/* ============================================================
   ILLUSTRATION 2 — mini chessboard + eval percentage
============================================================ */
.mini-board {
  position: relative;
  width: 140px;
  height: 140px;
}

.board-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.board-grid::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
}

/* generate 25-square checker pattern without JS */
.board-grid {
  background-image:
    repeating-conic-gradient(var(--border) 0% 25%, var(--grey) 0% 50%);
  background-size: 56px 56px;
}

.highlight-square {
  position: absolute;
  width: 28px;
  height: 28px;
  top: 57px;
  left: 57px;
  background: var(--primary);
  border-radius: 4px;
  animation: pulseGreen 1.8s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(147, 238, 68, 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
}

.eval-pill {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  color: var(--primary);
  font-size: 0.78em;
  font-weight: 600;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: popInLoop 9s ease-out infinite;
  border: 1px solid var(--primary);
  border-radius: 20px;
}

.eval-pill i { color: var(--green); font-size: 0.85em; }

@keyframes popInLoop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  11%  { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  20%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  90%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.board-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.arrow-group {
  filter:
    drop-shadow(1px 0 0 var(--border))
    drop-shadow(-1px 0 0 var(--border))
    drop-shadow(0 1px 0 var(--border))
    drop-shadow(0 -1px 0 var(--border));
}

.arrow-shaft {
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 42;
  animation: drawArrowLoop 9s ease-out infinite;
}

.arrow-head {
  fill: var(--primary);
  animation: fadeInHeadLoop 9s ease-out infinite;
}

@keyframes drawArrowLoop {
  0%   { stroke-dashoffset: 42; }
  7%   { stroke-dashoffset: 0; }
  90%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 42; }
}

@keyframes fadeInHeadLoop {
  0%   { opacity: 0; }
  7%   { opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ============================================================
   ILLUSTRATION 3 — puzzle: piece snaps into place,
   solve-ring pulses, checkmark confirms, streak counter ticks up
============================================================ */
.illustration-puzzle {
  flex-direction: column;
  gap: 14px;
}

.puzzle-board {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-square {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
}

.puzzle-piece {
  font-size: 1.5em;
  color: #fff;
  animation: snapIn 3s ease-in-out infinite;
}

@keyframes snapIn {
  0%   { transform: translate(-26px, -26px) rotate(-25deg); opacity: 0; }
  25%  { opacity: 1; }
  40%  { transform: translate(0, 0) rotate(0deg); }
  85%  { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-26px, -26px) rotate(-25deg); opacity: 0; }
}

.solve-ring {
  position: absolute;
  inset: -6px;
  border: 2px solid #fff;
  border-radius: 10px;
  opacity: 0;
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 35%  { opacity: 0; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1); }
  70%      { opacity: 0; transform: scale(1.3); }
  100%     { opacity: 0; }
}

.solve-check {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: checkPop 3s ease-in-out infinite;
}

@keyframes checkPop {
  0%, 45%  { opacity: 0; transform: scale(0.5); }
  55%      { opacity: 1; transform: scale(1); }
  85%      { opacity: 1; transform: scale(1); }
  95%,100% { opacity: 0; transform: scale(0.5); }
}

.streak-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--primary);
}

.streak-count {
  display: inline-block;
  color: var(--dark);
  animation: countUp 3s steps(1) infinite;
}

@keyframes countUp {
  0%   { content: "0"; }
  0%, 24%   { --n: "0"; }
  25%, 49%  { --n: "1"; }
  50%, 74%  { --n: "2"; }
  75%, 100% { --n: "3"; }
}

.streak-count { position: relative; width: 10px; display: inline-block; }
.streak-count::before {
  content: "0";
  animation: swapDigits 9s steps(1) infinite;
}

@keyframes swapDigits {
  0%, 24%   { content: "0"; }
  25%, 49%  { content: "1"; }
  50%, 74%  { content: "2"; }
  75%, 100% { content: "3"; }
}

/* ===== Reviews section ===== */
.reviews-section {
max-width: 1200px;
margin: 0 auto;
padding: 100px 24px;
border-top: 1px solid var(--border);
}

.reviews-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}

.review-card {
border: 1px solid var(--border);
border-radius: 14px;
padding: 24px;
background: rgba(255,255,255,0.02);
display: flex;
flex-direction: column;
gap: 16px;
transition: border-color .2s ease, transform .2s ease;
}

.review-card:hover {
border-color: var(--primary);
transform: translateY(-3px);
}

.review-stars {
color: var(--accent);
font-size: 0.9em;
display: flex;
gap: 3px;
}

.review-text {
margin: 0;
color: #e5e5e5;
font-size: 0.94em;
line-height: 1.6;
flex: 1;
}

.review-author {
display: flex;
align-items: center;
gap: 12px;
}

.review-avatar {
width: 38px;
height: 38px;
border-radius: 50%;
background: var(--border);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 0.85em;
color: var(--primary);
flex-shrink: 0;
}

.review-name {
margin: 0;
font-weight: 600;
color: #fff;
font-size: 0.92em;
}

.review-role {
margin: 2px 0 0 0;
color: var(--grey);
font-size: 0.8em;
}

/* ===== Final CTA ===== */
.final-cta-section {
max-width: 1200px;
margin: 0 auto;
padding: 60px 24px 110px;
}

.final-cta-box {
border: 1px solid var(--border);
border-radius: 18px;
padding: 70px 40px;
text-align: center;
background: linear-gradient(135deg, rgba(140,179,101,0.08), rgba(226,183,64,0.08));
}

.final-cta-box h2 {
margin: 0 0 12px 0;
font-size: 2em;
color: #fff;
font-weight: 700;
}

.final-cta-box p {
margin: 0 0 30px 0;
color: var(--grey);
font-size: 1.02em;
}

/* ===== Footer ===== */
.landing-footer {
border-top: 1px solid var(--border);
padding: 26px 24px;
text-align: center;
color: var(--grey);
font-size: 0.85em;
}

.landing-footer a{
  color: inherit;
  text-decoration: none;
  margin-left: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
.hero-section {
flex-direction: column;
padding-top: 60px;
}
.hero-content {
max-width: 100%;
text-align: center;
}
.hero-cta-group {
justify-content: center;
}
.hero-stats {
justify-content: center;
}
.feature-grid {
grid-template-columns: 1fr;
}
.reviews-grid {
grid-template-columns: 1fr;
}
.landing-nav-links {
display: none;
}
}
.bar-chart-container {
width: 100%;
max-width: 380px;
margin: 0 auto;
}

.bar-chart {
display: flex;
width: 100%;
}

.bar-chart-plot {
position: relative;
width: 100%;
height: 240px;
margin-left: 42px;
}

.grid-line {
position: absolute;
left: 0;
right: 0;
height: 1px;
background: var(--border);
opacity: 0.5;
}

.grid-line-base { opacity: 0.9; }

.axis-label {
position: absolute;
left: -42px;
width: 34px;
transform: translateY(50%);
font-size: 0.72em;
color: var(--grey);
line-height: 1;
text-align: right;
}

.bar-chart-bars {
position: absolute;
inset: 0;
z-index: 1;
display: flex;
justify-content: space-around;
gap: 24px;
}

.bar-col {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
flex: 1;
max-width: 90px;
height: 100%;
}

.bar-fill {
position: relative;
width: 100%;
max-width: 60px;
border-radius: 6px 6px 0 0;
}

.bar-value {
position: absolute;
top: -22px;
left: 50%;
transform: translateX(-50%);
font-size: 0.85em;
font-weight: 700;
color: #fff;
white-space: nowrap;
}

.bar-label {
position: absolute;
top: 100%;
margin: 10px 0 0 0;
font-size: 0.85em;
color: var(--grey);
text-align: center;
white-space: nowrap;
}
.bar-label.pro {
    color: var(--primary);
}
.bar-caption {
    font-size: 0.75em;
    color: var(--grey);
    text-align: center;
    margin-top: 50px;
}

.bar-stockfish, .bar-maia { background: var(--border); }
.bar-chessmate { background: linear-gradient(to top, var(--primary), var(--accent)); }

.popup-overlay {
display: none;
}

.popup-overlay.active {
display: block;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 10;
backdrop-filter: blur(5px);
}