/* =============================================================
   تصميم شطرنج المحترفين فائق الخفة والمطابق تماماً للمعاينة
   ============================================================= */

:root {
  --bg-color: #111927;
  --light-sq: #ecd9b9;
  --dark-sq: #b88b4a;
  --last-move: rgba(205, 210, 106, 0.55);
  --sel-sq: rgba(123, 160, 91, 0.65);
  --active-blue: #38bdf8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg-color);
  width: 100%;
  min-height: 100%;
}

body {
  background: var(--bg-color);
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Cairo', sans-serif;
  color: #f8fafc;
  direction: ltr;
  user-select: none;
  -webkit-user-select: none;
}

#app {
  width: 100%;
  max-width: 440px;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4px 0 calc(28px + env(safe-area-inset-bottom, 8px));
  box-sizing: border-box;
}

/* شريط معلومات اللاعب (علوي وسفلي) */
.player-bar {
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  direction: ltr;
}

.player-avatar-container {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
}

.player-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #1e293b;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.turn-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--active-blue);
  border: 2px solid var(--bg-color);
  display: none;
  box-shadow: 0 0 8px var(--active-blue);
}

.player-bar.turn .turn-dot {
  display: block;
}

.player-name {
  flex: 1;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Cairo', sans-serif;
}

.player-clock {
  flex: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  min-width: 82px;
  text-align: right;
  letter-spacing: 0.5px;
}

.player-bar.turn .player-clock {
  color: var(--active-blue);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

/* الرقعة تأخذ كامل العرض بدقة بالغة وبدون حواف زائدة */
.board-arena {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin: 6px auto;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  direction: ltr;
  touch-action: none !important;
}

.board-frame {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border: none;
  padding: 0;
  background: transparent;
  touch-action: none !important;
}

/* شبكة المربعات 8×8 */
.squares {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  touch-action: none !important;
}

.sq {
  position: relative;
  background: var(--light-sq);
}

.sq.dk {
  background: var(--dark-sq);
}

.sq.last::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--last-move);
}

.sq.sel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sel-sq);
}

.sq.check::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.7) 40%, rgba(185, 28, 28, 0) 72%);
  animation: check-throb 1s infinite alternate;
}

@keyframes check-throb {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* نقط حركات النقل القانونية */
.sq .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.sq.cap .dot {
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: transparent;
  border: 4px solid rgba(0, 0, 0, 0.25);
}

/* إحداثيات الرقعة المدمجة داخل المربعات */
.coord {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 800;
  pointer-events: none;
  font-family: -apple-system, sans-serif;
  line-height: 1;
}

.coord.r {
  top: 3px;
  left: 3px;
}

.coord.f {
  bottom: 3px;
  right: 3px;
}

.sq .coord {
  color: var(--dark-sq);
}

.sq.dk .coord {
  color: var(--light-sq);
}

/* طبقة القطع */
.pieces {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.piece {
  position: absolute;
  width: 12.5%;
  height: 12.5%;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: left, top;
}

.piece img {
  width: 96%;
  height: 96%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.piece.lifted {
  opacity: 0.25;
}

img.ghost {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.6));
}

.arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

/* نافذة الترقية الفائقة الأناقة */
.promotion-modal {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  touch-action: auto !important;
}

.promo-dialog-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 16px 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  text-align: center;
  max-width: 340px;
  width: 95%;
  animation: modal-pop 0.2s ease-out;
}

.promo-header {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 12px;
}

.promo-buttons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.promo-choice-btn {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.promo-choice-btn:active {
  transform: scale(0.92);
  background: #2563eb;
  border-color: #60a5fa;
}

.promo-choice-btn img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.promo-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #cbd5e1;
  pointer-events: none;
}

/* شريط الحالة التوضيحي السريع */
.status-banner {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: #cbd5e1;
  text-align: center;
  padding: 4px 12px;
  line-height: 1.35;
  transition: all 0.2s ease;
}

.status-banner.bad {
  color: #f87171;
}

/* الفوتر وأزرار التحكم بالأسفل */
.action-footer {
  padding: 4px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.action-buttons-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  justify-content: flex-start;
  direction: ltr;
}

