/* ==========================================================================
   MOBILE.CSS — GuideUniverse Mobile Optimization & Performance System
   Breakpoints:
     • 1024px — tablets landscape
     • 768px  — tablets portrait & smartphones largos
     • 480px  — smartphones médios (iPhone 12-15, Galaxy S)
     • 360px  — smartphones compactos
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL MOBILE RESETS, TOUCH & SAFE AREAS
   ========================================================================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Prevent automatic iOS font zoom on input focus */
  input, textarea, select {
    font-size: 16px !important;
  }

  /* Global horizontal overflow prevention */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .view-section,
  .home-zenless-showcase,
  .hero-showcase,
  .slanted-slice-section,
  .solaris-world-section,
  .home-news-section,
  .showcase-wrapper {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  /* 100% Mobile Responsive Content Grids */
  .guides-builds-grid,
  .sonata-sets-grid,
  .combat-guides-grid,
  .farm-calendar-grid,
  .home-news-grid,
  .news-editorial-grid,
  .story-chapters-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 16px !important;
  }

  .gallery-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)) !important;
    gap: 10px !important;
  }

  /* Modals 100% responsive on mobile screens */
  .modal-card {
    max-width: calc(100vw - 16px) !important;
    width: calc(100vw - 16px) !important;
    padding: 18px 14px !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    border-radius: 18px !important;
    margin: auto !important;
  }

  .modal-header {
    padding-bottom: 12px !important;
  }

  .modal-title-box h2 {
    font-size: 1.1rem !important;
  }

  /* Admin Floating Dock on Mobile */
  .admin-status-dock {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    right: 12px !important;
    z-index: 950 !important;
  }

  /* Lightbox and Reader Modals */
  .article-reader-card,
  .story-reader-card,
  .quick-search-card {
    max-width: calc(100vw - 16px) !important;
    width: calc(100vw - 16px) !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }
}

/* ==========================================================================
   2. MOBILE HAMBURGER BUTTON & FLOATING HUD NAVBAR
   ========================================================================== */
/* Hamburger Toggle Button (Hidden on Desktop) */
.btn-mobile-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  transition: all var(--trans-fast, 0.2s ease);
  flex-shrink: 0;
  z-index: 100;
}

