:root {
  --color-ink: #26342d;
  --color-stroke: #31483b;
  --color-muted: #6d6470;
  --color-bg: #fff6e9;
  --color-surface: #fffaf2;
  --color-surface-strong: #ffffff;
  --color-line: #efe1da;
  --color-leaf: #54d77c;
  --color-leaf-dark: #169c54;
  --color-mint: #d8ff76;
  --color-yellow: #fff45c;
  --color-orange: #ff7448;
  --color-pink: #ff6fb1;
  --color-sky: #7dd7ff;
  --color-lilac: #bca0ff;
  --color-peach: #ffc36f;
  --color-candy-blue: #bfeaff;
  --shadow-soft: 0 18px 60px rgba(122, 73, 91, 0.14);
  --shadow-card: 0 12px 32px rgba(122, 73, 91, 0.12);
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --content-width: 1180px;
  color: var(--color-ink);
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  background: var(--color-bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 244, 92, 0.2) 0 12%, transparent 12% 100%),
    linear-gradient(225deg, rgba(125, 215, 255, 0.24) 0 16%, transparent 16% 100%),
    linear-gradient(180deg, #fff6e9 0%, #fff2f8 42%, #f1fbff 100%);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  display: block;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--content-width), calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: 0 12px 40px rgba(123, 88, 63, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  min-width: 58px;
  min-height: 36px;
  place-items: center;
  border: 2px solid var(--color-stroke);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-yellow), var(--color-peach));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}

.brand-name {
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  gap: 8px;
}

.top-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.top-nav a:hover {
  background: #ffe7f1;
  color: var(--color-ink);
}

main {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 44px 0 32px;
}

.hero-copy h1,
.filter-bar h2,
.detail-content h2,
.submit-copy h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 700px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.98;
  text-shadow: 4px 4px 0 rgba(255, 244, 92, 0.72);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #e9f7ff);
  color: #1084a6;
  font-size: 13px;
  font-weight: 900;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions,
.submission-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.submission-actions {
  margin-top: 20px;
}

.button,
.wao-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.wao-button:hover,
.cover-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  padding: 0 20px;
  background: linear-gradient(135deg, var(--color-ink), #313c36);
  box-shadow: 0 10px 22px rgba(23, 34, 27, 0.18);
  color: white;
}

