/* Base */
:root {
  --bg-dark: #000000;
  --bg-orange: #ff7a00;
  --header-bg: #111111;
  --text-light: #f5f5f5;
  --text-dark: #111111;
  --muted: #b3b3b3;
  --accent: #ff7a00;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  color: var(--text-light);
  background: var(--bg-dark);
}
img { max-width: 100%; display: block; }

.container {
  width: min(1600px, 80%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto auto 1fr; /* burger | brand | nav */
  align-items: center;
  gap: 16px;
  position: relative;
}
.logo {
  width: 55px;
  height: 55px;
  background: var(--accent);
  display: inline-block;
}
/* Image logo override */
.logo-img { width: 55px; height: 55px; object-fit: contain; display: block; }

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-name { font-size: 14px; }

.site-nav { justify-self: end; }

/* Nav */
.nav-list { display: flex; gap: 36px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-link { color: var(--text-light); text-decoration: none; font-weight: 700; letter-spacing: .05em; }
.nav-link:hover, .nav-link:focus-visible { color: var(--accent); outline: none; }

/* Panels */
.site-main { display: block; padding-top: var(--header-h); }
.panel {
  min-height: calc(100dvh - var(--header-h));
  display: block;
  padding: 48px 0 72px;
  scroll-margin-top: var(--header-h);
  position: relative;
}

/* Section backgrounds */
.panel-home {
  background: url('assets/main_section.png') center/cover no-repeat;
  color: #fff;
}
.panel-our-game {
  background: url('assets/follow_us.png') center/cover no-repeat, var(--bg-dark);
  color: var(--text-light);
}
.panel-about-us {
  background: url('assets/about_us.png') center/cover no-repeat;
  color: #fff;
}
.panel-contact-us {
  background: url('assets/join.png') center/cover no-repeat;
  color: #fff;
}

/* Overlay utilities */
.overlay {
  position: absolute;
  padding: clamp(12px, 2vw, 24px);
}
.center-top { top: clamp(24px, 10vh, 120px); left: 50%; transform: translateX(-50%); text-align: center; }
.top-left { top: clamp(16px, 6vw, 64px); left: clamp(16px, 6vw, 64px); }
.top-right { top: clamp(16px, 6vw, 64px); right: clamp(16px, 6vw, 64px); text-align: right; }
.bottom-left { bottom: clamp(16px, 6vw, 64px); left: clamp(16px, 6vw, 64px); }
.bottom-right { bottom: clamp(16px, 6vw, 64px); right: clamp(16px, 6vw, 64px); text-align: right; }

/* Hero title */
.hero-title {
  margin: 0;
  font-size: clamp(36px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

/* About copy blocks */
.about-copy { max-width: 600px; }
.about-copy h2 { margin: 0 0 8px; font-size: clamp(24px, 3.5vw, 40px); }
.about-copy p { margin: 0; line-height: 1.7; width: 100%; font-size: clamp(18px, 2.2vw, 22px); }

/* Small title variant */
.title-sm { margin: 0 0 8px; font-size: clamp(22px, 3.5vw, 32px); text-transform: uppercase; letter-spacing: .06em; }

/* Panel-specific overlay tightening (bring pairs closer diagonally) */
.panel-about-us .top-left { top: 15%; left: 12%; }
.panel-about-us .bottom-right { bottom: 15%; right: 12%; }
.panel-contact-us .top-right {
  top: 18%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}
.panel-contact-us .bottom-left {
  top: calc(18% + 30vh);
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
}
.panel-contact-us .title-sm { font-size: clamp(40px, 6vw, 64px); }
.panel-contact-us .tg-icon { width: 64px; height: 64px; }
.panel-contact-us .contact-link { gap: 14px; padding: 12px 16px; }

/* Content */
.title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  margin: 8px 0 16px;
}
.lead { color: var(--muted); max-width: 70ch; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.7; }

/* Larger base paragraph size for section content */
.content p { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.7; }

/* Our Game CTA */
.cta-row { margin-top: 24px; display: flex; justify-content: center; }
.cta-btn {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: clamp(18px, 3.2vw, 26px);
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,122,0,.65);
  background: linear-gradient(90deg, rgba(255,122,0,.28), rgba(255,255,255,.08));
  box-shadow: 0 8px 30px rgba(255,122,0,.25), inset 0 0 0 1px rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  transform: translateZ(0);
}
.cta-btn:hover { background: linear-gradient(90deg, rgba(255,122,0,.38), rgba(255,255,255,.14)); transform: translateY(-1px); }
.cta-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  grid-column: span 4;
}
.card h2 { margin: 0 0 8px; font-size: 20px; }
.card p, .card li { color: #d2d2d2; }
.card ul { padding-left: 18px; margin: 8px 0 0; }

/* Contact */
.content-contact .title { color: var(--text-dark); }
.contact-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  text-decoration: none;
  background: rgba(0,0,0,0.06);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
}
.contact-link:hover { background: rgba(0,0,0,0.1); }
.tg-icon { display: block; }
.contact-email { margin-top: 14px; }
.contact-email a { color: var(--text-dark); }

/* Contact panel theme override (white on image) */
.panel-contact-us .contact-link {
  color: #fff;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.35);
}
.panel-contact-us .contact-link:hover { background: rgba(0,0,0,0.45); }
.panel-contact-us .contact-email a { color: #fff; }
.panel-contact-us .contact-email,
.panel-contact-us .contact-email a { font-size: clamp(22px, 3vw, 28px); }

/* Mobile menu */
[hidden] { display: none !important; }
.burger {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  display: none; /* shown on mobile */
  align-items: center; justify-content: center;
  flex-direction: column; /* stack bars */
  gap: 5px; /* clear visual separation */
  cursor: pointer;
  color: var(--text-light);
}
.burger-bar { width: 26px; height: 3px; background: currentColor; display: block; border-radius: 2px; }
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--header-bg);
  display: grid;
  place-items: center;
  z-index: 2000;
}
.mobile-close {
  position: absolute;
  top: 16px;
  left: 16px;
  appearance: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  color: var(--accent);
  font-size: 32px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mobile-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mobile-nav { display: flex; flex-direction: column; gap: 28px; align-items: center; }
.mobile-link { color: #fff; text-decoration: none; font-weight: 800; font-size: clamp(24px, 6vw, 40px); letter-spacing: .06em; }
.mobile-link:hover, .mobile-link:focus-visible { color: var(--accent); outline: none; }
.no-scroll { overflow: hidden; }

/* Footer */
.site-footer {
  background: #0e0e0e;
  color: #9a9a9a;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer .container {
  height: auto;
}

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  min-height: 84px;
}
.footer-left { justify-self: start; }
.footer-center { justify-self: center; text-align: center; }
.footer-right { justify-self: end; text-align: right; }

.footer-title { color: var(--text-light); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 16px; }
.footer-email { color: var(--text-light); text-decoration: none; opacity: 0.95; }
.footer-email:hover { color: var(--accent); }
.footer-brand { color: var(--text-light); font-weight: 800; font-size: 18px; letter-spacing: .04em; }
.footer-address { color: var(--text-light); font-weight: 400; font-size: 12px; letter-spacing: .04em; }
.footer-tg { color: var(--text-light); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer-tg:hover { color: var(--accent); }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; row-gap: 12px; text-align: center; }
  .footer-left, .footer-right { justify-self: center; text-align: center; }
}

