/* ============================================================
   chess.css — Royal Chess game styles
   Prefix: .ch-  |  Font: RoyalSerif from asset pack
   ============================================================ */

@font-face {
  font-family: 'RoyalSerif';
  src: url('../assets/Chess/Font/royal-serif.ttf') format('truetype');
  font-display: swap;
}

/* ─── WRAPPER ─── */
.ch-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url('../assets/Chess/Interface/PNG/BG_PNG/BG.png') center/cover no-repeat;
  background-color: #1a1408;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'RoyalSerif', 'Cinzel', serif;
  color: #e8d5a3;
  overflow: hidden;
}

/* ─── SETUP SCREEN ─── */
.ch-setup {
  background: linear-gradient(180deg, rgba(26,20,8,0.95) 0%, rgba(13,10,4,0.98) 100%);
  border: 2px solid rgba(212,165,69,0.4);
  border-radius: 16px;
  padding: 40px 48px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(212,165,69,0.15);
  animation: ch-slide-in 0.4s ease-out;
}

.ch-setup-title {
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 2.2rem;
  color: #d4a545;
  letter-spacing: 4px;
  margin-bottom: 32px;
  text-shadow: 0 0 20px rgba(212,165,69,0.3);
}

.ch-setup-section {
  margin-bottom: 24px;
}

.ch-setup-label {
  font-size: 0.85rem;
  color: #b8a67a;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.ch-setup-options {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.ch-opt-btn {
  padding: 10px 18px;
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #b8a67a;
  background: rgba(26,20,8,0.85);
  border: 1px solid rgba(212,165,69,0.25);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.ch-opt-btn:hover {
  border-color: rgba(212,165,69,0.5);
  color: #d4a545;
  background: rgba(212,165,69,0.1);
}
.ch-opt-btn.selected {
  background: linear-gradient(135deg, #b8860b, #d4a545);
  color: #1a1408;
  border-color: #d4a545;
  box-shadow: 0 0 12px rgba(212,165,69,0.3);
}
.ch-opt-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.ch-setup-play {
  margin-top: 28px;
  padding: 14px 48px;
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1a1408;
  background: linear-gradient(135deg, #b8860b, #d4a545);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(212,165,69,0.3);
}
.ch-setup-play:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(212,165,69,0.45);
}

.ch-setup-back {
  margin-top: 16px;
  padding: 10px 28px;
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #b8a67a;
  background: rgba(26,20,8,0.85);
  border: 1px solid rgba(212,165,69,0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.ch-setup-back:hover {
  border-color: rgba(212,165,69,0.5);
  color: #d4a545;
}

/* ─── GAME LAYOUT (single column) ─── */
.ch-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  animation: ch-slide-in 0.4s ease-out;
}

/* ─── PLAYER BAR (above & below board) ─── */
.ch-player-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(780px, 90vw, 85vh);
  padding: 8px 14px;
  background: rgba(13,10,4,0.85);
  border: 1px solid rgba(212,165,69,0.15);
  border-radius: 6px;
  font-size: 1rem;
}
.ch-player-name {
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 1rem;
  color: #d4a545;
  letter-spacing: 1px;
  font-weight: 600;
  min-width: 28px;
}

/* ─── TIMER (inline in player bar) ─── */
.ch-timer {
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 1rem;
  color: #e8d5a3;
  background: rgba(26,20,8,0.9);
  border: 1px solid rgba(212,165,69,0.2);
  border-radius: 6px;
  padding: 3px 12px;
  min-width: 60px;
  text-align: center;
  letter-spacing: 2px;
  transition: all 0.3s;
}
.ch-timer.active {
  border-color: rgba(212,165,69,0.5);
  animation: ch-timer-glow 2s ease-in-out infinite;
}
.ch-timer.low {
  color: #ff6b6b;
  border-color: rgba(255,80,80,0.4);
  animation: ch-pulse 1s ease-in-out infinite;
}
.ch-timer.critical {
  color: #ff4444;
  border-color: rgba(255,0,0,0.5);
  animation: ch-pulse 0.4s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255,0,0,0.4);
}

/* ─── BOARD ─── */
.ch-board {
  --board-size: min(780px, 90vw, 85vh);
  /* ── AJUSTEAZA ACESTE 4 VALORI PENTRU ALINIERE ── */
  --grid-top: 7.8%;
  --grid-left: 7.8%;
  --grid-bottom: 7.8%;
  --grid-right: 7.8%;
  width: var(--board-size);
  height: var(--board-size);
  background: url('../assets/Chess/GameElements/desk2.png') center/cover no-repeat;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  position: relative;
  box-sizing: border-box;
  overflow: visible;
}

.ch-grid {
  position: absolute;
  top: var(--grid-top);
  left: var(--grid-left);
  right: var(--grid-right);
  bottom: var(--grid-bottom);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  overflow: visible;
}

/* ─── ACTIONS BAR (moves + resign) ─── */
.ch-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(780px, 90vw, 85vh);
  padding: 6px 12px;
  background: rgba(13,10,4,0.85);
  border: 1px solid rgba(212,165,69,0.15);
  border-radius: 6px;
}

