/* ==========================================================================
   Certified Pakistan - Interactive Games Portal & Engine Styles
   Loaded conditionally only on /playgames/ to maximize main site performance.
   ========================================================================== */
/* ==========================================================================
   Interactive Games Portal & Chess Engine (/playgames/)
   ========================================================================== */

html.cp-dark-theme {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

body.cp-playgames-page-body #primary,
#primary.cp-games-portal-page {
  float: none !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
body.cp-playgames-page-body .ast-container,
body.cp-playgames-page-body .site-content {
  margin: 0 !important;
  width: 100% !important;
  overflow-x: hidden !important;
}
body.cp-playgames-page-body {
  background-color: #070e1c !important;
  color: #f1f5f9 !important;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Header brand text ("GAMES") */
.cp-tech-header__brand,
.cp-tech-header__brand span,
body.cp-dark-theme .cp-tech-header__brand span,
.cp-playgames-page-body .cp-tech-header__brand span {
  color: #ffffff !important;
  border-left-color: rgba(255, 255, 255, 0.35) !important;
}

.cp-theater-wrapper {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

.cp-theater-stage {
  position: relative;
  width: 100%;
}

.cp-theater-view {
  display: none !important;
}

.cp-theater-view.is-active {
  display: block !important;
}
/* 1. Hero Section */
.cp-games-hero {
  margin: 0 auto;
  text-align: center;
  padding: 35px 0 0;
}
.cp-games-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cp-games-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f6b624;
  margin: 0 auto 12px;
  text-align: center;
}
.cp-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
  animation: cpDotPulse 1.8s infinite;
}
@keyframes cpDotPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.cp-games-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 auto 12px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  text-align: center;
  width: 100%;
}
.cp-games-hero p {
  font-size: 1.05rem;
  color: #94a3b8;
  margin: 0 auto 24px;
  line-height: 1.65;
  text-align: center;
  max-width: 720px;
}

/* Controls Bar */
.cp-game-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #0d1b32;
  border: 1px solid #1e3357;
  border-radius: 50px;
  padding: 8px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.cp-mode-toggle {
  display: flex;
  background: #e2e8f0;
  border-radius: 40px;
  padding: 4px;
  gap: 4px;
}
.cp-mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #475569;
  border: none;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cp-mode-btn:hover {
  color: #0f172a;
}
.cp-mode-btn.is-active {
  background: #133458;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(19, 52, 88, 0.25);
}
.cp-difficulty-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cp-diff-label {
  font-size: 0.84rem;
  color: #334155;
  font-weight: 600;
}
.cp-diff-buttons {
  display: flex;
  gap: 6px;
}
.cp-diff-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cp-diff-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.cp-diff-btn.is-active {
  background: #133458;
  border-color: #133458;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(19, 52, 88, 0.2);
}

/* 2. Grandmaster Chess Arena (Obsidian Dark Theme) */
#theater-game-chess {
  width: 100%;
  box-sizing: border-box;
}
.cp-chess-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.cp-chess-subbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cp-chess-diff-group {
  display: inline-flex;
  background: #060d19;
  border: 1px solid #1e3357;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.cp-cdiff-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cp-cdiff-btn:hover {
  color: #f1f5f9;
}
.cp-cdiff-btn.is-active {
  background: #1e3357;
  color: #f6b624;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.cp-chess-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-game-btn--danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(185, 28, 28, 0.25) 100%);
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
}
.cp-game-btn--danger:hover {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45) !important;
}
.cp-chess-arena-grid {
  display: grid;
  grid-template-columns: minmax(320px, 540px) 1fr;
  gap: 26px;
  align-items: start;
  max-width: 1020px;
  margin: 0 auto;
}

/* Chessboard Stage */
.cp-chessboard-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.cp-chessboard-stage.is-flipped #hud-black { order: 3; }
.cp-chessboard-stage.is-flipped .cp-board-wrapper { order: 2; }
.cp-chessboard-stage.is-flipped #hud-white { order: 1; }

/* Player HUD */
.cp-player-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0d1b32 0%, #081120 100%);
  border: 1.5px solid #1e3357;
  border-radius: 14px;
  padding: 10px 16px;
  color: #f1f5f9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}
.cp-player-hud.is-active-turn {
  border-color: #f6b624;
  box-shadow: 0 0 16px rgba(246, 182, 36, 0.35);
}
.cp-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-player-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #102038;
  border: 1.5px solid #1e3357;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}
.cp-player-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cp-player-details strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.cp-captured-tray {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 18px;
  font-size: 1rem;
  color: #94a3b8;
}
.cp-captured-tray .cp-cap-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #f6b624;
  background: rgba(246, 182, 36, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.cp-player-clock {
  font-family: monospace, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  background: #060d19;
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #1e3357;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
}
.cp-player-hud.is-active-turn .cp-player-clock,
.cp-player-clock.is-active {
  color: #f6b624;
  border-color: #f6b624;
  box-shadow: 0 0 10px rgba(246, 182, 36, 0.3);
}

/* 8x8 Board Container */
.cp-board-wrapper {
  position: relative;
  background: #07101f;
  border-radius: 16px;
  padding: 24px;
  border: 2px solid #1e3357;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}
.cp-board-coords {
  position: absolute;
  pointer-events: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  font-family: monospace;
}
.cp-coords-ranks {
  left: 6px;
  top: 24px;
  bottom: 24px;
  width: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-align: center;
}
.cp-coords-files {
  left: 24px;
  right: 24px;
  bottom: 4px;
  height: 16px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.cp-chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #060d19;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  user-select: none;
  touch-action: manipulation;
}

/* Squares */
.cp-square {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cp-square.is-light {
  background: #eedbb6;
}
.cp-square.is-dark {
  background: #b58863;
}
.cp-square:hover {
  filter: brightness(1.08);
}
.cp-square.is-selected {
  background: #f6b624 !important;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6);
}
.cp-square.is-last-move {
  box-shadow: inset 0 0 0 3px rgba(246, 182, 36, 0.85);
}
.cp-square.is-checked-king {
  background: #dc2626 !important;
  animation: cpKingCheck 0.9s infinite alternate;
}
@keyframes cpKingCheck {
  from { box-shadow: inset 0 0 8px #dc2626; }
  to { box-shadow: inset 0 0 24px #7f1d1d; }
}

/* Pieces */
.cp-piece-holder {
  width: 84%;
  height: 84%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.15s ease;
}
.cp-piece {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
}
.cp-square:active .cp-piece-holder {
  transform: scale(0.92);
}

/* Legal Move Markers */
.cp-legal-target {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 2;
}
.cp-legal-target.is-empty {
  width: 24%;
  height: 24%;
  background: rgba(13, 36, 60, 0.45);
}
.cp-square.is-dark .cp-legal-target.is-empty {
  background: rgba(246, 182, 36, 0.75);
}
.cp-legal-target.is-capture {
  width: 86%;
  height: 86%;
  border: 4px solid rgba(220, 38, 38, 0.85);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.45);
}

/* Pawn Promotion Overlay Modal */
.cp-chess-promo-modal {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 18, 0.88);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 20;
}
.cp-chess-promo-modal.is-open {
  display: flex;
}
.cp-chess-promo-box {
  background: linear-gradient(135deg, #0d1b32 0%, #081120 100%);
  border: 2px solid #f6b624;
  border-radius: 16px;
  padding: 22px 26px;
  text-align: center;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75);
  max-width: 320px;
  width: 90%;
}
.cp-chess-promo-box h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f6b624;
  margin: 0 0 6px;
}
.cp-chess-promo-box p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 16px;
}
.cp-promo-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cp-promo-btn {
  background: #102038;
  border: 1.5px solid #1e3357;
  border-radius: 12px;
  padding: 8px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cp-promo-btn:hover {
  border-color: #f6b624;
  background: #1a3258;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(246, 182, 36, 0.3);
}

/* Sidebar HUD */
.cp-chess-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Status Banner */
.cp-game-status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0d1b32 0%, #081120 100%);
  border: 1.5px solid #1e3357;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.cp-game-status-banner .cp-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f6b624;
  box-shadow: 0 0 8px #f6b624;
  flex-shrink: 0;
}
.cp-game-status-banner.is-ended .cp-status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

/* Action Buttons */
.cp-action-buttons-row {
  display: flex;
  gap: 10px;
}
.cp-game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0d1b32 0%, #081120 100%);
  border: 1.5px solid #1e3357;
  color: #cbd5e1;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.cp-game-btn:hover {
  background: #14284b;
  border-color: #f6b624;
  color: #ffffff;
  transform: translateY(-1px);
}
.cp-game-btn--primary {
  background: linear-gradient(135deg, #f6b624 0%, #d97706 100%);
  color: #070e1c;
  border-color: #f6b624;
  font-weight: 800;
}
.cp-game-btn--primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  color: #000000;
  border-color: #fbbf24;
  box-shadow: 0 4px 16px rgba(246, 182, 36, 0.4);
}
.cp-game-btn--icon {
  padding: 10px 14px;
}
.cp-game-btn .is-hidden {
  display: none !important;
}

/* Move History Card */
.cp-notation-card {
  background: linear-gradient(135deg, #0d1b32 0%, #081120 100%);
  border: 1.5px solid #1e3357;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.cp-notation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid #1e3357;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f6b624;
}
.cp-notation-head small {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  background: #060d19;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #1e3357;
}
.cp-notation-list {
  max-height: 180px;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: monospace, monospace;
  font-size: 0.85rem;
}
.cp-notation-empty {
  color: #64748b;
  font-size: 0.82rem;
  font-style: italic;
  padding: 8px 0;
  text-align: center;
}
.cp-notation-row {
  display: grid;
  grid-template-columns: 36px 1fr 1fr;
  padding: 4px 8px;
  border-radius: 6px;
  color: #cbd5e1;
  font-weight: 600;
}
.cp-notation-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}
.cp-not-num {
  color: #64748b;
}
.cp-not-white {
  color: #ffffff;
}
.cp-not-black {
  color: #f6b624;
}

/* Chess Strategy Guide Card */
.cp-chess-guide-card {
  background: linear-gradient(135deg, #0d1b32 0%, #081120 100%);
  border: 1.5px solid #1e3357;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.cp-guide-head {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid #1e3357;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f6b624;
}
.cp-guide-tips {
  list-style: none;
  padding: 12px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}
.cp-guide-tips li {
  position: relative;
  padding-left: 14px;
}
.cp-guide-tips li::before {
  content: 'â€¢';
  position: absolute;
  left: 0;
  color: #f6b624;
  font-weight: bold;
}
.cp-guide-tips strong {
  color: #e2e8f0;
}

@media (max-width: 920px) {
  #theater-game-chess .cp-chess-arena-grid,
  .cp-chess-arena-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
  }
  #theater-game-chess .cp-chess-subbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #theater-game-chess .cp-chess-subbar-left,
  #theater-game-chess .cp-chess-actions-group {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  #theater-game-chess .cp-mode-toggle .cp-mode-btn,
  #theater-game-chess .cp-chess-actions-group .cp-game-btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 10px;
    font-size: 0.8rem;
    text-align: center;
    justify-content: center;
  }
  #theater-game-chess .cp-board-wrapper {
    padding: 22px 14px 20px 22px !important;
    border-radius: 12px;
  }
  #theater-game-chess .cp-coords-ranks {
    top: 22px !important;
    bottom: 20px !important;
    left: 4px !important;
    font-size: 0.68rem !important;
  }
  #theater-game-chess .cp-coords-files {
    left: 22px !important;
    right: 14px !important;
    bottom: 3px !important;
    font-size: 0.68rem !important;
  }
}

@media (max-width: 480px) {
  #theater-game-chess .cp-player-hud {
    padding: 8px 12px !important;
  }
  #theater-game-chess .cp-player-details strong {
    font-size: 0.84rem !important;
  }
  #theater-game-chess .cp-player-clock {
    font-size: 0.95rem !important;
    padding: 4px 10px !important;
  }
  #theater-game-chess .cp-captured-tray {
    font-size: 0.85rem !important;
  }
}

/* 5. SEO & Rules Section */
.cp-chess-seo-section {
  background: #070e1c;
  padding: 60px 0;
  border-top: 1px solid #1e3357;
}
.cp-chess-seo-content {
  max-width: 960px;
  margin: 0 auto;
}
.cp-chess-seo-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
}
.cp-chess-seo-content p {
  color: #94a3b8;
  line-height: 1.7;
  margin: 0 0 28px;
}
.cp-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.cp-rule-card {
  background: #0d1b32;
  border: 1px solid #1e3357;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.cp-rule-card h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0 0 14px;
}
.cp-rule-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-rule-card li {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.cp-rule-card strong {
  color: #f6b624;
}

/* FAQs */
.cp-chess-faqs {
  margin-top: 40px;
}
.cp-chess-faqs h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0 0 18px;
}
.cp-chess-faqs details {
  background: #0d1b32;
  border: 1px solid #1e3357;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.cp-chess-faqs summary {
  padding: 16px 20px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}
.cp-chess-faqs summary:hover {
  color: #f6b624;
}
.cp-chess-faqs details p {
  padding: 0 20px 16px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Game View Show / Hide */
.cp-game-view {
  display: none;
}
.cp-game-view.is-active {
  display: block;
  animation: cpGameFadeIn 0.3s ease-out;
}
@keyframes cpGameFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cp-game-subbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* Single Game Wrapper Container (2048, Sudoku, Snake, TTT) */
.cp-arcade-single-game-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   2048 Puzzle Styles
   ========================================================================== */
.cp-2048-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.cp-2048-title-area h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.cp-2048-title-area p {
  color: #475569;
  font-size: 0.88rem;
  margin: 0;
  max-width: 320px;
}
.cp-2048-scores {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cp-2048-score-box {
  background: #bbada0;
  border-radius: 10px;
  padding: 8px 14px;
  text-align: center;
  min-width: 68px;
}
.cp-2048-score-box span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #f4ede8;
  letter-spacing: 0.05em;
}
.cp-2048-score-box strong {
  display: block;
  font-size: 1.15rem;
  color: #ffffff;
  font-family: monospace;
}

.cp-2048-board-container {
  position: relative;
  background: #bbada0;
  border-radius: 14px;
  padding: 14px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  touch-action: none;
}
.cp-2048-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  aspect-ratio: 1 / 1;
}
.cp-tile-2048 {
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  user-select: none;
  transition: transform 0.1s ease, background 0.1s ease;
}
.cp-tile-0 { background: #cdc1b4; }
.cp-tile-2 { background: #eee4da; color: #1e293b; }
.cp-tile-4 { background: #ede0c8; color: #1e293b; }
.cp-tile-8 { background: #f2b179; color: #ffffff; }
.cp-tile-16 { background: #f59563; color: #ffffff; }
.cp-tile-32 { background: #f67c5f; color: #ffffff; }
.cp-tile-64 { background: #f65e3b; color: #ffffff; }
.cp-tile-128 { background: #edcf72; color: #ffffff; font-size: 1.3rem; }
.cp-tile-256 { background: #edcc61; color: #ffffff; font-size: 1.3rem; }
.cp-tile-512 { background: #edc850; color: #ffffff; font-size: 1.3rem; }
.cp-tile-1024 { background: #edc53f; color: #ffffff; font-size: 1.1rem; }
.cp-tile-2048 { background: #f6b624; color: #091729; font-size: 1.1rem; box-shadow: 0 0 20px #f6b624; }

.cp-2048-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.cp-2048-overlay.is-open {
  display: flex;
}
.cp-2048-overlay h3 {
  font-size: 1.8rem;
  color: #0f172a;
  margin: 0;
}

/* ==========================================================================
   Sudoku Puzzle Styles
   ========================================================================== */
.cp-sudoku-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.cp-sudoku-info h2 {
  font-size: 1.6rem;
  color: #0f172a;
  margin: 0 0 4px;
}
.cp-sudoku-info p {
  color: #475569;
  font-size: 0.85rem;
  margin: 0;
}
.cp-sudoku-stats {
  display: flex;
  gap: 12px;
}
.cp-sudoku-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: #475569;
}
.cp-sudoku-stat strong {
  color: #0f172a;
}

.cp-sudoku-controls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cp-sudoku-play-area {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.cp-sudoku-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border: 3px solid #133458;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}
.cp-sudoku-cell {
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}
.cp-sudoku-cell:nth-child(3n) {
  border-right: 2px solid #133458;
}
.cp-sudoku-cell:nth-child(n+19):nth-child(-n+27),
.cp-sudoku-cell:nth-child(n+46):nth-child(-n+54) {
  border-bottom: 2px solid #133458;
}
.cp-sudoku-cell.is-fixed {
  color: #1e293b;
  background: #f8fafc;
}
.cp-sudoku-cell.is-selected {
  background: #dbeafe !important;
  color: #1d4ed8;
}

.cp-sudoku-keypad {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 420px;
}
.cp-keypad-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  padding: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cp-keypad-btn:hover {
  background: #133458;
  color: #ffffff;
}
.cp-keypad-btn--clear {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
  font-size: 0.85rem;
}
.cp-keypad-btn--hint {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
  font-size: 0.85rem;
}

/* ==========================================================================
   4. CYBER NEON SNAKE (2026 PRO ARCADE EDITION)
   ========================================================================== */
.cp-snake-stage-wrap {
  width: min(840px, calc(100vw - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent !important;
}

/* Topbar & Controls Ribbon */
.cp-snake-topbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.cp-snake-header-info {
  text-align: center;
}
.cp-snake-header-info h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 6px 0;
}
.cp-snake-header-info p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

.cp-snake-config-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0b1528;
  border: 1.5px solid #1e3357;
  border-radius: 14px;
  padding: 10px 16px;
}
.cp-snake-mode-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cp-scfg-btn {
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cp-scfg-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}
.cp-scfg-btn.is-active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.cp-snake-skin-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.cp-snake-skin-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  margin-right: 2px;
}
.cp-sskin-btn {
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cp-sskin-btn:hover {
  color: #cbd5e1;
  border-color: #334155;
}
.cp-sskin-btn.is-active {
  background: #1e293b;
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* Live Telemetry Scoreboard HUD */
.cp-snake-live-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}
@media (max-width: 640px) {
  .cp-snake-live-hud {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cp-sstat-card {
  background: #0b1528;
  border: 1.5px solid #1e3357;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.cp-sstat-card--score { border-color: rgba(34, 197, 94, 0.35); }
.cp-sstat-card--best { border-color: rgba(245, 158, 11, 0.35); }
.cp-sstat-card--speed { border-color: rgba(56, 189, 248, 0.35); }
.cp-sstat-card--powerup { border-color: rgba(168, 85, 247, 0.35); }

.cp-sstat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.cp-sstat-val {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cp-sstat-card--score .cp-sstat-val { color: #4ade80; }
.cp-sstat-card--best .cp-sstat-val { color: #fbbf24; }
.cp-sstat-card--speed .cp-sstat-val { color: #38bdf8; }

.cp-sstat-sub {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 3px;
}

.cp-snake-active-badge {
  font-size: 0.95rem;
  font-weight: 800;
  color: #94a3b8;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.2;
}
.cp-snake-active-badge.is-shield { color: #06b6d4; text-shadow: 0 0 8px rgba(6, 182, 212, 0.5); }
.cp-snake-active-badge.is-freeze { color: #38bdf8; text-shadow: 0 0 8px rgba(56, 189, 248, 0.5); }
.cp-snake-active-badge.is-magnet { color: #c084fc; text-shadow: 0 0 8px rgba(192, 132, 252, 0.5); }

/* Interactive Snake Arena Viewport */
.cp-snake-arena-container {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 197, 94, 0.15);
  background: #060d19;
}
#snake-canvas {
  display: block;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  background: #060d19;
  margin: 0 auto;
}

/* Modern Glassmorphic Overlays */
.cp-snake-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.cp-snake-overlay.is-open {
  display: flex;
}

.cp-soverlay-content {
  background: #091322;
  border: 2px solid #22c55e;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.35);
  border-radius: 20px;
  padding: 24px 28px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cpModalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cp-soverlay-emblem {
  font-size: 3.2rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.6));
}
.cp-soverlay-content h3 {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #f8fafc;
  margin: 0 0 6px 0;
}
.cp-soverlay-content p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0 0 16px 0;
}

.cp-soverlay-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 18px;
}
.cp-smodal-stat {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.cp-smodal-stat span { color: #64748b; font-weight: 600; }
.cp-smodal-stat strong { color: #e2e8f0; font-weight: 800; }

.cp-soverlay-actions {
  width: 100%;
}
.cp-soverlay-actions button {
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 10px;
}

/* Bottom Bar */
.cp-snake-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.cp-snake-shortcuts-hint {
  color: #64748b;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cp-snake-shortcuts-hint kbd {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-family: inherit;
}
.cp-snake-action-btns {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* Touch Cyber D-Pad for Mobile & Tablets */
.cp-snake-touch-dpad {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .cp-snake-touch-dpad {
    display: flex;
  }
}
.cp-sdpad-mid {
  display: flex;
  gap: 10px;
}
.cp-sdpad-btn {
  width: 60px;
  height: 52px;
  background: #0f172a;
  border: 1.5px solid #1e3357;
  border-radius: 12px;
  color: #22c55e;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: all 0.1s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.cp-sdpad-btn:active {
  background: #22c55e;
  color: #042f13;
  transform: scale(0.94);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
}

/* ==========================================================================
   8. TIC TAC TOE (ZERO KAATA) - CYBER ARCADE & FULLSCREEN RESPONSIVE
   ========================================================================== */
#theater-game-tictactoe {
  display: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#theater-game-tictactoe.is-active {
  display: block !important;
}
#theater-game-tictactoe .cp-ttt-stage-wrap {
  width: 100% !important;
  max-width: min(560px, calc(100vw - 24px)) !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 30, 0.98) 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.22) !important;
  border-radius: 24px !important;
  padding: 26px 28px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.08) !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(12px) !important;
}

/* Header & HUD */
#theater-game-tictactoe .cp-ttt-hud {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 14px !important;
  width: 100% !important;
}
#theater-game-tictactoe .cp-ttt-badge-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-bottom: 2px !important;
}
#theater-game-tictactoe .cp-ttt-subbadge {
  display: inline-block !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 999px !important;
  padding: 3px 10px !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2) !important;
}
#theater-game-tictactoe .cp-ttt-header-info h2 {
  font-size: clamp(1.3rem, 4vw, 1.85rem) !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.25 !important;
}
#theater-game-tictactoe .cp-ttt-urdu-sub {
  color: #38bdf8 !important;
  font-weight: 600 !important;
}
#theater-game-tictactoe .cp-ttt-header-info p {
  color: #94a3b8 !important;
  font-size: clamp(0.82rem, 2.2vw, 0.92rem) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  max-width: 440px !important;
}

/* Mode Switcher */
#theater-game-tictactoe .cp-ttt-mode-wrap {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}
#theater-game-tictactoe .cp-ttt-mode-toggle {
  display: inline-flex !important;
  background: #091426 !important;
  border: 1.5px solid #1e3357 !important;
  border-radius: 999px !important;
  padding: 4px !important;
  gap: 4px !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}
#theater-game-tictactoe .cp-ttt-mode-toggle .cp-mode-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: transparent !important;
  color: #94a3b8 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 7px 18px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
}
#theater-game-tictactoe .cp-ttt-mode-toggle .cp-mode-btn:hover {
  color: #f8fafc !important;
}
#theater-game-tictactoe .cp-ttt-mode-toggle .cp-mode-btn.is-active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.5) !important;
}

/* Cyber Scoreboard with Active Turn Indicators */
#theater-game-tictactoe .cp-ttt-scoreboard {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
}
#theater-game-tictactoe .cp-ttt-score {
  position: relative !important;
  background: #0f1a2e !important;
  border: 1.5px solid #1e2e4a !important;
  border-radius: 16px !important;
  padding: 12px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-align: center !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
#theater-game-tictactoe .cp-ttt-score-icon {
  font-size: 1.1rem !important;
  line-height: 1 !important;
  margin-bottom: 2px !important;
}
#theater-game-tictactoe .cp-ttt-score-lbl {
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}
#theater-game-tictactoe .cp-ttt-score-num {
  display: block !important;
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  font-family: inherit !important;
}
#theater-game-tictactoe .cp-ttt-score--x .cp-ttt-score-icon { color: #38bdf8 !important; }
#theater-game-tictactoe .cp-ttt-score--x .cp-ttt-score-num {
  color: #38bdf8 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5) !important;
}
#theater-game-tictactoe .cp-ttt-score--tie .cp-ttt-score-num { color: #cbd5e1 !important; }
#theater-game-tictactoe .cp-ttt-score--o .cp-ttt-score-icon { color: #f59e0b !important; }
#theater-game-tictactoe .cp-ttt-score--o .cp-ttt-score-num {
  color: #f59e0b !important;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.5) !important;
}

#theater-game-tictactoe .cp-ttt-score.is-active-turn {
  transform: translateY(-3px) scale(1.02) !important;
}
#theater-game-tictactoe .cp-ttt-score--x.is-active-turn {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.15) !important;
}
#theater-game-tictactoe .cp-ttt-score--o.is-active-turn {
  border-color: #f59e0b !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), inset 0 0 10px rgba(245, 158, 11, 0.15) !important;
}
#theater-game-tictactoe .cp-ttt-turn-dot {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  opacity: 0;
  transition: opacity 0.2s ease !important;
}
#theater-game-tictactoe .cp-ttt-score.is-active-turn .cp-ttt-turn-dot {
  opacity: 1 !important;
  animation: cpTttDotPulse 1.4s infinite ease-in-out !important;
}
#theater-game-tictactoe .cp-ttt-score--x .cp-ttt-turn-dot { background: #38bdf8 !important; box-shadow: 0 0 8px #38bdf8 !important; }
#theater-game-tictactoe .cp-ttt-score--o .cp-ttt-turn-dot { background: #f59e0b !important; box-shadow: 0 0 8px #f59e0b !important; }
@keyframes cpTttDotPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
}

/* Status Banner */
#theater-game-tictactoe .cp-ttt-board-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}
#theater-game-tictactoe .cp-ttt-status-banner {
  width: 100% !important;
  max-width: 380px !important;
  background: #0b1528 !important;
  border: 1.5px solid #1e3357 !important;
  border-radius: 14px !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s ease !important;
  margin-bottom: 6px !important;
}
#theater-game-tictactoe .cp-ttt-status-banner.is-turn-x {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25) !important;
  color: #e0f2fe !important;
}
#theater-game-tictactoe .cp-ttt-status-banner.is-turn-o {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25) !important;
  color: #fef3c7 !important;
}
#theater-game-tictactoe .cp-ttt-status-banner.is-winner {
  border-color: rgba(34, 197, 94, 0.6) !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35) !important;
  color: #dcfce7 !important;
}
#theater-game-tictactoe .cp-ttt-status-banner.is-tie {
  border-color: rgba(148, 163, 184, 0.5) !important;
  color: #f1f5f9 !important;
}

/* Interactive Grid & Cells */
#theater-game-tictactoe .cp-ttt-grid-container {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}
#theater-game-tictactoe .cp-ttt-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: repeat(3, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 360px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 12px auto !important;
  background: #08101e !important;
  padding: 12px !important;
  border: 2px solid #172a4a !important;
  border-radius: 20px !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), 0 10px 24px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box !important;
}
#theater-game-tictactoe .cp-ttt-cell {
  background: linear-gradient(145deg, #131d33 0%, #0c1424 100%) !important;
  border: 1.5px solid #1e3357 !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: clamp(2.4rem, 6vw, 3.2rem) !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  user-select: none !important;
  touch-action: manipulation !important;
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
  padding: 0 !important;
  outline: none !important;
}
#theater-game-tictactoe .cp-ttt-cell:hover:empty {
  background: linear-gradient(145deg, #1c2b4a 0%, #111d33 100%) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), 0 0 14px rgba(56, 189, 248, 0.25) !important;
}
#theater-game-tictactoe .cp-ttt-cell:active {
  transform: scale(0.96) !important;
}
#theater-game-tictactoe .cp-ttt-cell.is-x {
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.14) 0%, rgba(12, 20, 36, 0.95) 100%) !important;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.8), 0 0 28px rgba(56, 189, 248, 0.4) !important;
  animation: cpTttPopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
#theater-game-tictactoe .cp-ttt-cell.is-o {
  color: #f59e0b !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14) 0%, rgba(12, 20, 36, 0.95) 100%) !important;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.8), 0 0 28px rgba(245, 158, 11, 0.4) !important;
  animation: cpTttPopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
#theater-game-tictactoe .cp-ttt-cell.is-winning-cell {
  border-color: #22c55e !important;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35) 0%, rgba(12, 20, 36, 0.95) 100%) !important;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.7), inset 0 0 12px rgba(34, 197, 94, 0.3) !important;
  animation: cpTttWinPulse 1.2s infinite ease-in-out !important;
}
@keyframes cpTttPopIn {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes cpTttWinPulse {
  0%, 100% { transform: scale(1.02); }
  50% { transform: scale(1.07); }
}

/* Actions Bar & Restart Button */
#theater-game-tictactoe .cp-ttt-actions-bar {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin-top: 4px !important;
}
#theater-game-tictactoe .cp-ttt-restart-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 999px !important;
  padding: 10px 26px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4) !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
}
#theater-game-tictactoe .cp-ttt-restart-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6) !important;
  border-color: #38bdf8 !important;
}
#theater-game-tictactoe .cp-ttt-restart-btn:active {
  transform: scale(0.97) !important;
}

/* RESPONSIVE MOBILE STYLES */
@media (max-width: 600px) {
  #theater-game-tictactoe .cp-ttt-stage-wrap {
    padding: 18px 14px !important;
    gap: 14px !important;
    border-radius: 18px !important;
  }
  #theater-game-tictactoe .cp-ttt-scoreboard {
    gap: 8px !important;
  }
  #theater-game-tictactoe .cp-ttt-score {
    padding: 8px 6px !important;
    border-radius: 12px !important;
  }
  #theater-game-tictactoe .cp-ttt-score-lbl {
    font-size: 0.65rem !important;
  }
  #theater-game-tictactoe .cp-ttt-score-num {
    font-size: 1.35rem !important;
  }
  #theater-game-tictactoe .cp-ttt-grid {
    max-width: min(320px, calc(100vw - 48px)) !important;
    padding: 10px !important;
    gap: 8px !important;
    margin: 8px auto !important;
  }
  #theater-game-tictactoe .cp-ttt-cell {
    border-radius: 10px !important;
    font-size: clamp(2rem, 9vw, 2.5rem) !important;
  }
  #theater-game-tictactoe .cp-ttt-mode-toggle .cp-mode-btn {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }
  #theater-game-tictactoe .cp-ttt-status-banner {
    font-size: 0.88rem !important;
    padding: 8px 12px !important;
  }
}
@media (max-width: 380px) {
  #theater-game-tictactoe .cp-ttt-scoreboard {
    gap: 6px !important;
  }
  #theater-game-tictactoe .cp-ttt-score {
    padding: 6px 4px !important;
  }
  #theater-game-tictactoe .cp-ttt-score-lbl {
    font-size: 0.6rem !important;
  }
  #theater-game-tictactoe .cp-ttt-score-num {
    font-size: 1.2rem !important;
  }
}

/* FULLSCREEN API RESPONSIVE OPTIMIZATION */
:fullscreen #theater-game-tictactoe.is-active,
.cp-theater-stage:fullscreen #theater-game-tictactoe.is-active {
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
}
:fullscreen #theater-game-tictactoe.is-active .cp-ttt-stage-wrap,
.cp-theater-stage:fullscreen #theater-game-tictactoe.is-active .cp-ttt-stage-wrap {
  width: 100% !important;
  max-width: min(540px, calc(100vw - 24px)) !important;
  margin: auto !important;
  gap: 12px !important;
  padding: 16px 22px !important;
}
:fullscreen #theater-game-tictactoe.is-active .cp-ttt-header-info p,
.cp-theater-stage:fullscreen #theater-game-tictactoe.is-active .cp-ttt-header-info p {
  display: none !important;
}
:fullscreen #theater-game-tictactoe.is-active .cp-ttt-grid,
.cp-theater-stage:fullscreen #theater-game-tictactoe.is-active .cp-ttt-grid {
  max-width: min(340px, calc(100vh - 310px), calc(100vw - 40px)) !important;
  padding: 10px !important;
  gap: 10px !important;
  margin: 6px auto !important;
}
:fullscreen #theater-game-tictactoe.is-active .cp-ttt-scoreboard,
.cp-theater-stage:fullscreen #theater-game-tictactoe.is-active .cp-ttt-scoreboard {
  margin-bottom: 4px !important;
}
:fullscreen #theater-game-tictactoe.is-active .cp-ttt-actions-bar,
.cp-theater-stage:fullscreen #theater-game-tictactoe.is-active .cp-ttt-actions-bar {
  margin-top: 2px !important;
}

/* ==========================================================================
   Play Area 3-Column Hub Grid & 3D Game Cards (Dark Mode)
   ========================================================================== */

.cp-hub-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.cp-hub-pill {
  background: #0f1d35;
  color: #cbd5e1;
  border: 1px solid #1e3357;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.cp-hub-pill:hover {
  background: #1e3357;
  color: #ffffff;
}
.cp-hub-pill.is-active {
  background: #f6b624;
  color: #091729;
  border-color: #f6b624;
  box-shadow: 0 4px 14px rgba(246, 182, 36, 0.3);
}

.cp-hub-section {
  padding: 30px 0 60px;
  background: #070e1c;
}

/* 1 LINE ME 3 CARDS */
.cp-arcade-hub-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .cp-arcade-hub-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}
@media (max-width: 640px) {
  .cp-arcade-hub-3col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 3D Game Card (Dark Obsidian Style) */
.cp-game-card-3d {
  background: #0d1b32;
  border: 1px solid #1e3357;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.cp-game-card-3d:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  border-color: #f6b624;
}

.cp-card-media-link {
  display: block;
  text-decoration: none;
}
.cp-card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050b14;
}
.cp-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cp-game-card-3d:hover .cp-card-poster img {
  transform: scale(1.06);
}

.cp-card-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 23, 41, 0.85);
  color: #f6b624;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.04em;
  z-index: 2;
  border: 1px solid rgba(246, 182, 36, 0.3);
}
.cp-play-float-badge {
  display: none !important;
}