/* Responsive */
@media (max-width: 960px) {
  .card { grid-column: span 6; }
}
@media (max-width: 640px) {
  .header-inner { gap: 8px; }
  .grid { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 6; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .burger { display: inline-flex; }
  .brand-name { font-size: 12px; }
  .container { width: 92%; }
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .burger { justify-self: start; }
  .brand { justify-self: center; }
  .about-copy { width: 90%; max-width: none; }
  .top-left { top: 72px; left: 5%; right: 5%; }
  .bottom-right { bottom: 72px; left: 5%; right: 5%; text-align: left; }
  .panel-contact-us .top-right { top: 96px; left: 50%; right: auto; transform: translateX(-50%); text-align: center; }
  .panel-contact-us .bottom-left { top: calc(96px + 32vh); left: 50%; right: auto; bottom: auto; transform: translateX(-50%); text-align: center; }
  .panel-contact-us .overlay { position: static; left: auto; right: auto; top: auto; bottom: auto; transform: none; max-width: 90%; margin: 0 auto; }
  .panel-contact-us .overlay + .overlay { margin-top: 20px; }
  .panel-contact-us .title-sm { font-size: clamp(18px, 5.5vw, 22px); white-space: nowrap; }
  .panel-contact-us .contact-link { margin-bottom: 16px; }
  .panel-home .center-top { top: 18vh; transform: translateX(-50%); }
  .panel-home .hero-title { font-size: clamp(48px, 14vw, 140px); }
  .panel-about-us .overlay { position: static; left: auto; right: auto; top: auto; bottom: auto; transform: none; padding: 12px 5%; }
  .panel-our-game .title { text-align: center; font-size: clamp(72px, 12vw, 102px); }
  .panel-our-game .cta-row { margin-top: 12vh; }
  .panel-our-game .cta-btn { font-size: clamp(22px, 7vw, 34px); padding: 20px 44px; }
}

.panel-our-game .cta-row { margin-top: clamp(24px, 6vh, 64px); }

@media (min-width: 769px) {
  .brand { justify-self: start; }
  .header-inner { gap: 40px; }
  .site-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .panel-our-game .container.content {
    min-height: calc(100dvh - var(--header-h) - 120px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
  }
  .panel-our-game .title { font-size: clamp(88px, 10vw, 160px); }
  .panel-our-game .cta-row { justify-content: flex-end; margin-top: 24px; }
  .panel-our-game .cta-btn { font-size: clamp(24px, 2.6vw, 40px); padding: 22px 44px; }
}
