:root {
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.4);
  --color-bg: #0c0c0c;
  --color-text: #e0e0e0;
  --color-text-muted: #888;
  --font-pixel: 'Pixelify Sans', sans-serif;
  --font-silk: 'Silkscreen', cursive;
  --transition: all 0.1s steps(2);
  --menu-border: #8c8c8c;
  --menu-border-dark: #222;
  --glass-bg: rgba(45, 45, 45, 0.95);
  --btn-bg: #808080;
  --btn-shadow: #3b3b3b;
  --highlight-yellow: #ffff3f;
}

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

body {
  font-family: var(--font-pixel);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  min-height: 100vh;
  width: 100vw;
  user-select: none;
  image-rendering: pixelated;
}

.panorama-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url('/TU7_Panorama_Background_S.png') repeat-x;
  background-size: auto 100%;
  z-index: -2;
  animation: drift 120s linear infinite;
  filter: brightness(0.4) contrast(1.1);
}

@keyframes drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
  z-index: -1;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
  background-size: 100% 4px, 3px 100%;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.3;
}

.menu-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto;
  padding: 40px 0;
  align-items: center;
}

.menu-header {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.audio-btn {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  border: 4px solid #7c7c7c;
  border-right-color: #262626;
  border-bottom-color: #262626;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
  z-index: 100;
  font-size: 1.2rem;
}

.audio-btn:hover {
  transform: translateY(-50%) scale(1.1);
  outline: 4px solid var(--highlight-yellow);
}

.audio-btn i {
  transition: color 0.2s;
}

.audio-btn.muted i {
  color: #666;
}


.menu-title {
  max-width: 400px;
  width: 90%;
  filter: drop-shadow(0 6px 0px rgba(0, 0, 0, 0.5));
}

.menu-tabs {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 0px;
  z-index: 10;
}

.tabs-wrapper {
  display: flex;
  background: rgba(0, 0, 0, 0.85);
  border: 4px solid #7c7c7c;
  border-right-color: #262626;
  border-bottom-color: #262626;
  padding: 4px;
}

.tab-item {
  padding: 8px 30px;
  background: transparent;
  border: none;
  font-family: var(--font-pixel);
  font-weight: 500;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s steps(2);
}

.tab-item.active {
  background: #3c3c3c;
  outline: 4px solid var(--highlight-yellow);
  z-index: 1;
}

.arrow-btn {
  background: #000;
  border: 4px solid #7c7c7c;
  border-right-color: #262626;
  border-bottom-color: #262626;
  padding: 4px 8px;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  font-weight: bold;
}

.menu-content-wrapper {
  width: 95%;
  max-width: 1000px;
  flex-grow: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.menu-content {
  flex-grow: 1;
  background: #cecece;
  border: 6px solid #f0f0f0;
  border-right-color: #7b7b7b;
  border-bottom-color: #7b7b7b;
  padding: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
}

.menu-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 4px solid #1a1a1a;
  pointer-events: none;
  z-index: 5;
}

.tab-content {
  display: none;
  height: 100%;
  background: #3c3c3c;
  border: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

.home-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.features-row {
  display: flex;
  justify-content: space-around;
  padding: 30px 20px 10px;
  flex-grow: 1;
}

.feature-card {
  flex: 1;
  max-width: 280px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-image {
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.pixel-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.feature-info h3 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 3px 3px 0 #000;
}

.feature-info p {
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.2;
}

.cta-section {
  text-align: center;
  margin: 20px 0 30px;
  padding: 0 20px;
}

.cta-section h2 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 2px 2px 0 #000;
}

.cta-section p {
  font-size: 1.2rem;
  color: #fff;
}

.bottom-actions {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 20px;
  align-items: center;
  padding: 15px 25px;
  background: #7b7b7b;
  border-top: 4px solid #1a1a1a;
}

.branding-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pixel-logo {
  width: 50px;
  height: 50px;
}

.branding-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.8rem;
  color: #fff;
  line-height: 1;
  text-shadow: 2px 2px 0 #000;
}

.brand-sub {
  font-size: 1.8rem;
  color: #fff;
  line-height: 1;
  text-shadow: 2px 2px 0 #000;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.main-btn {
  width: 350px;
  height: 64px;
  background: #5c5c5c;
  border: 4px solid #fff;
  border-right-color: #2a2a2a;
  border-bottom-color: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
  text-shadow: 3px 3px 0 #000;
  position: relative;
  transition: transform 0.05s;
  text-align: center;
  line-height: 1.1;
  padding: 0 15px;
}

.main-btn:hover {
  outline: 4px solid var(--highlight-yellow);
  z-index: 2;
}

.get-launcher {
  justify-content: space-between;
  padding: 0 20px;
}

.join-discord {
  flex-direction: row;
  justify-content: center;
  height: 56px;
  font-size: 1.8rem;
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-subtitle {
  font-size: 0.8rem;
  text-shadow: 1px 1px 0 #000;
  margin-top: -5px;
}

.btn-icon,
.btn-icon-discord {
  height: 40px;
}

.sparkles-overlay {
  position: absolute;
  top: -10px;
  right: -10px;
  height: 30px;
  pointer-events: none;
}

.screenshot-carousel {
  background: #1a1a1a;
  border: 4px solid #7c7c7c;
  border-right-color: #262626;
  border-bottom-color: #262626;
  padding: 4px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.carousel-container {
  display: flex;
  flex-direction: column;
  background: #000;
  border: 2px solid #1a1a1a;
}

.carousel-header {
  font-size: 0.85rem;
  color: #aaa;
  text-align: center;
  padding: 4px 0;
  background: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  padding: 5px;
  position: relative;
}

.carousel-img {
  width: 180px;
  height: 100px;
  object-fit: cover;
  border: 4px solid #3c3c3c;
  outline: 2px solid #1a1a1a;
  transition: opacity 0.2s;
}

.carousel-arrow {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #3c3c3c;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
}

.carousel-arrow:hover {
  background: var(--highlight-yellow);
  color: #000;
  border-color: #fff;
}

.carousel-footer {
  font-size: 0.8rem;
  color: #0bda51;
  text-align: center;
  background: #1a1a1a;
  padding: 4px 0;
  border-top: 2px solid #000;
  font-weight: bold;
}

.menu-footer {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  margin-top: 5px;
}

.legends {
  display: flex;
  gap: 30px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: #fff;
  text-transform: uppercase;
}

.legend-icon {
  width: 24px;
  height: 24px;
  background: #3c3c3c;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 2px solid #7c7c7c;
  box-shadow: 1px 1px 0 #000;
}

.version-info {
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-dot {
  width: 8px;
  height: 8px;
  background: #0bda51;
  border-radius: 50%;
  box-shadow: 0 0 5px #0bda51;
}

@media (max-width: 1000px) {
  .bottom-actions {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .branding-group {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* --- Download Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #cecece;
  border: 6px solid #f0f0f0;
  border-right-color: #7b7b7b;
  border-bottom-color: #7b7b7b;
  width: 90%;
  max-width: 600px;
  padding: 8px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 1);
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 4px solid #1a1a1a;
  pointer-events: none;
}

.modal-header {
  background: #3c3c3c;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.modal-header h2 {
  font-size: 2rem;
  color: #fff;
  text-shadow: 3px 3px 0 #000;
}

.close-btn {
  background: #5c5c5c;
  border: 3px solid #fff;
  border-right-color: #2a2a2a;
  border-bottom-color: #2a2a2a;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 1.4rem;
  padding: 4px 12px;
  cursor: pointer;
}

.close-btn:hover {
  outline: 4px solid var(--highlight-yellow);
}

.modal-options-grid {
  background: #3c3c3c;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  min-height: 200px;
}

.modal-footer {
  background: #7b7b7b;
  padding: 10px;
  text-align: center;
  font-size: 1.1rem;
  border-top: 4px solid #1a1a1a;
}

.modal-btn-container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.splash-text {
  position: absolute;
  top: -15px;
  right: -25px;
  color: #ffff3f;
  font-family: var(--font-silk);
  font-size: 1.2rem;
  text-shadow: 2px 2px 0 #3f3f00;
  transform: rotate(-20deg);
  pointer-events: none;
  z-index: 10;
  animation: splashPulse 0.5s ease-in-out infinite alternate;
  white-space: nowrap;
}

@keyframes splashPulse {
  from {
    transform: rotate(-20deg) scale(1);
  }

  to {
    transform: rotate(-20deg) scale(1.1);
  }
}

.features-layout {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

.scroll-content {
  overflow-y: auto;
}

.scroll-content::-webkit-scrollbar {
  width: 12px;
}

.scroll-content::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-left: 4px solid #3c3c3c;
}

.scroll-content::-webkit-scrollbar-thumb {
  background: #7c7c7c;
  border: 4px solid #1a1a1a;
}

.alpha-disclaimer {
  background: #3c3c3c;
  border: 4px solid var(--highlight-yellow);
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
}

.disclaimer-text h3 {
  color: var(--highlight-yellow);
  font-size: 1.4rem;
  margin-bottom: 4px;
  text-shadow: 2px 2px 0 #000;
}

.disclaimer-text p {
  font-size: 1.1rem;
  color: #fff;
}

.overview-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.overview-box,
.philosophy-box {
  background: rgba(0, 0, 0, 0.3);
  border: 4px solid #1a1a1a;
  padding: 20px;
}

.overview-box h2,
.philosophy-box h2,
.core-features-grid h3 {
  color: var(--color-emerald);
  font-size: 1.8rem;
  margin-bottom: 12px;
  text-shadow: 2px 2px 0 #000;
}

.overview-box p,
.philosophy-box p {
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.4;
}

.core-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.grid-item {
  background: #4c4c4c;
  border: 4px solid #7c7c7c;
  border-right-color: #262626;
  border-bottom-color: #262626;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.item-icon {
  font-size: 2.5rem;
  min-width: 50px;
  text-align: center;
}

.grid-item h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 5px;
  text-shadow: 2px 2px 0 #000;
}

.grid-item p {
  color: #ccc;
  font-size: 1rem;
}

.content-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 4px solid #1a1a1a;
}

.roadmap-link a {
  color: var(--highlight-yellow);
  font-size: 1.2rem;
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
}

.roadmap-link a:hover {
  text-decoration: underline;
}

.acknowledgments p {
  font-size: 0.9rem;
  color: #888;
  text-align: right;
}

.pixel-icon.small {
  width: 40px;
  height: 40px;
}

.item-icon i {
  color: var(--color-emerald);
}

.item-icon i.fa-rust {
  color: #f74c00;
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.os-card {
  background: #cecece;
  border: 4px solid #f0f0f0;
  border-right-color: #7b7b7b;
  border-bottom-color: #7b7b7b;
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  transition: transform 0.1s;
}

.os-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #1a1a1a;
  pointer-events: none;
}

.os-icon {
  font-size: 4rem;
  color: #4c4c4c;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.os-card h3 {
  font-size: 1.8rem;
  color: #1a1a1a;
  text-transform: uppercase;
}

.os-btn {
  width: 100% !important;
  height: 50px !important;
  font-size: 1.2rem !important;
}

.os-card:hover .fa-windows {
  color: #00a4ef;
}

.os-card:hover .fa-linux {
  color: #fcc624;
}

.os-card:hover .fa-apple {
  color: #fff;
}

@media (max-width: 800px) {
  .os-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-item {
  background: #1a1a1a;
  padding: 4px;
  border: 4px solid #7c7c7c;
  border-right-color: #262626;
  border-bottom-color: #262626;
  transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.gallery-item:hover {
  transform: scale(1.05);
  z-index: 10;
  outline: 4px solid var(--highlight-yellow);
}

.gallery-frame {
  background: #000;
  border: 4px solid #3c3c3c;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.launcher-previews {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1200px) {
  .launcher-previews {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 600px) {
  .launcher-previews {
    grid-template-columns: 1fr;
  }
}

.gallery-item.large {
  max-width: 100%;
}

.gallery-item.large .gallery-frame {
  height: auto;
  aspect-ratio: 16/9;
}

.frame-caption {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  padding: 6px 14px;
  border: 2px solid #5c5c5c;
  color: #fff;
  font-family: var(--font-silk);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 5;
  box-shadow: 2px 2px 0 #000;
}

.gallery-item:hover .frame-caption {
  border-color: var(--color-emerald);
  color: var(--color-emerald);
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  border: 8px solid #3c3c3c;
  outline: 4px solid #1a1a1a;
  box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}

.expansion-close {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 100;
}

@media (max-width: 800px) {
  .menu-container {
    width: 95vw;
    margin: 20px auto;
  }
}