:root {
  /* Light theme (default) */
  --acc: #00b86b;
  --acc-2: #4db8ff;
  --text: #222;
  --text-d: #555;
  --border: #ddd;
  --bg: #ffffff;
  --bg-gradient: linear-gradient(270deg, #f9fbfd, #f4f7fa, #ffffff);
  --card-bg: #fff;
  --shadow: rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] {
  --acc: #00d67d;
  --acc-2: #4dd7ff;
  --text: #e9eef7;
  --text-d: #97a3b6;
  --border: #1c2638;
  --bg: #081426;
  --bg-gradient: linear-gradient(270deg, #0a1a33, #0d274d, #081426);
  --card-bg: rgba(255,255,255,.02);
  --shadow: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  background-size: 600% 600%;
  animation: bgAnim 20s ease infinite;
  color: var(--text);
  transition: background .4s, color .4s;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  line-height: 1.2;
}

@keyframes bgAnim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all 0.25s ease;
  font-size: 14px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(145deg, var(--acc), #00a65a);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 184, 107, .3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 184, 107, .4);
}

.btn-secondary {
  background: linear-gradient(145deg, #E63946, #c62f3a);
  color: #fff;
  box-shadow: 0 4px 10px rgba(230, 57, 70, .3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(230, 57, 70, .4);
}

.btn-success {
  background: linear-gradient(145deg, #1FBF4C, #18a03f);
  color: #fff;
  box-shadow: 0 4px 10px rgba(31, 191, 76, .3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(31, 191, 76, .4);
}

.btn-ghost {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-d);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.btn-ghost:hover {
  background: var(--card-bg);
  color: var(--acc);
  border-color: var(--acc);
}

.hero .btn {
  font-size: 16px;
  border-radius: 14px;
  padding: 1rem 1.6rem;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bebas Neue";
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand h1 {
  font-size: 30px;
  margin: 0;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--text-d);
  font-weight: 500;
}

.nav a:hover {
  color: var(--acc);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* Hero Section */
.hero {
  padding: 60px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  margin: 0 0 14px;
  font-weight: 800;
}

.hero .highlight {
  color: #FFD700;
}

.hero p {
  color: var(--text-d);
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 580px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.video-card {
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.video-card video {
  width: 100%;
  height: auto;
  display: block;
}

/* Sections */
section {
  padding: 40px 0;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.sec-head h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  margin: 0;
}

.muted {
  color: var(--text-d);
}

/* Steps/How to Play */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  box-shadow: 0 3px 8px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px var(--shadow);
}

.step .num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-weight: 800;
  color: var(--acc);
  font-size: 32px;
  font-family: 'Bebas Neue', sans-serif;
}

.step h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.step p {
  font-size: 15px;
  line-height: 1.6;
}

/* Game Categories */
.game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.game-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px var(--shadow);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--acc);
  box-shadow: 0 6px 16px var(--shadow);
}

.game-card .price {
  font-size: 48px;
  font-weight: 800;
  color: var(--acc);
  font-family: 'Bebas Neue', sans-serif;
  margin-bottom: 10px;
}

.game-card h4 {
  font-size: 22px;
  margin-bottom: 10px;
}

.game-card p {
  color: var(--text-d);
  font-size: 14px;
}

/* FAQ Section */
details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

details:hover {
  border-color: var(--acc);
}

details[open] {
  border-color: var(--acc);
}

summary {
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  float: right;
  font-size: 24px;
  font-weight: 300;
  color: var(--acc);
}

details[open] summary::after {
  content: '−';
}

details p {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-d);
  background: var(--bg);
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a:hover {
  color: var(--acc);
}

/* Theme Toggle Button */
#themeToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.3s ease;
}

#themeToggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,.3);
}

/* Game Board Styles */
.game-board {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.board-header {
  text-align: center;
  margin-bottom: 30px;
}

.board-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.board-info {
  display: flex;
  justify-content: center;
  margin: 0 auto 30px auto;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 900px;
}

.info-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  min-width: 150px;
}

.info-item .label {
  font-size: 12px;
  color: var(--text-d);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item .value {
  font-size: 20px;
  font-weight: 700;
  color: var(--acc);
  font-family: 'Bebas Neue', sans-serif;
}

.grid-container {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px var(--shadow);
}

.grid-wrapper {
  display: grid;
  grid-template-columns: 60px repeat(10, 1fr);
  grid-template-rows: 60px repeat(10, 1fr);
  gap: 2px;
  background: var(--border);
  border: 3px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 0 auto;
}

.grid-label {
  background: var(--acc);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.grid-label.corner-cell {
  background: var(--bg);
  border: 2px solid var(--acc);
}

.corner-teams {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.corner-away {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 50%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corner-home {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 50%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corner-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.team-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.team-header.vertical {
  flex-direction: row;
  gap: 4px;
}

.header-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.header-name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-number {
  font-size: 16px;
  font-weight: 800;
}

.col-header {
  flex-direction: column;
}

.row-header {
  flex-direction: row;
  gap: 6px;
}

.grid-square {
  background: var(--bg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  min-height: 50px;
}

.grid-square:hover:not(.taken):not(.selected) {
  background: var(--acc);
  color: white;
  transform: scale(1.05);
}

.grid-square.selected {
  background: var(--acc);
  color: white;
  font-weight: 700;
}

.grid-square.taken {
  background: var(--text-d);
  color: white;
  cursor: not-allowed;
  opacity: 0.6;
}

.grid-square.winner {
  background: #FFD700;
  color: #000;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.board-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .nav ul {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav ul.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 15px;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .game-categories {
    grid-template-columns: 1fr;
  }
  
  .grid-wrapper {
    grid-template-columns: 45px repeat(10, 1fr);
    grid-template-rows: 45px repeat(10, 1fr);
  }
  
  .grid-square {
    font-size: 10px;
    min-height: 35px;
  }
  
  .grid-label {
    font-size: 12px;
  }

  .header-logo {
    width: 18px;
    height: 18px;
  }

  .header-name {
    font-size: 8px;
  }

  .header-number {
    font-size: 14px;
  }

  .corner-logo {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 600px) {
  .hero h2 {
    font-size: 32px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  #themeToggle {
    bottom: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg);
  border-radius: 18px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-d);
  background: none;
  border: none;
}

.modal-close:hover {
  color: var(--acc);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--acc);
}

/* Google Sign-In Button */
.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.google-signin-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.google-signin-btn img {
  width: 20px;
  height: 20px;
}

body[data-theme="dark"] .google-signin-btn {
  background: var(--card-bg);
  border-color: var(--border);
  color: var(--text);
}

body[data-theme="dark"] .google-signin-btn:hover {
  background: rgba(255,255,255,0.05);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-d);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.divider::before {
  margin-right: 10px;
}

.divider::after {
  margin-left: 10px;
}
  max-width: 400px;
}

/* User Menu Styles */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-profile:hover {
  background: var(--hover-bg);
  border-color: var(--primary-color);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
}

.user-profile:hover .user-dropdown {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s ease;
}

.user-dropdown a:hover {
  background: var(--hover-bg);
}

.user-dropdown a:first-child {
  border-radius: 8px 8px 0 0;
}

.user-dropdown a:last-child {
  border-radius: 0 0 8px 8px;
  color: #ef4444;
}

/* Notification Animations */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Google Sign-In Button Enhancement */
.google-signin-btn {
  position: relative;
  overflow: hidden;
}

.google-signin-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.google-signin-btn:active::after {
  width: 300px;
  height: 300px;
}

/* Loading State */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .user-name {
    max-width: 100px;
  }
  
  .user-dropdown {
    right: auto;
    left: 0;
  }
}

/* Game Manager Styles */
.status-active {
  color: #10b981;
  font-weight: 600;
}

.status-filled {
  color: #f59e0b;
  font-weight: 600;
}

.status-filling {
  color: #3b82f6;
  font-weight: 600;
}

.hidden-number {
  color: #9ca3af;
  font-style: italic;
}

.square-cell.winner {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  animation: winnerPulse 2s infinite;
}

@keyframes winnerPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 10px rgba(251, 191, 36, 0);
  }
}

.winner-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 20px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.square-owner {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  word-break: break-word;
  padding: 5px;
}

.square-placeholder {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
}

/* Payout Breakdown Styles */
.payout-breakdown {
  background: var(--hover-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.payout-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.payout-item:last-child {
  border-bottom: none;
}

.payout-item .label {
  color: var(--text-secondary);
  font-size: 14px;
}

.payout-item .value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
}

.payout-item.total {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-color);
  border-top: 2px solid var(--border-color);
  margin-top: 10px;
  padding-top: 15px;
}

.payout-item.highlight {
  background: rgba(59, 130, 246, 0.1);
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
}

/* Winner Box Styles */
.winner-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.winner-box {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.winner-box.has-winner {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.winner-box h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 18px;
}

.winner-info {
  padding: 15px;
}

.winner-name {
  font-size: 20px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 10px;
}

.winner-score,
.winner-numbers {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 5px 0;
}

.winner-payout {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 10px;
}

.no-winner {
  color: var(--text-secondary);
  font-style: italic;
  padding: 20px;
}

/* Audit Section Styles */
.audit-section {
  margin: 20px 0;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.audit-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.audit-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: var(--hover-bg);
  border-radius: 6px;
}

.audit-trail {
  max-height: 400px;
  overflow-y: auto;
}

.audit-entry {
  padding: 15px;
  margin: 10px 0;
  background: var(--hover-bg);
  border-left: 4px solid var(--border-color);
  border-radius: 4px;
}

.audit-entry.transaction {
  border-left-color: #3b82f6;
}

.audit-entry.winner {
  border-left-color: #10b981;
}

.audit-entry.payout {
  border-left-color: #f59e0b;
}

.audit-entry.event {
  border-left-color: #8b5cf6;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.entry-category {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--primary-color);
}

.entry-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.entry-details {
  font-size: 14px;
  color: var(--text-primary);
}

.audit-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

/* Board Status Indicator */
#boardStatus {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  margin: 10px 0;
}

/* Game Board Container - Centered Layout */
.game-board {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.board-header {
  text-align: center;
  margin-bottom: 40px;
}

.board-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Game Selector - Centered */
.game-selector-container {
  max-width: 800px;
  margin: 0 auto 40px auto;
  padding: 24px;
  background: var(--bg-d);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Team Label Boxes - Compact Horizontal Design */
.board-container-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

/* Home Team Section - Stacks label box and logo */

/* Home Team Logo Box Below Label */

.home-team-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Grid Container - Better Spacing */
.grid-container {
  flex: 1;
  max-width: 900px;
}

/* Board Status and Info - Centered */
.board-status,
.quarter-winners,
.payout-breakdown {
  max-width: 900px;
  margin: 30px auto;
  padding: 24px;
  background: var(--bg-d);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Board Legend - Centered */
.board-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px auto;
  max-width: 600px;
}

/* Shareable Game ID Styling */
.game-id-label {
  font-size: 0.75rem;
  color: var(--text-d);
  margin-right: 8px;
}

.game-id-number {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 4px 8px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: all;
}

.game-id-number:hover {
  background: rgba(37, 99, 235, 0.2);
  transform: scale(1.05);
}

.copy-id-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-id-btn:hover {
  background: rgba(37, 99, 235, 0.1);
  transform: scale(1.1);
}

.copy-id-btn svg {
  width: 16px;
  height: 16px;
}

/* Grid Header Team Labels - Enhanced Visibility */
.header-team-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #FFD700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.header-team-abbr {
  font-size: 1.1rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 3px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
}

.header-number {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
}

.grid-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

/* Highlight the team header cells */
.grid-label.team-header-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 
    inset 0 0 20px rgba(255,215,0,0.2),
    0 0 15px rgba(37, 99, 235, 0.5);
  border: 2px solid rgba(255,215,0,0.4);
  position: relative;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 
      inset 0 0 20px rgba(255,215,0,0.2),
      0 0 15px rgba(37, 99, 235, 0.5);
  }
  50% {
    box-shadow: 
      inset 0 0 25px rgba(255,215,0,0.3),
      0 0 20px rgba(37, 99, 235, 0.7);
  }
}

/* Selected Game Info - Better Styling */
.selected-game-info {
  max-width: 800px;
  margin: 0 auto 30px auto;
  padding: 24px;
  background: var(--bg-d);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.selected-game-header {
  margin-bottom: 20px;
}

.selected-game-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* Game Stats - Better Layout */
.game-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background: var(--bg);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .game-board {
    padding: 20px 15px;
  }

  .board-header h2 {
    font-size: 1.5rem;
  }

  .winner-boxes {
    grid-template-columns: 1fr;
  }
  
  .payout-breakdown {
    padding: 15px;
  }
  
  .audit-grid {
    grid-template-columns: 1fr;
  }

  .board-container-wrapper {
    flex-direction: column;
    align-items: center;
  }






  .away-label-box {
    margin-bottom: 20px;
  }

  .home-label-box {
    margin-right: auto;
    margin-bottom: 20px;
  }

  .team-label-text {
    font-size: 0.75rem;
  }

  .team-abbr-text {
    font-size: 1.4rem;
  }

  .grid-container {
    max-width: 100%;
  }

  .board-legend {
    flex-direction: column;
    gap: 15px;
  }
}

/* Game Type Selector Buttons */
.game-type-btn {
  display: block;
  text-align: center;
  padding: 20px 15px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-type-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow);
  border-color: var(--acc);
}

.game-type-btn.active {
  background: var(--acc);
  border-color: var(--acc);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.game-type-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}

.game-type-btn.active .game-type-price {
  color: white;
}

.game-type-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-type-btn.active .game-type-label {
  color: white;
}

@media (max-width: 768px) {
  .game-type-btn {
    padding: 15px 10px;
  }
  
  .game-type-price {
    font-size: 24px;
  }
  
  .game-type-label {
    font-size: 12px;
  }
}
