/* SinglePlayerGamers.com — Custom Styles */

/* Smooth everything */
* {
  transition-property: color, background-color, border-color, transform, box-shadow;
  transition-duration: 120ms;
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Better focus styles */
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Game Cards */
.game-card {
  @apply bg-zinc-900 border border-zinc-800 rounded-3xl overflow-hidden flex flex-col;
}

.game-card:hover {
  @apply border-zinc-700 -translate-y-0.5 shadow-xl shadow-black/40;
}

.game-card-header {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 0;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: filter 0.3s ease;
}

.game-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.58) 55%, rgba(0,0,0,0.82) 100%);
  z-index: 1;
}

.game-card:hover .game-card-header {
  filter: brightness(1.04);
}

.game-card-header-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.game-card-score {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
}

.game-card-header.has-real-image::before {
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.52) 52%, rgba(0,0,0,0.78) 100%);
}

.game-card-title {
  font-size: 1.05rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.95);
  position: relative;
  z-index: 2;
}

/* Genre pills */
.genre-pill {
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 2px 9px;
  border-radius: 9999px;
  background-color: #18181b;
  color: #a1a1aa;
  border: 1px solid #27272a;
  white-space: nowrap;
}

/* Rating badge */
.rating-badge {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Filter chips */
.genre-chip {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #27272a;
  background: #18181b;
  color: #a1a1aa;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.genre-chip:hover {
  border-color: #3f3f46;
  color: #d4d4d8;
}

.genre-chip.active {
  background: #27272a;
  border-color: #52525b;
  color: #e4e4e7;
}

/* Discover list tabs */
.discover-tab {
  font-size: 0.8125rem;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid #27272a;
  background: #18181b;
  color: #a1a1aa;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  transition: border-color 150ms, color 150ms, background 150ms;
}

.discover-tab:hover {
  border-color: #3f3f46;
  color: #d4d4d8;
}

.discover-tab.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(217, 70, 239, 0.15));
  border-color: #7c3aed;
  color: #f4f4f5;
}

.editors-pick-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.35);
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: #e9d5ff;
}

.era-filter-panel {
  border: 1px solid #3f3f46;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(39, 39, 42, 0.9), rgba(24, 24, 27, 0.95));
  padding: 1rem 1.25rem;
}

.era-chip {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #52525b;
  background: #18181b;
  color: #e4e4e7;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  transition: border-color 150ms, background 150ms, color 150ms;
}

.era-chip:hover {
  border-color: #a78bfa;
  color: #fafafa;
}

.era-chip.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(217, 70, 239, 0.2));
  border-color: #a78bfa;
  color: #fafafa;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25);
}

.era-filter-panel.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Modal polish */
#game-modal .modal-content {
  animation: modalEnter 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Custom scrollbar for list modal */
#list-content::-webkit-scrollbar,
#game-grid::-webkit-scrollbar {
  width: 6px;
}

#list-content::-webkit-scrollbar-thumb,
#game-grid::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 20px;
}

/* Quiz button states */
.quiz-btn {
  transition: all 80ms ease;
}

.quiz-btn.active {
  background-color: #27272a;
  border-color: #6366f1;
  color: #e0e7ff;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
}

/* Save button states */
.save-btn {
  font-size: 0.75rem;
  padding: 6px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.save-btn.saved {
  background-color: #18181b;
  border-color: #4f46e5;
  color: #a5b4fc;
}

/* Nice select dropdown arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  h1 {
    font-size: 3.25rem !important;
    line-height: 1.05 !important;
  }
}

/* Subtle grid lines on home hero only — subpages use .spg-page-header (no full-bleed band) */
body.spg-home > header {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Shared site nav — works without Tailwind (blog, stuck, home) */
.spg-site-nav-root nav {
  border-bottom: 1px solid #27272a;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.spg-nav-inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .spg-nav-inner {
    padding: 0 1.5rem;
    min-height: 4rem;
  }
}

.spg-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 1;
  text-decoration: none;
  color: inherit;
}

