/* ==========================================================================
   Oasis Gaming — Stylesheet
   Brand colors:
     --navy   #0F1733  deep navy background
     --cyan   #2DD4F0  electric cyan accent
     --blurple #5865F2 Discord blurple (Discord actions only)
     --white  #EAF4FF  near-white text
   ========================================================================== */

:root {
  --navy: #0F1733;
  --navy-deep: #0A0F24;
  --navy-raised: #16204A;
  --cyan: #2DD4F0;
  --blurple: #5865F2;
  --blurple-hover: #4752C4;
  --white: #EAF4FF;
  --white-dim: rgba(234, 244, 255, 0.72);
  --white-faint: rgba(234, 244, 255, 0.45);
  --border: rgba(234, 244, 255, 0.12);

  --font-heading: "Segoe UI", "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --radius: 14px;
  --nav-height: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--cyan); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--cyan);
  color: var(--navy-deep);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.9em;
}
.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-lede { color: var(--white-dim); font-size: 1.05rem; }

section { padding: 6.5rem 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1em 2em; font-size: 1rem; }

.btn--discord {
  background: var(--blurple);
  color: #fff;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35);
}
.btn--discord:hover { background: var(--blurple-hover); box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5); }

.btn--accent {
  background: var(--cyan);
  color: var(--navy-deep);
  box-shadow: 0 4px 18px rgba(45, 212, 240, 0.3);
}
.btn--accent:hover { box-shadow: 0 6px 24px rgba(45, 212, 240, 0.45); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

a[aria-disabled="true"].btn {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 51, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.nav__logo { border-radius: 6px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: 0.95rem;
  color: var(--white-dim);
  transition: color 0.2s ease;
  position: relative;
}
.nav__links a:hover { color: var(--cyan); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 15%, rgba(45, 212, 240, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 85%, rgba(88, 101, 242, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  z-index: -2;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(234, 244, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 244, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, black, transparent 75%);
}
.hero__content { max-width: 760px; padding-top: 3rem; padding-bottom: 3rem; }
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--white-dim);
  max-width: 560px;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 20px;
}
.hero__scroll-cue::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* ---------- Veteran strip ---------- */
.veteran {
  background: linear-gradient(90deg, rgba(45, 212, 240, 0.09), rgba(88, 101, 242, 0.09));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}
.veteran__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.veteran__badge {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(45, 212, 240, 0.35);
}
.veteran__badge-icon { width: 44px; height: 44px; }
.veteran__text h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.4em; }
.veteran__text p { color: var(--white-dim); margin: 0; max-width: 680px; }
.veteran__text strong { color: var(--white); }

/* ---------- About / Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 4.5rem;
}
.team-card {
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 240, 0.4);
}
.team-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(45, 212, 240, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.team-card__branch {
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.9em;
}
.team-card p:last-child { color: var(--white-dim); margin-bottom: 0; font-size: 0.95rem; }

.unity-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--navy-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
}
.unity-strip__badge {
  flex-shrink: 0;
  width: 120px;
}
.unity-strip__img { width: 100%; height: auto; }
.unity-strip__text { color: var(--white-dim); margin: 0; }
.unity-strip__text strong { color: var(--white); }

/* ---------- Project Oasis ---------- */
.project-oasis {
  overflow: hidden;
}
.project-oasis__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(88, 101, 242, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 70%, rgba(45, 212, 240, 0.14), transparent 60%),
    var(--navy-deep);
  z-index: -1;
}
.project-oasis__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.project-oasis__art-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px dashed rgba(45, 212, 240, 0.4);
  background: linear-gradient(135deg, rgba(45, 212, 240, 0.08), rgba(88, 101, 242, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.project-oasis__art-label {
  color: var(--white-faint);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project-oasis__title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.01em;
}
.project-oasis__reveal-tag {
  display: inline-block;
  color: var(--navy-deep);
  background: var(--cyan);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.1em;
}
.project-oasis__copy p { color: var(--white-dim); max-width: 520px; }
.project-oasis__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- Contact ---------- */
.contact__inner {
  text-align: center;
  max-width: 640px;
}
.contact__discord-note {
  margin-top: 1.5rem;
  color: var(--white-faint);
  font-size: 0.95rem;
}
.contact__discord-note a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  background: var(--navy-deep);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-weight: 700;
}
.footer__logo { border-radius: 6px; }
.footer__veteran {
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin: 0.5rem 0;
}
.footer__links a {
  color: var(--white-dim);
  font-size: 0.9rem;
}
.footer__links a:hover { color: var(--cyan); }
.footer__links a[aria-disabled="true"] {
  color: var(--white-faint);
  pointer-events: none;
}
.footer__discord { color: var(--blurple) !important; font-weight: 700; }
.footer__discord:hover { color: var(--cyan) !important; }
.footer__copyright {
  color: var(--white-faint);
  font-size: 0.82rem;
  margin: 0.5rem 0 0;
}
.footer__devlogin {
  color: var(--white-faint);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.footer__devlogin:hover { color: var(--cyan); }

/* ---------- Active nav link ---------- */
.nav__links a.is-active { color: var(--cyan); }

/* ==========================================================================
   Follow Along page
   ========================================================================== */

/* ---------- Page hero (shorter than home hero) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
}
.page-hero__content { max-width: 760px; }
.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Media showcase (videos + screenshots) ---------- */
.media-section--alt {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.media-grid {
  display: grid;
  gap: 1.75rem;
}
.media-grid--videos { grid-template-columns: repeat(3, 1fr); }
.media-grid--photos { grid-template-columns: repeat(3, 1fr); }

.media-card { margin: 0; }
.media-card__caption {
  color: var(--white-dim);
  font-size: 0.9rem;
  margin-top: 0.8rem;
  text-align: center;
}

/* Blank placeholder slot — swap for <video>, <iframe>, or <img> later */
.media-slot {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px dashed rgba(45, 212, 240, 0.4);
  background: linear-gradient(135deg, rgba(45, 212, 240, 0.08), rgba(88, 101, 242, 0.08));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.media-card:hover .media-slot {
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.media-slot__icon {
  font-size: 1.6rem;
  color: var(--cyan);
  opacity: 0.7;
}
.media-slot--video .media-slot__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(45, 212, 240, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 4px;
}
.media-slot__label {
  color: var(--white-faint);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Real media, once slots are filled */
.media-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--navy-deep);
  display: block;
}
iframe.media-embed { border: 1px solid var(--border); }

/* ---------- Dev updates accordion ---------- */
.accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.accordion__item {
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.accordion__item:hover,
.accordion__item[open] { border-color: rgba(45, 212, 240, 0.4); }

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary:hover { color: var(--cyan); }

.accordion__chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.accordion__item[open] .accordion__chevron { transform: rotate(225deg); }

.accordion__body { padding: 0 1.5rem 1.4rem; }

.update-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.update-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--white-dim);
  font-size: 0.95rem;
}
.update-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.updates__cta {
  text-align: center;
  margin-top: 3.5rem;
}
.updates__cta p {
  color: var(--white-dim);
  margin-bottom: 1.2rem;
}

/* ---------- Screenshot lightbox ---------- */
img.media-embed { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  background: rgba(10, 15, 36, 0.96);
}
.lightbox.is-open { display: flex; }
.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 82vh;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  cursor: grab;
  border-radius: 6px;
}
.lightbox__img.is-dragging { cursor: grabbing; }
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 32, 74, 0.8);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { border-color: var(--cyan); color: var(--cyan); }
.lightbox__caption {
  margin: 0;
  padding: 0.9rem 1.5rem 1.2rem;
  text-align: center;
  color: var(--white-dim);
  font-size: 0.92rem;
}
.lightbox__hint {
  display: block;
  margin-top: 0.3rem;
  color: var(--white-faint);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ---------- Launch-alert email signup ---------- */
.notify {
  background: linear-gradient(90deg, rgba(45, 212, 240, 0.07), rgba(88, 101, 242, 0.07));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.notify__inner {
  text-align: center;
  max-width: 640px;
}
.notify__form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0.5rem auto 0;
}
.notify__email { flex: 1; min-width: 0; }
.notify__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- Live roadmap progress bars ---------- */
.prog-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.prog {
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
}
.prog__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.prog__name { font-weight: 600; font-size: 0.95rem; }
.prog__count {
  color: var(--white-faint);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.prog--done .prog__count { color: #3DDC97; font-weight: 600; }
.prog__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(234, 244, 255, 0.08);
  overflow: hidden;
}
.prog__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), #3DDC97);
}

/* ---------- Backer wall ---------- */
.backer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  max-width: 900px;
  margin: 0 auto 3.5rem;
}
.backer-chip {
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55em 1.35em;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.backer-chip:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* ---------- Media manager (portal) ---------- */
.media-admin {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.media-admin__card {
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.media-admin__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--navy-deep);
}
.media-admin__thumb--croppable {
  cursor: move;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.media-focus-form { display: none; }
.media-admin__body { padding: 1rem 1.2rem 1.2rem; }
.media-admin__caption {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.media-admin__caption em { color: var(--white-faint); }
.media-admin__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ---------- FAQ ---------- */
.faq__answer {
  color: var(--white-dim);
  font-size: 0.95rem;
  margin: 0;
}
.faq__answer a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Polls ---------- */
.poll-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.poll {
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.poll__q { font-size: 1.15rem; margin-bottom: 0.35em; }
.poll__meta {
  color: var(--white-faint);
  font-size: 0.82rem;
  margin-bottom: 1.1rem;
}
.poll__option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.poll__option:hover { border-color: var(--cyan); }
.poll__option input { accent-color: var(--cyan); }
.poll__result { margin-bottom: 0.9rem; }
.poll__result:last-child { margin-bottom: 0; }
.poll__result-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.poll__result-top span:last-child { color: var(--white-faint); white-space: nowrap; }

/* ---------- Task comments ---------- */
.comment { border-top: 1px solid var(--border); padding: 0.8rem 0; }
.comment:first-child { border-top: none; padding-top: 0.2rem; }
.comment__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--white-faint);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}
.comment__meta strong { color: var(--cyan); }
.comment__body { color: var(--white-dim); font-size: 0.92rem; margin: 0; }
.comment__delete {
  background: none;
  border: none;
  color: var(--white-faint);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.2rem;
  cursor: pointer;
}
.comment__delete:hover { color: #FF6B6B; }
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.textarea--sm { min-height: 70px; }

/* ---------- Editor workflows ---------- */
.subtabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.subtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.6em;
  border-radius: 10px;
  background: var(--navy-raised);
  border: 1px solid var(--border);
  color: var(--white-dim);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              background-color 0.2s ease, box-shadow 0.2s ease;
}
.subtab:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--cyan);
}
.subtab.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy-deep);
  box-shadow: 0 4px 18px rgba(45, 212, 240, 0.3);
}
.subtab.is-active:hover { transform: none; }