/* Fallback Poster Art for Flappy, Pong & All Browser Games */
.cp-poster--flappy {
  background: radial-gradient(circle, #0e7490 0%, #082f49 100%);
}
.cp-poster--pong {
  background: radial-gradient(circle, #1e3a8a 0%, #091729 100%);
}
.cp-card-poster-art,
.cp-card-artwork {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}
.cp-art-icon {
  font-size: 3.6rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.cp-art-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.06em;
}
.cp-art-sub {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f6b624;
  letter-spacing: 0.08em;
}

.cp-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cp-card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.cp-card-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: #132746;
  color: #93c5fd;
  padding: 3px 8px;
  border-radius: 6px;
}
.cp-badge--gold {
  background: rgba(246, 182, 36, 0.15);
  color: #f6b624;
  border: 1px solid rgba(246, 182, 36, 0.3);
}
.cp-card-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}
.cp-card-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.cp-card-content h3 a:hover {
  color: #f6b624;
}
.cp-card-content p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 18px;
  flex: 1;
}
.cp-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #1e3357;
}
.cp-tag-pill {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-btn-play-game {
  background: #f6b624;
  color: #091729;
  text-decoration: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 800;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2;
}
.cp-game-card-3d:hover .cp-btn-play-game {
  background: #f59e0b;
  color: #000000;
  box-shadow: 0 4px 14px rgba(246, 182, 36, 0.4);
}

/* ==========================================================================
   Theater View Arena (Dark Mode & Fullscreen Enlargement)
   ========================================================================== */
body.cp-playgames-page-body #page,
body.cp-playgames-page-body #primary,
body.cp-playgames-page-body #content,
body.cp-playgames-page-body .ast-container,
body.cp-playgames-page-body .site-content,
body.cp-playgames-page-body .entry-content,
body.cp-playgames-page-body .ast-article-single {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.cp-theater-wrapper {
  padding: 18px 0 40px;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.cp-theater-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0d1b32;
  border: 1px solid #1e3357;
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}
.cp-theater-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cp-back-hub-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: #132746 !important;
  color: #f6b624 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  border: 1px solid #1e3357 !important;
  transition: all 0.2s ease;
  width: auto !important;
  flex: 0 0 auto !important;
}
.cp-back-hub-btn:hover {
  background: #1e3357 !important;
  color: #ffffff !important;
}
.cp-active-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.cp-theater-header__right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  margin-left: auto;
}

/* Difficulty Selector Group */
.cp-theater-diff-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: #07101f !important;
  border: 1px solid #1b2e50 !important;
  border-radius: 8px !important;
  padding: 3px !important;
  width: auto !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
}
.cp-diff-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  margin: 0 4px 0 2px;
}
.cp-tdiff-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 5px 11px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  width: auto !important;
  flex: 0 0 auto !important;
  box-shadow: none !important;
}
.cp-tdiff-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
.cp-tdiff-btn.is-active {
  background: #f6b624 !important;
  color: #091729 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(246, 182, 36, 0.35) !important;
}

.cp-theater-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: #132746 !important;
  border: 1px solid #1e3357 !important;
  border-radius: 8px !important;
  padding: 7px 12px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto !important;
  height: 34px !important;
  flex: 0 0 auto !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
.cp-theater-action-btn:hover {
  background: #f6b624 !important;
  color: #091729 !important;
  border-color: #f6b624 !important;
}

/* Mobile Responsive Control Bar (< 768px) */
@media (max-width: 768px) {
  .cp-theater-wrapper {
    padding: 14px 0 24px !important;
  }
  .cp-theater-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .cp-theater-header {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 8px 10px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    gap: 8px !important;
  }
  .cp-theater-header__left {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .cp-back-hub-btn {
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    width: auto !important;
  }
  .cp-back-hub-btn span {
    font-size: 0.74rem !important;
  }
  .cp-active-game-badge {
    font-size: 0.82rem !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-shrink: 1 !important;
  }
  .cp-theater-header__right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .cp-theater-diff-group {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    justify-content: space-between !important;
    padding: 2px !important;
    gap: 2px !important;
    box-sizing: border-box !important;
  }
  .cp-diff-tag {
    display: none !important;
  }
  .cp-tdiff-btn {
    padding: 5px 6px !important;
    font-size: 0.72rem !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    text-align: center !important;
  }
  .cp-theater-action-btn,
  .cp-btn-fullscreen,
  .cp-btn-sound {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 32px !important;
    flex: 0 0 34px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
  }
  .cp-btn-fullscreen span {
    display: none !important;
  }
  .cp-btn-fullscreen svg,
  .cp-btn-sound svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
  }
}

/* Big Screen Theater Stage Arena (Dark Obsidian) */
.cp-theater-stage {
  background: #0a1528;
  border: 1px solid #1e3357;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  color: #f1f5f9;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .cp-theater-stage {
    padding: 12px 6px !important;
    border-radius: 14px !important;
    min-height: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Theater Game Item Visibility - ONLY show active game */
.cp-theater-view {
  display: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.cp-theater-view.is-active {
  display: block !important;
}

/* Ironclad Visibility: Never display any game view that is not is-active, in normal or fullscreen mode */
.cp-theater-view:not(.is-active),
:fullscreen .cp-theater-view:not(.is-active),
.cp-theater-stage:fullscreen .cp-theater-view:not(.is-active),
#cp-fullscreen-target:fullscreen .cp-theater-view:not(.is-active) {
  display: none !important;
}

.cp-theater-view canvas {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   NATIVE FULLSCREEN API STYLING & MASSIVE BOARD ENLARGEMENT
   ========================================================================== */
:fullscreen,
:fullscreen#cp-fullscreen-target,
.cp-theater-stage:fullscreen {
  background: #040810 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 8px 12px !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  -webkit-overflow-scrolling: touch !important;
}

:fullscreen .cp-arcade-single-game-wrap,
.cp-theater-stage:fullscreen .cp-arcade-single-game-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  padding: 4px !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* FULLSCREEN CHECKERS CENTERING & PERFECT ALIGNMENT */
:fullscreen #theater-game-checkers.is-active,
.cp-theater-stage:fullscreen #theater-game-checkers.is-active,
#cp-fullscreen-target:fullscreen #theater-game-checkers.is-active {
  --cp-checkers-size: min(calc(100vh - 180px), calc(100vw - 32px), 520px) !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

:fullscreen #theater-game-checkers .cp-arcade-single-game-wrap,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-arcade-single-game-wrap,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-arcade-single-game-wrap,
:fullscreen #theater-game-checkers .cp-theater-single-wrap,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-theater-single-wrap,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-theater-single-wrap {
  height: auto !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

:fullscreen #theater-game-checkers .cp-checkers-hud,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-checkers-hud,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-checkers-hud {
  width: 100% !important;
  max-width: var(--cp-checkers-size) !important;
  margin: 0 auto 6px auto !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

:fullscreen #theater-game-checkers .cp-checkers-hud h2,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-checkers-hud h2,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-checkers-hud h2 {
  font-size: 1.05rem !important;
  margin: 0 !important;
  text-align: center !important;
}

:fullscreen #theater-game-checkers .cp-checkers-hud p,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-checkers-hud p,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-checkers-hud p {
  display: none !important;
}

:fullscreen #theater-game-checkers .cp-mode-toggle,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-mode-toggle,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-mode-toggle {
  margin: 0 auto !important;
  gap: 4px !important;
  padding: 3px !important;
}

:fullscreen #theater-game-checkers .cp-mode-btn,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-mode-btn,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-mode-btn {
  padding: 4px 10px !important;
  font-size: 0.74rem !important;
}

:fullscreen #theater-game-checkers .cp-checkers-scoreboard,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-checkers-scoreboard,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-checkers-scoreboard {
  width: 100% !important;
  max-width: var(--cp-checkers-size) !important;
  margin: 0 auto 6px auto !important;
  gap: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

:fullscreen #theater-game-checkers .cp-checkers-player-box,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-checkers-player-box,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-checkers-player-box {
  padding: 4px 8px !important;
  border-radius: 8px !important;
}

:fullscreen #theater-game-checkers .cp-checkers-pbox-header,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-checkers-pbox-header,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-checkers-pbox-header {
  gap: 4px !important;
}

:fullscreen #theater-game-checkers .cp-checkers-pbox-title,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-checkers-pbox-title,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-checkers-pbox-title {
  font-size: 0.74rem !important;
}

:fullscreen #theater-game-checkers .cp-checkers-pbox-count strong,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-checkers-pbox-count strong,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-checkers-pbox-count strong {
  font-size: 1.05rem !important;
}

:fullscreen #theater-game-checkers .cp-checkers-pbox-count small,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-checkers-pbox-count small,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-checkers-pbox-count small {
  font-size: 0.62rem !important;
}

:fullscreen #theater-game-checkers .cp-checkers-status-pill,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-checkers-status-pill,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-checkers-status-pill {
  font-size: 0.74rem !important;
  padding: 4px 10px !important;
}

:fullscreen #theater-game-checkers .cp-checkers-board-wrap,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-checkers-board-wrap,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-checkers-board-wrap {
  width: var(--cp-checkers-size) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

:fullscreen #theater-game-checkers .cp-checkers-board,
.cp-theater-stage:fullscreen #theater-game-checkers .cp-checkers-board,
#cp-fullscreen-target:fullscreen #theater-game-checkers .cp-checkers-board {
  width: var(--cp-checkers-size) !important;
  height: var(--cp-checkers-size) !important;
  max-width: var(--cp-checkers-size) !important;
  max-height: var(--cp-checkers-size) !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 auto !important;
  border: 5px solid #2d180c !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

:fullscreen #theater-game-checkers #btn-restart-checkers,
.cp-theater-stage:fullscreen #theater-game-checkers #btn-restart-checkers,
#cp-fullscreen-target:fullscreen #theater-game-checkers #btn-restart-checkers {
  margin: 6px auto 0 auto !important;
  display: inline-flex !important;
  align-self: center !important;
  padding: 5px 16px !important;
  font-size: 0.78rem !important;
}

/* Scoped Fullscreen Styling for Grandmaster Chess */
:fullscreen #theater-game-chess.is-active,
.cp-theater-stage:fullscreen #theater-game-chess.is-active,
#cp-fullscreen-target:fullscreen #theater-game-chess.is-active {
  width: 100% !important;
  max-width: 1060px !important;
  height: 100% !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  overflow-y: auto !important;
  margin: 0 auto !important;
  padding: 10px 16px !important;
  box-sizing: border-box !important;
}
:fullscreen #theater-game-chess .cp-chess-subbar,
.cp-theater-stage:fullscreen #theater-game-chess .cp-chess-subbar,
#cp-fullscreen-target:fullscreen #theater-game-chess .cp-chess-subbar {
  width: 100% !important;
  max-width: 980px !important;
  margin-bottom: 8px !important;
}
:fullscreen #theater-game-chess .cp-chess-arena-grid,
.cp-theater-stage:fullscreen #theater-game-chess .cp-chess-arena-grid,
#cp-fullscreen-target:fullscreen #theater-game-chess .cp-chess-arena-grid {
  width: 100% !important;
  max-width: 980px !important;
  grid-template-columns: minmax(280px, min(62vh, 520px)) 1fr !important;
  gap: 16px !important;
  align-items: start !important;
}
:fullscreen #theater-game-chess .cp-board-wrapper,
.cp-theater-stage:fullscreen #theater-game-chess .cp-board-wrapper,
#cp-fullscreen-target:fullscreen #theater-game-chess .cp-board-wrapper {
  padding: 20px !important;
}
:fullscreen #theater-game-chess .cp-player-hud,
.cp-theater-stage:fullscreen #theater-game-chess .cp-player-hud,
#cp-fullscreen-target:fullscreen #theater-game-chess .cp-player-hud {
  padding: 6px 14px !important;
}

:fullscreen #snake-canvas,
.cp-theater-stage:fullscreen #snake-canvas {
  width: min(82vh, 740px) !important;
  height: min(82vh, 740px) !important;
}

:fullscreen .cp-theater-sudoku-area .cp-sudoku-grid,
.cp-theater-stage:fullscreen .cp-theater-sudoku-area .cp-sudoku-grid {
  max-width: min(82vh, 680px) !important;
  width: min(82vh, 680px) !important;
}

:fullscreen .cp-theater-single-wrap,
.cp-theater-stage:fullscreen .cp-theater-single-wrap {
  max-width: 1100px !important;
}

/* Expanded Single Game Wrappers in Big Screen */
.cp-theater-stage .cp-arcade-single-game-wrap,
.cp-theater-stage .cp-theater-single-wrap,
.cp-theater-single-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}
.cp-theater-canvas-container {
  max-width: 480px;
  margin: 0 auto;
}
.cp-theater-2048-container {
  max-width: 460px;
}
.cp-theater-sudoku-area .cp-sudoku-grid {
  max-width: 460px;
}
.cp-theater-ttt-grid {
  max-width: 360px;
}

/* ==========================================================================
   Poster Backgrounds for New 10-Game Roster
   ========================================================================== */