.spg-nav-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
}

.spg-nav-brand-text {
  display: none;
  min-width: 0;
}

@media (min-width: 640px) {
  .spg-nav-brand-text {
    display: block;
  }
}

.spg-nav-brand-title {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .spg-nav-brand-title {
    font-size: 1.25rem;
  }
}

.spg-nav-brand-tld {
  color: #71717a;
  font-size: 0.75rem;
  vertical-align: super;
  margin-left: 0.125rem;
}

.spg-nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

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

.spg-nav-link {
  color: #a1a1aa;
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease;
}

.spg-nav-link:hover {
  color: #fff;
}

.spg-nav-link.is-active {
  color: #fff;
  font-weight: 500;
}

.spg-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid #3f3f46;
  background: transparent;
  color: #e4e4e7;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease;
}

.spg-nav-btn:hover {
  background: #27272a;
}

.spg-nav-btn--list {
  background: #18181b;
}

.spg-nav-btn--menu {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  touch-action: manipulation;
}

.spg-nav-count {
  background: #27272a;
  color: #a1a1aa;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  padding: 0 0.375rem;
  border-radius: 9999px;
  min-width: 1.125rem;
  text-align: center;
}

.spg-nav-mobile-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .spg-nav-mobile-bar {
    display: none;
  }
}

.spg-nav-drawer {
  display: none;
  border-top: 1px solid #27272a;
  background: #09090b;
  padding: 1rem;
}

.spg-nav-drawer.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .spg-nav-drawer,
  .spg-nav-drawer.is-open {
    display: none !important;
  }

  #mobile-menu-btn {
    display: none !important;
  }
}

.spg-nav-drawer-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  color: #d4d4d8;
  text-decoration: none;
}

.spg-nav-drawer-link:hover {
  background: #18181b;
  color: #fff;
}

.spg-nav-drawer-link.is-active {
  background: rgba(24, 24, 27, 0.8);
  color: #fff;
}

.spg-nav-drawer-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  border: none;
  background: transparent;
  color: #d4d4d8;
  font-size: 1rem;
  cursor: pointer;
}

.spg-nav-drawer-btn:hover {
  background: #18181b;
  color: #fff;
}

.spg-nav-account-mobile {
  display: none;
  padding: 0.5rem 0.75rem;
}

.spg-nav-account-mobile.is-visible {
  display: block;
}

.spg-nav-auth-hidden {
  display: none !important;
}

/* Mobile nav drawer — hidden by default (Tailwind hidden + rules below) */
@media (max-width: 1023px) {
  #mobile-menu.is-open,
  .spg-nav-drawer.is-open {
    display: block !important;
  }
}

@media (min-width: 1024px) {
  #mobile-menu,
  #mobile-menu.is-open {
    display: none !important;
  }

  #mobile-menu-btn {
    display: none !important;
  }
}

.hidden {
  display: none !important;
}

#auth-account-wrap:not(.hidden) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#auth-account-wrap-mobile:not(.hidden) {
  display: block;
}

