:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.95);
  background-color: #0a1f0a;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  position: absolute;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1f0a 0%, #0d260d 100%);
  background-attachment: fixed;
  background-size: cover;
  overflow-x: hidden;

  /* Add a subtle pattern overlay */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%234caf50' fill-opacity='0.03' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Mobile-first responsive design improvements */
@media (max-width: 600px) {
  body {
    background-attachment: scroll; /* Better performance on mobile */
  }

  /* Ensure touch targets are at least 44px */
  button, .MuiButton-root {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improve text readability on small screens */
  .MuiTypography-root {
    word-break: break-word;
    hyphens: auto;
  }

  /* Prevent horizontal scrolling */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Tablet optimizations */
@media (min-width: 601px) and (max-width: 960px) {
  /* Tablet-specific styles */
  .MuiContainer-root {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Desktop optimizations */
@media (min-width: 961px) {
  /* Desktop-specific styles */
  .MuiContainer-root {
    padding-left: 24px;
    padding-right: 24px;
  }
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: rgba(255, 255, 255, 0.95);
    background-color: #0a1f0a;
  }
  a:hover {
    color: #ffeb3b;
  }
  button {
    background-color: #1b5e20;
    color: white;
  }
  body {
    background: linear-gradient(135deg, #0a1f0a 0%, #0d260d 100%);
    background-attachment: fixed;
  }
}
/* Web3Modal Trust Wallet Priority Styles */

/* Trust Wallet Priority - Make it stand out */
w3m-modal wui-wallet-button[data-wallet-id="4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0"] {
  order: -999 !important;
  border: 2px solid #FFA000 !important;
  background: linear-gradient(135deg, #FFA000 0%, #FF8F00 100%) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(255, 160, 0, 0.4) !important;
  margin-bottom: 8px !important;
}

/* Trust Wallet text styling */
w3m-modal wui-wallet-button[data-wallet-id="4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0"] wui-text {
  color: white !important;
  font-weight: bold !important;
}

/* Mobile specific - Trust Wallet first */
@media (max-width: 768px) {
  w3m-modal wui-wallet-button[data-wallet-id="4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0"] {
    order: -999 !important;
    transform: scale(1.1) !important;
    margin-bottom: 12px !important;
  }
}


