/**
 * Fallback layout når Next/Tailwind CSS-chunk ikke når browseren.
 * Loads fra /gamebud-fallback.css (public/) — samme origin som siden.
 */

:root {
  --gamebud-text: #e2e8f0;
  --gamebud-muted: #a8b8ca;
}

body {
  margin: 0;
  font-family: var(--font-inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.gamebud-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gamebud-header-root {
  position: sticky;
  top: 0;
  z-index: 30;
}

.gamebud-header-bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, #121c19, #1a2522, #161f1c);
}

.gamebud-header-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  min-height: 56px;
  box-sizing: border-box;
}

@media (min-width: 400px) {
  .gamebud-header-row {
    gap: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 480px) {
  .gamebud-header-row {
    min-height: 60px;
  }
}

@media (min-width: 640px) {
  .gamebud-header-row {
    gap: 1rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.gamebud-brand-cluster {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Ekstra luft til venstre for logo+GameBud — strammere på mobil */
.gamebud-brand-shift {
  padding-left: 0.5rem;
}

@media (min-width: 400px) {
  .gamebud-brand-shift {
    padding-left: 0.75rem;
  }
}

@media (min-width: 640px) {
  .gamebud-brand-shift {
    padding-left: 1.5rem;
  }
}

@media (min-width: 768px) {
  .gamebud-brand-shift {
    padding-left: 2rem;
  }
}

@media (min-width: 1024px) {
  .gamebud-brand-shift {
    padding-left: 2.5rem;
  }
}

.gamebud-auth-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.gamebud-header-row a {
  text-decoration: none;
}

.gamebud-desktop-nav {
  display: none;
  align-items: center;
  gap: 2px;
}

.gamebud-desktop-nav a {
  color: #cbd5e1;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .gamebud-desktop-nav {
    display: flex;
  }
}

.gamebud-mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #121a18;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.gamebud-mobile-nav a {
  color: #64748b;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .gamebud-mobile-nav {
    display: none;
  }
}

.gamebud-main-mobile-pad {
  /* Bundnavigation + evt. iPhone home indicator */
  padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .gamebud-main-mobile-pad {
    padding-bottom: 0;
  }
}

.gamebud-home-outer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, #182520, #1f2d28, #1c2824);
  color: var(--gamebud-text);
}

.gamebud-home-outer h1 {
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(1.75rem, 4vw, 3.5rem);
}

.gamebud-home-outer p {
  color: var(--gamebud-muted);
  line-height: 1.625;
}

.gamebud-ambient-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.gamebud-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.gamebud-glow-a {
  width: min(240px, 65vw);
  height: min(240px, 65vw);
  top: -72px;
  left: -72px;
  background: rgba(20, 184, 166, 0.11);
}

.gamebud-glow-b {
  width: min(200px, 55vw);
  height: min(200px, 55vw);
  top: 26%;
  right: -40px;
  background: rgba(245, 158, 11, 0.09);
}

.gamebud-glow-c {
  width: min(180px, 50vw);
  height: min(180px, 50vw);
  bottom: -40px;
  left: 16%;
  background: rgba(16, 185, 129, 0.11);
}

.gamebud-hero-section {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.75rem 1rem 3rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .gamebud-hero-section {
    padding: 4rem 1.25rem 3.5rem;
  }
}

@media (min-width: 768px) {
  .gamebud-hero-section {
    padding: 6rem 1.25rem;
  }
}

.gamebud-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.gamebud-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: #e2e8f0 !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  min-height: 2rem;
}

.gamebud-auth-cluster > a[href="/auth/login"] {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.gamebud-auth-cluster > a[href="/auth/register"] {
  color: #fff !important;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.gamebud-hero-section a[href^="/auth"],
.gamebud-hero-section a[href="/play"],
.gamebud-hero-section a[href="/messages"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0.25rem 0.35rem 0.25rem 0;
}

.gamebud-hero-section a[href="/auth/register"],
.gamebud-hero-section a[href="/play"]:first-of-type {
  color: #fff !important;
  background: #0d9488;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gamebud-hero-section a[href="/play"]:not([href*="register"]),
.gamebud-hero-section a[href="/messages"] {
  color: #e7e5e4 !important;
  background: transparent;
  border: 1px solid #57534e;
}