.spg-nav-account-link {
  color: #71717a;
  font-size: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

.spg-nav-account-link:hover {
  color: #fca5a5;
}

.spg-nav-account-link--mobile {
  display: block;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

/* In-app WebView: always use mobile nav (wide layout viewport hides hamburger otherwise) */
html.spg-native-shell .nav-desktop,
html.spg-native-shell .spg-nav-desktop,
html[data-spg-app="1"] .nav-desktop,
html[data-spg-app="1"] .spg-nav-desktop {
  display: none !important;
}

html.spg-native-shell .nav-mobile-bar,
html.spg-native-shell .spg-nav-mobile-bar,
html[data-spg-app="1"] .nav-mobile-bar,
html[data-spg-app="1"] .spg-nav-mobile-bar {
  display: flex !important;
}

html.spg-native-shell .nav-mobile-drawer,
html.spg-native-shell .spg-nav-drawer,
html[data-spg-app="1"] .nav-mobile-drawer,
html[data-spg-app="1"] .spg-nav-drawer {
  display: none;
}

html.spg-native-shell #mobile-menu-btn,
html[data-spg-app="1"] #mobile-menu-btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}

html.spg-native-shell #mobile-menu.is-open,
html.spg-native-shell .spg-nav-drawer.is-open,
html[data-spg-app="1"] #mobile-menu.is-open,
html[data-spg-app="1"] .spg-nav-drawer.is-open {
  display: block !important;
}

html.spg-native-shell nav,
html[data-spg-app="1"] nav {
  padding-top: max(env(safe-area-inset-top, 0px), 36px);
}

@media (min-width: 1024px) {
  html.spg-native-shell .nav-desktop,
  html.spg-native-shell .spg-nav-desktop,
  html[data-spg-app="1"] .nav-desktop,
  html[data-spg-app="1"] .spg-nav-desktop {
    display: none !important;
  }

  html.spg-native-shell .nav-mobile-bar,
  html.spg-native-shell .spg-nav-mobile-bar,
  html[data-spg-app="1"] .nav-mobile-bar,
  html[data-spg-app="1"] .spg-nav-mobile-bar {
    display: flex !important;
  }

  html.spg-native-shell #mobile-menu-btn,
  html[data-spg-app="1"] #mobile-menu-btn {
    display: flex !important;
  }

  html.spg-native-shell #mobile-menu,
  html.spg-native-shell .spg-nav-drawer,
  html[data-spg-app="1"] #mobile-menu,
  html[data-spg-app="1"] .spg-nav-drawer {
    display: none !important;
  }

  html.spg-native-shell #mobile-menu.is-open,
  html.spg-native-shell .spg-nav-drawer.is-open,
  html[data-spg-app="1"] #mobile-menu.is-open,
  html[data-spg-app="1"] .spg-nav-drawer.is-open {
    display: block !important;
  }
}

/* WebView quirk: wide layout viewport + touch — only in the real app shell */
@media (pointer: coarse) and (min-width: 1024px) {
  html.spg-native-shell .spg-nav-desktop,
  html.spg-native-shell .nav-desktop,
  html[data-spg-app="1"] .spg-nav-desktop,
  html[data-spg-app="1"] .nav-desktop {
    display: none !important;
  }

  html.spg-native-shell .spg-nav-mobile-bar,
  html.spg-native-shell .nav-mobile-bar,
  html[data-spg-app="1"] .spg-nav-mobile-bar,
  html[data-spg-app="1"] .nav-mobile-bar {
    display: flex !important;
  }

  html.spg-native-shell #mobile-menu-btn,
  html[data-spg-app="1"] #mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    flex-shrink: 0 !important;
  }

  html.spg-native-shell .spg-nav-drawer,
  html.spg-native-shell #mobile-menu,
  html[data-spg-app="1"] .spg-nav-drawer,
  html[data-spg-app="1"] #mobile-menu {
    display: none;
  }

  html.spg-native-shell .spg-nav-drawer.is-open,
  html.spg-native-shell #mobile-menu.is-open,
  html[data-spg-app="1"] .spg-nav-drawer.is-open,
  html[data-spg-app="1"] #mobile-menu.is-open {
    display: block !important;
  }

  html.spg-native-shell nav,
  html[data-spg-app="1"] nav {
    padding-top: max(env(safe-area-inset-top, 0px), 36px);
  }
}

/* Native app bottom tab bar — always-visible nav in Capacitor WebView */
html.spg-native-shell,
html[data-spg-app="1"] {
  scroll-padding-bottom: var(--spg-tab-bar-clearance, calc(3.5rem + env(safe-area-inset-bottom, 0px) + 1rem));
}

