@import url('/Butler_Webfont/stylesheet.css');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* Modern Memory Game Styles */
:root {
  /* updated to match project branding changes */
  --primary-green: #c8643e;
  /* tangerine (was #4C6744) */
  --gold-accent: #faeaa1;
  /* beige (was #C6A451) */
  --bg-light: #F6F7F3;
  --text-dark: #2F3A2E;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius-lg: 24px;
  --radius-md: 12px;
}

/* Base Headings & Content Typography Rules */
h1, h2, h3, h4, h5, h6,
.game-header > h1,
.leaderboard-header h2,
.modal-header h2,
.section-title,
.footer-title,
.card-front .card-logo {
  font-family: 'Butler', serif !important;
}

body, p, span, a, button, input, select, address, label,
.game-header p,
.stats-bar,
.stat-item,
.btn,
.footer,
.footer-address,
.footer-contact,
.footer-bottom-text {
  font-family: 'Raleway', sans-serif !important;
}

.text-center {
  text-align: center !important;
}

/* ==================== CUSTOM SCROLLBAR STYLES ==================== */

/* Global Scrollbar - For all scrollable elements */
* {
  scrollbar-width: thin;
  scrollbar-color: #c8643e #f8f9fa;
}

/* Webkit browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 6px;
}

*::-webkit-scrollbar-thumb {
  background-color: #c8643e;
  border-radius: 6px;
  border: 3px solid #f8f9fa;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b55935 0%, #c8643e 100%);
}

/* Modal Content Scrollbar - White/Light background */
.modal-content::-webkit-scrollbar {
  width: 10px;
}

.modal-content::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #faeaa1 0%, #EFC27E 100%);
  border-radius: 10px;
  border: 2px solid #ffffff;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #EFC27E 0%, #d1c57a 100%);
  box-shadow: 0 0 8px rgba(239, 194, 126, 0.5);
}

/* Body Scrollbar - Dark background */
body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #faeaa1 0%, #EFC27E 100%);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #EFC27E 0%, #d1c57a 100%);
  box-shadow: 0 0 10px rgba(250, 234, 161, 0.5);
}

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

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--primary-green);
  min-height: 100vh;
  color: var(--text-dark);
  position: relative;
  overflow-x: hidden;
}

/* Animated Background */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: url('/images/bg-gallery.png') center center / cover no-repeat;
}

/* Particle Canvas */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Navbar */
.navbar {
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.5s ease-out;
  position: relative;
  z-index: 10;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 4px 8px;
  background: transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: none;
  box-shadow: none;
}

.logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}

.home-button {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  border: none;
  color: var(--primary-green);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home-button:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Main Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 20px 16px 20px;
  position: relative;
  z-index: 10;
}

/* Game Header */
.game-header {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  margin: 4px auto 12px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-width: 600px;
  animation: fadeInUp 0.42s ease-out;
  position: relative;
  overflow: hidden;
}

