@font-face {
  font-family: "Object Sans";
  src: url("fonts/object-sans/PPObjectSans-Regular.woff2") format("woff2"),
    url("fonts/object-sans/PPObjectSans-Regular.woff") format("woff"),
    url("fonts/object-sans/PPObjectSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Object Sans";
  src: url("fonts/object-sans/PPObjectSans-Bold.woff2") format("woff2"),
    url("fonts/object-sans/PPObjectSans-Bold.woff") format("woff"),
    url("fonts/object-sans/PPObjectSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Object Sans";
  src: url("fonts/object-sans/PPObjectSans-Thin.woff2") format("woff2"),
    url("fonts/object-sans/PPObjectSans-Thin.woff") format("woff"),
    url("fonts/object-sans/PPObjectSans-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Object Sans";
  src: url("fonts/object-sans/PPObjectSans-Heavy.woff2") format("woff2"),
    url("fonts/object-sans/PPObjectSans-Heavy.woff") format("woff"),
    url("fonts/object-sans/PPObjectSans-Heavy.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

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

html {
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

body {
  font-family: "Object Sans", "Futura", "Avenir", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #000;
  min-height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

.background-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto !important;
  height: auto !important;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

.background-video-mobile {
  display: none;
}

.background-video-desktop {
  display: block;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
  display: none;
}

.cypher-logo-static {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.cypher-logo-static .logo-desktop {
  width: 80vw;
  height: auto;
  min-width: 500px;
  display: block;
}

.cypher-logo-static .logo-mobile {
  display: none;
  width: 30vw;
  height: auto;
  max-width: 400px;
  min-width: 200px;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

h1 {
  font-size: 3rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 27px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 2000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 100px;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-icon {
  height: 18px;
  width: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.header-icon:hover {
  opacity: 0.8;
}

.header-center {
  display: flex;
  align-items: center;
  flex: 1;
  margin-left: 75px;
}

.nav-menu {
  display: flex;
  gap: 75px;
}

.nav-link {
  color: #f6f6f6;
  font-size: 16px;
  font-family: "Object Sans", "Futura", "Avenir", sans-serif;
  letter-spacing: 0.85px;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover,
.nav-link.active-menu {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6),
    0 0 16px rgba(255, 255, 255, 0.3);
}

/* Hide mobile-only nav links on desktop */
.mobile-only-link {
  display: none;
}

/* Disable Play Trailer features for now */
#desktop-play-icon {
  display: none;
}

#play-trailer-link {
  display: none !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-gradient {
  position: fixed;
  top: 27px;
  left: 0;
  width: 100%;
  height: 41px;
  background: linear-gradient(180deg, #0b0b0b 0%, rgba(17, 17, 17, 0) 100%);
  z-index: 1500;
  flex-shrink: 0;
}

.zine-logo-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  right: -14px;
  transition: opacity 0.3s ease;
}

.zine-logo-button:hover .zine-logo {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6))
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.3));
}

.zine-logo {
  height: 14px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  padding-top: 4px;
  transition: filter 0.3s ease;
}

.desktop-icons {
  position: fixed;
  top: 100px;
  right: 40px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: calc(100vh - 200px);
  justify-content: space-between;
  pointer-events: none;
}

.desktop-icons > * {
  pointer-events: auto;
}

.desktop-icons-top {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.desktop-icons-bottom {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 80px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 101;
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.desktop-icon-img {
  width: 48px;
  height: 48px;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-bottom: 5px;
}

.desktop-icon:hover .desktop-icon-img {
  opacity: 1;
  transform: scale(1.05);
}

.desktop-icon-label {
  color: white;
  font-size: 12px;
  font-family: "Object Sans", "Futura", "Avenir", sans-serif;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.zine-notification {
  position: absolute;
  top: 0;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  display: block;
  animation: pulse-blur 1.5s ease-in-out infinite;
}

@keyframes pulse-blur {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 8px 4px rgba(255, 0, 0, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
}

.time-display {
  color: #f6f6f6;
  font-size: 17px;
  font-family: "Object Sans", "Futura", "Avenir", sans-serif;
  font-weight: 400;
  word-wrap: break-word;
}

.bottom-gradient {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 471px;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 5;
  pointer-events: none;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px 40px 40px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  z-index: 10;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 20px;
  position: relative;
  border-radius: 8px;
}

.bottom-nav-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 182px;
  height: 186px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.bottom-nav-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 182px;
  height: 186px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: var(
      --shine-gradient,
      linear-gradient(
        90deg,
        #8b3f86 0%,
        #ffffff 10%,
        #ce4068 20%,
        transparent 30%
      )
    )
    border-box;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: subtract;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: var(--shine-glow, none);
}

.bottom-nav-item:hover::before {
  opacity: 1;
}

.bottom-nav-item:hover::after {
  opacity: 1;
}

.icon-container {
  display: contents;
}

.bottom-nav-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Desktop hover effect for bottom nav icons */
@media (hover: hover) {
  .bottom-nav-item:hover .bottom-nav-icon {
    transform: scale(1.1);
  }

  .bottom-nav-item:hover span {
    transform: scale(1.1);
  }
}

.bottom-nav-item span {
  color: #fbf5ed;
  font-size: 16px;
  font-family: "Object Sans", "Futura", "Avenir", sans-serif;
  letter-spacing: 0.85px;
  word-wrap: break-word;
  text-align: center;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.popover-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.popover-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.popover-pane {
  width: 656px;
  height: 610px;
  background: rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
  position: absolute;
  top: 27px;
  right: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.popover-overlay.active .popover-pane {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  background: rgba(0, 0, 0, 0.2);
}

.popover-content {
  height: 100%;
  overflow-y: auto;
  padding: 52px;
}

.popover-content::-webkit-scrollbar {
  width: 8px;
}

.popover-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.popover-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.rss-item {
  margin-bottom: 60px;
  display: flex;
  gap: 20px;
}

.rss-item:not(:last-child)::after {
  content: "";
  display: block;
  width: 563px;
  margin-top: 40px;
  position: absolute;
  left: 0;
}

.rss-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
}

.rss-image img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.rss-image a {
  display: block;
  text-decoration: none;
}

.rss-image a:hover img {
  opacity: 0.8;
}

.rss-content {
  flex: 1;
  min-width: 0;
}

.rss-title {
  color: white;
  font-size: 16px;
  font-family: "Object Sans", "Futura", "Avenir", sans-serif;
  font-weight: 700;
  letter-spacing: 0.85px;
  word-wrap: break-word;
  margin-bottom: 10px;
}

.rss-title a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.rss-title a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.rss-body {
  color: white;
  font-size: 17px;
  font-family: "Object Sans", "Futura", "Avenir", sans-serif;
  font-weight: 400;
  word-wrap: break-word;
  margin-bottom: 20px;
  line-height: 1.4;
}

.rss-body a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.rss-body a:hover {
  opacity: 0.8;
}

.rss-date {
  color: white;
  font-size: 11px;
  font-family: "Object Sans", "Futura", "Avenir", sans-serif;
  font-weight: 400;
  line-height: 20px;
  word-wrap: break-word;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.menu-pane {
  width: 307px;
  height: auto;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: 4px;
  overflow: hidden;
  position: absolute;
  top: 27px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.menu-pane.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  background: rgba(0, 0, 0, 0.2);
}

#mission-pane {
  left: 195px;
}

#deck-pane {
  left: 340px;
}

.menu-content {
  padding: 30px;
}

.menu-title {
  color: white;
  font-size: 16px;
  font-family: "Object Sans", "Futura", "Avenir", sans-serif;
  font-weight: 700;
  word-wrap: break-word;
  margin-bottom: 15px;
}

.menu-body {
  color: white;
  font-size: 17px;
  font-family: "Object Sans", "Futura", "Avenir", sans-serif;
  font-weight: 400;
  word-wrap: break-word;
  line-height: 1.4;
}

/* Draggable Window */
.draggable-window {
  position: fixed;
  top: calc(50% - 150px);
  left: calc(50% - 250px);
  width: 500px;
  min-height: 300px;
  min-width: 300px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
  z-index: 900;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9) translateY(-20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.draggable-window.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.window-header {
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  cursor: move;
  user-select: none;
}

.window-title {
  color: white;
  font-size: 16px;
  font-family: "Object Sans", "Futura", "Avenir", sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-title-icon {
  width: 16px;
  height: 16px;
}

.window-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.window-close:hover {
  opacity: 0.8;
}

.window-content {
  flex: 1;
  padding: 25px;
  color: white;
  font-family: "Object Sans", "Futura", "Avenir", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-y: auto;
}

.window-content p {
  margin-bottom: 15px;
}

.window-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.window-content li {
  margin-bottom: 8px;
}

/* File Window Styles */
.file-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  padding: 10px;
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.file-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.file-item.disabled {
  cursor: default;
  opacity: 0.5;
}

.file-item.disabled:hover {
  background-color: transparent;
}

.file-icon {
  width: 48px;
  height: 48px;
  opacity: 0.9;
}

.file-name {
  color: white;
  font-size: 13px;
  font-family: "Object Sans", "Futura", "Avenir", sans-serif;
  font-weight: 400;
  text-align: center;
  word-break: break-word;
  max-width: 80px;
}

/* Custom Scrollbars for Windows */
.window-content::-webkit-scrollbar {
  width: 12px;
}

.window-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.window-content::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.window-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.15)
  );
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 0 8px rgba(255, 255, 255, 0.2);
}

.window-content::-webkit-scrollbar-corner {
  background: rgba(255, 255, 255, 0.05);
}

/* Firefox scrollbar support */
.window-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
}

/* Products List Styles */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-item {
  display: block;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.product-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-item.no-link {
  cursor: default;
  opacity: 0.7;
}

.product-item.no-link:hover {
  transform: none;
  box-shadow: none;
}

.product-item h4 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.product-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

/* Window Resize Handles */
.resize-handle {
  position: absolute;
  background: transparent;
  z-index: 10;
}

.resize-handle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Corner handles */
.resize-handle.nw {
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  cursor: nw-resize;
}

.resize-handle.ne {
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  cursor: ne-resize;
}

.resize-handle.sw {
  bottom: 0;
  left: 0;
  width: 8px;
  height: 8px;
  cursor: sw-resize;
}

.resize-handle.se {
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  cursor: se-resize;
}

/* Edge handles */
.resize-handle.n {
  top: 0;
  left: 8px;
  right: 8px;
  height: 4px;
  cursor: n-resize;
}

.resize-handle.s {
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 4px;
  cursor: s-resize;
}

.resize-handle.w {
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  cursor: w-resize;
}

.resize-handle.e {
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  cursor: e-resize;
}

/* Mobile header spacer - invisible by default */
.mobile-header-spacer {
  display: none;
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .background-video-desktop {
    display: none;
  }
  
  .background-video-mobile {
    display: block;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw;
    min-height: 100vh;
    object-fit: fill;
  }
  
  .mobile-overlay {
    display: none;
  }

  /* Mobile header spacer to prevent icons from going behind header */
  .mobile-header-spacer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px; /* Same as header + gradient */
    z-index: 1999; /* Just below header */
    pointer-events: none;
    background: transparent;
  }

  .header-bar {
    padding: 0 20px;
  }

  .header-icon {
    cursor: default;
  }

  /* Remove hover effects on bottom nav icons for mobile */
  .bottom-nav-item:hover .bottom-nav-icon {
    transform: none;
  }

  .bottom-nav-item:hover span {
    transform: none;
  }

  .bottom-nav-item:hover::before {
    opacity: 0;
  }

  .bottom-nav-item:hover::after {
    opacity: 0;
  }

  .header-center {
    margin-left: 20px;
  }

  .nav-menu {
    gap: 30px;
  }

  /* Show mobile-only nav links on mobile */
  .mobile-only-link {
    display: inline-block;
  }

  .time-display {
    display: none;
  }

  #text-window-link,
  #file-window-link {
    display: none;
  }

  .desktop-icons {
    display: none;
  }

  .bottom-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    height: calc(100vh - 27px - 41px);
    justify-items: center;
    align-items: center;
    padding-top: 80px;
  }

  .bottom-nav-item {
    padding: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
  }

  .bottom-nav-item .icon-container {
    width: min(18vw, 80px);
    height: min(18vw, 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
  }

  .bottom-nav-item::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 182px;
    height: 186px;
  }

  .bottom-nav-icon {
    width: min(18vw, 80px);
    height: min(18vw, 80px);
    transition: transform 0.3s ease;
  }

  .bottom-nav-item span {
    font-size: 14px;
    margin-top: 5px;
    white-space: nowrap;
  }

  .bottom-nav-item:nth-child(5) .bottom-nav-icon {
    width: calc(min(18vw, 80px) * 0.8);
    height: calc(min(18vw, 80px) * 0.8);
  }

  .bottom-gradient {
    display: none;
  }

  .cypher-logo-static .logo-desktop {
    display: none;
  }

  .cypher-logo-static .logo-mobile {
    display: block;
    width: 100vw;
    height: auto;
    min-width: 150px;
  }

  .popover-pane {
    width: calc(100vw - 40px);
    max-width: 656px;
    right: 20px;
    left: 20px;
    margin: 0 auto;
  }

  .menu-pane {
    width: calc(100vw - 40px);
    max-width: 307px;
    left: 20px;
    right: auto;
  }

  #mission-pane {
    left: 20px;
  }

  #deck-pane {
    left: 20px;
  }

  /* Mobile RSS layout - single column */
  .rss-item {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
  }

  .rss-image {
    width: 100%;
    height: auto;
    max-height: 200px;
  }

  .rss-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
  }

  .rss-item:not(:last-child)::after {
    width: 100%;
    height: 1px;
    margin-top: 30px;
  }
}

/* Mobile Landscape Breakpoint */
@media (max-width: 768px) and (orientation: landscape) {
  .bottom-nav {
    height: calc(100vh - 27px - 20px);
    gap: 5px;
    padding: 5px;
  }

  .bottom-nav-item {
    padding: 5px;
  }

  .bottom-nav-icon {
    width: min(12vw, 50px);
    height: min(12vw, 50px);
  }

  .bottom-nav-item span {
    font-size: 11px;
    margin-top: 2px;
    letter-spacing: 0.5px;
  }

  .cypher-logo-static .logo-desktop {
    display: none;
  }

  .cypher-logo-static .logo-mobile {
    display: block;
    width: 25vw;
    height: auto;
    max-width: 250px;
    min-width: 120px;
  }

  .bottom-gradient {
    display: none;
  }
}
