@import url("https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&display=swap");

:root {
  color-scheme: light;
  font-family: "Readex Pro", system-ui, -apple-system, sans-serif;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5eaf0;
  --cyan: #06b6d4;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --lime: #84cc16;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 9% 8%, rgba(0, 229, 255, 0.42), transparent 34%),
    radial-gradient(ellipse at 78% 10%, rgba(255, 0, 128, 0.34), transparent 31%),
    radial-gradient(ellipse at 64% 82%, rgba(163, 255, 18, 0.22), transparent 36%),
    linear-gradient(135deg, #020617 0%, #0b0221 38%, #001b2f 67%, #050108 100%);
  color: #f8fafc;
  font-size: 14px;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  opacity: 0.8;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 120px),
    linear-gradient(60deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 78%);
}

body::after {
  z-index: 0;
  opacity: 0.44;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.82), transparent 18%, transparent 82%, rgba(2, 6, 23, 0.82)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 6px);
}

body.app-locked {
  overflow: hidden;
}

.app-entrance {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  background:
    radial-gradient(ellipse at 18% 16%, rgba(0, 229, 255, 0.5), transparent 34%),
    radial-gradient(ellipse at 78% 12%, rgba(255, 0, 128, 0.42), transparent 31%),
    radial-gradient(ellipse at 58% 86%, rgba(163, 255, 18, 0.26), transparent 36%),
    linear-gradient(135deg, #01040d 0%, #10002c 46%, #001e33 72%, #040107 100%);
  color: #fff;
  transition: opacity 620ms ease, visibility 620ms ease, transform 720ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.app-entrance.is-dismissed {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
}

.entrance-field,
.entrance-field span {
  position: absolute;
  pointer-events: none;
}

.entrance-field {
  inset: 0;
  overflow: hidden;
}

.entrance-grid {
  inset: -20%;
  opacity: 0.32;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 94px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 94px);
  transform: perspective(680px) rotateX(62deg) translateY(14%);
  transform-origin: center bottom;
  animation: entrance-grid-drive 8s linear infinite;
}

.entrance-beam {
  width: 72vw;
  height: 18vh;
  min-height: 126px;
  filter: blur(8px);
  opacity: 0.78;
  mix-blend-mode: screen;
}

.beam-a {
  left: -16vw;
  top: 11vh;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.86), rgba(255, 255, 255, 0.68), transparent);
  transform: rotate(-18deg);
  animation: entrance-beam-a 7.2s ease-in-out infinite;
}

.beam-b {
  right: -18vw;
  bottom: 16vh;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 128, 0.78), rgba(163, 255, 18, 0.58), transparent);
  transform: rotate(17deg);
  animation: entrance-beam-b 8.6s ease-in-out infinite;
}

.entrance-slab {
  width: clamp(160px, 22vw, 340px);
  height: clamp(82px, 11vw, 170px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.03)),
    linear-gradient(90deg, rgba(0, 229, 255, 0.32), rgba(255, 0, 128, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 28px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  transform: skewX(-10deg) rotate(-12deg);
}

.slab-a {
  left: 8vw;
  top: 21vh;
  animation: entrance-slab-a 11s ease-in-out infinite;
}

.slab-b {
  right: 10vw;
  top: 18vh;
  width: clamp(110px, 16vw, 250px);
  height: clamp(60px, 8vw, 124px);
  animation: entrance-slab-b 12s ease-in-out infinite;
}

.slab-c {
  right: 18vw;
  bottom: 12vh;
  width: clamp(180px, 26vw, 410px);
  height: clamp(88px, 10vw, 160px);
  animation: entrance-slab-c 13s ease-in-out infinite;
}

.entrance-ring {
  width: clamp(420px, 62vw, 880px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(18deg);
  box-shadow: 0 0 80px rgba(0, 229, 255, 0.12), inset 0 0 50px rgba(255, 0, 128, 0.08);
}

.ring-a {
  animation: entrance-ring-a 18s linear infinite;
}

.ring-b {
  width: clamp(300px, 45vw, 650px);
  opacity: 0.68;
  transform: translate(-50%, -50%) rotate(-24deg);
  animation: entrance-ring-b 14s linear infinite;
}

.entrance-shell {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  text-align: center;
  isolation: isolate;
}

.entrance-shell::before {
  content: "";
  position: absolute;
  inset: -46px -28px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(2, 6, 23, 0.26);
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(1.4);
}

.entrance-kicker {
  margin: 0 0 18px;
  color: #a3ff12;
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.entrance-shell h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(58px, 12vw, 150px);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow:
    0 0 22px rgba(0, 229, 255, 0.44),
    0 0 64px rgba(255, 0, 128, 0.34),
    0 22px 60px rgba(0, 0, 0, 0.44);
}

.entrance-copy {
  max-width: 640px;
  margin: 24px auto 34px;
  color: rgba(248, 250, 252, 0.82);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.6;
  font-weight: 650;
}

.open-app-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  height: 58px;
  padding: 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #a3ff12, #00e5ff 42%, #ff0080 100%);
  color: #020617;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 22px 60px rgba(0, 229, 255, 0.24), 0 18px 42px rgba(255, 0, 128, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.open-app-button::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.08));
  opacity: 0.36;
}

.open-app-button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
  transform: translateX(-190px) skewX(-18deg);
  animation: button-sheen 2.8s ease-in-out infinite;
}

.open-app-button span {
  position: relative;
  z-index: 1;
}

.open-app-button:hover,
.open-app-button:focus-visible {
  outline: 0;
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.12);
  box-shadow: 0 28px 76px rgba(0, 229, 255, 0.34), 0 22px 56px rgba(255, 0, 128, 0.26);
}

.manga-motion {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.95;
  pointer-events: none;
}

.manga-motion::before,
.manga-motion::after {
  content: "";
  position: absolute;
  inset: -12%;
  opacity: 0.44;
  mix-blend-mode: screen;
}

.manga-motion::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 229, 255, 0.38) 0 1px, transparent 2px 18px),
    radial-gradient(circle at 84% 30%, rgba(255, 0, 128, 0.32) 0 1px, transparent 2px 20px),
    radial-gradient(circle at 54% 78%, rgba(163, 255, 18, 0.22) 0 1px, transparent 2px 22px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
  animation: manga-dot-drift 26s linear infinite;
}

