/* Colors pulled from the Kyber Cantina logo */
:root {
  --bg: #06070c;
  --panel: #0f121b;
  --panel-2: #151926;
  --line: #232838;
  --cyan: #33c3ee;
  --gold: #f4a81d;
  --lime: #e0e31b;
  --green: #72bf44;
  --text: #e9edf5;
  --muted: #9aa3b8;
  --radius: 14px;
  --head: 'Chakra Petch', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; letter-spacing: .01em; }

/* Starfield */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 20px 30px, #fff9, transparent),
    radial-gradient(1px 1px at 120px 80px, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 200px 150px, #fffa, transparent),
    radial-gradient(1px 1px at 300px 40px, #fff5, transparent),
    radial-gradient(1px 1px at 380px 220px, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 60px 260px, #33c3ee99, transparent),
    radial-gradient(1px 1px at 260px 300px, #fff4, transparent);
  background-size: 420px 340px;
}
.stars::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, #33c3ee14, transparent 60%);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--head); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  color: #06070c; background: var(--gold);
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid var(--gold);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #f4a81d40; }
.btn-ghost { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn-ghost:hover { box-shadow: 0 8px 24px #33c3ee33; }
.btn-small { padding: .5em 1.1em; font-size: .85rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem clamp(1rem, 4vw, 3rem);
  background: #06070ccc; backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  color: var(--text); font-family: var(--head); font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a:not(.btn) {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: color .15s;
}
.nav-links a:not(.btn):hover { color: var(--cyan); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); }

/* Hero */
.hero {
  position: relative; text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute; left: 50%; top: 8%; width: 620px; height: 620px; translate: -50% 0;
  background: radial-gradient(circle, #33c3ee38, #33c3ee00 65%);
  filter: blur(10px); z-index: -1;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .55; scale: .92; } }
.hero-logo {
  width: min(460px, 82vw); height: auto; margin: 0 auto 2rem;
  filter: drop-shadow(0 12px 40px #000);
}
.eyebrow {
  font-family: var(--head); font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .22em; color: var(--gold);
  margin-bottom: .75rem;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); text-transform: uppercase; }
.hero h1 span { color: var(--cyan); }
.lede { max-width: 36rem; margin: 1.25rem auto 2rem; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { max-width: 1100px; margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) 1.5rem; }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section + .section { border-top: 1px solid var(--line); }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.venues h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.venues ul { list-style: none; display: grid; gap: .9rem; margin-bottom: 1.5rem; }
.venues li { padding-left: 1rem; border-left: 3px solid var(--cyan); line-height: 1.4; }
.venues li.type-store { border-left-color: var(--green); }
.venues li.type-con { border-left-color: var(--gold); }
.venues strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.05rem; }
.venues span, .venues .addr { display: block; color: var(--muted); font-size: .9rem; }
.venues .addr { text-decoration: none; }
.venues .addr::after { content: ' ↗'; color: var(--cyan); }
.venues .addr:hover { color: var(--cyan); text-decoration: underline; }
.about-text p { font-size: 1.1rem; margin-bottom: 1.1rem; }
.about-text strong { color: var(--lime); font-weight: 600; }

/* Timeline */
.timeline { list-style: none; position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--cyan), var(--gold), var(--lime), var(--green));
}
.timeline li { position: relative; padding-bottom: 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: calc(-2rem + 1px); top: 6px;
  width: 12px; height: 12px; rotate: 45deg;
  background: var(--bg); border: 2px solid var(--cyan);
}
.tl-year {
  font-family: var(--head); font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: .12em; font-size: .85rem;
}
.timeline h3 { font-size: 1.35rem; margin: .2rem 0 .4rem; }
.timeline p { color: var(--muted); max-width: 46rem; }

/* Games */
.games-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; }
.games-grid h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.games-grid p { color: var(--muted); margin-bottom: 1.25rem; }
.card-feature { border-color: #33c3ee55; box-shadow: 0 0 0 1px #33c3ee22, 0 20px 60px -30px #33c3ee66; }
.card-feature h3 { color: var(--cyan); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  font-family: var(--head); font-weight: 600; letter-spacing: .05em;
  padding: .4em 1em; border-radius: 999px;
  border: 1px solid var(--cyan); color: var(--cyan); background: #33c3ee12;
}
.chips-alt li { border-color: var(--green); color: var(--green); background: #72bf4412; }

/* Charity */
.charity-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: stretch; }
.charity-grid > * { min-width: 0; }
.charity-main { border-color: #f4a81d55; box-shadow: 0 0 0 1px #f4a81d22, 0 20px 60px -30px #f4a81d66; }
.charity-main h3, .charity-how h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.charity-main h3 { color: var(--gold); }
.charity-main p { color: var(--muted); margin-bottom: 1rem; }
.charity-main strong { color: var(--text); font-weight: 600; }
.btn-donate { margin-top: .5rem; }
.charity-how ul { list-style: none; display: grid; gap: 1.25rem; }
.charity-how li { padding-left: 1rem; border-left: 3px solid var(--green); }
.charity-how li.tourney { border-left-color: var(--gold); }
.charity-how li.cosplay { border-left-color: var(--cyan); }
.charity-how strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.charity-how span { color: var(--muted); font-size: .95rem; }

/* Leadership */
.crew-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: start; }
.crew { display: flex; gap: 1.5rem; align-items: flex-start; }
.hex {
  flex: none; width: 130px; height: 146px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--gold); display: grid; place-items: center;
}
.hex span, .hex img {
  width: calc(100% - 8px); height: calc(100% - 8px);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex span {
  background: radial-gradient(circle, #1d2232, #0b0d14);
  display: grid; place-items: center;
  font-family: var(--head); font-weight: 700; font-size: 2rem; color: var(--lime);
}
.hex img { object-fit: cover; object-position: center 30%; }
.crew-info { min-width: 0; padding-top: .35rem; }
.crew h3 { font-size: 1.35rem; }
.crew-alias { color: var(--cyan); font-family: var(--head); font-weight: 500; font-size: .95rem; }
.crew-role {
  color: var(--gold); font-family: var(--head); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .12em; margin-top: .2rem;
}
.crew-bio { color: var(--muted); font-size: .95rem; margin-top: .75rem; }

/* Schedule */
.schedule { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-title { font-size: 1.3rem; }
.cal-nav {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 1.4rem; line-height: 1;
}
.cal-nav:hover { border-color: var(--cyan); color: var(--cyan); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-bottom: .4rem; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--text); background: transparent; border: 1px solid transparent;
}
.cal-day.past { color: #5b6275; }
.cal-day.today { border-color: var(--line); background: var(--panel); }
.cal-day.has-event {
  cursor: pointer; font-weight: 600; color: #06070c; background: var(--cyan);
}
.cal-day.has-event.type-store { background: var(--green); }
.cal-day.has-event.type-con { background: var(--gold); }
.cal-day.has-event.past { opacity: .45; }
.cal-day.has-event:hover { transform: scale(1.06); }
.cal-day.selected { outline: 2px solid var(--lime); outline-offset: 2px; }

.upcoming-title { font-size: 1.3rem; margin-bottom: 1rem; }
.event-list { list-style: none; display: grid; gap: .85rem; }
.event {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); border-left: 4px solid var(--cyan);
}
.event.type-store { border-left-color: var(--green); }
.event.type-con { border-left-color: var(--gold); }
.event-date { text-align: center; min-width: 3.2rem; font-family: var(--head); }
.event-date .m { display: block; text-transform: uppercase; font-size: .8rem; color: var(--gold); letter-spacing: .1em; }
.event-date .d { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.event-info h4 { font-size: 1.1rem; }
.event-info p { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.event-info .type { font-size: .78rem; margin-left: .35rem; padding: .1em .5em; border-radius: 6px; background: var(--panel-2); }
.tag { font-style: normal; font-size: .7rem; padding: .15em .5em; border-radius: 6px; background: var(--lime); color: #06070c; vertical-align: middle; }
.empty { color: var(--muted); }
.note { margin-top: 1.25rem; color: var(--muted); font-size: .9rem; }
.note + .note { margin-top: .5rem; }

/* Hero "follow" row */
.follow { margin-top: 2.25rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.follow-label {
  font-family: var(--head); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em; color: var(--muted);
}
.follow-icons { display: flex; gap: .75rem; }
.follow-icons a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); background: var(--panel); border: 1px solid var(--line);
  transition: color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.follow-icons a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 6px 20px #33c3ee33; }
.follow-icons svg { width: 22px; height: 22px; }

/* Contact */
.section-sub { color: var(--muted); max-width: 38rem; margin-top: .75rem; font-size: 1.05rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.contact-card { text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.contact-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact-discord:hover { border-color: var(--cyan); }
.contact-icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: .75rem; }
.contact-discord .contact-icon { color: var(--cyan); }
.contact-card h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.contact-card p { color: var(--muted); margin-bottom: 1rem; }
.contact-link { font-family: var(--head); font-weight: 600; font-size: 1.1rem; color: var(--gold); overflow-wrap: anywhere; }
.contact-discord .contact-link { color: var(--cyan); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.socials a {
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-weight: 500;
  transition: border-color .15s, color .15s, transform .15s;
}
.socials a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; }

/* Footer */
.footer { text-align: center; padding: 2.5rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer .fine { font-size: .8rem; margin-top: .4rem; opacity: .7; }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .5rem 1.5rem 1.25rem;
    background: #06070cf2; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 1rem; }
  .about-grid, .games-grid, .schedule, .contact-grid, .charity-grid { grid-template-columns: 1fr; }
  .crew-grid { grid-template-columns: 1fr; }
}
.schedule > *, .about-grid > *, .games-grid > *, .contact-grid > * { min-width: 0; }
@media (max-width: 480px) {
  .card { padding: 1.1rem; }
  .cal-grid { gap: 2px; }
  .cal-day { font-size: .85rem; border-radius: 8px; }
  .crew { flex-direction: column; align-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
