:root {
  --background: oklch(0.97 0.02 85);
  --foreground: oklch(0.27 0.04 50);
  --card: oklch(0.99 0.012 90);
  --card-foreground: oklch(0.27 0.04 50);
  --primary: oklch(0.72 0.14 35);
  --primary-foreground: oklch(0.99 0.01 80);
  --secondary: oklch(0.92 0.04 80);
  --secondary-foreground: oklch(0.3 0.04 50);
  --muted: oklch(0.94 0.025 85);
  --muted-foreground: oklch(0.5 0.03 60);
  --accent: oklch(0.82 0.11 200);
  --accent-foreground: oklch(0.25 0.04 240);
  --border: oklch(0.88 0.02 75);
  --ring: oklch(0.72 0.14 35);
  --peach: oklch(0.84 0.09 50);
  --sky: oklch(0.85 0.08 220);
  --sage: oklch(0.83 0.07 150);
  --butter: oklch(0.92 0.1 95);
  --blush: oklch(0.86 0.07 15);
  --radius-card: 24px;
  --radius-popover: 18px;
  --font-display: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --shadow-card: 0 20px 60px -20px rgba(120, 80, 40, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Global nav — fallback if Tailwind CDN is slow/unavailable */
#global-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
  background: color-mix(in oklch, var(--card) 80%, transparent);
  backdrop-filter: blur(12px);
}

#global-nav > div {
  display: flex;
  max-width: 72rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
}

#global-nav [role="tablist"] {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 70%, transparent);
  overflow: visible;
}

#global-nav [role="tab"] {
  border-radius: 9999px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-foreground);
}

#global-nav [role="tab"][aria-selected="true"],
#global-nav .nav-dropdown__trigger--active {
  background: oklch(0.51 0.2 277);
  color: white;
}

#global-nav .nav-dropdown__trigger--active .nav-dropdown__chevron {
  opacity: 1;
}

.nav-dropdown {
  overflow: visible;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.nav-dropdown__menu {
  display: none;
}

/* Page nav dropdowns — default hover (see nav.js `openOn`) */
.nav-dropdown[data-dropdown-open="hover"]:hover .nav-dropdown__menu,
.nav-dropdown[data-dropdown-open="hover"]:focus-within .nav-dropdown__menu,
.nav-dropdown[data-dropdown-open="hover"].nav-dropdown--open .nav-dropdown__menu {
  display: block;
}

/* Opt-in click dropdowns for page nav when hover is unsuitable */
.nav-dropdown[data-dropdown-open="click"].nav-dropdown--open .nav-dropdown__menu {
  display: block;
}

.nav-dropdown__menu a {
  text-decoration: none;
}

.resources-page {
  position: relative;
  z-index: 1;
}

#global-footer {
  margin-top: 1rem;
}

.resources-page .font-display {
  font-family: var(--font-display);
}

/* Resources — article card grid */
.article-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .article-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .article-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Resources — filtered link card grid (compact square tiles) */
.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .resource-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .resource-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  }
}

/* Resources — filtered link cards (websites, online games) */
.resource-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  border-radius: 0.625rem;
  overflow: hidden;
  background: color-mix(in oklch, var(--card) 92%, var(--muted));
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px color-mix(in oklch, var(--foreground) 4%, transparent);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.resource-card:hover {
  box-shadow: 0 4px 16px color-mix(in oklch, var(--foreground) 7%, transparent);
  transform: translateY(-2px);
}

.resource-card__media {
  position: relative;
  flex: 0 0 40%;
  min-height: 0;
  overflow: hidden;
  background: color-mix(in oklch, var(--muted) 60%, transparent);
}

.resource-card__image,
.resource-card__media .article-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resource-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.125rem;
  min-height: 0;
  padding: 0.375rem 0.375rem 0;
  background: color-mix(in oklch, var(--muted) 35%, var(--card));
}

.resource-card__title {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 0.125rem;
}

.resource-card__excerpt {
  flex: 1 1 auto;
  min-height: 0;
  font-size: 0.625rem;
  line-height: 1.35;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 0.125rem;
  margin-bottom: 0.125rem;
}

.resource-card__cta {
  display: block;
  margin: 0 -0.375rem;
  padding: 0.375rem 0.5rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.resource-card__cta--emerald {
  background: color-mix(in oklch, var(--sage) 72%, oklch(0.45 0.12 155));
}

.resource-card__cta--sky {
  background: color-mix(in oklch, var(--sky) 70%, oklch(0.52 0.14 230));
}

.resource-card__cta:hover {
  filter: brightness(1.06);
}

/* Resources — YouTube channel circles */
.yt-channel-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .yt-channel-grid {
    justify-content: flex-start;
    gap: 2.5rem 3rem;
  }
}