.manga-motion::after {
  background:
    linear-gradient(112deg, transparent 0 18%, rgba(0, 229, 255, 0.26) 24%, transparent 32% 100%),
    linear-gradient(292deg, transparent 0 58%, rgba(255, 0, 128, 0.22) 64%, transparent 72% 100%),
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(255, 255, 255, 0.06) 34px 36px, transparent 36px 70px);
  animation: manga-panel-sweep 18s ease-in-out infinite;
}

.motion-paper {
  position: absolute;
  width: clamp(86px, 10vw, 156px);
  aspect-ratio: 0.72;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    linear-gradient(90deg, rgba(0, 229, 255, 0.26), rgba(255, 0, 128, 0.2));
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  opacity: 0.36;
  transform-origin: center;
  filter: blur(0.1px) saturate(1.25);
  backdrop-filter: blur(16px);
}

.motion-paper::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transform: skewX(-12deg);
}

.motion-paper::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 2px;
  background: linear-gradient(90deg, #a3ff12, #00e5ff, #ff0080);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.54);
}

.paper-one {
  left: 4%;
  top: 18%;
  animation: paper-drift-one 22s ease-in-out infinite;
}

.paper-two {
  right: 8%;
  top: 12%;
  width: clamp(76px, 8vw, 132px);
  opacity: 0.28;
  animation: paper-drift-two 26s ease-in-out infinite;
}

.paper-three {
  left: 18%;
  bottom: 8%;
  width: clamp(68px, 7vw, 118px);
  opacity: 0.22;
  animation: paper-drift-three 24s ease-in-out infinite;
}

.paper-four {
  right: 18%;
  bottom: 16%;
  width: clamp(92px, 11vw, 166px);
  opacity: 0.2;
  animation: paper-drift-four 30s ease-in-out infinite;
}

.motion-streak {
  position: absolute;
  width: 36vw;
  max-width: 620px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(163, 255, 18, 0.48), rgba(255, 255, 255, 0.92), rgba(255, 0, 128, 0.42), transparent);
  opacity: 0;
  transform: rotate(-18deg);
  filter: blur(0.2px);
}

.streak-one {
  left: -12%;
  top: 31%;
  animation: streak-sweep 9s ease-in-out infinite;
}

.streak-two {
  right: -18%;
  top: 66%;
  animation: streak-sweep 11s 2.2s ease-in-out infinite reverse;
}

.motion-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.1) 0 1px, transparent 1px 5px);
  animation: grain-shift 0.9s steps(2, end) infinite;
}

main {
  position: relative;
  z-index: 1;
}

body.has-prompt-overlay {
  overflow: hidden;
}

.prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: #f8fafc;
}

.prompt-overlay.is-open {
  display: block;
}

.prompt-overlay-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f8fafc;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.brand-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 0 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-field {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(226, 232, 240, 0.88)),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(15, 23, 42, 0.05) 9px 10px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.logo-field::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.86) 34%, transparent 52%);
  transform: translateX(-115%);
  animation: logo-scan 4.2s ease-in-out infinite;
}

.logo-field i,
.logo-field b,
.logo-field em {
  position: absolute;
  display: block;
  border-radius: 6px;
}

.logo-field i {
  width: 24px;
  height: 24px;
  background: #0f172a;
  transform: rotate(45deg);
  animation: logo-core 5.8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.logo-field b {
  width: 34px;
  height: 12px;
  border: 1px solid rgba(14, 165, 233, 0.68);
  background: rgba(236, 254, 255, 0.86);
  transform: translateY(-17px);
  animation: logo-strip-a 5.8s ease-in-out infinite;
}

.logo-field em {
  width: 12px;
  height: 34px;
  border: 1px solid rgba(244, 63, 94, 0.58);
  background: rgba(255, 241, 242, 0.92);
  transform: translateX(17px);
  animation: logo-strip-b 5.8s ease-in-out infinite;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.34);
}

.brand-copy small {
  color: rgba(226, 232, 240, 0.82);
  font-size: 13px;
  font-weight: 600;
}

.brand-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-pills span,
.brand-pill-button {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.42);
  color: rgba(248, 250, 252, 0.88);
  appearance: none;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand-pill-button {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.brand-pill-button:hover,
.brand-pill-button:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.brand-liked-button::before {
  content: "♥";
  margin-right: 6px;
  color: #ef4444;
}

.search-panel {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 0 18px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.28));
  backdrop-filter: blur(22px) saturate(1.4);
}

.search-box {
  position: relative;
  display: block;
  width: min(720px, 100%);
  border-radius: 22px;
  isolation: isolate;
}

.search-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 24px;
  background:
    linear-gradient(105deg, #a3ff12 0%, #00e5ff 28%, #ffffff 48%, #ff0080 72%, #7c3aed 100%);
  opacity: 0.9;
  box-shadow: 0 24px 54px rgba(0, 229, 255, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.search-box::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 34px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 0 8px, rgba(248, 250, 252, 0.88) 8px 11px, transparent 11px 21px, rgba(148, 163, 184, 0.85) 21px 24px, transparent 24px),
    rgba(15, 23, 42, 0.78);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 56px;
  padding: 0 64px 0 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  outline: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.94));
  color: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.search-box input:focus {
  background:
    linear-gradient(180deg, rgba(0, 13, 28, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 5px rgba(0, 229, 255, 0.14);
}

.search-box input::placeholder {
  color: #b9c7da;
}

.search-icon {
  position: absolute;
  left: 21px;
  top: 50%;
  z-index: 1;
  width: 17px;
  height: 17px;
  border: 2px solid #f8fafc;
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 1.8px;
  border-radius: 999px;
  background: #cbd5e1;
  transform: rotate(45deg);
}

.category-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1360px;
  margin: 0 auto 14px;
  padding: 0 0 2px;
}

.category-filters button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.48);
  color: rgba(248, 250, 252, 0.82);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.category-filters button:hover,
