:root {
  --primary: #AA0000;
  --secondary: #00BF62;
  --accent: #FDDE5B;

  --ink: #201719;
  --muted: #6f6264;
  --paper: #fffaf2;
  --white: #ffffff;
  --cream: #fff4da;
  --soft-red: #fff0ef;
  --soft-green: #eafff4;
  --soft-yellow: #fff8d8;

  --border: rgba(32, 23, 25, 0.12);
  --shadow: 0 22px 70px rgba(32, 23, 25, 0.12);
  --shadow-soft: 0 14px 40px rgba(32, 23, 25, 0.09);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;

  --container: 1160px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(253, 222, 91, 0.26), transparent 34rem),
    radial-gradient(circle at 95% 12%, rgba(0, 191, 98, 0.14), transparent 30rem),
    var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(22px);
  background: rgba(255, 250, 242, 0.86);
  border-bottom: 1px solid rgba(32, 23, 25, 0.08);
}

.navbar {
  height: var(--header-height);
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 24px rgba(32, 23, 25, 0.08);
}

.brand-name {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.94rem;
  color: rgba(32, 23, 25, 0.76);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(170, 0, 0, 0.08);
  color: var(--primary);
  outline: none;
}

.nav-button {
  background: var(--ink) !important;
  color: var(--white) !important;
  box-shadow: 0 8px 18px rgba(32, 23, 25, 0.18);
}

.nav-button:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(32, 23, 25, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 0;
  filter: none;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.hero-shape-one {
  width: 86px;
  height: 86px;
  background: rgba(253, 222, 91, 0.48);
  top: 46%;
  left: -8px;
}

.hero-shape-two {
  width: 74px;
  height: 74px;
  background: rgba(0, 191, 98, 0.22);
  top: 54%;
  left: -24px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
  margin-left: 65px;
}

.hero-content {
  margin-left: 35px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  background: rgba(170, 0, 0, 0.08);
  border: 1px solid rgba(170, 0, 0, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero h1,
.section-heading h2,
.two-column h2,
.join-card h2,
.contact-grid h2 {
  margin: 18px 0;
  font-size: clamp(2.55rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.hero-subtitle,
.large-text,
.section-heading p,
.join-card p,
.contact-grid p {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.24rem);
  max-width: 380px;
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  border: 2px solid transparent;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.button-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(170, 0, 0, 0.22);
}

.button-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(0, 191, 98, 0.22);
}

.button-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border);
}

.button-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-logo-wrap {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 218, 0.88)),
    radial-gradient(circle at top right, rgba(253, 222, 91, 0.5), transparent 14rem);
  border: 1px solid var(--border);
}

.hero-logo {
  width: min(250px, 78%);
  border-radius: 26px;
  box-shadow: 0 20px 40px rgba(32, 23, 25, 0.08);
}

.highlight-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
}

.highlight-card h3 {
  margin: 0 0 4px;
  letter-spacing: -0.03em;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.highlight-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  border-radius: 15px;
  background: var(--white);
  overflow: hidden;
}

.highlight-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-card.yellow {
  background: var(--soft-yellow);
}

.highlight-card.green {
  background: var(--soft-green);
}

.highlight-card.red {
  background: var(--soft-red);
}

/* Shared sections */
.two-column {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 42px;
  align-items: start;
}

.two-column h2,
.section-heading h2,
.join-card h2,
.contact-grid h2 {
  font-size: clamp(2rem, 4.7vw, 4rem);
}

.mission-card {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  background: rgba(253, 222, 91, 0.45);
}

.mission-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.mission-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
}

.values-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.value-card,
.activity-card,
.team-card,
.social-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(32, 23, 25, 0.07);
}

.value-card {
  padding: 24px;
}

.value-card span {
  color: var(--primary);
  font-weight: 950;
}

.value-card h3,
.activity-card h3,
.team-card h3 {
  margin: 10px 0 8px;
  letter-spacing: -0.035em;
  font-size: 1.26rem;
}

.value-card p,
.activity-card p,
.team-card p {
  margin: 0;
  color: var(--muted);
}

