/* HashFlip Main Styles
------------------------------------------------------ */

/* CSS Variables */
:root {
  /* Colors */
  --primary-color: #007acc;
  --primary-dark: #005b99;
  --primary-light: #1a8fe3;
  --secondary-color: #20c997;
  --background-dark: #1e1e1e;
  --background-light: #2d2d2d;
  --text-light: #f0f0f0;
  --text-dim: #bbb;
  --text-dark: #333;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-800: #343a40;
  
  /* Sizing */
  --header-height: 60px;
  --footer-height: 80px;
  --content-max-width: 1200px;
  --content-spacing: 20px;
  
  /* Animation */
  --transition-speed: 0.3s;
  --border-radius: 8px;
}

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

html, body {
  height: 100%;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  background-color: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--secondary-color);
}

/* Header */
.main-header {
  background-color: var(--background-light);
  height: var(--header-height);
  min-height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--content-spacing);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Ensure consistent nav height */
.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  height: 100%;
  line-height: var(--header-height);
}

.logo-icon {
  margin-right: 10px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--text-light);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed);
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: all var(--transition-speed);
}

/* Main Content */
.content {
  flex: 1;
  padding: var(--content-spacing);
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Footer */
.main-footer {
  background-color: var(--background-light);
  padding: 20px var(--content-spacing);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--content-max-width);
  margin: 0 auto;
  gap: 15px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-dim);
}

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

/* Social link styling */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.twitter-icon {
  color: #1DA1F2;
}

.footer-info {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-speed);
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-large {
  padding: 0.8rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 122, 204, 0.9), rgba(0, 91, 153, 0.9));
  color: white;
  border: 1px solid rgba(26, 143, 227, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0, 122, 204, 1), rgba(0, 91, 153, 1));
  border-color: rgba(26, 143, 227, 0.6);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(32, 201, 151, 0.9), rgba(27, 166, 126, 0.9));
  color: white;
  border: 1px solid rgba(32, 201, 151, 0.4);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(32, 201, 151, 1), rgba(27, 166, 126, 1));
  border-color: rgba(32, 201, 151, 0.6);
  color: white;
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn span, .btn-primary span, .btn-secondary span, .btn-outline span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Game-specific buttons */
.flip-button {
  background: linear-gradient(135deg, rgba(36, 36, 68, 0.8), rgba(26, 26, 46, 0.8));
  color: var(--text-light);
  font-size: 1.2rem;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 45%;
  min-width: 120px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.flip-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.flip-button:hover::before {
  opacity: 1;
}

.flip-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.flip-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.low-button {
  background: linear-gradient(135deg, rgba(0, 122, 204, 0.8), rgba(0, 92, 184, 0.8));
  border: 1px solid rgba(0, 122, 204, 0.4);
}

.low-button:hover {
  background: linear-gradient(135deg, rgba(0, 122, 204, 0.9), rgba(0, 92, 184, 0.9));
  border-color: rgba(0, 122, 204, 0.6);
}

.high-button {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.8), rgba(190, 33, 49, 0.8));
  border: 1px solid rgba(220, 53, 69, 0.4);
}

.high-button:hover {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(190, 33, 49, 0.9));
  border-color: rgba(220, 53, 69, 0.6);
}

.button-large-text, .button-small-text {
  position: relative;
  z-index: 2;
}

