:root {
  --mars-red: #c1440e;
  --mars-orange: #E43C2F;
  --mars-glow: #ff7a3d;
  --mars-dark: #1a0800;
  --mars-surface: #3d1a08;
  --mars-mid: #5c2810;
  --space-black: #070404;
  --text-white: #f5ede8;
  --text-dim: #a07060;
  --accent: #ff6b35;
  --nav-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--space-black);
  color: var(--text-white);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  cursor: default;
}

p {
  font-family: "Poppins", sans-serif !important;
}

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: var(--size);
  height: var(--size);
  transform: rotate(var(--rot));
  animation: twinkle var(--dur) ease-in-out infinite alternate;
  animation-delay: var(--delay);
  opacity: var(--op);
}

.star-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: var(--thick);
  background: var(--col);
  border-radius: 999px;
  transform-origin: center;
}

.star-line:nth-child(1) {
  transform: translate(-50%, -50%) rotate(0deg);
}

.star-line:nth-child(2) {
  transform: translate(-50%, -50%) rotate(60deg);
}

.star-line:nth-child(3) {
  transform: translate(-50%, -50%) rotate(120deg);
}

@keyframes twinkle {
  from {
    opacity: calc(var(--op) * 0.35);
    transform: rotate(var(--rot)) scale(0.82);
  }

  to {
    opacity: var(--op);
    transform: rotate(var(--rot)) scale(1.08);
  }
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(7, 4, 4, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(193, 68, 14, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
}

.nav-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo-img {
  display: block;
  width: auto;
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-btn {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 3px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.nav-btn.ghost {
  color: #fff;
  background: transparent;
}

.nav-btn.ghost:hover {
  color: var(--text-white);
}

.nav-btn.outline {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-btn.outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.nav-btn.solid {
  color: #fff;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.nav-btn.solid:hover {
  background: #1d1d1d;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) 40px 80px;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: none;
}

.planet {
  position: absolute;
  top: 20px;
  right: 0;
  width: 473px;
  height: auto;
  aspect-ratio: 688 / 958;
  border-radius: 0;
  background-color: transparent;
  background-image: url("assets/mars.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  animation: none;
  box-shadow: none;
}

.planet::after {
  content: none;
}

@keyframes drift {
  from {
    transform: translateY(0) rotate(0deg);
  }

  to {
    transform: translateY(12px) rotate(2deg);
  }
}

.competition-label {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mars-orange);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.competition-label::before,
.competition-label::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--mars-orange);
  opacity: 0.5;
}

.hero-title {
  font-family: "Domine", serif;
  font-size: clamp(80px, 14vw, 160px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  animation: fadeUp 1s ease both;
}

.hero-title .mars {
  color: var(--mars-orange);
}

.hero-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 48px;
  animation: fadeUp 1s 0.2s ease both;
}

.hero-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: 56px;
  animation: fadeUp 1s 0.35s ease both;
}

.tag {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  min-width: 170px;
  padding: 12px 16px;
  font-family: "Domine", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  border-radius: 28px 24px 34px 20px;
  background: #efad4a;
  color: #23252d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-tags .tag:nth-child(1) {
  transform: rotate(-7deg);
}

.hero-tags .tag:nth-child(2) {
  transform: rotate(6deg);
}

.hero-tags .tag:nth-child(3) {
  transform: rotate(4deg);
}

.hero-tags .tag:nth-child(4) {
  transform: rotate(-5deg);
}

.countdown-wrap {
  animation: fadeUp 1s 0.5s ease both;
  margin-bottom: 56px;
}

.countdown-label {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.countdown {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 14px;
}

.cd-block {
  text-align: center;
}

.cd-num {
  font-family: "Domine", serif;
  font-size: 52px;
  line-height: 1;
  color: var(--text-white);
  display: block;
  min-width: 70px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(193, 68, 14, 0.2);
  border-radius: 4px;
  padding: 8px 12px;
}

.cd-unit {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
  display: block;
}

.cd-sep {
  font-family: "Domine", serif;
  font-size: 48px;
  color: var(--mars-red);
  opacity: 0.5;
  align-self: flex-start;
  padding-top: 8px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  animation: fadeUp 1s 0.65s ease both;
}

.cta-btn {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.cta-primary {
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.cta-primary:hover {
  background: #1d1d1d;
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.cta-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.cta-secondary:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

.scroll-hint {
  position: static;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 1s 1.2s ease both;
  pointer-events: none;
}

.scroll-hint .arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--mars-red));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.8);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.brief-strip {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  padding: 0;
}

.brief-strip-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.brief-strip-image {
  width: clamp(234px, 31.2vw, 416px);
  height: auto;
  display: block;
  flex-shrink: 0;
}

.brief-strip p {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: #fff;
  text-align: center;
}

.brief-strip p strong {
  color: var(--text-white);
  font-weight: 500;
}

.brief-strip p em {
  color: var(--mars-orange);
  font-style: normal;
}

.hero-brief {
  max-width: 1180px;
  margin: 0 auto 48px;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 28px 32px;
  text-align: left;
  animation: fadeUp 1s 0.45s ease both;
  backdrop-filter: none;
}

.brief-eyebrow {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mars-orange);
  margin-bottom: 14px;
}

.brief-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
}

.brief-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.brief-card {
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 18px 20px;
  min-height: 240px;
  height: 100%;
}

.brief-card:nth-child(2n) {
  background: rgba(0, 0, 0, 0.84);
}

.brief-card:nth-child(3n) {
  background: rgba(0, 0, 0, 0.8);
}

.brief-card:nth-child(1),
.brief-card:nth-child(2) {
  grid-column: span 3;
  min-height: 280px;
}

.brief-card:nth-child(3),
.brief-card:nth-child(4),
.brief-card:nth-child(5) {
  min-height: auto;
}

.brief-card:nth-child(3) {
  grid-column: span 3;
}

.brief-card:nth-child(4) {
  grid-column: span 2;
}

.brief-card:nth-child(5) {
  grid-column: span 1;
}

.brief-card-title {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--mars-orange);
  margin: 0 0 8px;
}

.brief-card p {
  margin-bottom: 12px;
}

.brief-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .brief-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-card:nth-child(1),
  .brief-card:nth-child(2),
  .brief-card:nth-child(3),
  .brief-card:nth-child(4),
  .brief-card:nth-child(5) {
    grid-column: span 1;
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .brief-cards {
    grid-template-columns: 1fr;
  }
}

#submissions {
  position: relative;
  z-index: 1;
  padding: 100px 40px 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mars-orange);
  margin-bottom: 16px;
}