.what-section {
  background:
    linear-gradient(180deg, rgba(255, 244, 218, 0.36), rgba(255, 250, 242, 0)),
    var(--paper);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading.centered p {
  margin-inline: auto;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.activity-card {
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.activity-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.red-bg {
  background: var(--soft-red);
}

.green-bg {
  background: var(--soft-green);
}

.yellow-bg {
  background: var(--soft-yellow);
}

.collaborations-block {
  margin-top: 34px;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(32, 23, 25, 0.07);
}

.collaborations-block h3 {
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  font-size: 1.45rem;
}

.collaborations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.collab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.collab-link:hover,
.collab-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(170, 0, 0, 0.25);
  outline: none;
}

.collab-logo {
  width: min(180px, 100%);
  max-height: 82px;
  object-fit: contain;
}

.collab-link span {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
}

/* Events */
.events-section {
  background:
    radial-gradient(circle at top right, rgba(170, 0, 0, 0.07), transparent 28rem),
    radial-gradient(circle at left center, rgba(0, 191, 98, 0.09), transparent 26rem);
}

.upcoming-showcase {
  margin-bottom: 30px;
  padding: 34px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(170, 0, 0, 0.1);
  background: linear-gradient(140deg, rgba(255, 250, 242, 0.96), rgba(249, 255, 250, 0.92));
  box-shadow: var(--shadow-soft);
}

.upcoming-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
}

.upcoming-intro {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  padding: 28px;
}

.upcoming-intro h3 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.upcoming-intro p {
  margin: 0;
  color: var(--muted);
}

.upcoming-loop {
  margin-top: 22px;
  border-radius: 20px;
  border: 1px solid rgba(170, 0, 0, 0.12);
  background: rgba(255, 240, 239, 0.58);
  padding: 14px 16px;
}

.upcoming-loop strong {
  display: block;
  font-size: 1.36rem;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.upcoming-loop p {
  margin-top: 4px;
}

.upcoming-discord {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.upcoming-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.upcoming-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: rgba(32, 23, 25, 0.18);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 16px;
  min-height: 126px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 16px 18px 16px 34px;
}

.timeline-dot {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 4px 10px rgba(32, 23, 25, 0.18);
}

.timeline-item.green .timeline-dot {
  background: #00a95d;
}

.timeline-item.yellow .timeline-dot {
  background: #eea900;
}

.timeline-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(170, 0, 0, 0.08);
}

.timeline-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-item.green .timeline-icon {
  background: rgba(0, 191, 98, 0.14);
}

.timeline-item.yellow .timeline-icon {
  background: rgba(253, 222, 91, 0.24);
}

.timeline-main {
  min-width: 0;
}

.timeline-date {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.timeline-item.green .timeline-date {
  color: #008f4f;
}

.timeline-item.yellow .timeline-date {
  color: #bd8500;
}

.timeline-item.cryptography .timeline-dot {
  background: #6b57e2;
}

.timeline-item.cryptography .timeline-date {
  color: #5d49c8;
}

.timeline-item.cryptography .timeline-icon {
  background: rgba(107, 87, 226, 0.14);
}

.timeline-item.spotlight .timeline-dot {
  background: #f0b000;
}

.timeline-item.spotlight .timeline-date {
  color: #bb8600;
}

.timeline-item.spotlight .timeline-icon {
  background: rgba(253, 222, 91, 0.3);
}

.timeline-item.coordination .timeline-dot {
  background: #68a88b;
}

.timeline-item.coordination .timeline-date {
  color: #3d7f62;
}

.timeline-item.coordination .timeline-icon {
  background: rgba(104, 168, 139, 0.18);
}

.timeline-item.ai .timeline-dot {
  background: #bf1f1f;
}

.timeline-item.ai .timeline-date {
  color: #a01212;
}

.timeline-item.ai .timeline-icon {
  background: rgba(170, 0, 0, 0.1);
}

.timeline-main h4 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.timeline-meta {
  border-left: 1px solid rgba(32, 23, 25, 0.12);
  padding-left: 14px;
}

.timeline-meta p {
  margin: 4px 0;
  font-weight: 760;
  color: var(--muted);
}

.timeline-meta span {
  color: var(--ink);
  font-weight: 900;
}

.upcoming-footer {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 191, 98, 0.2);
  background: linear-gradient(90deg, rgba(227, 247, 227, 0.92), rgba(226, 250, 233, 0.92));
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.upcoming-footer p {
  margin: 0;
  font-weight: 760;
}

.upcoming-footer a {
  color: #0a874a;
  font-weight: 900;
}

.upcoming-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.discord-symbol {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.webinar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.webinar-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.newest-webinar {
  grid-column: 1 / -1;
}

.newest-webinar .video-wrap {
  aspect-ratio: 16 / 8;
}

.newest-webinar .webinar-content h3 {
  font-size: 1.65rem;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--white);
}

.video-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
}

.video-fallback-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(32, 23, 25, 0.8);
  font-weight: 850;
  letter-spacing: 0.01em;
}