.cmd { padding: 0.9rem 0; border-top: 1px solid var(--border); }
.cmd:first-child { border-top: none; padding-top: 0.2rem; }
.cmd__name {
  margin: 0 0 0.3em;
  font-size: 0.95rem;
  color: var(--white);
}
.cmd__flash { color: #FFC46B; }
.cmd__desc {
  color: var(--white-dim);
  font-size: 0.9rem;
  margin: 0 0 0.3em;
}
.cmd__result {
  color: var(--white-faint);
  font-size: 0.83rem;
  margin: 0;
}

.workflow-search {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.75rem;
}
.workflow-search .input { flex: 1; min-width: 0; }

.workflow-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.tool-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid rgba(45, 212, 240, 0.35);
  border-radius: 999px;
  padding: 0.25em 0.85em;
  white-space: nowrap;
}

.flow { padding-top: 0.4rem; }
.flow__step {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 1.4rem;
}
.flow__step:last-child { padding-bottom: 0.2rem; }
.flow__step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(45, 212, 240, 0.6), rgba(45, 212, 240, 0.12));
}
.flow__step:last-child::before { display: none; }
.flow__num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--navy-deep);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}
.flow__body { padding-top: 0.35rem; }
.flow__title {
  font-size: 0.98rem;
  margin: 0 0 0.25em;
}
.flow__desc {
  color: var(--white-dim);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Sync history ---------- */
.sync-history { margin: -1rem 0 2rem; }
.sync-history summary {
  cursor: pointer;
  color: var(--white-faint);
  font-size: 0.85rem;
  list-style: none;
}
.sync-history summary::-webkit-details-marker { display: none; }
.sync-history summary::before { content: "▸ "; }
.sync-history[open] summary::before { content: "▾ "; }
.sync-history ul {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sync-history li { color: var(--white-dim); font-size: 0.85rem; }
.sync-history__ok { color: #3DDC97; font-weight: 700; }
.sync-history__fail { color: #FF8F8F; font-weight: 700; }

/* ---------- Supporter locked panel ---------- */
.locked-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(45, 212, 240, 0.06), rgba(88, 101, 242, 0.06));
  border: 1px dashed rgba(45, 212, 240, 0.4);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
}
.locked-panel__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(45, 212, 240, 0.3);
}
.locked-panel__title { font-size: 1.35rem; margin-bottom: 0.5em; }
.locked-panel__text {
  color: var(--white-dim);
  max-width: 460px;
  margin: 0 auto 1.75rem;
}
.locked-panel__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.locked-panel__note {
  margin: 1.75rem 0 0;
  color: var(--white-faint);
  font-size: 0.88rem;
}
.locked-panel__note a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .locked-panel { padding: 2.5rem 1.5rem; }
  .locked-panel__actions { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   Developer portal
   ========================================================================== */

.portal-badge {
  background: rgba(45, 212, 240, 0.12);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 240, 0.35);
}
.nav__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
a.portal-badge--btn {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
a.portal-badge--btn:hover {
  background: rgba(45, 212, 240, 0.28);
}
a.portal-badge--btn.is-active {
  background: var(--cyan);
  color: var(--navy-deep);
  border-color: var(--cyan);
}

.portal-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--white-dim);
  font-size: 0.9rem;
}
.portal-user strong { color: var(--cyan); }

