/* ===== Game Common Styles =====
   Shared layout, typography, and UI components for all game pages.
   Each game page links this file and adds only page-specific styles.
*/

/* --- Reset & Body --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  text-align: center;
  padding-top: 40px;
  background-image: url("../bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  margin: 0;
  padding-bottom: 60px;
}

/* --- Banner Iframe --- */
.banner-frame {
  width: 100%;
  border: none;
  overflow: hidden;
  height: 60px;
  display: block;
  margin-bottom: 30px;
}

/* --- Game Section Container --- */
.game-section {
  padding: 30px;
  background: rgba(0,0,0,0.45);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  max-width: 760px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* --- Typography --- */
h1 {
  margin-top: 0;
  color: #8bc5ff;
  font-size: 2em;
}

.subtitle {
  color: #e8e8e8;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* --- Links --- */
a {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
}
a:hover {
  background: rgba(255,255,255,0.3);
}

/* --- Buttons --- */
.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover { opacity: 0.9; }
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  background: #4CAF50;
  color: white;
}
.btn-primary:hover {
  background: #43a047;
  transform: scale(1.03);
}
.btn-secondary {
  background: rgba(255,255,255,0.16);
  color: white;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
}
.btn-warning {
  background: #ffb300;
  color: #1f1f1f;
}

/* --- Game Status Bar --- */
.game-status {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  flex-wrap: wrap;
}
.status-item .score {
  font-weight: 700;
  color: #4CAF50;
  min-width: 40px;
}
.status-item .count {
  font-weight: 700;
  color: #8bc5ff;
  min-width: 20px;
}

/* --- Controls --- */
.controls,
.btn-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Speed Control --- */
.speed-control {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.speed-control select {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #555;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 13px;
}

/* --- Game Note --- */
.game-note {
  font-size: 12px;
  color: #aaa;
  margin-top: 12px;
  line-height: 1.6;
}

/* --- Message --- */
.message {
  font-size: 20px;
  font-weight: bold;
  margin-top: 15px;
  min-height: 30px;
  padding: 10px;
  border-radius: 8px;
}

/* --- Toolbar --- */
.toolbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.toolbar select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 14px;
}
.toolbar select option { color: black; }