.cp-poster--tetris { background: radial-gradient(circle, #7c3aed 0%, #1e1b4b 100%); }
.cp-poster--minesweeper { background: radial-gradient(circle, #0284c7 0%, #082f49 100%); }
.cp-poster--solitaire { background: radial-gradient(circle, #059669 0%, #064e3b 100%); }
.cp-poster--wordle { background: radial-gradient(circle, #22c55e 0%, #14532d 100%); }
.cp-poster--checkers { background: radial-gradient(circle, #dc2626 0%, #450a0a 100%); }
.cp-poster--memory { background: radial-gradient(circle, #6366f1 0%, #1e1b4b 100%); }
.cp-poster--sliding { background: radial-gradient(circle, #0284c7 0%, #082f49 100%); }
.cp-poster--2048var { background: radial-gradient(circle, #ea580c 0%, #431407 100%); }
.cp-poster--nonogram { background: radial-gradient(circle, #ec4899 0%, #500724 100%); }
.cp-poster--sokoban { background: radial-gradient(circle, #d97706 0%, #451a03 100%); }
.cp-poster--connect4 { background: radial-gradient(circle, #ef4444 0%, #1e3a8a 100%); }
.cp-poster--mahjong { background: radial-gradient(circle, #10b981 0%, #064e3b 100%); }
.cp-poster--jigsaw { background: radial-gradient(circle, #8b5cf6 0%, #3b0764 100%); }
.cp-poster--bubble { background: radial-gradient(circle, #06b6d4 0%, #164e63 100%); }
.cp-poster--flappy { background: radial-gradient(circle, #0284c7 0%, #0c4a6e 100%); }
.cp-poster--dino { background: radial-gradient(circle, #15803d 0%, #052e16 100%); }
.cp-poster--breakout { background: radial-gradient(circle, #ea580c 0%, #431407 100%); }
.cp-poster--helicopter { background: radial-gradient(circle, #059669 0%, #064e3b 100%); }
.cp-poster--fruitninja { background: radial-gradient(circle, #e11d48 0%, #4c0519 100%); }
.cp-poster--runner { background: radial-gradient(circle, #6366f1 0%, #1e1b4b 100%); }
.cp-poster--reaction { background: radial-gradient(circle, #dc2626 0%, #166534 100%); }
.cp-poster--aim { background: radial-gradient(circle, #0284c7 0%, #1e1b4b 100%); }
.cp-poster--colormatch { background: radial-gradient(circle, #a855f7 0%, #3b0764 100%); }
.cp-poster--stack { background: radial-gradient(circle, #06b6d4 0%, #082f49 100%); }
.cp-poster--wordsearch { background: radial-gradient(circle, #059669 0%, #064e3b 100%); }
.cp-poster--hangman { background: radial-gradient(circle, #b45309 0%, #451a03 100%); }
.cp-poster--crossword { background: radial-gradient(circle, #0284c7 0%, #0c4a6e 100%); }
.cp-poster--scramble { background: radial-gradient(circle, #7c3aed 0%, #3b0764 100%); }
.cp-poster--typing { background: radial-gradient(circle, #2563eb 0%, #1e1b4b 100%); }
.cp-poster--mathquiz { background: radial-gradient(circle, #ea580c 0%, #431407 100%); }
.cp-poster--sequence { background: radial-gradient(circle, #db2777 0%, #500724 100%); }
.cp-poster--pattern { background: radial-gradient(circle, #0d9488 0%, #134e4a 100%); }
.cp-poster--guess { background: radial-gradient(circle, #4f46e5 0%, #1e1b4b 100%); }
.cp-poster--game24 { background: radial-gradient(circle, #dc2626 0%, #450a0a 100%); }
.cp-poster--gomoku { background: radial-gradient(circle, #d97706 0%, #451a03 100%); }
.cp-poster--rps { background: radial-gradient(circle, #e11d48 0%, #4c0519 100%); }
.cp-poster--dots { background: radial-gradient(circle, #0284c7 0%, #082f49 100%); }
.cp-poster--ludo { background: radial-gradient(circle, #16a34a 0%, #052e16 100%); }

/* ==========================================================================
   5. TETRIS CLASSIC STYLES
   ========================================================================== */
.cp-tetris-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.cp-tetris-play-area {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
}
#tetris-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 300 / 600;
  background: #091729;
  border: 2px solid #a855f7;
  border-radius: 12px;
}
.cp-tetris-side-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cp-tetris-next-box {
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.cp-tetris-next-box canvas {
  margin-top: 8px;
  border-radius: 8px;
  display: block;
}

/* ==========================================================================
   6. MINESWEEPER CLASSIC STYLES
   ========================================================================== */
.cp-mines-panel {
  max-width: 480px;
  margin: 0 auto;
  background: #cbd5e1;
  border: 4px solid;
  border-color: #f1f5f9 #64748b #64748b #f1f5f9;
  border-radius: 8px;
  padding: 16px;
}
.cp-mines-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #94a3b8;
  border: 3px solid;
  border-color: #64748b #f1f5f9 #f1f5f9 #64748b;
  padding: 8px 16px;
  margin-bottom: 14px;
}
.cp-mines-lcd {
  background: #000000;
  color: #ef4444;
  font-family: monospace;
  font-size: 1.8rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.1em;
}
.cp-mines-face-btn {
  font-size: 1.8rem;
  background: #e2e8f0;
  border: 3px solid;
  border-color: #ffffff #94a3b8 #94a3b8 #ffffff;
  border-radius: 6px;
  cursor: pointer;
  padding: 2px 10px;
  line-height: 1;
}
.cp-mines-face-btn:active {
  border-color: #94a3b8 #ffffff #ffffff #94a3b8;
}
.cp-mines-mode-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cp-btn-flag-toggle.is-flag-on {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}
.cp-mines-grid-wrap {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 4px;
}
.cp-mines-grid {
  display: grid;
  gap: 2px;
  background: #94a3b8;
  border: 3px solid;
  border-color: #64748b #f1f5f9 #f1f5f9 #64748b;
  padding: 3px;
}
.cp-mine-cell {
  width: 34px;
  height: 34px;
  background: #e2e8f0;
  border: 3px solid;
  border-color: #ffffff #94a3b8 #94a3b8 #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  padding: 0;
  margin: 0;
}
.cp-mine-cell:active, .cp-mine-cell.is-revealed {
  border: 1px solid #94a3b8;
  background: #cbd5e1;
}
.cp-mine-cell[data-num="1"] { color: #2563eb; }
.cp-mine-cell[data-num="2"] { color: #16a34a; }
.cp-mine-cell[data-num="3"] { color: #dc2626; }
.cp-mine-cell[data-num="4"] { color: #7c3aed; }
.cp-mine-cell[data-num="5"] { color: #b91c1c; }
.cp-mine-cell.is-mine { background: #fee2e2; }

/* ==========================================================================
   7. SOLITAIRE (KLONDIKE) STYLES
   ========================================================================== */
.cp-solitaire-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.cp-solitaire-table {
  background: radial-gradient(circle, #059669 0%, #064e3b 100%);
  border: 4px solid #047857;
  border-radius: 18px;
  padding: 24px;
  box-shadow: inset 0 4px 30px rgba(0, 0, 0, 0.4);
  min-height: 520px;
}
.cp-sol-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
}
.cp-sol-deck-area, .cp-sol-foundations {
  display: flex;
  gap: 12px;
}
.cp-sol-card {
  width: 64px;
  height: 92px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  cursor: pointer;
  user-select: none;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cp-sol-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}
.cp-sol-card.is-facedown {
  background: #1e3a8a;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
}
.cp-sol-card.cp-color-red { color: #dc2626; }
.cp-sol-card.cp-color-black { color: #0f172a; }
.cp-sol-foundation {
  width: 64px;
  height: 92px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.25);
}
.cp-sol-tableau {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  min-height: 340px;
}
.cp-sol-col {
  position: relative;
  min-height: 320px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}
.cp-sol-col .cp-sol-card {
  position: absolute;
  left: 0;
  width: 100%;
}

/* ==========================================================================
   8. WORDLE DAILY CHALLENGE STYLES
   ========================================================================== */
.cp-wordle-hud {
  text-align: center;
  margin-bottom: 20px;
}
.cp-wordle-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}
.cp-wordle-row {
  display: flex;
  gap: 8px;
}
.cp-wordle-tile {
  width: 52px;
  height: 52px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #0f172a;
  background: #ffffff;
  transition: transform 0.3s ease, background 0.3s ease;
}
.cp-wordle-tile.has-letter {
  border-color: #133458;
  animation: cpTilePop 0.1s ease;
}
.cp-wordle-tile.is-correct {
  background: #22c55e !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}
.cp-wordle-tile.is-present {
  background: #eab308 !important;
  color: #ffffff !important;
  border-color: #ca8a04 !important;
}
.cp-wordle-tile.is-absent {
  background: #64748b !important;
  color: #ffffff !important;
  border-color: #475569 !important;
}
.cp-wordle-keyboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.cp-kb-row {
  display: flex;
  gap: 5px;
}
.cp-kb-key {
  background: #e2e8f0;
  border: none;
  border-radius: 6px;
  height: 48px;
  min-width: 36px;
  padding: 0 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.cp-kb-key:hover { background: #cbd5e1; }
.cp-kb-key--wide { min-width: 54px; font-size: 0.78rem; }
.cp-kb-key.is-correct { background: #22c55e; color: #ffffff; }
.cp-kb-key.is-present { background: #eab308; color: #ffffff; }
.cp-kb-key.is-absent { background: #64748b; color: #ffffff; }
.cp-wordle-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #f6b624;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
  pointer-events: none;
  z-index: 999;
}
.cp-wordle-toast.is-open { transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   10. CHECKERS (DRAUGHTS) STYLES (100% PERFECT CIRCLES & SQUARES)
   ========================================================================== */
#theater-game-checkers {
  --cp-checkers-size: min(520px, calc(100vw - 40px));
  width: 100%;
  box-sizing: border-box;
}

#theater-game-checkers .cp-arcade-single-game-wrap,
#theater-game-checkers .cp-theater-single-wrap,
#theater-game-checkers.cp-theater-view .cp-arcade-single-game-wrap,
#theater-game-checkers.cp-theater-view .cp-theater-single-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#theater-game-checkers .cp-checkers-hud {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: var(--cp-checkers-size) !important;
  margin: 0 auto 14px auto !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

#theater-game-checkers .cp-checkers-hud h2 {
  color: #ffffff;
  font-size: clamp(1.2rem, 3.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  text-align: center;
}

#theater-game-checkers .cp-checkers-hud p {
  color: #94a3b8;
  font-size: 0.84rem;
  margin: 0 auto 12px;
  max-width: 480px;
  text-align: center;
  line-height: 1.4;
}

#theater-game-checkers .cp-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #060d19;
  border: 1px solid #1e3357;
  border-radius: 26px;
  padding: 4px;
  gap: 4px;
  margin: 0 auto;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  box-sizing: border-box;
}

#theater-game-checkers .cp-mode-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#theater-game-checkers .cp-mode-btn.is-active {
  background: #f6b624;
  color: #070e1c;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(246, 182, 36, 0.4);
}

/* Scoreboard */
#theater-game-checkers .cp-checkers-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  width: var(--cp-checkers-size) !important;
  max-width: 100% !important;
  margin: 0 auto 14px auto !important;
  gap: 10px;
  box-sizing: border-box !important;
}

#theater-game-checkers .cp-checkers-player-box {
  background: linear-gradient(135deg, #0d1b32 0%, #081120 100%);
  border: 1px solid #1e3357;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  box-sizing: border-box;
  min-width: 0;
}

#theater-game-checkers .cp-checkers-player-box.is-turn {
  transform: translateY(-2px);
}

#theater-game-checkers .cp-checkers-player-box--red.is-turn {
  border-color: rgba(239, 68, 68, 0.85);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35), 0 4px 14px rgba(0, 0, 0, 0.4);
}

#theater-game-checkers .cp-checkers-player-box--black.is-turn {
  border-color: rgba(246, 182, 36, 0.85);
  box-shadow: 0 0 16px rgba(246, 182, 36, 0.35), 0 4px 14px rgba(0, 0, 0, 0.4);
}

#theater-game-checkers .cp-checkers-pbox-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

#theater-game-checkers .cp-checkers-disc-badge {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

#theater-game-checkers .cp-checkers-disc-badge.cp-disc-red {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

#theater-game-checkers .cp-checkers-disc-badge.cp-disc-black {
  background: transparent;
}

#theater-game-checkers .cp-checkers-pbox-title {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

#theater-game-checkers .cp-checkers-pbox-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

#theater-game-checkers .cp-checkers-pbox-count strong {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

#theater-game-checkers .cp-checkers-player-box--red .cp-checkers-pbox-count strong {
  color: #f87171;
}

#theater-game-checkers .cp-checkers-player-box--black .cp-checkers-pbox-count strong {
  color: #f6b624;
}

#theater-game-checkers .cp-checkers-pbox-count small {
  font-size: 0.62rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

#theater-game-checkers .cp-checkers-center-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

#theater-game-checkers .cp-checkers-status-pill {
  background: #091426;
  border: 1px solid #f6b624;
  color: #f6b624;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 20px;
  box-shadow: 0 0 14px rgba(246, 182, 36, 0.2);
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-align: center;
  transition: all 0.2s ease;
}

#theater-game-checkers .cp-checkers-status-pill.is-red-turn {
  border-color: #ef4444;
  color: #f87171;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

#theater-game-checkers .cp-checkers-status-pill.is-black-turn {
  border-color: #f6b624;
  color: #f6b624;
  box-shadow: 0 0 14px rgba(246, 182, 36, 0.25);
}

/* Board Wrap & Centered Restart Button */
#theater-game-checkers .cp-checkers-board-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--cp-checkers-size) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

#theater-game-checkers .cp-checkers-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: var(--cp-checkers-size) !important;
  height: var(--cp-checkers-size) !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1;
  margin: 0 auto !important;
  border: 5px solid #3e1f0e;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  background: #3e1f0e;
  box-sizing: border-box !important;
}

#theater-game-checkers #btn-restart-checkers {
  background: #f6b624 !important;
  color: #091729 !important;
  border: none !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(246, 182, 36, 0.4);
  transition: all 0.2s ease;
  cursor: pointer;
  margin: 14px auto 0 auto !important;
  display: inline-flex !important;
  align-self: center !important;
  text-align: center !important;
}

#theater-game-checkers #btn-restart-checkers:hover {
  background: #f59e0b !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246, 182, 36, 0.6);
}

.cp-checkers-sq {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  overflow: visible !important;
}
.cp-checkers-sq.is-light { background: #fed7aa; }
.cp-checkers-sq.is-dark { background: #78350f; }
.cp-checkers-sq.is-selected { background: #fef08a !important; }
.cp-checkers-sq.is-target::after {
  content: '';
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 10px #22c55e;
  animation: cpTargetPulse 1.2s infinite ease-in-out;
}
.cp-checkers-sq.is-target--jump::after {
  content: '';
  width: 20px;
  height: 20px;
  background: rgba(239, 68, 68, 0.3);
  border: 2.5px solid #ef4444;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 14px #ef4444;
  animation: cpTargetPulse 1s infinite ease-in-out;
}

/* 100% Circular Realistic 3D Checker Discs */
.cp-checker-piece {
  width: 76%;
  height: 76%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease;
  position: relative;
  user-select: none;
  box-sizing: border-box;
  touch-action: none;
  will-change: transform;
}
.cp-checker-piece::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.cp-checker-piece:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
}
.cp-checker-piece.is-red {
  background: radial-gradient(circle at 35% 35%, #f87171 0%, #dc2626 55%, #991b1b 100%);
  border: 2px solid #fca5a5;
  color: #ffffff;
}
.cp-checker-piece.is-black {
  background: radial-gradient(circle at 35% 35%, #475569 0%, #1e293b 55%, #090d16 100%);
  border: 2px solid #64748b;
  color: #f6b624;
}

.cp-checker-piece.is-sliding {
  z-index: 120 !important;
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.32s ease !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(246, 182, 36, 0.55) !important;
  pointer-events: none !important;
  transform-origin: center center;
  will-change: transform;
}

.cp-checker-piece.is-captured {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease !important;
  transform: scale(0.15) rotate(60deg) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cp-checker-piece.is-must-jump {
  animation: cpMustJumpPulse 1.1s infinite alternate ease-in-out !important;
}

@keyframes cpMustJumpPulse {
  0% { transform: scale(1); box-shadow: 0 0 10px #f59e0b, 0 4px 10px rgba(0, 0, 0, 0.5); }
  100% { transform: scale(1.1); box-shadow: 0 0 22px #ef4444, 0 0 35px #f59e0b; }
}

.cp-checkers-flip-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s ease;
}
.cp-checkers-flip-btn:hover {
  background: #f6b624;
  color: #091729;
  border-color: #f6b624;
}

@keyframes cpTargetPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

@keyframes cpTilePop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Mobile Screen Responsive Rules for Checkers (< 640px) */
@media (max-width: 640px) {
  #theater-game-checkers {
    --cp-checkers-size: min(calc(100vw - 36px), calc(100vh - 270px), 360px) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #theater-game-checkers .cp-arcade-single-game-wrap,
  #theater-game-checkers .cp-theater-single-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  #theater-game-checkers .cp-checkers-hud {
    width: 100% !important;
    max-width: var(--cp-checkers-size) !important;
    margin: 0 auto 8px auto !important;
    box-sizing: border-box !important;
  }
  #theater-game-checkers .cp-checkers-hud h2 {
    font-size: 1.15rem !important;
    margin-bottom: 3px !important;
  }
  #theater-game-checkers .cp-checkers-hud p {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
  }
  #theater-game-checkers .cp-mode-toggle {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: var(--cp-checkers-size) !important;
    gap: 3px !important;
    padding: 3px !important;
    margin: 0 auto 8px auto !important;
    box-sizing: border-box !important;
  }
  #theater-game-checkers .cp-mode-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 5px 3px !important;
    font-size: 0.68rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
  }
  #theater-game-checkers .cp-checkers-scoreboard {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: var(--cp-checkers-size) !important;
    margin: 0 auto 8px auto !important;
    box-sizing: border-box !important;
  }
  #theater-game-checkers .cp-checkers-player-box {
    border-radius: 8px !important;
    gap: 2px !important;
    min-width: 0 !important;
    padding: 4px 6px !important;
    box-sizing: border-box !important;
  }
  #theater-game-checkers .cp-checkers-pbox-header {
    gap: 3px !important;
  }
  #theater-game-checkers .cp-checkers-disc-badge {
    height: 10px !important;
    font-size: 8px !important;
  }
  #theater-game-checkers .cp-checkers-pbox-title {
    font-size: 0.58rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #theater-game-checkers .cp-checkers-pbox-count {
    gap: 3px !important;
  }
  #theater-game-checkers .cp-checkers-pbox-count strong {
    font-size: 1.05rem !important;
  }
  #theater-game-checkers .cp-checkers-pbox-count small {
    font-size: 0.50rem !important;
  }
  #theater-game-checkers .cp-checkers-center-status {
    min-width: 0 !important;
    padding: 0 2px !important;
  }
  #theater-game-checkers .cp-checkers-status-pill {
    font-size: 0.65rem !important;
    padding: 4px 6px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
  }
  #theater-game-checkers .cp-checkers-board-wrap {
    width: var(--cp-checkers-size) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  #theater-game-checkers .cp-checkers-board {
    border-width: 3px !important;
    border-radius: 10px !important;
    width: var(--cp-checkers-size) !important;
    height: var(--cp-checkers-size) !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  #theater-game-checkers .cp-checker-piece {
    font-size: 1rem !important;
  }
  #theater-game-checkers .cp-checker-piece::before {
    inset: 2px !important;
    border-width: 1px !important;
  }
  #theater-game-checkers #btn-restart-checkers {
    width: 100% !important;
    max-width: var(--cp-checkers-size) !important;
    margin: 8px auto 0 auto !important;
  }
}

@media (max-width: 380px) {
  #theater-game-checkers {
    --cp-checkers-size: min(calc(100vw - 28px), calc(100vh - 250px), 320px) !important;
  }
  #theater-game-checkers .cp-checkers-player-box {
    padding: 3px 2px !important;
  }
  #theater-game-checkers .cp-checkers-status-pill {
    padding: 3px 5px !important;
    font-size: 0.60rem !important;
  }
}

#theater-game-memory-match .cp-theater-single-wrap,
#theater-game-memory-match.cp-theater-view .cp-arcade-single-game-wrap {
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 1060px !important;
  margin: 0 auto !important;
}
.cp-mm-landscape-stage {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 32px !important;
  width: 100% !important;
  max-width: 1060px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Left Sidebar Command Panel */
.cp-mm-sidebar-panel {
  width: 290px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  background: rgba(11, 21, 40, 0.8) !important;
  border: 1.5px solid #1e3357 !important;
  border-radius: 18px !important;
  padding: 18px !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

.cp-mm-brand-head {
  text-align: left !important;
}
.cp-mm-brand-head h2 {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 2px 0 !important;
}
.cp-mm-brand-head p {
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
  margin: 0 !important;
}

/* Section Blocks */
.cp-mm-side-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.cp-mm-section-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
}

/* Difficulty Stack */
.cp-mm-diff-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}
.cp-mm-diff-stack .cp-mm-cfg-btn {
  background: rgba(15, 23, 42, 0.6) !important;
  color: #94a3b8 !important;
  border: 1px solid #1e293b !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-align: left !important;
  box-shadow: none !important;
  width: 100% !important;
}
.cp-mm-diff-stack .cp-mm-cfg-btn:hover {
  color: #f8fafc !important;
  border-color: #334155 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
.cp-mm-diff-stack .cp-mm-cfg-btn.is-active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35) !important;
}

/* Mode Pills */
.cp-mm-mode-pills {
  display: flex !important;
  gap: 4px !important;
}
.cp-mm-mode-pills .cp-mode-btn {
  flex: 1 !important;
  background: rgba(15, 23, 42, 0.6) !important;
  color: #94a3b8 !important;
  border: 1px solid #1e293b !important;
  border-radius: 6px !important;
  padding: 5px 6px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-align: center !important;
}
.cp-mm-mode-pills .cp-mode-btn:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
.cp-mm-mode-pills .cp-mode-btn.is-active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.35) !important;
}

/* 2x2 Telemetry HUD */
.cp-mm-hud-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}
.cp-mm-hud-card {
  background: #081120 !important;
  border: 1px solid #1e3357 !important;
  border-radius: 10px !important;
  padding: 6px 6px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.cp-hud-lbl {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  color: #94a3b8 !important;
  margin-bottom: 2px !important;
}
.cp-hud-val {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #f8fafc !important;
  line-height: 1.1 !important;
  font-variant-numeric: tabular-nums !important;
}
.cp-hud--moves .cp-hud-val { color: #38bdf8 !important; }
.cp-hud--pairs .cp-hud-val { color: #4ade80 !important; }
.cp-hud--time .cp-hud-val { color: #fbbf24 !important; }
.cp-hud--accuracy .cp-hud-val { color: #c084fc !important; }

/* Side Action Buttons */
.cp-mm-side-actions {
  display: flex !important;
  gap: 8px !important;
}
.cp-mm-side-actions .cp-game-btn {
  flex: 1 !important;
  padding: 8px 10px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

/* Right Main Arena */
.cp-mm-main-arena {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-width: 0 !important;
}
.cp-mm-matrix-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  perspective: 1200px !important;
  padding: 8px 0 !important;
}

/* Card Grids (Desktop Landscape Roomy Dimensions) */
.cp-mm-grid {
  display: grid !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
.cp-mm-grid--3x3 {
  grid-template-columns: repeat(3, 114px) !important;
  gap: 14px !important;
}
.cp-mm-grid--4x4 {
  grid-template-columns: repeat(4, 98px) !important;
  gap: 12px !important;
}
.cp-mm-grid--4x6 {
  grid-template-columns: repeat(6, 86px) !important;
  gap: 10px !important;
}

/* 3D Interactive Cards */
.cp-memory-card {
  aspect-ratio: 1 / 1 !important;
  perspective: 1000px !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.cp-memory-card-inner {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  text-align: center !important;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  transform-style: preserve-3d !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}
.cp-memory-card:hover:not(.is-flipped):not(.is-matched) .cp-memory-card-inner {
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.3) !important;
}
.cp-memory-card.is-flipped .cp-memory-card-inner,
.cp-memory-card.is-matched .cp-memory-card-inner {
  transform: rotateY(180deg) !important;
}

.cp-memory-card-front,
.cp-memory-card-back {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  font-weight: 800 !important;
  box-sizing: border-box !important;
}

/* Card Front */
.cp-memory-card-front {
  background: linear-gradient(135deg, #0d1a30 0%, #070e1c 100%) !important;
  border: 2px solid #1e3357 !important;
  color: #38bdf8 !important;
  font-size: clamp(1.4rem, 3.5vw, 2rem) !important;
  box-shadow: inset 0 0 14px rgba(56, 189, 248, 0.1) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.cp-memory-card:hover:not(.is-flipped):not(.is-matched) .cp-memory-card-front {
  border-color: #38bdf8 !important;
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.25) !important;
}

/* Card Back */
.cp-memory-card-back {
  background: linear-gradient(135deg, #112340 0%, #0b172a 100%) !important;
  border: 2.5px solid #38bdf8 !important;
  transform: rotateY(180deg) !important;
  font-size: clamp(1.8rem, 4.5vw, 2.7rem) !important;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5)) !important;
}

/* Matched Card */
.cp-memory-card.is-matched .cp-memory-card-back {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.55), inset 0 0 12px rgba(34, 197, 94, 0.25) !important;
  animation: cpMatchGlow 0.5s ease-out !important;
}
.cp-memory-card.is-matched .cp-memory-card-back.is-bonus-star {
  background: linear-gradient(135deg, #78350f 0%, #451a03 100%) !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.7), inset 0 0 14px rgba(251, 191, 36, 0.4) !important;
  animation: cpStarGlow 0.8s ease-out infinite alternate !important;
}
@keyframes cpStarGlow {
  0% { transform: rotateY(180deg) scale(1); filter: drop-shadow(0 0 6px #fbbf24); }
  100% { transform: rotateY(180deg) scale(1.06); filter: drop-shadow(0 0 16px #f59e0b); }
}
@keyframes cpMatchGlow {
  0% { transform: rotateY(180deg) scale(0.94); }
  50% { transform: rotateY(180deg) scale(1.08); }
  100% { transform: rotateY(180deg) scale(1); }
}

/* Hint Flash Pulse */
.cp-memory-card.is-hinted .cp-memory-card-inner {
  animation: cpHintFlash 1.2s ease-in-out !important;
}
@keyframes cpHintFlash {
  0%, 100% { transform: rotateY(0); }
  25%, 75% { transform: rotateY(180deg); }
}

/* ==========================================================================
   Mobile Adaptive Switch (< 820px)
   ========================================================================== */
@media (max-width: 820px) {
  .cp-mm-landscape-stage {
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 480px !important;
    width: 100% !important;
  }
  .cp-mm-sidebar-panel {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    gap: 8px !important;
  }
  .cp-mm-brand-head {
    display: none !important;
  }
  .cp-mm-side-block {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .cp-mm-section-label {
    display: none !important;
  }
  .cp-mm-diff-stack {
    flex-direction: row !important;
    gap: 4px !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .cp-mm-diff-stack .cp-mm-cfg-btn {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
    text-align: center !important;
  }
  .cp-mm-mode-pills {
    width: 100% !important;
    justify-content: center !important;
  }
  .cp-mm-hud-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
  }
  .cp-mm-hud-card {
    padding: 4px 4px !important;
    border-radius: 8px !important;
  }
  .cp-hud-lbl {
    font-size: 0.58rem !important;
    margin-bottom: 0 !important;
  }
  .cp-hud-val {
    font-size: 1.05rem !important;
  }
  .cp-mm-side-actions {
    order: 3 !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .cp-mm-side-actions .cp-game-btn {
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    max-width: 150px !important;
  }
  .cp-mm-main-arena {
    order: 2 !important;
    width: 100% !important;
  }
  .cp-mm-grid--3x3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: min(88vw, 340px) !important;
    gap: 8px !important;
  }
  .cp-mm-grid--4x4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: min(94vw, 360px) !important;
    gap: 6px !important;
  }
  .cp-mm-grid--4x6 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: min(94vw, 360px) !important;
    gap: 6px !important;
  }
}

/* 12. Sliding Puzzle */
.cp-sliding-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-sliding-board {
  display: grid;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  aspect-ratio: 1 / 1;
  background: #091322;
  border: 4px solid #1e3357;
  border-radius: 16px;
  padding: 8px;
  box-sizing: border-box;
  margin: 0 auto 16px;
}
.cp-sliding-tile {
  background: linear-gradient(135deg, #101e35 0%, #0b172a 100%);
  border: 2px solid #1e3357;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.cp-sliding-tile:hover {
  border-color: #f6b624;
  transform: scale(1.02);
  color: #f6b624;
}
.cp-sliding-tile.is-home {
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}
.cp-sliding-tile.is-empty {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
}

/* 13. 2048 Variants */
.cp-2048var-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-2048var-board {
  display: grid;
  gap: 8px;
  width: min(440px, calc(100vw - 32px));
  aspect-ratio: 1 / 1;
  background: #091322;
  border: 4px solid #1e3357;
  border-radius: 16px;
  padding: 8px;
  box-sizing: border-box;
  margin: 0 auto 14px;
}
.cp-2048var-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* 14. Nonogram */
.cp-nono-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-nono-controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}
.cp-nono-table {
  border-collapse: collapse;
  background: #091322;
  border: 2px solid #1e3357;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 16px;
}
.cp-nono-col-clue {
  background: #0c1729;
  border-bottom: 2px solid #1e3357;
  border-left: 1px solid #15243d;
  padding: 4px 2px;
  font-size: 0.68rem;
  color: #f6b624;
  vertical-align: bottom;
  text-align: center;
}
.cp-nono-col-clue span {
  display: block;
}
.cp-nono-row-clue {
  background: #0c1729;
  border-right: 2px solid #1e3357;
  border-top: 1px solid #15243d;
  padding: 4px 6px;
  font-size: 0.72rem;
  color: #f6b624;
  text-align: right;
  white-space: nowrap;
}
.cp-nono-cell {
  width: 28px;
  height: 28px;
  background: #050a14;
  border: 1px solid #132139;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: #ef4444;
  transition: background 0.1s ease;
}
.cp-nono-cell.is-filled {
  background: #f6b624 !important;
}
.cp-nono-cell.is-crossed {
  color: #ef4444;
  font-weight: 900;
}
.cp-nono-actions {
  display: flex;
  gap: 12px;
}

/* 15. Sokoban Modern Responsive Premium Styles */
#theater-game-sokoban .cp-arcade-single-game-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px;
  background: rgba(13, 25, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.cp-sokoban-hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 18px;
}
.cp-sokoban-title-area h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0 0 4px;
}
.cp-sokoban-title-area p {
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 0;
}

/* Modern 30-Level Quick Navigator */
.cp-sokoban-level-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 4px 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.cp-soko-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cp-soko-nav-btn:hover:not(:disabled) {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}
.cp-soko-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.cp-soko-level-badge-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cp-soko-level-pill {
  font-size: 0.88rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
  transition: all 0.15s ease;
}
.cp-soko-level-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.6);
}
.cp-soko-level-dropdown {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.cp-sokoban-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  width: 100%;
}
.cp-sokoban-scoreboard .cp-stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
}
.cp-sokoban-scoreboard .cp-stat-box span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}
.cp-sokoban-scoreboard .cp-stat-box strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f1f5f9;
}
.cp-sokoban-scoreboard .cp-stat-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f59e0b;
  text-align: center;
}

.cp-sokoban-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cp-sokoban-grid {
  display: grid;
  gap: 4px;
  width: min(440px, calc(100vw - 36px));
  max-width: 100%;
  background: #070d18;
  border: 3px solid #1e3357;
  border-radius: 16px;
  padding: 8px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 6px rgba(0, 0, 0, 0.4);
  margin: 0 auto 16px;
}

.cp-soko-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 3.8vw, 1.7rem);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  user-select: none;
  transition: transform 0.1s ease, background 0.15s ease;
}
.cp-soko-cell.is-wall {
  background: linear-gradient(135deg, #1b3050 0%, #0f1c30 100%);
  border: 1px solid #284470;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), inset 0 -2px 4px rgba(0,0,0,0.6);
  border-radius: 6px;
}
.cp-soko-cell.is-target {
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px dashed rgba(245, 158, 11, 0.6);
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
}
.cp-soko-cell.is-box {
  background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
  border: 1.5px solid #d97706;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255,255,255,0.2);
}
.cp-soko-cell.is-box-on-target {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: 2px solid #34d399;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.6), inset 0 1px 2px rgba(255,255,255,0.3);
  animation: cpSokoBoxTargetPulse 0.3s ease-out;
}
.cp-soko-cell.is-player {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}
.cp-soko-cell.is-player-on-target {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 8px;
}

@keyframes cpSokoBoxTargetPulse {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.cp-sokoban-dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.cp-dpad-middle {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cp-dpad-btn {
  width: 50px;
  height: 50px;
  background: #132238;
  border: 1.5px solid #284470;
  color: #e2e8f0;
  border-radius: 14px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.12s ease;
  user-select: none;
  touch-action: manipulation;
}
.cp-dpad-btn:hover {
  background: #1e3357;
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
}
.cp-dpad-btn:active {
  background: #38bdf8;
  color: #040810;
  transform: scale(0.95);
}
.cp-dpad-center {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  opacity: 0.6;
}

.cp-sokoban-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}
.cp-sokoban-actions .cp-game-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
}

/* FULLSCREEN SOKOBAN */
:fullscreen #theater-game-sokoban.is-active,
.cp-theater-stage:fullscreen #theater-game-sokoban.is-active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
:fullscreen #theater-game-sokoban.is-active .cp-arcade-single-game-wrap,
.cp-theater-stage:fullscreen #theater-game-sokoban.is-active .cp-arcade-single-game-wrap {
  max-width: min(600px, 92vw) !important;
  max-height: 95vh !important;
  padding: 16px 20px !important;
  margin: auto !important;
  overflow: visible !important;
}
:fullscreen #theater-game-sokoban.is-active .cp-sokoban-grid,
.cp-theater-stage:fullscreen #theater-game-sokoban.is-active .cp-sokoban-grid {
  width: min(480px, 50vh, 88vw) !important;
}

/* MOBILE SOKOBAN */
@media (max-width: 600px) {
  #theater-game-sokoban .cp-arcade-single-game-wrap {
    padding: 16px 10px;
  }
  .cp-sokoban-title-area h2 {
    font-size: 1.3rem;
  }
  .cp-sokoban-grid {
    width: calc(100vw - 24px);
    gap: 2px;
    padding: 6px;
  }
  .cp-soko-cell {
    border-radius: 5px;
    font-size: 1.1rem;
  }
  .cp-dpad-btn {
    width: 44px;
    height: 44px;
  }
  .cp-dpad-center {
    width: 44px;
    height: 44px;
  }
}

/* 16. Connect 4 */
.cp-c4-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-c4-scoreboard {
  max-width: 480px !important;
}
.cp-c4-col-drops {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  width: min(460px, calc(100vw - 32px));
  margin-bottom: 6px;
}
.cp-c4-drop-btn {
  background: transparent;
  border: none;
  color: #f6b624;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.15s ease;
}
.cp-c4-drop-btn:hover {
  transform: translateY(3px);
  color: #ffffff;
}
.cp-c4-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 8px;
  width: min(460px, calc(100vw - 32px));
  aspect-ratio: 7 / 6;
  background: #1e3a8a;
  border: 6px solid #172554;
  border-radius: 16px;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
}
.cp-c4-slot {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  background: #070e1c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  overflow: hidden;
}
.cp-c4-disc {
  width: 86%;
  height: 86%;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  animation: cpC4Drop 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
@keyframes cpC4Drop {
  0% { transform: translateY(-300%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cp-c4-disc.disc-red {
  background: radial-gradient(circle at 35% 35%, #f87171 0%, #dc2626 60%, #991b1b 100%);
  border: 2px solid #ef4444;
}
.cp-c4-disc.disc-yellow {
  background: radial-gradient(circle at 35% 35%, #fef08a 0%, #eab308 60%, #a16207 100%);
  border: 2px solid #facc15;
}
.cp-c4-disc.is-winning-disc {
  animation: cpTargetPulse 0.8s infinite alternate ease-in-out;
  border-color: #ffffff !important;
  box-shadow: 0 0 16px #ffffff;
}
.cp-c4-player-box--yellow.is-turn {
  border-color: rgba(234, 179, 8, 0.85);
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.35), 0 4px 14px rgba(0, 0, 0, 0.4);
}
.cp-c4-disc-badge.cp-disc-yellow {
  background: transparent;
  font-size: 11px;
}

/* ==========================================================================
   17. MAHJONG SOLITAIRE 2026 MASTER EDITION
   ========================================================================== */
#theater-game-mahjong {
  width: 100% !important;
  max-width: 100% !important;
}
#theater-game-mahjong .cp-arcade-single-game-wrap,
#theater-game-mahjong .cp-theater-single-wrap,
#theater-game-mahjong .cp-mahjong-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.cp-mahjong-container {
  padding: 16px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  background: radial-gradient(circle at 50% 15%, #0d2b1f 0%, #081a13 70%, #030a07 100%) !important;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(16, 185, 129, 0.25);
  user-select: none;
}

/* Header & Badges */
.cp-mahjong-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.cp-mahjong-badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.cp-mahjong-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: #06281a;
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.cp-mahjong-badge-pulse {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border-color: #059669;
  animation: cpMahjongPulse 2s infinite ease-in-out;
}
@keyframes cpMahjongPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
.cp-mahjong-badge-glow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.cp-mahjong-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp-mahjong-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.cp-mahjong-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Responsive Text Toggles */
.cp-mlayout-short,
.cp-mtheme-short,
.cp-mlabel-short {
  display: none !important;
}
.cp-mlayout-full,
.cp-mtheme-full,
.cp-mlabel-full {
  display: inline !important;
}

/* Controls Toolbar */
.cp-mahjong-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(8, 26, 19, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 14px;
  padding: 8px 16px;
}
.cp-mahjong-ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-mahjong-ctrl-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #6ee7b7;
  letter-spacing: 0.05em;
}
.cp-mahjong-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cp-mahjong-layout-btn,
.cp-mahjong-theme-btn {
  background: #061c14;
  border: 1px solid #143828;
  color: #94a3b8;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.cp-mahjong-layout-btn:hover,
.cp-mahjong-theme-btn:hover {
  border-color: #10b981;
  color: #f8fafc;
  background: #0d2e20;
}
.cp-mahjong-layout-btn.is-active,
.cp-mahjong-theme-btn.is-active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

/* Scoreboard HUD */
.cp-mahjong-scoreboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.cp-mahjong-stat-card {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #061f16, #092c1f);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.cp-mahjong-stat-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6ee7b7;
  white-space: nowrap;
}
.cp-mahjong-stat-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cp-mahjong-stat-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}
.cp-mahjong-status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: #06281a;
  color: #34d399;
  border: 1px solid #059669;
  white-space: nowrap;
}

/* Board Wrap & 3D Stage Area */
.cp-mahjong-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
}
.cp-mahjong-stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 880px;
  aspect-ratio: 15 / 10;
  background: radial-gradient(circle at 50% 50%, #0a3525 0%, #062318 65%, #03120c 100%);
  border: 5px solid #1a4936;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 3px 14px rgba(0, 0, 0, 0.75), 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

/* Dynamic 3D Mahjong Board */
.cp-mahjong-board {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  touch-action: manipulation;
  user-select: none;
}

/* Authentic Ivory & 3D Mahjong Tiles */
.cp-mahjong-tile {
  position: absolute;
  box-sizing: border-box;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: manipulation;
  transform: translate(calc(var(--layer, 0) * -3px), calc(var(--layer, 0) * -4px));
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  z-index: var(--z-index, 1);
  opacity: 1 !important;
}

/* Theme: Ivory Classic (Default) */
.cp-mahjong-container:not(.theme-jade) .cp-mahjong-tile {
  background: linear-gradient(155deg, #ffffff 0%, #faf5ec 65%, #eee4d3 100%);
  border: 1.5px solid #dcd1be;
  border-bottom: 4.5px solid #bfae96;
  border-right: 3.5px solid #ccbfa8;
  border-left: 1.5px solid #f2eadc;
  border-top: 1.5px solid #ffffff;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.45);
  color: #1e293b;
}

/* Theme: Imperial Jade */
.cp-mahjong-container.theme-jade .cp-mahjong-tile {
  background: linear-gradient(155deg, #065f46 0%, #047857 60%, #064e3b 100%);
  border: 1.5px solid #34d399;
  border-bottom: 4.5px solid #064e3b;
  border-right: 3.5px solid #022c22;
  border-left: 1.5px solid #059669;
  border-top: 1.5px solid #6ee7b7;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.65);
  color: #f0fdf4;
}

/* Tile Components: Glyph & Corner Badge */
.cp-tile-glyph {
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  line-height: 1;
  pointer-events: none;
  margin-top: 4px;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
.cp-tile-badge {
  position: absolute;
  top: 3px;
  left: 4px;
  font-size: clamp(0.55rem, 0.85vw, 0.66rem);
  font-weight: 900;
  line-height: 1;
  color: #334155;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 3px;
  border-radius: 3px;
  pointer-events: none;
  letter-spacing: -0.02em;
}
.cp-mahjong-container.theme-jade .cp-tile-badge {
  color: #6ee7b7;
  background: rgba(0, 0, 0, 0.28);
}

/* Free Tiles: Obvious Golden Glow & Pointer */
.cp-mahjong-tile.is-free {
  cursor: pointer;
  border-color: #f59e0b !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5), 2px 4px 8px rgba(0, 0, 0, 0.45) !important;
}
.cp-mahjong-tile.is-free:hover {
  transform: translate(calc(var(--layer, 0) * -3px), calc(var(--layer, 0) * -4px - 6px)) scale(1.03);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.85), 2px 10px 18px rgba(0, 0, 0, 0.55) !important;
  z-index: 95 !important;
}

/* Blocked Tiles: Normal solid ivory with slight shading, not transparent! */
.cp-mahjong-tile.is-blocked {
  cursor: default;
  filter: brightness(0.92) saturate(0.85);
  border-color: #cfc2ad !important;
}
.cp-mahjong-container.theme-jade .cp-mahjong-tile.is-blocked {
  filter: brightness(0.84);
  border-color: #065f46 !important;
}

.cp-mahjong-tile.is-selected {
  border-color: #ef4444 !important;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.95), 0 8px 20px rgba(0, 0, 0, 0.6) !important;
  transform: translate(calc(var(--layer, 0) * -3px), calc(var(--layer, 0) * -4px - 8px)) scale(1.08) !important;
  z-index: 100 !important;
}
.cp-mahjong-tile.is-hint {
  border-color: #10b981 !important;
  box-shadow: 0 0 22px #10b981, 0 0 38px rgba(16, 185, 129, 0.9) !important;
  animation: cpMahjongHintPulse 0.5s infinite alternate ease-in-out;
  z-index: 99 !important;
}
@keyframes cpMahjongHintPulse {
  0% { transform: translate(calc(var(--layer, 0) * -3px), calc(var(--layer, 0) * -4px)) scale(1); }
  100% { transform: translate(calc(var(--layer, 0) * -3px), calc(var(--layer, 0) * -4px - 5px)) scale(1.06); }
}

.cp-mahjong-tile.is-shaking {
  animation: cpMahjongShake 0.35s ease-in-out;
}
@keyframes cpMahjongShake {
  0%, 100% { transform: translate(calc(var(--layer, 0) * -3px), calc(var(--layer, 0) * -4px)); }
  25% { transform: translate(calc(var(--layer, 0) * -3px - 6px), calc(var(--layer, 0) * -4px)); }
  50% { transform: translate(calc(var(--layer, 0) * -3px + 6px), calc(var(--layer, 0) * -4px)); }
  75% { transform: translate(calc(var(--layer, 0) * -3px - 4px), calc(var(--layer, 0) * -4px)); }
}
.cp-mahjong-tile.is-matching {
  animation: cpMahjongMatchPop 0.28s ease-out forwards;
  pointer-events: none;
}
@keyframes cpMahjongMatchPop {
  0% { transform: translate(calc(var(--layer, 0) * -3px), calc(var(--layer, 0) * -4px)) scale(1); opacity: 1; }
  50% { transform: translate(calc(var(--layer, 0) * -3px), calc(var(--layer, 0) * -4px - 10px)) scale(1.15); opacity: 0.85; filter: brightness(1.4); }
  100% { transform: translate(calc(var(--layer, 0) * -3px), calc(var(--layer, 0) * -4px - 20px)) scale(0.6); opacity: 0; }
}

/* Standby / Start Overlay Banner */
.cp-mahjong-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 15, 10, 0.88);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.2s ease;
  pointer-events: auto;
}
.cp-mahjong-overlay.is-hidden {
  opacity: 0;
  pointer-events: none !important;
  display: none !important;
}
.cp-mahjong-overlay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 24px;
  max-width: 480px;
}
.cp-mahjong-overlay-icon {
  font-size: 2.8rem;
  line-height: 1;
}
.cp-mahjong-overlay-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.05em;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}
.cp-mahjong-overlay-sub {
  margin: 0;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.45;
}
.cp-mahjong-btn-overlay-start {
  margin-top: 8px;
  padding: 10px 24px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: #34d399 !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.5) !important;
}

/* Deadlock (No Moves Left) Alert Overlay */
.cp-mahjong-deadlock {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  transition: opacity 0.25s ease;
  padding: 16px;
}
.cp-mahjong-deadlock.is-hidden {
  opacity: 0;
  pointer-events: none !important;
  display: none !important;
}
.cp-mahjong-deadlock-box {
  background: linear-gradient(150deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.45), 0 20px 40px rgba(0, 0, 0, 0.7);
  border-radius: 14px;
  padding: 20px 26px;
  max-width: 440px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: cpMahjongDeadlockPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes cpMahjongDeadlockPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cp-mahjong-deadlock-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.cp-mahjong-deadlock-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.02em;
}
.cp-mahjong-deadlock-desc {
  margin: 0;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
}
.cp-mahjong-btn-deadlock {
  margin-top: 4px;
  padding: 10px 22px !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5) !important;
  animation: cpDeadlockBtnPulse 1.5s infinite alternate ease-in-out;
}
@keyframes cpDeadlockBtnPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); box-shadow: 0 0 24px rgba(245, 158, 11, 0.85) !important; }
}

/* Bottom Action Bar */
.cp-mahjong-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
}
.cp-mahjong-actions .cp-game-btn {
  flex: 1;
  min-width: 90px;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  justify-content: center;
}
.cp-mahjong-rules-tip {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
  max-width: 600px;
}
.cp-mahjong-rules-tip strong {
  color: #6ee7b7;
}

/* Mobile Responsiveness (< 768px) */
@media (max-width: 767px) {
  .cp-mlayout-short,
  .cp-mtheme-short,
  .cp-mlabel-short {
    display: inline !important;
  }
  .cp-mlayout-full,
  .cp-mtheme-full,
  .cp-mlabel-full {
    display: none !important;
  }

  .cp-mahjong-container {
    padding: 10px 8px !important;
    gap: 10px !important;
  }
  .cp-mahjong-title-box h2 {
    font-size: 1.15rem;
  }
  .cp-mahjong-title-box p {
    display: none;
  }
  .cp-mahjong-controls-bar {
    padding: 6px 8px !important;
    gap: 6px !important;
    flex-direction: column !important;
  }
  .cp-mahjong-ctrl-group {
    width: 100% !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  .cp-mahjong-ctrl-label {
    font-size: 0.68rem !important;
  }
  .cp-mahjong-btn-group {
    display: flex !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .cp-mahjong-layout-btn,
  .cp-mahjong-theme-btn {
    font-size: 0.68rem !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
  }

  /* Scoreboard 3-Card on Mobile */
  .cp-mahjong-scoreboard {
    gap: 6px !important;
  }
  .cp-mahjong-stat-card {
    padding: 6px 4px !important;
    gap: 2px !important;
    border-radius: 10px !important;
  }
  .cp-mahjong-stat-label {
    font-size: 0.6rem !important;
    letter-spacing: 0 !important;
  }
  .cp-mahjong-stat-val {
    font-size: 1.1rem !important;
  }
  .cp-mahjong-stat-sub {
    font-size: 0.58rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .cp-mahjong-status-pill {
    font-size: 0.6rem !important;
    padding: 2px 4px !important;
  }

  .cp-mahjong-stage-wrapper {
    aspect-ratio: 16 / 11;
  }
  .cp-mahjong-actions .cp-game-btn {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

/* Fullscreen Overrides (Zero Scrollbars) */
:fullscreen #theater-game-mahjong.is-active,
.cp-theater-stage:fullscreen #theater-game-mahjong.is-active,
:-webkit-full-screen #theater-game-mahjong.is-active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}
:fullscreen #theater-game-mahjong.is-active .cp-mahjong-container,
.cp-theater-stage:fullscreen #theater-game-mahjong.is-active .cp-mahjong-container,
:-webkit-full-screen #theater-game-mahjong.is-active .cp-mahjong-container {
  max-height: 98vh !important;
  overflow: hidden !important;
  padding: 8px 14px !important;
  gap: 8px !important;
  margin: auto !important;
}
:fullscreen #theater-game-mahjong.is-active .cp-mahjong-stage-wrapper,
.cp-theater-stage:fullscreen #theater-game-mahjong.is-active .cp-mahjong-stage-wrapper,
:-webkit-full-screen #theater-game-mahjong.is-active .cp-mahjong-stage-wrapper {
  max-height: 60vh !important;
  aspect-ratio: 16 / 10 !important;
}

/* 18. Jigsaw Picture Puzzle */
.cp-jigsaw-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-jigsaw-thumb-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0d1b32;
  border: 1px solid #1e3357;
  border-radius: 10px;
  padding: 6px 12px;
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
}
.cp-jigsaw-thumb-card canvas {
  border-radius: 6px;
  border: 1px solid #1e3357;
}
.cp-jigsaw-grid {
  display: grid;
  gap: 6px;
  width: min(420px, calc(100vw - 32px));
  aspect-ratio: 1 / 1;
  background: #091322;
  border: 4px solid #1e3357;
  border-radius: 16px;
  padding: 8px;
  box-sizing: border-box;
  margin-bottom: 14px;
}
.cp-jigsaw-tile {
  background-image: linear-gradient(135deg, #0284c7 0%, #0f766e 50%, #f6b624 100%);
  background-size: 300% 300%;
  border: 2px solid #1e3357;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
}
.cp-jigsaw-tile:hover {
  border-color: #f6b624;
  transform: scale(1.02);
}
.cp-jigsaw-tile.is-selected {
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  transform: scale(1.05);
}
.cp-jigsaw-tile.is-correct {
  border-color: #22c55e;
}
.cp-jigsaw-num {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 5px;
  border-radius: 4px;
}
.cp-jigsaw-check {
  font-size: 1.2rem;
  font-weight: 900;
  color: #22c55e;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* 19. Bubble Shooter */
.cp-bubble-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-bubble-canvas {
  width: min(440px, calc(100vw - 32px));
  max-width: 100%;
  height: auto;
  border: 4px solid #1e3357;
  border-radius: 16px;
  background: #060d19;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  cursor: crosshair;
  margin-bottom: 14px;
}

/* 20. Flappy Bird */
.cp-flappy-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-flappy-canvas {
  width: min(380px, calc(100vw - 32px));
  max-width: 100%;
  height: auto;
  border: 4px solid #1e3357;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  margin-bottom: 14px;
  touch-action: manipulation;
}

/* ==========================================================================
   21. CHROME DINO RUN 2026 RETRO ARCADE EDITION
   ========================================================================== */
#theater-game-dino-run {
  width: 100% !important;
  max-width: 100% !important;
}
#theater-game-dino-run .cp-arcade-single-game-wrap,
#theater-game-dino-run .cp-theater-single-wrap,
#theater-game-dino-run .cp-dino-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.cp-dino-container {
  padding: 16px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  background: radial-gradient(circle at 50% 10%, #0d1e38 0%, #080f1d 70%, #030712 100%) !important;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(34, 197, 94, 0.25);
  user-select: none;
}

/* Header & Badges */
.cp-dino-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.cp-dino-badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.cp-dino-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: #0f2744;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.cp-dino-badge-pulse {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border-color: #22c55e;
  animation: cpDinoPulse 2s infinite ease-in-out;
}
@keyframes cpDinoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
.cp-dino-badge-glow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.cp-dino-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp-dino-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.cp-dino-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Responsive Text Toggles */
.cp-dlabel-short,
.cp-dtheme-short,
.cp-ddiff-short {
  display: none !important;
}
.cp-dlabel-full,
.cp-dtheme-full,
.cp-ddiff-full {
  display: inline !important;
}

/* Controls Toolbar */
.cp-dino-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 14px;
  padding: 8px 16px;
}
.cp-dino-ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-dino-ctrl-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
}
.cp-dino-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cp-dino-theme-btn,
.cp-dino-diff-btn {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #94a3b8;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.cp-dino-theme-btn:hover,
.cp-dino-diff-btn:hover {
  border-color: #22c55e;
  color: #f8fafc;
  background: #1e293b;
}
.cp-dino-theme-btn.is-active,
.cp-dino-diff-btn.is-active {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  border-color: #4ade80;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

/* Scoreboard HUD */
.cp-dino-scoreboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.cp-dino-stat-card {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0b172a, #0f223d);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.cp-dino-stat-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  white-space: nowrap;
}
.cp-dino-stat-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cp-dino-stat-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}
.cp-dino-status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: #1e293b;
  color: #4ade80;
  border: 1px solid #16a34a;
  white-space: nowrap;
}

/* Board Wrap & Canvas Wrapper */
.cp-dino-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
}
.cp-dino-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 800 / 260;
  background: #060d19;
  border: 2px solid #1e3357;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-dino-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: pointer;
  touch-action: manipulation;
}

/* Overlay / Standby Banner */
.cp-dino-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 25, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: opacity 0.2s ease;
  pointer-events: auto;
}
.cp-dino-overlay.is-hidden {
  opacity: 0;
  pointer-events: none !important;
  display: none !important;
}
.cp-dino-overlay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 16px 24px;
}
.cp-dino-overlay-icon {
  font-size: 2.5rem;
  line-height: 1;
}
.cp-dino-overlay-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.05em;
  text-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}
.cp-dino-overlay-sub {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Dedicated Mobile Touch Action Pads */
.cp-dino-touch-controls {
  display: none;
  width: 100%;
  max-width: 440px;
  gap: 12px;
  margin-top: 4px;
}
.cp-dino-touch-pad {
  flex: 1;
  min-height: 52px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, filter 0.08s ease;
}
.cp-dino-touch-pad:active {
  transform: scale(0.96);
  filter: brightness(1.2);
}
.cp-dino-pad-jump {
  background: linear-gradient(135deg, #15803d, #166534);
  border-color: #4ade80;
}
.cp-dino-pad-duck {
  background: linear-gradient(135deg, #0369a1, #075985);
  border-color: #38bdf8;
}
.cp-dpad-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.cp-dpad-txt {
  letter-spacing: 0.05em;
}

/* Bottom Controls */
.cp-dino-bottom-controls {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  justify-content: center;
}
.cp-dino-bottom-controls .cp-game-btn {
  flex: 1;
  padding: 9px 16px;
  font-size: 0.85rem;
  justify-content: center;
}
.cp-game-btn.cp-dino-btn-start {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
  border-color: #4ade80 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4) !important;
}
.cp-dino-touch-tip {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}
.cp-dino-touch-tip strong {
  color: #cbd5e1;
}
.cp-dino-touch-tip code {
  background: #0f2744;
  color: #4ade80;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: inherit;
}

/* Mobile Responsive (< 768px) */
@media (max-width: 767px) {
  .cp-dlabel-short,
  .cp-dtheme-short,
  .cp-ddiff-short {
    display: inline !important;
  }
  .cp-dlabel-full,
  .cp-dtheme-full,
  .cp-ddiff-full {
    display: none !important;
  }

  .cp-dino-container {
    padding: 10px 8px !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .cp-dino-title-box h2 {
    font-size: 1.15rem;
  }
  .cp-dino-title-box p {
    display: none;
  }
  .cp-dino-controls-bar {
    padding: 6px 8px !important;
    gap: 6px !important;
    flex-direction: column !important;
  }
  .cp-dino-ctrl-group {
    width: 100% !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  .cp-dino-ctrl-label {
    font-size: 0.68rem !important;
  }
  .cp-dino-btn-group {
    display: flex !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .cp-dino-theme-btn,
  .cp-dino-diff-btn {
    font-size: 0.68rem !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
  }

  /* Scoreboard 3-Card on Mobile */
  .cp-dino-scoreboard {
    gap: 6px !important;
  }
  .cp-dino-stat-card {
    padding: 6px 4px !important;
    gap: 2px !important;
    border-radius: 10px !important;
  }
  .cp-dino-stat-label {
    font-size: 0.6rem !important;
    letter-spacing: 0 !important;
  }
  .cp-dino-stat-val {
    font-size: 1.1rem !important;
  }
  .cp-dino-stat-sub {
    font-size: 0.58rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .cp-dino-status-pill {
    font-size: 0.6rem !important;
    padding: 2px 4px !important;
  }

  /* Reveal Touch Controls on Mobile */
  .cp-dino-touch-controls {
    display: flex !important;
  }
}

/* Fullscreen Overrides (Zero Scrollbars) */
:fullscreen #theater-game-dino-run.is-active,
.cp-theater-stage:fullscreen #theater-game-dino-run.is-active,
#cp-fullscreen-target:fullscreen #theater-game-dino-run.is-active {
  width: 100% !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

:fullscreen .cp-dino-container,
.cp-theater-stage:fullscreen .cp-dino-container,
#cp-fullscreen-target:fullscreen .cp-dino-container {
  width: 100% !important;
  max-width: 960px !important;
  height: auto !important;
  max-height: 98vh !important;
  overflow: hidden !important;
  padding: 10px 20px !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

:fullscreen .cp-dino-badge-row,
:fullscreen .cp-dino-subtitle,
:fullscreen .cp-dino-touch-tip {
  display: none !important;
}

:fullscreen .cp-dino-header {
  gap: 4px !important;
}
:fullscreen .cp-dino-title-box {
  gap: 0 !important;
}
:fullscreen .cp-dino-title {
  font-size: 1.15rem !important;
}
:fullscreen .cp-dino-controls-bar {
  padding: 4px 10px !important;
  gap: 6px !important;
}
:fullscreen .cp-dino-scoreboard {
  gap: 6px !important;
}
:fullscreen .cp-dino-stat-card {
  padding: 4px 8px !important;
  gap: 2px !important;
}
:fullscreen .cp-dino-stat-val {
  font-size: 1.15rem !important;
}

:fullscreen .cp-dino-canvas-wrapper {
  max-width: 740px !important;
  max-height: 220px !important;
}

:fullscreen .cp-dino-bottom-controls {
  margin: 0 auto !important;
  gap: 8px !important;
}
:fullscreen .cp-dino-bottom-controls .cp-game-btn {
  padding: 6px 14px !important;
  font-size: 0.78rem !important;
}

/* 22. Breakout */
.cp-breakout-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-breakout-canvas {
  width: min(460px, calc(100vw - 32px));
  max-width: 100%;
  height: auto;
  border: 4px solid #1e3357;
  border-radius: 16px;
  background: #060d19;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  cursor: ew-resize;
  margin-bottom: 14px;
  touch-action: none;
}

/* 23. Helicopter */
.cp-heli-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-heli-canvas {
  width: min(520px, calc(100vw - 32px));
  max-width: 100%;
  height: auto;
  border: 4px solid #1e3357;
  border-radius: 16px;
  background: #09101d;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  margin-bottom: 14px;
  touch-action: none;
}

/* 24. Fruit Ninja */
.cp-fruitninja-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-fruitninja-canvas {
  width: min(480px, calc(100vw - 32px));
  max-width: 100%;
  height: auto;
  border: 4px solid #1e3357;
  border-radius: 16px;
  background: #1e1b18;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  cursor: crosshair;
  margin-bottom: 14px;
  touch-action: none;
}

/* 25. Endless Runner */
.cp-runner-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-runner-canvas {
  width: min(420px, calc(100vw - 32px));
  max-width: 100%;
  height: auto;
  border: 4px solid #1e3357;
  border-radius: 16px;
  background: #0f172a;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 10px;
}
.cp-runner-dpad {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

/* 26. Reaction Time */
.cp-react-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-react-box {
  width: min(440px, calc(100vw - 32px));
  height: 240px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
  margin-bottom: 16px;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}
.cp-react-box.is-waiting {
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
  border: 3px solid #ef4444;
}
.cp-react-box.is-ready {
  background: linear-gradient(135deg, #15803d 0%, #052e16 100%);
  border: 3px solid #22c55e;
  animation: cpTargetPulse 0.4s infinite alternate;
}
.cp-react-box.is-toosoon {
  background: linear-gradient(135deg, #9a3412 0%, #431407 100%);
  border: 3px solid #f97316;
}
.cp-react-box.is-result {
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
  border: 3px solid #14b8a6;
}
.cp-react-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}
.cp-react-box h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px;
}
.cp-react-box p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* 27. Aim Trainer */
.cp-aim-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-aim-board {
  width: min(480px, calc(100vw - 32px));
  height: 340px;
  background: #091322;
  border: 4px solid #1e3357;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  cursor: crosshair;
  margin-bottom: 14px;
}
.cp-aim-target {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f87171 0%, #dc2626 60%, #7f1d1d 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.8);
  cursor: pointer;
  animation: cpTilePop 0.2s ease-out;
}

/* 28. Color Match */
.cp-colormatch-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-colormatch-card {
  width: min(440px, calc(100vw - 32px));
  height: 180px;
  background: #091322;
  border: 3px solid #1e3357;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  margin-bottom: 14px;
}
.cp-colormatch-word {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.cp-colormatch-btns {
  display: flex;
  gap: 16px;
  width: min(440px, calc(100vw - 32px));
  margin-bottom: 12px;
}
.cp-btn--yes, .cp-btn--no {
  flex: 1;
  padding: 14px 20px !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  border-radius: 12px !important;
}
.cp-btn--yes {
  background: #22c55e !important;
  color: #052e16 !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4) !important;
}
.cp-btn--no {
  background: #ef4444 !important;
  color: #450a0a !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4) !important;
}

/* 29. Stack Game */
.cp-stack-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-stack-canvas {
  width: min(400px, calc(100vw - 32px));
  max-width: 100%;
  height: auto;
  border: 4px solid #1e3357;
  border-radius: 16px;
  background: #060d19;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  margin-bottom: 14px;
  touch-action: manipulation;
}

/* Fullscreen Zero-Scroll Rules for Games 11-29 */
:fullscreen .cp-memory-grid,
.cp-theater-stage:fullscreen .cp-memory-grid {
  width: min(calc(100vh - 170px), calc(100vw - 24px), 480px) !important;
}
:fullscreen .cp-sliding-board,
.cp-theater-stage:fullscreen .cp-sliding-board {
  width: min(calc(100vh - 170px), calc(100vw - 24px), 460px) !important;
}
:fullscreen .cp-2048var-board,
.cp-theater-stage:fullscreen .cp-2048var-board {
  width: min(calc(100vh - 170px), calc(100vw - 24px), 480px) !important;
}
:fullscreen .cp-sokoban-grid,
.cp-theater-stage:fullscreen .cp-sokoban-grid {
  width: min(calc(100vh - 220px), calc(100vw - 24px), 440px) !important;
}
:fullscreen .cp-c4-grid,
.cp-theater-stage:fullscreen .cp-c4-grid {
  width: min(calc(100vh - 200px), calc(100vw - 24px), 520px) !important;
}
:fullscreen .cp-mahjong-board,
.cp-theater-stage:fullscreen .cp-mahjong-board {
  width: min(calc(100vh - 170px), calc(100vw - 24px), 540px) !important;
}
:fullscreen .cp-jigsaw-grid,
.cp-theater-stage:fullscreen .cp-jigsaw-grid {
  width: min(calc(100vh - 200px), calc(100vw - 24px), 460px) !important;
}
:fullscreen .cp-bubble-canvas,
.cp-theater-stage:fullscreen .cp-bubble-canvas {
  width: min(calc(100vh - 170px), calc(100vw - 24px), 460px) !important;
}
:fullscreen .cp-flappy-canvas,
.cp-theater-stage:fullscreen .cp-flappy-canvas {
  width: min(calc(100vh - 180px), calc(100vw - 24px), 400px) !important;
}
:fullscreen .cp-dino-canvas,
.cp-theater-stage:fullscreen .cp-dino-canvas {
  width: min(calc(100vh - 200px), calc(100vw - 24px), 640px) !important;
}
:fullscreen .cp-breakout-canvas,
.cp-theater-stage:fullscreen .cp-breakout-canvas {
  width: min(calc(100vh - 180px), calc(100vw - 24px), 480px) !important;
}
:fullscreen .cp-heli-canvas,
.cp-theater-stage:fullscreen .cp-heli-canvas {
  width: min(calc(100vh - 180px), calc(100vw - 24px), 540px) !important;
}
:fullscreen .cp-fruitninja-canvas,
.cp-theater-stage:fullscreen .cp-fruitninja-canvas {
  width: min(calc(100vh - 180px), calc(100vw - 24px), 500px) !important;
}
:fullscreen .cp-runner-canvas,
.cp-theater-stage:fullscreen .cp-runner-canvas {
  width: min(calc(100vh - 200px), calc(100vw - 24px), 440px) !important;
}
:fullscreen .cp-react-box,
.cp-theater-stage:fullscreen .cp-react-box {
  width: min(calc(100vh - 200px), calc(100vw - 24px), 480px) !important;
}
:fullscreen .cp-aim-board,
.cp-theater-stage:fullscreen .cp-aim-board {
  width: min(calc(100vh - 200px), calc(100vw - 24px), 520px) !important;
}
:fullscreen .cp-colormatch-card,
.cp-theater-stage:fullscreen .cp-colormatch-card {
  width: min(calc(100vh - 240px), calc(100vw - 24px), 460px) !important;
}
:fullscreen .cp-stack-canvas,
.cp-theater-stage:fullscreen .cp-stack-canvas {
  width: min(calc(100vh - 180px), calc(100vw - 24px), 420px) !important;
}

/* ==========================================================================
   30. WORD SEARCH MATRIX MODERN OBSIDIAN RESPONSIVE STYLES
   ========================================================================== */
#theater-game-word-search .cp-arcade-single-game-wrap,
#theater-game-word-search.cp-theater-view .cp-arcade-single-game-wrap {
  background: #091322 !important;
  border: 1px solid #1e3357 !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  padding: 24px 20px !important;
  box-sizing: border-box !important;
  color: #ffffff !important;
}

#theater-game-word-search .cp-ws-hud {
  text-align: center;
  margin-bottom: 18px;
}
#theater-game-word-search .cp-ws-title-area h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 6px !important;
}
#theater-game-word-search .cp-ws-title-area p {
  color: #94a3b8 !important;
  font-size: 0.88rem !important;
  margin: 0 !important;
}

#theater-game-word-search .cp-ws-scoreboard {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto 18px auto !important;
  box-sizing: border-box !important;
}
#theater-game-word-search .cp-ws-scoreboard .cp-stat-box {
  background: #0d1b32 !important;
  border: 1px solid #1e3357 !important;
  border-radius: 12px !important;
  padding: 8px 6px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 58px !important;
}
#theater-game-word-search .cp-ws-scoreboard .cp-stat-box span {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 2px !important;
}
#theater-game-word-search .cp-ws-scoreboard .cp-stat-box strong {
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  color: #f6b624 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

#theater-game-word-search .cp-ws-board-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}

#theater-game-word-search .cp-ws-grid {
  display: grid !important;
  grid-template-columns: repeat(10, 1fr) !important;
  grid-template-rows: repeat(10, 1fr) !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: 460px !important;
  aspect-ratio: 1 / 1 !important;
  background: #040912 !important;
  border: 3px solid #1e3357 !important;
  border-radius: 18px !important;
  padding: 8px !important;
  box-sizing: border-box !important;
  margin: 0 auto 16px auto !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  touch-action: none !important;
}

#theater-game-word-search .cp-ws-cell {
  all: unset !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: #0d1b32 !important;
  border: 1px solid #1e3357 !important;
  border-radius: 8px !important;
  font-size: clamp(0.72rem, 2.6vw, 1.15rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.12s ease !important;
}
#theater-game-word-search .cp-ws-cell:hover:not(.is-permanent) {
  border-color: #f6b624 !important;
  background: #14284b !important;
  color: #f6b624 !important;
  transform: scale(1.05) !important;
}
#theater-game-word-search .cp-ws-cell.is-selected {
  background: #f6b624 !important;
  color: #070e1c !important;
  border-color: #f6b624 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 12px rgba(246, 182, 36, 0.6) !important;
  transform: scale(1.06) !important;
}
#theater-game-word-search .cp-ws-cell.is-permanent {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5) !important;
}

#theater-game-word-search .cp-ws-bank {
  width: 100% !important;
  max-width: 480px !important;
  background: #0d1b32 !important;
  border: 1px solid #1e3357 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  text-align: center !important;
  margin-bottom: 16px !important;
  box-sizing: border-box !important;
}
#theater-game-word-search .cp-ws-bank-title {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 8px !important;
  display: block !important;
}
#theater-game-word-search .cp-ws-word-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: center !important;
}
#theater-game-word-search .cp-ws-chip {
  background: #101e35 !important;
  border: 1px solid #1e3357 !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.04em !important;
  transition: all 0.2s ease !important;
}
#theater-game-word-search .cp-ws-chip.is-found {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
  text-decoration: line-through !important;
  opacity: 0.75 !important;
}

#theater-game-word-search .cp-ws-actions {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  width: 100% !important;
}
#theater-game-word-search .cp-ws-actions .cp-game-btn {
  padding: 10px 24px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
}

/* FULLSCREEN WORD SEARCH */
:fullscreen #theater-game-word-search.is-active,
.cp-theater-stage:fullscreen #theater-game-word-search.is-active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
:fullscreen #theater-game-word-search.is-active .cp-arcade-single-game-wrap,
.cp-theater-stage:fullscreen #theater-game-word-search.is-active .cp-arcade-single-game-wrap {
  max-width: min(600px, 92vw) !important;
  max-height: 95vh !important;
  padding: 16px 20px !important;
  margin: auto !important;
  overflow: visible !important;
}
:fullscreen #theater-game-word-search.is-active .cp-ws-grid,
.cp-theater-stage:fullscreen #theater-game-word-search.is-active .cp-ws-grid {
  width: min(460px, 50vh, 88vw) !important;
}

/* MOBILE RESPONSIVE STYLES FOR WORD SEARCH */
@media (max-width: 600px) {
  #theater-game-word-search .cp-arcade-single-game-wrap {
    padding: 16px 10px !important;
  }
  #theater-game-word-search .cp-ws-scoreboard {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  #theater-game-word-search .cp-ws-grid {
    gap: 3px !important;
    padding: 5px !important;
    width: calc(100vw - 24px) !important;
    max-width: 360px !important;
  }
}

/* ==========================================================================
   31. HANGMAN WORD MYSTERY STYLES
   ========================================================================== */
.cp-hm-board-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}
.cp-hm-canvas {
  width: min(260px, calc(100vw - 32px)) !important;
  height: auto !important;
  background: #091322 !important;
  border: 3px solid #1e3357 !important;
  border-radius: 14px !important;
  margin-bottom: 12px !important;
}
.cp-hm-blanks {
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
  margin-bottom: 14px !important;
  flex-wrap: wrap !important;
}
.cp-hm-blank {
  width: 32px !important;
  height: 42px !important;
  border-bottom: 3px solid #f6b624 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
}
.cp-hm-blank.is-revealed {
  animation: cpTilePop 0.2s ease !important;
}
.cp-hm-blank.is-failed {
  color: #ef4444;
  border-color: #ef4444;
}
.cp-hm-keypad {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 440px;
  margin-bottom: 14px;
}
.cp-hm-key {
  width: 34px;
  height: 38px;
  background: #101e35;
  border: 1px solid #1e3357;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.12s ease;
}
.cp-hm-key:hover:not(:disabled) {
  border-color: #f6b624;
  color: #f6b624;
}
.cp-hm-key:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* 32. Mini Crossword */
.cp-cw-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-cw-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  width: 100%;
  max-width: 580px;
  margin-bottom: 14px;
}
.cp-cw-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: min(300px, calc(100vw - 32px));
  aspect-ratio: 1 / 1;
  background: #091322;
  border: 3px solid #1e3357;
  border-radius: 14px;
  padding: 6px;
  box-sizing: border-box;
}
.cp-cw-cell {
  position: relative;
  background: #0f1d33;
  border: 1px solid #1e3357;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.cp-cw-cell.is-focused {
  border-color: #f6b624;
  box-shadow: 0 0 10px rgba(246, 182, 36, 0.4);
}
.cp-cw-num {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 0.65rem;
  color: #f6b624;
  font-weight: 800;
}
.cp-cw-letter {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
}
.cp-cw-clues-box {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  background: #091322;
  border: 2px solid #1e3357;
  border-radius: 14px;
  padding: 10px;
  box-sizing: border-box;
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
}
.cp-cw-clue-group h4 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: #f6b624;
  font-weight: 800;
}
.cp-cw-clue-item {
  font-size: 0.74rem;
  color: #94a3b8;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 4px;
}
.cp-cw-clue-item:hover {
  background: #101e35;
}
.cp-cw-clue-item.is-active {
  background: #1e3357;
  color: #ffffff;
  font-weight: 700;
}
.cp-cw-actions {
  display: flex;
  gap: 12px;
}

/* 33. Word Scramble */
.cp-scramble-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-scramble-hint-card {
  background: #0d1b32;
  border: 1px solid #1e3357;
  border-radius: 10px;
  padding: 6px 14px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: #94a3b8;
  max-width: 460px;
  text-align: center;
}
.cp-scramble-hint-card strong {
  color: #f6b624;
}
.cp-scramble-slots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cp-scramble-slot {
  width: 44px;
  height: 50px;
  background: #091322;
  border: 2px dashed #334155;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
}
.cp-scramble-slot.is-filled {
  border-style: solid;
  border-color: #f6b624;
  background: #101e35;
}
.cp-scramble-pool {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cp-scramble-chip {
  width: 44px;
  height: 50px;
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border: 2px solid #3b82f6;
  border-radius: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
}
.cp-scramble-chip:disabled {
  opacity: 0.25;
  cursor: default;
}
.cp-scramble-controls {
  display: flex;
  gap: 10px;
}

/* =========================================================================
   34. SPEED TYPING PRO (2026 BENCHMARK EDITION)
   ========================================================================= */
.cp-typing-stage-wrap {
  width: min(880px, calc(100vw - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent !important;
}

/* =========================================================================
.cp-typing-topbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.cp-typing-header-info {
  text-align: center;
}
.cp-typing-header-info h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 6px 0;
}
.cp-typing-header-info p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}
.cp-badge-neon {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* Config Bar */
.cp-typing-config-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0b1528;
  border: 1.5px solid #1e3357;
  border-radius: 14px;
  padding: 10px 16px;
}
.cp-typing-mode-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cp-tcfg-btn {
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cp-tcfg-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}
.cp-tcfg-btn.is-active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.cp-typing-sub-options {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.cp-typing-pills-wrap {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 3px;
}
.cp-tpill-btn {
  background: transparent;
  color: #64748b;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cp-tpill-btn:hover {
  color: #cbd5e1;
}
.cp-tpill-btn.is-active {
  background: #1e293b;
  color: #38bdf8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.cp-typing-audio-toggle {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #cbd5e1;
}
.cp-typing-audio-toggle.is-active {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
}

/* Live Metrics Scoreboard HUD */
.cp-typing-live-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}
@media (max-width: 640px) {
  .cp-typing-live-hud {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cp-tstat-card {
  background: #0b1528;
  border: 1.5px solid #1e3357;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.cp-tstat-card--speed { border-color: rgba(56, 189, 248, 0.35); }
.cp-tstat-card--accuracy { border-color: rgba(34, 197, 94, 0.35); }
.cp-tstat-card--timer { border-color: rgba(245, 158, 11, 0.35); }
.cp-tstat-card--errors { border-color: rgba(244, 63, 94, 0.35); }

.cp-tstat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.cp-tstat-val {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cp-tstat-card--speed .cp-tstat-val { color: #38bdf8; }
.cp-tstat-card--accuracy .cp-tstat-val { color: #4ade80; }
.cp-tstat-card--timer .cp-tstat-val { color: #fbbf24; }
.cp-tstat-card--errors .cp-tstat-val { color: #f87171; }

.cp-tstat-sub {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 3px;
}

/* Interactive Typing Stage (Monkeytype Style) */
.cp-typing-arena-container {
  position: relative;
  width: 100%;
  background: #070e1c;
  border: 2px solid #1e3357;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  cursor: text;
  outline: none;
  min-height: 175px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cp-typing-arena-container:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}

.cp-typing-words-window {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.cp-typing-words-track {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px 12px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  line-height: 42px;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1);
}

.cp-type-word {
  display: inline-flex;
  border-radius: 4px;
  padding: 0 3px;
  position: relative;
  transition: background 0.1s ease;
}
.cp-type-word.is-active-word {
  background: rgba(56, 189, 248, 0.1);
}
.cp-type-word.is-word-error {
  border-bottom: 2px wavy #f43f5e;
}

.cp-type-letter {
  color: #64748b;
  position: relative;
  transition: color 0.08s ease;
  font-weight: 500;
}
.cp-type-letter.is-correct {
  color: #22c55e;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}
.cp-type-letter.is-wrong {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.25);
  border-radius: 2px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}
.cp-type-letter.is-extra {
  color: #f43f5e;
  opacity: 0.95;
}

/* Bulletproof In-Character Animated Neon Caret */
.cp-type-letter.is-current-char {
  position: relative;
}
.cp-type-letter.is-current-char::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background: #38bdf8;
  border-radius: 2px;
  box-shadow: 0 0 10px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.8);
  animation: cpCaretBlink 0.85s infinite;
  pointer-events: none;
}

.cp-type-letter.is-current-char-after {
  position: relative;
}
.cp-type-letter.is-current-char-after::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background: #38bdf8;
  border-radius: 2px;
  box-shadow: 0 0 10px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.8);
  animation: cpCaretBlink 0.85s infinite;
  pointer-events: none;
}

@keyframes cpCaretBlink {
  0% { opacity: 1; }
  50% { opacity: 0.15; }
  100% { opacity: 1; }
}

/* Legacy floating caret hidden */
.cp-typing-caret {
  display: none !important;
}

/* Invisible Native Input Capturer */
.cp-typing-hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: text;
  pointer-events: auto;
  border: none;
  background: transparent;
  outline: none;
  z-index: 10;
}

/* Focus Prompt Overlay */
.cp-typing-focus-prompt {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 28, 0.9);
  backdrop-filter: blur(5px);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 20;
  color: #38bdf8;
  font-weight: 600;
  cursor: pointer;
}
.cp-focus-icon {
  font-size: 1.8rem;
  animation: cpBounce 1.5s infinite;
}
@keyframes cpBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Bottom Actions Bar */
.cp-typing-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.cp-typing-shortcuts-tip {
  color: #64748b;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cp-typing-shortcuts-tip kbd {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-family: inherit;
}
.cp-typing-action-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* Comprehensive Results Certificate Modal */
.cp-typing-results-card {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.cp-tresults-inner {
  background: #091322;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  padding: 32px 36px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cpModalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes cpModalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cp-tresults-emblem {
  font-size: 3.5rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
}
.cp-tresults-heading {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f8fafc;
  margin: 0 0 6px 0;
}
.cp-tresults-subtitle {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0 0 20px 0;
}

.cp-tresults-big-score {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 20px;
}
.cp-tresults-hero-wpm, .cp-tresults-hero-acc {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cp-res-num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}
.cp-tresults-hero-wpm .cp-res-num { color: #38bdf8; text-shadow: 0 0 16px rgba(56, 189, 248, 0.4); }
.cp-tresults-hero-acc .cp-res-num { color: #4ade80; text-shadow: 0 0 16px rgba(74, 222, 128, 0.4); }
.cp-res-unit {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-top: 6px;
}

.cp-tresults-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 24px;
}
.cp-tres-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.cp-tres-item span { color: #64748b; font-weight: 600; }
.cp-tres-item strong { color: #e2e8f0; font-weight: 700; }

.cp-tresults-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: center;
}
.cp-tresults-actions button {
  flex: 1 1 calc(50% - 10px);
  min-width: 140px;
}

/* ==========================================================================
   33. WORD SCRAMBLE ANAGRAMS 2026 MODERN ARENA
   ========================================================================== */
#theater-game-word-scramble {
  width: 100% !important;
  max-width: 100% !important;
}
#theater-game-word-scramble .cp-arcade-single-game-wrap,
#theater-game-word-scramble .cp-theater-single-wrap,
#theater-game-word-scramble .cp-scramble-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.cp-scramble-container {
  padding: 22px 30px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 16px !important;
  background: radial-gradient(circle at 50% 0%, #1a0f35 0%, #0c071a 100%) !important;
  border: 2px solid rgba(124, 58, 237, 0.8) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Top Header & Badges */
.cp-scramble-header-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.cp-scramble-title-box {
  width: 100%;
  text-align: center;
}
.cp-scramble-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 6px;
}
.cp-scramble-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.4);
  color: #c4b5fd;
  border: 1px solid rgba(196, 181, 253, 0.28);
}
.cp-scramble-badge--gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.45);
}
.cp-scramble-title-box h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 900;
  color: #f8fafc;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-scramble-urdu-sub {
  font-size: 0.85em;
  font-weight: 700;
  color: #a78bfa;
  direction: rtl;
  font-family: system-ui, -apple-system, sans-serif;
}
.cp-scramble-title-box p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0 auto;
  max-width: 680px;
  line-height: 1.4;
}

/* Horizontal Toolbar: Categories & Modes */
.cp-scramble-controls-bar {
  width: 100%;
  background: rgba(18, 11, 38, 0.65);
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 16px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  box-sizing: border-box;
}
.cp-scramble-ctrl-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.cp-scramble-ctrl-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  margin-right: 2px;
  letter-spacing: 0.05em;
}
.cp-scramble-cat-btn,
.cp-scramble-mode-btn {
  background: rgba(24, 15, 48, 0.75);
  border: 1px solid #331f5c;
  color: #cbd5e1;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.cp-scramble-cat-btn:hover,
.cp-scramble-mode-btn:hover {
  background: #3b1c70;
  color: #ffffff;
  border-color: #a78bfa;
}
.cp-scramble-cat-btn.is-active,
.cp-scramble-mode-btn.is-active {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff;
  border-color: #c084fc;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.45);
}

/* 3-Column Wide Scoreboard HUD */
.cp-scramble-scoreboard {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cp-scramble-stat-card {
  background: rgba(24, 15, 48, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.cp-scramble-stat-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  white-space: nowrap;
}
.cp-scramble-stat-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cp-scramble-stat-sub {
  font-size: 0.68rem;
  color: #a78bfa;
  font-weight: 600;
}
.cp-scramble-multiplier-badge {
  font-size: 0.74rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
  background: #27144e;
  color: #c084fc;
  border: 1px solid #7c3aed;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cp-scramble-multiplier-badge.is-boost-2x {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border-color: #10b981;
}
.cp-scramble-multiplier-badge.is-boost-3x {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border-color: #f59e0b;
}
.cp-scramble-multiplier-badge.is-boost-5x {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(245, 158, 11, 0.4));
  color: #fef08a;
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  animation: cpScramblePulse 1s infinite ease-in-out;
}
@keyframes cpScramblePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.cp-scramble-streak-txt {
  font-size: 0.72rem;
  color: #fbbf24;
  font-weight: 800;
  white-space: nowrap;
}
.cp-scramble-timer-val {
  color: #a78bfa;
}
.cp-scramble-timer-val.is-danger {
  color: #ef4444 !important;
  animation: cpScramblePulse 0.6s infinite ease-in-out;
}
.cp-scramble-timer-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 3px;
}
.cp-scramble-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #a78bfa);
  transition: width 0.1s linear, background-color 0.3s;
}
.cp-scramble-timer-fill.is-warning { background: #f59e0b; }
.cp-scramble-timer-fill.is-danger { background: #ef4444; }
.cp-scramble-lives-row {
  display: flex;
  gap: 4px;
  font-size: 0.95rem;
  margin-top: 2px;
}
.cp-scramble-life.is-lost {
  opacity: 0.25;
  filter: grayscale(1);
}

/* Board Wrap & Showcase Card */
.cp-scramble-board-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.cp-scramble-board-card {
  width: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #130a27 0%, #1f113f 50%, #100822 100%);
  border: 2px solid #7c3aed;
  border-radius: 20px;
  padding: 20px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), inset 0 0 35px rgba(124, 58, 237, 0.25);
}
.cp-scramble-meta-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.cp-scramble-cat-pill,
.cp-scramble-progress-pill,
.cp-scramble-len-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(39, 20, 78, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
}
.cp-scramble-cat-pill {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.15);
}
.cp-scramble-hint-box {
  background: rgba(24, 15, 48, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 700px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
}
.cp-scramble-hint-icon { font-size: 1.1rem; }
.cp-scramble-hint-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #c084fc;
  letter-spacing: 0.04em;
}
.cp-scramble-hint-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f1f5f9;
}
.cp-scramble-slots-wrap,
.cp-scramble-pool-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cp-scramble-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 4px;
}
.cp-scramble-slot {
  width: clamp(38px, 6vw, 54px);
  height: clamp(44px, 6.5vw, 60px);
  border-radius: 12px;
  border: 2px dashed rgba(168, 85, 247, 0.45);
  background: rgba(15, 8, 30, 0.6);
  color: #ffffff;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}
.cp-scramble-slot.is-filled {
  border: 2px solid #a855f7;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: cpSlotPop 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cp-scramble-slot.is-filled:hover {
  transform: translateY(-2px);
  border-color: #f87171;
}
.cp-scramble-slot.is-correct {
  border-color: #34d399 !important;
  background: linear-gradient(135deg, #059669, #10b981) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.7) !important;
  animation: cpSlotHop 0.3s ease-out;
}
.cp-scramble-slot.is-wrong {
  border-color: #f87171 !important;
  background: linear-gradient(135deg, #dc2626, #ef4444) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.7) !important;
  animation: cpSlotShake 0.35s ease-in-out;
}
@keyframes cpSlotPop {
  0% { transform: scale(0.8); }
  100% { transform: scale(1); }
}
@keyframes cpSlotHop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12) translateY(-4px); }
}
@keyframes cpSlotShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.cp-scramble-pool {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 4px;
}
.cp-scramble-chip {
  width: clamp(38px, 6vw, 54px);
  height: clamp(44px, 6.5vw, 60px);
  border-radius: 12px;
  border: 2px solid #6d28d9;
  background: linear-gradient(135deg, #2e1065, #1e1b4b);
  color: #f8fafc;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.cp-scramble-chip:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: #c084fc;
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}
.cp-scramble-chip:active:not(:disabled) {
  transform: translateY(1px);
}
.cp-scramble-chip:disabled {
  opacity: 0.22;
  cursor: default;
  border-color: #331f5c;
  background: rgba(15, 8, 30, 0.5);
  box-shadow: none;
  transform: none;
}
.cp-scramble-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
.cp-scramble-tool-btn {
  background: rgba(30, 15, 60, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.cp-scramble-tool-btn:hover {
  background: #4c1d95;
  border-color: #c084fc;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Standby Center Start Overlay */
.cp-scramble-start-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 6, 26, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 18px;
  z-index: 10;
  padding: 16px;
  box-sizing: border-box;
}
.cp-scramble-start-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border: 2px solid #c084fc;
  color: #ffffff;
  padding: 14px 44px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5), 0 0 20px rgba(192, 132, 252, 0.35);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: cpScrambleStartPulse 2s infinite ease-in-out;
  user-select: none;
}
.cp-scramble-start-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.65), 0 0 30px rgba(192, 132, 252, 0.55);
}
.cp-scramble-start-btn:active { transform: scale(0.98); }
.cp-sstart-icon { font-size: 1.6rem; line-height: 1; color: #ffffff; }
.cp-sstart-title { font-size: 1.35rem; font-weight: 900; letter-spacing: 0.06em; color: #ffffff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.cp-sstart-sub { font-size: 0.72rem; color: #e9d5ff; font-weight: 600; opacity: 0.95; letter-spacing: 0.02em; }
@keyframes cpScrambleStartPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.45); }
  50% { transform: scale(1.04); box-shadow: 0 14px 38px rgba(139, 92, 246, 0.7), 0 0 25px rgba(192, 132, 252, 0.5); }
}

/* Floating FX */
.cp-scramble-floating-foster {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 18px;
}
.cp-scramble-float-tag {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 900;
  animation: cpScrambleFloatUp 0.85s forwards ease-out;
  pointer-events: none;
  z-index: 5;
}
.cp-scramble-float-tag.is-plus { color: #34d399; text-shadow: 0 0 15px rgba(52, 211, 153, 0.8); }
.cp-scramble-float-tag.is-minus { color: #f87171; text-shadow: 0 0 15px rgba(248, 113, 113, 0.8); }
@keyframes cpScrambleFloatUp {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.85); }
  50% { transform: translate(-50%, -24px) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -48px) scale(1); }
}

/* Bottom Controls */
.cp-scramble-bottom-controls {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  justify-content: center;
}
.cp-scramble-bottom-controls .cp-game-btn {
  flex: 1;
  padding: 9px 16px;
  font-size: 0.85rem;
  justify-content: center;
}
.cp-game-btn.cp-scramble-btn-start {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
  border-color: #c084fc !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}
.cp-scramble-touch-tip {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}
.cp-scramble-touch-tip strong { color: #cbd5e1; }
.cp-scramble-touch-tip code {
  background: #27144e;
  color: #fcd34d;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: inherit;
}

/* Mobile Responsive Optimization (< 768px) */
@media (max-width: 767px) {
  .cp-scramble-container { padding: 14px 12px !important; gap: 12px !important; }
  .cp-scramble-title-box h2 { font-size: 1.15rem; }
  .cp-scramble-title-box p { display: none; }
  .cp-scramble-controls-bar { padding: 8px 10px; gap: 8px; flex-direction: column; }
  .cp-scramble-ctrl-group { justify-content: center; }
  .cp-scramble-cat-btn, .cp-scramble-mode-btn { font-size: 0.68rem; padding: 3px 7px; }
  .cp-scramble-scoreboard { gap: 6px; }
  .cp-scramble-stat-card { padding: 7px 5px; }
  .cp-scramble-stat-val { font-size: 1.2rem; }
  .cp-scramble-board-card { min-height: 240px; padding: 14px 10px; gap: 12px; }
  .cp-scramble-hint-box { padding: 6px 10px; }
  .cp-scramble-hint-text { font-size: 0.76rem; }
  .cp-scramble-slots, .cp-scramble-pool { gap: 6px; }
  .cp-scramble-slot, .cp-scramble-chip {
    width: clamp(32px, 8vw, 42px);
    height: clamp(38px, 9.5vw, 48px);
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    border-radius: 8px;
  }
}

/* Fullscreen Overrides */
:fullscreen #theater-game-word-scramble.is-active,
.cp-theater-stage:fullscreen #theater-game-word-scramble.is-active,
#cp-fullscreen-target:fullscreen #theater-game-word-scramble.is-active {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
:fullscreen .cp-scramble-container,
.cp-theater-stage:fullscreen .cp-scramble-container,
#cp-fullscreen-target:fullscreen .cp-scramble-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 26px 36px !important;
  gap: 20px !important;
}

/* ==========================================================================
   35. MATH QUIZ ARITHMETIC BLITZ 2026 MODERN ARENA (FULL-WIDTH LANDSCAPE)
   ========================================================================== */
#theater-game-math-quiz {
  width: 100% !important;
  max-width: 100% !important;
}
#theater-game-math-quiz .cp-arcade-single-game-wrap,
#theater-game-math-quiz .cp-theater-single-wrap,
#theater-game-math-quiz .cp-math-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.cp-math-container {
  padding: 22px 30px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 18px !important;
  background: radial-gradient(circle at 50% 0%, #0d1b38 0%, #060b17 100%) !important;
  border: 2px solid rgba(30, 58, 138, 0.8) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Top Header & Badges */
.cp-math-header-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.cp-math-title-box {
  width: 100%;
  text-align: center;
}
.cp-math-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 6px;
}
.cp-math-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(30, 58, 138, 0.45);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.28);
}
.cp-math-badge--gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.45);
}
.cp-math-title-box h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 900;
  color: #f8fafc;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-math-urdu-sub {
  font-size: 0.85em;
  font-weight: 700;
  color: #38bdf8;
  direction: rtl;
  font-family: system-ui, -apple-system, sans-serif;
}
.cp-math-title-box p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0 auto;
  max-width: 680px;
  line-height: 1.4;
}

/* Full-Width Horizontal Controls Ribbon */
.cp-math-controls-bar {
  width: 100%;
  background: rgba(13, 27, 56, 0.65);
  border: 1px solid rgba(30, 58, 138, 0.6);
  border-radius: 16px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  box-sizing: border-box;
}
.cp-math-ctrl-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.cp-math-ctrl-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-right: 2px;
  letter-spacing: 0.05em;
}
.cp-math-mode-btn,
.cp-math-op-btn,
.cp-math-diff-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid #1e293b;
  color: #94a3b8;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.cp-math-mode-btn:hover,
.cp-math-op-btn:hover,
.cp-math-diff-btn:hover {
  background: #1e293b;
  color: #f8fafc;
  border-color: #38bdf8;
}
.cp-math-mode-btn.is-active,
.cp-math-op-btn.is-active,
.cp-math-diff-btn.is-active {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Wide 3-Column Scoreboard */
.cp-math-scoreboard {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cp-math-stat-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.cp-math-stat-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  white-space: nowrap;
}
.cp-math-stat-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cp-math-stat-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}
.cp-math-multiplier-badge {
  font-size: 0.74rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #0284c7;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cp-math-multiplier-badge.is-boost-2x {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border-color: #10b981;
}
.cp-math-multiplier-badge.is-boost-3x {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border-color: #f59e0b;
}
.cp-math-multiplier-badge.is-boost-5x {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(245, 158, 11, 0.4));
  color: #fef08a;
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  animation: cpMathPulse 1s infinite ease-in-out;
}
@keyframes cpMathPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.cp-math-streak-txt {
  font-size: 0.72rem;
  color: #f59e0b;
  font-weight: 800;
  white-space: nowrap;
}
.cp-math-timer-val {
  color: #38bdf8;
}
.cp-math-timer-val.is-danger {
  color: #ef4444 !important;
  animation: cpMathPulse 0.6s infinite ease-in-out;
}
.cp-math-timer-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 3px;
}
.cp-math-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  transition: width 0.1s linear, background-color 0.3s;
}
.cp-math-timer-fill.is-warning {
  background: #f59e0b;
}
.cp-math-timer-fill.is-danger {
  background: #ef4444;
}
.cp-math-lives-row {
  display: flex;
  gap: 4px;
  font-size: 0.95rem;
  margin-top: 2px;
}
.cp-math-life.is-lost {
  opacity: 0.25;
  filter: grayscale(1);
}

/* Center Board Wrap */
.cp-math-board-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

/* Full-Width Equation Showcase Card */
.cp-math-equation-card {
  width: 100%;
  min-height: 140px;
  background: linear-gradient(135deg, #09152b 0%, #0d1e3d 50%, #071020 100%);
  border: 2px solid #2563eb;
  border-radius: 18px;
  padding: 20px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(37, 99, 235, 0.2);
}
.cp-math-q-count {
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #60a5fa;
  letter-spacing: 0.06em;
}
.cp-math-equation {
  font-size: clamp(2.5rem, 5.2vw, 3.8rem);
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.03em;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.45);
  font-variant-numeric: tabular-nums;
  margin: 6px 0;
  white-space: nowrap !important;
  text-align: center;
  display: inline-block;
}
.cp-math-hint-line {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Center Start Overlay */
.cp-math-start-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 11, 23, 0.84);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 18px;
  z-index: 10;
  padding: 16px;
  box-sizing: border-box;
}
.cp-math-start-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 2px solid #34d399;
  color: #ffffff;
  padding: 14px 44px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5), 0 0 20px rgba(52, 211, 153, 0.35);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: cpMathStartPulse 2s infinite ease-in-out;
  user-select: none;
}
.cp-math-start-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 14px 40px rgba(16, 185, 129, 0.65), 0 0 30px rgba(52, 211, 153, 0.55);
}
.cp-math-start-btn:active {
  transform: scale(0.98);
}
.cp-mstart-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: #ffffff;
}
.cp-mstart-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.cp-mstart-sub {
  font-size: 0.72rem;
  color: #d1fae5;
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: 0.02em;
}
@keyframes cpMathStartPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.45);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 14px 38px rgba(16, 185, 129, 0.7), 0 0 25px rgba(52, 211, 153, 0.5);
  }
}