/* ─── COMPACT MOVE LIST (horizontal scroll) ─── */
.ch-moves-compact {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  font-size: 0.9rem;
  color: #b8a67a;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,165,69,0.3) transparent;
  white-space: nowrap;
  padding: 2px 0;
}
.ch-moves-compact::-webkit-scrollbar { height: 4px; }
.ch-moves-compact::-webkit-scrollbar-thumb { background: rgba(212,165,69,0.3); border-radius: 2px; }
.ch-move-pair {
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  color: #e8d5a3;
}
.ch-move-num {
  color: #d4a545;
  margin-right: 2px;
}
.ch-moves-empty {
  color: #6b5d45;
  font-style: italic;
}

/* ─── SQUARES ─── */
.ch-square {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s;
  overflow: visible;
  min-height: 0;
  min-width: 0;
}

.ch-light {
  background-color: transparent;
}
.ch-dark {
  background-color: transparent;
}

.ch-square:hover {
  background-color: rgba(212,165,69,0.2) !important;
}

.ch-square.selected {
  background-color: rgba(255,215,0,0.35) !important;
  box-shadow: inset 0 0 12px rgba(255,215,0,0.4);
}

.ch-square.last-move {
  background-color: rgba(255,255,100,0.2) !important;
}

.ch-square.legal-move::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.25);
  z-index: 2;
  pointer-events: none;
}

.ch-square.legal-capture::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,80,80,0.3);
  z-index: 2;
  pointer-events: none;
}

.ch-square.in-check {
  animation: ch-flash-red 0.8s ease-in-out infinite;
  box-shadow: inset 0 0 16px rgba(255,0,0,0.6);
}

/* ─── PIECES ─── */
.ch-piece {
  width: 80%;
  height: 80%;
  object-fit: contain;
  cursor: grab;
  transition: transform 0.05s;
  z-index: 1;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* ─── CHESS-SPECIFIC overrides (tall pieces, anchored to cell bottom) ─── */
#ch-board .ch-square {
  align-items: flex-end;
}
#ch-board .ch-piece {
  width: 85%;
  height: auto;
}
.ch-board.flipped .ch-piece {
  transform: rotate(180deg);
}
.ch-piece:active {
  cursor: grabbing;
}
.ch-piece.animating {
  transition: none;
  position: absolute;
  z-index: 10;
  pointer-events: none;
}

/* ─── TURN INDICATOR ─── */
.ch-turn-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  color: #b8a67a;
  padding: 8px 16px;
  background: rgba(13,10,4,0.8);
  border-radius: 6px;
  border: 1px solid rgba(212,165,69,0.15);
  min-height: 40px;
}
.ch-turn-bar.your-turn {
  color: #d4a545;
  border-color: rgba(212,165,69,0.3);
}

