/* GLOBAL VARIABLES & RESETS */
:root {
  --bg: #1c1a24;
  --bgc: #25223a;
  --bgd: #13111c;
  --pr: #e8a940;
  --fg: #f4f0e8;
  --fm: #9993b0;
  --bd: rgba(255,255,255,.09);
  --gw: 0 0 80px rgba(232,169,64,.35);
  --gh: linear-gradient(180deg,transparent 0%,rgba(28,26,36,.55) 55%,#1c1a24 100%);
  --gc: linear-gradient(180deg,transparent 35%,rgba(13,11,20,.95) 100%);
  --fd: 'Oswald','Impact',system-ui,sans-serif;
  --fb: 'Inter',system-ui,sans-serif;
  --tr: .4s cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bgd); height: 100%; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
main {
  min-height: calc(100vh - 450px);
}
h1, h2, h3, h4 { font-family: var(--fd); letter-spacing: .03em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* UTILITIES */
.con { max-width: 1400px; margin: 0 auto; padding: 0 48px; }
.tp { color: var(--pr); }
.tl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .35em; color: var(--pr); }
.rv { opacity: 0; transform: translateY(40px); transition: opacity .8s ease-out, transform .8s ease-out; }
.rv.in { opacity: 1; transform: translateY(0); }
.shd { text-align: center; margin-bottom: 48px; }
.shd h2 { font-size: clamp(40px,6vw,72px); text-transform: uppercase; margin-top: 10px; }
.shd p { margin-top: 12px; font-size: 13px; color: var(--fm); }
.sh { position: relative; overflow: hidden; }
.sh::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.15),transparent);
  transform: translateX(-100%) skewX(-20deg);
  transition: none;
}
.sh:hover::after { animation: shine .8s ease-out; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--fd);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  border-radius: 999px;
  transition: var(--tr);
}
.bp { background: var(--pr); color: #0e0b00; }
.bp:hover { background: #f5be5a; box-shadow: var(--gw); }
.bo { border: 1px solid rgba(255,255,255,.3); color: var(--fg); }
.bo:hover { border-color: var(--pr); color: var(--pr); }

@keyframes fi { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shine { 0% { transform: translateX(-100%) skewX(-20deg); } 100% { transform: translateX(200%) skewX(-20deg); } }

/* NAV */
#nav {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 72px; /* Fixed height to prevent gaps */
  display: flex;
  align-items: center;
  transition: background .5s, border-bottom .5s;
  background: linear-gradient(to bottom, rgba(28,26,36,.7), transparent);
}
#nav.sc, #nav.solid {
  background: rgba(28,26,36,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd);
}
.ni { width: 100%; max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; }
.nl { font-family: var(--fd); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.nls { display: flex; align-items: center; gap: 32px; list-style: none; }
.nls a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(244,240,232,.75);
  position: relative;
  transition: color .3s;
}
.nls a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--pr);
  transition: width .3s;
}
.nls a:hover, .nls a.ac { color: var(--pr); }
.nls a:hover::after, .nls a.ac::after { width: 100%; }
.na { display: flex; align-items: center; gap: 12px; }
.nsi {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(244,240,232,.65);
  transition: color .3s;
}
.nsi:hover { color: var(--pr); }
.nct {
  background: rgba(232, 169, 64, 0.1);
  color: var(--pr);
  border: 1px solid rgba(232, 169, 64, 0.4);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: all 0.3s ease;
}
.nct:hover { 
  background: rgba(232, 169, 64, 0.2); 
  border-color: var(--pr);
  box-shadow: 0 0 15px rgba(232, 169, 64, 0.3); 
  color: var(--pr); 
}

/* MOBILE NAV */
.hbg { display: none; flex-direction: column; gap: 5px; padding: 6px; position: relative; z-index: 1000; }
.hbg span { width: 24px; height: 2px; background: var(--fg); border-radius: 2px; transition: .3s; }
.hbg.op span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hbg.op span:nth-child(2) { opacity: 0; }
.hbg.op span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mob {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 80px 32px 40px;
  background: rgba(13, 11, 28, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  z-index: 999;
  transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}
.mob::before {
  content: 'RURAL GAMES';
  display: block;
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 700;
  color: var(--pr);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--pr);
}
.mob.op { right: 0; }
.mob a { display: block; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--fg); transition: color .3s; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mob a:hover { color: var(--pr); }
.mob .nct { text-align: center; padding: 12px 20px; border: 1px solid rgba(232, 169, 64, 0.4); margin-top: 12px; }

@media(max-width: 900px) {
  .nls, .na { display: none; }
  .hbg { display: flex; }
  .con { padding: 0 24px; }
  .ni { padding: 0 24px; }
}
@media(max-width: 480px) {
  .con { padding: 0 16px; }
  .ni { padding: 0 16px; }
  .fbt { flex-direction: column; justify-content: center; text-align: center; gap: 16px; }
  .fll { justify-content: center; }
}

/* FOOTER */
footer { 
  border-top: 1px solid var(--bd); 
  background: #13111c; 
  padding: 80px 0 16px; 
  text-align: left; 
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--pr), #ff6b6b, #4CAF50, #00BCD4, var(--pr));
  background-size: 200% 100%;
  animation: bgScroll 5s linear infinite;
}
@keyframes bgScroll {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.ftg { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 64px; margin-bottom: 64px; width: 100%; }
.fbl { flex: 2; min-width: 300px; }
.fbl .logo { font-family: var(--fd); font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 20px; }
.fbl p { color: rgba(244,240,232,.65); font-size: 14px; line-height: 1.6; max-width: 300px; margin-bottom: 32px; }
.fso { display: flex; flex-direction: row; gap: 12px; justify-content: flex-start; }
.fsb { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: 13px; color: var(--fg); transition: var(--tr); }
.fsb:hover { background: var(--pr); color: #0e0b00; transform: translateY(-3px); }
.fcl { flex: 1; min-width: 140px; }
.fcl h4 { font-size: 16px; color: var(--fg); margin-bottom: 24px; }
.fcl ul { list-style: none; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.fcl a { font-size: 14px; color: rgba(244,240,232,.65); transition: color .3s; }
.fcl a:hover { color: var(--pr); }
.fbt { border-top: 1px solid var(--bd); padding-top: 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 12px; color: rgba(244,240,232,.5); width: 100%; }
.fll { display: flex; flex-direction: row; gap: 24px; flex-wrap: wrap; }
.fll a { transition: color .3s; }
.fll a:hover { color: var(--pr); }

@media(max-width: 900px) {
  .ftg { flex-direction: column; gap: 48px; }
}