/* Floating Points FX */
.cp-math-floating-foster {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 18px;
}
.cp-math-float-tag {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 900;
  animation: cpMathFloatUp 0.85s forwards ease-out;
  pointer-events: none;
  z-index: 5;
}
.cp-math-float-tag.is-plus {
  color: #34d399;
  text-shadow: 0 0 15px rgba(52, 211, 153, 0.8);
}
.cp-math-float-tag.is-minus {
  color: #f87171;
  text-shadow: 0 0 15px rgba(248, 113, 113, 0.8);
}
@keyframes cpMathFloatUp {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.85);
  }
  50% {
    transform: translate(-50%, -24px) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -48px) scale(1);
  }
}

/* 4-Card Option Grid (Wide 4 Columns on Desktop & Tablet) */
.cp-math-options {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cp-math-option-btn {
  background: linear-gradient(135deg, #0d1b38, #102246);
  border: 2px solid #1e3a8a;
  border-radius: 16px;
  min-height: 74px;
  padding: 12px 16px;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 900;
  color: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.12s ease;
  user-select: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  font-variant-numeric: tabular-nums;
}
.cp-math-option-btn:hover {
  border-color: #38bdf8;
  background: linear-gradient(135deg, #132854, #1a356d);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.3);
}
.cp-math-option-btn:active {
  transform: translateY(1px);
}
.cp-math-key-hint {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748b;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.1;
}
.cp-math-option-btn.is-correct {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.65) !important;
  animation: cpMathCorrectHop 0.25s ease-out;
}
.cp-math-option-btn.is-wrong {
  background: linear-gradient(135deg, #dc2626, #ef4444) !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.65) !important;
  animation: cpMathWrongShake 0.3s ease-in-out;
}
.cp-math-option-btn.is-placeholder {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.5) !important;
  border-color: rgba(30, 58, 138, 0.35) !important;
  color: #64748b !important;
}
@keyframes cpMathCorrectHop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes cpMathWrongShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Quick Bottom Controls & Hints */
.cp-math-bottom-controls {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  justify-content: center;
}
.cp-math-bottom-controls .cp-game-btn {
  flex: 1;
  padding: 9px 16px;
  font-size: 0.85rem;
  justify-content: center;
}
.cp-game-btn.cp-math-btn-start {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}
.cp-game-btn.cp-math-btn-start:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6) !important;
  transform: translateY(-2px);
}
.cp-math-touch-tip {
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
}
.cp-math-touch-tip strong {
  color: #94a3b8;
}
.cp-math-touch-tip code {
  background: #1e293b;
  color: #fcd34d;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: inherit;
}