.category-filters button:focus-visible {
  border-color: rgba(0, 229, 255, 0.58);
  color: #fff;
  background: rgba(0, 229, 255, 0.16);
  outline: 0;
}

.category-filters button.is-active {
  border-color: rgba(163, 255, 18, 0.78);
  background: linear-gradient(135deg, #a3ff12, #00e5ff);
  color: #020617;
  box-shadow: 0 16px 34px rgba(0, 229, 255, 0.26);
}

.category-filters button.is-liked-filter {
  margin-left: auto;
  border-color: rgba(255, 0, 128, 0.5);
  background: linear-gradient(180deg, rgba(255, 0, 128, 0.18), rgba(2, 6, 23, 0.5));
  color: #fecdd3;
}

.category-filters button.is-liked-filter::before {
  content: "♥";
  margin-right: 6px;
  color: #ef4444;
}

.category-filters button.is-liked-filter:hover,
.category-filters button.is-liked-filter:focus-visible {
  border-color: rgba(255, 0, 128, 0.84);
  color: #fff;
  background: rgba(255, 0, 128, 0.24);
}

.category-filters button.is-liked-filter.is-active {
  border-color: #ff0080;
  background: linear-gradient(135deg, #ff0080, #7c3aed);
  color: #fff;
  box-shadow: 0 14px 32px rgba(255, 0, 128, 0.34);
}

.category-filters button.is-liked-filter.is-active::before {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 66px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #dff4ec;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 912px;
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  color: #3b55df;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #475569;
  font-size: 16px;
  white-space: nowrap;
}

.main-nav .active {
  color: var(--violet);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.text-btn,
.login-btn,
.filters button,
.sort button {
  border: 0;
  background: transparent;
  color: #0f1729;
  cursor: pointer;
}

.login-btn {
  height: 36px;
  padding: 0 16px;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.hero {
  background: #fff;
  border-bottom: 1px solid #edf2f7;
}

.hero-inner {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 202px;
  gap: 24px;
  align-items: center;
  max-width: 1120px;
  min-height: 190px;
  margin: 0 auto;
  padding: 34px 0 28px;
}

.model-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 14px;
  background: #fff;
  color: #10a37f;
  font-size: 60px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  position: relative;
}

.model-icon b {
  position: absolute;
  right: -10px;
  bottom: -8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  background: #3b82f6;
  border: 3px solid #fff;
}

.logo-glyph,
.logo-glyph::before,
.logo-glyph::after {
  width: 44px;
  height: 44px;
  border: 4px solid #10a37f;
  border-radius: 17px;
}

.logo-glyph {
  position: relative;
  display: block;
  transform: rotate(45deg);
}

.logo-glyph::before,
.logo-glyph::after {
  content: "";
  position: absolute;
  inset: -4px;
}

.logo-glyph::before {
  transform: rotate(60deg);
}

.logo-glyph::after {
  transform: rotate(-60deg);
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 9px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.warm {
  background: #ffedd5;
  color: #b45309;
}

.mint {
  background: #d1fae5;
  color: #047857;
}

.hero-copy p {
  max-width: 700px;
  margin: 12px 0 13px;
  color: #475569;
  font-size: 16px;
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: center;
  min-height: 68px;
  border: 1px solid #e8edf4;
  border-radius: 10px;
  background: #f8fafc;
}

.stats div {
  display: grid;
  place-content: center;
  text-align: center;
}

.stats div + div {
  border-left: 1px solid #dfe5ec;
}

.stats strong {
  font-size: 22px;
  line-height: 1.1;
}

.stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.toolbar {
  background: #fff;
  border-bottom: 1px solid #e9eef5;
}

.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 0 13px;
}

.filters,
.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.filters {
  overflow-x: auto;
}

.filters button {
  min-width: 60px;
  height: 36px;
  padding: 0 16px;
  color: #64748b;
  border-radius: 8px;
}

.filters .selected {
  color: #0f172a;
  background: #f1f5f9;
  box-shadow: inset 0 -3px 0 #0f172a;
}

.sort {
  color: #94a3b8;
  font-size: 12px;
}

.sort b {
  color: #0f172a;
}

.sort button {
  height: 35px;
  padding: 0 13px;
  color: #64748b;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.sort .selected {
  color: #0f172a;
  background: #fff;
  border: 1px solid #cfd8e3;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.gallery {
  column-count: 4;
  column-gap: 16px;
  max-width: 1360px;
  margin: 32px auto 80px;
}

.gallery-status {
  max-width: 1360px;
  margin: -48px auto 80px;
  padding: 12px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
  min-height: 44px;
}

.gallery-status.is-empty {
  color: transparent;
}

.prompt-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
  border-radius: 14px;
  background: #e2e8f0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.13), 0 0 0 1px rgba(255, 255, 255, 0.34);
  cursor: pointer;
  isolation: isolate;
}

.prompt-card:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.36);
  outline-offset: 4px;
}

.prompt-card.is-hidden {
  display: none;
}

.prompt-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 520ms ease;
  will-change: transform;
}

.prompt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), transparent 44%, rgba(0, 0, 0, 0));
  opacity: 1;
  pointer-events: none;
  transition: background 420ms ease;
}

.card-top,
.card-bottom {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
}

.card-top {
  top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-top span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 10px;
  font-weight: 600;
  transform: translate3d(0, 0, 0);
  transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 360ms ease;
}

.heart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1), background 360ms ease, color 180ms ease, box-shadow 180ms ease;
}

.heart-button:hover,
.heart-button:focus-visible {
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  outline: 0;
}

.heart-button.is-liked {
  background: rgba(15, 23, 42, 0.55);
  color: #ef4444;
}

.card-bottom {
  bottom: 14px;
  color: #fff;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: none;
}

.card-bottom h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}

.card-bottom p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 10px;
  line-height: 1.1;
}

.card-bottom p,
.card-bottom h3 {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.card-bottom p span,
.card-bottom p {
  color: #fff;
}

.card-bottom p span {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  transform: translateY(8px) scale(0.92);
  opacity: 0;
  transition: opacity 260ms ease, transform 340ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prompt-card:hover,
.prompt-card:focus-within {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.prompt-card:hover img,
.prompt-card:focus-within img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.02);
}

.prompt-card:hover::after,
.prompt-card:focus-within::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 28%, rgba(0, 0, 0, 0.76));
}