.game-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--gold-accent), var(--primary-green));
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.game-header > h1 {
  font-family: 'Butler', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 12px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary-green), var(--gold-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-header p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(135deg, rgba(250, 234, 161, 0.5) 0%, rgba(250, 234, 161, 0.2) 100%);
  border: 1px solid rgba(200, 100, 62, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px 12px;
  margin: 0 auto 20px;
  max-width: 450px;
  box-shadow: var(--shadow-sm);
}

.promo-banner .promo-headline {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-green);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.promo-banner .promo-text {
  color: #555;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 6px;
  max-width: none;
}

.promo-banner .promo-terms {
  color: #999;
  font-size: 11px;
  font-style: italic;
  margin-bottom: 0;
  max-width: none;
}

/* Stats Bar */
.stats-bar {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-around;
  margin: 0 auto;
  max-width: 450px;
  font-size: 14px;
  border: 2px solid rgba(200, 100, 62, 0.1);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  min-width: 110px;
  justify-content: center;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  height: 60%;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.stat-item:last-child::after {
  display: none;
}

.stat-item i {
  font-size: 18px;
  color: var(--primary-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.stat-item span {
  font-weight: 600;
  min-width: 60px;
  text-align: left;
  color: var(--text-dark);
}

#rating {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: flex-start;
  min-width: 80px;
}

#rating i {
  color: #ffd700;
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

/* Game Grid */
.game-board {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin: 4px auto 18px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-width: 600px;
  animation: fadeInUp 0.48s ease-out 0.12s both;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  perspective: 1000px;
}

.memory-card {
  aspect-ratio: 1;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  perspective: 1000px;
  width: 100%;
  max-width: 120px;
  margin: 0 auto;
}

.memory-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(200, 100, 62, 0.3);
}

.memory-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.memory-card.matched {
  animation: matchPulse 0.6s ease;
}

@keyframes matchPulse {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.1);
  }

  50% {
    transform: scale(0.95);
  }

  75% {
    transform: scale(1.05);
  }
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.card-front {
  background: linear-gradient(135deg, var(--primary-green) 0%, rgba(200, 100, 62, 0.8) 100%);
  border: 3px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-front .card-logo {
  font-size: 3rem;
  color: var(--gold-accent);
  font-family: 'Butler', serif;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.card-back {
  background-color: white;
  transform: rotateY(180deg);
  padding: 20px;
}

.card-back {
  background-color: white;
  transform: rotateY(180deg);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  pointer-events: none;
  display: block;
  margin: auto;
}

.memory-card.matched {
  pointer-events: none;
  animation: matchSuccess 0.8s ease forwards;
}

@keyframes matchSuccess {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15) rotate(5deg);
  }

  100% {
    transform: scale(1);
  }
}

.memory-card.matched .card-inner {
  transform: rotateY(180deg);
  box-shadow: 0 0 20px rgba(250, 234, 161, 0.6);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-md);
}

/* Buttons */
.button-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.btn {
  padding: 14px 32px;
  border-radius: 9999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-outline {
  background: white;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-outline:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 100, 62, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-accent) 0%, #f0d976 100%);
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(250, 234, 161, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 234, 161, 0.6);
}

/* Leaderboard */
.leaderboard {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.4s both;
  display: none;
  position: relative;
  z-index: 20;
}

.leaderboard.visible {
  display: block;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--bg-light);
}

.leaderboard-header i {
  font-size: 32px;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

.leaderboard-header h2 {
  font-family: 'Butler', serif;
  color: var(--text-dark);
  font-size: 24px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--primary-green), var(--gold-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.leaderboard-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--bg-light);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.leaderboard-entry:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--gold-accent);
}

.leaderboard-entry.rank-1 {
  background: linear-gradient(135deg, #FFD700 0%, #FFF8DC 100%);
  border: 2px solid #FFD700;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.leaderboard-entry.rank-1::before {
  content: '👑';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  opacity: 0.3;
}

.leaderboard-entry.rank-2 {
  background: linear-gradient(135deg, #C0C0C0 0%, #F0F0F0 100%);
  border: 2px solid #C0C0C0;
  box-shadow: 0 4px 16px rgba(192, 192, 192, 0.3);
}

.leaderboard-entry.rank-3 {
  background: linear-gradient(135deg, #CD7F32 0%, #FFE4C4 100%);
  border: 2px solid #CD7F32;
  box-shadow: 0 4px 16px rgba(205, 127, 50, 0.3);
}

.leaderboard-entry .rank {
  font-weight: 700;
  font-size: 20px;
  min-width: 50px;
  text-align: center;
  color: var(--text-dark);
}

.leaderboard-entry.rank-1 .rank {
  color: #DAA520;
  font-size: 24px;
}

.leaderboard-entry.rank-2 .rank {
  color: #808080;
  font-size: 22px;
}

.leaderboard-entry.rank-3 .rank {
  color: #B87333;
  font-size: 22px;
}

.leaderboard-entry .time {
  font-weight: 600;
  font-size: 18px;
  color: var(--primary-green);
  min-width: 80px;
  text-align: center;
}

.leaderboard-entry .moves {
  font-size: 14px;
  color: #666;
  min-width: 90px;
  text-align: center;
}

.leaderboard-entry .stars {
  font-size: 16px;
  min-width: 80px;
  text-align: right;
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

/* Responsive Design */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats-bar {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }

  .stat-item {
    justify-content: center;
  }

  .stat-item::after {
    display: none;
  }

  .leaderboard-entry {
    flex-wrap: wrap;
    gap: 8px;
  }

  .game-header > h1 {
    font-size: 22px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.modal-close i {
  color: #333;
  font-size: 18px;
}

.modal-header {
  background: linear-gradient(135deg, #c25a38 0%, #d4704f 50%, #e68a66 100%);
  padding: 50px 30px 30px;
  text-align: center;
  border-radius: 24px 24px 0 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.modal-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.2), transparent 70%);
  pointer-events: none;
}

/* Celebration particles */
.modal-header .particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #FFD700;
  border-radius: 50%;
  pointer-events: none;
  animation: particle-fall 3s infinite;
  opacity: 0;
}

@keyframes particle-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translateY(400px) rotate(360deg);
  }
}

.modal-header .particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  background: #FFD700;
}

