/* Stable fallback — survives Hostinger deploys when hashed Next CSS 404s.
   Kept intentionally small; full design still comes from /_next/static/css/*.css */

:root {
  --obsidian: #11100e;
  --obsidian-lift: #191815;
  --parchment: #e6d8bc;
  --parchment-dim: #cdbb98;
  --lantern: #c89c4a;
  --lantern-bright: #e5be72;
  --blood: #632c2c;
  --moss: #394438;
  --border: color-mix(in oklab, #e6d8bc 12%, #2a261e);
  --bg: var(--obsidian);
  --ink: var(--parchment);
  --ink-muted: #a89478;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100dvh;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--lantern);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Minimal layout utilities used across the shell */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.w-full { width: 100%; }
.min-h-\[calc\(100svh-5rem\)\] { min-height: calc(100svh - 5rem); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.border { border: 1px solid var(--border); }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-\[10px\] { font-size: 10px; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.12em; }
.text-gold,
.text-lantern { color: var(--lantern); }
.text-muted { color: var(--ink-muted); }
.bg-background,
.bg-card { background: var(--obsidian-lift); }
.border-border { border-color: var(--border); }

/* Bottom nav / shell safety — works even when Tailwind CSS 404s */
.app-main {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
}

.app-tabbar {
  display: block !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-bottom: max(0.3rem, env(safe-area-inset-bottom));
  background: color-mix(in oklab, #11100e 94%, transparent);
  border-top: 1px solid color-mix(in oklab, #e6d8bc 12%, #2a261e);
}

.app-desktop-nav,
.app-desktop-spine {
  display: none !important;
}

.app-mobile-only {
  display: block !important;
}

@media (min-width: 1024px) {
  .app-tabbar {
    display: none !important;
  }
  .app-mobile-only {
    display: none !important;
  }
  .app-desktop-nav,
  .app-desktop-spine {
    display: flex !important;
  }
  .app-main {
    padding-bottom: 2rem;
  }
}

.force-mobile-chrome {
  max-width: 28rem !important;
  flex-direction: column !important;
}
.force-mobile-chrome .app-desktop-spine,
.force-mobile-chrome .app-desktop-nav {
  display: none !important;
}
.force-mobile-chrome .app-tabbar,
.force-mobile-chrome .app-mobile-only {
  display: block !important;
}
.force-mobile-chrome .app-main {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
}
.force-mobile-chrome .app-more-overlay {
  display: block !important;
}
.force-mobile-chrome .campaign-hero-pad {
  padding-top: 4.5rem;
  min-height: calc(100svh - 3.5rem);
}

.app-topbar-under-banner {
  padding-top: 0.5rem !important;
}

.app-tabbar ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.25rem 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.app-tabbar a,
.app-tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.25rem;
  color: var(--ink-muted);
  font-size: 10px;
  background: transparent;
  border: 0;
  width: 100%;
  cursor: pointer;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