.prompt-card:hover .card-top span,
.prompt-card:focus-within .card-top span {
  transform: translate3d(-8px, -7px, 0) scale(1.04);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  animation: badge-pop-left 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prompt-card:hover .heart-button,
.prompt-card:focus-within .heart-button {
  background: rgba(15, 23, 42, 0.72);
  transform: translate3d(8px, -7px, 0) scale(1.06);
  animation: badge-pop-right 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prompt-card:hover .heart-button.is-liked,
.prompt-card:focus-within .heart-button.is-liked {
  background: rgba(15, 23, 42, 0.72);
  color: #ef4444;
}

.prompt-card:hover .card-bottom,
.prompt-card:focus-within .card-bottom {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.prompt-card:hover .card-bottom h3,
.prompt-card:focus-within .card-bottom h3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 70ms;
}

.prompt-card:hover .card-bottom p,
.prompt-card:focus-within .card-bottom p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 125ms;
}

.prompt-card:hover .card-bottom p span,
.prompt-card:focus-within .card-bottom p span {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.prompt-card:hover .card-bottom p span:nth-child(1),
.prompt-card:focus-within .card-bottom p span:nth-child(1) {
  transition-delay: 170ms;
}

.prompt-card:hover .card-bottom p span:nth-child(2),
.prompt-card:focus-within .card-bottom p span:nth-child(2) {
  transition-delay: 215ms;
}

.prompt-card:hover .card-bottom p span:nth-child(3),
.prompt-card:focus-within .card-bottom p span:nth-child(3) {
  transition-delay: 260ms;
}

@keyframes entrance-grid-drive {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 94px, 94px 0;
  }
}

@keyframes entrance-beam-a {
  0%,
  100% {
    transform: translate3d(-8%, 0, 0) rotate(-18deg) scaleX(0.92);
    opacity: 0.58;
  }
  48% {
    transform: translate3d(18%, 8%, 0) rotate(-14deg) scaleX(1.08);
    opacity: 0.86;
  }
}

@keyframes entrance-beam-b {
  0%,
  100% {
    transform: translate3d(8%, 0, 0) rotate(17deg) scaleX(0.95);
    opacity: 0.48;
  }
  52% {
    transform: translate3d(-18%, -6%, 0) rotate(12deg) scaleX(1.08);
    opacity: 0.82;
  }
}

@keyframes entrance-slab-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) skewX(-10deg) rotate(-12deg);
  }
  50% {
    transform: translate3d(28px, -22px, 0) skewX(-10deg) rotate(-5deg);
  }
}

@keyframes entrance-slab-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) skewX(-10deg) rotate(13deg);
  }
  48% {
    transform: translate3d(-34px, 26px, 0) skewX(-10deg) rotate(6deg);
  }
}

@keyframes entrance-slab-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) skewX(-10deg) rotate(-8deg);
  }
  54% {
    transform: translate3d(-24px, -30px, 0) skewX(-10deg) rotate(-15deg);
  }
}

@keyframes entrance-ring-a {
  0% {
    transform: translate(-50%, -50%) rotate(18deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(378deg);
  }
}

@keyframes entrance-ring-b {
  0% {
    transform: translate(-50%, -50%) rotate(-24deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-384deg);
  }
}

@keyframes button-sheen {
  0%,
  38% {
    transform: translateX(-190px) skewX(-18deg);
  }
  72%,
  100% {
    transform: translateX(260px) skewX(-18deg);
  }
}

@keyframes jelly-portal-rise {
  0% {
    transform: translate(-50%, 92vh) scale(0.92, 0.86);
    opacity: 0;
  }
  64% {
    transform: translate(-50%, -54%) scale(1.015, 1.04);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes jelly-portal-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, calc(-50% - 8px)) scale(1.006);
  }
}

@keyframes jelly-window-sheen {
  0%,
  48% {
    transform: translateX(-72%);
    opacity: 0;
  }
  62% {
    opacity: 0.7;
  }
  86%,
  100% {
    transform: translateX(72%);
    opacity: 0;
  }
}

@keyframes badge-pop-left {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  58% {
    transform: translate3d(-11px, -10px, 0) scale(1.1);
  }
  100% {
    transform: translate3d(-8px, -7px, 0) scale(1.04);
  }
}

@keyframes badge-pop-right {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  58% {
    transform: translate3d(11px, -10px, 0) scale(1.12);
  }
  100% {
    transform: translate3d(8px, -7px, 0) scale(1.06);
  }
}

@keyframes manga-dot-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(72px, -46px, 0) rotate(1deg);
  }
}

@keyframes manga-panel-sweep {
  0%,
  100% {
    transform: translate3d(-2%, 0, 0);
    opacity: 0.18;
  }
  45% {
    transform: translate3d(5%, -2%, 0);
    opacity: 0.34;
  }
  70% {
    transform: translate3d(1%, 1%, 0);
    opacity: 0.24;
  }
}

@keyframes paper-drift-one {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-10deg);
  }
  50% {
    transform: translate3d(34px, -28px, 0) rotate(-4deg);
  }
}

@keyframes paper-drift-two {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(12deg);
  }
  48% {
    transform: translate3d(-38px, 30px, 0) rotate(5deg);
  }
}

@keyframes paper-drift-three {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(7deg);
  }
  52% {
    transform: translate3d(28px, -36px, 0) rotate(13deg);
  }
}

@keyframes paper-drift-four {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
  }
  50% {
    transform: translate3d(-46px, -22px, 0) rotate(-13deg);
  }
}

@keyframes streak-sweep {
  0%,
  18% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-18deg);
  }
  32% {
    opacity: 0.52;
  }
  54% {
    opacity: 0;
    transform: translate3d(96vw, -16vh, 0) rotate(-18deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(96vw, -16vh, 0) rotate(-18deg);
  }
}

@keyframes grain-shift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(4px, -3px, 0);
  }
}

@keyframes logo-scan {
  0%, 42% {
    transform: translateX(-115%);
  }
  64%, 100% {
    transform: translateX(115%);
  }
}

