:root {
  color-scheme: light;
  --ink: #151922;
  --muted: #566174;
  --yellow: #ffd51b;
  --yellow-deep: #ffbf00;
  --paper: #fffdf7;
  --line: #eee9dc;
  font-family: "Nunito", "Trebuchet MS", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 2% 8%, rgba(255, 221, 79, .14), transparent 26rem),
    radial-gradient(ellipse at 99% 60%, rgba(255, 230, 130, .14), transparent 25rem),
    var(--paper);
}

.page-shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

.topbar {
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; width: 236px; }
.brand img { width: 100%; height: auto; display: block; }
.top-note { display: inline-flex; align-items: center; gap: 10px; color: #535b68; font-size: 14px; font-weight: 800; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #66c78b; box-shadow: 0 0 0 4px #e7f7ec; }

.welcome {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  padding: 66px 8.2%;
  border: 1px solid #f4e8b9;
  border-radius: 34px;
  background: linear-gradient(112deg, #fff7d8 0%, #fff4c8 52%, #ffed9e 100%);
  box-shadow: 0 18px 54px rgba(163, 127, 23, .08), inset 0 1px rgba(255,255,255,.8);
}

.welcome-copy { position: relative; z-index: 2; max-width: 550px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #6b5711; font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.eyebrow-star { display: grid; place-items: center; width: 25px; height: 25px; color: #171717; background: var(--yellow); border-radius: 8px; font-size: 15px; letter-spacing: 0; }
h1 { margin: 20px 0 15px; font-size: clamp(48px, 6.1vw, 76px); line-height: .99; letter-spacing: -.065em; font-weight: 1000; }
h1 span { color: #eab700; }
.intro { max-width: 470px; margin: 0; color: #465366; font-size: 18px; line-height: 1.65; font-weight: 600; }
.coming-soon { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 17px; border: 1px solid rgba(190, 151, 24, .2); border-radius: 999px; background: rgba(255,255,255,.72); color: #384254; font-size: 14px; font-weight: 800; box-shadow: 0 4px 16px rgba(135, 106, 20, .06); }
.loader { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #f0dc83; border-top-color: #d9a900; animation: spin 1.2s linear infinite; }

.brand-stage { position: relative; z-index: 1; height: 330px; display: grid; place-items: center; }
.stage-halo { position: absolute; width: min(390px, 34vw); aspect-ratio: 1; border-radius: 47% 53% 58% 42% / 44% 43% 57% 56%; background: rgba(255, 216, 45, .43); transform: rotate(-9deg); animation: breathe 7s ease-in-out infinite; }
.stage-ring { position: absolute; border: 1px solid rgba(194, 151, 4, .26); border-radius: 50%; }
.ring-one { width: 355px; height: 250px; transform: rotate(-22deg); }
.ring-two { width: 290px; height: 375px; transform: rotate(31deg); }
.stage-logo { position: relative; width: min(390px, 36vw); mix-blend-mode: multiply; filter: drop-shadow(0 16px 10px rgba(100, 72, 0, .12)); animation: float 5s ease-in-out infinite; }
.stage-caption { position: absolute; right: -3%; top: 14%; padding: 12px 16px; border-radius: 15px; background: #fffef7; color: #222; font-size: 15px; line-height: 1.2; font-weight: 1000; transform: rotate(7deg); box-shadow: 0 8px 22px rgba(113, 87, 0, .1); }
.stage-star { position: absolute; color: #edb900; text-shadow: 0 2px 0 rgba(255,255,255,.6); }
.star-a { top: 14%; left: 8%; font-size: 32px; animation: twinkle 2.8s ease-in-out infinite; }
.star-b { bottom: 12%; right: 8%; font-size: 27px; animation: twinkle 3.3s ease-in-out infinite reverse; }
.spark { position: absolute; z-index: 0; color: rgba(238, 192, 33, .52); }
.spark-one { left: 45%; top: 8%; font-size: 22px; }
.spark-two { left: 48%; bottom: 10%; font-size: 27px; }
.sunburst { position: absolute; z-index: -1; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,.18); filter: blur(1px); }
.sunburst-one { left: 42%; top: -125px; }
.sunburst-two { right: -80px; bottom: -112px; width: 300px; height: 300px; }

.note { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; margin: 25px 0 0; padding: 23px 28px; border: 1px solid #eee8d8; border-radius: 20px; background: rgba(255,255,255,.78); box-shadow: 0 8px 26px rgba(28, 34, 46, .035); }
.note-icon { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: #fff1ad; color: #745a00; font-size: 29px; font-weight: 800; }
.note h2 { margin: 0 0 3px; font-size: 17px; letter-spacing: -.02em; font-weight: 900; }
.note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; font-weight: 600; }
.note-decoration { margin-left: auto; padding: 0 18px; color: #edc11c; font-size: 34px; transform: rotate(12deg); }

.footer { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #7d8490; font-size: 13px; font-weight: 700; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }
@keyframes breathe { 0%, 100% { transform: rotate(-9deg) scale(1); } 50% { transform: rotate(-3deg) scale(1.035); } }
@keyframes twinkle { 0%, 100% { opacity: .55; transform: scale(.9) rotate(0); } 50% { opacity: 1; transform: scale(1.12) rotate(12deg); } }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 32px, 560px); }
  .topbar { height: 82px; }
  .brand { width: 185px; }
  .top-note { max-width: 136px; gap: 8px; font-size: 11px; line-height: 1.25; }
  .welcome { min-height: initial; grid-template-columns: 1fr; padding: 42px 28px 24px; border-radius: 26px; }
  .welcome-copy { max-width: 100%; }
  h1 { margin-top: 17px; font-size: clamp(47px, 12vw, 67px); }
  .intro { font-size: 16px; line-height: 1.58; }
  .coming-soon { margin-top: 23px; font-size: 13px; }
  .brand-stage { height: 250px; margin: 8px -10px 0; }
  .stage-halo { width: 235px; }
  .stage-logo { width: min(300px, 76vw); }
  .ring-one { width: 270px; height: 195px; }
  .ring-two { width: 220px; height: 280px; }
  .stage-caption { right: 1%; top: 11%; font-size: 12px; padding: 9px 12px; }
  .star-a { left: 5%; top: 16%; }
  .star-b { right: 4%; bottom: 11%; }
  .spark-one { left: 78%; top: 4%; }
  .spark-two { left: 9%; bottom: 16%; }
  .note { gap: 13px; padding: 18px 16px; border-radius: 17px; }
  .note-icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 13px; }
  .note h2 { font-size: 15px; }
  .note p { font-size: 13px; }
  .note-decoration { display: none; }
  .footer { min-height: 72px; font-size: 11px; }
}

@media (max-width: 390px) {
  .page-shell { width: calc(100% - 24px); }
  .top-note { max-width: 112px; }
  .welcome { padding-right: 21px; padding-left: 21px; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

.top-actions { display: flex; align-items: center; gap: 20px; }
.language-toggle { min-width: 46px; height: 42px; border: 1px solid #e7dfca; border-radius: 13px; background: #fff; color: #242a35; font: inherit; font-weight: 900; cursor: pointer; }
.language-toggle:hover, .language-toggle:focus-visible { border-color: #d2aa13; outline: 3px solid rgba(255, 213, 27, .24); }
.gallery-hero { min-height: 465px; }
.hero-cta { text-decoration: none; }
.cta-spark { color: #c49400; }
.gallery-section { padding: 72px 0 50px; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.gallery-eyebrow { color: #75621e; }
.gallery-heading h2 { margin: 12px 0 6px; font-size: clamp(31px, 4vw, 43px); line-height: 1.08; letter-spacing: -.045em; font-weight: 1000; }
.gallery-lede { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; font-weight: 600; }
.random-button { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 48px; padding: 0 19px; border: 0; border-radius: 14px; background: #202632; color: #fff; font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 8px 20px rgba(26, 33, 45, .12); transition: transform .18s ease, background .18s ease; }
.random-button:hover { transform: translateY(-2px); background: #353e4e; }
.random-button span:first-child { color: var(--yellow); font-size: 21px; }
.gallery-tools { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.search-box { display: flex; align-items: center; gap: 10px; width: min(360px, 100%); min-height: 48px; padding: 0 15px; border: 1px solid #e9e5d9; border-radius: 14px; background: #fff; color: #737b88; box-shadow: 0 4px 14px rgba(28, 34, 46, .025); }
.search-box > span:first-child { font-size: 25px; line-height: 1; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; }
.search-box:focus-within { border-color: #e3be25; box-shadow: 0 0 0 3px rgba(255, 213, 27, .17); }
.category-list { display: flex; align-items: center; gap: 8px; }
.category-chip { min-height: 42px; padding: 0 16px; border: 1px solid #e9e5d9; border-radius: 999px; background: rgba(255,255,255,.78); color: #586171; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.category-chip.is-active { border-color: #f0cd44; background: #fff3bd; color: #574500; }
.results-count { margin: 0 0 0 auto; color: #7b8290; font-size: 13px; font-weight: 800; white-space: nowrap; }
.gif-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 17px; }
.gif-card { min-width: 0; padding: 10px 10px 13px; overflow: hidden; border: 1px solid #ece8dd; border-radius: 17px; background: #fff; color: var(--ink); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 7px 22px rgba(30, 36, 48, .035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.gif-card:hover, .gif-card:focus-visible { transform: translateY(-4px); border-color: #e9cf66; outline: 0; box-shadow: 0 15px 30px rgba(30, 36, 48, .09); }
.gif-frame { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / .88; overflow: hidden; border-radius: 11px; background: repeating-conic-gradient(#fff 0 25%, #f4f1e8 0 50%) 50% / 18px 18px; }
.gif-frame img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: auto; }
.gif-title { display: block; overflow: hidden; margin: 12px 3px 3px; font-size: 14px; font-weight: 1000; text-overflow: ellipsis; white-space: nowrap; }
.gif-category { display: block; margin: 0 3px; color: #858b96; font-size: 11px; font-weight: 800; }
.empty-state { padding: 50px 20px; border: 1px dashed #e4ddc9; border-radius: 18px; color: #687183; text-align: center; font-weight: 800; }
.empty-state > span { font-size: 32px; }
.empty-state p { margin: 8px 0 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.gif-dialog { position: fixed; width: min(780px, calc(100% - 28px)); max-width: 780px; max-height: min(88vh, 900px); padding: 0; overflow: auto; border: 1px solid #eee8d8; border-radius: 24px; background: #fffdf8; color: var(--ink); box-shadow: 0 25px 90px rgba(20, 26, 36, .3); }
.gif-dialog::backdrop { background: rgba(21, 25, 34, .64); backdrop-filter: blur(4px); }
.gif-dialog form { position: absolute; z-index: 1; top: 13px; right: 13px; }
.dialog-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(255,255,255,.92); color: #212735; font-size: 27px; line-height: 1; cursor: pointer; }
.dialog-image-wrap { display: grid; place-items: center; min-height: 290px; max-height: 65vh; padding: 42px; background: repeating-conic-gradient(#fff 0 25%, #f4f1e8 0 50%) 50% / 20px 20px; }
.dialog-image-wrap img { max-width: 100%; max-height: 58vh; object-fit: contain; }
.dialog-copy { padding: 23px 28px 27px; }
.dialog-kicker { margin: 0 0 5px; color: #96802d; font-size: 10px; font-weight: 1000; letter-spacing: .14em; }
.dialog-copy h2 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.035em; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.dialog-tags span { padding: 5px 10px; border-radius: 999px; background: #fff3bd; color: #67530a; font-size: 11px; font-weight: 900; }
.dialog-copy a { color: #586171; font-size: 13px; font-weight: 800; text-decoration-color: #d4bd63; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .gif-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-tools { flex-wrap: wrap; }
  .results-count { margin-left: 0; }
}
@media (max-width: 760px) {
  .top-actions { gap: 10px; }
  .top-note { max-width: none; }
  .gallery-hero { min-height: auto; }
  .gallery-section { padding: 50px 0 34px; }
  .gallery-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .gallery-heading h2 { font-size: 34px; }
  .random-button { min-height: 44px; }
  .search-box { width: 100%; }
  .category-list { order: 2; }
  .results-count { order: 3; }
  .gif-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gif-card { padding: 8px 8px 11px; border-radius: 14px; }
  .gif-title { margin-top: 9px; font-size: 13px; }
  .dialog-image-wrap { min-height: 230px; padding: 28px; }
  .dialog-copy { padding: 19px 20px 23px; }
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  color: #78756d;
  font-size: 0.9rem;
}

.breadcrumbs a { color: #57524a; text-decoration: none; }
.breadcrumbs a:hover { color: #e66e43; text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #25231f; font-weight: 800; }

