/* 5Gringos — dark, silver panther, fire accents */
:root {
  --bg: #0c0c10;
  --bg-2: #111117;
  --surface: #17171f;
  --surface-2: #1e1e28;
  --line: #2a2a36;
  --text: #f0eff5;
  --muted: #a3a2b3;
  --silver: #c9cad6;
  --fire: #ff4a3d;
  --ember: #ffb547;
  --radius: 16px;
  --wrap: 1160px;
  --nav-h: 72px;
  --font-display: "Bungee", "Arial Black", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.eyebrow {
  margin: 0 0 10px;
  color: var(--ember);
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.lead { color: var(--muted); max-width: 62ch; margin-top: 14px; font-size: 1.05rem; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--fire), #ff7a3d);
  color: #fff; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(255, 74, 61, .8);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255, 74, 61, .95); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--silver); box-shadow: none; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 16, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 56px; width: auto; }
.brand-badge {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--fire), var(--ember));
  font-family: var(--font-display); font-size: .95rem; color: #fff; transform: rotate(-6deg);
}
.brand-name { font-family: var(--font-display); font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 16px 18px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 88px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(620px 420px at 12% 18%, rgba(255, 74, 61, .26), transparent 60%),
    radial-gradient(520px 400px at 80% 45%, rgba(255, 181, 71, .12), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 40% 40%, #000 25%, transparent 72%);
          mask-image: radial-gradient(ellipse at 40% 40%, #000 25%, transparent 72%);
}
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero.has-emblem .hero-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); }
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.hero-copy > *:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 7rem); line-height: 1;
  margin: 4px 0 18px;
  white-space: nowrap;
  filter: drop-shadow(0 6px 30px rgba(255, 74, 61, .25));
}
.hero.has-emblem .hero-title { font-size: clamp(2.6rem, 7.4vw, 6.2rem); }
.hero-title .num,
.hero-title .rest { display: inline-block; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .num { background-image: linear-gradient(180deg, var(--ember), var(--fire)); transform: rotate(-8deg); margin-right: .04em; }
.hero-title .rest { background-image: linear-gradient(180deg, #ffffff 15%, var(--silver) 85%); }
.hero-tag { font-size: clamp(1.1rem, 2.3vw, 1.4rem); color: var(--muted); max-width: 40ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 52px; max-width: 640px; }
.stat { background: rgba(23, 23, 31, .72); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat span { color: var(--muted); font-size: .85rem; }
.countdown.is-live { color: var(--ember); }

.hero-emblem { position: relative; display: grid; place-items: center; }
.hero-emblem::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 74, 61, .35), rgba(255, 74, 61, 0) 65%);
  filter: blur(10px);
  animation: glow 5s ease-in-out infinite alternate;
}
.hero-emblem img {
  position: relative; width: 100%; max-width: 460px; height: auto;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .4)) drop-shadow(0 18px 40px rgba(0, 0, 0, .6));
  animation: prowl 7s ease-in-out infinite alternate, fade .9s ease both;
}
@keyframes glow { to { opacity: .55; transform: scale(1.08); } }
@keyframes prowl { to { transform: translateY(-12px); } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero.has-emblem .hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .hero.has-emblem .hero-title { font-size: clamp(2.6rem, 13vw, 5rem); }
  .hero-emblem { order: -1; justify-items: start; }
  .hero-emblem::before { width: 200px; left: 0; }
  .hero-emblem img { max-width: 190px; }
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .stat-wide { grid-column: 1 / -1; }
}

/* ---------- sections & cards ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid rgba(255, 255, 255, .05); }
.section-head { margin-bottom: 44px; }
@media (max-width: 600px) { .section { padding: 72px 0; } .section-head { margin-bottom: 32px; } }
.grid { display: grid; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* crew */
.crew-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.member { position: relative; overflow: hidden; padding: 22px; transition: transform .2s ease, border-color .2s ease; }
.member::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); }
.member:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); }
.avatar { width: 64px; height: 64px; margin-bottom: 16px; }
.avatar text { font-family: var(--font-display); }
.member-role { color: var(--c); font-weight: 700; font-size: .86rem; margin: 4px 0 14px; }
.member-meta { display: grid; gap: 6px; margin: 0 0 14px; font-size: .88rem; }
.member-meta div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.member-meta dt { color: var(--muted); }
.member-meta dd { margin: 0; font-weight: 600; text-align: right; }
.member-quote { color: var(--muted); font-style: italic; font-size: .9rem; }