.yt-channel {
  width: 7.5rem;
  text-align: center;
}

.yt-channel__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}

.yt-channel__icon-wrap {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  flex-shrink: 0;
}

.yt-channel__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid color-mix(in oklch, var(--border) 80%, white);
  box-shadow: 0 4px 16px color-mix(in oklch, var(--foreground) 8%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.yt-channel__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px color-mix(in oklch, var(--foreground) 20%, transparent);
}

.yt-channel__avatar--rose {
  background: linear-gradient(135deg, oklch(0.65 0.18 15) 0%, oklch(0.55 0.2 25) 100%);
}

.yt-channel__avatar--sky {
  background: linear-gradient(135deg, oklch(0.72 0.12 230) 0%, oklch(0.58 0.16 260) 100%);
}

.yt-channel__avatar--amber {
  background: linear-gradient(135deg, oklch(0.82 0.14 85) 0%, oklch(0.68 0.16 55) 100%);
}

.yt-channel__badge {
  position: absolute;
  right: -0.125rem;
  bottom: -0.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: #ff0000;
  color: #ff0000;
  border: 2px solid white;
  box-shadow: 0 2px 6px color-mix(in oklch, var(--foreground) 15%, transparent);
}

.yt-channel__badge-icon {
  width: 0.875rem;
  height: 0.875rem;
}

.yt-channel__link:hover .yt-channel__avatar {
  transform: scale(1.06);
  border-color: color-mix(in oklch, #ff0000 40%, var(--border));
  box-shadow: 0 6px 20px color-mix(in oklch, var(--foreground) 12%, transparent);
}

.yt-channel__name {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-channel__desc {
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.yt-channel__link:hover .yt-channel__name {
  color: #cc0000;
}

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: color-mix(in oklch, var(--card) 92%, var(--muted));
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px color-mix(in oklch, var(--foreground) 6%, transparent);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  box-shadow: 0 8px 32px color-mix(in oklch, var(--foreground) 10%, transparent);
  transform: translateY(-2px);
}

.article-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in oklch, var(--muted) 60%, transparent);
}

.article-card__image,
.article-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card__placeholder--emerald {
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--sage) 55%, white) 0%,
    color-mix(in oklch, var(--peach) 45%, white) 100%
  );
}

.article-card__placeholder--sky {
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--sky) 50%, white) 0%,
    color-mix(in oklch, var(--butter) 40%, white) 100%
  );
}

.article-card__lang {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: color-mix(in oklch, var(--card) 88%, transparent);
  color: var(--muted-foreground);
  backdrop-filter: blur(6px);
}

.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0;
  background: color-mix(in oklch, var(--muted) 35%, var(--card));
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--foreground);
}

.article-card__excerpt {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.article-card__cta {
  display: block;
  margin: 0 -1.25rem;
  padding: 0.875rem 1.25rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.article-card__cta--emerald {
  background: color-mix(in oklch, var(--sage) 72%, oklch(0.45 0.12 155));
}

.article-card__cta--sky {
  background: color-mix(in oklch, var(--sky) 70%, oklch(0.52 0.14 230));
}

.article-card__cta:hover {
  filter: brightness(1.06);
}

.article-card__cta--soon {
  background: color-mix(in oklch, var(--muted-foreground) 35%, var(--muted));
  color: color-mix(in oklch, var(--muted-foreground) 85%, white);
  cursor: default;
  pointer-events: none;
}

/* Resources — website topic filters */
.resource-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.resource-filter-pill {
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--muted-foreground);
  background: color-mix(in oklch, var(--card) 85%, transparent);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.resource-filter-pill:hover {
  border-color: color-mix(in oklch, var(--primary) 35%, var(--border));
  color: var(--foreground);
  background: color-mix(in oklch, var(--primary) 8%, var(--card));
}

.resource-filter-pill--active {
  border-color: color-mix(in oklch, var(--primary) 50%, var(--border));
  color: white;
  background: oklch(0.51 0.2 277);
}

.resource-filter-pill--clear {
  border-style: dashed;
  color: var(--muted-foreground);
}

.resource-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.resource-card__tag {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--primary) 75%, var(--foreground));
  background: color-mix(in oklch, var(--primary) 10%, var(--card));
  border: 1px solid color-mix(in oklch, var(--primary) 18%, var(--border));
}

.resource-empty {
  margin-top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--peach) 30%, transparent) 0%,
    color-mix(in oklch, var(--blush) 20%, transparent) 45%,
    color-mix(in oklch, var(--sky) 30%, transparent) 100%
  );
}

.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.85;
}

.ambient__blob--peach {
  width: 520px;
  height: 520px;
  background: var(--peach);
  top: -8%;
  left: -6%;
}