.button-large-text {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.button-small-text {
  font-size: 0.9rem;
  opacity: 0.8;
}

.boost-button {
  background: linear-gradient(135deg, rgba(36, 36, 68, 0.6), rgba(26, 26, 46, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.boost-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.boost-button:hover::before {
  opacity: 1;
}

.boost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.boost-button:active {
  transform: translateY(1px);
}

.boost-button.active {
  background: linear-gradient(135deg, rgba(0, 122, 204, 0.6), rgba(0, 91, 153, 0.6));
  border-color: rgba(26, 143, 227, 0.6);
  box-shadow: 0 0 10px rgba(0, 122, 204, 0.4);
}

.boost-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.boost-icon, .boost-name, .boost-cost {
  position: relative;
  z-index: 2;
}

.boost-icon {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.boost-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.boost-cost {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Tab buttons */
.tab-button {
  background: linear-gradient(135deg, rgba(36, 36, 68, 0.7), rgba(26, 26, 46, 0.7));
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.tab-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.tab-button:hover::before {
  opacity: 1;
}

.tab-button:hover {
  background: linear-gradient(135deg, rgba(82, 13, 194, 0.7), rgba(62, 8, 164, 0.7));
  border-color: rgba(102, 16, 242, 0.4);
  transform: translateY(-2px);
}

.tab-button.active {
  background: linear-gradient(135deg, rgba(0, 122, 204, 0.8), rgba(0, 91, 153, 0.8));
  color: white;
  border-color: rgba(26, 143, 227, 0.6);
  box-shadow: 0 0 15px rgba(0, 122, 204, 0.5);
  transform: translateY(-1px);
}

/* Hex buttons */
.hex-button {
  width: calc(25% - 8px);
  height: 40px;
  background: linear-gradient(135deg, rgba(36, 36, 68, 0.6), rgba(26, 26, 46, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin: 4px;
  position: relative;
  overflow: hidden;
}

.hex-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.hex-button:hover::before {
  opacity: 1;
}

.hex-button:hover {
  background: linear-gradient(135deg, rgba(102, 16, 242, 0.6), rgba(82, 13, 194, 0.6));
  border-color: rgba(133, 64, 245, 0.4);
  transform: translateY(-2px);
}

.hex-button.selected {
  background: linear-gradient(135deg, rgba(32, 201, 151, 0.8), rgba(27, 166, 126, 0.8));
  color: var(--text-dark);
  border-color: rgba(32, 201, 151, 0.6);
  box-shadow: 0 0 10px rgba(32, 201, 151, 0.4);
  transform: translateY(-2px);
}

/* Modal buttons keep their specific styling */
.modal-buttons .btn {
  min-width: 150px;
  padding: 12px 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, var(--background-light), var(--background-dark));
  border-radius: var(--border-radius);
  margin-bottom: 40px;
}

.hero-content {
  max-width: 800px;
}

.game-title {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--primary-light);
}

.game-tagline {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.game-description {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features Section */
.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.feature {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform var(--transition-speed);
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature h3 {
  margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
  background-color: var(--background-light);
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.cta-section h2 {
  margin-bottom: 20px;
}

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

.modal.show {
  display: flex;
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
  background-color: var(--background-light);
  padding: 35px;
  border-radius: var(--border-radius);
  max-width: 90%;
  width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.2s;
}

/* Hide close button in the result modal */
#result-modal .close-button {
  display: none;
}

.close-button:hover {
  color: var(--text-light);
}

.modal-message {
  margin: 20px 0;
  line-height: 1.6;
}

.modal-stats {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 25px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.modal-stat {
  display: flex;
  flex-direction: column;
}

.modal-stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.modal-stat-value {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

/* Special modal styling for game elements */
.bonus-highlight {
  color: #ffc600;
  font-weight: bold;
  font-size: 1.1em;
}

.perfect-bonus {
  color: #ff6b6b;
  font-weight: bold;
  margin: 10px 0;
  padding: 8px;
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: var(--border-radius);
  text-align: center;
}

.next-round-info {
  margin-top: 15px;
  font-style: italic;
  color: var(--text-dim);
}

.round-flips {
  color: var(--primary-light);
  font-weight: bold;
  font-style: normal;
}

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

/* Leaderboards Page Styles */
.leaderboards-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
}

.page-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-light);
  font-size: 2.8rem;
  text-shadow: 0 0 10px rgba(0, 122, 204, 0.5);
}

.leaderboard-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.tab-button {
  background-color: var(--background-light);
  color: var(--text-light);
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.tab-button:hover {
  background-color: var(--primary-dark);
}

.tab-button.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 0 15px rgba(102, 16, 242, 0.5);
}

.leaderboard-content {
  margin-bottom: 30px;
  position: relative;
  min-height: 500px;
}

.tab-content {
  display: none;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
  opacity: 1;
  visibility: visible;
  animation: none;
}

.tab-content h2 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.leaderboard-table-container {
  overflow-x: auto;
  min-height: 400px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}

.leaderboard-table th {
  background-color: rgba(0, 122, 204, 0.2);
  padding: 12px 15px;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 2px solid var(--primary-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.leaderboard-table th:nth-child(1),
.leaderboard-table td:nth-child(1) {
  width: 60px;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
  width: 40%;
}

.leaderboard-table th:nth-child(3),
.leaderboard-table td:nth-child(3) {
  width: 25%;
}

.leaderboard-table th:nth-child(4),
.leaderboard-table td:nth-child(4) {
  width: calc(35% - 60px);
}

.leaderboard-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color var(--transition-speed);
}

.leaderboard-table tbody tr:hover td {
  background-color: rgba(0, 122, 204, 0.1);
}

.leaderboard-table tbody tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.03);
}

.leaderboard-table tbody tr:nth-child(even):hover td {
  background-color: rgba(0, 122, 204, 0.1);
}

.leaderboard-table .rank {
  text-align: center;
  width: 60px;
  font-weight: 700;
}

.leaderboard-table .rank:nth-child(-n+3) {
  color: gold;
  font-size: 1.2rem;
}

.leaderboard-table tr:nth-child(1) .rank::before {
  content: "🥇 ";
}

.leaderboard-table tr:nth-child(2) .rank::before {
  content: "🥈 ";
}

.leaderboard-table tr:nth-child(3) .rank::before {
  content: "🥉 ";
}

.leaderboard-table .player {
  font-weight: 500;
}

.leaderboard-table .score {
  font-weight: 700;
  color: var(--secondary-color);
}

.leaderboard-table .date {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.leaderboard-table .flips {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.leaderboard-table .no-data {
  text-align: center;
  padding: 30px;
  color: var(--text-dim);
  font-style: italic;
}

.leaderboard-notes {
  text-align: center;
  margin: 30px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-style: italic;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: var(--border-radius);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: auto;
    background-color: var(--background-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-header {
    height: var(--header-height);
    min-height: var(--header-height);
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 20px;
  }
  
  .main-nav li {
    margin: 0;
    margin-bottom: 15px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-section {
    padding: 40px 15px;
  }
  
  .game-title {
    font-size: 2.2rem;
  }
  
  .game-tagline {
    font-size: 1.2rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .features-section {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 2.2rem;
  }
  
  .tab-button {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .leaderboard-table th, 
  .leaderboard-table td {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* How to Play Page Consistency */
.how-to-play-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 30px 20px;
}

/* Force consistent header across pages */
body > .app-container > .main-header {
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
}

/* Ensure no external styling affects our header */
.main-header * {
  box-sizing: border-box;
}

/* Site title */
.site-title {
  text-align: center;
  font-weight: bold;
  margin: 1rem 0;
  font-size: 2rem;
}

/* Site logo */
.site-logo {
  max-height: 40px;
  width: auto;
}

/* Responsive modal adjustments for mobile */
@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    max-height: 85vh;
  }
  
  .modal h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .modal-message {
    margin: 12px 0;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .modal-stats {
    padding: 12px;
    margin: 15px 0;
    gap: 10px;
  }
  
  .modal-stat-label {
    font-size: 0.8rem;
    margin-bottom: 2px;
  }
  
  .modal-stat-value {
    font-size: 1.1rem;
  }
  
  .modal-buttons {
    gap: 10px;
    margin-top: 15px;
  }
  
  .modal-buttons .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  /* Game-specific modal styles */
  .bonus-highlight {
    font-size: 1em;
  }
  
  .perfect-bonus {
    padding: 6px;
    margin: 8px 0;
    font-size: 0.9rem;
  }
  
  .next-round-info {
    margin-top: 10px;
    font-size: 0.85rem;
  }
} 