/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:       #0f1117;
  --c-surface:  #1a1d27;
  --c-surface2: #232636;
  --c-border:   #2e3147;
  --c-text:     #e8eaf0;
  --c-muted:    #8b8fa8;
  --c-primary:  #6c63ff;
  --c-primary2: #5a52e8;
  --c-success:  #2ecc71;
  --c-warning:  #f39c12;
  --c-danger:   #e74c3c;
  --c-gold:     #f1c40f;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 20px rgba(0,0,0,.4);
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 70px;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: none; }

input, select, textarea {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1rem;
  padding: .6rem .9rem;
  width: 100%;
  outline: none;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--c-primary); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .1s, opacity .2s, background .2s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-full   { width: 100%; }
.btn-lg     { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-sm     { padding: .4rem .8rem; font-size: .85rem; border-radius: var(--radius-sm); }

.btn-primary  { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary2); text-decoration: none; }

.btn-success  { background: var(--c-success); color: #fff; }
.btn-success:hover { opacity: .85; }

.btn-warning  { background: var(--c-warning); color: #fff; }
.btn-warning:hover { opacity: .85; }

.btn-danger   { background: var(--c-danger);  color: #fff; }
.btn-danger:hover  { opacity: .85; }

.btn-outline  { border-color: var(--c-border); color: var(--c-text); background: transparent; }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn-google {
  background: #fff;
  color: #333;
  border-color: #ddd;
  gap: .6rem;
}
.btn-google:hover { background: #f5f5f5; text-decoration: none; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .95rem;
}
.alert-error   { background: rgba(231,76,60,.15); border: 1px solid var(--c-danger); color: #f88; }
.alert-success { background: rgba(46,204,113,.15); border: 1px solid var(--c-success); color: #6fea9a; }

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary);
  text-decoration: none;
}
.nav { display: flex; gap: .5rem; flex-wrap: wrap; }
.nav a {
  color: var(--c-muted);
  font-size: .85rem;
  padding: .3rem .6rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--c-text); background: var(--c-surface2); text-decoration: none; }
.nav .logout { color: var(--c-danger); }

/* ============================================================
   BOTTOM NAV (mobile)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .5rem .2rem;
  color: var(--c-muted);
  text-decoration: none;
  font-size: .7rem;
  transition: color .2s;
}
.bn-item:hover, .bn-item.active { color: var(--c-primary); }
.bn-icon { font-size: 1.4rem; }
.bn-label { margin-top: 2px; }

/* ============================================================
   MAIN
   ============================================================ */
.main { max-width: 600px; margin: 0 auto; padding: 1rem; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-page { background: var(--c-bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.auth-container { background: var(--c-surface); border-radius: var(--radius); padding: 2rem 1.5rem; width: 100%; max-width: 400px; box-shadow: var(--shadow); }
.auth-logo { font-size: 3rem; text-align: center; }
.auth-title { text-align: center; font-size: 1.6rem; margin: .4rem 0 .2rem; }
.auth-sub   { text-align: center; color: var(--c-muted); margin-bottom: 1.5rem; }
.auth-form .field { margin-bottom: 1rem; }
.auth-form label  { display: block; font-size: .85rem; color: var(--c-muted); margin-bottom: .3rem; }
.auth-divider { text-align: center; position: relative; margin: 1.2rem 0; color: var(--c-muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--c-border); }
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-link { text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--c-muted); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.welcome-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.welcome-left h2 { font-size: 1.3rem; }
.welcome-sub     { color: var(--c-muted); font-size: .9rem; margin-top: .2rem; }
.streak-badge    { text-align: center; }
.streak-fire     { font-size: 2rem; display: block; }
.streak-num      { font-size: 1.8rem; font-weight: 700; color: var(--c-warning); }
.streak-label    { font-size: .75rem; color: var(--c-muted); display: block; }

.stats-row       { display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; margin-bottom: 1.2rem; }
.stat-card       { background: var(--c-surface); border-radius: var(--radius-sm); padding: .8rem .5rem; text-align: center; }
.stat-card--due  { border: 1px solid var(--c-primary); }
.stat-card--wrong{ border: 1px solid var(--c-danger); }
.stat-num        { font-size: 1.5rem; font-weight: 700; }
.stat-label      { font-size: .7rem; color: var(--c-muted); margin-top: .2rem; }

.section-title   { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin: 1.2rem 0 .6rem; }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.mode-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: border-color .2s, transform .1s;
}
.mode-card:hover { border-color: var(--c-primary); transform: translateY(-2px); text-decoration: none; }
.mode-icon   { font-size: 2rem; }
.mode-name   { font-weight: 700; margin: .4rem 0 .2rem; }
.mode-desc   { font-size: .8rem; color: var(--c-muted); }
.mode-learn  { border-color: rgba(108,99,255,.3); }
.mode-quiz   { border-color: rgba(46,204,113,.3); }
.mode-match  { border-color: rgba(243,156,18,.3); }
.mode-plan   { border-color: rgba(52,152,219,.3); }

.cat-progress-list { display: flex; flex-direction: column; gap: .5rem; }
.cat-progress-item { background: var(--c-surface); border-radius: var(--radius-sm); padding: .8rem; text-decoration: none; color: var(--c-text); display: block; }
.cat-progress-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.cat-icon   { font-size: 1.2rem; }
.cat-name   { flex: 1; font-size: .9rem; }
.cat-pct    { font-size: .8rem; color: var(--c-muted); }
.progress-bar { background: var(--c-surface2); border-radius: 4px; height: 6px; overflow: hidden; position: relative; }
.progress-bar__fill  { background: var(--c-primary); height: 100%; border-radius: 4px; transition: width .4s; }
.progress-bar__known { background: var(--c-success); height: 100%; position: absolute; top: 0; left: 0; border-radius: 4px; opacity: .5; transition: width .4s; }

.hard-list  { display: flex; flex-direction: column; gap: .4rem; }
.hard-item  { background: var(--c-surface); border-radius: var(--radius-sm); padding: .7rem 1rem; display: flex; align-items: center; gap: .6rem; }
.hard-ro    { font-weight: 700; color: var(--c-danger); flex: 1; }
.hard-ru    { color: var(--c-muted); font-size: .9rem; flex: 1; }
.hard-badge { font-size: .8rem; color: var(--c-danger); }

.fav-list   { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.fav-item   { background: var(--c-surface); border-radius: var(--radius-sm); padding: .7rem 1rem; display: flex; gap: .6rem; align-items: center; }
.fav-ro     { font-weight: 700; color: var(--c-gold); flex: 1; }
.fav-ru     { color: var(--c-muted); font-size: .9rem; }

/* ============================================================
   MODE HEADER
   ============================================================ */
.mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: .6rem;
}
.mode-header h2 { font-size: 1.1rem; white-space: nowrap; }
.mode-header select { max-width: 200px; }

/* ============================================================
   LEARN CARD
   ============================================================ */
.card-wrap   { perspective: 1000px; }
.learn-card  {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  position: relative;
}
.card-top     { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.card-type-badge {
  background: var(--c-surface2);
  border-radius: 20px;
  font-size: .75rem;
  padding: .2rem .7rem;
  color: var(--c-muted);
}
.btn-fav      { background: none; border: none; cursor: pointer; font-size: 1.4rem; padding: 0; opacity: .4; transition: opacity .2s, transform .2s; }
.btn-fav.active { opacity: 1; transform: scale(1.2); }
.btn-fav:hover  { opacity: .8; }

.card-romanian      { font-size: 2.2rem; font-weight: 700; color: var(--c-primary); text-align: center; padding: .5rem 0; }
.card-transcription { text-align: center; color: var(--c-muted); font-size: 1rem; margin-bottom: .3rem; }
.card-translation   { font-size: 1.5rem; font-weight: 600; text-align: center; margin-bottom: 1rem; }

.card-assoc  { background: var(--c-surface2); border-radius: var(--radius-sm); padding: .7rem 1rem; margin-bottom: .8rem; font-size: .9rem; }
.assoc-label { color: var(--c-warning); font-weight: 600; display: block; margin-bottom: .2rem; }

.card-examples   { border-top: 1px solid var(--c-border); padding-top: .8rem; }
.examples-label  { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin-bottom: .4rem; }
.example-item    { font-size: .9rem; color: var(--c-muted); padding: .15rem 0; font-style: italic; }

.rating-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem;
  margin-bottom: 1rem;
}
.rating-buttons .btn { font-size: .9rem; padding: .7rem .5rem; }

.learn-feedback {
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-size: .9rem;
  color: var(--c-muted);
  text-align: center;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}
.empty-icon { font-size: 4rem; }
.empty-state h3 { font-size: 1.5rem; margin: .8rem 0 .4rem; }
.empty-state p  { color: var(--c-muted); margin-bottom: 1.5rem; }

/* ============================================================
   QUIZ
   ============================================================ */
/* Quiz topbar */
.quiz-topbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.quiz-stat { font-size: .9rem; font-weight: 700; white-space: nowrap; min-width: 2.5rem; }
.quiz-stat--correct { color: var(--c-success); text-align: right; }
.quiz-stat--wrong   { color: var(--c-danger); }
.quiz-progress-wrap {
  flex: 1;
  height: 8px;
  background: var(--c-border);
  border-radius: 99px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--c-success);
  border-radius: 99px;
  transition: width .3s;
}

.quiz-question-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  margin-bottom: .75rem;
  box-shadow: var(--shadow);
}
.quiz-dir-badge { font-size: .7rem; color: var(--c-muted); margin-bottom: .25rem; display: block; }
.quiz-word      { font-size: 1.55rem; font-weight: 700; text-align: center; color: var(--c-primary); padding: .2rem 0; }
.quiz-transcription { font-size: .85rem; color: var(--c-muted); text-align: center; padding-bottom: .1rem; }

.quiz-options   { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .75rem; }
.quiz-option    {
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-size: .95rem;
  cursor: pointer;
  text-align: left;
  color: var(--c-text);
  transition: border-color .15s, background .15s;
}
.quiz-option:hover { border-color: var(--c-primary); }
.quiz-option.correct { border-color: var(--c-success); background: rgba(46,204,113,.1); }
.quiz-option.wrong   { border-color: var(--c-danger);  background: rgba(231,76,60,.1); }
.quiz-option.reveal  { border-color: var(--c-success); opacity: .7; }

.quiz-result-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.quiz-result-title { font-weight: 700; margin-bottom: .5rem; }
.quiz-result-card .card-assoc, .quiz-result-card .card-examples { margin-top: .8rem; }

.quiz-loading { text-align: center; padding: 3rem; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   MATCH
   ============================================================ */
.match-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  margin-bottom: .8rem;
}
.match-score    { display: flex; gap: 1rem; font-size: .9rem; }
.match-timer    { font-size: 1.4rem; font-weight: 700; color: var(--c-warning); min-width: 2.5rem; text-align: right; }
.match-timer.urgent { color: var(--c-danger); animation: pulse .6s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.1); } }

