:root {
  --primary: #862041;
  --secondary: #F5643B;
}

/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: white;

  background:
    radial-gradient(circle at center, rgba(245,100,59,0.15), transparent 60%),
    linear-gradient(120deg, var(--primary), #1a0d12);
}

/* NAV */
nav {
  height: 70px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 48px;
  height: 48px;
  background: url("droneLogo.png") no-repeat center/contain;
  opacity: 0.9;
}

.navItems span {
  margin-left: 32px;
  font-size: 0.9rem;
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 200ms;
}

.navItems span:hover {
  opacity: 1;
}

/* HERO */
.hero {
  position: relative;
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* BACKGROUND TEXT */
.bgText {
  position: absolute;
  font-size: 12rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.04);
  user-select: none;
  white-space: nowrap;
}

/* DRONE */
.drone {
  width: 220px;
  margin: 40px 0;
  filter: drop-shadow(0 40px 80px rgba(245,100,59,0.4));
  animation: float 6s ease-in-out infinite;
}



@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
  100% { transform: translateY(0); }
}

/* HERO TEXT */
.heroText h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.heroText p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 420px;
  margin: 0 auto;
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  transform: scale(1);
  opacity: .9;
  transition: all 300ms;
}

/* shimmer layer */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: ctaShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

/* pause shimmer on hover (premium feel) */
.cta:hover::after {
  animation-play-state: paused;
}
@keyframes ctaShimmer {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    transform: translateX(120%);
    opacity: 0;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}
.cta {
  animation: ctaBreath 4s ease-in-out infinite;
}

@keyframes ctaBreath {
  0%, 100% {
    box-shadow: 0 12px 40px rgba(255, 128, 93, 0.799);
  }
  50% {
    box-shadow: 0 16px 52px rgba(209, 66, 66, 0.55);
  }
}


.cta:hover {
  transform: scale(1.05);
  opacity: 1;
}


:root {
  --primary: #862041;
  --secondary: #F5643B;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: white;
  background: linear-gradient(120deg, #1a0d12, var(--primary));
}

/* NAV (quiet, consistent) */
nav {
  height: 70px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 44px;
  height: 44px;
  background: url("droneLogo.png") no-repeat center/contain;
  cursor: pointer;
}

.navItems a, .navItems button {
  margin-left: 32px;
  text-decoration: none;
  color: white;
  opacity: 0.75;
  font-size: 0.9rem;
}

.navItems a:hover, .navItems button {
  opacity: 1;
}

/* PAGE WRAPPER */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 40px;
}

h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 700px;
}

/* SIMPLE GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: rgba(255,255,255,0.06);
  padding: 24px;
  border-radius: 16px;
  background-size: contain;
}
@media (max-width: 900px) {
  .card {
  background-size: cover;
}
}
/* CTA */
.cta {
  margin-top: 40px;
  padding: 14px 36px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  color: white;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  cursor: pointer;
}

.flex{
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-evenly;
}
.flex .card{
  width: 20%;
  text-align: center;
}