body.spg-has-bottom-nav {
  --spg-tab-bar-clearance: calc(3.5rem + env(safe-area-inset-bottom, 0px) + 1rem);
  padding-bottom: var(--spg-tab-bar-clearance) !important;
}

body.spg-has-bottom-nav .spg-site-footer {
  padding-bottom: calc(1.5rem + var(--spg-tab-bar-clearance)) !important;
}

#spg-bottom-nav-spacer {
  height: var(--spg-tab-bar-clearance);
  flex-shrink: 0;
  width: 100%;
  pointer-events: none;
}

.spg-app-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  border-top: 1px solid #27272a;
  background: rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 1024px) {
  .spg-app-bottom-nav {
    display: none !important;
  }

  body.spg-has-bottom-nav {
    padding-bottom: 0 !important;
  }
}

/* Auth modal — Tailwind-free so blog/app pages work without CDN */
.spg-auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.spg-auth-modal.is-open {
  display: flex;
}

.spg-auth-modal-panel {
  width: 100%;
  max-width: 28rem;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 1.5rem;
  padding: 1.75rem;
  color: #e4e4e7;
}

.spg-auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.spg-auth-modal-kicker {
  color: #a78bfa;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spg-auth-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}

.spg-auth-modal-close {
  border: 0;
  background: transparent;
  color: #71717a;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.spg-auth-modal-close:hover {
  color: #fff;
}

.spg-auth-field {
  margin-bottom: 1rem;
}

.spg-auth-field label {
  display: block;
  font-size: 0.75rem;
  color: #71717a;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.spg-auth-field input {
  width: 100%;
  box-sizing: border-box;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #e4e4e7;
}

.spg-auth-field input:focus {
  outline: none;
  border-color: #52525b;
}

.spg-auth-submit {
  width: 100%;
  border: 0;
  border-radius: 1.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #09090b;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.spg-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spg-auth-message {
  margin-top: 1rem;
  min-height: 1.25rem;
  font-size: 0.875rem;
  color: #a1a1aa;
}

.spg-auth-message.is-success {
  color: #34d399;
}

.spg-auth-message.is-error {
  color: #f87171;
}

.spg-auth-toggle {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #71717a;
}

.spg-auth-toggle button {
  border: 0;
  background: transparent;
  color: #a78bfa;
  cursor: pointer;
  font-size: inherit;
}

.spg-auth-toggle button:hover {
  color: #c4b5fd;
}

.spg-app-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #71717a;
  transition: color 120ms ease, background 120ms ease;
}

.spg-app-tab:hover {
  color: #d4d4d8;
  background: rgba(39, 39, 42, 0.35);
}

.spg-app-tab.is-active {
  color: #c4b5fd;
}

.discover-scroll-sentinel {
  grid-column: 1 / -1;
  min-height: 2rem;
}

/* Blog */
.blog-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: border-color 120ms ease, transform 120ms ease;
}

.blog-card:hover {
  border-color: #3f3f46;
}

.blog-prose {
  color: #d4d4d8;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.blog-prose > * + * {
  margin-top: 1.25rem;
}

.blog-prose h2 {
  color: #fafafa;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.blog-prose h3 {
  color: #f4f4f5;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
}

.blog-prose p {
  color: #d4d4d8;
}

.blog-prose strong {
  color: #fafafa;
  font-weight: 600;
}

.blog-prose a {
  color: #a78bfa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-prose a:hover {
  color: #c4b5fd;
}

.blog-prose ul,
.blog-prose ol {
  padding-left: 1.5rem;
}

.blog-prose li {
  margin-top: 0.5rem;
}

.blog-prose li::marker {
  color: #71717a;
}

.blog-prose blockquote {
  border-left: 3px solid #6366f1;
  padding-left: 1.25rem;
  color: #e4e4e7;
  font-style: italic;
  margin: 1.5rem 0;
}

.blog-prose hr {
  border: none;
  border-top: 1px solid #27272a;
  margin: 2.5rem 0;
}