.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.match-col { display: flex; flex-direction: column; gap: .4rem; }
.match-col-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--c-muted); text-align: center; margin-bottom: .3rem; }

.match-card {
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  padding: .45rem .6rem;
  font-size: .88rem;
  cursor: pointer;
  text-align: center;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s, opacity .3s, transform .3s;
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* override for flex centering while keeping line-clamp */
.match-card { display: flex; }
@media (hover: hover) {
  .match-card:not(.match-card--empty):hover { border-color: var(--c-primary); }
}
.match-card.selected   { border-color: var(--c-primary); background: rgba(108,99,255,.18); }
.match-card.correct    { border-color: var(--c-success); background: rgba(46,204,113,.18); pointer-events: none; }
.match-card.wrong      { border-color: var(--c-danger);  background: rgba(231,76,60,.18);  animation: shake .4s; }
.match-card.removing   { opacity: 0; transform: scale(.85); }
.match-card.appearing  { /* fade-in handled by opacity transition */ }
.match-card--empty     { border-color: transparent; background: transparent; cursor: default; pointer-events: none; }
.match-card.loading    { pointer-events: none; opacity: 0; }

@keyframes shake   { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes pop-in  { 0% { opacity: 0; transform: scale(.85); } 100% { opacity: 1; transform: scale(1); } }

.match-start-screen { text-align: center; padding: 2.5rem 1rem; }
.match-start-icon   { font-size: 4rem; margin-bottom: 1rem; }
.match-start-screen h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.match-start-screen p  { color: var(--c-muted); margin-bottom: 1.5rem; line-height: 1.6; }

.match-result       { text-align: center; padding: 2rem 1rem; display: none; }
.match-result h3    { font-size: 1.5rem; margin-bottom: 1rem; }
.result-stats       { margin-bottom: 1.5rem; }
.rs-item            { font-size: 1.1rem; padding: .4rem 0; }
.rs-correct         { color: var(--c-success); }
.rs-wrong           { color: var(--c-danger); }
.match-result .btn  { margin: .3rem; }

/* ============================================================
   PLAN
   ============================================================ */
.plan-page   { padding-bottom: 2rem; }
.plan-page h2 { margin-bottom: .3rem; }
.plan-sub    { color: var(--c-muted); margin-bottom: 1.5rem; }
.plan-week   { margin-bottom: 2rem; }
.plan-week-title { font-size: 1rem; color: var(--c-primary); margin-bottom: .8rem; font-weight: 700; }
.plan-days   { display: flex; flex-direction: column; gap: .5rem; }
.plan-day    {
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: .4rem .8rem;
  align-items: center;
}
.plan-day-num   { font-size: .75rem; color: var(--c-muted); }
.plan-day-title { font-weight: 600; font-size: .95rem; }
.plan-day-desc  { font-size: .8rem; color: var(--c-muted); grid-column: 2; }

/* ============================================================
   TEXT HELPERS
   ============================================================ */
.text-muted { color: var(--c-muted); }
code { background: var(--c-surface2); padding: .15rem .4rem; border-radius: 4px; font-size: .88rem; }

/* ============================================================
   LEADERBOARD
   ============================================================ */
.lb-page   { padding-bottom: 1rem; }
.lb-header { margin-bottom: 1rem; }
.lb-header h2 { font-size: 1.4rem; }
.lb-sub    { color: var(--c-muted); font-size: .9rem; margin-top: .2rem; }

.my-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(108,99,255,.2), rgba(108,99,255,.05));
  border: 1px solid rgba(108,99,255,.4);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.my-card__place { font-size: 2.2rem; flex-shrink: 0; min-width: 2.5rem; text-align: center; }
.my-card__body  { flex: 1; min-width: 0; }
.my-card__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--c-muted); margin-bottom: .3rem; }
.my-card__stats { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; margin-bottom: .6rem; }
.my-card__bar   { background: var(--c-surface2); border-radius: 4px; height: 7px; overflow: hidden; }
.my-card__bar-fill { background: var(--c-primary); height: 100%; border-radius: 4px; transition: width .5s; }
.my-card__pct   { font-size: .75rem; color: var(--c-muted); margin-top: .3rem; }