.ch-thinking-dots::after {
  content: '';
  animation: ch-dots 1.4s steps(4,end) infinite;
}
@keyframes ch-dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* ─── MOVE HISTORY ─── */
.ch-moves-list {
  max-height: 320px;
  overflow-y: auto;
  font-size: 0.78rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,165,69,0.3) transparent;
}
.ch-moves-list::-webkit-scrollbar { width: 5px; }
.ch-moves-list::-webkit-scrollbar-thumb { background: rgba(212,165,69,0.3); border-radius: 3px; }

.ch-move-row {
  display: flex;
  gap: 6px;
  padding: 3px 4px;
  border-radius: 3px;
}
.ch-move-row:nth-child(odd) {
  background: rgba(212,165,69,0.05);
}
.ch-move-number {
  color: #d4a545;
  min-width: 24px;
  text-align: right;
}
.ch-move-white, .ch-move-black {
  min-width: 50px;
  color: #e8d5a3;
  font-family: 'Courier New', monospace;
}
.ch-move-row .ch-move-white:hover,
.ch-move-row .ch-move-black:hover {
  color: #ffd700;
}

/* ─── CAPTURED PIECES (inline in player bar) ─── */
.ch-captures {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  flex: 1;
  min-height: 24px;
}
.ch-capture-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.ch-material-diff {
  font-size: 0.8rem;
  color: #b8a67a;
  margin-top: 4px;
}
.ch-material-diff.positive { color: #4CAF50; }
.ch-material-diff.negative { color: #ff6b6b; }

/* ─── BET DISPLAY ─── */
.ch-bet-display {
  font-size: 0.85rem;
  color: #d4a545;
  text-align: center;
  padding: 6px 0;
}

/* ─── RESIGN BUTTON (compact, in actions bar) ─── */
.ch-resign-btn {
  padding: 8px 18px;
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #ff6b6b;
  background: rgba(255,50,50,0.1);
  border: 1px solid rgba(255,50,50,0.25);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.ch-resign-btn:hover {
  background: rgba(255,50,50,0.2);
  border-color: rgba(255,50,50,0.4);
}

/* ─── WARNING OVERLAYS ─── */
.ch-warning-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* CHECK WARNING */
.ch-check-banner {
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 4rem;
  font-weight: 700;
  color: #ff4444;
  text-shadow:
    0 0 20px rgba(255,0,0,0.6),
    0 0 40px rgba(255,0,0,0.4),
    0 0 60px rgba(255,0,0,0.2),
    2px 2px 4px rgba(0,0,0,0.8);
  letter-spacing: 6px;
  animation: ch-shake 0.5s ease-in-out, ch-check-fade 1.5s ease-in-out forwards;
  padding: 20px 40px;
  background: rgba(0,0,0,0.6);
  border: 2px solid rgba(255,0,0,0.4);
  border-radius: 12px;
}

@keyframes ch-check-fade {
  0%   { opacity: 1; transform: scale(1); }
  70%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}

/* CHECKMATE / GAME OVER OVERLAY */
.ch-gameover-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  animation: ch-fade-in 0.5s ease-out;
  pointer-events: auto;
}

.ch-gameover-image {
  width: min(400px, 80vw);
  height: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 30px rgba(212,165,69,0.4));
  animation: ch-slide-in 0.6s ease-out;
}

.ch-gameover-title {
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 8px;
  animation: ch-glow 2s ease-in-out infinite;
}
.ch-gameover-title.win {
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255,215,0,0.5), 0 0 40px rgba(255,215,0,0.3);
}
.ch-gameover-title.lose {
  color: #ff4444;
  text-shadow: 0 0 20px rgba(255,0,0,0.5), 0 0 40px rgba(255,0,0,0.3);
}
.ch-gameover-title.draw {
  color: #b8a67a;
  text-shadow: 0 0 20px rgba(184,166,122,0.5);
}