@keyframes logo-core {
  0%, 100% {
    transform: rotate(45deg) scale(1);
  }
  48% {
    transform: rotate(135deg) scale(0.82);
  }
  68% {
    transform: rotate(135deg) scale(1.06);
  }
}

@keyframes logo-strip-a {
  0%, 100% {
    transform: translateY(-17px);
  }
  48% {
    transform: translateY(17px);
  }
  68% {
    transform: translateY(14px);
  }
}

@keyframes logo-strip-b {
  0%, 100% {
    transform: translateX(17px);
  }
  48% {
    transform: translateX(-17px);
  }
  68% {
    transform: translateX(-14px);
  }
}

@keyframes ink-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes scan-drop {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20%, 72% {
    opacity: 1;
  }
  100% {
    transform: translateY(380%);
    opacity: 0;
  }
}

@keyframes loader-frame {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.32;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.7;
  }
}

@keyframes paper-float-a {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-12deg);
  }
  50% {
    transform: translate3d(10px, 12px, 0) rotate(8deg);
  }
}

@keyframes paper-float-b {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(14deg);
  }
  50% {
    transform: translate3d(-14px, 8px, 0) rotate(-8deg);
  }
}

@keyframes paper-float-c {
  0%, 100% {
    transform: translate3d(-50%, 0, 0) rotate(6deg);
  }
  50% {
    transform: translate3d(-50%, -14px, 0) rotate(-10deg);
  }
}

@media (max-width: 1180px) {
  .header-inner,
  .hero-inner,
  .toolbar-inner,
  .brand-hero,
  .search-panel,
  .category-filters,
  .gallery {
    margin-left: 24px;
    margin-right: 24px;
  }

  .main-nav {
    gap: 14px;
  }

  .gallery {
    column-count: 3;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: auto;
  }

  .brand-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
  }

  .brand-pills {
    justify-content: flex-start;
  }

  .search-panel {
    justify-content: stretch;
  }

  .search-box {
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 12px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .hero-inner {
    grid-template-columns: 72px 1fr;
    align-items: start;
  }

  .model-icon {
    width: 72px;
    height: 72px;
    font-size: 44px;
  }

  .stats {
    grid-column: 1 / -1;
    width: min(300px, 100%);
  }

  .toolbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 24px;
  }

  .filters {
    max-width: 100%;
  }

  .gallery {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .logo-field {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy small {
    font-size: 12px;
  }

  .brand-pills span {
    height: 28px;
    padding: 0 10px;
  }

  .search-box::after {
    display: none;
  }

  .search-box input {
    height: 46px;
    padding-right: 16px;
  }

  .brand strong {
    font-size: 21px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 24px;
  }

  h1 {
    font-size: 24px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .gallery {
    column-count: 2;
  }
}

.generator-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.9)),
    radial-gradient(circle at 14% 8%, rgba(16, 185, 129, 0.13), transparent 34%),
    radial-gradient(circle at 90% 22%, rgba(59, 130, 246, 0.12), transparent 30%),
    #f8fafc;
}

.generator-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.generator-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.back-link,
.model-badge {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}

.back-link {
  padding: 0 14px;
  border: 1px solid #dbe4ef;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
}

.back-link::before {
  content: "←";
  margin-right: 8px;
}

.model-badge {
  padding: 0 12px;
  color: #047857;
  background: #d1fae5;
  border: 1px solid rgba(16, 185, 129, 0.24);
}

.generator-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.source-pane,
.control-pane {
  min-width: 0;
}

.source-pane {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.reference-card,
.generated-card,
.control-pane {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}

.reference-card,
.generated-card {
  position: relative;
  overflow: hidden;
}

.reference-card img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #f8fafc;
}

.reference-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  color: #fff;
}

.reference-card::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}

.reference-overlay {
  z-index: 1;
}

.reference-overlay span {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 11px;
  font-weight: 700;
}

.reference-overlay strong {
  font-size: 18px;
  line-height: 1.32;
}

.generated-card {
  display: grid;
  place-items: center;
  min-height: 480px;
  margin-top: 12px;
  border-radius: 16px;
  border-style: dashed;
  background:
    radial-gradient(circle at 50% 42%, rgba(59, 130, 246, 0.12), transparent 34%),
    linear-gradient(45deg, rgba(226, 232, 240, 0.36) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(226, 232, 240, 0.36) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(226, 232, 240, 0.36) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(226, 232, 240, 0.36) 75%),
    #f8fafc;
  background-position: center, 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: auto, 20px 20px, 20px 20px, 20px 20px, 20px 20px;
}

.generated-card img {
  display: none;
  max-width: 100%;
  max-height: 620px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.generated-card img.is-visible {
  display: block;
}

.generation-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 32px;
  color: #e5e7eb;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.88)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 13px);
}

.generation-loader.is-visible {
  display: grid;
}

.loader-stage {
  position: relative;
  width: min(260px, 72%);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 35%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 6px),
    #111827;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.loader-stage::before,
.loader-stage::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.loader-stage::after {
  inset: 38px 28px;
  border-style: solid;
  opacity: 0.38;
  animation: loader-frame 2.6s ease-in-out infinite;
}

.ink-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: #fff;
  border-right-color: rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ink-spin 1.35s linear infinite;
}

