/**
 * Shared CSS for Snackable Games
 * - Header Row (back link + controls)
 * - Language Selector
 * - Stats Button/Modal
 * - Streak Display
 */

/* ========== HEADER ROW ========== */

header .header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

header .back-link {
  color: var(--primary-color, #00d4ff);
  text-decoration: none;
  font-size: 0.9rem;
}

header .back-link:hover {
  text-decoration: underline;
}

header .header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== LANGUAGE SELECTOR ========== */

.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-selector select {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--border, #333);
  border-radius: 6px;
  background: var(--card-bg, #1a1a1a);
  color: var(--text, #fff);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

.language-selector select:focus {
  outline: none;
  border-color: var(--accent, #f0ad4e);
}

/* Flag icons option */
.language-flags {
  display: flex;
  gap: 4px;
}

.language-flag {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid transparent;
}

.language-flag:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.language-flag.active {
  opacity: 1;
  border-color: var(--accent, #f0ad4e);
}

/* ========== STATS BUTTON ========== */

.stats-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  background: var(--card-bg, #1a1a1a);
  color: var(--text, #fff);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.stats-btn:hover {
  background: var(--card-hover, #252525);
  border-color: var(--accent, #f0ad4e);
}

/* ========== STATS MODAL ========== */

.stats-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.stats-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.stats-modal-content {
  position: relative;
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--border, #333);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

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

.stats-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #888);
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.stats-modal-close:hover {
  background: var(--card-hover, #252525);
  color: var(--text, #fff);
}

.stats-modal-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
  text-align: center;
  color: var(--text, #fff);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  text-align: center;
  padding: 12px;
  background: var(--bg, #0f0f0f);
  border-radius: 8px;
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent, #f0ad4e);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Distribution */
.stats-distribution h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text, #fff);
}

.distribution-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.distribution-label {
  width: 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: var(--text, #fff);
}

.distribution-bar-bg {
  flex: 1;
  height: 20px;
  background: var(--bg, #0f0f0f);
  border-radius: 4px;
  overflow: hidden;
}

.distribution-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--success-color, #4ade80) 0%, var(--accent, #f0ad4e) 100%);
  border-radius: 4px;
  min-width: 4px;
  transition: width 0.5s ease;
}

.distribution-count {
  width: 24px;
  font-size: 12px;
  color: var(--text-secondary, #888);
  text-align: left;
}

.stats-distribution .no-data {
  text-align: center;
  color: var(--text-secondary, #888);
  font-size: 13px;
  padding: 20px;
}

/* ========== DAILY COMPLETED BANNER ========== */

.daily-completed-banner {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
}

.daily-completed-banner h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.daily-completed-banner p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

/* ========== LOADING STATE ========== */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  color: var(--text-muted, #888);
  font-size: 1rem;
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-color, #00d4ff);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========== CLUES EXCLUDED SECTIONS ========== */

.clue-excluded-section {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.clue-excluded-section .clue-label {
  color: var(--text-muted, #888);
  white-space: nowrap;
}

.clue-excluded-values {
  color: var(--text, #fff);
  opacity: 0.9;
}

.clues-excluded {
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

/* ========== CLUE TAGS ========== */

.clue-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}

.clue-tag.unknown {
  background: rgba(150, 150, 150, 0.15);
  color: #888;
  border: 1px dashed #666;
  font-style: italic;
}

/* ========== GAME NOTIFICATIONS ========== */

.game-notifications {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 90%;
}

.game-notification {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  text-align: center;
}

.game-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.game-notification.hide {
  opacity: 0;
  transform: translateY(-10px);
}

.game-notification-info {
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--primary-color, #00d4ff);
  color: var(--text, #fff);
}

.game-notification-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
}

.game-notification-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
}

.game-notification-error {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
}

/* ========== COMMON GAME CARD ========== */

.game-card {
  background: var(--card-bg, #1f1f2e);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.3));
  border: 1px solid var(--border-color, #2d2d3d);
  width: 100%;
}

/* ========== COMMON INPUT STYLES ========== */

.game-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color, #2d2d3d);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--bg-color, #15151e);
  color: var(--text-color, #fff);
  transition: border-color 0.2s ease;
}

.game-input:focus {
  outline: none;
  border-color: var(--border-focus, var(--primary-color, #00d4ff));
}

.game-input::placeholder {
  color: var(--text-muted, #9ca3af);
}

/* ========== AUTOCOMPLETE DROPDOWN ========== */

.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-bg, #1f1f2e);
  border: 2px solid var(--border-color, #2d2d3d);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.4));
  z-index: 1000;
  display: none;
}

.autocomplete-item {
  padding: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border-color, #2d2d3d);
  color: var(--text-color, #fff);
}

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

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: rgba(var(--primary-rgb, 0, 166, 81), 0.2);
}

/* ========== COMMON SUBMIT BUTTON ========== */

.game-submit-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: var(--primary-color, #00d4ff);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.game-submit-btn:hover {
  background: var(--primary-hover, #00b8e0);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.4));
}

.game-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ========== GIVE UP BUTTON ========== */

.give-up-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--error-color, #e10600);
  background: transparent;
  color: var(--error-color, #e10600);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.give-up-btn:hover {
  background: var(--error-color, #e10600);
  color: white;
}

/* ========== SHARE SECTION (End of game buttons) ========== */

.share-section {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
}

.share-section .btn-share,
.share-section .share-btn,
.share-section .submit-btn,
.share-section .play-random-btn,
.share-section button {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

/* On very small screens, stack buttons vertically */
@media (max-width: 360px) {
  .share-section {
    flex-wrap: wrap;
  }
  .share-section .btn-share,
  .share-section .share-btn,
  .share-section .submit-btn,
  .share-section .play-random-btn,
  .share-section button {
    flex: 1 1 100%;
  }
}

/* ========== SHARE BUTTON ========== */

.share-btn,
.btn-share {
  padding: 0.75rem 1.5rem;
  border: none;
  background: linear-gradient(135deg, #e50914 0%, #d4af37 100%);
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.share-btn:hover,
.btn-share:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

.btn-share.secondary,
.share-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #a0a0a0);
}

.btn-share.secondary:hover,
.share-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ========== PLAY RANDOM BUTTON ========== */

.play-random-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color, #00d4ff);
  background: transparent;
  color: var(--primary-color, #00d4ff);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.play-random-btn:hover {
  background: var(--primary-color, #00d4ff);
  color: white;
  transform: translateY(-2px);
}

/* ========== CLUES PANEL BASE ========== */

.clues-panel {
  background: var(--card-bg, #1f1f2e);
  border: 1px solid var(--border-color, #2d2d3d);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.clues-panel-header {
  padding: 0.75rem 1rem;
  background: rgba(var(--primary-rgb, 0, 166, 81), 0.1);
  border-bottom: 1px solid var(--border-color, #2d2d3d);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.clues-panel-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color, #fff);
}

.clues-panel-content {
  padding: 1rem;
}

.clue-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  min-height: 58px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #2d2d3d);
  border-radius: 8px;
}

.clue-item.confirmed {
  border-color: var(--success-color, #22c55e);
  background: rgba(34, 197, 94, 0.15);
}

.clue-item.narrowed {
  border-color: var(--warning-color, #eab308);
  background: rgba(234, 179, 8, 0.1);
}

.clue-label {
  color: var(--text-muted, #9ca3af);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.clue-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color, #fff);
}

.clue-item.confirmed .clue-value {
  color: var(--success-color, #22c55e);
}

.clue-item.narrowed .clue-value {
  color: var(--warning-color, #eab308);
}

/* ========== FEEDBACK MODAL ========== */

.feedback-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, var(--primary-color, #00d4ff), #ff6b6b);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feedback-btn:hover {
  transform: scale(1.05);
}

.feedback-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
}

.feedback-overlay.open {
  display: block;
}

.feedback-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg, #1a1a2e);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  z-index: 1002;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.feedback-modal.open {
  display: block;
}

.feedback-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted, #888);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

.feedback-close:hover {
  color: var(--text-color, #fff);
}

.feedback-modal h3 {
  margin: 0 0 16px;
  color: var(--text-color, #fff);
  font-size: 1.2rem;
}

.feedback-modal form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-modal label {
  color: var(--text-muted, #9ca3af);
  font-size: 0.9rem;
  margin-bottom: -8px;
}

.feedback-modal select,
.feedback-modal input,
.feedback-modal textarea {
  padding: 10px 12px;
  border: 1px solid var(--border-color, #333);
  border-radius: 8px;
  background: var(--bg-color, #0f0f0f);
  color: var(--text-color, #fff);
  font-size: 0.95rem;
  font-family: inherit;
}

.feedback-modal select:focus,
.feedback-modal input:focus,
.feedback-modal textarea:focus {
  outline: none;
  border-color: var(--primary-color, #00d4ff);
}

.feedback-modal textarea {
  resize: vertical;
  min-height: 80px;
}

.feedback-modal button[type="submit"] {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-color, #00d4ff), #ff6b6b);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.feedback-modal button[type="submit"]:hover {
  opacity: 0.9;
}

.feedback-modal button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========== HOW TO PLAY SECTION ========== */

.how-to-play {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  text-align: left;
}

.how-to-play h2 {
  font-size: 1.1rem;
  color: var(--accent-primary, #00d4ff);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.how-to-play h3 {
  font-size: 0.95rem;
  color: var(--text-primary, #fff);
  margin: 16px 0 8px 0;
}

.how-to-play p {
  color: var(--text-secondary, #9ca3af);
  line-height: 1.6;
  margin: 0 0 12px 0;
  font-size: 0.9rem;
}

.how-to-play ul, .how-to-play ol {
  color: var(--text-secondary, #9ca3af);
  line-height: 1.7;
  margin: 0 0 12px 0;
  padding-left: 20px;
  font-size: 0.9rem;
}

.how-to-play li {
  margin-bottom: 6px;
}

.how-to-play .tip {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  padding: 10px 14px;
  margin-top: 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
}

.how-to-play .movie-pool-note {
  background: rgba(0, 212, 255, 0.1);
  border-left: 3px solid var(--accent-primary, #00d4ff);
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: var(--text-primary, #fff);
}

.how-to-play .tip strong {
  color: #f59e0b;
}

.how-to-play-toggle {
  display: none;
}

/* Collapsible on mobile */
@media (max-width: 600px) {
  .how-to-play {
    padding: 0;
    background: none;
    border: none;
  }
  
  .how-to-play-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--accent-primary, #00d4ff);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0;
  }
  
  .how-to-play-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.2s;
  }
  
  .how-to-play-toggle.expanded::after {
    transform: rotate(180deg);
  }
  
  .how-to-play-content {
    display: none;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    border-radius: 0 0 10px 10px;
    margin-top: -1px;
  }
  
  .how-to-play-content.expanded {
    display: block;
  }
  
  .how-to-play h2 {
    display: none;
  }
}

/* ========== CONSISTENT LAYOUT SYSTEM ========== */

/**
 * Shared layout system for consistent widths across all games.
 * Use these classes to ensure all game containers, cards, and panels
 * have matching widths on desktop and mobile.
 */

/* Main game container - centers content with consistent max-width */
.game-layout {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Content panel - full width within the layout */
.game-panel {
  width: 100%;
  background: var(--card-bg, #1f1f2e);
  border: 1px solid var(--border-color, #2d2d3d);
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
}

/* Summary/Results panel - same as game-panel for consistency */
.game-summary-panel {
  width: 100%;
  background: var(--card-bg, #1f1f2e);
  border: 1px solid var(--border-color, #2d2d3d);
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
}

/* Progress bar container */
.game-progress-container {
  width: 100%;
  background: var(--card-bg, #1f1f2e);
  border: 1px solid var(--border-color, #2d2d3d);
  border-radius: 8px;
  padding: 12px 16px;
  box-sizing: border-box;
}

/* Info section (How to play, etc.) */
.game-info-panel {
  width: 100%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  box-sizing: border-box;
}

/* Action buttons row - side by side layout */
.game-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.game-actions .btn-primary,
.game-actions .btn-secondary {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
}

/* Spacing between panels */
.game-panel + .game-panel,
.game-summary-panel + .game-info-panel,
.game-progress-container + .game-panel {
  margin-top: 16px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .game-layout {
    padding: 0 12px;
  }
  
  .game-panel,
  .game-summary-panel,
  .game-info-panel {
    padding: 16px;
  }
  
  .game-actions .btn-primary,
  .game-actions .btn-secondary {
    min-width: 120px;
    max-width: none;
    flex-basis: calc(50% - 6px);
  }
}

/* ========== AD SLOTS PLACEHOLDER ========== */

/**
 * Placeholder classes for future ad integration.
 * These define the layout structure without implementing ads.
 */

/* Banner ad slot - horizontal, between sections */
.ad-slot-banner {
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

/* Sidebar ad slot - for desktop wide screens */
.ad-slot-sidebar {
  display: none;
}

/* Only show sidebar ads on wide screens */
@media (min-width: 1200px) {
  .ad-slot-sidebar {
    display: block;
    position: fixed;
    width: 160px;
    min-height: 600px;
  }
  
  .ad-slot-sidebar.left {
    left: 20px;
    top: 100px;
  }
  
  .ad-slot-sidebar.right {
    right: 20px;
    top: 100px;
  }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 480px) {
  .stats-modal-content {
    padding: 16px;
  }
  
  .stats-grid {
    gap: 12px;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .game-notification {
    padding: 10px 16px;
    font-size: 13px;
  }
}
