/* =============================================================================
   NAIJA DRAUGHTS - BLENDED GAME EXPERIENCE STYLESHEET (lidraughts_game.css)
   Seamlessly blends the African Mahogany, Nigerian Emerald Green, and Warm Gold
   aesthetic of the Home, Dashboard, and Puzzles pages with the high-performance
   Lidraughts-style 3-column board layout and responsive mobile drawers.
   ============================================================================= */

:root {
  /* Blended Dark Luxury Palette matching home.css & style.css */
  --bg-primary: #0a0e14;
  --bg-secondary: #121820;
  --lid-bg: radial-gradient(circle at 50% 15%, #182332 0%, #0a0e14 70%, #05070a 100%);
  --lid-card-bg: rgba(22, 29, 39, 0.92);
  --lid-card-bg-solid: #161d27;
  --lid-border: rgba(245, 166, 35, 0.22);
  --lid-border-light: rgba(255, 255, 255, 0.08);
  --lid-border-gold: rgba(245, 166, 35, 0.35);
  
  --lid-text: #f8fafc;
  --lid-text-muted: #94a3b8;
  --lid-text-light: #64748b;

  --accent-green: #008751;
  --accent-green-light: #05a867;
  --accent-green-glow: rgba(0, 135, 81, 0.45);

  --accent-gold: #f5a623;
  --accent-gold-light: #fcd34d;
  --accent-gold-glow: rgba(245, 166, 35, 0.4);

  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.45);

  /* Authentic Handcrafted West African Draughts Board Wood Finishes */
  --wood-rim-dark: #2c1609;
  --wood-rim-light: #4a2711;
  --lid-sq-dark: #4a2711;
  --lid-sq-dark-gradient: linear-gradient(135deg, #532d18 0%, #3a1c0d 100%);
  --lid-sq-light: #d9b48f;
  --lid-sq-light-gradient: linear-gradient(135deg, #e4c4a1 0%, #cfa67f 100%);

  /* Typography */
  --font-display: 'Cinzel', serif, Georgia;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==================== GLOBAL PAGE THEME ==================== */
body.lidraughts-theme {
  background: var(--lid-bg) !important;
  color: var(--lid-text) !important;
  font-family: var(--font-body) !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body.lidraughts-theme .app-wrapper {
  background: transparent !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==================== TOP NAVIGATION BAR (AFRODRAUGHT-STYLE) ==================== */
body.lidraughts-theme .app-header {
  background: rgba(10, 14, 20, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--lid-border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  padding: 0 24px !important;
  height: 52px !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 50;
  box-sizing: border-box !important;
}

body.lidraughts-theme .nav-brand-container {
  display: flex;
  align-items: center;
}

body.lidraughts-theme .brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

body.lidraughts-theme .brand-link .flag-stripes {
  display: flex;
  width: 22px;
  height: 32px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

body.lidraughts-theme .brand-link .flag-stripes .stripe {
  flex: 1;
  height: 100%;
}
body.lidraughts-theme .brand-link .flag-stripes .stripe.green { background: var(--accent-green); }
body.lidraughts-theme .brand-link .flag-stripes .stripe.white { background: #ffffff; }

body.lidraughts-theme .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

body.lidraughts-theme .brand-text .game-title {
  font-family: var(--font-display) !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  letter-spacing: 1.8px !important;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}

body.lidraughts-theme .brand-text .game-subtitle {
  display: block !important;
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  letter-spacing: 1.2px !important;
  color: var(--lid-text-muted) !important;
  text-transform: uppercase !important;
}

/* Nav Menu Items */
body.lidraughts-theme .main-nav {
  display: flex;
  align-items: center;
}

body.lidraughts-theme .nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.lidraughts-theme .nav-link {
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  color: #cbd5e1 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  padding: 7px 12px !important;
  border-radius: 6px !important;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

body.lidraughts-theme .nav-link .nav-icon {
  display: inline-block;
  font-size: 0.95rem;
}

body.lidraughts-theme .nav-link:hover {
  color: #ffffff !important;
  background: rgba(245, 166, 35, 0.12) !important;
  border-color: rgba(245, 166, 35, 0.3) !important;
}

body.lidraughts-theme .nav-link.btn-nav-highlight,
body.lidraughts-theme .nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #008751 0%, #05a867 100%) !important;
  border-color: rgba(5, 168, 103, 0.5) !important;
  box-shadow: 0 2px 10px rgba(0, 135, 81, 0.45) !important;
}

body.lidraughts-theme .nav-link.nav-highlight-traps {
  color: #fcd34d !important;
  font-weight: 800 !important;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Header Right Tools */
body.lidraughts-theme .header-right-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.lidraughts-theme .header-right-tools .btn-icon {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  color: #cbd5e1 !important;
  font-size: 1.05rem !important;
  padding: 6px 9px !important;
  border-radius: 6px !important;
  cursor: pointer;
  transition: all 0.18s ease;
}

body.lidraughts-theme .header-right-tools .btn-icon:hover {
  color: var(--accent-gold-light) !important;
  background: rgba(245, 166, 35, 0.14) !important;
  border-color: rgba(245, 166, 35, 0.35) !important;
}

body.lidraughts-theme .user-pill {
  background: rgba(245, 166, 35, 0.08) !important;
  border: 1px solid var(--lid-border) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  color: #f8fafc !important;
  padding: 5px 12px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.18s ease;
}

body.lidraughts-theme .user-pill:hover {
  background: rgba(245, 166, 35, 0.16) !important;
  border-color: var(--accent-gold) !important;
}

body.lidraughts-theme .user-pill-avatar {
  font-size: 1.1rem;
}

body.lidraughts-theme .user-pill-rating {
  color: var(--accent-gold-light) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
}

/* Default visibility for mobile-only vs desktop-only components */
.lid-mobile-only {
  display: none !important;
}

/* ==================== 3-COLUMN MAIN ARENA GRID ==================== */
body.lidraughts-theme .game-container {
  display: grid !important;
  grid-template-columns: 240px minmax(460px, 580px) 320px !important;
  gap: 24px !important;
  max-width: 1240px !important;
  margin: 18px auto 40px !important;
  padding: 0 16px !important;
  align-items: start !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

@media (max-width: 1320px) {
  body.lidraughts-theme .main-nav .nav-list {
    gap: 3px !important;
  }
  body.lidraughts-theme .main-nav .nav-link {
    padding: 6px 7px !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.2px !important;
  }
  body.lidraughts-theme .brand-text .game-subtitle {
    display: none !important;
  }
  body.lidraughts-theme .header-right-tools {
    gap: 5px !important;
  }
  body.lidraughts-theme .user-pill {
    padding: 3px 8px !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 1180px) {
  body.lidraughts-theme .game-container {
    grid-template-columns: 220px 1fr 300px !important;
    gap: 16px !important;
  }
}

@media (max-width: 1060px) {
  /* ================= EXACT LIDRAUGHTS MOBILE PHONE LAYOUT ================= */
  html, body {
    overflow-x: hidden !important;
    background-color: #161512 !important;
  }

  body.lidraughts-theme {
    background-color: #161512 !important;
  }

  body.lidraughts-theme .app-wrapper {
    background-color: #161512 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Compact 48px Header */
  body.lidraughts-theme .app-header {
    padding: 0 10px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    background: #161512 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    gap: 0 !important;
  }

  body.lidraughts-theme .main-nav {
    display: none !important;
  }

  .lid-mobile-menu-toggle {
    order: -1 !important;
    display: inline-flex !important;
    font-size: 1.4rem !important;
    padding: 6px !important;
    line-height: 1 !important;
    color: #888888 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
  }

  .nav-brand-container {
    order: 0 !important;
    flex: 1 !important;
    margin-left: 6px !important;
    display: flex !important;
    align-items: center !important;
  }

  .nav-brand-container .flag-stripes {
    display: none !important;
  }

  body.lidraughts-theme .brand-text .game-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    letter-spacing: 0.3px !important;
  }

  body.lidraughts-theme .brand-text .game-subtitle {
    font-size: 0.68rem !important;
    font-weight: 500 !important;
    color: #888888 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.2px !important;
  }

  .header-right-tools {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .header-right-tools #auth-section,
  .header-right-tools #btn-sound-toggle,
  .header-right-tools #btn-flip-board {
    display: none !important;
  }

  .lid-mobile-theme-btn {
    display: inline-flex !important;
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
    cursor: pointer !important;
    color: #888888 !important;
  }

  /* Single Column Stack with Board Priority */
  body.lidraughts-theme .game-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    align-items: center !important;
    box-sizing: border-box !important;
    background: #161512 !important;
  }

  /* Order 1: Board Center (Moves Ribbon + Opponent Bar + Flush Board + Player Bar + Bottom Toolbar) */
  .lid-game-board-center {
    order: 1 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    background: #161512 !important;
  }

  /* Order 2 & 3: Sidebar Controls Below Mobile Screen Fold */
  .lid-game-sidebar-right {
    order: 2 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 10px 0 0 !important;
    padding: 0 12px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }

  .lid-game-sidebar-left {
    order: 3 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 12px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }

  /* Hide separate desktop clocks and duplicate info on mobile */
  .lid-game-sidebar-right .lid-clock-card-row {
    display: none !important;
  }

  .lid-controls-card .lid-ctrl-player-bar {
    display: none !important;
  }

  .lid-friends-bottom-widget {
    display: none !important;
  }

  /* Show Mobile Elements */
  .lid-mobile-only {
    display: flex !important;
  }

  /* Moves Ribbon (Single horizontal line) */
  .lid-mobile-moves-ribbon {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    background: #161512 !important;
    display: flex !important;
    align-items: center !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  }

  .lid-mobile-moves-ribbon::-webkit-scrollbar {
    display: none !important;
  }

  .ribbon-scroll-track {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.82rem !important;
    font-family: monospace, sans-serif !important;
    color: #888888 !important;
  }

  .ribbon-scroll-track .ribbon-empty-text {
    color: #666666 !important;
    font-style: italic !important;
    font-size: 0.78rem !important;
  }

  .ribbon-scroll-track .ribbon-move-num {
    color: #777777 !important;
    font-weight: 600 !important;
  }

  .ribbon-scroll-track .ribbon-move-text {
    color: #cccccc !important;
    font-weight: 500 !important;
    cursor: pointer !important;
  }

  .ribbon-scroll-track .ribbon-move-text.current {
    color: #ffffff !important;
    font-weight: 800 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
  }

  /* Mobile Player Bars (Opponent top, Player bottom) */
  .lid-mobile-player-bar {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    background: #161512 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
  }

  .lid-mobile-player-bar.lid-mobile-top {
    margin: 0 !important;
  }

  .lid-mobile-player-bar.lid-mobile-bottom {
    margin: 0 !important;
  }

  .lid-ctrl-player-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .green-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #629924 !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .lid-mobile-name-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.15 !important;
  }

  .lid-mobile-player-name {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: #ffffff !important;
    letter-spacing: 0.2px !important;
  }

  .lid-player-rating-badge {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #b58863 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }

  .lid-mobile-clock-wrap {
    display: flex !important;
    align-items: center !important;
  }

  /* Digital Clock Card */
  .lid-mobile-clock {
    font-size: 1.65rem !important;
    padding: 3px 14px !important;
    min-width: 86px !important;
    border-radius: 4px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    font-family: monospace, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-sizing: border-box !important;
    background: #262421 !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: none !important;
    letter-spacing: 1px !important;
    text-align: center !important;
  }

  .lid-mobile-clock.active {
    background: #262421 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
  }

  .lid-mobile-clock.urgent {
    background: #4a2323 !important;
    color: #ffffff !important;
    border: none !important;
    animation: lidClockPulse 0.8s infinite alternate !important;
  }

  /* EXACT 100vw FLUSH EDGE-TO-EDGE DRAUGHTS BOARD */
  .lid-board-outer {
    width: 100vw !important;
    height: 100vw !important;
    max-width: 100vw !important;
    max-height: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .lid-coords-right,
  .lid-coords-bottom {
    display: none !important;
  }

  body.lidraughts-theme .board-wood-frame {
    width: 100vw !important;
    height: 100vw !important;
    max-width: 100vw !important;
    max-height: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: none !important;
    box-sizing: border-box !important;
  }

  body.lidraughts-theme .board-wood-frame::before,
  body.lidraughts-theme .board-wood-frame::after {
    display: none !important;
  }

  .lid-board-resize-handle {
    display: none !important;
  }

  body.lidraughts-theme .board-inner {
    width: 100vw !important;
    height: 100vw !important;
    max-width: 100vw !important;
    max-height: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(10, 10vw) !important;
    grid-template-rows: repeat(10, 10vw) !important;
    box-sizing: border-box !important;
  }

  /* Exact 10vw x 10vw Squares */
  .square {
    width: 10vw !important;
    height: 10vw !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Hide default row/col letters A-J and 1-10 on mobile */
  .square-coord {
    display: none !important;
  }

  /* Numbers on Edge Dark Squares */
  .sq-num-label {
    display: block !important;
    position: absolute !important;
    bottom: 2px !important;
    right: 3px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: rgba(240, 217, 181, 0.65) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    user-select: none !important;
  }

  /* UNIFORM SEEDS (PIECES) ACROSS ALL SQUARES */
  .piece {
    width: 84% !important;
    height: 84% !important;
    max-width: 84% !important;
    max-height: 84% !important;
    margin: auto !important;
    flex-shrink: 0 !important;
    z-index: 2 !important;
  }

  /* Soft Olive Last-Move Square Highlights */
  .square.sq-last-from,
  .square.sq-last-to {
    background-color: rgba(170, 162, 58, 0.45) !important;
  }

  /* Mobile Bottom 4-Icon Toolbar */
  .lid-mobile-bottom-toolbar {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 48px !important;
    min-height: 48px !important;
    background: #161512 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin: 0 !important;
  }

  .mob-tool-btn {
    background: transparent !important;
    border: none !important;
    color: #888888 !important;
    padding: 8px 16px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.15s ease !important;
  }

  .mob-tool-btn:hover,
  .mob-tool-btn:active {
    color: #ffffff !important;
  }

  /* Compact Turn Info Banner and Action Icons */
  .lid-turn-info-box {
    padding: 10px 14px !important;
    min-height: 48px !important;
    gap: 10px !important;
  }

  .lid-info-icon-circle {
    width: 26px !important;
    height: 26px !important;
    font-size: 1rem !important;
  }

  .lid-turn-main {
    font-size: 0.9rem !important;
  }

  .lid-turn-sub {
    font-size: 0.75rem !important;
  }

  .lid-action-icons-row {
    padding: 8px 14px !important;
    gap: 16px !important;
  }
}

/* Hide numbers on desktop where rim coordinates are displayed */
@media (min-width: 1061px) {
  .sq-num-label {
    display: none !important;
  }
}

/* ================= MOBILE NAVIGATION DRAWER ================= */
.lid-mobile-drawer {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: rgba(10, 14, 20, 0.98);
  backdrop-filter: blur(18px);
  border-bottom: 2px solid var(--lid-border-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: none !important;
  flex-direction: column;
  padding: 8px 0;
  max-height: calc(100vh - 52px);
  overflow-y: auto;
  animation: lidDrawerSlide 0.22s ease-out;
}

@keyframes lidDrawerSlide {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.lid-mobile-drawer.open {
  display: flex !important;
}

.lid-mobile-drawer .nav-link {
  padding: 12px 20px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-bottom: 1px solid var(--lid-border-light) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #cbd5e1 !important;
  text-align: left !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.lid-mobile-drawer .nav-link:hover {
  background: rgba(245, 166, 35, 0.12) !important;
  color: var(--accent-gold-light) !important;
}

.lid-mobile-drawer .nav-link .nav-icon {
  display: inline-block !important;
  font-size: 1.15rem;
}

/* ==================== COLUMN 1: LEFT SIDEBAR ==================== */
.lid-game-sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Game Metadata Card (Lidraughts Left Top Card) */
.lid-meta-card {
  background: var(--lid-card-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--lid-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 16px 18px;
  box-sizing: border-box;
}

.lid-meta-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.lid-meta-cogs-icon {
  font-size: 1.7rem;
  color: var(--accent-gold);
  line-height: 1;
}

.lid-meta-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lid-meta-time-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lid-text);
}

.lid-meta-status-sub {
  font-size: 0.82rem;
  color: var(--lid-text-muted);
}

/* Player Mini List in Left Card */
.lid-meta-players-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--lid-border-light);
}

.lid-meta-player-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.lid-meta-player-item .dot-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.lid-meta-player-item .dot-circle.white {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.lid-meta-player-item .dot-circle.dark {
  background: #111418;
  border: 2px solid #475569;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.lid-meta-player-name {
  font-weight: 700;
  color: var(--lid-text);
}

.lid-meta-player-rating {
  color: var(--accent-gold-light);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Ruleset Badge & Mode Selector in Left Card */
.lid-meta-ruleset-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--lid-border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lid-ruleset-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(0, 135, 81, 0.22);
  border: 1px solid rgba(0, 135, 81, 0.45);
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0, 135, 81, 0.2);
}

/* Secondary Left Utilities (Collapsible Accordion for Telemetry / Commentary) */
.lid-left-accordion {
  border: 1px solid var(--lid-border);
  border-radius: 8px;
  background: var(--lid-card-bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.lid-left-accordion summary {
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  background: rgba(14, 19, 27, 0.85);
  user-select: none;
  transition: all 0.15s ease;
}

.lid-left-accordion summary:hover {
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent-gold-light);
}

.lid-left-accordion-content {
  padding: 12px 14px;
  border-top: 1px solid var(--lid-border-light);
  color: var(--lid-text-muted);
}

/* ==================== COLUMN 2: CENTER BOARD ==================== */
@media (min-width: 1061px) {
  .lid-game-board-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  /* Outer Board Container with Coordinates */
  .lid-board-outer {
    position: relative;
    width: 100%;
    max-width: 580px;
    min-width: 280px;
    min-height: 280px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    margin-right: 22px;
    margin-bottom: 22px;
  }

  /* Wood Board Frame - Authentic Handcrafted Board & Brass Bezel */
  body.lidraughts-theme .board-wood-frame {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: 1px solid #7c4d29 !important;
    border-radius: 4px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 166, 35, 0.12) !important;
    position: relative !important;
    background: var(--wood-rim-dark) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
}

body.lidraughts-theme .board-wood-frame::before,
body.lidraughts-theme .board-wood-frame::after {
  display: none !important;
  content: none !important;
}

body.lidraughts-theme .board-tactical-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 50 !important;
}

body.lidraughts-theme .board-inner {
  display: grid !important;
  grid-template-columns: repeat(10, 1fr) !important;
  grid-template-rows: repeat(10, 1fr) !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  background-image: url('images/board/wood-1024_100.jpg') !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  transition: background-image 0.25s ease;
}

body.lidraughts-theme .board-wood-frame.rules-nigerian .board-inner,
body.lidraughts-theme .board-inner.rules-nigerian {
  background-image: url('images/board/wood-1024_100_mirrored.jpg') !important;
}

/* Theme: Default Classic */
body.lidraughts-theme .board-wood-frame.theme-default {
  border-color: #7c4d29 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 166, 35, 0.12) !important;
}
body.lidraughts-theme .board-wood-frame.theme-default .board-inner {
  background-image: url('images/board/wood-1024_100.jpg') !important;
}
body.lidraughts-theme .board-wood-frame.theme-default.rules-nigerian .board-inner,
body.lidraughts-theme .board-wood-frame.theme-default .board-inner.rules-nigerian {
  background-image: url('images/board/wood-1024_100_mirrored.jpg') !important;
}

/* Theme: Eco Giant */
body.lidraughts-theme .board-wood-frame.theme-eco-giant {
  border-color: #1e5a32 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 24px rgba(16, 185, 129, 0.25) !important;
}
body.lidraughts-theme .board-wood-frame.theme-eco-giant .board-inner {
  background-image: url('images/board/wood-1024_eco_giant.jpg') !important;
}
body.lidraughts-theme .board-wood-frame.theme-eco-giant.rules-nigerian .board-inner,
body.lidraughts-theme .board-wood-frame.theme-eco-giant .board-inner.rules-nigerian {
  background-image: url('images/board/wood-1024_eco_giant_mirrored.jpg') !important;
}

/* Theme: Golden State */
body.lidraughts-theme .board-wood-frame.theme-golden-state {
  border-color: #b47a18 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 26px rgba(245, 158, 11, 0.28) !important;
}
body.lidraughts-theme .board-wood-frame.theme-golden-state .board-inner {
  background-image: url('images/board/wood-1024_golden_state.jpg') !important;
}
body.lidraughts-theme .board-wood-frame.theme-golden-state.rules-nigerian .board-inner,
body.lidraughts-theme .board-wood-frame.theme-golden-state .board-inner.rules-nigerian {
  background-image: url('images/board/wood-1024_golden_state_mirrored.jpg') !important;
}

/* Theme: Safari Land */
body.lidraughts-theme .board-wood-frame.theme-safari-land {
  border-color: #944a1e !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 24px rgba(217, 119, 6, 0.24) !important;
}
body.lidraughts-theme .board-wood-frame.theme-safari-land .board-inner {
  background-image: url('images/board/wood-1024_safari_land.jpg') !important;
}
body.lidraughts-theme .board-wood-frame.theme-safari-land.rules-nigerian .board-inner,
body.lidraughts-theme .board-wood-frame.theme-safari-land .board-inner.rules-nigerian {
  background-image: url('images/board/wood-1024_safari_land_mirrored.jpg') !important;
}

/* Theme: Mineral Grove */
body.lidraughts-theme .board-wood-frame.theme-mineral-grove {
  border-color: #0f6158 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(20, 184, 166, 0.26) !important;
}
body.lidraughts-theme .board-wood-frame.theme-mineral-grove .board-inner {
  background-image: url('images/board/wood-1024_mineral_grove.jpg') !important;
}
body.lidraughts-theme .board-wood-frame.theme-mineral-grove.rules-nigerian .board-inner,
body.lidraughts-theme .board-wood-frame.theme-mineral-grove .board-inner.rules-nigerian {
  background-image: url('images/board/wood-1024_mineral_grove_mirrored.jpg') !important;
}

/* Theme: Diamond Coast */
body.lidraughts-theme .board-wood-frame.theme-diamond-coast {
  border-color: #1a568c !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 28px rgba(14, 165, 233, 0.28) !important;
}
body.lidraughts-theme .board-wood-frame.theme-diamond-coast .board-inner {
  background-image: url('images/board/wood-1024_diamond_coast.jpg') !important;
}
body.lidraughts-theme .board-wood-frame.theme-diamond-coast.rules-nigerian .board-inner,
body.lidraughts-theme .board-wood-frame.theme-diamond-coast .board-inner.rules-nigerian {
  background-image: url('images/board/wood-1024_diamond_coast_mirrored.jpg') !important;
}

/* Squares */
body.lidraughts-theme .square {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  user-select: none;
  background: transparent !important;
}

/* Internal square coordinates hidden, outer rim numbers display */
body.lidraughts-theme .square-coord {
  display: none !important;
}

body.lidraughts-theme .square.light,
body.lidraughts-theme .square.dark {
  background: transparent !important;
  background-image: none !important;
}

/* Last Move Highlights (Exact Lidraughts Soft Olive/Yellow Tint) */
body.lidraughts-theme .square.sq-last-from,
body.lidraughts-theme .square.sq-last-to {
  background: rgba(205, 210, 106, 0.45) !important;
  box-shadow: inset 0 0 0 2px rgba(205, 210, 106, 0.85) !important;
}

/* Selected Piece Square (Clean Emerald/Blue Accent Glow) */
body.lidraughts-theme .square.sq-selected {
  background: rgba(20, 130, 200, 0.35) !important;
  box-shadow: inset 0 0 0 2px #0284c7, 0 0 16px rgba(2, 132, 199, 0.4) !important;
}

body.lidraughts-theme .square.valid-target::after {
  content: '';
  position: absolute;
  width: 26%;
  height: 26%;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.95);
  pointer-events: none;
}

body.lidraughts-theme .square.valid-capture-target::after {
  content: '';
  position: absolute;
  width: 34%;
  height: 34%;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.98);
  pointer-events: none;
}

/* Outer Edge Coordinates: Right & Bottom Brass Numbers */
.lid-coords-right {
  position: absolute;
  right: -22px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-gold);
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.lid-coords-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  display: flex;
  justify-content: space-around;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-gold);
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.lid-board-resize-handle {
  position: absolute;
  right: 3px;
  bottom: 3px;
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  font-family: monospace;
  font-weight: bold;
}

/* ==================== 3D DRAUGHTS PIECES ==================== */
body.lidraughts-theme .piece {
  width: 90% !important;
  height: 90% !important;
  border-radius: 0 !important;
  border: none !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center bottom !important;
  background-size: contain !important;
  position: relative !important;
  cursor: grab !important;
  user-select: none !important;
  touch-action: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.45)) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}

body.lidraughts-theme .piece::before {
  display: none !important;
  content: none !important;
}

body.lidraughts-theme .piece .crown-icon,
body.lidraughts-theme .piece.king .crown-icon,
body.lidraughts-theme .piece.king::after {
  display: none !important;
  content: none !important;
}

/* White / Light Pieces (P1) */
body.lidraughts-theme .piece.white,
body.lidraughts-theme .piece.p1 {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMTAgMjEwIiB3aWR0aD0iMjEwIiBoZWlnaHQ9IjIxMCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJsZ3ciIHgxPSIwIiB5MT0iMCIgeDI9IjAiIHkyPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM3ZjdmN2YiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMC41IiBzdG9wLWNvbG9yPSIjZmZmZmZmIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik0xMCAxNDBjMCA2MCAxOTAgNjAgMTkwIDB2LTM1SDEweiIgZmlsbD0idXJsKCNsZ3cpIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLW9wYWNpdHk9IjAuNjUiLz48cGF0aCBkPSJNMTAgMTA1YzAgNjAgMTkwIDYwIDE5MCAwIDAtNjAtMTkwLTYwLTE5MCAweiIgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZS1vcGFjaXR5PSIwLjY1Ii8+PC9zdmc+') !important;
}

/* White King */
body.lidraughts-theme .piece.white.king,
body.lidraughts-theme .piece.p1.king {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMTAgMjEwIiB3aWR0aD0iMjEwIiBoZWlnaHQ9IjIxMCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJsZ3drIiB4MT0iMCIgeTE9IjAiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjN2Y3ZjdmIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjAuNSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmZmZmIiBzdG9wLW9wYWNpdHk9IjEiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNMTAgMTQwYzAgNjAgMTkwIDYwIDE5MCAwdi0zNUgxMHoiIGZpbGw9InVybCgjbGd3aykiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2Utb3BhY2l0eT0iMC42NSIvPjxwYXRoIGQ9Ik0xMCAxMDVjMCA2MCAxOTAgNjAgMTkwIDBWNzBIMTB6IiBmaWxsPSJ1cmwoI2xnd2spIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLW9wYWNpdHk9IjAuNjUiLz48cGF0aCBkPSJNMTAgNzBjMCA2MCAxOTAgNjAgMTkwIDAgMC02MC0xOTAtNjAtMTkwIDB6IiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLW9wYWNpdHk9IjAuNjUiLz48cGF0aCBkPSJNNTggNDUgNzEgODVoNThsMTMtNDAtMjUgMjUtMjItMzVMODMgNzB6IiBmaWxsPSIjYmY4YzE2Ii8+PHBhdGggZD0iTTc0IDk2IDcxLjYgODdIMTM4LjRMMTM2IDk2eiIgZmlsbD0iI2JmOGMxNiIvPmVsbGlwc2UgZmlsbD0iI2ZmZmZmZiIgY3g9IjEwNSIgY3k9IjY4IiByeD0iNSIgcnk9IjEwIi8+PC9zdmc+') !important;
}

/* Dark / Black Pieces (P2) */
body.lidraughts-theme .piece.dark,
body.lidraughts-theme .piece.p2 {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMTAgMjEwIiB3aWR0aD0iMjEwIiBoZWlnaHQ9IjIxMCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJsZ2IiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSIwLjUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzlmOWY5ZiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTTEwIDE0MGMwIDYwIDE5MCA2MCAxOTAgMHYtMzVIMTB6IiBmaWxsPSJ1cmwoI2xnYikiIHN0cm9rZT0iI2RmZGZkZiIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2Utb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTEwIDEwNWMwIDYwIDE5MCA2MCAxOTAgMCAwLTYwLTE5MC02MC0xOTAgMHoiIGZpbGw9IiMwMDAwMDAiIHN0cm9rZT0iI2RmZGZkZiIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2Utb3BhY2l0eT0iMC41Ii8+PC9zdmc+') !important;
}

/* Dark King */
body.lidraughts-theme .piece.dark.king,
body.lidraughts-theme .piece.p2.king {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMTAgMjEwIiB3aWR0aD0iMjEwIiBoZWlnaHQ9IjIxMCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJsZ2JrIiB4MT0iMCIgeTE9IjAiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjMDAwMDAwIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjAuNSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOWY5ZjlmIiBzdG9wLW9wYWNpdHk9IjEiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNMTAgMTQwYzAgNjAgMTkwIDYwIDE5MCAwdi0zNUgxMHoiIGZpbGw9InVybCgjbGdiaykiIHN0cm9rZT0iI2RmZGZkZiIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2Utb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTEwIDEwNWMwIDYwIDE5MCA2MCAxOTAgMFY3MEgxMHoiIGZpbGw9InVybCgjbGdiaykiIHN0cm9rZT0iI2RmZGZkZiIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2Utb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTEwIDcwYzAgNjAgMTkwIDYwIDE5MCAwIDAtNjAtMTkwLTYwLTE5MCAweiIgZmlsbD0iIzAwMDAwMCIgc3Ryb2tlPSIjZGZkZmRmIiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZS1vcGFjaXR5PSIwLjUiLz48cGF0aCBkPSJNNTggNDUgNzEgODVoNThsMTMtNDAtMjUgMjUtMjItMzVMODMgNzB6IiBmaWxsPSIjYmY4YzE2Ii8+PHBhdGggZD0iTTc0IDk2IDcxLjYgODdIMTM4LjRMMTM2IDk2eiIgZmlsbD0iI2JmOGMxNiIvPmVsbGlwc2UgZmlsbD0iIzAwMDAwMCIgY3g9IjEwNSIgY3k9IjY4IiByeD0iNSIgcnk9IjEwIi8+PC9zdmc+') !important;
}

body.lidraughts-theme .piece.selected {
  transform: translateY(-4px) scale(1.1) !important;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(16, 185, 129, 0.8)) !important;
  cursor: grabbing !important;
  z-index: 99 !important;
}

body.lidraughts-theme .piece.dragging {
  cursor: grabbing !important;
  transform: scale(1.16) !important;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.75)) !important;
  z-index: 999 !important;
}

/* Hide legacy emoji crown overlay as 3D SVG king has the gold crown crest embedded */
body.lidraughts-theme .piece .crown-icon,
body.lidraughts-theme .piece.king::after {
  display: none !important;
  content: none !important;
}

/* ==================== COLUMN 3: RIGHT SIDEBAR ==================== */
.lid-game-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Large Floating Digital Clocks - Sleek Dark Carbon & Warm Gold LED Face */
.lid-clock-card-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.lid-digital-clock {
  background: #0a0e14 !important;
  border: 1px solid var(--lid-border-gold) !important;
  border-radius: 8px !important;
  padding: 6px 18px !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace !important;
  font-size: 2.3rem !important;
  font-weight: 800 !important;
  color: var(--accent-gold-light) !important;
  letter-spacing: 0.8px !important;
  line-height: 1 !important;
  min-width: 140px;
  text-align: center;
  text-shadow: 0 0 10px rgba(245, 166, 35, 0.35);
}

.lid-digital-clock.active {
  border-color: #10b981 !important;
  color: #34d399 !important;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 18px rgba(16, 185, 129, 0.35) !important;
}

.lid-digital-clock.urgent {
  color: #ef4444 !important;
  background: #180505 !important;
  border-color: #ef4444 !important;
  text-shadow: 0 0 14px rgba(239, 68, 68, 0.6) !important;
  animation: lidClockPulse 1s infinite alternate;
}

.lid-digital-clock.active.urgent {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.7) !important;
  animation: lidClockPulse 0.8s infinite alternate !important;
}

@keyframes lidClockPulse {
  from { box-shadow: inset 0 2px 8px rgba(0,0,0,0.9), 0 0 0 1px #ef4444; }
  to { box-shadow: inset 0 2px 8px rgba(0,0,0,0.9), 0 0 16px rgba(239, 68, 68, 0.6); }
}

/* Increment "+" button beside Opponent Clock */
.lid-clock-add-btn {
  background: rgba(0, 135, 81, 0.2);
  color: #34d399;
  border: 1px solid rgba(0, 135, 81, 0.45);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  font-size: 1.25rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
}

.lid-clock-add-btn:hover {
  background: var(--accent-green);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 135, 81, 0.4);
}

/* Main Controls Box */
.lid-controls-card {
  background: var(--lid-card-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--lid-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  overflow: hidden;
}

/* Player Bar Inside Control Box */
.lid-ctrl-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lid-text);
  background: rgba(14, 19, 27, 0.7);
}

.lid-ctrl-player-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lid-ctrl-player-left .green-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.lid-ctrl-player-right {
  font-size: 0.84rem;
  color: var(--accent-gold-light);
  font-weight: 700;
}

/* Replay & Move Navigation Toolbar */
.lid-nav-toolbar {
  display: flex;
  border-top: 1px solid var(--lid-border-light);
  border-bottom: 1px solid var(--lid-border-light);
  background: rgba(14, 19, 27, 0.85);
}

.lid-nav-btn {
  flex: 1;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: #94a3b8;
  cursor: pointer;
  border-right: 1px solid var(--lid-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.lid-nav-btn:last-child {
  border-right: none;
}

.lid-nav-btn:hover {
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent-gold-light);
}

/* Turn Status / Information Banner */
.lid-turn-info-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  background: var(--lid-card-bg);
  min-height: 80px;
  box-sizing: border-box;
}

.lid-info-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #008751 0%, #05a867 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: bold;
  font-style: italic;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 135, 81, 0.4);
}