.lb-list { display: flex; flex-direction: column; gap: .5rem; }

.lb-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  border: 1px solid transparent;
  transition: border-color .2s;
}
.lb-row:hover       { border-color: var(--c-border); }
.lb-row--me         { border-color: rgba(108,99,255,.5); background: rgba(108,99,255,.07); }

.lb-place      { font-size: 1.3rem; min-width: 2rem; text-align: center; flex-shrink: 0; }
.lb-place-num  { font-size: 1rem; font-weight: 700; color: var(--c-muted); }

.lb-avatar-wrap { position: relative; flex-shrink: 0; }
.lb-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
}
.lb-avatar--placeholder {
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.lb-online {
  position: absolute;
  bottom: 0; right: 0;
  width: 10px; height: 10px;
  background: var(--c-success);
  border: 2px solid var(--c-surface);
  border-radius: 50%;
}

.lb-main  { flex: 1; min-width: 0; }
.lb-name  { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-me-badge { background: var(--c-primary); color: #fff; font-size: .65rem; padding: .1rem .4rem; border-radius: 8px; font-weight: 600; }

.lb-bar-wrap { display: flex; align-items: center; gap: .5rem; }
.lb-bar {
  flex: 1;
  background: var(--c-surface2);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  position: relative;
}
.lb-bar__seen  { position: absolute; top: 0; left: 0; height: 100%; background: var(--c-primary); border-radius: 4px; opacity: .7; transition: width .5s; }
.lb-bar__known { position: absolute; top: 0; left: 0; height: 100%; background: var(--c-success); border-radius: 4px; opacity: .9; transition: width .5s; }
.lb-bar-label  { font-size: .72rem; color: var(--c-muted); white-space: nowrap; }

.lb-stats { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; flex-shrink: 0; }
.lb-stat  { font-size: .78rem; color: var(--c-muted); white-space: nowrap; }
.lb-stat--hot  { color: var(--c-danger); font-weight: 600; }
.acc-good { color: var(--c-success); }
.acc-ok   { color: var(--c-warning); }
.acc-bad  { color: var(--c-danger); }
.lb-stat--known { color: var(--c-primary); }

.lb-hint { text-align: center; color: var(--c-muted); font-size: .8rem; margin-top: 1.2rem; line-height: 1.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 400px) {
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .mode-grid  { grid-template-columns: 1fr 1fr; }
  .card-romanian { font-size: 1.8rem; }
  .rating-buttons .btn { font-size: .8rem; padding: .6rem .3rem; }
}