.button-ghost {
  padding: 0 20px;
  border: 1px solid var(--color-line);
  background: linear-gradient(135deg, #ffffff, #fff5ca);
  color: var(--color-ink);
}

.hero-card,
.work-card,
.detail-panel,
.submit-section {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-card img {
  aspect-ratio: 1.16;
  object-fit: cover;
}

.hero-card-body {
  padding: 22px;
}

.hero-card-body h2,
.work-card h3 {
  margin: 12px 0 8px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-card-body p,
.work-card p,
.submit-copy p,
.detail-lead {
  color: var(--color-muted);
  line-height: 1.7;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d8ff76, #bfeaff);
  color: #116254;
  font-size: 13px;
  font-weight: 900;
}

.filter-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 20px;
}

.filter-bar h2,
.detail-content h2,
.submit-copy h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.chip {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-muted);
  cursor: pointer;
  font-weight: 900;
}

.chip.is-active {
  border-color: var(--color-ink);
  background: linear-gradient(135deg, var(--color-yellow), var(--color-pink));
  color: var(--color-ink);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 34px;
}

.work-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.work-card:nth-child(4n + 1) {
  background: linear-gradient(180deg, #fffaf2 0%, #fff0f7 100%);
}

.work-card:nth-child(4n + 2) {
  background: linear-gradient(180deg, #f7ffcf 0%, #ffffff 100%);
}

.work-card:nth-child(4n + 3) {
  background: linear-gradient(180deg, #eef0ff 0%, #fff7ee 100%);
}

.work-card:nth-child(4n + 4) {
  background: linear-gradient(180deg, #fff1e4 0%, #fffdf7 100%);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(123, 88, 63, 0.16);
}

.work-card.is-featured {
  background: linear-gradient(180deg, #fffaf2 0%, #efffe6 100%);
}

.work-card:nth-child(3n + 1) .cover-button {
  background: #d8ff76;
}

.work-card:nth-child(3n + 2) .cover-button {
  background: #bfeaff;
}

.work-card:nth-child(3n + 3) .cover-button {
  background: #ffe3f0;
}

.cover-button {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.cover-button img {
  aspect-ratio: 1.18;
  object-fit: cover;
}

.cover-badge,
.cover-status {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(49, 72, 59, 0.14);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(122, 73, 91, 0.12);
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 900;
}

.cover-badge {
  left: 14px;
  top: 14px;
  background: linear-gradient(135deg, var(--color-yellow), var(--color-pink));
}

.cover-status {
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.work-card-body {
  position: relative;
  padding: 18px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.spark-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff5ca, #ffe3f0);
  color: #8f4a67;
}

.play-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.play-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(49, 72, 59, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
}

.play-badges span:nth-child(1) {
  background: rgba(125, 215, 255, 0.24);
  color: #2f6c89;
}

.play-badges span:nth-child(2) {
  background: rgba(255, 244, 92, 0.32);
  color: #8a6b1e;
}

.play-badges span:nth-child(3) {
  background: rgba(255, 111, 177, 0.18);
  color: #9b4a6e;
}

.vibe-line {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 244, 92, 0.36), rgba(125, 215, 255, 0.24)),
    rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(49, 72, 59, 0.06);
  color: var(--color-ink) !important;
  font-weight: 800;
}

.mini-signal {
  display: flex;
  gap: 5px;
  margin-top: 16px;
}

.mini-signal span {
  display: block;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: var(--color-sky);
}

.mini-signal span:nth-child(2) {
  width: 22px;
  background: var(--color-pink);
}

.mini-signal span:nth-child(3) {
  width: 14px;
  background: var(--color-yellow);
}

.wao-button {
  position: relative;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px 2px 15px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2d2a;
  box-shadow:
    0 12px 24px rgba(82, 64, 53, 0.1),
    inset 0 -1px 0 rgba(123, 211, 255, 0.14);
  backdrop-filter: blur(12px);
}

.wao-button::before {
  position: absolute;
  right: 13px;
  bottom: 7px;
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(127, 222, 255, 0), rgba(114, 205, 255, 0.28), rgba(197, 178, 255, 0.28));
  content: "";
}

.wao-word {
  position: relative;
  z-index: 1;
  color: #23312d;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
}

.wao-emoji {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffdf4d;
  color: #5b86ff;
  font-size: 0;
  box-shadow:
    0 5px 10px rgba(255, 208, 75, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.wao-emoji::before {
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  content: "";
}

.wao-count {
  position: relative;
  z-index: 1;
  color: rgba(35, 49, 45, 0.52);
  font-size: 13px;
  font-weight: 900;
}

.wao-button.is-pressed {
  animation: pop 320ms ease;
  background: #ffffff;
  color: var(--color-ink);
  box-shadow:
    0 14px 28px rgba(82, 64, 53, 0.13),
    inset 0 -1px 0 rgba(123, 211, 255, 0.18);
}

.wao-button.is-pressed .wao-emoji {
  background: #ffdf4d;
  color: #5b86ff;
  animation: twinkle 420ms ease;
}

.wao-burst {
  pointer-events: none;
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
}

.wao-burst i {
  --x: 0px;
  --y: -38px;
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  min-width: max-content;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: white;
  box-shadow: 0 10px 24px rgba(122, 73, 91, 0.14);
  color: var(--color-stroke);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  animation: burst-out 780ms ease forwards;
}

.wao-burst i:nth-child(1) {
  --x: -56px;
  --y: -44px;
  background: var(--color-yellow);
  border-radius: 999px 24px 999px 24px;
}

.wao-burst i:nth-child(2) {
  --x: 42px;
  --y: -48px;
  background: var(--color-sky);
  border-radius: 24px 999px 24px 999px;
}

.wao-burst i:nth-child(3) {
  --x: 62px;
  --y: 18px;
  background: var(--color-pink);
  border-radius: 999px;
  font-size: 19px;
}

.wao-burst i:nth-child(4) {
  --x: -34px;
  --y: 32px;
  background: #fff5ca;
  border-radius: 16px 999px 999px 24px;
  font-size: 18px;
}

.wao-burst i:nth-child(5) {
  --x: 4px;
  --y: -70px;
  background: var(--color-peach);
  border-radius: 999px 18px 22px 999px;
}

.detail-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  margin: 22px 0 38px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.detail-art img {
  height: 100%;
  min-height: 420px;
  border-radius: 22px;
  object-fit: cover;
}

.detail-content {
  align-self: center;
  padding: 8px;
}

.detail-lead {
  margin: 16px 0 0;
  font-size: 18px;
}

.tag-list,
.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-list span,
.metric-strip span {
  padding: 9px 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 92, 0.18));
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
}

.metric-strip strong {
  color: var(--color-ink);
}

.creator-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(191, 234, 255, 0.62));
}

.creator-card span {
  color: var(--color-muted);
  font-weight: 800;
}

.creator-card a {
  color: var(--color-leaf-dark);
  font-weight: 900;
}

.submit-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  margin: 42px 0 70px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.tip-list,
.recent-box ul {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.tip-list li,
.recent-box li {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(216, 255, 118, 0.48), rgba(255, 227, 240, 0.78));
  color: var(--color-ink);
  font-weight: 800;
}

.recent-box {
  margin-top: 24px;
}

.recent-box li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.recent-box span {
  color: var(--color-leaf-dark);
}

.submit-stack {
  display: grid;
  gap: 16px;
}

.submission-receipt {
  padding: 18px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(238, 251, 255, 0.82)),
    radial-gradient(circle at 100% 0, rgba(255, 111, 177, 0.16), transparent 34%);
  box-shadow: var(--shadow-card);
}

.receipt-top,
.receipt-meta,
.receipt-next {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.receipt-top {
  justify-content: space-between;
}

.receipt-status,
.receipt-code,
.receipt-meta span,
.receipt-next span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.receipt-status {
  background: #d8ff76;
  color: var(--color-ink);
}

.receipt-code {
  background: rgba(125, 215, 255, 0.38);
  color: #1084a6;
}

.submission-receipt h3 {
  margin: 14px 0 8px;
  color: var(--color-ink);
  font-size: 24px;
  line-height: 1.15;
}

.submission-receipt p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.receipt-meta {
  margin-top: 14px;
}

.receipt-meta span {
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-muted);
}

.receipt-next {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(239, 225, 218, 0.82);
}

.receipt-next strong {
  width: 100%;
  color: var(--color-ink);
  font-size: 13px;
}

.receipt-next span {
  background: linear-gradient(135deg, rgba(255, 227, 240, 0.78), rgba(191, 234, 255, 0.68));
  color: var(--color-ink);
}

.lookup-panel {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
}

.lookup-copy h3 {
  margin: 0;
  color: var(--color-ink);
  font-size: 22px;
}

.lookup-copy p {
  margin: 8px 0 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.lookup-panel .section-kicker {
  margin-bottom: 10px;
}

.lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.lookup-form input {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface-strong);
  color: var(--color-ink);
  outline: none;
}

.lookup-form input:focus {
  border-color: var(--color-sky);
  box-shadow: 0 0 0 4px rgba(125, 215, 255, 0.2);
}

.lookup-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
}

.lookup-result.is-success {
  background: linear-gradient(135deg, rgba(216, 255, 118, 0.5), rgba(238, 251, 255, 0.9));
}

.lookup-result.is-error {
  background: linear-gradient(135deg, rgba(255, 227, 240, 0.9), rgba(255, 250, 242, 0.92));
}

.lookup-result-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.lookup-result-top span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 900;
}