.lid-turn-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lid-turn-sub {
  font-size: 0.86rem;
  color: var(--lid-text-muted);
}

.lid-turn-main {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lid-text);
}

/* Action Icons Row (Resign, Draw, Settings) */
.lid-action-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 12px 18px;
  border-top: 1px solid var(--lid-border-light);
  background: rgba(14, 19, 27, 0.9);
}

.lid-action-icon-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lid-action-icon-btn:hover {
  color: var(--accent-gold-light);
  background: rgba(245, 166, 35, 0.14);
}

.lid-action-icon-btn.resign:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
}

/* ==================== BOTTOM-RIGHT ONLINE WIDGET ==================== */
.lid-friends-bottom-widget {
  position: fixed;
  bottom: 0;
  right: 24px;
  background: rgba(18, 24, 34, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--lid-border-gold);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
  z-index: 100;
  user-select: none;
  transition: all 0.18s ease;
}

.lid-friends-bottom-widget:hover {
  background: rgba(24, 32, 45, 0.98);
  color: var(--accent-gold-light);
}

/* ==================== PRESERVE ORIGINAL DOM HOOKS & CONTROLS ==================== */
body.lidraughts-theme .player-header,
body.lidraughts-theme .stats-row,
body.lidraughts-theme .quick-status-bar,
body.lidraughts-theme .ruleset-selector-bar {
  display: none !important;
}

