/* --- Mythic Mobile UI Overhaul Patch --- */
@media screen and (max-width: 768px) {
  /* 1. Header & Ticker Compression */
  .top-ticker, [class*="shipment"], [class*="ticker"] {
    height: 24px !important;
    font-size: 0.65rem !important;
    line-height: 24px !important;
    padding: 0 4px !important;
  }
  
  /* Hide the crowded horizontal sub-links on mobile */
  .sub-nav, .desktop-links, nav > ul:not(.drawer-menu), .menu-links {
    display: none !important;
  }

  /* 2. Character Trinity -> Smooth Swipe Carousel */
  .trinity-container, .characters-wrapper, .trinity-grid, .hero-trinity {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
    padding: 1rem 1.5rem !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .trinity-container::-webkit-scrollbar, 
  .characters-wrapper::-webkit-scrollbar {
    display: none;
  }
  .trinity-container > *, 
  .characters-wrapper > *,
  .trinity-member, 
  .character-card {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    scroll-snap-align: center !important;
  }
  .trinity-container img, 
  .characters-wrapper img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  /* 3. Typography Scaling */
  .character-title, .trinity-names, h1, h2 {
    font-size: 1rem !important;
    letter-spacing: 0.12em !important;
    word-break: break-word;
  }

  /* 4. Primary CTA Button */
  .mobile-cta-wrapper {
    display: flex !important;
    justify-content: center;
    margin: 1.5rem auto !important;
  }
  .btn-void-shop {
    display: inline-block !important;
    padding: 0.85rem 2rem !important;
    color: #ff3b30 !important;
    border: 1px solid #ff3b30 !important;
    background: rgba(10, 0, 0, 0.85) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.4) !important;
    border-radius: 2px !important;
  }

  /* 5. Fixed Sticky Bottom Navigation */
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 58px !important;
    background: rgba(5, 5, 5, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(255, 59, 48, 0.2) !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 99999 !important;
  }
  .mobile-bottom-bar a {
    color: #888 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-family: inherit !important;
  }
  .mobile-bottom-bar a:hover, 
  .mobile-bottom-bar a.active {
    color: #ff3b30 !important;
    text-shadow: 0 0 8px rgba(255, 59, 48, 0.6);
  }

  /* 6. Scroll Hint */
  .scroll-indicator {
    display: block !important;
    text-align: center;
    color: #666;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    animation: voidPulse 2s infinite ease-in-out;
    margin: 1rem 0 4rem 0;
  }
  @keyframes voidPulse {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(5px); }
  }
}

/* --- Fix Manifesto Strip Artifacts & Height --- */
@media screen and (max-width: 768px) {
  .manifesto-strip {
    min-height: 380px !important;
    background-position: center top !important;
    background-size: cover !important;
    overflow: hidden !important;
  }

  /* Clear any rogue pseudo-elements or dark mask boxes */
  .manifesto-strip *::before,
  .manifesto-strip *::after {
    display: none !important;
  }

  /* Ensure the button text is clean and isolated */
  .manifesto-strip .ms-sub a {
    display: inline-block !important;
    position: relative !important;
    background: rgba(0, 0, 0, 0.85) !important;
    border: 1px solid #ff3b30 !important;
    padding: 0.85rem 1.75rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.15em !important;
    color: #fff !important;
    text-decoration: none !important;
  }
}

/* --- Target Exact Manifesto Strip Classes --- */
@media screen and (max-width: 768px) {
  .manifesto-strip {
    position: relative !important;
    background: url('trinity.webp') center center / cover no-repeat !important;
    border-top: 1px solid #ff3b30 !important;
    border-bottom: 1px solid #ff3b30 !important;
    min-height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 1.5rem 1rem !important;
    box-shadow: inset 0 0 40px #000, 0 0 15px rgba(255, 59, 48, 0.2) !important;
  }

  .manifesto-strip::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.8) 100%) !important;
    z-index: 1 !important;
  }

  /* Hide the hard-to-read red body text */
  .manifesto-strip .ms-text {
    display: none !important;
  }

  /* Style the 'Read The Manifesto' link button */
  .manifesto-strip .ms-sub {
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .manifesto-strip .ms-sub a {
    display: inline-block !important;
    color: #fff !important;
    background: rgba(10, 0, 0, 0.85) !important;
    border: 1px solid #ff3b30 !important;
    padding: 0.75rem 1.5rem !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    box-shadow: 0 0 12px rgba(255, 59, 48, 0.4) !important;
  }
}