.ambient__blob--sky {
  width: 480px;
  height: 480px;
  background: var(--sky);
  top: 18%;
  right: -10%;
  filter: blur(150px);
}

.ambient__blob--sage {
  width: 440px;
  height: 440px;
  background: var(--sage);
  bottom: 8%;
  left: 12%;
}

.ambient__blob--blush {
  width: 500px;
  height: 500px;
  background: var(--blush);
  top: 42%;
  left: 38%;
  filter: blur(145px);
}

.ambient__blob--butter {
  width: 420px;
  height: 420px;
  background: var(--butter);
  bottom: -6%;
  right: 18%;
}

.ambient__blob--peach2 {
  width: 560px;
  height: 560px;
  background: var(--peach);
  bottom: 22%;
  right: -12%;
  filter: blur(150px);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.inspiration-page {
  position: relative;
  z-index: 1;
}

.inspiration-page .font-display {
  font-family: var(--font-display);
}

.inspiration-references {
  margin-top: 2.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 92%, var(--muted));
  box-shadow: var(--shadow-sm, 0 1px 2px oklch(0.2 0.02 280 / 0.06));
}

.inspiration-references__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.inspiration-references__summary::-webkit-details-marker {
  display: none;
}

.inspiration-references__summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted-foreground);
  border-bottom: 2px solid var(--muted-foreground);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 0.15rem;
}

.inspiration-references[open] .inspiration-references__summary::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.inspiration-references__summary:hover {
  background: color-mix(in oklch, var(--primary) 5%, var(--card));
}

.inspiration-references__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.inspiration-references__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  border-radius: 9999px;
  border: 1px dashed var(--border);
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.inspiration-references__list {
  margin: 0;
  padding: 0 1.25rem 1.25rem 2rem;
  border-top: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
}

.inspiration-references__item {
  padding: 0.65rem 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted-foreground);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 50%, transparent);
}

.inspiration-references__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.inspiration-references__link {
  color: color-mix(in oklch, var(--primary) 80%, var(--foreground));
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.inspiration-references__link:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 70%, transparent);
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-foreground);
  margin-bottom: 1.5rem;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero__accent {
  font-style: italic;
  color: var(--primary);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto;
}

/* Search bar */
.toolbar {
  padding-bottom: 2rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 90%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(120, 80, 40, 0.08);
  margin-bottom: 1.25rem;
}

.search-bar__icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.search-bar__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--foreground);
  outline: none;
}

.search-bar__input::placeholder {
  color: var(--muted-foreground);
}

.search-bar__reset {
  flex-shrink: 0;
  padding: 0.35rem 0.85rem;
  border: none;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-bar__reset:hover {
  background: var(--muted);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter {
  position: relative;
}

.filter__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.35rem;
}

.filter__control {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.filter__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 9rem;
  max-width: 14rem;
  padding: 0.55rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 80%, transparent);
  backdrop-filter: blur(12px);
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter__trigger:hover {
  border-color: color-mix(in oklch, var(--primary) 40%, var(--border));
}

.filter__trigger--active {
  border-color: color-mix(in oklch, var(--primary) 60%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--primary) 20%, transparent), 0 1px 3px rgba(120, 80, 40, 0.08);
  color: var(--foreground);
}

.filter__summary {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border: none;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.filter__clear:hover {
  background: var(--muted);
}

.filter__chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.filter__trigger[aria-expanded="true"] .filter__chevron {
  transform: rotate(180deg);
}

.filter__popover {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 50;
  width: 15rem;
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.375rem;
  border-radius: var(--radius-popover);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.filter__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.filter__option:hover {
  background: var(--muted);
}

.filter__option--selected {
  background: var(--secondary);
}

.filter__check {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0;
}

.filter__option--selected .filter__check {
  opacity: 1;
}

/* Results */
.results__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.results__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.results__count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Game card */
.game-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: visible;
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.game-card--link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.game-card__image {
  position: relative;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
}

.game-card__image--peach { background: var(--peach); }
.game-card__image--sky { background: var(--sky); }
.game-card__image--sage { background: var(--sage); }
.game-card__image--butter { background: var(--butter); }
.game-card__image--blush { background: var(--blush); }

.game-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  z-index: 1;
}

.game-card:hover .game-card__cover {
  transform: scale(1.05);
}

.game-card__cover--hidden {
  display: none;
}

.game-card__image--loaded {
  background: var(--muted);
}

.game-card__emoji {
  font-size: 4.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  transition: transform 0.5s;
  position: relative;
  z-index: 0;
}

.game-card__emoji--fallback {
  display: none;
}

.game-card__image--fallback .game-card__emoji--fallback {
  display: block;
}

.game-card:hover .game-card__emoji {
  transform: scale(1.1) rotate(3deg);
}

.game-card__weight {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: color-mix(in oklch, var(--background) 80%, transparent);
  backdrop-filter: blur(8px);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: capitalize;
}

.game-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  overflow: visible;
}