.ch-gameover-subtitle {
  font-size: 1.2rem;
  color: #b8a67a;
  margin-bottom: 8px;
}

.ch-gameover-gold {
  font-size: 1.1rem;
  margin-bottom: 24px;
}
.ch-gameover-gold.positive { color: #4CAF50; }
.ch-gameover-gold.negative { color: #ff6b6b; }
.ch-gameover-gold.neutral  { color: #b8a67a; }

.ch-gameover-buttons {
  display: flex;
  gap: 12px;
}

.ch-gameover-btn {
  padding: 12px 32px;
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.ch-gameover-btn.primary {
  color: #1a1408;
  background: linear-gradient(135deg, #b8860b, #d4a545);
  border: none;
  box-shadow: 0 4px 16px rgba(212,165,69,0.3);
}
.ch-gameover-btn.primary:hover {
  transform: scale(1.05);
}
.ch-gameover-btn.secondary {
  color: #b8a67a;
  background: rgba(26,20,8,0.85);
  border: 1px solid rgba(212,165,69,0.3);
}
.ch-gameover-btn.secondary:hover {
  border-color: rgba(212,165,69,0.5);
  color: #d4a545;
}

/* PROMOTION DIALOG */
.ch-promotion-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  animation: ch-fade-in 0.2s ease-out;
}

.ch-promotion-dialog {
  background: linear-gradient(180deg, rgba(26,20,8,0.97) 0%, rgba(13,10,4,0.99) 100%);
  border: 2px solid rgba(212,165,69,0.5);
  border-radius: 12px;
  padding: 24px 32px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  animation: ch-slide-in 0.3s ease-out;
}

.ch-promotion-title {
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 1.1rem;
  color: #d4a545;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.ch-promotion-pieces {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.ch-promotion-piece {
  width: 70px;
  height: 70px;
  background: rgba(212,165,69,0.1);
  border: 2px solid rgba(212,165,69,0.25);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 8px;
}
.ch-promotion-piece:hover {
  border-color: #d4a545;
  background: rgba(212,165,69,0.2);
  transform: scale(1.1);
}
.ch-promotion-piece img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─── ANIMATIONS ─── */
@keyframes ch-shake {
  0%, 100% { transform: translateX(0); }
  10%      { transform: translateX(-10px) rotate(-1deg); }
  20%      { transform: translateX(10px) rotate(1deg); }
  30%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  50%      { transform: translateX(-5px); }
  60%      { transform: translateX(5px); }
  70%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
  90%      { transform: translateX(-1px); }
}

@keyframes ch-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

@keyframes ch-glow {
  0%, 100% { text-shadow: 0 0 20px currentColor; }
  50%      { text-shadow: 0 0 40px currentColor, 0 0 60px currentColor; }
}

@keyframes ch-flash-red {
  0%, 100% { background-color: rgba(255,0,0,0.05); }
  50%      { background-color: rgba(255,0,0,0.35); }
}

@keyframes ch-slide-in {
  from { transform: translateY(-30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes ch-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ch-timer-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(212,165,69,0.1); }
  50%      { box-shadow: 0 0 16px rgba(212,165,69,0.3); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .ch-board {
    --board-size: min(780px, 92vw, 82vh);
  }
  .ch-player-bar, .ch-actions-bar {
    width: min(780px, 92vw, 82vh);
  }
  .ch-check-banner {
    font-size: 2.5rem;
    padding: 14px 24px;
  }
  .ch-gameover-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .ch-board {
    --board-size: 96vw;
  }
  .ch-player-bar, .ch-actions-bar {
    width: 96vw;
  }
  .ch-setup {
    padding: 24px 20px;
  }
  .ch-setup-title {
    font-size: 1.6rem;
  }
  .ch-timer {
    font-size: 0.85rem;
    padding: 3px 10px;
  }
  .ch-gameover-title {
    font-size: 1.5rem;
  }
  .ch-promotion-piece {
    width: 56px;
    height: 56px;
  }
  .ch-capture-img {
    width: 18px;
    height: 18px;
  }
}

/* ═════════════════════════════════════════════════════════
   CHECKERS-SPECIFIC STYLES (prefix: .ck-)
   Reuses .ch- board, squares, overlays from chess.css
   ═════════════════════════════════════════════════════════ */

/* Checkers pieces: slightly bigger round pieces */
#ck-board .ch-piece {
  width: 90%;
  height: 90%;
}

/* ─── King piece indicator ─── */
.ck-piece-wrap {
  position: relative;
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.ck-piece-wrap .ch-piece {
  width: 100%;
  height: 100%;
}
.ck-king {
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8))
          drop-shadow(0 0 12px rgba(212, 165, 69, 0.5));
}
.ck-crown {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.9rem;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.9));
  line-height: 1;
}

/* ─── Piece count display (in player bar) ─── */
.ck-piece-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 1.1rem;
  color: #e8d5a3;
  font-weight: 600;
}
.ck-count-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.ck-captured-info {
  font-size: 0.9rem;
  color: #b8a67a;
  margin-left: auto;
}

/* ─── Must capture indicator ─── */
.ck-must-capture {
  font-size: 0.85rem;
  color: #ff9800;
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-radius: 4px;
  padding: 4px 12px;
  letter-spacing: 1px;
  font-weight: 600;
  animation: ch-pulse 1.2s ease-in-out infinite;
}

/* ─── Back button (compact, in actions bar) ─── */
.ck-back-btn {
  padding: 8px 16px;
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 1rem;
  color: #b8a67a;
  background: rgba(26,20,8,0.85);
  border: 1px solid rgba(212,165,69,0.25);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ck-back-btn:hover {
  border-color: rgba(212,165,69,0.5);
  color: #d4a545;
}

/* ─── Board Games Selection Hub ─── */
.bg-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: ch-slide-in 0.4s ease-out;
}
.bg-hub-title {
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 2rem;
  color: #d4a545;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(212,165,69,0.3);
}
.bg-hub-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.bg-hub-card {
  background: linear-gradient(180deg, rgba(26,20,8,0.92) 0%, rgba(13,10,4,0.96) 100%);
  border: 2px solid rgba(212,165,69,0.3);
  border-radius: 16px;
  padding: 32px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  min-width: 200px;
  max-width: 260px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.bg-hub-card:hover {
  border-color: rgba(212,165,69,0.6);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(212,165,69,0.15), 0 4px 30px rgba(0,0,0,0.5);
}
.bg-hub-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.bg-hub-name {
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 1.3rem;
  color: #d4a545;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.bg-hub-desc {
  font-size: 0.8rem;
  color: #8a7a5a;
  line-height: 1.4;
  margin-bottom: 16px;
}
.bg-hub-play {
  padding: 8px 28px;
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1a1408;
  background: linear-gradient(135deg, #b8860b, #d4a545);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 12px rgba(212,165,69,0.25);
}
.bg-hub-play:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 18px rgba(212,165,69,0.4);
}
.bg-hub-back {
  margin-top: 8px;
  padding: 10px 28px;
  font-family: 'RoyalSerif', 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #b8a67a;
  background: rgba(26,20,8,0.85);
  border: 1px solid rgba(212,165,69,0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.bg-hub-back:hover {
  border-color: rgba(212,165,69,0.5);
  color: #d4a545;
}

@media (max-width: 480px) {
  .bg-hub-cards {
    flex-direction: column;
    align-items: center;
  }
  .bg-hub-card {
    width: 85vw;
    max-width: none;
    padding: 24px 20px;
  }
  .bg-hub-title {
    font-size: 1.5rem;
  }
}