/* --- Fix Manifesto Strip Artifacts & Height --- */
@media screen and (max-width: 768px) {
  .manifesto-strip {
    min-height: 380px !important;
    background-position: center top !important;
    background-size: cover !important;
    overflow: hidden !important;
  }

  /* Clear any rogue pseudo-elements or dark mask boxes */
  .manifesto-strip *::before,
  .manifesto-strip *::after {
    display: none !important;
  }

  /* Ensure the button text is clean and isolated */
  .manifesto-strip .ms-sub a {
    display: inline-block !important;
    position: relative !important;
    background: rgba(0, 0, 0, 0.85) !important;
    border: 1px solid #ff3b30 !important;
    padding: 0.85rem 1.75rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.15em !important;
    color: #fff !important;
    text-decoration: none !important;
  }
}

/* --- Fix Manifesto Strip Artifacts & Height --- */
@media screen and (max-width: 768px) {
  .manifesto-strip {
    min-height: 380px !important;
    background-position: center top !important;
    background-size: cover !important;
    overflow: hidden !important;
  }

  /* Clear any rogue pseudo-elements or dark mask boxes */
  .manifesto-strip *::before,
  .manifesto-strip *::after {
    display: none !important;
  }

  /* Ensure the button text is clean and isolated */
  .manifesto-strip .ms-sub a {
    display: inline-block !important;
    position: relative !important;
    background: rgba(0, 0, 0, 0.85) !important;
    border: 1px solid #ff3b30 !important;
    padding: 0.85rem 1.75rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.15em !important;
    color: #fff !important;
    text-decoration: none !important;
  }
}

/* --- Strip Out Hidden Scanline/Watermark Blockers --- */
@media screen and (max-width: 768px) {
  .manifesto-strip::before,
  .manifesto-strip::after {
    display: none !important;
    content: none !important;
  }

  /* Hide any internal watermark, svg, or overlay containers */
  .manifesto-strip svg,
  .manifesto-strip [class*="overlay"],
  .manifesto-strip [class*="watermark"],
  .manifesto-strip [class*="scanline"],
  .manifesto-strip [class*="grid-bg"] {
    display: none !important;
  }
}

/* --- Mobile Fix: Hide Top Hero Trinity & Fit All 3 Characters in Manifesto --- */
@media screen and (max-width: 768px) {
  /* 1. Hide the Trinity section at the very top hero fold */
  .hero-trinity,
  .trinity-container,
  .trinity-section,
  [class*="hero"] [class*="trinity"] {
    display: none !important;
  }

  /* 2. Fit all 3 characters cleanly in the Manifesto section */
  .manifesto-strip {
    min-height: 240px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: #000 !important;
    padding: 1rem 0.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }

  .manifesto-strip .ms-sub {
    margin-top: auto !important;
    padding-bottom: 0.5rem !important;
  }
}

/* --- Global & Desktop Refinements --- */

/* 1. Hide the top hero Trinity across all screen sizes */
.hero-trinity,
.trinity-container,
.trinity-section,
[class*="hero"] [class*="trinity"] {
  display: none !important;
}

/* 2. Full-Resolution Trinity Background in Manifesto Strip */
.manifesto-strip {
  position: relative !important;
  background-image: url('trinity.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #000 !important;
  min-height: 480px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: center !important;
  padding: 3rem 1.5rem !important;
  border-top: 1px solid #ff3b30 !important;
  border-bottom: 1px solid #ff3b30 !important;
  box-shadow: inset 0 0 60px #000, 0 0 20px rgba(255, 59, 48, 0.25) !important;
}

/* Clear scanline overlays & watermarks globally */
.manifesto-strip::before,
.manifesto-strip::after,
.manifesto-strip svg,
.manifesto-strip [class*="overlay"],
.manifesto-strip [class*="watermark"],
.manifesto-strip [class*="scanline"],
.manifesto-strip [class*="grid-bg"] {
  display: none !important;
  content: none !important;
}

/* Hide low-contrast body text */
.manifesto-strip .ms-text {
  display: none !important;
}

/* Center and style the Manifesto CTA button */
.manifesto-strip .ms-sub {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
  text-align: center !important;
}

.manifesto-strip .ms-sub a {
  display: inline-block !important;
  color: #fff !important;
  background: rgba(10, 0, 0, 0.85) !important;
  border: 1px solid #ff3b30 !important;
  padding: 1rem 2.25rem !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.5) !important;
  transition: all 0.2s ease-in-out !important;
}

.manifesto-strip .ms-sub a:hover {
  background: #ff3b30 !important;
  color: #000 !important;
  box-shadow: 0 0 25px rgba(255, 59, 48, 0.8) !important;
}

/* --- Fix Mobile Trinity Aspect Ratio & Unzoom --- */
@media screen and (max-width: 768px) {
  .manifesto-strip {
    min-height: unset !important;
    aspect-ratio: 16 / 9 !important;
    background-image: url('trinity.webp') !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: #000 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 0.75rem !important;
  }

  .manifesto-strip .ms-sub a {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.12em !important;
  }
}