.icon-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.icon-action-btn svg {
  width: 22px;
  height: 22px;
}

.icon-action-btn:hover, .icon-action-btn:active {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
}

.vip-hack-btn {
  color: #f59e0b !important;
  transition: all 0.2s ease;
}

.vip-hack-btn.active {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
  animation: vipBtnGlow 1.4s infinite alternate ease-in-out;
}

@keyframes vipBtnGlow {
  0% { transform: scale(1); box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
  100% { transform: scale(1.08); box-shadow: 0 0 20px rgba(245, 158, 11, 0.85); }
}

.watermark-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  text-align: center;
  letter-spacing: 0.5px;
}

/* النوافذ المنبثقة البسيطة والخفيفة */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.hidden {
  display: none !important;
}

.dialog-card {
  width: 100%;
  max-width: 380px;
  background: #151d2f;
  border-radius: 20px;
  padding: 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.match-time-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.tc-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-align: right;
  transition: all 0.15s ease;
  cursor: pointer;
}

.tc-card:hover, .tc-card:active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
}

.tc-emoji {
  font-size: 1.5rem;
}

.tc-info b {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f1f5f9;
}

.tc-info span {
  font-size: 0.76rem;
  color: #94a3b8;
}

.inline-tip-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px dashed rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 10px;
  font-size: 0.8rem;
  color: #93c5fd;
  text-align: center;
}

.inline-tip-box code {
  background: rgba(59, 130, 246, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 800;
  color: #fff;
  direction: ltr;
  display: inline-block;
}

/* قائمة المشاهدين تحت بعض (البروفايل وبجانبه الاسم) */
.spectators-box {
  margin: 2px 14px 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease-out;
}

.spectators-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 2px;
}

.spectators-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 96px;
  overflow-y: auto;
}