@media (max-width: 768px) {

  nav {
    padding: 0 20px;
  }

  .navItems {
    display: none;
  }

  .hero {
    padding: 0 20px;
  }

  .bgText {
    font-size: 6rem;
    letter-spacing: 0.15em;
  }

  .drone {
    width: 160px;
    margin: 24px 0;
  }

  .heroText h2 {
    font-size: 1.8rem;
  }

  .heroText p {
    font-size: 1rem;
    max-width: 320px;
  }

  .cta {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {

  nav {
    padding: 0 20px;
  }

  .navItems {
    display: none;
  }

  .page {
    padding: 80px 20px;
  }

  h1 {
    font-size: 2.2rem;
  }

  p {
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }
  .flex{
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
    column-gap: 12px;
  }
  .flex .card{
    width: 100%;
  }
  .cta {
    width: 100%;
    text-align: center;
  }
}
.menuIcon {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menuIcon {
    display: block;
  }
}
@media (max-width: 768px) {
  .navItems {
    position: absolute;
    z-index: 9;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: linear-gradient(var(--primary), var(--secondary));
    padding: 20px;
    border-radius: 12px;
  }

  .navItems a, .navItems button {
    margin: 12px 0;
    color: white;
    font-weight: bold;
    font-size: large;
    opacity: 1;
  }
}

/* PAGE ENTER */
.page-enter {
  animation: pageIn 420ms ease forwards;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PAGE EXIT */
.page-exit {
  animation: pageOut 220ms ease forwards;
}

@keyframes pageOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-enter,
  .page-exit {
    animation: none;
  }
}

#game {
  border: #1a0d12 6px solid;
}

/* ================= GAME SECTION ================= */

.gameSection {
  padding: 120px 0 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;

  background: linear-gradient(
    to top,
    var(--primary),
    var(--secondary)
  );
}

.gameHeader {
  text-align: center;
  max-width: 480px;
}

.gameHeader h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.gameHeader p {
  margin-top: 8px;
  opacity: 0.75;
  font-size: 0.95rem;
}

/* FRAME */
.gameFrame {
  position: relative;
  padding: 20px;
  border-radius: 20px;

  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);

  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* CANVAS */
#game {
  display: block;
  border-radius: 14px;

  background:
    radial-gradient(
      circle at center,
      rgba(255,255,255,0.08),
      rgba(0,0,0,0.6)
    );
}

@media (max-width: 900px) {
  #game {
    width: 90vw;
    height: calc(90vw * 0.75);
  }
}

#game {
  cursor: grab;
}

#game:active {
  cursor: grabbing;
}

.gameStats {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.gameStats strong {
  color: #f5a623;
  font-weight: 700;
}

/* ================= INTRO ANIMATION ================= */

#introOverlay {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  animation: overlayIn 1s ease forwards;
}

.introText {
  text-align: center;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.introLine {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
}

/* text timing */
.line1 {
  animation: textIn 0.6s ease forwards;
  animation-delay: 0.6s;
}

.line2 {
  animation: textIn 0.6s ease forwards;
  animation-delay: 1.2s;
}

.line3 {
  animation: textIn 0.6s ease forwards;
  animation-delay: 1.8s;
  color: #F5643B;
}

/* overlay exit */
#introOverlay.exit {
  animation: overlayOut 1s ease forwards;
  animation-delay: 2.6s;
}