/* --- [SECTOR: OASIS] - PRODUCT PROTOCOL STYLES --- */
.oasis-drop-section {
  width: 100%;
  padding: 3rem 1.25rem 5rem;
  background-color: #050505;
  color: #efefef;
  font-family: monospace, -apple-system, sans-serif;
  box-sizing: border-box;
}

.oasis-drop-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .oasis-drop-container {
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
  }
}

.oasis-media-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.oasis-frame {
  position: relative;
  background: #080808;
  border: 1px solid rgba(234, 88, 12, 0.35);
  box-shadow: 0 0 25px rgba(234, 88, 12, 0.15), inset 0 0 40px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.frame-tag {
  position: absolute;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: #ea580c;
  font-family: monospace;
  z-index: 2;
  pointer-events: none;
  background: rgba(5, 5, 5, 0.75);
  padding: 2px 6px;
  border: 1px solid rgba(234, 88, 12, 0.2);
}

.top-left { top: 8px; left: 8px; }
.top-right { top: 8px; right: 8px; }
.bottom-left { bottom: 8px; left: 8px; }
.bottom-right { bottom: 8px; right: 8px; color: #9333ea; border-color: rgba(147, 51, 234, 0.3); }

.oasis-img-viewport {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #0e0e0e 0%, #050505 100%);
}

.oasis-img-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease;
}

.oasis-thumbnails {
  display: flex;
  gap: 0.75rem;
}

.thumb-btn {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumb-btn img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid #222;
}

.thumb-btn span {
  font-size: 0.65rem;
  font-family: monospace;
  letter-spacing: 0.12em;
  color: #888;
}

.thumb-btn.active {
  border-color: #9333ea;
  background: rgba(147, 51, 234, 0.08);
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.25);
}

.thumb-btn.active span {
  color: #efefef;
}

.oasis-details-col {
  display: flex;
  flex-direction: column;
}

.sector-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 4px 10px;
  border: 1px solid rgba(234, 88, 12, 0.4);
  background: rgba(234, 88, 12, 0.08);
  width: fit-content;
  margin-bottom: 0.75rem;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ea580c;
  box-shadow: 0 0 8px #ea580c;
  animation: oasisPulse 1.8s infinite;
}

@keyframes oasisPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.status-text {
  font-size: 0.65rem;
  font-family: monospace;
  letter-spacing: 0.16em;
  color: #ea580c;
}

.oasis-item-title {
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: #f5f5f4;
  margin: 0.25rem 0 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.oasis-price-bar {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.price-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #c41a0e;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(196, 26, 14, 0.4);
}

.tax-tag {
  font-size: 0.65rem;
  font-family: monospace;
  color: #666;
  letter-spacing: 0.1em;
}

.oasis-brief {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #aaa;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 1.25rem;
}

.spec-group {
  margin-bottom: 1.25rem;
}

.spec-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-family: monospace;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  color: #888;
}

.spec-selected {
  color: #efefef;
  font-weight: 600;
}

.swatch-cluster {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.swatch-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--swatch-bg);
  border: 1px solid #333;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.swatch-node.active {
  border: 2px solid #ea580c;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.6);
  transform: scale(1.15);
}

.size-cluster {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-node {
  background: #0a0a0a;
  border: 1px solid #222;
  color: #efefef;
  font-family: monospace;
  font-size: 0.75rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.size-node:hover {
  border-color: #444;
}

.size-node.active {
  border-color: #9333ea;
  color: #fff;
  background: rgba(147, 51, 234, 0.15);
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.35);
}

.action-cluster {
  margin: 1.75rem 0 2rem;
}

.oasis-deploy-btn {
  position: relative;
  width: 100%;
  padding: 1.15rem;
  background: #000;
  border: 1px solid #c41a0e;
  color: #efefef;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(196, 26, 14, 0.25);
  transition: all 0.2s ease;
}

.oasis-deploy-btn:hover {
  background: #c41a0e;
  color: #000;
  box-shadow: 0 0 30px rgba(196, 26, 14, 0.65);
}

.oasis-spec-sheet {
  background: #080808;
  border: 1px solid #161616;
  padding: 1rem;
  font-family: monospace;
}

.sheet-title {
  font-size: 0.65rem;
  color: #ea580c;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #181818;
  padding-bottom: 0.4rem;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.sheet-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cell-label {
  font-size: 0.6rem;
  color: #666;
}

.cell-val {
  font-size: 0.75rem;
  color: #ccc;
}

/* --- SCROLL RECOVERY & VIEWPORT FIXES --- */
html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh !important;
  -webkit-overflow-scrolling: touch !important;
}

.oasis-drop-section {
  overflow: visible !important;
  height: auto !important;
}

.oasis-drop-container {
  overflow: visible !important;
  height: auto !important;
}