.spectator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
  padding: 2px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.spectator-row-avatar {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: #1e293b;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.spectator-row-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spectator-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.spectator-row-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* بطاقة الانتظار الخفيفة والأنيقة بدون كود وبدون حشو */
.clean-waiting-card {
  width: 90%;
  max-width: 320px;
  background: #151d2f;
  border-radius: 22px;
  padding: 26px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.waiting-spinner-box {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.waiting-spin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.18);
  border-top-color: #38bdf8;
  animation: waitingSpin 1.1s linear infinite;
}

@keyframes waitingSpin {
  to { transform: rotate(360deg); }
}

.waiting-king-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.waiting-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.waiting-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

.btn-cancel-clean {
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-cancel-clean:active {
  background: rgba(239, 68, 68, 0.25);
  transform: scale(0.98);
}

.dialog-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.dialog-buttons button {
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.dialog-buttons button.main {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: none;
}

.dialog-buttons button.bad {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  font-size: 1.05rem;
  padding: 13px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
}

/* Dialog Accuracy Box */
.dialog-extra {
  margin: 12px 0 6px;
}
.dialog-extra.hidden {
  display: none !important;
}

.dlg-accuracy-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dlg-acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dlg-acc-player {
  font-size: 0.92rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62%;
  text-align: left;
}

.dlg-acc-badge {
  background: #a3e635;
  color: #172a04;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(163, 230, 53, 0.35);
  white-space: nowrap;
}

.sq.vip-from-sq {
  position: relative;
  box-shadow: inset 0 0 0 3px #10b981, inset 0 0 16px rgba(16, 185, 129, 0.75);
  animation: vipPulseFrom 1.2s infinite alternate ease-in-out;
  z-index: 3;
}

@keyframes vipPulseFrom {
  0% {
    box-shadow: inset 0 0 0 3px #10b981, inset 0 0 10px rgba(16, 185, 129, 0.5);
  }
  100% {
    box-shadow: inset 0 0 0 4px #34d399, inset 0 0 22px rgba(52, 211, 153, 0.95);
  }
}

.sq.vip-from-sq::after {
  content: '👆';
  position: absolute;
  bottom: 2px;
  left: 2px;
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.sq.vip-to-sq {
  position: relative;
  box-shadow: inset 0 0 0 3px #f59e0b, inset 0 0 18px rgba(245, 158, 11, 0.8);
  animation: vipPulseTo 1.2s infinite alternate ease-in-out;
  z-index: 3;
}

@keyframes vipPulseTo {
  0% {
    box-shadow: inset 0 0 0 3px #f59e0b, inset 0 0 12px rgba(245, 158, 11, 0.6);
  }
  100% {
    box-shadow: inset 0 0 0 4px #fbbf24, inset 0 0 26px rgba(251, 191, 36, 1);
  }
}

.sq.vip-to-sq::after {
  content: '🎯';
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

/* -------------------------------------------------------------
   Game Review / Accuracy Report Modal (Exact Match)
   ------------------------------------------------------------- */
.review-card {
  width: 100%;
  max-width: 360px;
  background: #312a24;
  border-radius: 18px;
  padding: 18px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9);
  color: #e2dcd5;
  animation: modal-pop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.review-header {
  text-align: center;
  margin-bottom: 12px;
}

.review-opening {
  font-size: 0.95rem;
  font-weight: 700;
  color: #c5b8ac;
  letter-spacing: 0.3px;
}

.review-players-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.review-player-item {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 48%;
}

.review-player-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-trophy {
  font-size: 1rem;
}

.review-stats-table {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 4px;
}

.review-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-count {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  width: 40px;
  text-align: center;
}

.stat-badge-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 10px;
}

.cat-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Move Category Badges */
.badge-book { background: #795548; font-size: 0.9rem; }
.badge-genius { background: #06b6d4; color: #fff; letter-spacing: -1px; }
.badge-sharp { background: #0284c7; color: #fff; }
.badge-best { background: #22c55e; color: #fff; font-size: 0.95rem; }
.badge-excellent { background: #84cc16; color: #fff; font-size: 0.95rem; }
.badge-good { background: #65a30d; color: #fff; font-size: 0.85rem; }
.badge-inaccuracy { background: #eab308; color: #fff; letter-spacing: -1px; }
.badge-mistake { background: #f97316; color: #fff; }
.badge-blunder { background: #ef4444; color: #fff; letter-spacing: -1px; }
.badge-missed { background: #dc2626; color: #fff; font-weight: 900; }

/* Real-time On-Board Move Evaluation Badge */
.eval-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.move-eval-marker {
  position: absolute;
  width: 12.5%;
  height: 12.5%;
  pointer-events: none;
}

.move-eval-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 900;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.75), 0 0 0 1.5px rgba(255, 255, 255, 0.6);
  animation: evalBadgePop 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: none;
}

@keyframes evalBadgePop {
  0% { transform: scale(0.2); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Live Player Accuracy Badge in Player Bar */
.player-acc-pill {
  flex: none;
  font-size: 0.76rem;
  font-weight: 800;
  background: #a3e635;
  color: #172a04;
  padding: 3px 8px;
  border-radius: 6px;
  margin: 0 8px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.player-acc-pill.hidden {
  display: none !important;
}

/* Live Status Banner Evaluation Feedback */
.live-eval-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  margin-right: 6px;
  vertical-align: middle;
}
.live-eval-pill .live-eval-icon {
  font-size: 0.82rem;
  font-weight: 900;
}
.live-eval-pill .live-eval-label {
  letter-spacing: 0.2px;
}
.live-eval-move {
  font-weight: 800;
  color: #f8fafc;
  font-size: 0.88rem;
  margin-right: 4px;
}
.live-eval-sep {
  opacity: 0.4;
  margin: 0 4px;
}
.live-eval-turn {
  font-weight: 700;
  color: #94a3b8;
  font-size: 0.82rem;
}

.cat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #c3b7ab;
}

.review-accuracy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.accuracy-pill {
  background: #a3e635;
  color: #172a04;
  font-size: 1.05rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 8px;
  width: 76px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(163, 230, 53, 0.35);
}

.accuracy-center {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c5b8ac;
  font-size: 0.95rem;
  font-weight: 700;
}

.acc-target-icon {
  font-size: 1.15rem;
}

.review-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-review-close {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transition: transform 0.15s ease;
}

.btn-review-close:active {
  transform: scale(0.98);
}

.btn-review-board {
  flex: 1;
  padding: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-review-board:active {
  background: rgba(255, 255, 255, 0.16);
}