/* keyframes */
@keyframes overlayIn {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes overlayOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

@keyframes textIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.line3 {
  text-shadow: 0 0 20px rgba(245,100,59,0.6);
}
@media (prefers-reduced-motion: reduce) {
  #introOverlay,
  .introLine {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ================= INTRO DRONE ================= */

.advtWrap {
  position: relative;
  display: inline-block;
}

.introDrone {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  animation: droneFly 3.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes droneFly {
  /* OFFSCREEN FAR BACK */
  0% {
    transform:
      translate(-50%, -50%)
      translateX(-600px)
      translateY(120px)
      scale(0.2)
      rotateZ(-25deg)
      rotateY(40deg);
    opacity: 0;
  }

  /* ENTERING FAST */
  25% {
    opacity: 0;
  }

  /* PASS BY CAMERA */
  80% {
    transform:
      translate(-50%, -50%)
      translateX(220px)
      translateY(-120px)
      scale(1)
      rotateZ(0deg)
      rotateY(0deg);
    opacity: 0;
  }

  100% {
    transform:
      translate(-50%, -50%)
      translateX(820px)
      translateY(-520px)
      scale(1);
    opacity: 0;
  }
}

/* ================= OUTRO ================= */

#introOverlay.outro {
  animation: overlayOutro 0.9s ease forwards;
}

.introText.outro {
  animation: textOutro 0.6s ease forwards;
}

@keyframes overlayOutro {
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

@keyframes textOutro {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}


.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;   /* CENTER */
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

body.modal-open {
  overflow: hidden;
}


.modal.hidden {
  display: none;
}

.modalContent {
  background: linear-gradient(
    180deg,
    rgba(90, 85, 85, 0.811),
    rgba(0, 0, 0, 0.874)
  );

  border-radius: 16px;
  padding: 24px;
  width: min(700px, 92%);
  max-height: 90dvh; /* CRITICAL */
  overflow-y: auto;

  color: #e6e6e6;
  box-shadow:
    0 30px 80px rgb(78, 78, 78),
    inset 0 0 0 1px rgba(255,255,255,0.06);

  margin: auto;

  will-change: transform;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.dragHandle {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 999px;
  margin: 0 auto 12px;
}

@media (max-width: 480px) {
  .modalContent {
    padding: 18px;
    border-radius: 12px;
    width: 95%;
  }

  .modalContent h2 {
    font-size: 1.4rem;
  }
}

.modalContent h2 {
  margin-top: 0;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

.modalContent h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: #9bb3ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modalContent ul {
  padding-left: 18px;
  line-height: 1.6;
}

.modalContent li {
  margin-bottom: 6px;
}

.modalContent .mission {
  font-size: 1rem;
  opacity: 0.95;
  line-height: 1.6;
}

.modal .close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
}

.modal .close:hover {
  opacity: 1;
}

.learnMore {
  margin-top: 12px;
  display: inline-block;
  opacity: 0.7;
  font-size: 0.9rem;
}

.teamCard{
  transform: translateY(0px);
  transition: all 300ms;
}
.teamCard:hover{
  transform: translateY(-10px);
}

/* ================= TIMELINE ================= */

.timeline {
  margin-top: 60px;
  display: grid;
  gap: 32px;
}

.timelinePhase {
  position: relative;
  padding: 28px 28px 28px 96px;
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.phaseBadge {
  position: absolute;
  left: 24px;
  top: 24px;
  margin-top: 20px;
  width: 68px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(245,100,59,0.5);
}

.timelinePhase h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.timelinePhase ul {
  padding-left: 18px;
  margin: 0;
  line-height: 1.7;
}

.timelinePhase li {
  margin-bottom: 6px;
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 768px) {
  .timelinePhase {
    padding: 24px;
  }

  .phaseBadge {
    position: static;
    margin-bottom: 16px;
  }
}

.timelinePhaseActive{
  background: linear-gradient(150deg,var(--primary), var(--secondary));
  box-shadow: #8d37527e 12px 12px 3px;
}


.page {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 120px;
}

.page h1 {
  margin-top: 80px;
  margin-bottom: 16px;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
}

.page h1:first-of-type {
  margin-top: 0;
}

.page h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.4rem;
  opacity: 0.9;
}

.page p {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.92;
}

.page ul {
  max-width: 720px;
  margin: 16px 0 32px;
  padding-left: 0;
  list-style: none;
}

.page ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.6;
  opacity: 0.9;
}

.page ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.page h1 + p,
.page h1 + ul {
  margin-top: 12px;
}

.page h1:not(:first-of-type) {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.page strong {
  color: var(--secondary);
}

.page h1 + p strong {
  display: inline-block;
  background: rgba(245,100,59,0.08);
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page h1 {
    font-size: 2rem;
  }

  .page p,
  .page ul {
    font-size: 1rem;
  }
}


/* ================= CONTACT PAGE ================= */

.contactSection {
  margin-top: 64px;
}

.socialGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.socialCard {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 16px 40px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.socialCard:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.socialIcon {
  font-size: 1.8rem;
}

.emailLink {
  display: inline-block;
  margin-top: 12px;
  font-size: 1.2rem;
  color: var(--secondary);
  text-decoration: none;
}

.emailLink:hover {
  text-decoration: underline;
}

.mailingForm {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  max-width: 520px;
}

.mailingForm input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.08);
  color: white;
}

.mailingForm button {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: var(--secondary);
  color: black;
  font-weight: 600;
  cursor: pointer;
}

.mailingForm button:hover {
  opacity: 0.9;
}

.formNote {
  margin-top: 8px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ================= APPLY PAGE ================= */

.applyCountdown {
  margin-top: 56px;
  text-align: center;
}

.countdownGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 16px;
  justify-content: center;
  margin: 24px auto;
  max-width: 520px;
}

.countBox {
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px 12px;
  box-shadow:
    0 16px 40px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.countBox span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}

.countBox label {
  font-size: 0.75rem;
  opacity: 0.8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.deadlineNote {
  margin-top: 12px;
  opacity: 0.85;
}

.applyInfo {
  margin-top: 64px;
}

.applyCTA {
  margin-top: 64px;
  text-decoration: none;
  text-align: center;
}

@media (max-width: 768px) {
  .countdownGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.applyToast {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: #111;
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 9999;
  animation: slideInLeft 0.3s ease;
}

.applyToast.hidden {
  display: none;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ================= FLOATING BACKGROUND ORBS ================= */

.bgOrbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Orb base */
.bgOrbs::before,
.bgOrbs::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: floatOrb 26s linear infinite;
}

/* Orb 1 */
.bgOrbs::before {
  background: rgba(245, 100, 59, 0.55);
  top: 30%;
  left: -120px;
}

/* Orb 2 */
.bgOrbs::after {
  background: rgba(134, 32, 65, 0.65);
  bottom: -140px;
  right: -120px;
  animation-duration: 32s;
}

/* Movement */
@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(120px, -80px) scale(1.05) rotate(6deg);
  }
  50% {
    transform: translate(-60px, -160px) scale(0.95) rotate(-6deg);
  }
  75% {
    transform: translate(-140px, 60px) scale(1.08) rotate(10deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bgOrbs::before,
  .bgOrbs::after {
    animation: none;
  }
}
.bgOrbs span {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(245, 100, 59, 0.35);
  filter: blur(140px);
  opacity: 0.35;
  top: 10%;
  right: 20%;
  animation: floatOrb 46s ease-in-out infinite reverse;
}

/* ================= LIVESTREAM ================= */

.streamFrame {
  position: relative;
  margin-top: 32px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0,0,0,0.6);

  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

.streamFrame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.streamStatus {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
}

.streamStatus.live {
  background: rgba(220, 60, 60, 0.85);
  box-shadow: 0 0 18px rgba(220,60,60,0.6);
}

.streamLayout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.chatFrame {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.6);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

.chatFrame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* Mobile: hide chat by default */
@media (max-width: 900px) {
  .streamLayout {
    grid-template-columns: 1fr;
  }

  .chatFrame {
    display: none;
  }
}

.streamFrame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(0,0,0,0.6),
    rgba(30,10,18,0.9)
  );
  aspect-ratio: 16 / 9;

  box-shadow:
    0 30px 90px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}
.streamFrame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(0,0,0,0.6),
    rgba(30,10,18,0.9)
  );
  aspect-ratio: 16 / 9;

  box-shadow:
    0 30px 90px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* OFFLINE STATE */
.streamFrame.offline::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(245,100,59,0.18), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(134,32,65,0.22), transparent 65%);
  filter: blur(40px);
}