.lookup-result strong {
  color: var(--color-ink);
  font-size: 15px;
}

.lookup-result p {
  margin: 7px 0 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.submit-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.submit-form label {
  display: grid;
  gap: 8px;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 900;
}

.netlify-honeypot {
  display: none;
}

.submit-form input,
.submit-form textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface-strong);
  color: var(--color-ink);
  outline: none;
}

.submit-form input {
  min-height: 46px;
  padding: 0 13px;
}

.submit-form textarea {
  min-height: 108px;
  resize: vertical;
  padding: 12px 13px;
}

.submit-form input:focus,
.submit-form textarea:focus {
  border-color: var(--color-leaf);
  box-shadow: 0 0 0 4px rgba(95, 191, 130, 0.16);
}

.submit-form button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
}

.toast {
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(38, 52, 45, 0.86);
  box-shadow: 0 16px 38px rgba(122, 73, 91, 0.2);
  color: white;
  font-size: 18px;
  font-weight: 900;
  animation: float-in 220ms ease;
  backdrop-filter: blur(12px);
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes twinkle {
  0% {
    transform: rotate(8deg) scale(1);
  }
  55% {
    transform: rotate(-10deg) scale(1.22);
  }
  100% {
    transform: rotate(8deg) scale(1);
  }
}

@keyframes burst-out {
  0% {
    transform: translate(-50%, -50%) scale(0.35) rotate(-8deg);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(8deg);
    opacity: 0;
  }
}

@keyframes float-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 920px) {
  .hero,
  .detail-panel,
  .submit-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-art img {
    min-height: auto;
    aspect-ratio: 1.42;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .top-nav a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-text {
    font-size: 17px;
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .chips {
    justify-content: flex-start;
  }

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

  .detail-panel,
  .submit-section {
    padding: 16px;
  }

  .lookup-form {
    grid-template-columns: 1fr;
  }

  .lookup-form .button {
    width: 100%;
  }

  .toast-region {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .toast {
    text-align: center;
  }
}

/* UI refresh: product-like candy discovery layout */
:root {
  --color-ink: #17211d;
  --color-muted: #68736e;
  --color-bg: #fffaf4;
  --color-line: #eee6dd;
  --color-yellow: #ffd85a;
  --color-pink: #ff7db2;
  --color-sky: #a9ddff;
  --color-mint: #96e6b7;
  --color-lilac: #c9b7ff;
  --shadow-soft: 0 24px 70px rgba(72, 46, 56, 0.1);
  --shadow-card: 0 14px 34px rgba(72, 46, 56, 0.1);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --content-width: 1360px;
}

body {
  background:
    radial-gradient(circle at 4% 18%, rgba(255, 216, 90, 0.24), transparent 17%),
    radial-gradient(circle at 92% 18%, rgba(255, 125, 178, 0.18), transparent 16%),
    radial-gradient(circle at 82% 54%, rgba(169, 221, 255, 0.22), transparent 17%),
    linear-gradient(180deg, #fffaf4 0%, #fff7fb 48%, #f8fdff 100%);
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 270px) auto;
  gap: 24px;
  width: min(var(--content-width), calc(100% - 48px));
  margin-top: 18px;
  padding: 12px 20px;
  border: 0;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 46px rgba(72, 46, 56, 0.08);
}

.brand {
  width: 104px;
}

.brand-logo {
  width: 104px;
  height: 86px;
  object-fit: contain;
  object-position: center;
}

.brand-mark,
.brand-name {
  display: none;
}

.top-nav {
  justify-content: center;
  gap: 26px;
}

.top-nav a {
  min-width: 78px;
  padding: 11px 18px;
  color: #16231f;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
}

.top-nav a.is-active,
.top-nav a:hover {
  background: linear-gradient(135deg, #ffe98d, #ffd056);
  color: #16231f;
  box-shadow: 0 8px 18px rgba(255, 208, 86, 0.22);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(30, 42, 36, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #17211d;
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #17211d;
  outline: 0;
}

.search-box span {
  font-size: 24px;
  line-height: 1;
}

.submit-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #17211d, #29372f);
  box-shadow: 0 14px 28px rgba(23, 33, 29, 0.18);
  color: white;
  font-weight: 900;
}

.submit-pill span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #ffd85a;
  color: #17211d;
}

main {
  width: min(var(--content-width), calc(100% - 48px));
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.94fr);
  min-height: 0;
  margin-top: 18px;
  padding: 70px 92px 62px;
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 36% 14%, rgba(255, 228, 238, 0.78), transparent 36%),
    radial-gradient(ellipse at 88% 72%, rgba(177, 224, 255, 0.6), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 248, 229, 0.7));
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(48px, 5.9vw, 78px);
  line-height: 1.08;
  text-shadow:
    0 3px 0 rgba(255, 216, 90, 0.95),
    0 8px 20px rgba(23, 33, 29, 0.08);
}

