/*
  Critical utility fallback for the legacy UFO homepage.
  The page still uses the Tailwind CDN when available, but mobile Safari should
  not collapse into raw document flow if that runtime stylesheet is delayed.
*/
*, ::before, ::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #050505;
  color: #e0e0e0;
}

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.bottom-20 { bottom: 5rem; }
.left-1\/2 { left: 50%; }
.top-1\/2 { top: 50%; }
.-top-6 { top: -1.5rem; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }

.container {
  width: min(100%, 1280px);
  margin-inline: auto;
}

.mx-auto { margin-inline: auto; }
.ml-auto { margin-left: auto; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-24 { margin-bottom: 6rem; }

.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.p-2 { padding: .5rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-inline: .5rem; }
.px-3 { padding-inline: .75rem; }
.px-4 { padding-inline: 1rem; }
.px-5 { padding-inline: 1.25rem; }
.px-6 { padding-inline: 1.5rem; }
.py-1 { padding-block: .25rem; }
.py-2 { padding-block: .5rem; }
.py-3 { padding-block: .75rem; }
.py-12 { padding-block: 3rem; }
.py-20 { padding-block: 5rem; }
.py-24 { padding-block: 6rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pb-2 { padding-bottom: .5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-12 { padding-bottom: 3rem; }
.pl-6 { padding-left: 1.5rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.min-h-\[100svh\] { min-height: 100svh; }
.w-1 { width: .25rem; }
.w-2 { width: .5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-\[1px\] { width: 1px; }
.w-\[75vw\] { width: 75vw; }
.h-1 { height: .25rem; }
.h-2 { height: .5rem; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-\[1px\] { height: 1px; }
.h-\[75vw\] { height: 75vw; }
.max-w-xs { max-width: 20rem; }
.max-w-lg { max-width: 32rem; }
.max-w-\[95vw\] { max-width: 95vw; }
.max-h-\[95vw\] { max-height: 95vw; }
.aspect-square { aspect-ratio: 1 / 1; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-x-auto { overflow-x: auto; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.cursor-pointer { cursor: pointer; }
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

.rounded-full { border-radius: 9999px; }
.rounded-sm { border-radius: .125rem; }
.border { border: 1px solid currentColor; }
.border-t { border-top: 1px solid currentColor; }
.border-b { border-bottom: 1px solid currentColor; }
.border-y {
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.border-4 { border-width: 4px; border-style: solid; }
.border-black { border-color: #000; }
.border-ufo-gray { border-color: #1a1a1a; }
.border-ufo-black { border-color: #050505; }

.bg-black { background-color: #000; }
.bg-white { background-color: #fff; }
.bg-ufo-black { background-color: #050505; }
.bg-ufo-accent { background-color: #ffd700; }
.bg-ufo-gray { background-color: #1a1a1a; }
.bg-\[\#050505\] { background-color: #050505; }
.bg-\[\#080808\] { background-color: #080808; }
.bg-\[\#0a0a0a\] { background-color: #0a0a0a; }
.bg-\[\#121212\] { background-color: #121212; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-sans { font-family: Syne, Helvetica, Arial, sans-serif; }
.font-mono { font-family: "Space Mono", monospace; }
.font-logo { font-family: "Russo One", sans-serif; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -.025em; }
.tracking-tighter { letter-spacing: -.05em; }
.tracking-widest { letter-spacing: .1em; }
.tracking-\[0\.2em\] { letter-spacing: .2em; }
.tracking-\[0\.25em\] { letter-spacing: .25em; }
.tracking-\[0\.3em\] { letter-spacing: .3em; }
.tracking-\[0\.32em\] { letter-spacing: .32em; }
.tracking-\[0\.35em\] { letter-spacing: .35em; }
.tracking-\[0\.4em\] { letter-spacing: .4em; }

.text-black { color: #000; }
.text-white { color: #fff; }
.text-ufo-offwhite { color: #e0e0e0; }
.text-ufo-accent { color: #ffd700; }
.text-red-500 { color: #ef4444; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-\[7px\] { font-size: 7px; }
.text-\[8px\] { font-size: 8px; }
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.opacity-0 { opacity: 0; }
.opacity-10 { opacity: .1; }
.opacity-20 { opacity: .2; }
.opacity-30 { opacity: .3; }
.opacity-40 { opacity: .4; }
.opacity-50 { opacity: .5; }
.opacity-70 { opacity: .7; }
.opacity-80 { opacity: .8; }
.opacity-85 { opacity: .85; }
.opacity-100 { opacity: 1; }

.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.transition-all { transition: all .2s ease; }
.transition-colors { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.transition-opacity { transition: opacity .2s ease; }
.transition-transform { transition: transform .2s ease; }
.duration-300 { transition-duration: .3s; }

@media (min-width: 640px) {
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:w-\[340px\] { width: 340px; }
  .md\:h-\[340px\] { height: 340px; }
  .md\:max-w-lg { max-width: 32rem; }
  .md\:w-auto { width: auto; }
  .md\:pl-12 { padding-left: 3rem; }
  .md\:py-20 { padding-block: 5rem; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .md\:text-xs { font-size: .75rem; line-height: 1rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:text-8xl { font-size: 6rem; line-height: 1; }
  .md\:text-9xl { font-size: 8rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  #root {
    min-height: 100svh;
    overflow-x: hidden;
  }

  #root img[src*="/legacy-home/images/logo5.png"] {
    max-width: min(78vw, 360px);
    max-height: min(78vw, 360px);
  }

  #root nav {
    gap: 10px;
    padding-inline: 14px;
  }

  #root nav a,
  #root nav button {
    max-width: 100%;
    white-space: normal;
    word-break: normal;
  }
}