/* Overlay content */
.offlineOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.offlineBadge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0,0,0,0.65);
  color: white;
}

/* Main content */
.offlineContent {
  max-width: 460px;
}

.offlineContent h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.offlineContent p {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.6;
}

/* Actions */
.offlineActions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.secondaryBtn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  opacity: 0.85;
}

.secondaryBtn:hover {
  opacity: 1;
}

/* ================= BUILD LOG ================= */

.subteamFilter {
  margin: 32px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subteamFilter button {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
}

.subteamFilter button.active {
  background: var(--secondary);
  color: black;
  font-weight: 600;
}

.buildLogList {
  display: grid;
  gap: 28px;
}

.buildLogEntry {
  background: rgba(255,255,255,0.06);
  padding: 28px;
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.buildLogHeader {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.buildLogEntry h2 {
  margin: 8px 0 12px;
  font-size: 1.4rem;
}

.buildLogEntry p {
  line-height: 1.7;
  opacity: 0.9;
}

.badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
}

.buildImages {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.buildImages img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.streamFrame { position: relative; overflow: hidden; border-radius: 20px; }
.streamFrame iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }
.offlineMessage{
  position:absolute; inset:0;
  display:flex; flex-direction: column; align-items :center; justify-content:center;
  background: rgba(0,0,0,0.55);
  width: 100%;
  backdrop-filter: blur(8px);
  padding: 20px;
}
.streamFrame:not(.offline) .offlineMessage { display:none; }

/* ================= COMMAND TREE ================= */

.commandTree {
  margin: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.commandTree .branch {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.commandTree .branch.wide {
  gap: 16px;
}

.commandTree .node {
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 220ms ease;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

.commandTree .node:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, var(--primary), var(--secondary));
}

.commandTree .leader {
  font-size: 1rem;
  padding: 16px 28px;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 40px rgba(245,100,59,0.5);
}

/* ================= HERO STREAM PROMO ================= */

.heroStreamPromo {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(0,0,0,0.55),
    rgba(30,10,18,0.85)
  );
  box-shadow:
    0 16px 40px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  text-align: center;
}

.heroStreamPromo.hidden {
  display: none;
}

.liveBadge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(220, 60, 60, 0.85);
  box-shadow: 0 0 14px rgba(220,60,60,0.6);
}

.streamTitle {
  font-size: 1rem;
  font-weight: 700;
}

.streamCountdown {
  margin-top: 4px;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ===============================
   CONSENT BANNER
================================ */

.consentBanner {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.consentBanner.hidden {
  display: none;
}

.consentCard {
  max-width: 420px;
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: consentPop 0.25s ease-out;
}

.consentCard h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.consentCard p {
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.9;
}

.consentActions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.consentAccept {
  flex: 1;
  background: var(--secondary);
  color: black;
  border: none;
  border-radius: 12px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
}

.consentDecline {
  flex: 1;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.consentNote {
  margin-top: 14px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.consentNote a {
  color: var(--secondary);
  text-decoration: none;
}

@keyframes consentPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===============================
   PRIVACY SETTINGS
================================ */

.navPrivacyBtn {
  background: none;
  border: none;
  color: white;
  opacity: 0.85;
  cursor: pointer;
  padding: 8px 0;
  font: inherit;
}

.navPrivacyBtn:hover {
  opacity: 1;
}

.privacyModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.privacyModal.hidden {
  display: none;
}

.privacyCard {
  max-width: 420px;
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.privacyActions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.dangerBtn {
  flex: 1;
  background: #c0392b;
  border: none;
  color: white;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.secondaryBtn {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}

.navPrivacyLink {
  opacity: 0.7;
  font-size: 0.85rem;
}

.navPrivacyLink:hover {
  opacity: 1;
}

/* ===============================
   PAGE CONSENT BLOCK
================================ */

.consentBlock {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.consentBlock.hidden {
  display: none;
}

.consentBlockCard {
  max-width: 440px;
  padding: 28px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
  text-align: center;
}

.consentBlockCard h2 {
  margin-top: 0;
}

.consentBlockCard p {
  opacity: 0.9;
  line-height: 1.45;
}

.consentBlockActions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.consentAccept {
  background: var(--secondary);
  color: black;
  border: none;
  border-radius: 14px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
}

.consentLink {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.consentLeave {
  color: white;
  opacity: 0.75;
  font-size: 0.85rem;
  text-decoration: none;
}