.game-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.game-card__tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--secondary-foreground);
}

.game-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.game-card__meta-item svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--muted-foreground);
}

.game-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.125rem;
  overflow: visible;
}

.tag--overflow {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.625rem;
  padding: 0.15rem 0.45rem;
}

.tag--has-tooltip {
  position: relative;
  cursor: help;
}

.tag--has-tooltip:hover {
  z-index: 5;
  border-color: color-mix(in oklch, var(--primary) 35%, var(--border));
  color: var(--foreground);
}

.tag__tooltip {
  position: absolute;
  bottom: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  width: max-content;
  max-width: 11rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-popover);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.tag--has-tooltip:hover .tag__tooltip {
  opacity: 1;
  visibility: visible;
}

.tag--tooltip {
  font-size: 0.625rem;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
}

.game-card__targets {
  margin-top: 0.25rem;
  padding-top: 0.625rem;
  border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.game-card__targets-label {
  font-weight: 600;
  color: var(--secondary-foreground);
}

.tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.tag--filled {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.tag--outline {
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}

.tag--age {
  background: color-mix(in oklch, var(--accent) 25%, var(--card));
  border: 1px solid color-mix(in oklch, var(--accent) 40%, var(--border));
  color: var(--accent-foreground);
  font-weight: 600;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-card);
  border: 1px dashed var(--border);
  background: color-mix(in oklch, var(--card) 50%, transparent);
}

.empty-state__emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-state__text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 24rem;
  margin: 0 auto;
}

/* Newsletter signup */
.newsletter {
  margin-top: 3rem;
}

.newsletter__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-card);
  border: 1px solid color-mix(in oklch, var(--sky) 50%, var(--border));
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--sky) 35%, var(--card)) 0%,
    color-mix(in oklch, var(--blush) 20%, var(--card)) 100%
  );
  box-shadow: var(--shadow-card);
}

.newsletter__copy {
  flex: 1;
  min-width: 0;
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent-foreground);
  letter-spacing: -0.02em;
}

.newsletter__emphasis {
  color: oklch(0.45 0.12 250);
}

.newsletter__subtitle {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: color-mix(in oklch, var(--accent-foreground) 75%, var(--muted-foreground));
}

.newsletter__form {
  margin-top: 1.5rem;
}

.newsletter__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-foreground);
  margin-bottom: 0.5rem;
}

.newsletter__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.newsletter__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter__input:focus {
  outline: none;
  border-color: oklch(0.55 0.14 250);
  box-shadow: 0 0 0 3px color-mix(in oklch, oklch(0.55 0.14 250) 25%, transparent);
}

.newsletter__btn {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: oklch(0.55 0.14 250);
  color: white;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.newsletter__btn:hover:not(:disabled) {
  background: oklch(0.48 0.14 250);
  transform: translateY(-1px);
}

.newsletter__btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.newsletter__message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.newsletter__message--success {
  color: oklch(0.45 0.1 150);
}

.newsletter__message--error {
  color: var(--destructive, oklch(0.5 0.15 25));
}

.newsletter__fine-print {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.newsletter__art {
  flex-shrink: 0;
  display: none;
  width: 10rem;
}

.newsletter__svg {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .newsletter__art {
    display: block;
  }
}

/* Footer brand column (styles in CSS — Tailwind CDN does not scan footer.js) */
.footer-brand {
  max-width: 20rem;
}

@media (min-width: 1024px) {
  .footer-brand {
    max-width: 24rem;
  }
}

.footer-brand__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand__dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #34d399;
}

.footer-brand__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand__description {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #94a3b8;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in oklch, var(--border) 30%, #475569);
}

.footer-bgg {
  display: inline-flex;
  transition: transform 0.15s ease;
}

.footer-bgg:hover {
  transform: translateY(-1px);
}

.footer-bgg__badge {
  display: inline-flex;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.12);
}

.footer-bgg__logo {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: 11rem;
}

/* Footer contact QR */
.footer-contact__qr {
  display: block;
  width: 7rem;
  height: auto;
  border-radius: 12px;
  border: 1px solid color-mix(in oklch, var(--border) 40%, #475569);
  background: white;
  padding: 0.25rem;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.5rem;
  }

  .filters {
    flex-direction: column;
  }

  .filter__trigger {
    width: 100%;
    max-width: none;
  }

  .newsletter__inner {
    padding: 1.5rem;
  }

  .newsletter__row {
    flex-direction: column;
  }

  .newsletter__btn {
    width: 100%;
  }
}