.btn-mobile-menu-toggle .hamburger-bar {
  width: 16px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-mobile-menu-toggle:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.btn-mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.btn-mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.btn-mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .btn-mobile-menu-toggle {
    display: flex;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  /* Header floating bar layout */
  .alcateia-header.floating-hud-mode {
    top: 8px;
    padding: 0 8px;
  }

  .alcateia-header.floating-hud-mode .alcateia-header-inner {
    max-width: calc(100vw - 16px);
    padding: 5px 8px;
    border-radius: 9999px;
    justify-content: space-between;
  }

  /* Hide desktop horizontal nav links on tablet/mobile */
  .alcateia-nav-bar {
    display: none !important;
  }

  .tools-divider {
    display: none !important;
  }

  .btn-top-admin {
    display: none !important;
  }

  .btn-top-members {
    display: none !important;
  }

  .alcateia-header-tools {
    gap: 4px !important;
  }

  .tool-circle-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  /* Hide username on mobile to prevent header overflow */
  .top-user-pill .top-user-name {
    display: none !important;
  }

  .top-user-pill {
    padding: 3px 6px 3px 3px !important;
    gap: 0 !important;
  }
}

@media (max-width: 480px) {
  .alcateia-header.floating-hud-mode {
    top: 6px;
    padding: 0 6px;
  }

  .alcateia-header.floating-hud-mode .alcateia-header-inner {
    max-width: calc(100vw - 12px);
    padding: 4px 6px;
    border-radius: 9999px;
  }

  .alcateia-logo-text {
    font-size: 0.84rem;
  }

  .alcateia-logo-badge {
    width: 26px;
    height: 26px;
    font-size: 0.74rem;
  }

  .tool-circle-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
}

/* ==========================================================================
   3. FROSTED HUD CAPSULE MOBILE BOTTOM NAVIGATION BAR (Matches Top Header)
   ========================================================================== */
.mobile-curved-nav {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(380px, calc(100vw - 20px));
  height: 58px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  border-radius: 9999px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: rgba(12, 16, 26, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: visible !important;
}

/* Light Theme (Matches top header in light mode shown in user screenshot) */
body.theme-light .mobile-curved-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

@media (max-width: 768px) {
  .mobile-curved-nav {
    display: flex;
  }
  
  /* Extra bottom padding on body so all page content is visible above floating nav */
  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Reposition OST floating player safely above the bottom nav bar */
  .floating-ost-player {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    right: 12px !important;
    z-index: 900 !important;
  }

  .ost-player-pill {
    padding: 4px 10px 4px 6px !important;
    gap: 6px !important;
    background: rgba(10, 14, 24, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  body.theme-light .ost-player-pill {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  }

  body.theme-light .ost-track-name {
    color: #0f172a !important;
  }

  body.theme-light .ost-action-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
  }

  .ost-info-col {
    max-width: 95px !important;
  }

  .ost-track-name {
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .ost-badge-label {
    font-size: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .floating-ost-player {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    right: 8px !important;
  }
}

/* Navigation Items Bar */
.curved-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 3;
  overflow: visible !important;
}

.curved-nav-btn {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  overflow: visible !important;
}

/* Circular button chips matching .tool-circle-btn from top header */
.curved-nav-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-light .curved-nav-icon-wrap {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  color: #64748b !important;
}

.curved-nav-btn:hover .curved-nav-icon-wrap {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.theme-light .curved-nav-btn:hover .curved-nav-icon-wrap {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

/* Active State: Floating elevated golden chip matching user reference */
.curved-nav-btn.active .curved-nav-icon-wrap {
  transform: translateY(-8px) scale(1.1);
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5), 0 2px 8px rgba(0, 0, 0, 0.25);
}

body.theme-light .curved-nav-btn.active .curved-nav-icon-wrap {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4) !important;
}

.curved-nav-label {
  display: none;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-sans, sans-serif);
  color: #f59e0b;
  letter-spacing: 0.04em;
  position: absolute;
  bottom: 2px;
}

body.theme-light .curved-nav-label {
  color: #d97706;
}

.curved-nav-btn.active .curved-nav-label {
  display: block;
}

/* ==========================================================================
   MOBILE BOTTOM SHEET FOR SECONDARY LINKS & TOOLS
   ========================================================================== */
.mobile-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  animation: fadeIn 0.25s ease-out;
}

.mobile-sheet-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0b111e;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -14px 45px rgba(0, 0, 0, 0.9);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 14px;
}

body.theme-light .mobile-sheet-drawer {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 -16px 45px rgba(15, 23, 42, 0.15) !important;
}

.mobile-sheet-drawer.open {
  transform: translateY(0);
}

.mobile-sheet-pill-bar {
  width: 42px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  margin: 0 auto 4px auto;
}

body.theme-light .mobile-sheet-pill-bar {
  background: rgba(0, 0, 0, 0.15) !important;
}

.mobile-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .mobile-sheet-header {
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

.mobile-sheet-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-sheet-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.mobile-sheet-brand-text .sheet-title {
  font-family: var(--font-display, sans-serif);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
}

body.theme-light .mobile-sheet-brand-text .sheet-title {
  color: #0f172a !important;
}

.mobile-sheet-brand-text .sheet-sub {
  font-size: 0.6rem;
  color: #ff3b5c;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.btn-close-sheet {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--trans-fast, 0.2s ease);
}

body.theme-light .btn-close-sheet {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

.btn-close-sheet:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.mobile-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sheet-tile-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #cbd5e1;
  cursor: pointer;
  text-align: left;
  transition: all var(--trans-fast, 0.2s ease);
}

body.theme-light .sheet-tile-btn {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  color: #334155 !important;
}

.sheet-tile-btn:hover,
.sheet-tile-btn:active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

body.theme-light .sheet-tile-btn:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}

.sheet-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.theme-light .sheet-tile-icon {
  background: rgba(0, 0, 0, 0.05) !important;
}

.sheet-tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sheet-tile-title {
  font-family: var(--font-display, sans-serif);
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
}

body.theme-light .sheet-tile-title {
  color: #0f172a !important;
}

.sheet-tile-desc {
  font-size: 0.65rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   4. HOME HERO SHOWCASE (ZENLESS STAGE) — MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  .zenless-stage-container {
    padding-top: 60px;
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
  }

  .marvel-bg-title {
    font-size: clamp(3.8rem, 16vw, 7rem) !important;
    letter-spacing: -0.02em;
    opacity: 0.24 !important;
  }

  .marvel-character-img {
    height: clamp(340px, 58vh, 520px) !important;
    max-width: 94vw !important;
    transform: translateY(-8px) scale(1) !important;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 25px var(--home-glow, rgba(255, 59, 92, 0.35))) !important;
  }

  .marvel-next-preview {
    right: 12px !important;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 25 !important;
  }

  .next-preview-card {
    padding: 4px 10px 4px 4px !important;
    gap: 8px !important;
    border-radius: 36px !important;
    background: rgba(10, 16, 28, 0.9) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
  }

  .next-preview-avatar-wrap {
    width: 34px !important;
    height: 34px !important;
  }

  .next-preview-name {
    font-size: 0.8rem !important;
  }

  .marvel-showcase-float-btn {
    display: none !important;
  }

  .scroll-down-indicator {
    display: none !important;
  }

  /* Bottom Zenless floating dock on mobile */
  .zenless-floating-dock {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 6px 10px !important;
    gap: 8px !important;
    border-radius: 20px !important;
    max-width: calc(100vw - 20px) !important;
    background: rgba(11, 17, 30, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    z-index: 30 !important;
  }

  .dock-avatar-strip {
    max-width: 150px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .dock-avatar-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
}

@media (max-width: 480px) {
  .marvel-bg-title {
    font-size: clamp(3rem, 14vw, 5rem) !important;
  }

  .marvel-character-img {
    height: clamp(280px, 50vh, 400px) !important;
  }

  .marvel-next-preview {
    bottom: 75px !important;
    right: 8px !important;
  }

  .marvel-showcase-float-btn {
    bottom: 75px !important;
    left: 8px !important;
  }

  .btn-dock-primary,
  .btn-dock-secondary {
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
  }
}

/* ==========================================================================
   5. BUILDS & RESONATORS VIEW — MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  .hero-showcase {
    grid-template-columns: 1fr !important;
    padding: 85px 16px 40px 16px !important;
    gap: 1.5rem !important;
  }

  .hero-visual {
    order: -1;
    min-height: 320px !important;
  }

  .character-image {
    height: clamp(300px, 48vh, 440px) !important;
    max-height: 440px !important;
  }

  .visual-backdrop {
    width: 280px !important;
    height: 280px !important;
  }

  .visual-circle {
    width: 250px !important;
    height: 250px !important;
  }

  .hero-content {
    gap: 0.85rem !important;
    max-width: 100% !important;
  }

  .character-name-hero {
    font-size: clamp(2.2rem, 7vw, 3.2rem) !important;
  }

  .hero-actions {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
  }

  /* Slanted slice section */
  .slanted-slice-section {
    clip-path: none !important;
    padding: 40px 14px 60px 14px !important;
    margin-top: 0 !important;
  }

  .slice-header-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .slice-tabs {
    width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 6px !important;
    padding-bottom: 4px !important;
  }

  .slice-tab {
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
    min-height: 40px !important;
  }

  .skills-grid,
  .weapons-grid,
  .teams-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .team-hero-portrait-box {
    width: 68px !important;
    height: 84px !important;
  }

  .team-synergy-connector {
    display: none !important;
  }
}

/* ==========================================================================
   6. ADMIN STUDIO & ASSET LIBRARY MODALS — MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
  .admin-studio-modal {
    width: 98vw !important;
    height: 96vh !important;
    height: 96dvh !important;
    border-radius: 14px !important;
  }

  .admin-studio-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  .admin-studio-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .admin-tabs {
    padding: 0 10px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .admin-tab-btn {
    padding: 8px 12px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  /* Asset Library Modal Mobile */
  .asset-library-modal-card {
    width: 98vw !important;
    height: 96vh !important;
    height: 96dvh !important;
    border-radius: 14px !important;
  }

  .asset-library-header {
    padding: 12px 14px !important;
  }

  .asset-library-controls {
    padding: 10px 14px !important;
    gap: 8px !important;
  }

  .asset-controls-top-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .btn-asset-batch-toggle {
    width: 100% !important;
    justify-content: center !important;
  }

  .asset-category-pills {
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 6px !important;
  }

  .asset-cat-btn {
    white-space: nowrap !important;
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
  }

  .asset-batch-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .asset-batch-actions {
    width: 100% !important;
    justify-content: space-between !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .asset-batch-actions > div {
    width: 100% !important;
  }

  .asset-batch-actions select {
    flex: 1 !important;
  }

  .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .asset-library-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }

  .asset-selected-preview {
    width: 100% !important;
    flex-wrap: wrap !important;
  }

  .asset-footer-actions {
    width: 100% !important;
    justify-content: flex-end !important;
  }
}

/* ==========================================================================
   7. TOUCH DEVICES PERFORMANCE (HOVER & GPU SAVINGS)
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
  /* Avoid sticky hover states on mobile tap */
  .alcateia-news-card:hover,
  .featured-news-card:hover,
  .story-game-card:hover,
  .gallery-item-card:hover,
  .asset-card:hover {
    transform: none !important;
  }

  /* Smooth momentum scrolling */
  .slice-tabs,
  .dock-avatar-strip,
  .zenless-floating-dock,
  .asset-category-pills,
  .admin-tabs {
    -webkit-overflow-scrolling: touch;
  }
}