.section-title {
  font-family: "Domine", serif;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 0.04em;
  line-height: 1;
}

.section-sub {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.mars-world {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
  margin-top: 0;
  background-image: url("assets/marss.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 82% auto;
}

.mars-atmosphere {
  display: none;
}

.mars-arch-svg {
  display: none;
}

.floating-cards-layer {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
}

.sub-card {
  position: absolute;
  width: 210px;
  background: rgba(12, 4, 2, 0.92);
  border: 1px solid rgba(193, 68, 14, 0.25);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  pointer-events: all;
  animation: floatCard var(--float-dur) ease-in-out infinite alternate;
  animation-delay: var(--float-delay);
  backdrop-filter: blur(4px);
}

.sub-card:nth-child(1) {
  left: 3%;
  bottom: 148px;
}

.sub-card:nth-child(2) {
  left: 18%;
  bottom: 192px;
}

.sub-card:nth-child(3) {
  left: 36%;
  bottom: 218px;
  --float-dur: 4.8s;
  width: 240px;
  border-color: rgba(193, 68, 14, 0.5);
}

.sub-card:nth-child(4) {
  left: 57%;
  bottom: 210px;
}

.sub-card:nth-child(5) {
  left: 73%;
  bottom: 185px;
}

.sub-card:nth-child(6) {
  left: 88%;
  bottom: 145px;
}

.sub-card:hover {
  border-color: var(--mars-orange);
  box-shadow: 0 0 40px rgba(193, 68, 14, 0.3), 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

@keyframes floatCard {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

.sub-card::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 10%;
  width: 80%;
  height: 10px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sub-thumb-wrap {
  position: relative;
}

.sub-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(50, 18, 6, 0.9) 0%, rgba(15, 5, 2, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sub-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.95) brightness(0.78);
}

.sub-thumb-placeholder .play-icon {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(193, 68, 14, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
}

.sub-thumb-placeholder .play-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 10px solid var(--mars-red);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}

.featured-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--mars-orange);
  color: #fff;
  padding: 3px 8px;
  border-radius: 2px;
}

.sub-info {
  padding: 12px;
}

.sub-concept {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.4;
}

.sub-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-school {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.sub-grade {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  color: var(--mars-orange);
}

.dust-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--mars-orange);
  opacity: 0;
  z-index: 4;
  animation: dustFloat var(--d) ease-in-out infinite;
  animation-delay: var(--dl);
}