/* Mobile Responsive Optimization (< 768px) */
@media (max-width: 767px) {
  .cp-math-container {
    padding: 14px 12px !important;
    gap: 12px !important;
  }
  .cp-math-title-box h2 {
    font-size: 1.15rem;
  }
  .cp-math-title-box p {
    display: none;
  }
  .cp-math-controls-bar {
    padding: 8px 10px;
    gap: 8px;
    flex-direction: column;
  }
  .cp-math-ctrl-group {
    justify-content: center;
  }
  .cp-math-mode-btn,
  .cp-math-op-btn,
  .cp-math-diff-btn {
    font-size: 0.68rem;
    padding: 3px 7px;
  }
  .cp-math-scoreboard {
    gap: 6px;
  }
  .cp-math-stat-card {
    padding: 7px 5px;
  }
  .cp-math-stat-val {
    font-size: 1.2rem;
  }
  .cp-math-equation-card {
    min-height: 100px;
    padding: 14px 8px;
  }
  .cp-math-equation {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
  }
  .cp-math-options {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .cp-math-option-btn {
    min-height: 56px;
    font-size: 1.4rem;
    padding: 8px 10px;
  }
  .cp-math-touch-tip {
    font-size: 0.65rem;
  }
}

/* Fullscreen Overrides */
:fullscreen #theater-game-math-quiz.is-active,
.cp-theater-stage:fullscreen #theater-game-math-quiz.is-active,
#cp-fullscreen-target:fullscreen #theater-game-math-quiz.is-active {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
:fullscreen .cp-math-container,
.cp-theater-stage:fullscreen .cp-math-container,
#cp-fullscreen-target:fullscreen .cp-math-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 26px 36px !important;
  gap: 20px !important;
}
:fullscreen .cp-math-equation-card,
.cp-theater-stage:fullscreen .cp-math-equation-card,
#cp-fullscreen-target:fullscreen .cp-math-equation-card {
  min-height: 180px !important;
}
:fullscreen .cp-math-equation,
.cp-theater-stage:fullscreen .cp-math-equation,
#cp-fullscreen-target:fullscreen .cp-math-equation {
  font-size: clamp(3rem, 6.5vw, 4.8rem) !important;
}
:fullscreen .cp-math-option-btn,
.cp-theater-stage:fullscreen .cp-math-option-btn,
#cp-fullscreen-target:fullscreen .cp-math-option-btn {
  min-height: 88px !important;
  font-size: 2.2rem !important;
}

/* ==========================================================================
   26. REACTION TIME BENCHMARK 2026 MODERN ARENA
   ========================================================================== */
#theater-game-reaction-time {
  width: 100% !important;
  max-width: 100% !important;
}
#theater-game-reaction-time .cp-arcade-single-game-wrap,
#theater-game-reaction-time .cp-theater-single-wrap,
#theater-game-reaction-time .cp-react-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.cp-react-container {
  padding: 16px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  background: radial-gradient(circle at 50% 10%, #0d1e38 0%, #080f1d 70%, #030712 100%) !important;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.2);
  user-select: none;
}

.cp-react-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.cp-react-badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.cp-react-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: #0f2744;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.cp-react-badge-pulse {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: #10b981;
  animation: cpReactBadgePulse 2s infinite ease-in-out;
}
@keyframes cpReactBadgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
.cp-react-badge-glow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.cp-react-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp-react-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.cp-react-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Controls Bar */
.cp-react-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 10px 16px;
}
.cp-react-ctrl-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cp-react-ctrl-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
}
.cp-react-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cp-react-mode-btn,
.cp-react-series-btn {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.cp-react-mode-btn:hover,
.cp-react-series-btn:hover {
  border-color: #38bdf8;
  color: #f8fafc;
  background: #1e293b;
}
.cp-react-mode-btn.is-active,
.cp-react-series-btn.is-active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

/* Responsive Text Toggles */
.cp-rlabel-short,
.cp-rmode-short,
.cp-rsub-short {
  display: none !important;
}
.cp-rlabel-full,
.cp-rmode-full,
.cp-rsub-full {
  display: inline !important;
}

/* Scoreboard HUD */
.cp-react-scoreboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cp-react-stat-card {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0b172a, #0f223d);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.cp-react-stat-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  white-space: nowrap;
}
.cp-react-stat-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cp-react-stat-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}
.cp-react-rank-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #0284c7;
  white-space: nowrap;
}
.cp-react-progress-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
}

/* Timeline Ribbon */
.cp-react-timeline-card {
  background: rgba(11, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-react-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cp-react-timeline-hint {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: none;
}
.cp-react-timeline-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.cp-react-pill {
  flex: 1 0 54px;
  min-width: 50px;
  background: #091322;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.2s ease;
}
.cp-react-pill-num {
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}
.cp-react-pill-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.cp-react-pill.is-current {
  border-color: #38bdf8;
  background: rgba(2, 132, 199, 0.2);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}
.cp-react-pill.is-current .cp-react-pill-num {
  color: #38bdf8;
}
.cp-react-pill.is-done {
  border-color: #0284c7;
  background: #0d1e38;
}
.cp-react-pill.is-done .cp-react-pill-val {
  color: #e2e8f0;
}
.cp-react-pill.is-best {
  border-color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.2) !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5) !important;
}
.cp-react-pill.is-best .cp-react-pill-val {
  color: #fef08a !important;
}
.cp-react-pill.is-early {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
}
.cp-react-pill.is-early .cp-react-pill-val {
  color: #f87171;
}

/* The Main Interactive Arena Card (Compact & Sleek) */
.cp-react-arena {
  width: 100%;
  min-height: 190px;
  border-radius: 18px;
  padding: 18px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.15s ease, transform 0.08s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Standby state */
.cp-react-arena.is-standby {
  background: linear-gradient(135deg, #09172e 0%, #0c2347 50%, #061124 100%);
  border: 2px solid #0284c7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(2, 132, 199, 0.2);
}

/* Waiting state */
.cp-react-arena.is-waiting {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #450a0a 100%);
  border: 2px solid #ef4444;
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.35), inset 0 0 35px rgba(220, 38, 38, 0.3);
  cursor: wait;
}

/* Ready state (Instant Green trigger) */
.cp-react-arena.is-ready {
  background: linear-gradient(135deg, #047857 0%, #10b981 50%, #059669 100%);
  border: 3px solid #34d399;
  box-shadow: 0 14px 45px rgba(16, 185, 129, 0.65), inset 0 0 45px rgba(52, 211, 153, 0.5);
  animation: cpReactReadyPulse 0.8s infinite alternate ease-in-out;
}
@keyframes cpReactReadyPulse {
  0% { transform: scale(1); box-shadow: 0 14px 45px rgba(16, 185, 129, 0.65); }
  100% { transform: scale(1.01); box-shadow: 0 18px 55px rgba(52, 211, 153, 0.85); }
}

/* Ready state - Choice mode: Red distractor */
.cp-react-arena.is-ready.is-choice-red {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #7f1d1d 100%) !important;
  border-color: #f87171 !important;
  box-shadow: 0 14px 45px rgba(239, 68, 68, 0.65), inset 0 0 45px rgba(248, 113, 113, 0.5) !important;
}

/* Too Early / False Start state */
.cp-react-arena.is-toosoon {
  background: linear-gradient(135deg, #831843 0%, #b91c1c 50%, #4c0519 100%);
  border: 2px solid #f43f5e;
  box-shadow: 0 12px 35px rgba(244, 63, 94, 0.45);
  animation: cpReactShake 0.35s ease-in-out;
}
@keyframes cpReactShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* Round Result state */
.cp-react-arena.is-result {
  background: linear-gradient(135deg, #0e1e38 0%, #152f59 50%, #091427 100%);
  border: 2px solid #38bdf8;
  box-shadow: 0 12px 35px rgba(56, 189, 248, 0.35), inset 0 0 25px rgba(56, 189, 248, 0.15);
}

/* Active click push effect */
.cp-react-arena:active:not(.is-standby) {
  transform: scale(0.985);
}

/* Inner elements */
.cp-react-arena-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}
.cp-react-arena-icon {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.15s ease;
}
.cp-react-arena-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.cp-react-arena-sub {
  margin: 0;
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  line-height: 1.35;
}
.cp-react-arena-ms {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
  font-variant-numeric: tabular-nums;
}
.cp-react-arena-badge {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Precision Target Dot */
.cp-react-target-dot {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef08a 25%, #f59e0b 60%, #dc2626 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 0 20px #f59e0b, 0 0 35px rgba(245, 158, 11, 0.8);
  cursor: pointer;
  z-index: 6;
  transform: translate(-50%, -50%);
  animation: cpTargetPulse 0.8s infinite alternate ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.cp-react-target-dot::after {
  content: '🎯';
  font-size: 1.35rem;
}
@keyframes cpTargetPulse {
  0% { transform: translate(-50%, -50%) scale(0.95); }
  100% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Bottom Controls */
.cp-react-bottom-controls {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  justify-content: center;
}
.cp-react-bottom-controls .cp-game-btn {
  flex: 1;
  padding: 9px 16px;
  font-size: 0.85rem;
  justify-content: center;
}
.cp-game-btn.cp-react-btn-start {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4) !important;
}
.cp-react-touch-tip {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}
.cp-react-touch-tip strong {
  color: #cbd5e1;
}
.cp-react-touch-tip code {
  background: #0f2744;
  color: #38bdf8;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: inherit;
}

/* Responsive Mobile Rules (< 768px) */
@media (max-width: 767px) {
  .cp-rlabel-short,
  .cp-rmode-short,
  .cp-rsub-short {
    display: inline !important;
  }
  .cp-rlabel-full,
  .cp-rmode-full,
  .cp-rsub-full {
    display: none !important;
  }

  .cp-react-container {
    padding: 10px 8px !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .cp-react-title-box h2 {
    font-size: 1.15rem;
  }
  .cp-react-title-box p {
    display: none;
  }
  .cp-react-controls-bar {
    padding: 6px 8px !important;
    gap: 6px !important;
    flex-direction: column !important;
  }
  .cp-react-ctrl-group {
    width: 100% !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  .cp-react-ctrl-label {
    font-size: 0.68rem !important;
  }
  .cp-react-btn-group {
    display: flex !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .cp-react-mode-btn,
  .cp-react-series-btn {
    font-size: 0.68rem !important;
    padding: 4px 6px !important;
    white-space: nowrap !important;
  }

  /* Mobile 3-Card Scoreboard - Zero Overflow */
  .cp-react-scoreboard {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cp-react-stat-card {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 6px 4px !important;
    gap: 2px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
  }
  .cp-react-stat-label {
    font-size: 0.6rem !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .cp-react-stat-val {
    font-size: 1.1rem !important;
    line-height: 1.1 !important;
  }
  .cp-react-stat-sub {
    font-size: 0.58rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .cp-react-rank-badge {
    font-size: 0.6rem !important;
    padding: 2px 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    line-height: 1.15 !important;
  }
  .cp-react-progress-pill {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
    white-space: nowrap !important;
    line-height: 1.15 !important;
  }

  /* Timeline Card & Header */
  .cp-react-timeline-card {
    padding: 6px 10px !important;
    gap: 6px !important;
  }
  .cp-react-timeline-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    white-space: nowrap !important;
    font-size: 0.68rem !important;
  }
  .cp-react-timeline-hint {
    display: none !important;
  }
  .cp-react-timeline-pills {
    gap: 6px !important;
  }
  .cp-react-pill {
    min-width: 44px !important;
    flex: 1 0 44px !important;
    padding: 4px 2px !important;
  }
  .cp-react-pill-num {
    font-size: 0.58rem !important;
  }
  .cp-react-pill-val {
    font-size: 0.72rem !important;
  }

  .cp-react-arena {
    min-height: 150px;
    padding: 12px 10px;
  }
  .cp-react-arena-icon {
    font-size: 1.8rem;
  }
  .cp-react-arena-title {
    font-size: 1.15rem;
  }
  .cp-react-arena-ms {
    font-size: 2.1rem;
  }
}

/* Fullscreen Overrides (Zero Scrollbars • Perfect Viewport Fit) */
:fullscreen #theater-game-reaction-time.is-active,
.cp-theater-stage:fullscreen #theater-game-reaction-time.is-active,
#cp-fullscreen-target:fullscreen #theater-game-reaction-time.is-active {
  width: 100% !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

:fullscreen .cp-react-container,
.cp-theater-stage:fullscreen .cp-react-container,
#cp-fullscreen-target:fullscreen .cp-react-container {
  width: 100% !important;
  max-width: 960px !important;
  height: auto !important;
  max-height: 98vh !important;
  overflow: hidden !important;
  padding: 10px 20px !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

:fullscreen .cp-react-badge-row,
:fullscreen .cp-react-subtitle,
:fullscreen .cp-react-touch-tip {
  display: none !important;
}

:fullscreen .cp-react-header {
  gap: 4px !important;
}
:fullscreen .cp-react-title-box {
  gap: 0 !important;
}
:fullscreen .cp-react-title {
  font-size: 1.15rem !important;
}
:fullscreen .cp-react-controls-bar {
  padding: 4px 10px !important;
  gap: 6px !important;
}
:fullscreen .cp-react-ctrl-label {
  font-size: 0.68rem !important;
}
:fullscreen .cp-react-mode-btn,
:fullscreen .cp-react-series-btn {
  padding: 3px 8px !important;
  font-size: 0.7rem !important;
}

:fullscreen .cp-react-scoreboard {
  gap: 6px !important;
}
:fullscreen .cp-react-stat-card {
  padding: 5px 8px !important;
  gap: 2px !important;
}
:fullscreen .cp-react-stat-val {
  font-size: 1.15rem !important;
}
:fullscreen .cp-react-stat-label,
:fullscreen .cp-react-stat-sub {
  font-size: 0.62rem !important;
}

:fullscreen .cp-react-timeline-card {
  padding: 4px 10px !important;
  gap: 3px !important;
}
:fullscreen .cp-react-timeline-header {
  font-size: 0.64rem !important;
}
:fullscreen .cp-react-timeline-hint {
  display: none !important;
}
:fullscreen .cp-react-pill {
  padding: 3px 2px !important;
  min-width: 44px !important;
}

:fullscreen .cp-react-arena,
.cp-theater-stage:fullscreen .cp-react-arena,
#cp-fullscreen-target:fullscreen .cp-react-arena {
  min-height: 140px !important;
  max-height: 200px !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  gap: 4px !important;
}
:fullscreen .cp-react-arena-icon {
  font-size: 1.8rem !important;
}
:fullscreen .cp-react-arena-title {
  font-size: 1.15rem !important;
}
:fullscreen .cp-react-arena-ms {
  font-size: 2.2rem !important;
}
:fullscreen .cp-react-arena-sub {
  font-size: 0.74rem !important;
}
:fullscreen .cp-react-arena-badge {
  font-size: 0.72rem !important;
  padding: 2px 10px !important;
}

:fullscreen .cp-react-bottom-controls {
  margin: 0 auto !important;
  gap: 8px !important;
}
:fullscreen .cp-react-bottom-controls .cp-game-btn {
  padding: 6px 14px !important;
  font-size: 0.78rem !important;
}

/* 36. Simon Memory Sequence */
.cp-simon-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-simon-board {
  position: relative;
  width: min(340px, calc(100vw - 32px));
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #091322;
  border: 8px solid #1e293b;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  margin-bottom: 14px;
}
.cp-simon-pad {
  border: none;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.15s ease;
}
.cp-simon-pad--green {
  background: #22c55e;
  border-top-left-radius: 100%;
}
.cp-simon-pad--red {
  background: #ef4444;
  border-top-right-radius: 100%;
}
.cp-simon-pad--yellow {
  background: #eab308;
  border-bottom-left-radius: 100%;
}
.cp-simon-pad--blue {
  background: #3b82f6;
  border-bottom-right-radius: 100%;
}
.cp-simon-pad.is-active {
  opacity: 1;
  filter: brightness(1.6);
  box-shadow: 0 0 24px currentColor;
}
.cp-simon-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #091322;
  border: 5px solid #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cp-simon-logo {
  font-size: 0.85rem;
  font-weight: 900;
  color: #f6b624;
  letter-spacing: 1px;
}
.cp-simon-btn-start {
  background: #f6b624;
  border: none;
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
}

/* 37. Pattern Memory */
.cp-pattern-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-pattern-grid {
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
  aspect-ratio: 1 / 1;
  background: #091322;
  border: 4px solid #1e3357;
  border-radius: 16px;
  padding: 8px;
  box-sizing: border-box;
  margin-bottom: 14px;
}
.cp-pattern-tile {
  aspect-ratio: 1 / 1;
  background: #101e35;
  border: 2px solid #1e3357;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cp-pattern-tile.is-target {
  background: #06b6d4 !important;
  border-color: #22d3ee !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.8) !important;
}
.cp-pattern-tile.is-correct {
  background: #22c55e !important;
  border-color: #4ade80 !important;
}
.cp-pattern-tile.is-wrong {
  background: #ef4444 !important;
  border-color: #f87171 !important;
}

/* 38. Guess the Number */
.cp-guess-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-guess-range-card {
  width: min(440px, calc(100vw - 32px));
  background: #091322;
  border: 2px solid #1e3357;
  border-radius: 14px;
  padding: 14px;
  box-sizing: border-box;
  margin-bottom: 14px;
}
.cp-guess-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 800;
  color: #f6b624;
  margin-bottom: 8px;
}
.cp-guess-range-bar {
  position: relative;
  height: 14px;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e3357;
}
.cp-guess-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.cp-guess-form {
  display: flex;
  gap: 10px;
  width: min(440px, calc(100vw - 32px));
  margin-bottom: 14px;
}
.cp-guess-form input {
  flex: 1;
  background: #0d1b32;
  border: 2px solid #1e3357;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1.1rem;
  color: #fff;
}
.cp-guess-history-card {
  width: min(440px, calc(100vw - 32px));
  background: #091322;
  border: 1px solid #1e3357;
  border-radius: 12px;
  padding: 10px 14px;
  box-sizing: border-box;
  margin-bottom: 14px;
  text-align: left;
}
.cp-guess-history-card span {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.cp-guess-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cp-guess-chip {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
}
.cp-guess-chip.is-low {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid #3b82f6;
}
.cp-guess-chip.is-high {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid #ef4444;
}

/* 39. 24 Game */
.cp-g24-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cp-g24-cards {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: min(440px, calc(100vw - 32px));
  margin-bottom: 14px;
}
.cp-g24-card {
  flex: 1;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #101e35 0%, #0d1728 100%);
  border: 3px solid #1e3357;
  border-radius: 12px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #f6b624;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: all 0.15s ease;
}
.cp-g24-card:hover:not(:disabled) {
  border-color: #f6b624;
  transform: translateY(-3px);
}
.cp-g24-card.is-used {
  opacity: 0.25;
  cursor: default;
}
.cp-g24-calc-display {
  width: min(440px, calc(100vw - 32px));
  height: 56px;
  background: #091322;
  border: 2px solid #1e3357;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  box-sizing: border-box;
  margin-bottom: 12px;
}
.cp-g24-expr {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}
.cp-g24-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(440px, calc(100vw - 32px));
  margin-bottom: 14px;
}
.cp-g24-key {
  background: #101e35;
  border: 1px solid #1e3357;
  border-radius: 10px;
  padding: 10px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
}
.cp-g24-key:hover {
  border-color: #f6b624;
}
.cp-g24-key--eval {
  grid-column: span 2;
  background: #22c55e !important;
  color: #000000 !important;
}
.cp-g24-key--clear {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* Fullscreen Zero-Scroll Rules for Games 30-39 */
:fullscreen .cp-ws-grid,
.cp-theater-stage:fullscreen .cp-ws-grid {
  width: min(calc(100vh - 200px), calc(100vw - 24px), 480px) !important;
}
:fullscreen .cp-cw-grid,
.cp-theater-stage:fullscreen .cp-cw-grid {
  width: min(calc(100vh - 240px), calc(100vw - 24px), 340px) !important;
}
:fullscreen .cp-pattern-grid,
.cp-theater-stage:fullscreen .cp-pattern-grid {
  width: min(calc(100vh - 200px), calc(100vw - 24px), 420px) !important;
}
:fullscreen .cp-simon-board,
.cp-theater-stage:fullscreen .cp-simon-board {
  width: min(calc(100vh - 200px), calc(100vw - 24px), 360px) !important;
}
:fullscreen .cp-type-passage,
.cp-theater-stage:fullscreen .cp-type-passage {
  width: min(calc(100vh - 220px), calc(100vw - 24px), 540px) !important;
}

/* ==========================================================================
   40. GOMOKU (FIVE IN A ROW) STYLES
   ========================================================================== */
.cp-gomoku-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.cp-gomoku-canvas {
  width: min(480px, 92vw);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  touch-action: none;
}
.cp-gomoku-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   41. ROCK PAPER SCISSORS CHAMPIONSHIP STYLES
   ========================================================================== */
.cp-rps-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.cp-rps-arena {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.cp-rps-hand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cp-rps-hand-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.cp-rps-hand-icon {
  font-size: 54px;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cp-rps-hand--left .cp-rps-hand-icon {
  transform: scaleX(1);
}
.cp-rps-hand--right .cp-rps-hand-icon {
  transform: scaleX(-1);
}
.cp-rps-hand-icon.is-shaking {
  animation: cpRpsShake 0.2s infinite alternate ease-in-out;
}
@keyframes cpRpsShake {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(-8deg); }
}
.cp-rps-versus-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
#rps-vs-icon {
  font-size: 28px;
}
#rps-status-text {
  font-size: 13px;
  font-weight: 600;
  color: #f6b624;
  max-width: 130px;
}
.cp-rps-choices {
  display: flex;
  gap: 14px;
  justify-content: center;
  width: 100%;
}
.cp-rps-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: rgba(30, 41, 59, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  max-width: 120px;
}
.cp-rps-choice-btn:hover {
  transform: translateY(-4px);
  border-color: #f6b624;
  background: rgba(246, 182, 36, 0.15);
  box-shadow: 0 8px 20px rgba(246, 182, 36, 0.25);
}
.cp-rps-choice-icon {
  font-size: 32px;
}
.cp-rps-choice-name {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
}

/* ==========================================================================
   42. DOTS & BOXES (TERRITORY) STYLES
   ========================================================================== */
.cp-dots-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.cp-dots-canvas {
  width: min(400px, 90vw);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  touch-action: none;
}

/* ==========================================================================
   43. LUDO KING MASTERPIECE ARENA STYLES (ULTRA-RESPONSIVE 2026 EDITION)
   ========================================================================== */
.cp-ludo-stage-wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(11, 19, 41, 0.95) 100%);
  border: 1.5px solid rgba(246, 182, 36, 0.22);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(246, 182, 36, 0.06);
  box-sizing: border-box;
}

.cp-ludo-hud {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.cp-ludo-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  padding: 0 4px;
}
.cp-ludo-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.cp-ludo-badge-gold {
  background: linear-gradient(135deg, rgba(246, 182, 36, 0.2) 0%, rgba(217, 119, 6, 0.3) 100%);
  border: 1px solid rgba(246, 182, 36, 0.55);
  color: #fcd34d;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 10px rgba(246, 182, 36, 0.2);
}
.cp-ludo-subbadge {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cp-ludo-title-box h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 18px rgba(246, 182, 36, 0.25);
}
.cp-ludo-urdu-sub {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: #f6b624;
  font-weight: 700;
}
.cp-ludo-title-box p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.35;
  margin: 0;
  text-align: center;
  max-width: 500px;
}

.cp-ludo-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto 10px;
  flex-wrap: wrap;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-sizing: border-box;
}
.cp-ludo-modes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cp-lmode-btn {
  padding: 5px 11px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cp-lmode-btn:hover {
  background: rgba(246, 182, 36, 0.15);
  color: #f6b624;
  border-color: #f6b624;
}
.cp-lmode-btn.is-active {
  background: linear-gradient(135deg, #f6b624 0%, #d97706 100%);
  color: #0f172a;
  border-color: #f6b624;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(246, 182, 36, 0.35);
}
#btn-restart-ludo {
  padding: 5px 11px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(246, 182, 36, 0.35);
  color: #fcd34d;
  font-size: 11px;
  font-weight: 600;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#btn-restart-ludo:hover {
  background: rgba(246, 182, 36, 0.2);
  border-color: #f6b624;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(246, 182, 36, 0.3);
}

.cp-ludo-master-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 10px 12px;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.cp-ludo-pods-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  box-sizing: border-box;
}

.cp-ludo-pod {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  transition: all 0.25s ease;
  min-width: 95px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
}
.cp-pod-avatar {
  font-size: 16px;
  display: flex;
  align-items: center;
  line-height: 1;
}
.cp-pod-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cp-pod-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-pod-home {
  font-size: 9.5px;
  font-weight: 600;
  color: #f6b624;
}
.cp-pod-dice {
  font-size: 15px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}
.cp-pod-dice-face {
  font-size: 16px;
  line-height: 1;
}
.cp-pod-dice-num {
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.cp-pod--red { border-color: rgba(239, 68, 68, 0.35); }
.cp-pod--red.is-active {
  border-color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.15);
  animation: cpPodPulseRed 1.8s infinite ease-in-out;
}
@keyframes cpPodPulseRed {
  0%, 100% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 16px rgba(239, 68, 68, 0.8); }
}

.cp-pod--green { border-color: rgba(16, 185, 129, 0.35); }
.cp-pod--green.is-active {
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.15);
  animation: cpPodPulseGreen 1.8s infinite ease-in-out;
}
@keyframes cpPodPulseGreen {
  0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.8); }
}

