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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* HERO */
#hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #1a73e8;
}

#hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

#hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: white;
}

#hero-overlay h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

#hero-overlay p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.95;
}

#hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

#donate-btn {
  background: #FF6600;
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.2s;
}

#donate-btn:hover {
  background: #e05500;
}

#share-btn {
  background: white;
  color: #1a73e8;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.2s;
}

#share-btn:hover {
  background: #e8f0fe;
}

/* COUNTDOWN */
#countdown-section {
  background: #1a73e8;
  color: white;
  text-align: center;
  padding: 28px 20px 20px;
}

#countdown-section h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-block span {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 18px;
  min-width: 80px;
  text-align: center;
}

.countdown-block label {
  font-size: 0.75rem;
  margin-top: 6px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#countdown-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 8px;
}

/* FUNDRAISING */
#fundraising {
  background: white;
  padding: 32px 40px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

#fundraising h2 {
  font-size: 1.5rem;
  color: #1a73e8;
  margin-bottom: 10px;
}

#fundraising-label {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #555;
}

#progress-track {
  background: #e0e0e0;
  border-radius: 30px;
  height: 22px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 10px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1a73e8, #FF6600);
  border-radius: 30px;
  transition: width 1.2s ease-in-out;
}

#progress-percent {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 14px;
}

#fundraising-link {
  color: #1a73e8;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
}

#fundraising-link:hover {
  text-decoration: underline;
}

/* SUPPORTER METRICS */
#metrics-section {
  background: white;
  padding: 32px 40px;
  border-bottom: 1px solid #eee;
}

#metrics-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.metric-card {
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.metric-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: bold;
  color: #1a73e8;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: lowercase;
}

/* PERSONAL MESSAGE & CHARITY INFO */
#message-section {
  padding: 40px;
  background: #f0f6ff;
}

#message-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 24px;
}

#message-box {
  background: white;
  border-left: 5px solid #1a73e8;
  border-radius: 10px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

#message-box h2 {
  color: #1a73e8;
  margin-bottom: 14px;
  font-size: 1.3rem;
}

#message-box p {
  line-height: 1.8;
  color: #444;
  font-size: 1rem;
}

#charity-box {
  background: white;
  border-left: 5px solid #FF6600;
  border-radius: 10px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

#charity-box h2 {
  color: #FF6600;
  margin-bottom: 14px;
  font-size: 1.3rem;
}

#charity-box p {
  line-height: 1.8;
  color: #444;
  font-size: 1rem;
  margin-bottom: 0;
}

/* STRAVA BANNER */
#strava-banner {
  background: white;
  border-left: 5px solid #FC4C02;
  border-radius: 10px;
  padding: 20px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 1100px;
  margin: 0 auto;
}

#strava-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

#strava-text {
  flex: 1;
  min-width: 280px;
}

#strava-text h3 {
  color: #FC4C02;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

#strava-text p {
  line-height: 1.6;
  color: #444;
  font-size: 0.95rem;
  margin: 0;
}

.strava-link {
  display: inline-block;
  background: #FC4C02;
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.strava-link:hover {
  background: #d63e00;
}


/* STRAVA BANNER */
#strava-banner {
  background: white;
  border-left: 5px solid #FC4C02;
  border-radius: 10px;
  padding: 20px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 1100px;
  margin: 0 auto;
}

#strava-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

#strava-text {
  flex: 1;
  min-width: 280px;
}

#strava-text h3 {
  color: #FC4C02;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

#strava-text p {
  line-height: 1.6;
  color: #444;
  font-size: 0.95rem;
  margin: 0;
}

.strava-link {
  display: inline-block;
  background: #FC4C02;
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.strava-link:hover {
  background: #d63e00;
}


/* MAP SECTION */
#map-section {
  padding: 40px 40px 0;
  background: #f5f5f5;
}

#map-section h2 {
  font-size: 1.5rem;
  color: #1a73e8;
  margin-bottom: 6px;
}