.btn--sm { padding: 0.5em 1.1em; font-size: 0.85rem; }

.btn--danger {
  background: transparent;
  color: #FF8F8F;
  border-color: var(--border);
}
.btn--danger:hover { border-color: #FF6B6B; color: #FF6B6B; }

.portal-main { padding: 3.5rem 0 6rem; }

.portal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.portal-head__title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0; }

.portal-tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.portal-tab {
  padding: 0.55em 1.25em;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--white-dim);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.portal-tab:hover { border-color: var(--cyan); color: var(--cyan); }
.portal-tab.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy-deep);
}

/* ---------- Roadmap sync ---------- */
.sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--navy-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}
.sync-bar__info {
  color: var(--white-faint);
  font-size: 0.88rem;
  margin: 0;
}
.sync-bar__info strong { color: var(--cyan); font-weight: 600; }

.milestone-head {
  font-size: 1rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 1.6rem 0 0.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.task-list .milestone-head:first-child { margin-top: 0; }
.milestone-head--done { color: var(--white-faint); }

.badge--roadmap {
  background: transparent;
  border: 1px solid rgba(45, 212, 240, 0.4);
  color: var(--cyan);
}
.task-card__unclaimed { color: #FFC46B; font-weight: 600; }

/* ---------- Flash messages ---------- */
.flash {
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.4);
  color: #3DDC97;
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}
.flash--error {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.4);
  color: #FF8F8F;
}

