/* ggnomz — human / anime-lobby vibe: rounded type, chunky UI, a little scrappy on purpose */

@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&display=swap");

html {
  -webkit-font-smoothing: auto;
}

body,
button,
input,
textarea,
select {
  font-family:
    "M PLUS Rounded 1c",
    "Hiragino Maru Gothic ProN",
    "Yu Gothic UI",
    "Yu Gothic",
    ui-rounded,
    system-ui,
    sans-serif;
}

body {
  text-rendering: auto;
}

h1,
h2,
h3,
h4 {
  font-family: inherit;
  letter-spacing: 0.04em;
}

.btn {
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    filter 0.28s ease;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.12),
    0 8px 22px rgba(14, 6, 40, 0.18);
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.1),
    0 12px 28px rgba(14, 6, 40, 0.22);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
}

.btn-primary {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  border: 2px solid var(--line, rgba(255, 255, 255, 0.35)) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.btn:focus-visible {
  outline: 3px dashed var(--green, #b5ff3c);
  outline-offset: 4px;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
select {
  border-width: 2px !important;
  border-radius: 14px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.08);
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(14, 6, 40, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .panel:not(.page-intro-sky) {
  background: var(--panel-fill, rgba(198, 188, 216, 0.9));
  border-color: rgba(104, 75, 255, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 16px 36px rgba(45, 30, 95, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.chip {
  border-width: 2px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .chip {
  box-shadow: 0 2px 0 rgba(104, 75, 255, 0.1);
}

.section-title__feed-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

main .section-title {
  overflow: visible;
}

.brand-feed-kicker {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--muted);
  max-width: min(38rem, 100%);
  letter-spacing: 0.02em;
}

.brand-trust-footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.55;
  font-style: normal;
  max-width: 40rem;
  letter-spacing: 0.02em;
}

/* Hero welcome — full-bleed, centered */
main .hero,
.hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 8px max(16px, env(safe-area-inset-left, 0px)) 20px
    max(16px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 720px);
  height: 140%;
  transform: translate(-50%, -48%);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(155, 140, 255, 0.22), transparent 68%),
    radial-gradient(ellipse 50% 40% at 18% 55%, rgba(212, 255, 122, 0.18), transparent 62%),
    radial-gradient(ellipse 45% 38% at 88% 38%, rgba(255, 143, 212, 0.16), transparent 60%);
  filter: blur(20px);
  opacity: 0.85;
  animation: hero-welcome-halo 7s ease-in-out infinite;
}

.hero-welcome {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: 100%;
  max-width: min(58rem, 96vw);
  text-align: center;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  font-size: clamp(22px, 4.2vw, 36px) !important;
  font-weight: 800 !important;
  line-height: 1.38 !important;
  letter-spacing: 0.015em !important;
  color: #f8f6ff !important;
  -webkit-text-fill-color: currentColor;
  background: none;
  background-size: 220% 100%;
  filter:
    drop-shadow(0 0 22px rgba(212, 255, 122, 0.35))
    drop-shadow(0 0 40px rgba(155, 140, 255, 0.22))
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.2));
  animation: hero-welcome-breathe 4.8s ease-in-out infinite;
}

.hero-welcome__warm {
  color: #f0ffe0;
}

.hero-welcome__pop {
  color: #d4ff7a;
  filter: drop-shadow(0 0 14px rgba(212, 255, 122, 0.55));
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* Desktop/tablet: four intentional lines; mobile: natural wrap */
.hero-welcome__break {
  display: none;
}

.hero-welcome__keep {
  white-space: nowrap;
}

@media (min-width: 520px) {
  .hero-welcome__break {
    display: block;
  }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-welcome {
  background: linear-gradient(
    118deg,
    #f8f6ff 0%,
    #ebe4ff 28%,
    #f0ffe0 52%,
    #f5ecff 78%,
    #f8f6ff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
    color: transparent !important;
  animation:
    hero-welcome-shimmer 9s ease-in-out infinite,
    hero-welcome-breathe 4.8s ease-in-out infinite;
  }

  .hero-welcome__warm {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, #f6f7ff 0%, #d4ff7a 48%, #ff9de0 100%);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: hero-welcome-warm-shift 6s ease-in-out infinite;
  }

  .hero-welcome__pop {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(180deg, #e8ffb8 0%, #b5ff3c 55%, #9bff6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

html[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 78% 62% at 50% 38%, rgba(117, 96, 255, 0.44), transparent 66%),
    radial-gradient(ellipse 52% 46% at 14% 58%, rgba(181, 255, 60, 0.34), transparent 64%),
    radial-gradient(ellipse 48% 44% at 88% 34%, rgba(242, 129, 246, 0.3), transparent 62%),
    radial-gradient(ellipse 90% 55% at 50% 108%, rgba(90, 72, 160, 0.24), transparent 68%);
  filter: blur(26px);
  opacity: 1;
}

html[data-theme="light"] .hero-welcome {
  color: #1a0f42 !important;
  -webkit-text-fill-color: currentColor;
  background: none;
  filter:
    drop-shadow(0 0 22px rgba(141, 208, 0, 0.55))
    drop-shadow(0 0 44px rgba(117, 96, 255, 0.38))
    drop-shadow(0 2px 10px rgba(50, 30, 90, 0.22));
  animation: hero-welcome-breathe-light 4.8s ease-in-out infinite;
}

html[data-theme="light"] .hero-welcome__warm {
  color: #4a7a00 !important;
  -webkit-text-fill-color: currentColor;
  font-weight: 900;
  filter: drop-shadow(0 0 20px rgba(141, 208, 0, 0.65)) drop-shadow(0 0 32px rgba(242, 129, 246, 0.28));
}

html[data-theme="light"] .hero-welcome__pop {
  color: #3d6800 !important;
  -webkit-text-fill-color: currentColor;
  font-weight: 900;
  filter: drop-shadow(0 0 22px rgba(181, 255, 60, 0.72));
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html[data-theme="light"] .hero-welcome {
    background: linear-gradient(
      118deg,
      #1a0f42 0%,
      #3d2880 24%,
      #4a7a00 50%,
      #5c3a9e 76%,
      #1a0f42 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    animation:
      hero-welcome-shimmer 9s ease-in-out infinite,
      hero-welcome-breathe-light 4.8s ease-in-out infinite;
  }

  html[data-theme="light"] .hero-welcome__warm {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, #2a1860 0%, #6aab00 44%, #d94bb8 100%);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: hero-welcome-warm-shift 6s ease-in-out infinite;
  }

  html[data-theme="light"] .hero-welcome__pop {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(180deg, #b5ff3c 0%, #6aab00 52%, #4a7a00 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

@keyframes hero-welcome-breathe-light {
  0%,
  100% {
    filter:
      drop-shadow(0 0 18px rgba(141, 208, 0, 0.45))
      drop-shadow(0 0 34px rgba(117, 96, 255, 0.3))
      drop-shadow(0 2px 8px rgba(50, 30, 90, 0.16));
  }
  50% {
    filter:
      drop-shadow(0 0 30px rgba(181, 255, 60, 0.65))
      drop-shadow(0 0 54px rgba(242, 129, 246, 0.38))
      drop-shadow(0 0 68px rgba(117, 96, 255, 0.34))
      drop-shadow(0 2px 6px rgba(50, 30, 90, 0.1));
  }
}

@keyframes hero-welcome-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes hero-welcome-breathe {
  0%,
  100% {
    filter:
      drop-shadow(0 0 18px rgba(212, 255, 122, 0.28))
      drop-shadow(0 0 36px rgba(155, 140, 255, 0.18))
      drop-shadow(0 2px 0 rgba(0, 0, 0, 0.18));
  }
  50% {
    filter:
      drop-shadow(0 0 28px rgba(212, 255, 122, 0.48))
      drop-shadow(0 0 52px rgba(255, 143, 212, 0.26))
      drop-shadow(0 0 64px rgba(155, 140, 255, 0.22))
      drop-shadow(0 2px 0 rgba(0, 0, 0, 0.12));
  }
}

@keyframes hero-welcome-halo {
  0%,
  100% {
    opacity: 0.75;
    transform: translate(-50%, -48%) scale(1);
  }
  50% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes hero-welcome-warm-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Nomnom Feed label — smaller than welcome line */
.section-title__feed-head h2 {
  font-size: clamp(17px, 2.4vw, 20px) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.feed-arrow-deco {
  width: clamp(49px, 7.15vw, 70px);
  height: auto;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .section-title__feed-head {
    align-items: flex-start;
    gap: 8px;
  }

  .feed-arrow-deco {
    width: 44px;
    margin-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-welcome,
  .hero-welcome__warm {
    animation: none;
  }

  html[data-theme="light"] .hero-welcome {
    animation: none;
  }
}

.social-row.icons .social-link {
  border-width: 2px !important;
  border-radius: 14px !important;
}

.lead,
.sub {
  letter-spacing: 0.02em;
}

/* Slightly sticker-y cards (skip feed tiles — they use data-clip-slot) */
.card:not([data-clip-slot]) {
  border-width: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover:not(:disabled),
  .btn:active:not(:disabled) {
    transform: none;
  }
}