.cp-pod--yellow { border-color: rgba(234, 179, 8, 0.35); }
.cp-pod--yellow.is-active {
  border-color: #eab308;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.6);
  background: rgba(234, 179, 8, 0.15);
  animation: cpPodPulseYellow 1.8s infinite ease-in-out;
}
@keyframes cpPodPulseYellow {
  0%, 100% { box-shadow: 0 0 8px rgba(234, 179, 8, 0.4); }
  50% { box-shadow: 0 0 16px rgba(234, 179, 8, 0.8); }
}

.cp-pod--blue { border-color: rgba(59, 130, 246, 0.35); }
.cp-pod--blue.is-active {
  border-color: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.15);
  animation: cpPodPulseBlue 1.8s infinite ease-in-out;
}
@keyframes cpPodPulseBlue {
  0%, 100% { box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 16px rgba(59, 130, 246, 0.8); }
}

.cp-ludo-announcer {
  flex: 1;
  text-align: center;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 120px;
}
#ludo-prompt-text {
  font-size: 11px;
  font-weight: 700;
  color: #f6b624;
  line-height: 1.3;
}

.cp-ludo-board-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.cp-ludo-canvas-pro {
  width: min(390px, 46vh, 92vw);
  max-width: min(390px, 46vh, 92vw);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 3px solid #3e2208;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  touch-action: none;
  background: #f8fafc;
  display: block;
}

.cp-ludo-center-dice-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cp-ludo-3d-dice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 18px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2.5px solid #f6b624;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(246, 182, 36, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  min-width: 110px;
  touch-action: manipulation;
}
.cp-ludo-3d-dice:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(246, 182, 36, 0.6);
  border-color: #fbbf24;
}
.cp-ludo-3d-dice:active {
  transform: translateY(1px) scale(0.97);
}
.cp-dice-cube {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}
.cp-dice-cube .cp-dice-pip {
  font-size: 32px;
  line-height: 1;
  display: inline-block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}
.cp-dice-cube .cp-dice-digit {
  font-size: 28px;
  font-weight: 900;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #f6b624;
  line-height: 1;
  display: inline-block;
  text-shadow: 0 0 14px rgba(246, 182, 36, 0.8), 0 2px 5px rgba(0, 0, 0, 0.9);
}
.cp-dice-cube.is-rolling {
  animation: cpDiceRollSpin 0.16s infinite linear;
}
@keyframes cpDiceRollSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}
.cp-dice-roll-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(246, 182, 36, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(246, 182, 36, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.cp-ludo-mobile-tip {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  width: 100%;
  margin-top: 2px;
  line-height: 1.3;
}

/* ==========================================================================
   LUDO MOBILE RESPONSIVE OVERHAUL (SMARTPHONE VIEWPORTS <= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .cp-ludo-stage-wrap {
    padding: 16px 10px;
    border-radius: 18px;
  }
  .cp-ludo-hud {
    margin-bottom: 12px;
  }
  .cp-ludo-title-box p {
    font-size: 0.8rem;
    line-height: 1.45;
  }
  .cp-ludo-badge-row {
    gap: 6px;
    margin-bottom: 8px;
  }
  .cp-ludo-mode-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
  }
  .cp-ludo-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .cp-lmode-btn {
    text-align: center;
    justify-content: center;
    padding: 7px 6px;
    font-size: 11px;
    border-radius: 12px;
  }
  #btn-restart-ludo {
    width: 100%;
    padding: 8px;
    font-size: 12px;
    border-radius: 12px;
  }

  .cp-ludo-master-arena {
    padding: 10px 8px;
    gap: 8px;
    border-radius: 16px;
  }

  /* Top Section: Pods side-by-side (Row 1), Announcer full-width (Row 2) */
  .cp-ludo-pods-row.cp-pods-row--top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  #pod-green {
    order: 1;
  }
  #pod-yellow {
    order: 2;
  }
  .cp-ludo-announcer {
    grid-column: 1 / -1;
    order: 3;
    padding: 6px 10px;
    border-radius: 12px;
    margin-top: 2px;
  }
  #ludo-prompt-text {
    font-size: 11px;
  }

  /* Bottom Section: Pods side-by-side (Row 1), Dice button full-width (Row 2) */
  .cp-ludo-pods-row.cp-pods-row--bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  #pod-red {
    order: 1;
  }
  #pod-blue {
    order: 2;
  }
  .cp-ludo-center-dice-box {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    margin-top: 4px;
  }
  .cp-ludo-3d-dice {
    width: 100%;
    max-width: 280px;
    min-width: 0;
    padding: 8px 16px;
    border-radius: 14px;
    gap: 4px;
  }
  .cp-dice-cube .cp-dice-pip {
    font-size: 34px;
  }
  .cp-dice-cube .cp-dice-digit {
    font-size: 30px;
  }
  .cp-dice-roll-badge {
    font-size: 11px;
    padding: 3px 10px;
  }

  /* Compact Pods for Small Screens */
  .cp-ludo-pod {
    min-width: 0;
    width: 100%;
    padding: 5px 8px;
    gap: 6px;
    border-radius: 16px;
  }
  .cp-pod-avatar {
    font-size: 16px;
  }
  .cp-pod-name {
    font-size: 10px;
    max-width: 65px;
  }
  .cp-pod-home {
    font-size: 9px;
  }
  .cp-pod-dice-face {
    font-size: 16px;
  }
  .cp-pod-dice-num {
    font-size: 14px;
  }

  /* Perfectly Fitted Canvas with zero overflow */
  .cp-ludo-canvas-pro {
    max-width: min(100%, calc(100vw - 32px)) !important;
    border-width: 3px;
    border-radius: 12px;
  }

  .cp-ludo-mobile-tip {
    font-size: 10px;
  }
}

/* ==========================================================================
   FULLSCREEN ZERO-SCROLL FOR GAMES 40-43
   ========================================================================== */
:fullscreen .cp-gomoku-canvas,
.cp-theater-stage:fullscreen .cp-gomoku-canvas {
  width: min(calc(100vh - 200px), calc(100vw - 24px), 480px) !important;
}
:fullscreen .cp-dots-canvas,
.cp-theater-stage:fullscreen .cp-dots-canvas {
  width: min(calc(100vh - 200px), calc(100vw - 24px), 400px) !important;
}
:fullscreen .cp-rps-board-wrap,
.cp-theater-stage:fullscreen .cp-rps-board-wrap {
  width: min(calc(100vh - 180px), calc(100vw - 24px), 480px) !important;
}

/* LUDO KING FULLSCREEN ZERO-SCROLL CENTERING */
:fullscreen #theater-game-ludo.is-active,
.cp-theater-stage:fullscreen #theater-game-ludo.is-active {
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

:fullscreen #theater-game-ludo .cp-arcade-single-game-wrap,
.cp-theater-stage:fullscreen #theater-game-ludo .cp-arcade-single-game-wrap,
:fullscreen #theater-game-ludo .cp-theater-single-wrap,
.cp-theater-stage:fullscreen #theater-game-ludo .cp-theater-single-wrap {
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}

:fullscreen #theater-game-ludo .cp-ludo-hud,
.cp-theater-stage:fullscreen #theater-game-ludo .cp-ludo-hud {
  margin-bottom: 2px !important;
}
:fullscreen #theater-game-ludo .cp-ludo-hud h2,
.cp-theater-stage:fullscreen #theater-game-ludo .cp-ludo-hud h2 {
  font-size: 1.15rem !important;
  margin: 0 0 2px 0 !important;
}
:fullscreen #theater-game-ludo .cp-ludo-hud p,
.cp-theater-stage:fullscreen #theater-game-ludo .cp-ludo-hud p {
  display: none !important;
}

:fullscreen #theater-game-ludo .cp-ludo-mode-bar,
.cp-theater-stage:fullscreen #theater-game-ludo .cp-ludo-mode-bar {
  margin: 0 auto 6px auto !important;
  max-width: 580px !important;
}

:fullscreen .cp-ludo-master-arena,
.cp-theater-stage:fullscreen .cp-ludo-master-arena {
  width: auto !important;
  max-width: min(calc(100vh - 100px), calc(100vw - 24px), 640px) !important;
  padding: 8px 14px !important;
  gap: 8px !important;
  border-radius: 16px !important;
  margin: 0 auto !important;
}

:fullscreen .cp-ludo-canvas-pro,
.cp-theater-stage:fullscreen .cp-ludo-canvas-pro {
  width: min(calc(100vh - 230px), calc(100vw - 36px), 520px) !important;
  height: min(calc(100vh - 230px), calc(100vw - 36px), 520px) !important;
  max-height: calc(100vh - 230px) !important;
}

:fullscreen .cp-ludo-3d-dice,
.cp-theater-stage:fullscreen .cp-ludo-3d-dice {
  padding: 6px 18px !important;
  gap: 4px !important;
}
:fullscreen .cp-dice-cube .cp-dice-pip,
.cp-theater-stage:fullscreen .cp-dice-cube .cp-dice-pip {
  font-size: 38px !important;
}
:fullscreen .cp-dice-cube .cp-dice-digit,
.cp-theater-stage:fullscreen .cp-dice-cube .cp-dice-digit {
  font-size: 34px !important;
}
:fullscreen .cp-dice-roll-badge,
.cp-theater-stage:fullscreen .cp-dice-roll-badge {
  font-size: 11px !important;
  padding: 2px 10px !important;
}

/* ==========================================================================
   GRAND VICTORY / WINNER CELEBRATION MODAL & CONFETTI
   ========================================================================== */
.cp-victory-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cp-victory-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cp-victory-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 23, 41, 0.88);
  backdrop-filter: blur(8px);
}
.cp-confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.cp-victory-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 3px solid #f6b624;
  border-radius: 26px;
  padding: 42px 32px 32px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(246, 182, 36, 0.35);
  transform: scale(0.82);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cp-victory-card.is-defeat-card {
  border-color: #94a3b8;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(148, 163, 184, 0.25);
}
.cp-victory-card.is-defeat-card .cp-trophy-badge {
  filter: drop-shadow(0 10px 25px rgba(239, 68, 68, 0.4));
}
.cp-victory-modal.is-open .cp-victory-card {
  transform: scale(1);
}
.cp-victory-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cp-victory-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.cp-trophy-badge {
  font-size: 4.8rem;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 10px 25px rgba(246, 182, 36, 0.55));
  animation: cpTrophyBounce 1.8s infinite ease-in-out;
}
@keyframes cpTrophyBounce {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}
.cp-victory-stars {
  font-size: 1.4rem;
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.cp-victory-title,
#cp-victory-title,
.cp-victory-card h2 {
  font-size: clamp(1.5rem, 4vw, 2rem) !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 0 0 8px !important;
  letter-spacing: 0.02em !important;
  line-height: 1.25 !important;
  display: block !important;
  text-align: center !important;
}
.cp-victory-card.is-defeat-card .cp-victory-title,
.cp-victory-card.is-defeat-card #cp-victory-title,
.cp-victory-card.is-defeat-card h2 {
  color: #b91c1c !important;
}
.cp-victory-subtitle,
#cp-victory-subtitle,
.cp-victory-card p {
  font-size: 0.95rem !important;
  color: #475569 !important;
  line-height: 1.55 !important;
  margin: 0 0 24px !important;
  text-align: center !important;
  display: block !important;
}
.cp-victory-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 26px;
}
.cp-vstat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.cp-vstat-lbl {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  letter-spacing: 0.04em !important;
}
.cp-vstat-val {
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  color: #133458 !important;
}
.cp-victory-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cp-game-btn--outline {
  background: #ffffff;
  color: #133458;
  border: 2px solid #cbd5e1;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}
.cp-game-btn--outline:hover {
  border-color: #133458;
  background: #f8fafc;
  color: #133458;
}

/* ==========================================================================
   FULLSCREEN VICTORY & CELEBRATION MODAL OVERRIDE
   ========================================================================== */
:fullscreen .cp-victory-modal,
.cp-theater-stage:fullscreen .cp-victory-modal,
#cp-fullscreen-target:fullscreen .cp-victory-modal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 2147483647 !important;
}

:fullscreen .cp-victory-modal:not(.is-open),
.cp-theater-stage:fullscreen .cp-victory-modal:not(.is-open),
#cp-fullscreen-target:fullscreen .cp-victory-modal:not(.is-open) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

:fullscreen .cp-victory-modal.is-open,
.cp-theater-stage:fullscreen .cp-victory-modal.is-open,
#cp-fullscreen-target:fullscreen .cp-victory-modal.is-open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

:fullscreen .cp-victory-backdrop,
.cp-theater-stage:fullscreen .cp-victory-backdrop,
#cp-fullscreen-target:fullscreen .cp-victory-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1 !important;
  background: rgba(4, 8, 16, 0.92) !important;
  backdrop-filter: blur(10px) !important;
}

:fullscreen .cp-confetti-canvas,
.cp-theater-stage:fullscreen .cp-confetti-canvas,
#cp-fullscreen-target:fullscreen .cp-confetti-canvas {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

:fullscreen .cp-victory-card,
.cp-theater-stage:fullscreen .cp-victory-card,
#cp-fullscreen-target:fullscreen .cp-victory-card {
  position: relative !important;
  z-index: 3 !important;
  max-width: 480px !important;
  width: 90% !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 60px rgba(246, 182, 36, 0.45) !important;
}



/* --------------------------------------------------------------------------
   5. Play Games Page & Game Arenas Fix (Screenshots 1, 2, 3)
   -------------------------------------------------------------------------- */