.blog-prose em {
  color: #a1a1aa;
}

/* Stuck Assist — branded result cards */
.stuck-brand {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.stuck-brand--youtube {
  background: #ff0000;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.stuck-brand--youtube svg {
  width: 1.35rem;
  height: 1.35rem;
}

.stuck-brand--site {
  background: #fafafa;
  padding: 0.4rem;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}

.stuck-brand--site img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stuck-brand--fallback {
  background: #27272a;
  color: #e4e4e7;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stuck-result-card {
  display: block;
  border-radius: 1rem;
  border: 1px solid #27272a;
  background: rgb(24 24 27 / 0.65);
  padding: 1rem 1.15rem;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.stuck-result-card:hover {
  border-color: rgb(139 92 246 / 0.45);
  background: #18181b;
  transform: translateY(-1px);
}

.stuck-result-card:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* Shared page shell (footer sticks to bottom) */
.spg-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #09090b;
  color: #e4e4e7;
}

.spg-page > main {
  flex: 1 0 auto;
}

/* Shared subpage header — matches Stuck / Newsletter (not the old blog hero) */
.spg-page-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.spg-page-main--wide {
  max-width: 64rem;
}

.spg-page-main--discover {
  max-width: 96rem;
}

.spg-page-header {
  margin-bottom: 2rem;
}

.spg-page-header--center {
  text-align: center;
}

.spg-page-header--center .spg-page-lead {
  margin-left: auto;
  margin-right: auto;
}

.spg-page-kicker {
  color: #a78bfa;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

/* Shared headline scale — every page except the home marketing hero */
.spg-page-header h1,
.spg-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fafafa;
  line-height: 1.25;
  max-width: 100%;
}

.spg-section-title {
  color: inherit;
}

@media (min-width: 768px) {
  .spg-page-header h1,
  .spg-section-title {
    font-size: 1.875rem;
  }
}

/* App WebView: wide layout viewport — one headline size everywhere (not home hero) */
html.spg-native-shell .spg-page-header h1,
html[data-spg-app="1"] .spg-page-header h1,
html.spg-native-shell .spg-section-title,
html[data-spg-app="1"] .spg-section-title {
  font-size: 1.5rem !important;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

/* Home only: full-bleed marketing hero stays large */
body.spg-home > header h1 {
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

@media (min-width: 640px) {
  body.spg-home > header h1 {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  body.spg-home > header h1 {
    font-size: 4.5rem;
  }
}

html.spg-native-shell body.spg-home > header h1,
html[data-spg-app="1"] body.spg-home > header h1 {
  font-size: 2rem !important;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.spg-page-lead {
  margin: 0;
  max-width: 36rem;
  color: #a1a1aa;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Email link utility pages — auth confirm, newsletter unsubscribe */
.spg-status-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  color: #a78bfa;
}

.spg-status-actions {
  margin-top: 2rem;
  text-align: center;
}

.spg-page-section {
  margin-top: 0;
}

/* Shared site footer (all pages — no Tailwind required) */
#spg-site-footer {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}

.spg-site-footer {
  border-top: 1px solid #27272a;
  padding: 2.5rem 0;
}

.spg-site-footer-inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  color: #71717a;
}

.spg-site-footer-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .spg-site-footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
  }

  .spg-site-footer-attrib {
    text-align: right;
    max-width: 28rem;
  }
}

.spg-site-footer-copy {
  flex-shrink: 0;
}

.spg-site-footer-attrib {
  margin: 0;
  line-height: 1.5;
  color: #a1a1aa;
}

.spg-site-footer a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 120ms ease;
}

.spg-site-footer a:hover {
  color: #e4e4e7;
}

.spg-site-footer-attrib a {
  color: #38bdf8;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.spg-site-footer-attrib a:hover {
  color: #7dd3fc;
}

.spg-site-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: #71717a;
}

.spg-site-footer-sep {
  color: #3f3f46;
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
