/* Stylesheet for The Tekensee Crabby Domino Run website */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --primary-color: #E24C38;
  /* Crab Red */
  --primary-hover: #C53A27;
  --primary-light: #FFF0ED;
  /* Light red background tint */
  --accent-color: #EAA135;
  /* Sandy Gold */
  --bg-main: #FAF9F6;
  /* Soft warm off-white */
  --bg-card: #FFFFFF;
  --text-dark: #2B2D2F;
  /* Charcoal */
  --text-light: #5E6164;
  /* Muted grey for body */
  --text-white: #FFFFFF;
  --border-color: #E2E1DC;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 24px rgba(0, 0, 0, 0.08);
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --max-width: 1000px;
  --font-headers: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  /* Offset for sticky nav */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-headers);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Navigation & Branding */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-headers);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  padding: 20px 0 60px 0;
  text-align: center;
  background: radial-gradient(circle at 80% 20%, var(--primary-light) 0%, transparent 60%);
  position: relative;
}

.hero-logo-wrapper {
  margin-bottom: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
}

.hero-side-domino {
  width: 44px;
  height: 82px;
  flex-shrink: 0;
  display: block;
  margin: 0 32px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);
}

.left-domino {
  transform: rotate(-15deg);
  background-color: var(--text-dark);
}

.right-domino {
  transform: rotate(15deg);
}

/* Background Depth Dominoes (Scattered, blurry, low opacity) */
.depth-domino {
  position: absolute;
  opacity: 0.16;
  filter: blur(1.8px);
  width: 32px;
  height: 60px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 0;
  transition: transform 0.3s ease;
}

.depth-left-1 {
  left: -20px;
  top: 15px;
  transform: rotate(-38deg) scale(0.75);
  background-color: var(--text-dark);
}

.depth-left-2 {
  left: -120px;
  top: 40px;
  transform: rotate(-55deg) scale(0.6);
  background-color: var(--primary-color);
  opacity: 0.08;
  filter: blur(2.5px);
}

.depth-right-1 {
  right: -20px;
  top: 25px;
  transform: rotate(32deg) scale(0.75);
}

.depth-right-2 {
  right: -120px;
  top: 5px;
  transform: rotate(52deg) scale(0.6);
  background-color: var(--text-dark);
  opacity: 0.08;
  filter: blur(2.5px);
}

@media (max-width: 1024px) {
  .depth-domino {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-side-domino {
    display: none;
  }
}

.hero-event-logo {
  max-width: 100%;
  width: 320px;
  height: auto;
  display: block;
  transition: transform 0.1s ease-out; /* Match scroll latency slightly */
}

.hero-text-container {
  position: relative;
  z-index: 2;
}

.hero-event-logo:hover {
  transform: scale(1.01);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 24px;
  border: 1px solid rgba(226, 76, 56, 0.2);
}

.hero-tag svg {
  fill: var(--primary-color);
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 36px auto;
}

.hero-cta {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(226, 76, 56, 0.2);
  transition: all 0.2s ease;
}

.hero-cta:hover {
  background-color: var(--primary-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(226, 76, 56, 0.3);
}

/* Main Content Sections */
.section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
  border-bottom: none;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-num {
  font-family: var(--font-headers);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

/* Section-Specific Layouts */

/* 1. The Ride styling */
.ride-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 40px;
  align-items: center;
}

.ride-content {
  flex: 12;
}

.ride-date-box {
  background-color: var(--primary-light);
  border: 1px solid rgba(226, 76, 56, 0.15);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.date-icon {
  background: var(--primary-color);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.date-text h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.date-text p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.ride-text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* Timeline Route Graphic */
.route-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 30px;
  padding-top: 20px;
}

.route-timeline::before {
  content: '';
  position: absolute;
  top: 37px;
  left: 30px;
  right: 30px;
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.timeline-step:hover .step-node {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.1);
}

.step-label {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
}

.timeline-step:hover .step-label {
  color: var(--text-dark);
}

.timeline-step:first-child .step-node,
.timeline-step:last-child .step-node {
  border-color: var(--accent-color);
  color: var(--text-dark);
}

/* 2. The Cause Styling */
.cause-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: flex-start;
}

.cause-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cause-story {
  font-size: 1.05rem;
  color: var(--text-light);
}

.cause-story p {
  margin-bottom: 20px;
}

.cause-story p:last-child {
  margin-bottom: 0;
}

.cause-highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.cause-badge-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
}

.ntmir-logo {
  max-width: 140px;
  height: auto;
  display: block;
  margin: 15px auto;
}

.cause-badge-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--primary-color);
}