.hero-text {
  max-width: 560px;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.9;
}

.button-primary {
  min-height: 52px;
  padding: 0 28px;
  background: linear-gradient(135deg, #17211d, #29372f);
  box-shadow: 0 16px 28px rgba(23, 33, 29, 0.18);
}

.button-ghost {
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid rgba(30, 42, 36, 0.08);
  background: linear-gradient(135deg, #fff9e6, #fff1bd);
  box-shadow: 0 10px 24px rgba(255, 216, 90, 0.16);
}

.hero-card {
  border: 1px solid rgba(30, 42, 36, 0.08);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.hero-card > .cover-badge {
  z-index: 2;
}

.hero-card img {
  aspect-ratio: 1.9;
  background: #fff8df;
}

.hero-card-body {
  padding: 22px 26px 26px;
}

.hero-card-body h2,
.work-card h3 {
  color: #17211d;
  font-size: 24px;
  font-weight: 1000;
}

.hero-card-actions {
  justify-content: space-between;
}

.mini-avatars {
  display: flex;
  align-items: center;
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.mini-avatars span {
  width: 24px;
  height: 24px;
  margin-right: -6px;
  border: 2px solid white;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7d7d, #ffd85a);
}

.mini-avatars span:nth-child(2) {
  background: linear-gradient(135deg, #7ad7ff, #96e6b7);
}

.mini-avatars span:nth-child(3) {
  margin-right: 10px;
  background: linear-gradient(135deg, #c9b7ff, #ff7db2);
}

.filter-bar {
  justify-content: flex-start;
  padding: 28px 0 22px;
}

.chips {
  justify-content: flex-start;
}

.chip {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(72, 46, 56, 0.06);
  color: #17211d;
}

.chip.is-active {
  background: linear-gradient(135deg, #ffe98d, #ffd056);
  box-shadow: 0 10px 22px rgba(255, 208, 86, 0.22);
}

.work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.work-card {
  border: 1px solid rgba(30, 42, 36, 0.08);
  border-radius: 26px;
  background: white;
  box-shadow: var(--shadow-card);
}

.work-card:nth-child(4n + 1),
.work-card:nth-child(4n + 2),
.work-card:nth-child(4n + 3),
.work-card:nth-child(4n + 4),
.work-card.is-featured {
  background: rgba(255, 255, 255, 0.86);
}

.cover-button img {
  aspect-ratio: 1.38;
  background: #fff8df;
}

.cover-status {
  display: none;
}

.cover-badge {
  top: 14px;
  left: 14px;
  border: 0;
  background: linear-gradient(135deg, #ffe98d, #ffd056);
  color: #17211d;
}

.work-card-body {
  padding: 16px 18px 18px;
}

.pill {
  min-height: 26px;
  background: #dff8d7;
  color: #287455;
  font-size: 12px;
}

.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f5f7f6;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
}

.card-actions {
  justify-content: space-between;
  margin-top: 16px;
}

.work-card .button-primary {
  min-height: 44px;
  padding: 0 22px;
}

.wao-button {
  min-height: 38px;
  padding: 0 14px 2px 15px;
}

.wao-word {
  font-size: 18px;
}

.category-highlights {
  margin: 10px 0 42px;
  padding: 32px 36px 38px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

.section-heading a {
  color: var(--color-muted);
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  position: relative;
  min-height: 122px;
  padding: 22px 18px;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f6, #fffaf4);
  cursor: pointer;
  text-align: left;
}

.category-card:nth-child(2) {
  background: linear-gradient(135deg, #eaf9e9, #fffaf4);
}

.category-card:nth-child(3) {
  background: linear-gradient(135deg, #f1edff, #fffaf4);
}

.category-card:nth-child(4) {
  background: linear-gradient(135deg, #fff0f5, #fffaf4);
}

.category-card:nth-child(5) {
  background: linear-gradient(135deg, #fff4df, #fffaf4);
}

.category-card span {
  display: block;
  color: #ff4e9a;
  font-size: 18px;
  font-weight: 1000;
}

.category-card small {
  display: block;
  max-width: 150px;
  margin-top: 8px;
  color: var(--color-muted);
  line-height: 1.5;
}

.category-card i {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 42px;
  font-style: normal;
}

.hero-blob,
.confetti {
  pointer-events: none;
  position: absolute;
  display: block;
}

.hero-blob-yellow {
  left: -96px;
  top: 50px;
  width: 210px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 216, 90, 0.42);
}

.hero-blob-pink {
  right: 0;
  top: 28px;
  width: 230px;
  height: 160px;
  border-radius: 999px 0 0 999px;
  background: rgba(255, 125, 178, 0.28);
}

.hero-blob-blue {
  right: 36px;
  bottom: -38px;
  width: 260px;
  height: 180px;
  border-radius: 999px 999px 0 0;
  background: rgba(169, 221, 255, 0.42);
}

.confetti {
  width: 22px;
  height: 52px;
  border-radius: 999px;
  background: #55d9a0;
  transform: rotate(28deg);
}

.confetti-one {
  left: 46%;
  bottom: 90px;
}

.confetti-two {
  left: 49%;
  bottom: 62px;
  height: 16px;
  background: #ffd85a;
  transform: rotate(0deg);
}

.confetti-three {
  left: 52%;
  bottom: 76px;
  height: 38px;
  background: #ff7db2;
  transform: rotate(58deg);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .search-box {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 52px 44px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: auto auto;
    width: min(var(--content-width), calc(100% - 24px));
    border-radius: 24px;
  }

  .brand {
    width: 88px;
  }

  .brand-logo {
    width: 88px;
    height: 72px;
  }

  .top-nav {
    display: none;
  }

  .submit-pill {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  main {
    width: calc(100% - 24px);
  }

  .hero {
    margin-top: 14px;
    padding: 32px 22px 24px;
    border-radius: 30px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-card img,
  .cover-button img {
    aspect-ratio: 1.28;
  }

  .filter-bar {
    overflow-x: auto;
  }

  .chips {
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .work-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-highlights {
    padding: 24px 18px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