/* games */
.games-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.game { overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.game:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); }
.game-art {
  aspect-ratio: 16 / 8; display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 16px),
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 90%, #fff 10%), transparent 70%),
    linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 25%, #0c0c10));
}
.game-art span { font-family: var(--font-display); font-size: 3rem; color: rgba(255, 255, 255, .92); text-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.game-body { padding: 18px 20px 22px; }
.game-body p { margin-top: 6px; color: var(--muted); font-size: .93rem; }
.tag {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--c) 75%, #fff); background: color-mix(in srgb, var(--c) 16%, transparent);
}

/* events */
.events { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .events { grid-template-columns: 1fr; } }
.featured {
  padding: 30px;
  background: linear-gradient(160deg, rgba(255, 74, 61, .2), var(--surface) 58%);
  border-color: rgba(255, 74, 61, .35);
}
@media (max-width: 600px) { .featured { padding: 22px; } }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, .6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(255, 181, 71, 0); }
}
.featured h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); margin: 14px 0 8px; }
.featured .when { color: var(--muted); margin-bottom: 24px; }
.cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cd div { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px; padding: 14px 4px; text-align: center; }
.cd b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 4vw, 2.1rem); font-variant-numeric: tabular-nums; }
.cd span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.cd.is-live b { color: var(--ember); }
.event-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.event { display: flex; gap: 18px; align-items: flex-start; padding: 18px; }
.date { flex: none; width: 62px; padding: 8px 0; text-align: center; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.date .mo { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; color: var(--fire); text-transform: uppercase; }
.date .dy { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.event .meta { color: var(--ember); font-size: .84rem; font-weight: 600; margin: 3px 0 6px; }
.event p:not(.meta) { color: var(--muted); font-size: .92rem; }
.empty { padding: 24px; color: var(--muted); text-align: center; }

/* clips */
.clips-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.clip { overflow: hidden; }
.clip-media { aspect-ratio: 16 / 9; background: #000; }
.clip-media iframe { width: 100%; height: 100%; border: 0; }
.clip-empty {
  display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted);
  background: repeating-linear-gradient(45deg, #14141b 0 12px, #18181f 12px 24px);
}
.play { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--fire); border: 2px solid var(--fire); background: rgba(255, 74, 61, .12); }
.play svg { margin-left: 3px; }
.clip-body { padding: 16px 18px 18px; }
.clip-body p { margin-top: 4px; color: var(--muted); font-size: .88rem; }

/* join */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; gap: 28px; } }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks li::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 181, 71, .14); color: var(--ember); font-weight: 800; font-size: .8rem;
}
.join-form { position: relative; display: grid; gap: 16px; padding: 28px; }
@media (max-width: 600px) { .join-form { padding: 20px; } }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field small { color: var(--muted); font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #6d6c7c; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fire); box-shadow: 0 0 0 3px rgba(255, 74, 61, .22); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a3a2b3' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea { min-height: 110px; resize: vertical; }
.join-form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.alert-ok { background: rgba(255, 181, 71, .12); color: var(--ember); border: 1px solid rgba(255, 181, 71, .35); }
.alert-error { background: rgba(255, 74, 61, .12); color: #ff8a80; border: 1px solid rgba(255, 74, 61, .4); }
.form-note { color: var(--muted); font-size: .8rem; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 48px; width: auto; opacity: .85; }
.socials { display: flex; flex-wrap: wrap; gap: 18px; }
.socials a { color: var(--muted); text-decoration: none; }
.socials a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
