@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Inter:wght@400;500;600&family=Nunito:wght@400;700&family=Space+Mono:wght@700&display=swap');

:root {
  --c-festival-red: #D4281C;
  --c-royal-blue: #00529B;
  --c-festival-amber: #E88A00;
  --c-welsh-green: #006B3F;
  --c-yorkshire-purple: #5C2D91;
  --c-bunting-cream: #FDF8F0;
  --c-festival-teal: #007A87;
  --c-warm-charcoal: #2D2A26;
  --c-yorkshire-stone: #9E8E78;
  --c-bunting-pink: #E85D8A;

  --f-heading: 'Fredoka One', cursive;
  --f-body: 'Nunito', sans-serif;
  --f-ui: 'Inter', sans-serif;
  --f-mono: 'Space Mono', monospace;
}

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

body {
  font-family: var(--f-body);
  background-color: var(--c-bunting-cream);
  color: var(--c-warm-charcoal);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-heading);
  font-weight: 400;
  color: var(--c-festival-red);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
}

h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-family: var(--f-body);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 20px;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-width: 120px;
}

.btn:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary-red {
  background-color: var(--c-festival-red);
  color: #fff;
}

.btn-primary-amber {
  background-color: var(--c-festival-amber);
  color: #1A1816;
}

.btn-secondary {
  background-color: transparent;
  color: var(--c-festival-red);
  border: 2px solid var(--c-festival-red);
}

.btn-blue {
  background-color: var(--c-royal-blue);
  color: #fff;
}

.btn-green {
  background-color: var(--c-welsh-green);
  color: #fff;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


.disclaimer-banner {
  background-color: rgba(212, 40, 28, 0.85);
  color: white;
  text-align: center;
  padding: 6px;
  font-family: var(--f-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}


.site-header {
  background-color: #fff;
  border-bottom: 2px solid var(--c-yorkshire-stone);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area a {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--f-heading);
  font-size: 24px;
  color: var(--c-festival-red);
}

.logo-subtitle {
  font-family: var(--f-ui);
  font-size: 11px;
  color: var(--c-yorkshire-stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: -5px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 15px;
  color: var(--c-warm-charcoal);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--c-festival-red);
}

.header-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.token-balance {
  font-family: var(--f-mono);
  color: var(--c-festival-amber);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--c-warm-charcoal);
  padding: 4px 12px;
  border-radius: 12px;
}


.site-footer {
  background-color: var(--c-warm-charcoal);
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 60px;
}

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

.footer-col h4 {
  color: var(--c-festival-amber);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-family: var(--f-ui);
  font-size: 14px;
  color: #ddd;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  font-size: 12px;
  color: var(--c-yorkshire-stone);
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.footer-badges img {
  height: 30px;
  filter: grayscale(1) brightness(2);
  opacity: 0.7;
}


@keyframes flutter {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-3px) rotate(2deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.bunting-line {
  width: 100%;
  height: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="30" viewBox="0 0 60 30"><polygon points="0,0 30,0 15,30" fill="%23D4281C"/><polygon points="30,0 60,0 45,30" fill="%2300529B"/></svg>');
  background-repeat: repeat-x;
  animation: flutter 3s infinite ease-in-out;
}


.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--c-warm-charcoal);
  transition: all 0.3s;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 24px;
  }

  .join-btn {
    display: none;
  }

  .header-inner {
    position: relative;
    z-index: 100;
  }

  .slot-machine,
  .roulette-board,
  .poker-table {
    padding: 15px;
  }

  .poker-table {
    border-width: 10px;
  }

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

  .controls {
    flex-direction: column;
    gap: 10px;
  }

  h1 {
    font-size: 28px;
  }

  .reels-container {
    gap: 5px;
    padding: 10px;
  }

  .reel {
    font-size: 40px;
    height: 80px;
  }

  .reel-inner {
    line-height: 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-badges {
    flex-wrap: wrap;
  }
}


#gbw-modal,
#gbw-form-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#gbw-modal.active,
#gbw-form-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background: var(--c-bunting-cream);
  padding: 40px;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  border: 4px solid var(--c-festival-red);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  color: var(--c-festival-red);
  margin-bottom: 15px;
}

.modal-content p {
  color: var(--c-warm-charcoal);
  margin-bottom: 25px;
}


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

.region-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.region-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.region-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: transparent;
}

.card-england::before {
  background: var(--c-festival-red);
}

.card-scotland::before {
  background: var(--c-royal-blue);
}

.card-wales::before {
  background: var(--c-welsh-green);
}

.card-ni::before {
  background: var(--c-bunting-pink);
}

.card-yorkshire::before {
  background: var(--c-yorkshire-purple);
}

.card-england h3 {
  color: var(--c-festival-red);
}

.card-scotland h3 {
  color: var(--c-royal-blue);
}

.card-wales h3 {
  color: var(--c-welsh-green);
}

.card-ni h3 {
  color: var(--c-bunting-pink);
}

.card-yorkshire h3 {
  color: var(--c-yorkshire-purple);
}

.slogan {
  font-size: 13px;
  font-style: italic;
  margin-bottom: 25px;
  color: var(--c-yorkshire-stone);
  flex-grow: 1;
}

.crest {
  width: 120px;
  height: 120px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.15));
}

.crest-0 {
  background-image: url('../assets/crest_england.png');
}

.crest-1 {
  background-image: url('../assets/crest_scotland.png');
}

.crest-2 {
  background-image: url('../assets/crest_wales.png');
}

.crest-3 {
  background-image: url('../assets/crest_nireland.png');
}

.crest-4 {
  background-image: url('../assets/crest_yorkshire.png');
}

.leaderboard-container {
  background: #fff;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
  max-width: 800px;
  margin: 0 auto;
}

.leaderboard-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--c-warm-charcoal);
}

.leaderboard-table {
  width: 100%;
  text-align: left;
  border-collapse: separate;
  border-spacing: 0 10px;
  font-family: var(--f-ui);
}

.leaderboard-table th {
  padding: 15px 20px;
  background: var(--c-bunting-cream);
  color: var(--c-warm-charcoal);
  font-weight: 600;
}

.leaderboard-table th:first-child {
  border-radius: 10px 0 0 10px;
}

.leaderboard-table th:last-child {
  border-radius: 0 10px 10px 0;
}

.leaderboard-table td {
  padding: 20px;
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.leaderboard-table td:first-child {
  border-left: 1px solid #eee;
  border-radius: 10px 0 0 10px;
  font-family: var(--f-heading);
  font-size: 18px;
  color: var(--c-festival-red);
}

.leaderboard-table td:last-child {
  border-right: 1px solid #eee;
  border-radius: 0 10px 10px 0;
}