.webinar-content {
  padding: 24px;
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(0, 191, 98, 0.1);
  color: #057d43;
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.webinar-content h3 {
  margin: 14px 0 8px;
  font-size: 1.42rem;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.webinar-content p {
  color: var(--muted);
  margin: 0 0 16px;
}

.webinar-content a {
  color: var(--primary);
  font-weight: 900;
}

/* Resources page */
.resources-hero {
  min-height: calc(72vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: 72px;
  background:
    radial-gradient(circle at 12% 20%, rgba(170, 0, 0, 0.08), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(0, 191, 98, 0.1), transparent 24rem);
}

.resources-hero-card {
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.resources-hero-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.resources-hero-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  max-width: 880px;
}

.resources-home-link {
  margin-top: 24px;
}

.resources-archive-section {
  background:
    linear-gradient(180deg, rgba(255, 244, 218, 0.25), rgba(255, 250, 242, 0)),
    var(--paper);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resources-posters-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(170, 0, 0, 0.08), transparent 16rem),
    radial-gradient(circle at 88% 20%, rgba(0, 191, 98, 0.12), transparent 18rem),
    var(--white);
}

.posters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.poster-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(32, 23, 25, 0.07);
}

.poster-embed-wrap {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(32, 23, 25, 0.08);
  background: linear-gradient(135deg, rgba(255, 244, 218, 0.55), rgba(255, 255, 255, 0.96));
}

.poster-embed-wrap iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
}

.poster-card-content {
  display: grid;
  gap: 10px;
}

.poster-card-content h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.poster-card-content p {
  margin: 0;
  color: var(--muted);
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(32, 23, 25, 0.07);
}

.resource-card h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
}

.resource-card .button {
  margin-top: auto;
  width: fit-content;
}

.resources-coming-soon {
  background:
    radial-gradient(circle at 85% 12%, rgba(0, 191, 98, 0.11), transparent 24rem),
    radial-gradient(circle at 12% 45%, rgba(253, 222, 91, 0.2), transparent 22rem);
}

.resources-coming-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Games */
.resources-games-section {
  background:
    linear-gradient(180deg, rgba(255, 244, 218, 0.28), rgba(255, 250, 242, 0.05)),
    var(--white);
}

.game-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.game-main,
.sidebar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(32, 23, 25, 0.07);
}

.game-main {
  padding: 24px;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.game-eyebrow,
.sidebar-label {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-header h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.game-status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft-yellow);
  color: var(--ink);
  font-weight: 700;
}

.game-status.success {
  background: var(--soft-green);
  color: #04643b;
}

.game-status.warning {
  background: rgba(253, 222, 91, 0.25);
}

.game-status.error {
  background: var(--soft-red);
  color: #8d1010;
}

.wordle-board {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.wordle-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(var(--word-length, 5), minmax(0, 1fr));
}

