.game-container {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-header {
  text-align: center;
  margin-bottom: 2rem;
}

.game-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.game-header p {
  color: var(--text-secondary);
}

.game-screen {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 2rem;
}

.game-screen:active {
  transform: scale(0.99);
}

.screen-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.screen-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.screen-sub {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Screen States */
.game-screen.waiting {
  background-color: #3b82f6;
  color: white;
}

.game-screen.ready {
  background-color: #ef4444;
  color: white;
}

.game-screen.click-now {
  background-color: #10b981;
  color: white;
  animation: pulse 0.6s infinite alternate;
}

.game-screen.too-early {
  background-color: #f59e0b;
  color: white;
}

.game-screen.result {
  background-color: #6366f1;
  color: white;
}

@keyframes pulse {
  from { opacity: 0.95; }
  to { opacity: 1; }
}

/* Stats Panel */
.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-top: 2.5rem;
}

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

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ================== Challenge Banner ================== */
.challenge-banner {
  width: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(56, 189, 248, 0.12) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
  animation: bannerSlideDown 0.35s ease-out;
}

.challenge-banner.hidden {
  display: none !important;
}

.challenge-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.challenge-info {
  flex: 1;
  min-width: 0;
}

.challenge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.challenge-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.challenge-text strong {
  color: #34d399;
  font-size: 1.15rem;
  font-weight: 800;
}

.challenge-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.challenge-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
}

.challenge-close-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

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

/* ================== Share Actions Section ================== */
.share-section {
  width: 100%;
  margin-top: 1.25rem;
  text-align: center;
}

.share-actions-panel {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  min-height: 46px;
  user-select: none;
}

.action-btn:active {
  transform: scale(0.97);
}

.action-btn .btn-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.copy-btn {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.share-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
}

.share-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.share-helper-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  line-height: 1.4;
}

/* ================== Toast Notification ================== */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #10b981;
  color: #f8fafc;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 9999;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
  max-width: 90vw;
  white-space: nowrap;
}

.toast-notification.hidden {
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
}

.toast-icon {
  font-size: 1.05rem;
}

/* ================== Mobile Responsiveness (360px ~ 480px) ================== */
@media (max-width: 640px) {
  .game-container {
    padding: 1.25rem 0.75rem 2.5rem;
  }

  .game-header {
    margin-bottom: 1.25rem;
  }

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

  .game-header p {
    font-size: 0.88rem;
    word-break: keep-all;
  }

  .game-screen {
    height: 300px;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }

  .screen-icon {
    font-size: 3rem;
    margin-bottom: 0.6rem;
  }

  .screen-title {
    font-size: 1.45rem;
    word-break: keep-all;
    line-height: 1.3;
  }

  .screen-sub {
    font-size: 0.92rem;
  }

  .stats-panel {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .stat-card {
    padding: 0.85rem 0.4rem;
  }

  .stat-label {
    font-size: 0.74rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .share-section {
    margin-top: 1rem;
  }

  .share-actions-panel {
    gap: 0.5rem;
  }

  .action-btn {
    flex: 1;
    padding: 0.65rem 0.6rem;
    font-size: 0.85rem;
    min-height: 44px;
    gap: 0.35rem;
  }

  .challenge-banner {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .challenge-icon {
    font-size: 1.5rem;
  }

  .challenge-text {
    font-size: 0.86rem;
  }

  .challenge-text strong {
    font-size: 1rem;
  }

  .challenge-sub {
    font-size: 0.75rem;
  }

  .toast-notification {
    bottom: 1.25rem;
    padding: 0.65rem 1.1rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 375px) {
  .game-screen {
    height: 260px;
  }

  .screen-icon {
    font-size: 2.5rem;
  }

  .screen-title {
    font-size: 1.25rem;
  }

  .screen-sub {
    font-size: 0.82rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .action-btn {
    font-size: 0.78rem;
    padding: 0.6rem 0.4rem;
  }

  .action-btn .btn-icon {
    font-size: 1rem;
  }
}