#map-section p {
  color: #555;
  margin-bottom: 16px;
}

#map {
  width: 100%;
  height: 520px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* MODAL */
.hidden {
  display: none !important;
}

#modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background: white;
  border-radius: 12px;
  padding: 28px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box h2 {
  color: #1a73e8;
  margin-bottom: 8px;
}

.modal-box p {
  margin-bottom: 10px;
  line-height: 1.5;
}

#claimed-list {
  list-style: none;
  margin-bottom: 16px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  min-height: 40px;
}

#claimed-list li {
  padding: 4px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remove-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 2px 8px;
  cursor: pointer;
  color: #888;
  margin-left: 8px;
}

.remove-btn:hover {
  background: #fee;
  border-color: #e88;
  color: #c00;
}

hr {
  margin: 16px 0;
  border: none;
  border-top: 1px solid #eee;
}

#name-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 12px;
}

#claim-btn {
  width: 100%;
  padding: 12px;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 8px;
}

#claim-btn:hover {
  background: #1558b0;
}

#close-btn {
  width: 100%;
  padding: 10px;
  background: #eeeeee;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

#close-btn:hover {
  background: #dddddd;
}

.custom-tooltip {
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.custom-tooltip::before {
  border-top-color: #1a73e8 !important;
}

/* CHEER SQUAD TABLE */
#squad-section {
  padding: 40px;
  background: white;
  margin-top: 32px;
}

#squad-section h2 {
  font-size: 1.5rem;
  color: #1a73e8;
  margin-bottom: 6px;
  text-align: center;
}

#squad-section p {
  color: #555;
  margin-bottom: 20px;
  text-align: center;
}

#squad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border: 2px solid #1a73e8;
}

#squad-table thead {
  background: #1a73e8;
  color: white;
}

#squad-table th {
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  border: 1px solid #1558b0;
}

#squad-table td {
  padding: 12px 16px;
  border: 1px solid #dde6f7;
  vertical-align: top;
  text-align: center;
}

#squad-table tbody tr:hover {
  background: #f0f6ff;
}

#squad-table tbody tr.finish-row {
  background: #fff4ec;
  font-weight: bold;
}

#squad-table tbody tr.finish-row:hover {
  background: #ffe8d6;
}
/* MESSAGE BOARD */
#message-board-section {
  padding: 40px;
  background: #f0f6ff;
}

#message-board-section h2 {
  font-size: 1.5rem;
  color: #1a73e8;
  margin-bottom: 6px;
  text-align: center;
}

#message-board-section p {
  color: #555;
  margin-bottom: 24px;
  text-align: center;
}

#message-form {
  max-width: 500px;
  margin: 0 auto 32px;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

#message-name {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 12px;
}

#message-text {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 12px;
}

#post-message-btn {
  width: 100%;
  padding: 12px;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

#post-message-btn:hover {
  background: #1558b0;
}

#messages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.message-note {
  background: #FFEB3B;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  position: relative;
  min-height: 140px;
  transform: rotate(-1deg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.message-note:nth-child(even) {
  transform: rotate(1deg);
  background: #FFD54F;
}

.message-note:nth-child(3n) {
  background: #FFF59D;
}

.message-note:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 10;
}

.message-note::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 16px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
}

.message-author {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.message-content {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.message-delete {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #999;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.message-delete:hover {
  background: rgba(0,0,0,0.05);
  color: #c00;
}


/* SPECTATOR TIPS */
#tips-section {
  padding: 40px;
  background: white;
}

#tips-section h2 {
  font-size: 1.5rem;
  color: #1a73e8;
  margin-bottom: 24px;
  text-align: center;
}

#tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.tip-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.tip-card:hover {
  transform: translateY(-3px);
}

.tip-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.tip-card h3 {
  color: #1a73e8;
  margin-bottom: 8px;
  font-size: 1rem;
}

.tip-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
}

/* FOOTER */
footer {
  background: #1a73e8;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 40px;
}

footer a {
  color: #FFD580;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}