.wordle-tile {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(32, 23, 25, 0.12);
  background: rgba(255, 250, 242, 0.95);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wordle-tile.green {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.wordle-tile.orange {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.wordle-tile.gray {
  background: rgba(32, 23, 25, 0.12);
  color: var(--ink);
}

.keyboard {
  display: grid;
  gap: 10px;
}

.keyboard-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyboard button {
  flex: 1 1 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.keyboard button:hover,
.keyboard button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(32, 23, 25, 0.08);
  outline: none;
}

.keyboard-actions button[data-key="Enter"],
.keyboard-actions button[data-key="Backspace"] {
  flex: 1 1 92px;
}

.game-sidebar {
  display: grid;
  gap: 16px;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.detail-card + .detail-card {
  margin-top: 12px;
}

.detail-label {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-value {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .game-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .game-main {
    padding: 18px;
  }

  .game-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .wordle-tile {
    min-height: 46px;
  }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.team-card {
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 2.45rem;
  font-weight: 950;
  color: white;
  box-shadow: 0 16px 30px rgba(32, 23, 25, 0.13);
  object-fit: cover;
}

.avatar-red {
  background: linear-gradient(135deg, #AA0000, #db5454);
}

.avatar-green {
  background: linear-gradient(135deg, #00BF62, #53dda0);
}

.avatar-yellow {
  color: var(--ink);
  background: linear-gradient(135deg, #FDDE5B, #fff3a7);
}

.team-role {
  color: var(--primary) !important;
  font-weight: 900;
  margin-bottom: 10px !important;
}

/* Join */
.join-section {
  padding-top: 60px;
}

.join-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 40px;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(253, 222, 91, 0.34), transparent 22rem),
    linear-gradient(135deg, #850000, var(--primary));
  box-shadow: 0 28px 76px rgba(170, 0, 0, 0.24);
  overflow: hidden;
}

.join-card .section-label {
  color: var(--ink);
  background: var(--accent);
  border-color: rgba(253, 222, 91, 0.7);
}

.join-card p {
  color: rgba(255, 255, 255, 0.82);
}

.join-card .button-secondary {
  background: var(--white);
  color: var(--ink);
}

/* Testimonials */
.testimonials-section {
  padding-top: 42px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-card {
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.testimonial-embed-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(32, 23, 25, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.testimonial-embed-wrap iframe {
  width: 100%;
  min-height: 470px;
  border: 0;
  display: block;
}

.testimonial-open {
  margin-top: 14px;
  width: fit-content;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  align-items: start;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.social-card {
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: rgba(170, 0, 0, 0.24);
  box-shadow: var(--shadow-soft);
}

.social-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.84rem;
}

.social-card strong {
  display: block;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

/* Footer */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-weight: 750;
}

.footer a {
  color: var(--primary);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid,
  .two-column,
  .contact-grid,
  .join-card {
    grid-template-columns: 1fr;
  }

  .values-grid,
  .activity-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    margin-left: 0;
  }

  .hero-grid {
    margin-left: 0;
  }

  .webinar-grid {
    grid-template-columns: 1fr;
  }

  .resources-grid,
  .posters-grid,
  .resources-coming-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .join-actions {
    margin-top: 0;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 74px;
  }

  .section {
    padding: 72px 0;
  }

  .brand-name {
    display: none;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 120;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 110;
    padding: calc(var(--header-height) + 24px) 20px 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    background:
      radial-gradient(circle at top left, rgba(253, 222, 91, 0.32), transparent 24rem),
      rgba(255, 250, 242, 0.98);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    justify-content: flex-start;
    width: 100%;
    min-height: 56px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    padding-left: 18px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 120;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-actions,
  .join-actions {
    flex-direction: column;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button {
    width: 100%;
  }

  .upcoming-showcase {
    padding: 22px;
  }

  .upcoming-layout {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 64px 1fr;
    padding-right: 16px;
  }

  .timeline-meta {
    grid-column: 2;
    border-left: 0;
    border-top: 1px solid rgba(32, 23, 25, 0.12);
    padding: 10px 0 0;
    margin-top: 4px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .collaborations-grid {
    grid-template-columns: 1fr;
  }

  .resources-grid,
  .posters-grid,
  .resources-coming-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    backdrop-filter: blur(20px);
    background: rgba(255, 250, 242, 0.98);
  }

  .navbar {
    width: min(1220px, calc(100% - 24px));
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  .hero h1,
  .two-column h2,
  .section-heading h2,
  .join-card h2,
  .contact-grid h2 {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .hero-subtitle,
  .large-text,
  .section-heading p,
  .join-card p,
  .contact-grid p {
    max-width: 100%;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .values-grid,
  .activity-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .mission-card,
  .upcoming-showcase,
  .join-card,
  .resources-hero-card {
    border-radius: 26px;
  }

  .upcoming-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo-wrap {
    min-height: 210px;
  }

  .hero-logo {
    width: min(210px, 82%);
  }
}