.modal-header .particle:nth-child(2) {
  left: 20%;
  animation-delay: 0.5s;
  background: #FF6B6B;
}

.modal-header .particle:nth-child(3) {
  left: 30%;
  animation-delay: 1s;
  background: #4ECDC4;
}

.modal-header .particle:nth-child(4) {
  left: 40%;
  animation-delay: 1.5s;
  background: #95E1D3;
}

.modal-header .particle:nth-child(5) {
  left: 50%;
  animation-delay: 2s;
  background: #FFD700;
}

.modal-header .particle:nth-child(6) {
  left: 60%;
  animation-delay: 0.3s;
  background: #FF6B6B;
}

.modal-header .particle:nth-child(7) {
  left: 70%;
  animation-delay: 0.8s;
  background: #4ECDC4;
}

.modal-header .particle:nth-child(8) {
  left: 80%;
  animation-delay: 1.3s;
  background: #95E1D3;
}

.modal-header .particle:nth-child(9) {
  left: 90%;
  animation-delay: 1.8s;
  background: #FFD700;
}

.trophy-icon {
  font-size: 80px;
  color: #FFD700;
  animation: trophyBounce 1.5s ease infinite;
  filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 0.5));
  position: relative;
  z-index: 1;
  display: inline-block;
}

@keyframes trophyBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  25% {
    transform: translateY(-15px) scale(1.1);
  }

  50% {
    transform: translateY(-8px) scale(1.05);
  }

  75% {
    transform: translateY(-12px) scale(1.08);
  }
}

.modal-header h2 {
  font-family: 'Butler', serif;
  font-size: 38px;
  margin: 16px 0 8px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}

.modal-subtitle {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.final-stats {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px 20px;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.final-stats .stat {
  text-align: center;
  padding: 8px 16px;
  position: relative;
}

.final-stats .stat::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.final-stats .stat:last-child::after {
  display: none;
}

.final-stats .stat-label {
  font-size: 11px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #FFD700;
}

.final-stats .stat-value {
  font-size: 32px;
  font-weight: 800;
  margin-top: 4px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Raleway', sans-serif;
}

.modal-body {
  padding: 40px 30px 30px;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.form-intro {
  text-align: center;
  color: #333;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
  padding: 0 20px;
}

/* Monthly Draw Notice */
.form-draw-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(250, 234, 161, 0.45) 0%, rgba(250, 234, 161, 0.15) 100%);
  border: 1px solid rgba(200, 100, 62, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin: -16px auto 28px;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  text-align: left;
}

.form-draw-notice i {
  color: var(--primary-green);
  font-size: 18px;
  flex-shrink: 0;
}

/* Lead Form Styles */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e9ecef;
}

.section-title {
  font-family: 'Butler', serif;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-accent);
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #5C5C5C;
  margin-bottom: 8px;
}