body.cp-dark-theme .cp-games-portal-page,
body.cp-dark-theme .cp-theater-mode-hero,
body.cp-dark-theme .cp-theater-stage,
body.cp-dark-theme .cp-chess-seo-section {
  background: #070e1c !important;
  color: #cbd5e1 !important;
}
body.cp-dark-theme .cp-arcade-single-game-wrap,
body.cp-dark-theme .cp-theater-single-wrap {
  background: #0d1b32 !important;
  border-color: #1e3357 !important;
  color: #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
body.cp-dark-theme .cp-arcade-single-game-wrap h2,
body.cp-dark-theme .cp-theater-single-wrap h2,
body.cp-dark-theme .cp-checkers-hud h2 {
  color: #ffffff !important;
}
body.cp-dark-theme .cp-arcade-single-game-wrap p,
body.cp-dark-theme .cp-theater-single-wrap p,
body.cp-dark-theme .cp-checkers-hud p {
  color: #94a3b8 !important;
}
body.cp-dark-theme .cp-mode-toggle {
  background: #091426 !important;
  border: 1px solid #1e3357 !important;
}
body.cp-dark-theme .cp-mode-btn {
  color: #94a3b8 !important;
}
body.cp-dark-theme .cp-mode-btn.is-active {
  background: #132746 !important;
  color: #f6b624 !important;
}
body.cp-dark-theme .cp-chess-seo-content h2 {
  color: #ffffff !important;
}
body.cp-dark-theme .cp-chess-seo-content p {
  color: #cbd5e1 !important;
}
body.cp-dark-theme .cp-rule-card {
  background: #0d1b32 !important;
  border: 1px solid #1e3357 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}
body.cp-dark-theme .cp-rule-card h3 {
  color: #ffffff !important;
}
body.cp-dark-theme .cp-rule-card li {
  color: #cbd5e1 !important;
}
body.cp-dark-theme .cp-rule-card strong {
  color: #f6b624 !important;
}
body.cp-dark-theme .cp-chess-faqs details {
  background: #0d1b32 !important;
  border: 1px solid #1e3357 !important;
}
body.cp-dark-theme .cp-chess-faqs summary {
  color: #ffffff !important;
}
body.cp-dark-theme .cp-chess-faqs p {
  color: #cbd5e1 !important;
}

/* Poster background gradients for cards 36 to 43 */
.cp-poster--sequence { background: radial-gradient(circle, #db2777 0%, #500724 100%); }
.cp-poster--pattern { background: radial-gradient(circle, #0d9488 0%, #134e4a 100%); }
.cp-poster--guess { background: radial-gradient(circle, #4f46e5 0%, #1e1b4b 100%); }
.cp-poster--game24 { background: radial-gradient(circle, #dc2626 0%, #450a0a 100%); }
.cp-poster--gomoku { background: radial-gradient(circle, #d97706 0%, #451a03 100%); }
.cp-poster--rps { background: radial-gradient(circle, #e11d48 0%, #4c0519 100%); }
.cp-poster--dots { background: radial-gradient(circle, #0284c7 0%, #082f49 100%); }
.cp-poster--ludo { background: radial-gradient(circle, #16a34a 0%, #052e16 100%); }

/* Poster background gradients for cards 44 to 50 */
.cp-poster--cricket { background: radial-gradient(circle, #059669 0%, #064e3b 100%); }
.cp-poster--carrom { background: radial-gradient(circle, #b45309 0%, #451a03 100%); }
.cp-poster--pacman { background: radial-gradient(circle, #eab308 0%, #1e3a8a 100%); }
.cp-poster--airhockey { background: radial-gradient(circle, #0284c7 0%, #082f49 100%); }
.cp-poster--jewel { background: radial-gradient(circle, #8b5cf6 0%, #3b0764 100%); }
.cp-poster--spaceinvaders { background: radial-gradient(circle, #10b981 0%, #090d16 100%); }


/* ==========================================================================
   44. TAPE-BALL CRICKET CHAMPION (2026 BROADCAST ARENA EDITION)
   ========================================================================== */
#theater-game-cricket .cp-cricket-arena-wrap {
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 16px 16px 20px 16px !important;
  background: radial-gradient(circle at 50% 20%, #0d1e38 0%, #060d19 100%) !important;
  border: 1px solid #1e3357 !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65) !important;
  box-sizing: border-box !important;
  color: #ffffff !important;
}

/* Top Live Match Meta */
.cp-cric-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cp-cric-match-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-cric-badge-live {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  animation: cpPulse 1.8s infinite;
}
.cp-cric-match-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.cp-cric-mode-status {
  background: #1e3357;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* Broadcast Main Scoreboard */
.cp-cric-broadcast-board {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 12px;
  background: #091426;
  border: 1px solid #1e3357;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.cp-cric-score-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cp-cric-team-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cp-cric-team-flag {
  font-size: 1.4rem;
}
.cp-cric-team-box h3 {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}
.cp-cric-vs-tag {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 700;
}
.cp-cric-main-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cp-cric-runs-wkts {
  font-size: 1.8rem;
  font-weight: 900;
  color: #f6b624;
  letter-spacing: -0.02em;
}
.cp-cric-overs {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 700;
}

/* Match Equation & Rates */
.cp-cric-equation-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 10px;
}
.cp-cric-eq-box {
  margin-bottom: 6px;
}
.cp-cric-eq-lbl {
  display: block;
  font-size: 0.66rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}
.cp-cric-eq-val {
  font-size: 0.88rem;
  color: #38bdf8;
  font-weight: 800;
}
.cp-cric-rates {
  display: flex;
  gap: 12px;
}
.cp-cric-rate-item {
  font-size: 0.72rem;
  color: #94a3b8;
}
.cp-cric-rate-item strong {
  color: #ffffff;
  margin-left: 4px;
}

/* Batsmen & Bowler Live Cards */
.cp-cric-players-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.cp-cric-player-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
}
.cp-cric-player-card.is-striker {
  background: rgba(246, 182, 36, 0.12);
  border: 1px solid rgba(246, 182, 36, 0.3);
}
.cp-cric-p-icon {
  font-size: 0.85rem;
}
.cp-cric-p-name {
  color: #cbd5e1;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-cric-player-card.is-striker .cp-cric-p-name {
  color: #f6b624;
}
.cp-cric-p-score {
  color: #ffffff;
  font-weight: 800;
}
.cp-cric-bowler-card {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin-top: 2px;
}
.cp-cric-bowler-card .cp-cric-p-name {
  color: #38bdf8;
}

/* Over Tracker Bar */
.cp-cric-over-tracker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b192e;
  border: 1px solid #1e3357;
  border-radius: 10px;
  padding: 6px 12px;
  margin-bottom: 12px;
}
.cp-cric-ot-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.cp-cric-over-balls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cp-cric-ball-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  background: #132746;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.cp-cric-ball-pill.is-empty {
  color: #475569;
  background: #091322;
}
.cp-cric-ball-pill.is-dot {
  background: #1e293b;
  color: #94a3b8;
}
.cp-cric-ball-pill.is-runs {
  background: #0369a1;
  color: #ffffff;
}
.cp-cric-ball-pill.is-four {
  background: #2563eb;
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}
.cp-cric-ball-pill.is-six {
  background: #059669;
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.6);
}
.cp-cric-ball-pill.is-wicket {
  background: #dc2626;
  color: #ffffff;
  border-color: #f87171;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}
.cp-cric-wickets-left {
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
}

/* Stadium Stage & Overlays */
.cp-cricket-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #041209;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #166534;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  width: 100%;
}
#cricket-canvas {
  width: 100%;
  max-width: 750px;
  height: auto;
  display: block;
}

/* Toss Modal */
.cp-cric-toss-modal {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 16px;
}
.cp-cric-toss-card {
  background: #091729;
  border: 2px solid #f6b624;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.cp-cric-toss-badge {
  font-size: 0.78rem;
  font-weight: 900;
  background: #f6b624;
  color: #000000;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.cp-cric-toss-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}
.cp-cric-toss-card p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 16px;
}
.cp-cric-coin-wrap {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: cpCoinFloat 1.8s ease-in-out infinite;
}
@keyframes cpCoinFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.cp-cric-toss-choices,
.cp-cric-decision-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.cp-cric-toss-btn,
.cp-cric-decision-btn {
  background: #10223f;
  border: 1.5px solid #1e3357;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}
.cp-cric-toss-btn:hover {
  border-color: #f6b624;
  background: #18335e;
  color: #f6b624;
}
.cp-cric-decision-btn.is-bat {
  background: #059669;
  border-color: #10b981;
}
.cp-cric-decision-btn.is-bat:hover {
  background: #10b981;
}
.cp-cric-decision-btn.is-bowl {
  background: #2563eb;
  border-color: #3b82f6;
}
.cp-cric-decision-btn.is-bowl:hover {
  background: #3b82f6;
}

/* Mid-Innings Break Modal */
.cp-cric-break-modal {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 16px;
}
.cp-cric-break-card {
  background: #091729;
  border: 2px solid #38bdf8;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.cp-cric-break-badge {
  font-size: 0.78rem;
  font-weight: 900;
  background: #38bdf8;
  color: #000000;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.cp-cric-break-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
}
.cp-cric-break-target-box {
  background: #0f2444;
  border: 1px solid #1e3357;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.cp-cric-break-target-box span {
  font-size: 0.82rem;
  color: #94a3b8;
}
.cp-cric-break-target-box h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #f6b624;
  margin: 6px 0;
}
.cp-cric-break-target-box p {
  font-size: 0.85rem;
  color: #38bdf8;
  margin: 0;
  font-weight: 700;
}

/* Callout Overlay (FOUR / SIX / WICKET) */
.cp-cricket-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 10;
}
.cp-cric-callout {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.9);
  animation: cricPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Commentary Bar */
.cp-cric-commentary-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #07101e;
  border: 1px solid #1e3357;
  border-radius: 10px;
  padding: 8px 14px;
  margin-top: 10px;
  margin-bottom: 12px;
}
.cp-cric-comm-icon {
  font-size: 1.1rem;
}
.cp-cric-comm-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
  line-height: 1.35;
}

/* Dynamic Controls Dashboard */
.cp-cric-controls-dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #091729;
  border: 1px solid #1e3357;
  border-radius: 14px;
  padding: 14px;
}

.cp-cric-batting-controls,
.cp-cric-bowling-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}
.cp-cric-ctrl-lbl {
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  margin-right: 4px;
}

.cp-cric-direction-toggles,
.cp-cric-delivery-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.cp-cric-dir-btn,
.cp-cric-del-btn {
  background: #0e203c;
  border: 1px solid #1e3357;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cp-cric-dir-btn:hover,
.cp-cric-del-btn:hover {
  border-color: #f6b624;
  color: #ffffff;
}
.cp-cric-dir-btn.is-active,
.cp-cric-del-btn.is-active {
  background: #f6b624;
  border-color: #f6b624;
  color: #070e1c;
  box-shadow: 0 2px 10px rgba(246, 182, 36, 0.4);
}

.cp-cric-action-btn {
  font-size: 1rem !important;
  font-weight: 800 !important;
  padding: 12px 32px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: none;
}
.cp-cric-action-btn.is-primary {
  background: linear-gradient(135deg, #f6b624 0%, #d97706 100%) !important;
  color: #070e1c !important;
  box-shadow: 0 4px 16px rgba(246, 182, 36, 0.45) !important;
}
.cp-cric-action-btn.is-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(246, 182, 36, 0.6) !important;
}
.cp-cric-action-btn.is-outline {
  background: transparent !important;
  border: 1px solid #1e3357 !important;
  color: #cbd5e1 !important;
  padding: 8px 18px !important;
  font-size: 0.82rem !important;
}
.cp-cric-action-btn.is-outline:hover {
  border-color: #f6b624 !important;
  color: #f6b624 !important;
}

/* Footwork / Crease Movement Controls */
.cp-cric-footwork-bar,
.cp-cric-shot-type-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.cp-cric-footwork-btns,
.cp-cric-elevation-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.cp-cric-move-btn,
.cp-cric-elev-btn {
  background: #0f2444;
  border: 1px solid #1e3a6a;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cp-cric-move-btn:hover,
.cp-cric-elev-btn:hover {
  border-color: #38bdf8;
  color: #ffffff;
  background: #18335e;
}
.cp-cric-elev-btn.is-active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #070e1c;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}

/* In-Play Running Between Wickets Controls ("Runs ka option") */
.cp-cric-running-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid #22c55e;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
  animation: cricRunPulse 1.5s infinite;
}
@keyframes cricRunPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 24px rgba(34, 197, 94, 0.5); }
}
.cp-cric-running-status-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cp-cric-running-title {
  font-size: 0.88rem;
  font-weight: 900;
  color: #22c55e;
  letter-spacing: 0.04em;
}
.cp-cric-running-count {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}
.cp-cric-running-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}
.cp-cric-run-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  padding: 10px 24px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4) !important;
}
.cp-cric-run-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6) !important;
}
.cp-cric-stop-btn {
  background: #dc2626 !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
}
.cp-cric-stop-btn:hover {
  background: #ef4444 !important;
}

.cp-cric-pitch-tip {
  font-size: 0.78rem;
  color: #38bdf8;
  text-align: center;
}

.cp-cric-meta-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

/* Fullscreen Cricket Rules */
:fullscreen #theater-game-cricket.is-active,
.cp-theater-stage:fullscreen #theater-game-cricket.is-active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
:fullscreen #theater-game-cricket.is-active .cp-cricket-arena-wrap,
.cp-theater-stage:fullscreen #theater-game-cricket.is-active .cp-cricket-arena-wrap {
  max-width: min(850px, 94vw) !important;
  max-height: 96vh !important;
  overflow-y: auto !important;
  margin: auto !important;
}

/* Mobile Responsive Rules */
@media (max-width: 680px) {
  #theater-game-cricket .cp-cricket-arena-wrap {
    padding: 12px 10px !important;
  }
  .cp-cric-broadcast-board {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cp-cric-equation-col {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
  }
  .cp-cric-callout {
    font-size: 2.2rem;
  }
}

/* 45. Carrom Championship Arena Styling (Ultra-Modern 2026 Edition) */
.cp-carrom-container { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; width: 100%; }
.cp-carrom-header-row { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; gap: 10px; margin-bottom: 12px; margin-top: 31px;}
.cp-carrom-title-box { text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cp-carrom-badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 2px; }
.cp-carrom-badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(30, 41, 59, 0.85); color: #94a3b8; border: 1px solid #334155; }
.cp-carrom-badge--gold { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(180, 83, 9, 0.25)); color: #fbbf24; border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
.cp-carrom-title-box h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); color: #f59e0b; margin: 0; font-weight: 800; text-align: center; letter-spacing: -0.01em; text-shadow: 0 2px 12px rgba(245, 158, 11, 0.3); }
.cp-carrom-title-box p { font-size: 0.82rem; color: #94a3b8; margin: 0 auto; max-width: 580px; line-height: 1.45; text-align: center; }

.cp-carrom-mode-toggles { display: inline-flex; align-items: center; gap: 6px; background: rgba(15, 23, 42, 0.95); padding: 5px 8px; border-radius: 999px; border: 1.5px solid #334155; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.cp-carrom-mode-btn { padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: transparent; border: none; color: #94a3b8; cursor: pointer; transition: all 0.2s ease; }
.cp-carrom-mode-btn:hover { color: #f8fafc; }
.cp-carrom-mode-btn.is-active { background: #f59e0b; color: #000000; font-weight: 800; box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45); }

/* Scoreboard & Status */
.cp-carrom-scoreboard { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px; flex-wrap: wrap; }
.cp-carrom-p-card { display: flex; align-items: center; gap: 10px; background: #0b1329; border: 1.5px solid #1e293b; border-radius: 12px; padding: 6px 14px; transition: all 0.25s ease; min-width: 145px; }
.cp-carrom-p-card.is-active { border-color: #f59e0b; background: rgba(245, 158, 11, 0.12); box-shadow: 0 0 16px rgba(245, 158, 11, 0.35); transform: translateY(-1px); }
.cp-carrom-avatar-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.cp-carrom-avatar { font-size: 1.3rem; line-height: 1; }
.cp-carrom-turn-dot { position: absolute; bottom: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: #334155; border: 1.5px solid #0f172a; transition: all 0.2s ease; }
.cp-carrom-p-card.is-active .cp-carrom-turn-dot { background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: cpCarromPulse 1.4s infinite ease-in-out; }
@keyframes cpCarromPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.75; } }

.cp-carrom-p-info { display: flex; flex-direction: column; gap: 2px; }
.cp-carrom-p-info strong { font-size: 0.76rem; color: #cbd5e1; font-weight: 700; white-space: nowrap; }
.cp-carrom-score-row { display: flex; align-items: center; gap: 6px; }
.cp-carrom-score { font-size: 0.95rem; font-weight: 800; color: #ffffff; }
.cp-carrom-p-card.is-active .cp-carrom-score { color: #f59e0b; }
.cp-carrom-rem-badge { font-size: 0.7rem; font-weight: 700; color: #94a3b8; background: rgba(30, 41, 59, 0.8); padding: 1px 6px; border-radius: 4px; border: 1px solid #334155; }

.cp-carrom-queen-indicator { display: flex; align-items: center; gap: 8px; background: rgba(220, 38, 38, 0.12); border: 1.5px solid rgba(220, 38, 38, 0.45); border-radius: 12px; padding: 6px 14px; box-shadow: 0 0 14px rgba(220, 38, 38, 0.2); transition: all 0.25s ease; }
.cp-carrom-queen-indicator.is-pending-cover { background: rgba(245, 158, 11, 0.2); border-color: #f59e0b; box-shadow: 0 0 16px rgba(245, 158, 11, 0.4); animation: cpCarromPulse 1.2s infinite ease-in-out; }
.cp-carrom-queen-indicator.is-covered { background: rgba(34, 197, 94, 0.2); border-color: #22c55e; box-shadow: 0 0 16px rgba(34, 197, 94, 0.4); }
.cp-queen-icon { font-size: 1.35rem; line-height: 1; }
.cp-queen-details { display: flex; flex-direction: column; gap: 1px; }
.cp-queen-label { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.05em; color: #fca5a5; }
.cp-carrom-queen-indicator.is-pending-cover .cp-queen-label { color: #fde047; }
.cp-carrom-queen-indicator.is-covered .cp-queen-label { color: #86efac; }
#carrom-queen-text { font-size: 0.8rem; font-weight: 700; color: #fecaca; white-space: nowrap; }
.cp-carrom-queen-indicator.is-pending-cover #carrom-queen-text { color: #fef08a; }
.cp-carrom-queen-indicator.is-covered #carrom-queen-text { color: #bbf7d0; }

/* Canvas Stage */
.cp-carrom-stage {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, #2a1107 0%, #120602 100%);
  border-radius: 18px;
  overflow: hidden;
  padding: 8px;
  border: 2px solid #6c2d0f;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.9), inset 0 2px 10px rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
}
#carrom-canvas {
  width: min(650px, 92vw, 58vh);
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  touch-action: none;
  cursor: crosshair;
}

/* Bottom Controls */
.cp-carrom-bottom-controls { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 640px; margin-top: 12px; gap: 10px; }
.cp-carrom-slider-section { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cp-carrom-slider-label { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; font-weight: 800; color: #f59e0b; letter-spacing: 0.03em; text-transform: uppercase; }
.cp-carrom-presets { display: flex; align-items: center; gap: 4px; }
.cp-carrom-preset-btn { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: #1e293b; border: 1px solid #334155; color: #cbd5e1; cursor: pointer; transition: all 0.2s ease; }
.cp-carrom-preset-btn:hover { background: #334155; color: #ffffff; }
.cp-carrom-preset-btn.is-active { background: #f59e0b; color: #000000; border-color: #f59e0b; }

.cp-carrom-slider-container { width: 100%; display: flex; align-items: center; gap: 8px; }
.cp-carrom-slider-icon { color: #f59e0b; font-size: 0.75rem; }
#carrom-striker-pos { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; background: linear-gradient(90deg, #1e293b 0%, #0f172a 50%, #1e293b 100%); border: 2px solid #b45309; border-radius: 999px; outline: none; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 12px rgba(245, 158, 11, 0.25); cursor: pointer; transition: all 0.2s ease; }
#carrom-striker-pos:hover { border-color: #f59e0b; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 18px rgba(245, 158, 11, 0.45); }
#carrom-striker-pos::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffffff 0%, #fef08a 25%, #f59e0b 60%, #92400e 100%); border: 3px solid #fde047; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 18px rgba(245, 158, 11, 0.85), inset 0 2px 4px #ffffff; cursor: grab; transition: transform 0.15s ease, box-shadow 0.15s ease; }
#carrom-striker-pos::-webkit-slider-thumb:hover { transform: scale(1.16); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 24px rgba(245, 158, 11, 1), inset 0 2px 5px #ffffff; }
#carrom-striker-pos:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }
#carrom-striker-pos::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffffff 0%, #fef08a 25%, #f59e0b 60%, #92400e 100%); border: 3px solid #fde047; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 18px rgba(245, 158, 11, 0.85), inset 0 2px 4px #ffffff; cursor: grab; }
#carrom-striker-pos::-moz-range-track { background: transparent; border: none; }

.cp-carrom-info-row { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.cp-carrom-status-msg { font-size: 0.86rem; font-weight: 700; color: #cbd5e1; text-align: center; min-height: 22px; }
.cp-carrom-power-meter { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 800; color: #94a3b8; }
.cp-cpower-bar-bg { width: 140px; height: 10px; background: #0f172a; border-radius: 999px; overflow: hidden; border: 1.5px solid #334155; }
.cp-cpower-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #22c55e, #eab308, #ef4444); transition: width 0.04s linear; }
.cp-carrom-action-row { display: flex; justify-content: center; width: 100%; margin-top: 2px; }
.cp-carrom-reset-btn { font-size: 0.85rem !important; font-weight: 800 !important; padding: 8px 22px !important; border-radius: 999px !important; background: #1e293b !important; border: 1.5px solid #475569 !important; color: #f8fafc !important; cursor: pointer !important; transition: all 0.2s ease !important; }
.cp-carrom-reset-btn:hover { background: #f59e0b !important; color: #000000 !important; border-color: #f59e0b !important; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4) !important; }
.cp-carrom-touch-tip { font-size: 0.78rem; color: #94a3b8; text-align: center; max-width: 540px; line-height: 1.4; }

/* Fullscreen Isolated Mode - Maximum Board Scale & Zero Waste Space */
:fullscreen #theater-game-carrom.is-active,
.cp-theater-stage:fullscreen #theater-game-carrom.is-active,
#cp-fullscreen-target:fullscreen #theater-game-carrom.is-active {
  width: 100% !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-evenly !important;
  padding: 6px 14px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #040814 !important;
}
:fullscreen #theater-game-carrom.is-active .cp-carrom-container,
.cp-theater-stage:fullscreen #theater-game-carrom.is-active .cp-carrom-container,
#cp-fullscreen-target:fullscreen #theater-game-carrom.is-active .cp-carrom-container {
  max-width: 860px !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-evenly !important;
  align-items: center !important;
}
:fullscreen #theater-game-carrom.is-active .cp-carrom-header-row,
.cp-theater-stage:fullscreen #theater-game-carrom.is-active .cp-carrom-header-row,
#cp-fullscreen-target:fullscreen #theater-game-carrom.is-active .cp-carrom-header-row {
  margin-bottom: 2px !important;
  gap: 4px !important;
}
:fullscreen #theater-game-carrom.is-active .cp-carrom-badge-row,
.cp-theater-stage:fullscreen #theater-game-carrom.is-active .cp-carrom-badge-row,
#cp-fullscreen-target:fullscreen #theater-game-carrom.is-active .cp-carrom-badge-row {
  display: none !important;
}
:fullscreen #theater-game-carrom.is-active .cp-carrom-title-box p,
.cp-theater-stage:fullscreen #theater-game-carrom.is-active .cp-carrom-title-box p,
#cp-fullscreen-target:fullscreen #theater-game-carrom.is-active .cp-carrom-title-box p {
  display: none !important;
}
:fullscreen #theater-game-carrom.is-active .cp-carrom-title-box h2,
.cp-theater-stage:fullscreen #theater-game-carrom.is-active .cp-carrom-title-box h2,
#cp-fullscreen-target:fullscreen #theater-game-carrom.is-active .cp-carrom-title-box h2 {
  font-size: 1.18rem !important;
}
:fullscreen #theater-game-carrom.is-active .cp-carrom-scoreboard,
.cp-theater-stage:fullscreen #theater-game-carrom.is-active .cp-carrom-scoreboard,
#cp-fullscreen-target:fullscreen #theater-game-carrom.is-active .cp-carrom-scoreboard {
  margin-bottom: 4px !important;
  gap: 8px !important;
}
:fullscreen #theater-game-carrom.is-active .cp-carrom-p-card,
.cp-theater-stage:fullscreen #theater-game-carrom.is-active .cp-carrom-p-card,
#cp-fullscreen-target:fullscreen #theater-game-carrom.is-active .cp-carrom-p-card {
  padding: 4px 12px !important;
  min-width: 120px !important;
}
:fullscreen #theater-game-carrom.is-active .cp-carrom-stage,
.cp-theater-stage:fullscreen #theater-game-carrom.is-active .cp-carrom-stage,
#cp-fullscreen-target:fullscreen #theater-game-carrom.is-active .cp-carrom-stage {
  width: fit-content !important;
  padding: 6px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.95) !important;
}
:fullscreen #theater-game-carrom.is-active #carrom-canvas,
.cp-theater-stage:fullscreen #theater-game-carrom.is-active #carrom-canvas,
#cp-fullscreen-target:fullscreen #theater-game-carrom.is-active #carrom-canvas {
  width: min(740px, 94vw, 68vh) !important;
  height: auto !important;
}
:fullscreen #theater-game-carrom.is-active .cp-carrom-bottom-controls,
.cp-theater-stage:fullscreen #theater-game-carrom.is-active .cp-carrom-bottom-controls,
#cp-fullscreen-target:fullscreen #theater-game-carrom.is-active .cp-carrom-bottom-controls {
  margin-top: 4px !important;
  gap: 4px !important;
}
:fullscreen #theater-game-carrom.is-active .cp-carrom-touch-tip,
.cp-theater-stage:fullscreen #theater-game-carrom.is-active .cp-carrom-touch-tip,
#cp-fullscreen-target:fullscreen #theater-game-carrom.is-active .cp-carrom-touch-tip {
  display: none !important;
}

/* 47. Pac-Man Retro Arcade Styling */
.cp-pacman-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.85));
  border: 1px solid #1e3a8a;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.25);
}
.cp-pacman-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cp-pac-stat {
  background: #091222;
  border: 1px solid #1e3357;
  border-radius: 8px;
  padding: 6px 14px;
  text-align: center;
  min-width: 60px;
}
.cp-pac-stat span {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.cp-pac-stat strong {
  display: block;
  font-size: 1.15rem;
  color: #facc15;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.cp-pac-level-badge {
  border-color: #38bdf8 !important;
  background: #08203e !important;
}
.cp-pac-level-badge strong {
  color: #38bdf8 !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}
.cp-pac-fruit-badge {
  border-color: #ef4444 !important;
  background: #250914 !important;
}
.cp-pac-fruit-badge strong {
  font-size: 1.25rem !important;
}

.cp-pacman-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  border-radius: 14px;
  overflow: hidden;
  padding: 10px;
  border: 2px solid #2563eb;
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.35), inset 0 0 25px rgba(0, 0, 0, 0.8);
  margin-top: 10px;
}
#pacman-canvas {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.9);
}

/* In-Game Ready / Level Complete Overlay */
.cp-pacman-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 16px;
}
.cp-pac-overlay-card {
  background: linear-gradient(135deg, #091328 0%, #030814 100%);
  border: 1.5px solid #38bdf8;
  border-radius: 16px;
  padding: 24px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.45);
  animation: cricPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cp-pac-card-badge {
  background: #38bdf8;
  color: #000000;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.cp-pac-overlay-card h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px;
}
.cp-pac-overlay-card p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0 0 16px;
}
.cp-pac-card-stats {
  display: flex;
  justify-content: space-around;
  background: #060e1d;
  border: 1px solid #1e3357;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 18px;
}
.cp-pac-card-stat span {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
}
.cp-pac-card-stat strong {
  display: block;
  font-size: 1.15rem;
  color: #facc15;
  font-weight: 900;
}
.cp-pac-card-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.cp-pac-next-btn {
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%) !important;
  color: #000000 !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.4) !important;
}

/* Modern Cyber D-Pad Controls */
.cp-pacman-controls-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.cp-pacman-dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cp-pac-dpad-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cp-pac-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #0f1c33;
  border: 1.5px solid #23416e;
  color: #facc15;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}
.cp-pac-btn:hover,
.cp-pac-btn:active {
  background: #facc15;
  color: #000000;
  border-color: #facc15;
  transform: scale(0.96);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.5);
}
.cp-pac-restart-btn {
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
}
.cp-pac-tip {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

/* 48. Neon Air Hockey Championship Pro Arena 2026 */
.cp-hockey-hud {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.85));
  border: 1px solid #1e3a8a;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.25);
}
.cp-hockey-title-box h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}
.cp-hockey-title-box p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}
.cp-hockey-match-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}
.cp-h-player-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cp-h-player-card.is-p1 { text-align: left; }
.cp-h-player-card.is-p2 { text-align: right; }
.cp-h-player-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.cp-h-player-card.is-p1 .cp-h-player-badge { color: #38bdf8; }
.cp-h-player-card.is-p2 .cp-h-player-badge { color: #f87171; }
.cp-h-player-name {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
}

.cp-hockey-scoreboard-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cp-hockey-score-board {
  background: #030712;
  border: 1.5px solid #1e3a8a;
  border-radius: 10px;
  padding: 6px 20px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 16px rgba(30, 58, 138, 0.4);
}
.cp-h-score-p1 { color: #38bdf8; text-shadow: 0 0 12px rgba(56, 189, 248, 0.7); }
.cp-h-colon { color: #64748b; }
.cp-h-score-p2 { color: #ef4444; text-shadow: 0 0 12px rgba(239, 68, 68, 0.7); }

.cp-h-meta-tags {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cp-h-speed-badge {
  background: #082f49;
  border: 1px solid #0284c7;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 20px;
}
.cp-h-target-badge {
  background: #1e1b4b;
  border: 1px solid #4338ca;
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 20px;
}

.cp-hockey-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #02040a;
  border-radius: 16px;
  overflow: hidden;
  padding: 10px;
  border: 2px solid #0284c7;
  box-shadow: 0 0 35px rgba(2, 132, 199, 0.35), inset 0 0 25px rgba(0, 0, 0, 0.9);
  margin-top: 10px;
}
#hockey-canvas {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  cursor: grab;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}
#hockey-canvas:active { cursor: grabbing; }

/* Goal Flash Celebration Overlay */
.cp-hockey-goal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 10;
  animation: cpGoalStrobe 0.6s infinite alternate;
}
@keyframes cpGoalStrobe {
  0% { background: rgba(239, 68, 68, 0.25); }
  100% { background: rgba(56, 189, 248, 0.25); }
}
.cp-hockey-goal-banner {
  font-size: 3.5rem;
  font-weight: 900;
  color: #facc15;
  letter-spacing: 0.1em;
  text-shadow: 0 0 30px rgba(250, 204, 21, 0.9), 0 4px 16px rgba(0, 0, 0, 0.9);
  animation: cricPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Match Victory Overlay */
.cp-hockey-victory-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 16px;
}
.cp-hockey-victory-card {
  background: linear-gradient(135deg, #07152d 0%, #030814 100%);
  border: 1.5px solid #38bdf8;
  border-radius: 16px;
  padding: 24px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.5);
  animation: cricPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cp-h-win-badge {
  background: #38bdf8;
  color: #000000;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.cp-hockey-victory-card h3 {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px;
}
.cp-hockey-victory-card p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0 0 16px;
}
.cp-h-win-stats {
  display: flex;
  justify-content: space-around;
  background: #040c1c;
  border: 1px solid #1e3357;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 18px;
}
.cp-h-win-stat span { display: block; font-size: 0.72rem; color: #94a3b8; font-weight: 700; }
.cp-h-win-stat strong { display: block; font-size: 1.2rem; color: #facc15; font-weight: 900; }
.cp-h-win-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Controls Bar & Mode Selectors */
.cp-hockey-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  background: #081222;
  border: 1px solid #1e3357;
  border-radius: 12px;
  padding: 10px 16px;
}
.cp-hockey-ctrl-lbl {
  font-size: 0.76rem;
  font-weight: 800;
  color: #94a3b8;
  margin-right: 4px;
}
.cp-hockey-mode-toggles,
.cp-hockey-target-toggles {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cp-hockey-diff-btn,
.cp-hockey-target-btn {
  background: #0f1e36;
  border: 1px solid #223c68;
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.15s ease;
}
.cp-hockey-diff-btn:hover,
.cp-hockey-target-btn:hover {
  border-color: #38bdf8;
  color: #ffffff;
}
.cp-hockey-diff-btn.is-active,
.cp-hockey-target-btn.is-active {
  background: #38bdf8;
  color: #000000;
  border-color: #38bdf8;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}
.cp-hockey-restart-btn {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
}
.cp-hockey-tip {
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
  display: block;
  margin-top: 6px;
}

/* 49. Jewel Blitz Styling */
.cp-jewel-hud { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.cp-jewel-stats { display: flex; gap: 12px; }
.cp-j-stat { background: #0f172a; border: 1px solid #1e293b; border-radius: 8px; padding: 6px 12px; text-align: center; }
.cp-j-stat span { display: block; font-size: 0.68rem; color: #94a3b8; font-weight: 700; }
.cp-j-stat strong { display: block; font-size: 1.05rem; color: #a855f7; }
.cp-jewel-stage { display: flex; justify-content: center; align-items: center; background: #09090b; border-radius: 12px; overflow: hidden; padding: 8px; border: 1px solid #3b0764; }
#jewel-canvas { max-width: 100%; height: auto; display: block; border-radius: 8px; cursor: pointer; box-shadow: 0 8px 32px rgba(168, 85, 247, 0.2); }
.cp-jewel-controls-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 0.85rem; color: #94a3b8; }
.cp-jewel-mode-btn { background: #18181b; border: 1px solid #3f3f46; color: #cbd5e1; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 600; }
.cp-jewel-mode-btn.is-active { background: #a855f7; color: #ffffff; border-color: #a855f7; }
.cp-jewel-tip { font-size: 0.82rem; color: #94a3b8; }

/* 50. Space Invaders Styling */
.cp-invaders-hud { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.cp-invaders-stats { display: flex; gap: 12px; }
.cp-inv-stat { background: #0f172a; border: 1px solid #1e293b; border-radius: 8px; padding: 6px 12px; text-align: center; }
.cp-inv-stat span { display: block; font-size: 0.68rem; color: #94a3b8; font-weight: 700; }
.cp-inv-stat strong { display: block; font-size: 1.05rem; color: #22c55e; }
.cp-invaders-stage { display: flex; justify-content: center; align-items: center; background: #020617; border-radius: 12px; overflow: hidden; padding: 8px; border: 1px solid #065f46; }
#invaders-canvas { max-width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2); }
.cp-invaders-controls-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.cp-invaders-touch-btns { display: flex; gap: 10px; }
.cp-inv-touch-btn { padding: 10px 18px; border-radius: 8px; background: #1e293b; border: 1px solid #334155; color: #ffffff; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.cp-inv-fire-btn { background: #dc2626 !important; border-color: #ef4444 !important; color: #ffffff !important; }
.cp-inv-tip { font-size: 0.82rem; color: #94a3b8; width: 100%; text-align: center; }

/* ==========================================================================
   ONLINE MULTIPLAYER ROOM ENGINE STYLING
   ========================================================================== */
.cp-mode-btn--online {
  background: linear-gradient(135deg, #1e3a8a, #0284c7) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
}
.cp-mode-btn--online.is-active {
  background: #38bdf8 !important;
  color: #000000 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4) !important;
}
.cp-mp-lobby-panel {
  background: #0f172a;
  border: 2px solid #1e3a8a;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: cpFadeIn 0.3s ease;
}
@keyframes cpFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.cp-mp-lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cp-mp-badge {
  font-size: 0.86rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cp-mp-close-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s;
}
.cp-mp-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}
.cp-mp-choice-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cp-mp-create-btn {
  font-size: 0.88rem !important;
  padding: 10px 20px !important;
  font-weight: 800 !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}
.cp-mp-create-btn:hover {
  background: #38bdf8 !important;
  color: #000000 !important;
}
.cp-mp-or {
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748b;
}
.cp-mp-join-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cp-mp-join-input-wrap input {
  background: #020617;
  border: 1.5px solid #334155;
  border-radius: 8px;
  padding: 8px 12px;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 200px;
  outline: none;
}
.cp-mp-join-input-wrap input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}
.cp-mp-join-input-wrap button {
  padding: 9px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
}
.cp-mp-room-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #020617;
  border: 1px dashed #38bdf8;
  border-radius: 12px;
  margin-top: 10px;
  animation: cpFadeIn 0.3s ease;
}
.cp-mp-room-code-display {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cp-mp-lbl {
  font-size: 0.8rem;
  font-weight: 800;
  color: #94a3b8;
}
.cp-mp-code-text {
  font-family: 'JetBrains Mono', monospace, monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: #facc15;
  letter-spacing: 0.08em;
  background: #1e293b;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #475569;
}
.cp-mp-action-btn {
  background: #334155;
  border: 1px solid #475569;
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
}
.cp-mp-action-btn:hover {
  background: #38bdf8;
  color: #000000;
  border-color: #38bdf8;
}
.cp-mp-link-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 520px;
}
.cp-mp-link-wrap input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  outline: none;
}
.cp-mp-waiting-status {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-mp-spinner {
  display: inline-block;
  animation: cpSpin 2s infinite linear;
}
@keyframes cpSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.cp-mp-active-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #064e3b;
  border: 1px solid #059669;
  border-radius: 10px;
  padding: 10px 16px;
  color: #ffffff;
  flex-wrap: wrap;
  gap: 10px;
}
.cp-mp-active-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cp-mp-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: cpPulse 1.5s infinite;
}
@keyframes cpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.cp-mp-role-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #a7f3d0;
}
.cp-mp-active-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-mp-room-tag {
  font-family: monospace;
  font-size: 0.82rem;
  color: #6ee7b7;
  font-weight: 700;
}
.cp-mp-leave-btn {
  background: #dc2626;
  border: none;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.2s;
}
.cp-mp-leave-btn:hover {
  background: #b91c1c;
}

/* Checkers Board Wrap & Offline Disconnect Banner */
.cp-checkers-board-wrap {
  position: relative;
}

.cp-mp-offline-banner {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 10px 18px;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.4);
  backdrop-filter: blur(10px);
  width: max-content;
  max-width: 90%;
  animation: cpBannerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

@keyframes cpBannerSlideIn {
  from { opacity: 0; transform: translate(-50%, -15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.cp-mp-offline-banner.is-restored {
  border-color: #22c55e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(34, 197, 94, 0.5);
}

.cp-mp-offline-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cp-mp-offline-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.cp-mp-offline-text strong {
  display: block;
  font-size: 0.92rem;
  color: #f8fafc;
  font-weight: 700;
}

.cp-mp-offline-text p {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.cp-mp-offline-spinner {
  font-size: 1.2rem;
  animation: cpSpin 1.4s linear infinite;
}

@keyframes cpSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}





/* ==========================================================================
   MODULARIZED GAMES STYLES (SNAKE THEATER & VICTORY MODAL)
   ========================================================================== */
                /* ==========================================================================
                   4. CYBER NEON SNAKE (2026 PRO ARCADE EDITION) - DIRECT THEATER STYLES
                   ========================================================================== */
/* ==========================================================================
   4. CYBER NEON SNAKE (2026 PRO ARCADE EDITION) - FULLY RESPONSIVE & FULLSCREEN OPTIMIZED
   ========================================================================== */
#theater-game-snake {
  display: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#theater-game-snake.is-active {
  display: block !important;
}
#theater-game-snake .cp-snake-stage-wrap {
  width: 100% !important;
  max-width: min(840px, calc(100vw - 24px)) !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  background: transparent !important;
  color: #f8fafc !important;
  box-sizing: border-box !important;
  padding: 0 4px !important;
}

/* Topbar & Header */
#theater-game-snake .cp-snake-topbar {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
}
#theater-game-snake .cp-snake-header-info {
  text-align: center !important;
}
#theater-game-snake .cp-snake-header-info h2 {
  font-size: clamp(1.2rem, 3.8vw, 1.85rem) !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px 12px !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.25 !important;
}
.cp-badge-neon {
  display: inline-block !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #22c55e !important;
  background: rgba(34, 197, 94, 0.12) !important;
  border: 1.5px solid rgba(34, 197, 94, 0.45) !important;
  border-radius: 999px !important;
  padding: 3px 10px !important;
  vertical-align: middle !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.25) !important;
}
#theater-game-snake .cp-snake-header-info p {
  color: #94a3b8 !important;
  font-size: clamp(0.82rem, 2.4vw, 0.95rem) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  text-align: center !important;
}

/* Config Bar (Modes, Speed & Skins Toolbar) */
#theater-game-snake .cp-snake-config-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: #0b1528 !important;
  border: 1.5px solid #1e3357 !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
#theater-game-snake .cp-snake-mode-group {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100%;
}
@media (min-width: 820px) {
  #theater-game-snake .cp-snake-config-bar {
    justify-content: space-between !important;
  }
  #theater-game-snake .cp-snake-mode-group {
    width: auto !important;
  }
}
#theater-game-snake button.cp-scfg-btn {
  background: transparent !important;
  color: #94a3b8 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}
#theater-game-snake button.cp-scfg-btn:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
#theater-game-snake button.cp-scfg-btn.is-active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35) !important;
}

#theater-game-snake .cp-snake-diff-group,
#theater-game-snake .cp-snake-skin-group {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
@media (min-width: 820px) {
  #theater-game-snake .cp-snake-skin-group {
    margin-left: auto !important;
  }
}
#theater-game-snake .cp-snake-skin-label {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  margin-right: 2px !important;
}
#theater-game-snake button.cp-sdiff-btn,
#theater-game-snake button.cp-sskin-btn {
  background: rgba(15, 23, 42, 0.6) !important;
  color: #94a3b8 !important;
  border: 1px solid #1e293b !important;
  border-radius: 6px !important;
  padding: 4px 9px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}
#theater-game-snake button.cp-sdiff-btn:hover,
#theater-game-snake button.cp-sskin-btn:hover {
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}
#theater-game-snake button.cp-sdiff-btn.is-active,
#theater-game-snake button.cp-sskin-btn.is-active {
  background: #1e293b !important;
  color: #38bdf8 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3) !important;
}

/* Live Telemetry Scoreboard HUD */
#theater-game-snake .cp-snake-live-hud {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}
@media (max-width: 640px) {
  #theater-game-snake .cp-snake-live-hud {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}
#theater-game-snake .cp-sstat-card {
  background: #0b1528 !important;
  border: 1.5px solid #1e3357 !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  box-sizing: border-box !important;
}
#theater-game-snake .cp-sstat-card--score { border-color: rgba(34, 197, 94, 0.35) !important; }
#theater-game-snake .cp-sstat-card--best { border-color: rgba(245, 158, 11, 0.35) !important; }
#theater-game-snake .cp-sstat-card--speed { border-color: rgba(56, 189, 248, 0.35) !important; }
#theater-game-snake .cp-sstat-card--powerup { border-color: rgba(168, 85, 247, 0.35) !important; }

#theater-game-snake .cp-sstat-label {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  color: #94a3b8 !important;
  margin-bottom: 2px !important;
}
#theater-game-snake .cp-sstat-val {
  font-size: clamp(1.35rem, 3.2vw, 2rem) !important;
  font-weight: 900 !important;
  color: #f8fafc !important;
  line-height: 1.15 !important;
  font-variant-numeric: tabular-nums !important;
}
#theater-game-snake .cp-sstat-card--score .cp-sstat-val { color: #4ade80 !important; }
#theater-game-snake .cp-sstat-card--best .cp-sstat-val { color: #fbbf24 !important; }
#theater-game-snake .cp-sstat-card--speed .cp-sstat-val { color: #38bdf8 !important; }

#theater-game-snake .cp-sstat-sub {
  font-size: 0.72rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
  margin-top: 2px !important;
}

#theater-game-snake .cp-snake-active-badge {
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  line-height: 1.2 !important;
}
#theater-game-snake .cp-snake-active-badge.is-shield { color: #06b6d4 !important; text-shadow: 0 0 8px rgba(6, 182, 212, 0.5) !important; }
#theater-game-snake .cp-snake-active-badge.is-freeze { color: #38bdf8 !important; text-shadow: 0 0 8px rgba(56, 189, 248, 0.5) !important; }
#theater-game-snake .cp-snake-active-badge.is-magnet { color: #c084fc !important; text-shadow: 0 0 8px rgba(192, 132, 252, 0.5) !important; }

/* Interactive Snake Arena Viewport */
#theater-game-snake .cp-snake-arena-container {
  position: relative !important;
  max-width: 500px !important;
  width: 100% !important;
  margin: 0 auto !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 26px rgba(34, 197, 94, 0.18) !important;
  background: #060d19 !important;
  border: 1.5px solid #1e3357 !important;
  box-sizing: border-box !important;
}
#theater-game-snake #snake-canvas {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 500px !important;
  aspect-ratio: 1 / 1 !important;
  background: #060d19 !important;
  margin: 0 auto !important;
  touch-action: none !important;
}

/* Modern Glassmorphic Overlays */
#theater-game-snake .cp-snake-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(3, 7, 18, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 50 !important;
  padding: 14px !important;
  box-sizing: border-box !important;
}
#theater-game-snake .cp-snake-overlay.is-open {
  display: flex !important;
}

#theater-game-snake .cp-soverlay-content {
  background: #091322 !important;
  border: 2px solid #22c55e !important;
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.35) !important;
  border-radius: 16px !important;
  padding: 20px 22px !important;
  width: 100% !important;
  max-width: min(380px, 94%) !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-sizing: border-box !important;
}
#theater-game-snake .cp-soverlay-emblem {
  font-size: clamp(2.4rem, 6vw, 3.2rem) !important;
  margin-bottom: 4px !important;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.6)) !important;
}
#theater-game-snake .cp-soverlay-content h3 {
  font-size: clamp(1.15rem, 3.5vw, 1.35rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
  color: #f8fafc !important;
  margin: 0 0 6px 0 !important;
}
#theater-game-snake .cp-soverlay-content p {
  color: #94a3b8 !important;
  font-size: 0.84rem !important;
  line-height: 1.4 !important;
  margin: 0 0 14px 0 !important;
  text-align: center !important;
}

#theater-game-snake .cp-soverlay-stats {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  margin-bottom: 14px !important;
}
#theater-game-snake .cp-smodal-stat {
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.78rem !important;
}
#theater-game-snake .cp-smodal-stat span { color: #64748b !important; font-weight: 600 !important; }
#theater-game-snake .cp-smodal-stat strong { color: #e2e8f0 !important; font-weight: 800 !important; }

#theater-game-snake .cp-soverlay-actions {
  width: 100% !important;
}
#theater-game-snake .cp-soverlay-actions button {
  width: 100% !important;
  padding: 10px 18px !important;
  font-size: 0.95rem !important;
  border-radius: 10px !important;
}

/* Bottom Bar */
#theater-game-snake .cp-snake-bottom-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}
#theater-game-snake .cp-snake-shortcuts-hint {
  color: #64748b !important;
  font-size: 0.8rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
#theater-game-snake .cp-snake-shortcuts-hint kbd {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border: 1px solid #334155 !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
  font-size: 0.72rem !important;
  font-family: inherit !important;
}
#theater-game-snake .cp-snake-action-btns {
  display: flex !important;
  gap: 10px !important;
  margin-left: auto !important;
}
@media (max-width: 768px) {
  #theater-game-snake .cp-snake-shortcuts-hint {
    display: none !important;
  }
  #theater-game-snake .cp-snake-action-btns {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: center !important;
  }
  #theater-game-snake .cp-snake-action-btns button {
    flex: 1 !important;
    max-width: 160px !important;
    justify-content: center !important;
  }
}

/* Touch Cyber D-Pad for Mobile & Tablets */
#theater-game-snake .cp-snake-touch-dpad {
  display: none !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 6px auto 0 auto !important;
  width: 100% !important;
}
@media (max-width: 900px) {
  #theater-game-snake .cp-snake-touch-dpad {
    display: flex !important;
  }
}
#theater-game-snake .cp-sdpad-mid {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: center !important;
}
#theater-game-snake button.cp-sdpad-btn {
  width: 58px !important;
  height: 50px !important;
  background: #0b1528 !important;
  border: 1.5px solid #1e3357 !important;
  border-radius: 12px !important;
  color: #22c55e !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  user-select: none !important;
  touch-action: manipulation !important;
  transition: all 0.1s ease !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35) !important;
  padding: 0 !important;
  margin: 0 !important;
}
#theater-game-snake button.cp-sdpad-btn:active {
  background: #22c55e !important;
  color: #042f13 !important;
  transform: scale(0.92) !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.7) !important;
}

/* ==========================================================================
   CYBER NEON SNAKE: FULLSCREEN API RESPONSIVE OPTIMIZATION
   ========================================================================== */
:fullscreen #theater-game-snake.is-active,
.cp-theater-stage:fullscreen #theater-game-snake.is-active {
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
}

:fullscreen #theater-game-snake.is-active .cp-snake-stage-wrap,
.cp-theater-stage:fullscreen #theater-game-snake.is-active .cp-snake-stage-wrap {
  width: 100% !important;
  max-width: min(840px, calc(100vw - 20px)) !important;
  margin: auto !important;
  gap: 10px !important;
  padding: 6px 0 18px 0 !important;
}

:fullscreen #theater-game-snake.is-active .cp-snake-header-info h2,
.cp-theater-stage:fullscreen #theater-game-snake.is-active .cp-snake-header-info h2 {
  font-size: clamp(1.15rem, 2.8vw, 1.5rem) !important;
  margin: 0 0 2px 0 !important;
}

:fullscreen #theater-game-snake.is-active .cp-snake-header-info p,
.cp-theater-stage:fullscreen #theater-game-snake.is-active .cp-snake-header-info p {
  display: none !important;
}

:fullscreen #theater-game-snake.is-active .cp-snake-config-bar,
.cp-theater-stage:fullscreen #theater-game-snake.is-active .cp-snake-config-bar {
  padding: 6px 12px !important;
  gap: 8px !important;
}

:fullscreen #theater-game-snake.is-active .cp-snake-live-hud,
.cp-theater-stage:fullscreen #theater-game-snake.is-active .cp-snake-live-hud {
  gap: 8px !important;
}

:fullscreen #theater-game-snake.is-active .cp-sstat-card,
.cp-theater-stage:fullscreen #theater-game-snake.is-active .cp-sstat-card {
  padding: 6px 10px !important;
  border-radius: 10px !important;
}

:fullscreen #theater-game-snake.is-active .cp-sstat-val,
.cp-theater-stage:fullscreen #theater-game-snake.is-active .cp-sstat-val {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem) !important;
}

:fullscreen #theater-game-snake.is-active .cp-snake-arena-container,
.cp-theater-stage:fullscreen #theater-game-snake.is-active .cp-snake-arena-container {
  max-width: min(480px, calc(100vh - 280px), calc(100vw - 32px)) !important;
  margin: 0 auto !important;
}

:fullscreen #theater-game-snake.is-active #snake-canvas,
.cp-theater-stage:fullscreen #theater-game-snake.is-active #snake-canvas {
  max-width: 100% !important;
  aspect-ratio: 1 / 1 !important;
}

    .cp-victory-modal {
      position: fixed !important;
      inset: 0 !important;
      z-index: 99999 !important;
      display: none !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 16px !important;
      box-sizing: border-box !important;
    }
    .cp-victory-modal.is-open {
      display: flex !important;
    }
    .cp-victory-backdrop {
      position: absolute !important;
      inset: 0 !important;
      background: rgba(3, 7, 18, 0.88) !important;
      backdrop-filter: blur(8px) !important;
    }
    .cp-confetti-canvas {
      position: absolute !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      pointer-events: none !important;
      z-index: 1 !important;
    }
    .cp-victory-card {
      position: relative !important;
      z-index: 2 !important;
      background: #091322 !important;
      border: 2.5px solid #f6b624 !important;
      border-radius: 24px !important;
      padding: 36px 32px 28px !important;
      max-width: 480px !important;
      width: 92% !important;
      text-align: center !important;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(246, 182, 36, 0.35) !important;
      animation: cpModalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
      color: #f8fafc !important;
      box-sizing: border-box !important;
    }
    .cp-victory-card.is-defeat-card {
      border-color: #94a3b8 !important;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(148, 163, 184, 0.25) !important;
    }
    .cp-victory-close {
      position: absolute !important;
      top: 14px !important;
      right: 14px !important;
      background: #1e293b !important;
      border: 1px solid #334155 !important;
      border-radius: 50% !important;
      width: 34px !important;
      height: 34px !important;
      font-size: 1rem !important;
      font-weight: 700 !important;
      color: #94a3b8 !important;
      cursor: pointer !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      transition: all 0.2s !important;
      padding: 0 !important;
    }
    .cp-victory-close:hover {
      background: #334155 !important;
      color: #ffffff !important;
    }
    .cp-trophy-badge {
      font-size: 3.5rem !important;
      margin-bottom: 6px !important;
      filter: drop-shadow(0 8px 20px rgba(246, 182, 36, 0.5)) !important;
    }
    .cp-victory-stars {
      font-size: 1.2rem !important;
      margin-bottom: 8px !important;
      letter-spacing: 3px !important;
    }
    .cp-victory-modal h2.cp-victory-title,
    .cp-victory-card h2,
    #cp-victory-title,
    .cp-victory-title {
      font-size: clamp(1.4rem, 4vw, 1.85rem) !important;
      font-weight: 900 !important;
      letter-spacing: 0.8px !important;
      color: #ffffff !important;
      text-shadow: 0 0 20px rgba(251, 191, 36, 0.5), 0 2px 8px rgba(0, 0, 0, 0.8) !important;
      margin: 0 0 8px 0 !important;
    }
    .cp-victory-subtitle {
      color: #94a3b8 !important;
      font-size: 0.95rem !important;
      margin: 0 0 20px 0 !important;
    }
    .cp-victory-stats {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px !important;
      width: 100% !important;
      margin-bottom: 24px !important;
    }
    .cp-vstat-item {
      background: #0f172a !important;
      border: 1px solid #1e293b !important;
      border-radius: 10px !important;
      padding: 10px 14px !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      font-size: 0.85rem !important;
    }
    .cp-vstat-lbl { color: #64748b !important; font-weight: 600 !important; }
    .cp-vstat-val { color: #e2e8f0 !important; font-weight: 800 !important; }
    .cp-victory-actions {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 10px !important;
      width: 100% !important;
      justify-content: center !important;
    }
    .cp-victory-actions .cp-game-btn {
      flex: 1 1 calc(50% - 10px) !important;
      min-width: 140px !important;
      padding: 12px 16px !important;
      font-size: 0.92rem !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

/* ==========================================================================
   48. NEON AIR HOCKEY PRO ARENA 2026 - CYBER PHYSICS & ULTRA RESPONSIVE
   ========================================================================== */
#theater-game-air-hockey {
  display: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#theater-game-air-hockey.is-active {
  display: block !important;
}

#theater-game-air-hockey .cp-hockey-stage-wrap {
  width: 100% !important;
  max-width: min(780px, calc(100vw - 24px)) !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  background: #0b1329 !important;
  border: 1.5px solid rgba(0, 240, 255, 0.25) !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
  box-sizing: border-box !important;
  contain: layout style;
}

/* Header & Badges */
#theater-game-air-hockey .cp-hockey-hud {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
}