.paper {
  position: absolute;
  width: 38px;
  height: 50px;
  border: 1px solid rgba(15, 23, 42, 0.42);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(226, 232, 240, 0.86)),
    linear-gradient(90deg, transparent 0 15px, rgba(15, 23, 42, 0.18) 15px 16px, transparent 16px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.paper-a {
  left: 36px;
  top: 32px;
  animation: paper-float-a 2.8s ease-in-out infinite;
}

.paper-b {
  right: 42px;
  top: 48px;
  animation: paper-float-b 3.2s ease-in-out infinite;
}

.paper-c {
  left: 50%;
  bottom: 28px;
  animation: paper-float-c 3s ease-in-out infinite;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: scan-drop 2.1s ease-in-out infinite;
}

.generation-loader strong {
  color: #fff;
  font-size: 16px;
}

.generation-loader p {
  margin: -4px 0 0;
  color: rgba(226, 232, 240, 0.74);
  font-size: 13px;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.result-action-link {
  display: none;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.result-action-link:first-child {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.result-action-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.result-action-link.is-visible {
  display: inline-flex;
}

.output-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
  padding: 28px;
}

.output-empty strong {
  color: #334155;
  font-size: 15px;
}

.output-empty p {
  margin: 0;
  color: #7b8da5;
  font-size: 13px;
}

.empty-preview-icon {
  position: relative;
  width: 82px;
  height: 70px;
  border-radius: 18px;
  border: 1px solid #cbd5e1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.92)),
    radial-gradient(circle at 28% 32%, #bfdbfe 0 7px, transparent 8px),
    linear-gradient(135deg, transparent 50%, rgba(16, 185, 129, 0.2) 51%);
  box-shadow:
    0 16px 30px rgba(15, 23, 42, 0.08),
    inset 0 0 0 6px rgba(255, 255, 255, 0.7);
}

.empty-preview-icon::before,
.empty-preview-icon::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 18px;
  height: 24px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #93c5fd, #10b981);
  clip-path: polygon(0 100%, 34% 28%, 56% 62%, 74% 38%, 100% 100%);
  opacity: 0.75;
}

.empty-preview-icon::after {
  left: auto;
  right: -8px;
  top: -8px;
  bottom: auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  clip-path: none;
  opacity: 1;
}

.empty-preview-icon i {
  position: absolute;
  right: -2px;
  top: -2px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.control-pane {
  padding: 24px;
  position: sticky;
  top: 18px;
}

.module-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.module-heading span {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
}

.module-heading h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.22;
}

.field-block {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.field-block > span {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.field-block textarea,
.field-block select {
  width: 100%;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  outline: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.field-block textarea {
  min-height: 220px;
  padding: 14px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.65;
}

.field-block select {
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
}

.field-block textarea:focus,
.field-block select:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.settings-grid .field-block:first-child {
  grid-column: 1 / -1;
}

.option-note {
  margin: -4px 0 16px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}

.generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 2px;
  border: 0;
  border-radius: 11px;
  background: #0f172a;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.generate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 34px rgba(15, 23, 42, 0.22);
}

.generate-btn:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.status-text {
  min-height: 20px;
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .generator-layout {
    grid-template-columns: 1fr;
  }

  .reference-card img {
    max-height: 420px;
  }

  .control-pane {
    position: static;
  }
}

@media (max-width: 560px) {
  .generator-shell {
    width: calc(100% - 32px);
    padding-top: 18px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .control-pane {
    padding: 18px;
  }

  .module-heading h1 {
    font-size: 22px;
  }
}

@media (max-width: 720px) {
  .app-entrance {
    padding: 24px;
  }

  .entrance-shell::before {
    inset: -30px -14px;
    border-radius: 24px;
  }

  .entrance-copy {
    margin-bottom: 26px;
  }

  .open-app-button {
    width: min(100%, 260px);
  }

  .entrance-slab {
    opacity: 0.62;
  }

  .manga-motion {
    opacity: 0.76;
  }

  .paper-three,
  .paper-four,
  .streak-two {
    display: none;
  }

  .motion-paper {
    width: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-entrance *,
  .app-entrance::before,
  .app-entrance::after,
  .entrance-jelly-portal,
  .entrance-jelly-portal::before,
  .entrance-jelly-portal::after,
  .manga-motion *,
  .manga-motion::before,
  .manga-motion::after {
    animation: none !important;
  }
}

html,
body,
#root {
  height: 100%;
}

body {
  font-family: "Readex Pro", system-ui, -apple-system, sans-serif;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  opacity: 0.22;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 128px),
    linear-gradient(60deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 112px);
}

body::after {
  opacity: 0.3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.82)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 7px);
}

.hero-title {
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.app-entrance {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  background: #000;
  color: #fff;
  transition: opacity 620ms ease, visibility 620ms ease, transform 720ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.entrance-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.76);
}

.entrance-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.64)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 34%, rgba(0, 0, 0, 0.62));
}

.entrance-nav-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 24px 24px 0;
}

.entrance-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.entrance-nav-spacer {
  width: 124px;
  min-height: 44px;
  flex: 0 0 auto;
}

.entrance-brand-pill,
.entrance-center-pill,
.entrance-start-button {
  background: rgba(23, 23, 23, 0.9);
  backdrop-filter: blur(18px);
}

.entrance-brand-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px 12px 16px;
  border-radius: 999px;
  color: #fff;
}

.entrance-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.entrance-brand-pill span {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.entrance-center-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
}

.entrance-center-pill a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 8px 20px;
  border-radius: 999px;
  color: rgba(212, 212, 212, 1);
  font-size: 14px;
  font-weight: 400;
  transition: color 160ms ease;
}

.entrance-center-pill a:hover,
.entrance-center-pill a:focus-visible {
  color: #fff;
  outline: 0;
}

.entrance-start-button {
  position: relative;
  min-width: 124px;
  min-height: 58px;
  padding: 24px 20px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(23, 23, 23, 0.42);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.entrance-start-button::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: 10px;
  height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px 13px 9px 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transform: translateY(0);
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), background 220ms ease, border-color 220ms ease;
}

.entrance-start-button::after {
  content: "";
  position: absolute;
  left: 23px;
  right: 23px;
  top: 21px;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
  transform: translateY(0);
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.entrance-start-button:hover,
.entrance-start-button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    rgba(23, 23, 23, 0.48);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  outline: 0;
}

.entrance-start-button:hover::before,
.entrance-start-button:focus-visible::before {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.08);
}

.entrance-start-button:hover::after,
.entrance-start-button:focus-visible::after {
  transform: translateY(-7px);
}

.entrance-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
}