.required {
  color: #dc3545;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Raleway', sans-serif;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 3px rgba(250, 234, 161, 0.2);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.checkbox-group {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: #5C5C5C;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.form-actions .btn {
  min-width: 150px;
}

@media (max-width: 640px) {
  /* Navbar Mobile */
  .navbar {
    padding: 16px;
  }

  .logo img {
    height: 48px;
  }

  .home-button {
    width: 40px;
    height: 40px;
  }

  /* Main Container Mobile */
  .container {
    padding: 4px 10px 16px 10px;
  }

  /* Game Header Mobile */
  .game-header {
    padding: 16px 12px;
    margin: 4px auto 10px auto;
    border-radius: 16px;
  }

  .game-header > h1 {
    font-size: 22px;
    margin: 8px 0;
  }

  .game-header p {
    font-size: 13px;
    margin-bottom: 14px;
  }

  /* Promo Banner Mobile */
  .promo-banner {
    padding: 10px 12px;
    margin-bottom: 14px;
  }

  .promo-banner .promo-headline {
    font-size: 15px;
  }

  .promo-banner .promo-text {
    font-size: 12px;
  }

  .form-draw-notice {
    font-size: 12px;
    padding: 10px 12px;
    margin: -20px auto 24px;
  }

  /* Stats Bar Mobile - Fix overflow */
  .stats-bar {
    padding: 10px 6px;
    max-width: 100%;
    gap: 2px;
    border-radius: 10px;
  }

  .stat-item {
    padding: 0 4px;
    min-width: 0;
    flex: 1;
    gap: 4px;
    font-size: 12px;
  }

  .stat-item i {
    font-size: 13px;
  }

  .stat-item span {
    min-width: 0;
    font-size: 12px;
  }

  #rating {
    min-width: 0;
    gap: 2px;
  }

  #rating i {
    font-size: 11px;
  }

  /* Game Board Mobile */
  .game-board {
    padding: 16px 12px;
    margin: 4px auto 14px auto;
    border-radius: 16px;
  }

  .cards-grid {
    gap: 10px;
    margin-bottom: 20px;
  }

  /* Modal Mobile */
  .modal-content {
    margin: 10px;
    max-height: 95vh;
  }

  .modal-header {
    padding: 30px 16px 20px;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .trophy-icon {
    font-size: 48px;
  }

  .modal-body {
    padding: 20px 16px 16px;
  }

  .form-section {
    padding: 14px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .final-stats {
    gap: 12px;
    padding: 14px 10px;
  }

  .final-stats .stat::after {
    display: none;
  }

  .final-stats .stat-value {
    font-size: 22px;
  }
}

/* Footer Styles */
.footer {
  background-color: var(--primary-green);
  position: relative;
  z-index: 5;
  margin-top: 80px;
  font-family: 'Raleway', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1.8fr 2.5fr 1.2fr;
    gap: 32px;
  }
}

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

@media (min-width: 768px) {
  .footer-column {
    align-items: flex-start;
  }
}

.footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: 16px;
}

.footer-title {
  font-family: 'Butler', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-address {
  color: #D0D0D0;
  font-size: 14px;
  line-height: 1.6;
  font-style: normal;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-address {
    text-align: left;
  }
}

.footer-contact {
  color: #D0D0D0;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-contact {
    text-align: left;
  }
}

.footer-contact p {
  margin-bottom: 8px;
}

.footer-link {
  color: #D0D0D0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #BDAE80;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: rgba(250, 234, 161, 0.9);
  transform: translateY(-2px);
}

.social-icon i {
  color: var(--primary-green);
  font-size: 20px;
}

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

.footer-bottom-text {
  text-align: center;
  font-size: 13px;
  color: #BDBDBD;
}

.footer-bottom-text p {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .footer-container {
    padding: 32px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