.cause-highlight-box h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.cause-highlight-box p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.charity-btn {
  display: inline-block;
  background-color: var(--text-dark);
  color: var(--text-white);
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.charity-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

/* 3. The Game Styling */
.game-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 40px auto;
  font-size: 1.15rem;
  color: var(--text-light);
}

.game-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rule-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rule-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rule-icon-wrapper {
  background-color: var(--primary-light);
  color: var(--primary-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.rule-card h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
}

.rule-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.rulebook-cta-box {
  text-align: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.rulebook-cta-text {
  text-align: left;
}

.rulebook-cta-text h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.rulebook-cta-text p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.rulebook-btn {
  background-color: var(--bg-main);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rulebook-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

/* Domino CSS Components */
.dominoes-decorative {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 30px 0;
}

.domino-tile {
  background-color: var(--text-dark);
  border-radius: 6px;
  width: 50px;
  height: 94px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.2s ease;
}

.domino-tile:hover {
  transform: translateY(-5px) rotate(4deg);
}

.domino-divider-line {
  height: 2px;
  background-color: #FFFFFF;
  margin: 4px 0;
  opacity: 0.6;
}

.domino-dot-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 2px;
  align-items: center;
  justify-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  background-color: #FFFFFF;
  border-radius: 50%;
  display: block;
}

/* Dot Positions in Grid for values 0-6 */
.grid-pos-1 {
  grid-area: 1 / 1;
}

.grid-pos-2 {
  grid-area: 1 / 2;
}

.grid-pos-3 {
  grid-area: 1 / 3;
}

.grid-pos-4 {
  grid-area: 2 / 1;
}

.grid-pos-5 {
  grid-area: 2 / 2;
}

.grid-pos-6 {
  grid-area: 2 / 3;
}

.grid-pos-7 {
  grid-area: 3 / 1;
}

.grid-pos-8 {
  grid-area: 3 / 2;
}

.grid-pos-9 {
  grid-area: 3 / 3;
}

/* 4. Join The Waitlist Styling */
.waitlist-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.waitlist-intro {
  text-align: center;
  margin-bottom: 30px;
}

.waitlist-intro p {
  color: var(--text-light);
  font-size: 0.98rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-label .optional {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.8rem;
}

.form-control {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-main);
  color: var(--text-dark);
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(226, 76, 56, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.error-message {
  font-size: 0.8rem;
  color: var(--primary-color);
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-control {
  border-color: var(--primary-color);
  background-color: #FFF6F5;
}

.form-group.has-error .error-message {
  display: block;
}

/* Checkbox form element customization */
.checkbox-group {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-main);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(226, 76, 56, 0.15);
  border-color: var(--primary-color);
}

.checkbox-label span {
  line-height: 1.4;
}

.form-group.has-error.checkbox-group .checkbox-label input[type="checkbox"] {
  border-color: var(--primary-color);
  background-color: #FFF6F5;
}

.form-group.has-error.checkbox-group .checkbox-label input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-group.has-error.checkbox-group .checkbox-label {
  color: var(--primary-color);
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--text-white);
  border: none;
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.submit-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.form-privacy-link-container {
  text-align: center;
  margin-top: 15px;
}

.form-privacy-link {
  font-size: 0.88rem;
  color: var(--text-light);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.form-privacy-link:hover {
  color: var(--primary-color);
}

.form-privacy-link-divider {
  color: var(--border-color);
  margin: 0 8px;
  font-size: 0.9rem;
}

/* Spinner graphic for button loading state */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  display: none;
}

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

/* Success State Panel */
.success-panel {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.success-icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: #E8F8F5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.success-icon-wrapper svg {
  width: 32px;
  height: 32px;
  fill: #2ECC71;
}

.success-panel h3 {
  font-size: 1.6rem;
  color: #2C3E50;
  margin-bottom: 10px;
}

.success-panel p {
  color: var(--text-light);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

/* Footer styling */
.footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 30px 0;
  font-size: 0.9rem;
  text-align: center;
}

.footer-logo {
  max-height: 50px;
  margin-bottom: 20px;
  opacity: 0.9;
  filter: invert(1) brightness(1.2);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 24px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

/* Rules Page Styling */
.rules-header {
  background: var(--bg-card);
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.rules-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-headers);
  font-weight: 600;
  color: var(--text-dark);
}

.back-link svg {
  fill: var(--text-dark);
  transition: transform 0.2s ease;
}

.back-link:hover {
  color: var(--primary-color);
}

.back-link:hover svg {
  fill: var(--primary-color);
  transform: translateX(-4px);
}

.rules-container {
  max-width: 800px;
  margin: 40px auto 80px auto;
  padding: 0 24px;
}

.rules-title-area {
  text-align: center;
  margin-bottom: 50px;
}

.rules-title-area h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.rules-section-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.rules-section-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.rules-sub-item {
  margin-bottom: 16px;
}

.rules-sub-item:last-child {
  margin-bottom: 0;
}

.rules-sub-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.rules-sub-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.rules-footer-box {
  text-align: center;
  margin-top: 50px;
}

/* Crab Decorative Elements */
.crab-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
}

.crab-line {
  height: 1px;
  background-color: var(--border-color);
  flex: 1;
  max-width: 150px;
}

.crab-icon-svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  /* Hamburger to X transition */
  .nav-links.active~.menu-toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-links.active~.menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-links.active~.menu-toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .ride-card {
    flex-direction: column;
    padding: 24px;
  }

  .route-timeline {
    flex-direction: column;
    gap: 20px;
  }

  .route-timeline::before {
    display: none;
  }

  .timeline-step {
    flex-direction: row;
    gap: 16px;
    align-items: center;
  }

  .step-label {
    margin-top: 0;
    text-align: left;
  }

  .cause-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .game-rules-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rulebook-cta-box {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .rulebook-cta-text {
    text-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }
}

/* Scroll Reveal Floating Decorations */
.section .container {
  position: relative;
}

.decor-container {
  position: absolute;
  top: 45%;
  pointer-events: none;
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
  z-index: 10;
}

.decor-left {
  left: -90px;
  transform: translateX(-50px) rotate(-20deg);
}

.decor-right {
  right: -90px;
  transform: translateX(50px) rotate(20deg);
}

/* Revealed scroll states */
.decor-container.revealed {
  opacity: 0.18;
  transform: translateX(0) rotate(0deg);
}

/* Hide floating decors on smaller screens to prevent overlaps */
@media (max-width: 1200px) {
  .decor-container {
    display: none;
  }
}

/* Override inner transition to ensure smooth real-time parallax scroll */
.decor-container > * {
  transition: none !important;
}

/* Decorative 3D Layers */
.decor-container.layer-fg {
  z-index: 15; /* Sits on top of cards */
}

.decor-container.layer-bg {
  z-index: 1; /* Sits behind cards */
}

.decor-container.layer-mg {
  z-index: 8; /* Midground */
}

/* Domino Color Variations */
.domino-white {
  background-color: #FFFFFF !important;
  border: 2px solid var(--text-dark) !important;
}
.domino-white .dot {
  background-color: var(--text-dark) !important;
}
.domino-white .domino-divider-line {
  background-color: var(--text-dark) !important;
}

.domino-coral {
  background-color: var(--primary-color) !important;
  border: 2px solid var(--primary-hover) !important;
}
.domino-coral .dot {
  background-color: #FFFFFF !important;
}
.domino-coral .domino-divider-line {
  background-color: #FFFFFF !important;
}

.domino-black {
  background-color: var(--text-dark) !important;
  border: 2px solid #1A1A1A !important;
}
.domino-black .dot {
  background-color: #FFFFFF !important;
}
.domino-black .domino-divider-line {
  background-color: #FFFFFF !important;
}

/* Waitlist Counter Badge */
.waitlist-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 15px;
  border: 1px solid rgba(226, 76, 56, 0.15);
  animation: badge-pulse 2s infinite ease-in-out;
}

@keyframes badge-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}