body.lidraughts-theme .sidebar.player-card {
  display: contents !important;
}

body.lidraughts-theme .turn-indicator {
  display: none !important;
}

/* ==================== LIDRAUGHTS MOBILE PHONE HIGH-SPECIFICITY OVERRIDES ==================== */
@media (max-width: 1060px) {
  .lid-mobile-clock,
  #p1-mobile-clock,
  #p2-mobile-clock,
  body.lidraughts-theme .lid-mobile-clock,
  body.lidraughts-theme #p1-mobile-clock,
  body.lidraughts-theme #p2-mobile-clock {
    background: #262421 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: monospace, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    padding: 4px 14px !important;
    min-width: 86px !important;
    border-radius: 4px !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    line-height: 1.1 !important;
  }

  .lid-mobile-clock.active,
  #p1-mobile-clock.active,
  #p2-mobile-clock.active,
  body.lidraughts-theme .lid-mobile-clock.active,
  body.lidraughts-theme #p1-mobile-clock.active,
  body.lidraughts-theme #p2-mobile-clock.active {
    background: #262421 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .lid-mobile-clock.urgent,
  #p1-mobile-clock.urgent,
  #p2-mobile-clock.urgent,
  body.lidraughts-theme .lid-mobile-clock.urgent,
  body.lidraughts-theme #p1-mobile-clock.urgent,
  body.lidraughts-theme #p2-mobile-clock.urgent {
    background: #4a2323 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: lidClockPulse 0.8s infinite alternate !important;
  }

  /* Header Layout */
  body.lidraughts-theme .app-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    height: 48px !important;
    background: #161512 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  #btn-lid-mobile-menu {
    display: inline-flex !important;
    background: transparent !important;
    border: none !important;
    color: #888888 !important;
    font-size: 1.4rem !important;
    padding: 4px !important;
    cursor: pointer !important;
    line-height: 1 !important;
  }

  body.lidraughts-theme .nav-brand-container {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-left: 8px !important;
  }

  body.lidraughts-theme .brand-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-decoration: none !important;
  }

  body.lidraughts-theme .brand-text .game-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
  }

  body.lidraughts-theme .brand-text .game-subtitle {
    font-size: 0.68rem !important;
    color: #888888 !important;
    line-height: 1.1 !important;
  }

  /* Flush 100vw Board Sizing & Zero Gap Stack (Matching Lidraughts) */
  .lid-game-board-center {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .lid-board-outer {
    margin: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100vw !important;
    max-width: 100vw !important;
    max-height: 100vw !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  body.lidraughts-theme .board-wood-frame {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100vw !important;
    max-width: 100vw !important;
    max-height: 100vw !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: none !important;
  }

  body.lidraughts-theme .board-inner {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100vw !important;
    max-width: 100vw !important;
    max-height: 100vw !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    grid-template-columns: repeat(10, 10vw) !important;
    grid-template-rows: repeat(10, 10vw) !important;
  }

  .lid-mobile-player-bar {
    margin: 0 !important;
    height: 48px !important;
  }

  .lid-mobile-bottom-toolbar {
    margin: 0 !important;
    height: 48px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  /* Hide redundant desktop nav toolbar on mobile since mobile has its own 4-icon toolbar */
  .lid-controls-card .lid-nav-toolbar {
    display: none !important;
  }
}