.entrance-jelly-portal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 18;
  display: grid;
  place-items: center;
  align-items: center;
  width: min(980px, calc(100% - 80px));
  min-height: clamp(260px, 34vh, 380px);
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: clamp(38px, 5vw, 70px);
  overflow: hidden;
  background: transparent;
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.18),
    0 0 64px rgba(255, 255, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -22px 44px rgba(255, 255, 255, 0.012);
  backdrop-filter: none;
  transform: translate(-50%, 92vh);
  animation: jelly-portal-rise 3s 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards, jelly-portal-breathe 6.4s 3.9s ease-in-out infinite;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.entrance-jelly-portal::before {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  top: 22px;
  height: 44%;
  border-radius: clamp(26px, 4vw, 52px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
  opacity: 0.34;
  pointer-events: none;
}

.entrance-jelly-portal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(100deg, transparent 0 30%, rgba(255, 255, 255, 0.055) 42%, transparent 54% 100%);
  transform: translateX(-72%);
  animation: jelly-window-sheen 4.8s 2.1s ease-in-out infinite;
  pointer-events: none;
}

.portal-glow {
  position: absolute;
  inset: auto 12% -46px;
  height: 72px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  filter: blur(34px);
  pointer-events: none;
}

.portal-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.portal-copy strong {
  color: #fff;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.88;
  font-weight: 600;
  letter-spacing: -0.065em;
}

.portal-copy small {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.2;
  font-weight: 400;
}

.entrance-jelly-portal:hover,
.entrance-jelly-portal:focus-visible {
  outline: 0;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.018);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.22),
    0 0 78px rgba(255, 255, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -22px 40px rgba(255, 255, 255, 0.018);
}

.hero-word {
  position: absolute;
  margin: 0;
  color: #fff;
  font-size: 14vw;
  font-weight: 500;
  text-transform: lowercase;
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
}

.hero-word-one {
  left: 16px;
  top: 18%;
}

.hero-word-two {
  right: 16px;
  top: 38%;
}

.hero-word-three {
  left: 18%;
  top: 58%;
}

.entrance-description {
  position: absolute;
  left: 24px;
  top: 46%;
  max-width: 250px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 400;
}

.entrance-stat {
  position: absolute;
  color: #fff;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-row strong {
  color: #fff;
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.entrance-stat p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.2;
}

.stat-line {
  display: block;
  width: 96px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.rotate-positive {
  transform: rotate(20deg);
}

.rotate-negative {
  transform: rotate(-20deg);
}

.stat-top {
  right: 24px;
  top: 14%;
  text-align: right;
}

.stat-top .stat-row,
.stat-right .stat-row {
  justify-content: flex-end;
}

.stat-left {
  left: 24px;
  bottom: 80px;
}

.stat-right {
  right: 24px;
  bottom: 64px;
  text-align: right;
}

.entrance-bottom-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  height: 192px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #000);
}

.manga-motion::before,
.manga-motion::after {
  mix-blend-mode: screen;
}

.manga-motion::before {
  opacity: 0.22;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.2) 0 1px, transparent 2px 18px),
    radial-gradient(circle at 84% 30%, rgba(255, 255, 255, 0.16) 0 1px, transparent 2px 20px),
    radial-gradient(circle at 54% 78%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px 22px);
}

.manga-motion::after {
  opacity: 0.22;
  background:
    linear-gradient(112deg, transparent 0 18%, rgba(255, 255, 255, 0.16) 24%, transparent 32% 100%),
    linear-gradient(292deg, transparent 0 58%, rgba(255, 255, 255, 0.1) 64%, transparent 72% 100%),
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(255, 255, 255, 0.04) 34px 36px, transparent 36px 70px);
}

.motion-paper {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(23, 23, 23, 0.26);
}

.motion-paper::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18));
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.22);
}

.motion-streak {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.9), transparent);
}

.brand-copy strong {
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
}

.search-box::before {
  background: linear-gradient(105deg, #fff 0%, #525252 28%, #fafafa 48%, #404040 72%, #fff 100%);
}

.category-filters button.is-active {
  border-color: rgba(255, 255, 255, 0.82);
  background: #fff;
  color: #000;
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.16);
}

.category-filters button.is-liked-filter {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(23, 23, 23, 0.72);
  color: rgba(255, 255, 255, 0.88);
}

.category-filters button.is-liked-filter::before {
  color: #fff;
}

.category-filters button.is-liked-filter.is-active {
  border-color: #fff;
  background: #fff;
  color: #000;
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.18);
}

@media (min-width: 768px) {
  .entrance-nav-wrap {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-word {
    font-size: 13vw;
  }

  .hero-word-one {
    left: 40px;
  }

  .hero-word-two {
    right: 40px;
  }

  .hero-word-three {
    left: 28%;
  }

  .entrance-description {
    left: 40px;
  }

  .stat-top {
    right: 96px;
  }

  .stat-left {
    left: 80px;
    bottom: 96px;
  }

  .stat-right {
    right: 80px;
    bottom: 80px;
  }

  .stat-row strong {
    font-size: 52px;
  }
}

@media (max-width: 767px) {
  .entrance-center-pill {
    display: none;
  }

  .entrance-nav-wrap {
    padding: 24px 24px 0;
  }

  .entrance-brand-pill,
  .entrance-start-button {
    min-height: 42px;
  }

  .entrance-nav-spacer {
    display: none;
  }

  .entrance-start-button {
    min-width: 104px;
    padding: 21px 15px 8px;
    border-radius: 18px;
    font-size: 13px;
  }

  .entrance-start-button::before {
    left: 11px;
    right: 11px;
    top: 8px;
    height: 20px;
  }

  .entrance-start-button::after {
    left: 20px;
    right: 20px;
    top: 18px;
  }

  .hero-word {
    font-size: 18vw;
  }

  .hero-word-one {
    left: 18px;
    top: 20%;
  }

  .hero-word-two {
    right: 18px;
    top: 39%;
  }

  .hero-word-three {
    left: 12%;
    top: 58%;
  }

  .entrance-description {
    left: 24px;
    top: 49%;
    max-width: 220px;
    font-size: 14px;
  }

  .stat-line {
    display: none;
  }

  .stat-row strong {
    font-size: 36px;
  }

  .stat-top {
    right: 24px;
    top: 13%;
  }

  .stat-left {
    left: 24px;
    bottom: 76px;
  }

  .stat-right {
    right: 24px;
    bottom: 52px;
  }

  .entrance-jelly-portal {
    width: calc(100% - 28px);
    min-height: min(330px, 42vh);
    padding: 30px 24px;
    border-radius: 34px;
  }

  .portal-copy strong {
    font-size: clamp(42px, 13vw, 68px);
  }

  .portal-copy small {
    font-size: 13px;
  }
}

/* Generator workspace refresh */
.generator-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 14% 4%, rgba(255, 255, 255, 0.12), transparent 32%),
    radial-gradient(ellipse at 86% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(135deg, #020202 0%, #101010 48%, #030303 100%);
  color: #f8fafc;
  overflow-x: hidden;
}

.generator-page::before,
.generator-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.generator-page::before {
  opacity: 0.36;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 112px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 76px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
}

.generator-page::after {
  opacity: 0.5;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.7)),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(0, 0, 0, 0.62) 100%);
}