@keyframes dustFloat {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(1);
  }

  20% {
    opacity: 0.35;
  }

  80% {
    opacity: 0.15;
  }

  100% {
    opacity: 0;
    transform: translateY(-70px) translateX(var(--dx)) scale(0.2);
  }
}

#how-to-win {
  position: relative;
  z-index: 1;
  background: transparent;
  border-top: none;
  padding: 100px 40px;
}

.criteria-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 60px;
  align-items: stretch;
}

.criteria-card {
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 22px 22px 24px;
  transition: border-color 0.3s ease;
  height: 100%;
}

.criteria-card:hover {
  border-color: rgba(228, 60, 47, 0.45);
}

.criteria-num {
  font-family: "Poppins", sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: rgba(228, 60, 47, 0.35);
  line-height: 1;
  margin-bottom: 12px;
}

.criteria-title {
  font-family: "Poppins", sans-serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--mars-orange);
  margin-bottom: 10px;
  line-height: 1;
}

.criteria-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.rules-strip {
  max-width: 1180px;
  margin: 16px auto 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 18px 18px 16px;
  min-height: 120px;
}

.rule-dot {
  width: 6px;
  height: 6px;
  background: var(--mars-orange);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.rule-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.rule-text strong {
  color: var(--mars-orange);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal.open {
  display: flex !important;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(3px);
}

.video-modal-dialog {
  position: relative;
  width: min(980px, 94vw);
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 16px;
  z-index: 1;
}

.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #101010;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#submission-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #000;
}

.criteria-card:nth-child(1),
.criteria-card:nth-child(2) {
  grid-column: span 3;
}

.criteria-card:nth-child(3),
.criteria-card:nth-child(4) {
  grid-column: span 3;
}

@media (max-width: 1100px) {
  .criteria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .criteria-card:nth-child(1),
  .criteria-card:nth-child(2),
  .criteria-card:nth-child(3),
  .criteria-card:nth-child(4) {
    grid-column: span 1;
  }

  .rules-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .criteria-grid,
  .rules-strip {
    grid-template-columns: 1fr;
  }

  .criteria-title {
    font-size: 34px;
  }
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(193, 68, 14, 0.15);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-logo .logo-img {
  height: 26px;
}

.footer-copy {
  font-size: 12px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.08em;
}

.footer-email {
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer-email:hover {
  color: var(--mars-orange);
}

.visually-hidden {
  display: none;
}

@media (max-width: 900px) {
  nav {
    padding: 0 20px;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  #submissions,
  #how-to-win,
  .brief-strip,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .planet {
    width: 315px;
    height: auto;
    top: 24px;
    right: 0;
  }

  .mars-world {
    height: 680px;
  }

  .floating-cards-layer {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 40px;
  }

  .sub-card,
  .sub-card:nth-child(1),
  .sub-card:nth-child(2),
  .sub-card:nth-child(3),
  .sub-card:nth-child(4),
  .sub-card:nth-child(5),
  .sub-card:nth-child(6) {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  nav {
    height: auto;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 140px;
    min-height: auto;
  }

  .competition-label::before,
  .competition-label::after {
    display: none;
  }

  .hero-brief {
    padding: 20px;
  }

  .countdown {
    gap: 10px;
  }

  .hero-tags {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .brief-strip-inner {
    flex-direction: column;
    gap: 16px;
  }

  .brief-strip p {
    text-align: center;
  }

  .tag {
    min-height: 56px;
    min-width: 140px;
    font-size: 22px;
  }

  .cd-num {
    min-width: 56px;
    font-size: 36px;
    padding: 8px;
  }

  .cd-sep {
    font-size: 32px;
  }

  .floating-cards-layer {
    grid-template-columns: 1fr;
  }

  .rules-strip {
    padding: 24px 20px;
  }

  footer {
    justify-content: center;
    text-align: center;
  }
}

@media (max-height: 860px) {
  .scroll-hint {
    display: none;
  }
}