#theater-game-air-hockey .cp-hockey-title-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 6px !important;
}

#theater-game-air-hockey .cp-hockey-badge-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

#theater-game-air-hockey .cp-hockey-subbadge {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 999px !important;
  padding: 3px 10px !important;
  text-transform: uppercase !important;
}

#theater-game-air-hockey .cp-hockey-title-box h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 !important;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.45) !important;
  letter-spacing: 0.02em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

#theater-game-air-hockey .cp-hockey-urdu-sub {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  opacity: 0.9 !important;
}

#theater-game-air-hockey .cp-hockey-title-box p {
  font-size: 0.84rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  max-width: 560px !important;
  line-height: 1.45 !important;
}

/* Match Center Broadcast Bar */
#theater-game-air-hockey .cp-hockey-match-center {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: rgba(2, 6, 23, 0.75) !important;
  border: 1px solid rgba(51, 65, 85, 0.6) !important;
  border-radius: 16px !important;
  padding: 10px 16px !important;
  box-sizing: border-box !important;
}

#theater-game-air-hockey .cp-h-player-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 90px !important;
}

#theater-game-air-hockey .cp-h-player-card.is-p1 {
  align-items: flex-start !important;
  text-align: left !important;
}

#theater-game-air-hockey .cp-h-player-card.is-p2 {
  align-items: flex-end !important;
  text-align: right !important;
}

#theater-game-air-hockey .cp-h-player-badge {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
}

#theater-game-air-hockey .cp-h-player-card.is-p1 .cp-h-player-badge {
  color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.12) !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
}

#theater-game-air-hockey .cp-h-player-card.is-p2 .cp-h-player-badge {
  color: #ff0055 !important;
  background: rgba(255, 0, 85, 0.12) !important;
  border: 1px solid rgba(255, 0, 85, 0.3) !important;
}

#theater-game-air-hockey .cp-h-player-name {
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
}

#theater-game-air-hockey .cp-hockey-scoreboard-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
}

#theater-game-air-hockey .cp-hockey-score-board {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  font-family: 'JetBrains Mono', monospace, ui-monospace, sans-serif !important;
  font-size: 1.85rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

#theater-game-air-hockey .cp-h-score-p1 {
  color: #00f0ff !important;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6) !important;
  min-width: 28px !important;
  text-align: right !important;
}

#theater-game-air-hockey .cp-h-colon {
  color: #64748b !important;
  font-weight: 700 !important;
}

#theater-game-air-hockey .cp-h-score-p2 {
  color: #ff0055 !important;
  text-shadow: 0 0 12px rgba(255, 0, 85, 0.6) !important;
  min-width: 28px !important;
  text-align: left !important;
}

#theater-game-air-hockey .cp-h-meta-tags {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#theater-game-air-hockey .cp-h-speed-badge {
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  color: #facc15 !important;
  background: rgba(250, 204, 21, 0.12) !important;
  border: 1px solid rgba(250, 204, 21, 0.3) !important;
  border-radius: 999px !important;
  padding: 2px 8px !important;
  font-variant-numeric: tabular-nums !important;
}

#theater-game-air-hockey .cp-h-target-badge {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  background: rgba(148, 163, 184, 0.1) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 999px !important;
  padding: 2px 8px !important;
}

/* Arena & Canvas Stage */
#theater-game-air-hockey .cp-hockey-stage {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #020617 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  border: 2px solid #1e293b !important;
  contain: layout paint;
}

#theater-game-air-hockey #hockey-canvas {
  width: 100% !important;
  max-width: 720px !important;
  height: auto !important;
  aspect-ratio: 720 / 440 !important;
  display: block !important;
  background: #040814 !important;
  touch-action: none !important;
  user-select: none !important;
  cursor: crosshair !important;
}

/* Goal Flash Overlay - hidden by default */
#theater-game-air-hockey .cp-hockey-goal-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

#theater-game-air-hockey .cp-hockey-goal-overlay.is-active {
  display: flex !important;
  animation: hockeyGoalPulse 0.3s ease-out !important;
}

@keyframes hockeyGoalPulse {
  0% { transform: scale(0.85); opacity: 0; }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

#theater-game-air-hockey .cp-hockey-goal-banner {
  font-size: clamp(2.2rem, 6vw, 3.8rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 0 30px currentColor, 0 6px 16px rgba(0, 0, 0, 0.8) !important;
  background: rgba(15, 23, 42, 0.88) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  padding: 12px 36px !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
}

/* Victory Overlay Modal - hidden by default */
#theater-game-air-hockey .cp-hockey-victory-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(4, 8, 20, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  z-index: 20 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

#theater-game-air-hockey .cp-hockey-victory-overlay.is-active {
  display: flex !important;
}

#theater-game-air-hockey .cp-hockey-victory-card {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
  border: 2px solid rgba(250, 204, 21, 0.4) !important;
  border-radius: 22px !important;
  padding: 24px 28px !important;
  max-width: 420px !important;
  width: 100% !important;
  text-align: center !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(250, 204, 21, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
}

#theater-game-air-hockey .cp-h-win-badge {
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  color: #facc15 !important;
  background: rgba(250, 204, 21, 0.15) !important;
  border: 1px solid rgba(250, 204, 21, 0.35) !important;
  border-radius: 999px !important;
  padding: 4px 14px !important;
  letter-spacing: 0.05em !important;
}

#theater-game-air-hockey .cp-hockey-victory-card h3 {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

#theater-game-air-hockey .cp-hockey-victory-card p {
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

#theater-game-air-hockey .cp-h-win-stats {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 4px 0 !important;
}

#theater-game-air-hockey .cp-h-win-stat {
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(51, 65, 85, 0.5) !important;
  border-radius: 12px !important;
  padding: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  align-items: center !important;
}

#theater-game-air-hockey .cp-h-win-stat span {
  font-size: 0.72rem !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

#theater-game-air-hockey .cp-h-win-stat strong {
  font-size: 1.15rem !important;
  color: #38bdf8 !important;
  font-weight: 900 !important;
}

#theater-game-air-hockey .cp-h-win-actions {
  display: flex !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 6px !important;
}

#theater-game-air-hockey .cp-h-win-actions .cp-btn {
  flex: 1 !important;
  font-size: 0.84rem !important;
  padding: 10px 14px !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

/* Controls Bar */
#theater-game-air-hockey .cp-hockey-controls-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 12px 16px !important;
  background: rgba(2, 6, 23, 0.6) !important;
  border: 1px solid rgba(51, 65, 85, 0.4) !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
}

#theater-game-air-hockey .cp-hockey-ctrl-lbl {
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

#theater-game-air-hockey .cp-hockey-mode-toggles,
#theater-game-air-hockey .cp-hockey-target-toggles {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

#theater-game-air-hockey .cp-hockey-diff-btn,
#theater-game-air-hockey .cp-hockey-target-btn {
  background: #0f172a !important;
  border: 1.5px solid #334155 !important;
  color: #cbd5e1 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

#theater-game-air-hockey .cp-hockey-diff-btn:hover,
#theater-game-air-hockey .cp-hockey-target-btn:hover {
  border-color: #00f0ff !important;
  color: #ffffff !important;
  background: rgba(0, 240, 255, 0.08) !important;
}

#theater-game-air-hockey .cp-hockey-diff-btn.is-active,
#theater-game-air-hockey .cp-hockey-target-btn.is-active {
  background: #0284c7 !important;
  border-color: #00f0ff !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4) !important;
}

#theater-game-air-hockey .cp-hockey-restart-btn {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1.5px solid #475569 !important;
  color: #f8fafc !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

#theater-game-air-hockey .cp-hockey-restart-btn:hover {
  background: #dc2626 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

#theater-game-air-hockey .cp-hockey-tip {
  font-size: 0.76rem !important;
  color: #64748b !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
}

/* =========================================================================
   AIR HOCKEY DEVICE RESTRICTION: LAPTOP & TABLET ONLY (HIDDEN ON MOBILE)
   ========================================================================= */

/* Default (Tablet, Laptop & Desktop: >= 768px) */
.cp-hockey-mobile-restricted {
  display: none !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* Tablet Optimization (iPad & Android Tablets) */
  #theater-game-air-hockey .cp-hockey-stage-wrap {
    max-width: 720px !important;
    padding: 16px 14px !important;
    gap: 12px !important;
  }
  #theater-game-air-hockey .cp-hockey-match-center {
    padding: 10px 14px !important;
    gap: 8px !important;
  }
  #theater-game-air-hockey .cp-hockey-diff-btn,
  #theater-game-air-hockey .cp-hockey-target-btn {
    font-size: 0.76rem !important;
    padding: 6px 10px !important;
  }
}

/* Mobile Screen Sizes (<= 767px: Phones) */
@media (max-width: 767px) {
  /* 1. Hide Air Hockey Card from Games Hub Grid on Mobile Phones */
  .cp-game-card-3d[data-game="air-hockey"],
  .cp-card-game-air-hockey,
  .cp-game-card-3d:has(.cp-poster--air-hockey) {
    display: none !important;
  }

  /* 2. Hide Air Hockey Playing Stage & Canvas on Mobile Phones */
  #theater-game-air-hockey .cp-hockey-stage-wrap {
    display: none !important;
  }

  /* 3. Display High-End Cyber Advisory Card on Direct Access */
  #theater-game-air-hockey .cp-hockey-mobile-restricted {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 24px 12px !important;
    box-sizing: border-box !important;
  }

  #theater-game-air-hockey .cp-h-restricted-card {
    background: radial-gradient(circle at 50% 10%, rgba(2, 132, 199, 0.2), rgba(4, 13, 26, 0.96) 80%) !important;
    border: 1.5px solid rgba(0, 240, 255, 0.4) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 240, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 30px 20px !important;
    max-width: 440px !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
  }

  #theater-game-air-hockey .cp-h-restricted-icon {
    font-size: 2.8rem !important;
    line-height: 1 !important;
    filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.6)) !important;
  }

  #theater-game-air-hockey .cp-h-restricted-card h3 {
    margin: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
  }

  #theater-game-air-hockey .cp-h-restricted-urdu {
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    line-height: 1.4 !important;
  }

  #theater-game-air-hockey .cp-h-restricted-desc {
    margin: 0 !important;
    font-size: 0.82rem !important;
    color: #94a3b8 !important;
    line-height: 1.5 !important;
  }

  #theater-game-air-hockey .cp-h-device-pills {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 6px 0 !important;
  }

  #theater-game-air-hockey .cp-device-pill {
    padding: 7px 12px !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #theater-game-air-hockey .cp-device-pill.is-supported {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
  }

  #theater-game-air-hockey .cp-device-pill.is-unsupported {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #f87171 !important;
  }

  #theater-game-air-hockey .cp-h-restricted-btn {
    margin-top: 6px !important;
    width: 100% !important;
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Fullscreen Mode Scoped Rules */
:fullscreen #theater-game-air-hockey.is-active,
.cp-theater-stage:fullscreen #theater-game-air-hockey.is-active,
#cp-fullscreen-target:fullscreen #theater-game-air-hockey.is-active {
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
}

:fullscreen #theater-game-air-hockey .cp-hockey-stage-wrap,
.cp-theater-stage:fullscreen #theater-game-air-hockey .cp-hockey-stage-wrap,
#cp-fullscreen-target:fullscreen #theater-game-air-hockey .cp-hockey-stage-wrap {
  max-width: min(840px, calc((100vh - 180px) * 1.636), calc(100vw - 24px)) !important;
  margin: auto !important;
  padding: 14px 18px !important;
  gap: 10px !important;
}

:fullscreen #theater-game-air-hockey .cp-hockey-title-box p,
.cp-theater-stage:fullscreen #theater-game-air-hockey .cp-hockey-title-box p,
#cp-fullscreen-target:fullscreen #theater-game-air-hockey .cp-hockey-title-box p,
:fullscreen #theater-game-air-hockey .cp-hockey-tip,
.cp-theater-stage:fullscreen #theater-game-air-hockey .cp-hockey-tip,
#cp-fullscreen-target:fullscreen #theater-game-air-hockey .cp-hockey-tip {
  display: none !important;
}

/* =========================================================================
   42. DOTS & BOXES (TERRITORY CHAMPIONSHIP) MODERN ARENA STYLES
   ========================================================================= */
.cp-dots-container {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
}

.cp-dots-header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 12px;
  margin-bottom: 14px;
  margin-top: 25px;
}

.cp-dots-title-box {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cp-dots-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.cp-dots-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.85);
  color: #94a3b8;
  border: 1px solid #334155;
}

.cp-dots-badge--gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(180, 83, 9, 0.25));
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.cp-dots-title-box h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: #38bdf8;
  margin: 0;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(56, 189, 248, 0.35);
}

.cp-dots-urdu-sub {
  font-size: 0.9em;
  font-weight: 600;
  color: #fbbf24;
  margin-left: 6px;
  display: inline-block;
  font-family: 'Noto Nastaliq Urdu', serif, sans-serif;
}

.cp-dots-title-box p {
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 4px auto 0;
  max-width: 560px;
  line-height: 1.5;
  text-align: center;
}

.cp-dots-controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.cp-dots-mode-toggles,
.cp-dots-grid-toggles {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.95);
  padding: 5px 8px;
  border-radius: 999px;
  border: 1.5px solid #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.cp-dots-ctrl-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  padding: 0 4px 0 8px;
}

.cp-dots-mode-btn,
.cp-dots-grid-btn {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cp-dots-mode-btn:hover,
.cp-dots-grid-btn:hover {
  color: #f8fafc;
}

.cp-dots-mode-btn.is-active,
.cp-dots-grid-btn.is-active {
  background: #38bdf8;
  color: #0b1329;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}

.cp-dots-scoreboard {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.cp-dots-player-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #0b1329;
  border: 1.5px solid #1e293b;
  border-radius: 12px;
  padding: 7px 15px;
  transition: all 0.25s ease;
  min-width: 142px;
}

.cp-dots-player-card.is-p1.is-active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.cp-dots-player-card.is-p2.is-active {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}

.cp-dots-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.cp-dots-avatar {
  line-height: 1;
}

.cp-dots-turn-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  border: 1.5px solid #0f172a;
  transition: all 0.2s ease;
}

.cp-dots-player-card.is-active .cp-dots-turn-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: cpDotsPulse 1.4s infinite ease-in-out;
}

@keyframes cpDotsPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.cp-dots-player-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cp-dots-player-info strong {
  font-size: 0.76rem;
  color: #cbd5e1;
  font-weight: 700;
  white-space: nowrap;
}

.cp-dots-score-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 1px;
}

.cp-dots-score {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.cp-dots-player-card.is-p1 .cp-dots-score {
  color: #38bdf8;
}

.cp-dots-player-card.is-p2 .cp-dots-score {
  color: #fb923c;
}

.cp-dots-territory-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.8);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #334155;
}

.cp-dots-match-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 7px 15px;
  min-width: 145px;
  text-align: center;
  gap: 3px;
}

.cp-dots-match-pill #dots-turn {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
}

.cp-dots-rem-boxes {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
}

.cp-dots-stage {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #070d19;
  border: 2px solid #1e293b;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.12);
  box-sizing: border-box;
}

#dots-canvas {
  display: block;
  width: min(520px, 92vw, 55vh);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  touch-action: none;
  cursor: pointer;
}

.cp-dots-bottom-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
  margin-top: 15px;
  gap: 10px;
}

.cp-dots-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.cp-dots-btn {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  padding: 9px 24px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.cp-dots-btn--primary {
  background: #1e293b !important;
  border: 1.5px solid #475569 !important;
  color: #f8fafc !important;
}

.cp-dots-btn--primary:hover {
  background: #38bdf8 !important;
  color: #0b1329 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4) !important;
}

.cp-dots-btn--secondary {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1.5px solid #334155 !important;
  color: #94a3b8 !important;
}

.cp-dots-btn--secondary:hover {
  background: #334155 !important;
  color: #ffffff !important;
  border-color: #64748b !important;
}

.cp-dots-touch-tip {
  font-size: 0.77rem;
  color: #94a3b8;
  text-align: center;
  max-width: 480px;
  line-height: 1.45;
  margin-top: 2px;
}

/* Mobile & Tablet Specific Tuning */
@media (max-width: 640px) {
  .cp-dots-container {
    padding: 0 10px;
  }
  .cp-dots-header-row {
    margin-top: 24px;
    gap: 12px;
    margin-bottom: 12px;
  }
  .cp-dots-title-box {
    gap: 8px;
  }
  .cp-dots-badge-row {
    gap: 6px;
    margin-bottom: 4px;
  }
  .cp-dots-badge {
    font-size: 0.7rem;
    padding: 3px 9px;
  }
  .cp-dots-title-box h2 {
    font-size: 1.25rem;
    line-height: 1.35;
  }
  .cp-dots-urdu-sub {
    display: inline-block;
    margin-left: 6px;
    margin-top: 2px;
  }
  .cp-dots-title-box p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 4px auto 0;
    max-width: 400px;
    padding: 0 6px;
  }
  .cp-dots-controls-bar {
    gap: 8px;
    margin-top: 6px;
  }
  .cp-dots-mode-toggles,
  .cp-dots-grid-toggles {
    padding: 4px 7px;
    gap: 4px;
  }
  .cp-dots-mode-btn,
  .cp-dots-grid-btn {
    padding: 5px 11px;
    font-size: 0.72rem;
  }
  .cp-dots-scoreboard {
    gap: 12px;
    margin-bottom: 14px;
    margin-top: 4px;
    width: 100%;
  }
  .cp-dots-match-pill {
    order: -1;
    width: 100%;
    max-width: 320px;
    padding: 8px 14px;
    margin-bottom: 4px;
    gap: 3px;
    box-sizing: border-box;
  }
  .cp-dots-match-pill #dots-turn {
    font-size: 0.82rem;
  }
  .cp-dots-player-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    gap: 5px;
    box-sizing: border-box;
    border-radius: 14px;
  }
  .cp-dots-avatar-wrap {
    margin-bottom: 1px;
  }
  .cp-dots-player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3px;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
  }
  .cp-dots-player-info strong {
    font-size: 0.76rem;
    color: #cbd5e1;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    word-break: break-word;
  }
  .cp-dots-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
  }
  .cp-dots-score {
    font-size: 1.15rem;
    font-weight: 800;
  }
  .cp-dots-territory-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
  }
  .cp-dots-stage {
    padding: 8px;
    border-radius: 15px;
  }
  #dots-canvas {
    width: min(92vw, 48vh);
  }
  .cp-dots-bottom-controls {
    margin-top: 12px;
    gap: 8px;
  }
  .cp-dots-actions {
    gap: 10px;
  }
  .cp-dots-btn {
    padding: 8px 18px !important;
    font-size: 0.8rem !important;
  }
  .cp-dots-touch-tip {
    font-size: 0.74rem;
    line-height: 1.45;
    padding: 0 10px;
    margin-top: 2px;
  }
}

/* Eliminate WP Emoji broken images across entire games portal */
img.emoji,
.cp-theater-view img.emoji,
.cp-dots-container img.emoji {
  display: none !important;
}

/* Fullscreen Mode Overrides */
:fullscreen #theater-game-dots-and-boxes.is-active,
.cp-theater-stage:fullscreen #theater-game-dots-and-boxes.is-active,
#cp-fullscreen-target:fullscreen #theater-game-dots-and-boxes.is-active {
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 10px !important;
  box-sizing: border-box !important;
}

:fullscreen #theater-game-dots-and-boxes .cp-dots-header-row,
.cp-theater-stage:fullscreen #theater-game-dots-and-boxes .cp-dots-header-row,
#cp-fullscreen-target:fullscreen #theater-game-dots-and-boxes .cp-dots-header-row {
  margin-top: 2px !important;
  margin-bottom: 6px !important;
  gap: 4px !important;
}

:fullscreen #theater-game-dots-and-boxes .cp-dots-badge-row,
.cp-theater-stage:fullscreen #theater-game-dots-and-boxes .cp-dots-badge-row,
#cp-fullscreen-target:fullscreen #theater-game-dots-and-boxes .cp-dots-badge-row,
:fullscreen #theater-game-dots-and-boxes .cp-dots-title-box p,
.cp-theater-stage:fullscreen #theater-game-dots-and-boxes .cp-dots-title-box p,
#cp-fullscreen-target:fullscreen #theater-game-dots-and-boxes .cp-dots-title-box p,
:fullscreen #theater-game-dots-and-boxes .cp-dots-touch-tip,
.cp-theater-stage:fullscreen #theater-game-dots-and-boxes .cp-dots-touch-tip,
#cp-fullscreen-target:fullscreen #theater-game-dots-and-boxes .cp-dots-touch-tip {
  display: none !important;
}

:fullscreen #theater-game-dots-and-boxes .cp-dots-title-box h2,
.cp-theater-stage:fullscreen #theater-game-dots-and-boxes .cp-dots-title-box h2,
#cp-fullscreen-target:fullscreen #theater-game-dots-and-boxes .cp-dots-title-box h2 {
  font-size: 1.15rem !important;
}

:fullscreen #theater-game-dots-and-boxes .cp-dots-scoreboard,
.cp-theater-stage:fullscreen #theater-game-dots-and-boxes .cp-dots-scoreboard,
#cp-fullscreen-target:fullscreen #theater-game-dots-and-boxes .cp-dots-scoreboard {
  margin-bottom: 6px !important;
  gap: 8px !important;
}

:fullscreen #theater-game-dots-and-boxes #dots-canvas,
.cp-theater-stage:fullscreen #theater-game-dots-and-boxes #dots-canvas,
#cp-fullscreen-target:fullscreen #theater-game-dots-and-boxes #dots-canvas {
  width: min(640px, 94vw, 66vh) !important;
}

:fullscreen #theater-game-dots-and-boxes .cp-dots-bottom-controls,
.cp-theater-stage:fullscreen #theater-game-dots-and-boxes .cp-dots-bottom-controls,
#cp-fullscreen-target:fullscreen #theater-game-dots-and-boxes .cp-dots-bottom-controls {
  margin-top: 6px !important;
  gap: 4px !important;
}

/* =========================================================================
   40. GOMOKU (FIVE IN A ROW ZEN CHAMPIONSHIP) MODERN ARENA STYLES
   ========================================================================= */
.cp-gomoku-container {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
}

.cp-gomoku-header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 12px;
  margin-bottom: 14px;
  margin-top: 25px;
}

.cp-gomoku-title-box {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cp-gomoku-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.cp-gomoku-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.85);
  color: #94a3b8;
  border: 1px solid #334155;
}

.cp-gomoku-badge--gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(180, 83, 9, 0.25));
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.cp-gomoku-title-box h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: #fbbf24;
  margin: 0;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(245, 158, 11, 0.35);
}

.cp-gomoku-urdu-sub {
  font-size: 0.9em;
  font-weight: 600;
  color: #38bdf8;
  margin-left: 6px;
  display: inline-block;
  font-family: 'Noto Nastaliq Urdu', serif, sans-serif;
}

.cp-gomoku-title-box p {
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 4px auto 0;
  max-width: 560px;
  line-height: 1.5;
  text-align: center;
}

.cp-gomoku-controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.cp-gomoku-mode-toggles,
.cp-gomoku-diff-toggles,
.cp-gomoku-grid-toggles {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.95);
  padding: 5px 8px;
  border-radius: 999px;
  border: 1.5px solid #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.cp-gomoku-ctrl-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  padding: 0 4px 0 8px;
}

.cp-gomoku-mode-btn,
.cp-gomoku-diff-btn,
.cp-gomoku-grid-btn {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cp-gomoku-mode-btn:hover,
.cp-gomoku-diff-btn:hover,
.cp-gomoku-grid-btn:hover {
  color: #f8fafc;
}

.cp-gomoku-mode-btn.is-active,
.cp-gomoku-diff-btn.is-active,
.cp-gomoku-grid-btn.is-active {
  background: #fbbf24;
  color: #0b1329;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.45);
}

.cp-gomoku-scoreboard {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.cp-gomoku-player-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #0b1329;
  border: 1.5px solid #1e293b;
  border-radius: 12px;
  padding: 7px 15px;
  transition: all 0.25s ease;
  min-width: 142px;
}

.cp-gomoku-player-card.is-p1.is-active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.cp-gomoku-player-card.is-p2.is-active {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
  transform: translateY(-1px);
}

.cp-gomoku-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.cp-gomoku-avatar {
  line-height: 1;
}

.cp-gomoku-turn-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  border: 1.5px solid #0f172a;
  transition: all 0.2s ease;
}

.cp-gomoku-player-card.is-active .cp-gomoku-turn-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: cpGomokuPulse 1.4s infinite ease-in-out;
}

@keyframes cpGomokuPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.cp-gomoku-player-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cp-gomoku-player-info strong {
  font-size: 0.76rem;
  color: #cbd5e1;
  font-weight: 700;
  white-space: nowrap;
}

.cp-gomoku-score-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 1px;
}

.cp-gomoku-score {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.cp-gomoku-player-card.is-p1 .cp-gomoku-score {
  color: #38bdf8;
}

.cp-gomoku-player-card.is-p2 .cp-gomoku-score {
  color: #fbbf24;
}

.cp-gomoku-stones-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.8);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #334155;
}

.cp-gomoku-match-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 7px 15px;
  min-width: 150px;
  text-align: center;
  gap: 3px;
}

.cp-gomoku-match-pill #gomoku-turn {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
}

.cp-gomoku-move-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
}

.cp-gomoku-stage {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #261608;
  border: 3px solid #543410;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(181, 132, 52, 0.25);
  box-sizing: border-box;
}

#gomoku-canvas {
  display: block;
  width: min(540px, 92vw, 55vh);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  touch-action: none;
  cursor: crosshair;
}

.cp-gomoku-bottom-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 540px;
  margin-top: 15px;
  gap: 10px;
}

.cp-gomoku-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.cp-gomoku-btn {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  padding: 9px 24px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.cp-gomoku-btn--primary {
  background: #1e293b !important;
  border: 1.5px solid #475569 !important;
  color: #f8fafc !important;
}

.cp-gomoku-btn--primary:hover {
  background: #fbbf24 !important;
  color: #0b1329 !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.45) !important;
}

.cp-gomoku-btn--secondary {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1.5px solid #334155 !important;
  color: #94a3b8 !important;
}

.cp-gomoku-btn--secondary:hover {
  background: #334155 !important;
  color: #ffffff !important;
  border-color: #64748b !important;
}

.cp-gomoku-touch-tip {
  font-size: 0.77rem;
  color: #94a3b8;
  text-align: center;
  max-width: 480px;
  line-height: 1.45;
  margin-top: 2px;
}

/* Gomoku Mobile Specific Tuning */
@media (max-width: 640px) {
  .cp-gomoku-container {
    padding: 0 10px;
  }
  .cp-gomoku-header-row {
    margin-top: 24px;
    gap: 12px;
    margin-bottom: 12px;
  }
  .cp-gomoku-title-box {
    gap: 8px;
  }
  .cp-gomoku-badge-row {
    gap: 6px;
    margin-bottom: 4px;
  }
  .cp-gomoku-badge {
    font-size: 0.7rem;
    padding: 3px 9px;
  }
  .cp-gomoku-title-box h2 {
    font-size: 1.25rem;
    line-height: 1.35;
  }
  .cp-gomoku-urdu-sub {
    display: inline-block;
    margin-left: 6px;
    margin-top: 2px;
  }
  .cp-gomoku-title-box p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 4px auto 0;
    max-width: 400px;
    padding: 0 6px;
  }
  .cp-gomoku-controls-bar {
    gap: 8px;
    margin-top: 6px;
  }
  .cp-gomoku-mode-toggles,
  .cp-gomoku-diff-toggles,
  .cp-gomoku-grid-toggles {
    padding: 4px 7px;
    gap: 4px;
  }
  .cp-gomoku-mode-btn,
  .cp-gomoku-diff-btn,
  .cp-gomoku-grid-btn {
    padding: 5px 11px;
    font-size: 0.72rem;
  }
  .cp-gomoku-scoreboard {
    gap: 12px;
    margin-bottom: 14px;
    margin-top: 4px;
    width: 100%;
  }
  .cp-gomoku-match-pill {
    order: -1;
    width: 100%;
    max-width: 320px;
    padding: 8px 14px;
    margin-bottom: 4px;
    gap: 3px;
    box-sizing: border-box;
  }
  .cp-gomoku-match-pill #gomoku-turn {
    font-size: 0.82rem;
  }
  .cp-gomoku-player-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    gap: 5px;
    box-sizing: border-box;
    border-radius: 14px;
  }
  .cp-gomoku-avatar-wrap {
    margin-bottom: 1px;
  }
  .cp-gomoku-player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3px;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
  }
  .cp-gomoku-player-info strong {
    font-size: 0.76rem;
    color: #cbd5e1;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    word-break: break-word;
  }
  .cp-gomoku-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
  }
  .cp-gomoku-score {
    font-size: 1.15rem;
    font-weight: 800;
  }
  .cp-gomoku-stones-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
  }
  .cp-gomoku-stage {
    padding: 8px;
    border-radius: 15px;
  }
  #gomoku-canvas {
    width: min(92vw, 48vh);
  }
  .cp-gomoku-bottom-controls {
    margin-top: 12px;
    gap: 8px;
  }
  .cp-gomoku-actions {
    gap: 10px;
  }
  .cp-gomoku-btn {
    padding: 8px 18px !important;
    font-size: 0.8rem !important;
  }
  .cp-gomoku-touch-tip {
    font-size: 0.74rem;
    line-height: 1.45;
    padding: 0 10px;
    margin-top: 2px;
  }
}

/* Gomoku Fullscreen Mode Overrides */
:fullscreen #theater-game-gomoku.is-active,
.cp-theater-stage:fullscreen #theater-game-gomoku.is-active,
#cp-fullscreen-target:fullscreen #theater-game-gomoku.is-active {
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 10px !important;
  box-sizing: border-box !important;
}

:fullscreen #theater-game-gomoku .cp-gomoku-header-row,
.cp-theater-stage:fullscreen #theater-game-gomoku .cp-gomoku-header-row,
#cp-fullscreen-target:fullscreen #theater-game-gomoku .cp-gomoku-header-row {
  margin-top: 2px !important;
  margin-bottom: 6px !important;
  gap: 4px !important;
}

:fullscreen #theater-game-gomoku .cp-gomoku-badge-row,
.cp-theater-stage:fullscreen #theater-game-gomoku .cp-gomoku-badge-row,
#cp-fullscreen-target:fullscreen #theater-game-gomoku .cp-gomoku-badge-row,
:fullscreen #theater-game-gomoku .cp-gomoku-title-box p,
.cp-theater-stage:fullscreen #theater-game-gomoku .cp-gomoku-title-box p,
#cp-fullscreen-target:fullscreen #theater-game-gomoku .cp-gomoku-title-box p,
:fullscreen #theater-game-gomoku .cp-gomoku-touch-tip,
.cp-theater-stage:fullscreen #theater-game-gomoku .cp-gomoku-touch-tip,
#cp-fullscreen-target:fullscreen #theater-game-gomoku .cp-gomoku-touch-tip {
  display: none !important;
}

:fullscreen #theater-game-gomoku .cp-gomoku-title-box h2,
.cp-theater-stage:fullscreen #theater-game-gomoku .cp-gomoku-title-box h2,
#cp-fullscreen-target:fullscreen #theater-game-gomoku .cp-gomoku-title-box h2 {
  font-size: 1.15rem !important;
}

:fullscreen #theater-game-gomoku .cp-gomoku-scoreboard,
.cp-theater-stage:fullscreen #theater-game-gomoku .cp-gomoku-scoreboard,
#cp-fullscreen-target:fullscreen #theater-game-gomoku .cp-gomoku-scoreboard {
  margin-bottom: 6px !important;
  gap: 8px !important;
}

:fullscreen #theater-game-gomoku #gomoku-canvas,
.cp-theater-stage:fullscreen #theater-game-gomoku #gomoku-canvas,
#cp-fullscreen-target:fullscreen #theater-game-gomoku #gomoku-canvas {
  width: min(680px, 94vw, 68vh) !important;
}

:fullscreen #theater-game-gomoku .cp-gomoku-bottom-controls,
.cp-theater-stage:fullscreen #theater-game-gomoku .cp-gomoku-bottom-controls,
#cp-fullscreen-target:fullscreen #theater-game-gomoku .cp-gomoku-bottom-controls {
  margin-top: 6px !important;
  gap: 4px !important;
}