.generator-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 48px));
  padding: 26px 0 64px;
}

.generator-topbar {
  min-height: 58px;
  margin-bottom: 22px;
  padding: 0 4px;
}

.back-link,
.model-badge {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(23, 23, 23, 0.72);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.back-link {
  padding: 0 18px;
}

.back-link::before {
  color: rgba(255, 255, 255, 0.72);
}

.model-badge {
  padding: 0 16px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(23, 23, 23, 0.72);
}

.generator-layout {
  grid-template-columns: minmax(420px, 0.94fr) minmax(460px, 1.06fr);
  gap: 26px;
  align-items: start;
}

.source-pane,
.control-pane {
  min-width: 0;
}

.reference-card,
.generated-card,
.control-pane,
.field-block textarea,
.field-block select {
  border-color: rgba(255, 255, 255, 0.14);
}

.reference-card,
.generated-card,
.control-pane {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(14, 14, 14, 0.72);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(1.08);
}

.reference-card {
  border-radius: 28px;
}

.reference-card img {
  max-height: 640px;
  background: #080808;
}

.reference-card::after {
  inset: 38% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84));
}

.reference-overlay {
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.reference-overlay span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.88);
  color: #050505;
}

.reference-overlay strong {
  font-size: clamp(18px, 2.1vw, 28px);
  letter-spacing: -0.035em;
}

.source-pane .module-heading {
  margin: 4px 0 2px;
  padding: 22px 2px 0;
}

.module-heading span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.module-heading h1 {
  color: #fff;
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.field-block > span {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0;
}

.field-block textarea,
.field-block select {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.36);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.field-block textarea {
  min-height: 300px;
  padding: 18px 18px 20px;
  border-radius: 20px;
  line-height: 1.72;
}

.field-block select {
  height: 48px;
  border-radius: 16px;
}

.field-block textarea:focus,
.field-block select:focus {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tag-list span {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.control-pane {
  top: 22px;
  padding: 26px;
  border-radius: 28px;
}

.settings-grid {
  gap: 16px;
}

.option-note,
.status-text {
  color: rgba(255, 255, 255, 0.58);
}

.generate-btn {
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 16px;
  box-shadow: 0 22px 60px rgba(255, 255, 255, 0.12);
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 72px rgba(255, 255, 255, 0.16);
}

.generate-btn:disabled {
  background: rgba(255, 255, 255, 0.68);
  color: rgba(0, 0, 0, 0.72);
}

.result-actions {
  gap: 12px;
  margin-top: 14px;
}

.result-action-link {
  height: 46px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.result-action-link:first-child {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.result-action-link:hover {
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.generated-card {
  min-height: 560px;
  margin-top: 18px;
  border-style: solid;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 36px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 28px),
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.1), transparent 36%),
    rgba(0, 0, 0, 0.5);
}

.generated-card img {
  max-height: 680px;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.output-empty {
  color: rgba(255, 255, 255, 0.64);
}

.output-empty strong {
  color: #fff;
}

.output-empty p {
  color: rgba(255, 255, 255, 0.52);
}

.empty-preview-icon {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), inset 0 0 0 6px rgba(255, 255, 255, 0.035);
}

.empty-preview-icon::after {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.empty-preview-icon i {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.generation-loader {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(10, 10, 10, 0.88)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 13px);
}

.loader-stage {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.09), transparent 35%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 6px),
    #070707;
}

@media (max-width: 900px) {
  .generator-layout {
    grid-template-columns: 1fr;
  }

  .control-pane {
    position: static;
  }
}

@media (max-width: 560px) {
  .generator-shell {
    width: calc(100% - 28px);
    padding-top: 18px;
  }

  .generator-topbar {
    margin-bottom: 14px;
  }

  .control-pane {
    padding: 18px;
    border-radius: 24px;
  }

  .field-block textarea {
    min-height: 240px;
  }

  .generated-card {
    min-height: 420px;
  }
}

.api-settings-trigger {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font: inherit;
}

.api-settings-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.api-settings-open {
  overflow: hidden;
}

.api-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 22px;
}

.api-settings-modal.is-open {
  display: grid;
}

.api-settings-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.12), transparent 32%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.api-settings-panel {
  position: relative;
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(8, 8, 8, 0.88);
  color: #fff;
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(28px) saturate(1.12);
}

.api-settings-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.api-settings-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.api-settings-kicker {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.api-settings-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.api-settings-copy {
  margin: 14px 0 26px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.7;
}

.api-settings-field {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.api-settings-field span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.api-settings-field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  outline: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.42);
  color: #fff;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.api-settings-field input:focus {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.api-settings-field input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.api-settings-status {
  min-height: 22px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.api-settings-status[data-tone="ok"] {
  color: rgba(187, 247, 208, 0.92);
}

.api-settings-status[data-tone="error"] {
  color: rgba(254, 202, 202, 0.96);
}

.api-settings-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
  margin-top: 24px;
}

.api-settings-actions button {
  height: 48px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.api-settings-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
}

.api-settings-primary {
  border: 1px solid #fff;
  background: #fff;
  color: #000;
}

.api-settings-primary:disabled {
  cursor: wait;
  opacity: 0.62;
}

.api-settings-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.api-settings-primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.86);
}

@media (max-width: 560px) {
  .api-settings-panel {
    padding: 28px 22px 24px;
    border-radius: 24px;
  }

  .api-settings-actions {
    grid-template-columns: 1fr;
  }
}