/* ---------- Stat tiles ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat-tile {
  display: block;
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
a.stat-tile:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.stat-tile.is-active {
  border-color: var(--cyan);
  background: rgba(45, 212, 240, 0.08);
}
.stat-tile__num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.2;
}
.stat-tile__label {
  color: var(--white-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Task cards ---------- */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.task-card {
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-left: 4px solid var(--white-faint);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.task-card--high { border-left-color: #FF6B6B; }
.task-card--medium { border-left-color: var(--cyan); }
.task-card--low { border-left-color: rgba(234, 244, 255, 0.3); }
.task-card--done { opacity: 0.55; }
.task-card--done .task-card__title { text-decoration: line-through; }

.task-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.task-card__title { font-size: 1.15rem; margin: 0; }
.task-card__badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  white-space: nowrap;
}
.badge--high { background: rgba(255, 107, 107, 0.14); color: #FF8F8F; }
.badge--medium { background: rgba(45, 212, 240, 0.12); color: var(--cyan); }
.badge--low { background: rgba(234, 244, 255, 0.08); color: var(--white-dim); }
.badge--status-todo { background: rgba(234, 244, 255, 0.08); color: var(--white-dim); }

/* Performance statuses */
.badge--perf-pass { background: rgba(61, 220, 151, 0.14); color: #3DDC97; }
.badge--perf-warning { background: rgba(255, 196, 107, 0.15); color: #FFC46B; }
.badge--perf-fail { background: rgba(255, 107, 107, 0.16); color: #FF8F8F; }
.badge--perf-unavailable { background: rgba(234, 244, 255, 0.08); color: var(--white-faint); }
.badge--perf-unbudgeted { background: transparent; border: 1px solid var(--border); color: var(--white-dim); }
.perf-row--fail td { background: rgba(255, 107, 107, 0.06); }
.perf-row--warning td { background: rgba(255, 196, 107, 0.05); }
.perf-coverage {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.perf-clock {
  color: var(--white-faint);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
.perf-clock span {
  color: var(--cyan);
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 600;
}
.usage-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}
.usage-bar__track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(234, 244, 255, 0.08);
  overflow: hidden;
  min-width: 70px;
}
.usage-bar__fill { height: 100%; border-radius: 999px; }
.usage-bar__fill--ok { background: #3DDC97; }
.usage-bar__fill--warn { background: #FFC46B; }
.usage-bar__fill--fail { background: #FF6B6B; }
.usage-bar__label {
  font-size: 0.78rem;
  color: var(--white-faint);
  white-space: nowrap;
}
.delta-up { color: #FF8F8F; font-weight: 600; white-space: nowrap; }
.delta-down { color: #3DDC97; font-weight: 600; white-space: nowrap; }
.trend-card {
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Task tags */
.badge--tag-bug { background: rgba(167, 139, 250, 0.16); color: #C4B1FF; }
.badge--tag-enhancement { background: rgba(250, 128, 114, 0.16); color: #FFA093; }
.badge--tag-mechanic { background: rgba(94, 138, 255, 0.16); color: #8FB0FF; }
.badge--tag-model { background: rgba(255, 209, 102, 0.16); color: #FFD166; }
.badge--tag-docs { background: rgba(234, 244, 255, 0.16); color: #F4F9FF; }
.badge--milestone {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white-dim);
}
a.badge { transition: filter 0.15s ease, border-color 0.15s ease; }
a.badge:hover { filter: brightness(1.3); }
a.badge--milestone:hover { border-color: var(--cyan); color: var(--cyan); }

.task-filters .select--sm { max-width: 220px; }
.badge--status-in_progress { background: rgba(45, 212, 240, 0.12); color: var(--cyan); }
.badge--status-done { background: rgba(61, 220, 151, 0.14); color: #3DDC97; }

.task-card__meta {
  color: var(--white-faint);
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}
.task-card__meta strong { color: var(--cyan); font-weight: 600; }
.task-card__due--overdue { color: #FF8F8F; font-weight: 600; }

.task-card__desc { color: var(--white-dim); font-size: 0.95rem; }

.task-card__plan {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--navy-deep);
  margin: 0.9rem 0 1rem;
}
.task-card__plan summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cyan);
}
.task-card__plan summary::-webkit-details-marker { display: none; }
.task-card__plan summary::before { content: "▸ "; }
.task-card__plan[open] summary::before { content: "▾ "; }
.task-card__plan-body {
  padding: 0 1rem 0.9rem;
  color: var(--white-dim);
  font-size: 0.92rem;
}

.task-card__actions {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.4rem;
}
.task-card__control {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.task-card__control--delete { margin-left: auto; }

/* ---------- Portal forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field__label {
  color: var(--white-faint);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.input, .select, .textarea {
  background: var(--navy-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font: inherit;
  padding: 0.6em 0.9em;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.select--sm { padding: 0.45em 0.7em; font-size: 0.88rem; }
.textarea { min-height: 130px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--white-faint); }
/* Make the native date-picker icon visible on the dark background */
.input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); }

.portal-form {
  max-width: 720px;
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.portal-form__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.portal-form__actions { display: flex; gap: 1rem; }

.empty-state {
  text-align: center;
  color: var(--white-faint);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
}
.empty-state p { margin-bottom: 1.5rem; }

/* ---------- Supporters admin table ---------- */
.sup-table-wrap {
  overflow-x: auto;
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.sup-table th, .sup-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.sup-table th {
  color: var(--white-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sup-table tbody tr:last-child td { border-bottom: none; }
.sup-table code {
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.sup-row--inactive td { opacity: 0.45; }
.sup-table__actions {
  display: flex;
  gap: 0.5rem;
}

/* ---------- Login page ---------- */
.login-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--navy-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.login-card__brand {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1.75rem;
}
.login-card__title { font-size: 1.6rem; margin-bottom: 0.3em; }
.login-card__note {
  color: var(--white-faint);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.login-form { display: flex; flex-direction: column; gap: 1.1rem; }
.login-form__submit { margin-top: 0.4rem; }
.login-card__back {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--white-faint);
  font-size: 0.88rem;
}
.login-card__back:hover { color: var(--cyan); }

/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-cue::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
  .media-grid--videos { grid-template-columns: 1fr; }
  .media-grid--photos { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .portal-form__row { grid-template-columns: 1fr; }
  .media-admin { grid-template-columns: repeat(2, 1fr); }
  .project-oasis__inner { grid-template-columns: 1fr; }
  .project-oasis__art { order: -1; }
  .unity-strip { flex-direction: column; text-align: center; }
}

@media (max-width: 760px) {
  section { padding: 4.5rem 0; }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    background: var(--navy-raised);
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 24px 2.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links {
    flex-direction: column;
    gap: 1.1rem;
  }
  .nav__menu .btn--discord { justify-content: center; }

  .veteran__inner { flex-direction: column; text-align: center; }

  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .page-hero { padding: 5rem 0 3.5rem; }
  .media-grid--photos { grid-template-columns: 1fr; }
  .media-admin { grid-template-columns: 1fr; }
  .notify__form { flex-direction: column; }
}
