/* ==========================================================================
   猫町书屿 · Neko Isle Books
   A low-saturation paper / teal / orange / blue visual system.
   ========================================================================== */

@font-face {
  font-family: "ZCOOL KuaiLe";
  src: url("../assets/fonts/ZCOOLKuaiLe-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f5ef;
  --paper-2: #fffdf8;
  --paper-3: #f0ede4;
  --ink: #33484d;
  --ink-soft: #5f7377;
  --ink-mute: #8b9a9a;
  --line: #dcd8ca;
  --line-soft: rgba(51, 72, 77, 0.12);
  --teal: #7fb3ac;
  --teal-deep: #4f8883;
  --teal-dark: #355f5b;
  --teal-pale: #e4efec;
  --orange: #e9a178;
  --orange-deep: #c97a52;
  --orange-pale: #f8e6d8;
  --blue: #9dbcd2;
  --blue-deep: #6f93ae;
  --blue-pale: #e5eef4;
  --butter: #f3d3a4;
  --white: #fffdf8;
  --shadow-sm: 0 6px 18px rgba(51, 72, 77, 0.07);
  --shadow: 0 18px 46px rgba(51, 72, 77, 0.09);
  --shadow-lift: 0 26px 60px rgba(51, 72, 77, 0.14);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 42px;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 8% -8%, rgba(127, 179, 172, 0.16), transparent 62%),
    radial-gradient(840px 520px at 96% 3%, rgba(233, 161, 120, 0.11), transparent 64%),
    var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  color: var(--ink);
  background: var(--butter);
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

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

.container {
  width: min(1240px, calc(100% - 72px));
  margin-inline: auto;
}

::selection {
  background: var(--butter);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Common decorative / typographic pieces
   -------------------------------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--teal-deep);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.19em;
  line-height: 1;
}

.kicker-paw {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--teal-deep);
  background: var(--teal-pale);
}

.kicker-paw .icon {
  width: 13px;
  height: 13px;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 40px;
}

.section-copy {
  max-width: 660px;
}

.section h2 {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.h2-doodle {
  position: relative;
  display: inline-block;
  padding: 5px 12px 6px;
  color: var(--teal-dark);
  background: var(--teal-pale);
  border: 1px solid rgba(79, 136, 131, 0.25);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  transform: rotate(-2.5deg) translateY(-3px);
  white-space: nowrap;
}

.h2-doodle::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -5px;
  width: 22px;
  height: 7px;
  border-radius: 50%;
  background: rgba(79, 136, 131, 0.16);
  transform: rotate(3deg);
}

.h2-doodle--orange {
  color: var(--orange-deep);
  background: var(--orange-pale);
  border-color: rgba(201, 122, 82, 0.22);
}

.h2-doodle--blue {
  color: var(--blue-deep);
  background: var(--blue-pale);
  border-color: rgba(111, 147, 174, 0.22);
}

.section-desc {
  margin-top: 14px;
  max-width: 610px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: var(--paper-2);
  background: var(--ink);
  box-shadow: 0 5px 0 rgba(51, 72, 77, 0.14);
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 8px 0 rgba(51, 72, 77, 0.11);
}

.btn-secondary {
  color: var(--ink);
  background: var(--paper-2);
  box-shadow: 0 4px 0 rgba(51, 72, 77, 0.07);
}

.btn-secondary:hover {
  background: #fff;
  box-shadow: 0 7px 0 rgba(51, 72, 77, 0.07);
}

.btn-ghost {
  min-height: 45px;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  border-color: rgba(51, 72, 77, 0.22);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}

.btn-orange {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--ink);
}

.btn-orange:hover {
  background: #f0b08b;
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-right: -8px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--butter);
}

.btn-icon .icon {
  width: 15px;
  height: 15px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(51, 72, 77, 0.16);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper-2);
  transition: 0.25s var(--ease);
}

.icon-btn:hover {
  border-color: var(--ink);
  background: var(--teal-pale);
  transform: rotate(-6deg);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 700;
}

.text-link .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover .icon {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Announcement + header
   -------------------------------------------------------------------------- */

.announce-bar {
  position: relative;
  z-index: 80;
  color: var(--teal-dark);
  background: var(--teal-pale);
  border-bottom: 1px solid rgba(79, 136, 131, 0.13);
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 35px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.announce-note,
.announce-source {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.announce-note {
  font-weight: 600;
}

.announce-paw {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.announce-paw .icon {
  width: 11px;
  height: 11px;
}

.announce-source {
  color: rgba(53, 95, 91, 0.74);
}

.announce-source a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-decoration-color: rgba(53, 95, 91, 0.25);
  text-underline-offset: 3px;
}

.announce-source a:hover {
  text-decoration-color: var(--teal-dark);
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(247, 245, 239, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  background: rgba(247, 245, 239, 0.96);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 14px 34px rgba(51, 72, 77, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--orange-pale);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(51, 72, 77, 0.09);
  transform: rotate(-3deg);
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(4deg) translateY(-2px);
}

.brand-mark svg {
  width: 40px;
  height: 40px;
}

.brand-mark .bm-ear {
  fill: var(--orange);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}

.brand-mark .bm-head {
  fill: var(--orange);
  stroke: var(--ink);
  stroke-width: 3;
}

.brand-mark .bm-eye,
.brand-mark .bm-mouth,
.brand-mark .bm-whisker {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.brand-mark .bm-nose {
  fill: var(--ink);
}

.brand-mark .bm-blush {
  fill: #f4c3ae;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.brand-text em {
  color: var(--ink-mute);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 31px;
  margin-left: auto;
  margin-right: auto;
}

.main-nav a {
  position: relative;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  transform: translateX(-50%) scale(0.2);
  transition: 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 178px;
  height: 40px;
  padding: 0 11px 0 14px;
  color: var(--ink-mute);
  background: var(--paper-2);
  border: 1.5px solid rgba(51, 72, 77, 0.13);
  border-radius: 999px;
  font-size: 12px;
  text-align: left;
  transition: 0.25s var(--ease);
}

.search-trigger:hover {
  color: var(--ink);
  border-color: rgba(51, 72, 77, 0.35);
  box-shadow: var(--shadow-sm);
}

.search-trigger .icon {
  width: 16px;
  height: 16px;
}

.search-trigger span {
  flex: 1;
}

.search-trigger kbd {
  padding: 3px 5px;
  color: var(--ink-mute);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 9px;
  line-height: 1;
}

.header-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  color: var(--teal-deep);
  background: rgba(228, 239, 236, 0.8);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.header-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-deep);
  box-shadow: 0 0 0 0 rgba(79, 136, 131, 0.45);
  animation: livePulse 2.4s infinite;
}

.header-live.is-warn {
  color: var(--orange-deep);
  background: var(--orange-pale);
}

.header-live.is-warn i {
  background: var(--orange-deep);
}

.header-live.is-busy {
  color: var(--blue-deep);
  background: var(--blue-pale);
}

.header-live.is-busy i {
  background: var(--blue-deep);
}

.mobile-menu-btn {
  display: none;
}

.mobile-search-btn {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-search-btn {
    display: inline-grid;
  }
}

.mobile-menu {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 24px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 12px;
  min-height: 610px;
  padding-top: 30px;
  padding-bottom: 40px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -130px;
  right: -170px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 161, 120, 0.1), transparent 68%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-right: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--teal-deep);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  animation: heroIn 0.9s 0.05s both var(--ease);
}

.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-deep);
  box-shadow: 0 0 0 4px rgba(79, 136, 131, 0.13);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(79, 136, 131, 0.3);
  border-radius: 50%;
  animation: dotRipple 2.6s infinite;
}

.eyebrow-line {
  width: 38px;
  height: 1px;
  margin-left: 4px;
  background: rgba(79, 136, 131, 0.35);
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(48px, 5.45vw, 78px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.045em;
  animation: heroIn 1s 0.14s both var(--ease);
}

.hero h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.015em;
  transform: rotate(-1.2deg);
}

.title-scribble {
  position: absolute;
  left: -2%;
  bottom: -14%;
  width: 104%;
  height: 24px;
  overflow: visible;
  pointer-events: none;
}

.title-scribble path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.75;
}

.title-scribble path:nth-child(2) {
  stroke: var(--butter);
  stroke-width: 3;
  opacity: 0.8;
}

.hero-lead {
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.95;
  animation: heroIn 1s 0.24s both var(--ease);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 31px;
  animation: heroIn 1s 0.32s both var(--ease);
}

.hero-actions .btn {
  min-height: 53px;
  padding: 0 22px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 42px;
  animation: heroIn 1s 0.4s both var(--ease);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-stat strong {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.hero-stat strong em {
  color: var(--orange-deep);
  font-family: var(--font-body);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-stat > span {
  color: var(--ink-mute);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.stat-line {
  width: 1px;
  height: 27px;
  background: var(--line);
}

.hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 590px;
  animation: heroIn 1.2s 0.18s both var(--ease);
}

.hero-art-glow {
  position: absolute;
  inset: 3% 0 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 161, 120, 0.14), transparent 66%);
  filter: blur(14px);
  pointer-events: none;
}

.hero-cat {
  position: relative;
  z-index: 1;
  width: min(100%, 690px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 24px 30px rgba(53, 95, 91, 0.08));
  animation: catFloat 7.5s ease-in-out infinite;
}

.hero-cat .art-sun {
  transform-origin: 574px 132px;
  animation: sunBreathe 8s ease-in-out infinite;
}

.art-cloud {
  animation: cloudDrift 12s ease-in-out infinite;
}

.cloud-b {
  animation-delay: -3s;
}

.cloud-c {
  animation-delay: -5s;
}

.cat-tail {
  transform-box: fill-box;
  transform-origin: 4% 92%;
  animation: tailSway 5.8s ease-in-out infinite;
}

.cat-ears {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: earTwitch 8s ease-in-out infinite;
}

.cat-glasses {
  animation: glassesGlint 7s ease-in-out infinite;
}

.steam {
  animation: steamUp 3.4s ease-in-out infinite;
}

.steam-b {
  animation-delay: -1.6s;
}

.deco-plane {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: planeDrift 6.5s ease-in-out infinite;
}

.deco-fish {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: fishBob 5.2s ease-in-out infinite;
}

.deco-yarn {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: yarnRoll 7s ease-in-out infinite;
}

.spark-a,
.spark-b,
.spark-c {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 4.2s ease-in-out infinite;
}

.spark-b {
  animation-delay: -1.2s;
}

.spark-c {
  animation-delay: -2.4s;
}

.art-note {
  position: absolute;
  top: 7%;
  right: 1%;
  z-index: 3;
  padding: 13px 18px 14px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 20px 20px 20px 5px;
  box-shadow: 5px 6px 0 rgba(51, 72, 77, 0.08);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  transform: rotate(3deg);
  animation: noteFloat 5.5s ease-in-out infinite;
}

.art-note span {
  display: block;
  color: var(--ink-mute);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.art-note strong {
  font-weight: 400;
  color: var(--teal-deep);
}

.note-tail {
  position: absolute;
  left: -18px;
  bottom: -13px;
  width: 30px;
  height: 20px;
  transform: rotate(-8deg);
}

.art-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 253, 248, 0.93);
  border: 1.5px solid var(--ink);
  border-radius: 15px;
  box-shadow: 4px 5px 0 rgba(51, 72, 77, 0.07);
  backdrop-filter: blur(6px);
  animation: chipFloat 6s ease-in-out infinite;
}

.art-chip--heat {
  top: 39%;
  left: -1%;
  transform: rotate(-3deg);
}

.art-chip--rate {
  right: 0%;
  bottom: 17%;
  animation-delay: -2.6s;
  transform: rotate(2.5deg);
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--orange-deep);
  background: var(--orange-pale);
}

.chip-icon .icon {
  width: 17px;
  height: 17px;
}

.chip-cat {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--teal-deep);
  border-radius: 10px;
  background: var(--teal-pale);
  font-size: 15px;
}

.chip-cat .icon {
  width: 17px;
  height: 17px;
}

.art-chip > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.art-chip strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
}

.art-chip em {
  color: var(--ink-mute);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.paw-trail-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.trail-paw {
  position: absolute;
  width: 17px;
  height: 17px;
  color: var(--orange);
  opacity: 0;
  animation: pawFade 1.2s ease-out forwards;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
}

.hero-deco {
  position: absolute;
  pointer-events: none;
}

.hero-deco--paw {
  top: 15%;
  left: -100px;
  width: 240px;
  opacity: 0.13;
  transform: rotate(-18deg);
}

.hero-deco--paw g {
  fill: var(--teal-deep);
}

.hero-deco--ring {
  right: 8%;
  top: 5%;
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(79, 136, 131, 0.2);
  border-radius: 50%;
}

.hero-deco--ring::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.55;
}

.hero-deco--dots {
  left: 44%;
  bottom: 16%;
  width: 100px;
  height: 80px;
  opacity: 0.3;
  background-image: radial-gradient(var(--blue-deep) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
}

/* marquee */

.hero-marquee {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 54px;
  width: min(1240px, calc(100% - 72px));
  margin: 0 auto 8px;
  padding: 0 8px 0 0;
  border-top: 1px dashed rgba(51, 72, 77, 0.18);
  border-bottom: 1px solid rgba(51, 72, 77, 0.12);
}

.marquee-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding-right: 18px;
  color: var(--orange-deep);
  border-right: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-deep);
  animation: livePulse 2s infinite;
}

.marquee-track-mask {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 96%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.hero-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-right: 40px;
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "✦";
  color: var(--orange);
  font-size: 10px;
}

.marquee-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.marquee-more .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.25s var(--ease);
}

.marquee-more:hover .icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Rankings
   -------------------------------------------------------------------------- */

.rankings {
  padding-top: 84px;
}

.rank-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  flex: none;
}

.rank-tab {
  position: relative;
  min-height: 39px;
  padding: 0 17px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.25s var(--ease);
}

.rank-tab:hover {
  color: var(--ink);
  background: var(--paper-3);
}

.rank-tab.active {
  color: var(--paper-2);
  background: var(--ink);
  box-shadow: 0 3px 0 rgba(51, 72, 77, 0.16);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  align-items: start;
  gap: 28px;
}

.rank-board {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 9px 0 rgba(51, 72, 77, 0.055);
}

.rank-board::after {
  content: "";
  position: absolute;
  top: -36px;
  right: -36px;
  width: 104px;
  height: 104px;
  border: 1px dashed rgba(51, 72, 77, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.rank-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 22px;
  border-bottom: 1px dashed var(--line);
}

.source-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-deep);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(79, 136, 131, 0.32);
  border-radius: 50%;
  animation: dotRipple 2.4s infinite;
}

.status-dot.is-warn {
  background: var(--orange-deep);
}

.status-dot.is-warn::after {
  border-color: rgba(201, 122, 82, 0.3);
}

.status-dot.is-busy {
  background: var(--blue-deep);
}

.status-dot.is-busy::after {
  border-color: rgba(111, 147, 174, 0.3);
}

.board-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.updated-at {
  color: var(--ink-mute);
  font-size: 10.5px;
  white-space: nowrap;
}

.mini-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  color: var(--teal-deep);
  background: var(--teal-pale);
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  transition: 0.25s var(--ease);
}

.mini-refresh .icon {
  width: 13px;
  height: 13px;
}

.mini-refresh:hover {
  color: var(--paper-2);
  background: var(--teal-deep);
}

.mini-refresh.is-loading .icon {
  animation: spin 0.9s linear infinite;
}

.rank-list {
  min-height: 500px;
}

.rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 57px 62px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 17px;
  padding: 15px 22px;
  border-bottom: 1px dashed rgba(51, 72, 77, 0.11);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease);
  animation: rowIn 0.5s both var(--ease);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: #faf8f1;
  transform: translateX(3px);
}

.rank-row:hover .mini-cover img {
  transform: scale(1.05) rotate(-2deg);
}

.rank-row:hover .row-open {
  color: var(--paper-2);
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.rank-no {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1;
  color: #b9b4a7;
}

.rank-row:nth-child(1) .rank-no {
  color: var(--orange-deep);
  font-size: 34px;
}

.rank-row:nth-child(2) .rank-no,
.rank-row:nth-child(3) .rank-no {
  color: var(--teal-deep);
}

.rank-trend {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-mute);
}

.rank-trend .icon {
  width: 10px;
  height: 10px;
}

.rank-trend.up {
  color: var(--teal-deep);
}

.rank-trend.down {
  color: var(--orange-deep);
}

.mini-cover {
  position: relative;
  width: 58px;
  height: 78px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--teal-pale), var(--blue-pale));
  border: 1px solid rgba(51, 72, 77, 0.14);
  border-radius: 8px;
  box-shadow: 2px 3px 0 rgba(51, 72, 77, 0.08);
}

.mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.cover-fallback,
.mini-cover-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 4px;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(145deg, var(--teal-pale), var(--orange-pale));
}

.rank-main {
  min-width: 0;
}

.rank-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.rank-title-line h3 {
  overflow: hidden;
  max-width: 100%;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  color: var(--orange-deep);
  background: var(--orange-pale);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.book-badge--teal {
  color: var(--teal-deep);
  background: var(--teal-pale);
}

.rank-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
  color: var(--ink-mute);
  font-size: 10.5px;
}

.rank-subline .cat {
  color: var(--teal-deep);
  font-weight: 600;
}

.mobile-heat {
  display: none;
}

.rank-subline i {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.rank-intro {
  overflow: hidden;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.heat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.heat-value small {
  color: var(--ink-mute);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
}

.row-open {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  transition: 0.25s var(--ease);
}

.row-open .icon {
  width: 10px;
  height: 10px;
}

.rank-board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  color: var(--ink-mute);
  background: #fbf9f2;
  border-top: 1px dashed var(--line);
  font-size: 10px;
}

.rank-aside {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.aside-pick {
  position: relative;
  overflow: hidden;
  padding: 19px 20px 20px;
  background:
    radial-gradient(140px 100px at 90% 10%, rgba(255, 255, 255, 0.7), transparent 70%),
    var(--teal-pale);
  border: 1.5px solid var(--ink);
  border-radius: 27px;
  box-shadow: 6px 7px 0 rgba(51, 72, 77, 0.055);
}

.aside-pick::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border: 1px dashed rgba(51, 72, 77, 0.14);
  border-radius: 50%;
}

.aside-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-dark);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mini-label .icon {
  width: 14px;
  height: 14px;
}

.aside-rank {
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.aside-cover-wrap {
  position: relative;
  width: 154px;
  margin: 0 auto 16px;
  transform: rotate(-2.5deg);
  transition: transform 0.35s var(--ease);
}

.aside-pick:hover .aside-cover-wrap {
  transform: rotate(1deg) translateY(-4px);
}

.aside-cover-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 6px 8px 0 rgba(51, 72, 77, 0.12);
}

.aside-cover-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--teal-dark);
  background: linear-gradient(145deg, var(--teal-pale), var(--orange-pale));
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 23px;
}

.tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 58px;
  height: 20px;
  background: rgba(243, 211, 164, 0.82);
  border-left: 1px dashed rgba(51, 72, 77, 0.18);
  border-right: 1px dashed rgba(51, 72, 77, 0.18);
  transform: translateX(-50%) rotate(-3deg);
  backdrop-filter: blur(2px);
}

.aside-pick h3 {
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.025em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aside-author {
  margin-top: 3px;
  color: var(--ink-mute);
  font-size: 10.5px;
  text-align: center;
}

.aside-intro {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.75;
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.aside-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px dashed rgba(51, 72, 77, 0.17);
}

.aside-heat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 13px;
}

.aside-heat .icon {
  width: 14px;
  height: 14px;
}

.round-arrow {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  color: var(--paper-2);
  background: var(--ink);
  border-radius: 50%;
  transition: 0.25s var(--ease);
}

.round-arrow:hover {
  background: var(--orange-deep);
  transform: rotate(8deg);
}

.round-arrow .icon {
  width: 14px;
  height: 14px;
}

.intel-card {
  padding: 17px 18px;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.intel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
}

.intel-head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.intel-blink {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  animation: livePulse 2s infinite;
}

.intel-time {
  color: var(--orange-deep);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.intel-card li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(51, 72, 77, 0.1);
}

.intel-card li:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.intel-bullet {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
}

.intel-card li p {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intel-card li p strong {
  color: var(--ink);
  font-weight: 700;
}

.intel-card li em {
  color: var(--ink-mute);
  font-size: 8.5px;
  font-style: normal;
  white-space: nowrap;
}

.fortune-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 20px;
  background: var(--orange-pale);
  border: 1.5px dashed rgba(201, 122, 82, 0.35);
  border-radius: 22px;
}

.fortune-label {
  display: inline-block;
  padding: 2px 7px;
  color: var(--orange-deep);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.fortune-card p {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.55;
  color: #7d523a;
}

.fortune-sign {
  display: block;
  margin-top: 8px;
  color: rgba(125, 82, 58, 0.65);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.fortune-cat {
  position: absolute;
  right: -12px;
  bottom: -9px;
  width: 80px;
  opacity: 0.8;
  transform: rotate(-6deg);
}

/* --------------------------------------------------------------------------
   Picks
   -------------------------------------------------------------------------- */

.picks {
  background:
    radial-gradient(500px 260px at 8% 20%, rgba(255, 255, 255, 0.55), transparent 70%),
    var(--teal-pale);
  border-top: 1px solid rgba(79, 136, 131, 0.15);
  border-bottom: 1px solid rgba(79, 136, 131, 0.15);
  overflow: hidden;
}

.picks::before,
.picks::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
  background-image: radial-gradient(circle at 10px 20px, var(--paper) 10px, transparent 10.5px);
  background-size: 20px 20px;
  background-repeat: repeat-x;
}

.picks::before {
  top: -1px;
}

.picks::after {
  bottom: -1px;
  transform: rotate(180deg);
}

.picks-bg-deco {
  position: absolute;
  right: -70px;
  top: 34px;
  width: 310px;
  opacity: 0.1;
  transform: rotate(-12deg);
}

.picks-bg-deco g {
  fill: var(--teal-dark);
}

.picks-head {
  position: relative;
  z-index: 1;
}

.pick-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 21px;
}

.pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 13px 13px 16px;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: 5px 6px 0 rgba(51, 72, 77, 0.06);
  cursor: pointer;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
  animation: cardIn 0.65s both var(--ease);
}

.pick-card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: 10px 14px 0 rgba(51, 72, 77, 0.06), var(--shadow);
}

.pick-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  z-index: 2;
  width: 60px;
  height: 17px;
  background: rgba(243, 211, 164, 0.78);
  border-left: 1px dashed rgba(51, 72, 77, 0.13);
  border-right: 1px dashed rgba(51, 72, 77, 0.13);
  transform: translateX(-50%) rotate(-2deg);
}

.pick-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 3.85;
  background: linear-gradient(145deg, var(--teal-pale), var(--blue-pale));
  border-radius: 16px;
  isolation: isolate;
}

.pick-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 48%, rgba(26, 43, 46, 0.55));
  opacity: 0;
  transition: opacity 0.35s;
}

.pick-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.pick-card:hover .pick-cover img {
  transform: scale(1.055);
}

.pick-card:hover .pick-cover::after {
  opacity: 1;
}

.pick-cover-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.4;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.65), transparent 60%),
    linear-gradient(145deg, var(--teal-pale), var(--orange-pale));
}

.pick-index {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 33px;
  height: 24px;
  padding: 0 7px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(51, 72, 77, 0.16);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  backdrop-filter: blur(5px);
}

.pick-rank-badge {
  position: absolute;
  bottom: 9px;
  left: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  color: var(--paper-2);
  background: rgba(51, 72, 77, 0.78);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.pick-open-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  padding: 7px 13px;
  color: var(--ink);
  background: var(--paper-2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: 0.35s var(--ease);
  white-space: nowrap;
}

.pick-card:hover .pick-open-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pick-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px 3px 0;
}

.pick-cat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-deep);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pick-cat i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.pick-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  font-size: 16.5px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.025em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pick-author {
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 10.5px;
}

.pick-intro {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pick-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.pick-tag {
  padding: 3px 7px;
  color: var(--blue-deep);
  background: var(--blue-pale);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
}

.pick-heat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 12px;
}

.pick-heat .icon {
  width: 12px;
  height: 12px;
}

.pick-skeleton {
  aspect-ratio: 3 / 5.5;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.45) 20%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0.45) 60%);
  background-size: 220% 100%;
  border-radius: 24px;
  animation: shimmer 1.4s infinite linear;
}

/* --------------------------------------------------------------------------
   Categories
   -------------------------------------------------------------------------- */

.categories {
  padding-top: 104px;
  padding-bottom: 92px;
}

.categories-head {
  margin-bottom: 32px;
}

.categories-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-mute);
  font-size: 11px;
  white-space: nowrap;
}

.note-paw {
  display: inline-grid;
  place-items: center;
  color: var(--orange-deep);
}

.note-paw .icon {
  width: 14px;
  height: 14px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 164px;
  padding: 19px;
  border: 1.5px solid transparent;
  border-radius: 21px;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s;
  animation: cardIn 0.55s both var(--ease);
}

.category-card.tone-teal {
  color: var(--teal-dark);
  background: var(--teal-pale);
}

.category-card.tone-orange {
  color: #7d523a;
  background: var(--orange-pale);
}

.category-card.tone-blue {
  color: #53708a;
  background: var(--blue-pale);
}

.category-card:hover {
  border-color: currentColor;
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 112px;
  height: 112px;
  border: 1px dashed currentColor;
  border-radius: 50%;
  opacity: 0.18;
  transition: transform 0.5s var(--ease);
}

.category-card:hover::after {
  transform: scale(1.25) rotate(20deg);
}

.category-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 15px;
  transition: transform 0.35s var(--ease);
}

.category-icon .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.55;
}

.category-card:hover .category-icon {
  transform: rotate(-7deg) translateY(-2px);
}

.category-count {
  color: currentColor;
  font-family: var(--font-display);
  font-size: 10px;
  opacity: 0.7;
}

.category-name {
  display: block;
  margin-top: 15px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.category-line {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  opacity: 0.72;
}

.category-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px dashed currentColor;
  font-size: 9.5px;
  opacity: 0.7;
}

.category-bottom span {
  overflow: hidden;
  max-width: 82%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-bottom .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.3s var(--ease);
}

.category-card:hover .category-bottom .icon {
  transform: translateX(3px);
}

.category-skeleton {
  height: 164px;
  border-radius: 21px;
  background: linear-gradient(100deg, var(--paper-3) 20%, #faf8f1 40%, var(--paper-3) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}

/* --------------------------------------------------------------------------
   Fresh rail
   -------------------------------------------------------------------------- */

.fresh {
  padding-top: 20px;
}

.fresh-controls {
  display: flex;
  gap: 7px;
}

.scroll-btn {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transition: 0.25s var(--ease);
}

.scroll-btn:hover {
  color: var(--paper-2);
  background: var(--ink);
  border-color: var(--ink);
}

.scroll-btn .icon {
  width: 16px;
  height: 16px;
}

.fresh-rail {
  display: flex;
  gap: 17px;
  overflow-x: auto;
  padding: 6px 4px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.fresh-rail::-webkit-scrollbar {
  display: none;
}

.fresh-card {
  flex: 0 0 196px;
  overflow: hidden;
  padding: 10px 10px 13px;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 19px;
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    box-shadow 0.35s;
  animation: cardIn 0.55s both var(--ease);
}

.fresh-card:hover {
  transform: translateY(-6px);
  border-color: rgba(51, 72, 77, 0.4);
  box-shadow: var(--shadow);
}

.fresh-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 3.7;
  background: linear-gradient(145deg, var(--blue-pale), var(--teal-pale));
  border-radius: 12px;
}

.fresh-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.fresh-card:hover .fresh-cover img {
  transform: scale(1.05);
}

.fresh-cover-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 12px;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  background: linear-gradient(145deg, var(--blue-pale), var(--orange-pale));
}

.new-chip {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 7px;
  color: var(--paper-2);
  background: var(--orange-deep);
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.fresh-body {
  padding: 10px 3px 0;
}

.fresh-body h3 {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fresh-author {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-mute);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fresh-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  color: var(--ink-mute);
  font-size: 9px;
}

.fresh-foot span:last-child {
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 10px;
}

.fresh-skeleton {
  flex: 0 0 196px;
  height: 330px;
  border-radius: 19px;
  background: linear-gradient(100deg, var(--paper-3) 20%, #faf8f1 40%, var(--paper-3) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}

/* --------------------------------------------------------------------------
   Subscribe
   -------------------------------------------------------------------------- */

.subscribe {
  padding-top: 80px;
  padding-bottom: 98px;
}

.subscribe-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 0.87fr);
  align-items: center;
  min-height: 420px;
  padding: 54px 58px;
  overflow: hidden;
  color: var(--paper-2);
  background:
    radial-gradient(420px 260px at 85% 20%, rgba(127, 179, 172, 0.24), transparent 70%),
    var(--teal-dark);
  border: 1.5px solid var(--ink);
  border-radius: 36px;
  box-shadow: 10px 12px 0 rgba(51, 72, 77, 0.08);
}

.subscribe-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(247, 245, 239, 0.17);
  border-radius: 27px;
  pointer-events: none;
}

.subscribe-copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
}

.subscribe-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  color: var(--butter);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.subscribe-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--butter);
}

.subscribe-card h2 {
  font-size: clamp(31px, 3.5vw, 45px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.subscribe-card h2 br + * {
  color: var(--butter);
}

.subscribe-copy > p:not(.subscribe-eyebrow):not(.subscribe-hint) {
  max-width: 490px;
  margin-top: 16px;
  color: rgba(247, 245, 239, 0.72);
  font-size: 13px;
  line-height: 1.9;
}

.subscribe-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 5px 5px 5px 14px;
  background: var(--paper-2);
  border: 1.5px solid rgba(51, 72, 77, 0.3);
  border-radius: 999px;
  max-width: 520px;
}

.mail-icon {
  display: grid;
  place-items: center;
  color: var(--teal-deep);
}

.mail-icon .icon {
  width: 18px;
  height: 18px;
}

.subscribe-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 12.5px;
}

.subscribe-form input::placeholder {
  color: var(--ink-mute);
}

.subscribe-form .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 12px;
}

.subscribe-hint {
  margin-top: 11px;
  color: rgba(247, 245, 239, 0.48);
  font-size: 9.5px;
}

.subscribe-hint.is-success {
  color: var(--butter);
}

.subscribe-art {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  width: min(100%, 330px);
  margin-bottom: -58px;
}

.subscribe-art svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.12));
}

.sleep-z {
  position: absolute;
  color: var(--butter);
  font-family: var(--font-display);
  font-size: 17px;
  animation: sleepZ 3.6s ease-in-out infinite;
}

.z-one {
  top: 13%;
  right: 10%;
}

.z-two {
  top: 6%;
  right: 4%;
  font-size: 12px;
  animation-delay: -1.1s;
}

.z-three {
  top: 1%;
  right: 0%;
  font-size: 9px;
  animation-delay: -2.2s;
}

.subscribe-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.subscribe-deco--one {
  right: -100px;
  top: -120px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(247, 245, 239, 0.1);
}

.subscribe-deco--two {
  left: 44%;
  bottom: -130px;
  width: 280px;
  height: 280px;
  border: 1px dashed rgba(247, 245, 239, 0.1);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  color: var(--ink-soft);
  background: var(--paper-3);
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.9fr 1.2fr;
  gap: 44px;
  padding-top: 64px;
  padding-bottom: 50px;
}

.brand--footer {
  margin-bottom: 17px;
}

.brand--footer .brand-text strong {
  font-size: 20px;
}

.footer-brand > p {
  max-width: 280px;
  color: var(--ink-mute);
  font-size: 11.5px;
  line-height: 1.9;
}

.footer-paws {
  display: flex;
  gap: 5px;
  margin-top: 16px;
  color: var(--teal-deep);
  opacity: 0.45;
}

.footer-paws .icon {
  width: 14px;
  height: 14px;
}

.footer-paws .icon:nth-child(2) {
  transform: translateY(-4px) rotate(12deg);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 5px;
}

.footer-col h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 11.5px;
  transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
  color: var(--teal-deep);
  transform: translateX(2px);
}

.footer-col a .icon {
  width: 11px;
  height: 11px;
}

.footer-small {
  color: var(--ink-mute);
  font-size: 10.5px;
  line-height: 1.85;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 17px;
  padding-bottom: 20px;
  border-top: 1px dashed var(--line);
  color: var(--ink-mute);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.footer-made {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.heart {
  color: var(--orange-deep);
  animation: heartBeat 2.6s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Search dialog
   -------------------------------------------------------------------------- */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 9vh 22px 30px;
  overflow-y: auto;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 54, 56, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s;
}

.search-overlay.is-open .search-backdrop {
  opacity: 1;
}

.search-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(840px, 100%);
  max-height: 80vh;
  padding: 28px 30px 20px;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(26, 43, 46, 0.26);
  opacity: 0;
  transform: translateY(-14px) scale(0.98);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.search-overlay.is-open .search-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.search-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.search-kicker {
  margin-bottom: 5px;
  color: var(--orange-deep);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.search-dialog h2 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 5px 5px 5px 16px;
  background: var(--paper);
  border: 1.5px solid rgba(51, 72, 77, 0.22);
  border-radius: 999px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-form:focus-within {
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 4px rgba(127, 179, 172, 0.18);
}

.search-form-icon {
  color: var(--ink-mute);
}

.search-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 14px;
}

.search-form input::placeholder {
  color: var(--ink-mute);
}

.search-form input::-webkit-search-cancel-button,
.search-form input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.quick-tags > span {
  margin-right: 2px;
  color: var(--ink-mute);
  font-size: 9.5px;
}

.quick-tags button {
  padding: 4px 10px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  transition: 0.2s;
}

.quick-tags button:hover {
  color: var(--teal-deep);
  background: var(--teal-pale);
  border-color: rgba(79, 136, 131, 0.3);
}

.search-results {
  flex: 1;
  min-height: 160px;
  max-height: 44vh;
  margin-top: 18px;
  padding-right: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-results::-webkit-scrollbar {
  width: 4px;
}

.search-results::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 175px;
  color: var(--ink-mute);
  text-align: center;
}

.search-empty-cat {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  background: var(--teal-pale);
  border-radius: 24px;
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 22px;
  transform: rotate(-4deg);
}

.search-empty-cat svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-empty p {
  font-size: 12px;
}

.search-result {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 10px 10px;
  border-radius: 12px;
  text-align: left;
  transition: background 0.2s;
}

.search-result:hover {
  background: var(--paper);
}

.search-result-cover {
  position: relative;
  width: 44px;
  height: 59px;
  overflow: hidden;
  background: var(--teal-pale);
  border-radius: 5px;
}

.search-result-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-cover span {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 10px;
}

.search-result-main {
  min-width: 0;
}

.search-result-main h4 {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-main p {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-mute);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.search-result-meta strong {
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
}

.search-result-meta span {
  color: var(--ink-mute);
  font-size: 8.5px;
}

.search-loading {
  display: grid;
  gap: 8px;
  padding: 8px 0;
}

.search-loading i {
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(100deg, var(--paper-3) 20%, var(--paper-2) 40%, var(--paper-3) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}

.search-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--ink-mute);
  font-size: 9.5px;
}

.search-foot strong {
  color: var(--teal-deep);
}

.search-foot kbd {
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 8.5px;
}

/* --------------------------------------------------------------------------
   Book modal
   -------------------------------------------------------------------------- */

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  overflow-y: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 54, 56, 0.42);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 0.3s;
}

.book-modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  width: min(880px, 100%);
  max-height: 90vh;
  padding: 36px;
  overflow-y: auto;
  background:
    radial-gradient(400px 240px at 100% 0%, rgba(228, 239, 236, 0.7), transparent 70%),
    var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 32px;
  box-shadow: 0 36px 100px rgba(26, 43, 46, 0.3);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}

.book-modal.is-open .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 38px;
  height: 38px;
}

.modal-cover-col {
  position: relative;
  align-self: start;
}

.modal-cover-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, var(--teal-pale), var(--orange-pale));
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  transform: rotate(-2.5deg);
  box-shadow: 8px 10px 0 rgba(51, 72, 77, 0.11);
}

.modal-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-cover-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.4;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.6), transparent 60%),
    linear-gradient(145deg, var(--teal-pale), var(--orange-pale));
}

.modal-sticker {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  color: var(--ink);
  background: var(--butter);
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 10px;
  transform: rotate(-3deg);
}

.modal-cover-shadow {
  position: absolute;
  inset: 8px -8px -8px 8px;
  border: 1px solid rgba(51, 72, 77, 0.12);
  border-radius: 16px;
  transform: rotate(1deg);
}

.modal-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 2;
  width: 72px;
  height: 24px;
  background: rgba(243, 211, 164, 0.82);
  border-left: 1px dashed rgba(51, 72, 77, 0.15);
  border-right: 1px dashed rgba(51, 72, 77, 0.15);
  transform: translateX(-50%) rotate(-3deg);
}

.modal-content {
  padding-top: 6px;
  padding-right: 14px;
}

.modal-kicker {
  color: var(--orange-deep);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.modal-content h2 {
  margin-top: 8px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.modal-author {
  margin-top: 7px;
  color: var(--ink-mute);
  font-size: 12px;
}

.modal-author span {
  color: var(--teal-deep);
  font-weight: 600;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.modal-tags span {
  padding: 3px 8px;
  color: var(--teal-deep);
  background: var(--teal-pale);
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 600;
}

.modal-tags span:nth-child(even) {
  color: var(--blue-deep);
  background: var(--blue-pale);
}

.modal-intro {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.9;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.modal-meta-grid div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: var(--paper);
}

.modal-meta-grid span {
  color: var(--ink-mute);
  font-size: 8.5px;
}

.modal-meta-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.modal-lists span {
  padding: 3px 7px;
  color: var(--ink-mute);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 4px;
  font-size: 8.5px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.modal-actions .btn {
  min-height: 46px;
  font-size: 12.5px;
}

.modal-note {
  margin-top: 13px;
  color: var(--ink-mute);
  font-size: 8.5px;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(520px, calc(100% - 32px));
  padding: 11px 18px 11px 12px;
  color: var(--paper-2);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(26, 43, 46, 0.25);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--ink);
  background: var(--butter);
  border-radius: 50%;
}

.toast-icon .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.toast.is-error .toast-icon {
  background: var(--orange);
}

/* --------------------------------------------------------------------------
   Skeletons
   -------------------------------------------------------------------------- */

.skeleton-row {
  display: grid;
  grid-template-columns: 57px 62px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding: 15px 22px;
  border-bottom: 1px dashed rgba(51, 72, 77, 0.11);
}

.skeleton-row > i {
  width: 31px;
  height: 29px;
  margin-inline: auto;
  border-radius: 6px;
  background: var(--paper-3);
}

.skeleton-row > span {
  width: 58px;
  height: 78px;
  border-radius: 8px;
  background: var(--paper-3);
}

.skeleton-row div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.skeleton-row b,
.skeleton-row em,
.skeleton-row p {
  display: block;
  height: 11px;
  border-radius: 4px;
  background: var(--paper-3);
}

.skeleton-row b {
  width: 44%;
  height: 15px;
}

.skeleton-row em {
  width: 30%;
}

.skeleton-row p {
  width: 72%;
  height: 9px;
}

.skeleton-row i,
.skeleton-row > span,
.skeleton-row b,
.skeleton-row em,
.skeleton-row p {
  background-image: linear-gradient(100deg, var(--paper-3) 20%, #faf8f1 40%, var(--paper-3) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes catFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(0.35deg);
  }
}

@keyframes tailSway {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes earTwitch {
  0%, 84%, 100% {
    transform: rotate(0deg);
  }
  88% {
    transform: rotate(-1.8deg);
  }
  92% {
    transform: rotate(1.2deg);
  }
  96% {
    transform: rotate(0deg);
  }
}

@keyframes glassesGlint {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes sunBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.96;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes cloudDrift {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(9px);
  }
}

@keyframes steamUp {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  35% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes planeDrift {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(6px, -7px) rotate(2deg);
  }
}

@keyframes fishBob {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}

@keyframes yarnRoll {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.85) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.08) rotate(8deg);
  }
}

@keyframes noteFloat {
  0%, 100% {
    transform: rotate(3deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-6px);
  }
}

@keyframes chipFloat {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-6px) rotate(-2deg);
  }
}

.art-chip--rate {
  animation-name: chipFloatAlt;
}

@keyframes chipFloatAlt {
  0%, 100% {
    transform: translateY(0) rotate(2.5deg);
  }
  50% {
    transform: translateY(-7px) rotate(1.5deg);
  }
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(79, 136, 131, 0.35);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 4px rgba(79, 136, 131, 0);
  }
}

@keyframes dotRipple {
  0% {
    opacity: 0.6;
    transform: scale(0.7);
  }
  70%, 100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pawFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(0.7);
  }
  20% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.05) translateY(12px);
  }
}

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

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -120% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sleepZ {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.8);
  }
  35% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-16px) scale(1.1);
  }
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.22);
  }
  24% {
    transform: scale(1);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .header-inner {
    gap: 16px;
  }

  .main-nav {
    gap: 21px;
  }

  .search-trigger {
    min-width: 150px;
  }

  .search-trigger kbd {
    display: none;
  }

  .hero-inner {
    min-height: 570px;
  }

  .hero-cat {
    width: min(100%, 620px);
  }

  .rank-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
  }

  .rank-row {
    grid-template-columns: 50px 58px minmax(0, 1fr) 80px;
    gap: 13px;
    padding: 14px 18px;
  }

  .pick-grid {
    gap: 17px;
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-grid;
  }

  .mobile-menu {
    display: none;
    padding: 10px 36px 22px;
    background: var(--paper-2);
    border-top: 1px dashed var(--line);
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu.is-open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: heroIn 0.3s both var(--ease);
  }

  .mobile-menu a,
  .mobile-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 4px;
    color: var(--ink);
    border-bottom: 1px dotted var(--line);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
  }

  .mobile-menu button {
    border-bottom: 0;
    color: var(--teal-deep);
  }

  .mobile-menu .icon {
    width: 16px;
    height: 16px;
  }

  .search-trigger {
    display: none;
  }

  .header-live {
    display: none;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding-top: 44px;
    padding-bottom: 14px;
  }

  .hero-copy {
    max-width: 720px;
    margin-inline: auto;
    padding-right: 0;
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(46px, 8vw, 70px);
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-art {
    min-height: 0;
    width: min(100%, 640px);
    margin-inline: auto;
  }

  .hero-cat {
    width: min(100%, 590px);
  }

  .art-chip--heat {
    left: 3%;
  }

  .art-chip--rate {
    right: 2%;
  }

  .hero-deco--paw {
    left: -130px;
  }

  .rank-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .aside-pick {
    grid-row: span 2;
  }

  .fortune-card {
    min-height: 120px;
  }

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

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

  .subscribe-card {
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 45px 42px;
  }

  .footer-main {
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 32px;
  }

  .footer-col:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .container,
  .hero-marquee {
    width: calc(100% - 36px);
  }

  .announce-inner {
    justify-content: center;
  }

  .announce-source {
    display: none;
  }

  .header-inner {
    height: 70px;
  }

  .brand-mark {
    width: 43px;
    height: 43px;
    border-radius: 14px;
  }

  .brand-mark svg {
    width: 36px;
    height: 36px;
  }

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

  .brand-text em {
    font-size: 6.5px;
  }

  .header-tools {
    gap: 6px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .mobile-menu {
    padding-inline: 18px;
  }

  .hero-inner {
    padding-top: 32px;
  }

  .hero h1 {
    font-size: clamp(39px, 11.5vw, 56px);
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 13.5px;
    line-height: 1.85;
  }

  .desktop-br {
    display: none;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions .btn {
    min-height: 48px;
    padding: 0 18px;
    font-size: 12.5px;
  }

  .hero-stats {
    gap: 14px;
    margin-top: 30px;
  }

  .hero-stat strong {
    font-size: 22px;
  }

  .hero-stat > span {
    font-size: 9px;
  }

  .stat-line {
    height: 22px;
  }

  .hero-art {
    width: 100%;
  }

  .art-note {
    top: 3%;
    right: 2%;
    padding: 9px 12px;
    font-size: 11.5px;
  }

  .art-chip {
    padding: 7px 9px;
    border-radius: 11px;
  }

  .art-chip--heat {
    top: 43%;
    left: 0;
  }

  .art-chip--rate {
    right: 0;
    bottom: 12%;
  }

  .chip-icon,
  .chip-cat {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .chip-icon .icon {
    width: 14px;
    height: 14px;
  }

  .art-chip strong {
    font-size: 15px;
  }

  .art-chip em {
    font-size: 8px;
  }

  .hero-deco--ring {
    width: 200px;
    height: 200px;
  }

  .hero-marquee {
    gap: 11px;
    min-height: 47px;
    margin-bottom: 0;
  }

  .marquee-label {
    padding-right: 11px;
    font-size: 12px;
  }

  .marquee-more {
    display: none;
  }

  .marquee-track span {
    font-size: 10.5px;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 28px;
  }

  .section h2 {
    font-size: 30px;
    gap: 9px;
  }

  .h2-doodle {
    font-size: 11.5px;
    padding: 4px 8px;
  }

  .section-desc {
    font-size: 12.5px;
    line-height: 1.8;
  }

  .rank-tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 14px;
  }

  .rank-tabs::-webkit-scrollbar {
    display: none;
  }

  .rank-tab {
    flex: 1;
    min-width: max-content;
    padding: 0 12px;
    font-size: 11px;
  }

  .rank-board {
    border-radius: 21px;
  }

  .rank-board-head {
    padding: 13px 15px;
    align-items: flex-start;
  }

  .source-status {
    font-size: 9.5px;
    line-height: 1.6;
  }

  .board-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }

  .updated-at {
    font-size: 8.5px;
  }

  .mini-refresh {
    font-size: 9px;
    padding: 4px 7px;
  }

  .rank-row {
    grid-template-columns: 35px 48px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 13px;
  }

  .rank-no {
    font-size: 22px;
  }

  .rank-row:nth-child(1) .rank-no {
    font-size: 26px;
  }

  .mini-cover {
    width: 46px;
    height: 62px;
    border-radius: 6px;
  }

  .rank-title-line h3 {
    font-size: 13.5px;
    white-space: normal;
  }

  .book-badge {
    font-size: 8px;
  }

  .rank-subline {
    flex-wrap: nowrap;
    overflow: hidden;
    font-size: 9px;
  }

  .rank-subline > span:not(.cat):not(.mobile-heat),
  .rank-subline > i {
    display: none;
  }

  .mobile-heat {
    display: inline-flex;
    color: var(--orange-deep);
    font-weight: 700;
    white-space: nowrap;
  }

  .rank-intro {
    font-size: 10.5px;
  }

  .rank-meta {
    display: none;
  }

  .rank-board-foot {
    padding: 11px 14px;
    font-size: 8.5px;
  }

  .rank-board-foot > span {
    max-width: 62%;
    line-height: 1.5;
  }

  .skeleton-row {
    grid-template-columns: 35px 48px minmax(0, 1fr);
    padding: 12px 13px;
  }

  .skeleton-row > span {
    width: 46px;
    height: 62px;
  }

  .rank-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .aside-pick {
    grid-row: auto;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 16px;
    align-items: center;
    padding: 17px;
  }

  .aside-pick-head {
    grid-column: 1 / -1;
    margin-bottom: 10px;
  }

  .aside-cover-wrap {
    grid-row: 2 / span 4;
    width: 128px;
    margin: 0;
  }

  .aside-pick h3,
  .aside-author,
  .aside-intro {
    text-align: left;
  }

  .aside-pick h3 {
    font-size: 16px;
  }

  .aside-intro {
    margin-top: 6px;
    -webkit-line-clamp: 2;
  }

  .aside-foot {
    margin-top: 7px;
    padding-top: 7px;
  }

  .intel-card,
  .fortune-card {
    display: none;
  }

  .pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pick-card {
    padding: 9px 9px 12px;
    border-radius: 17px;
  }

  .pick-card::before {
    width: 44px;
    height: 13px;
  }

  .pick-cover {
    border-radius: 11px;
  }

  .pick-body {
    padding-top: 9px;
  }

  .pick-body h3 {
    font-size: 13.5px;
  }

  .pick-author,
  .pick-intro {
    font-size: 9.5px;
  }

  .pick-intro {
    -webkit-line-clamp: 2;
  }

  .pick-foot {
    padding-top: 8px;
  }

  .pick-tag {
    display: none;
  }

  .category-grid {
    gap: 11px;
  }

  .category-card {
    min-height: 146px;
    padding: 15px;
    border-radius: 17px;
  }

  .category-icon {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .category-icon .icon {
    width: 20px;
    height: 20px;
  }

  .category-name {
    margin-top: 11px;
    font-size: 15px;
  }

  .category-line {
    font-size: 9px;
  }

  .category-bottom {
    font-size: 8.5px;
  }

  .categories {
    padding-top: 76px;
    padding-bottom: 64px;
  }

  .fresh {
    padding-top: 10px;
  }

  .fresh-controls {
    display: none;
  }

  .fresh-card {
    flex-basis: 155px;
  }

  .fresh-skeleton {
    flex-basis: 155px;
    height: 276px;
  }

  .fresh-rail {
    margin-right: -18px;
    padding-right: 18px;
  }

  .subscribe {
    padding-top: 58px;
    padding-bottom: 70px;
  }

  .subscribe-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 34px 24px 20px;
    border-radius: 26px;
  }

  .subscribe-card h2 {
    font-size: 29px;
  }

  .subscribe-copy > p:not(.subscribe-eyebrow):not(.subscribe-hint) {
    font-size: 11.5px;
  }

  .subscribe-form {
    flex-wrap: wrap;
    padding: 9px;
    border-radius: 18px;
  }

  .subscribe-form input {
    flex: 1 1 140px;
  }

  .subscribe-form .btn {
    flex: 1 0 100%;
  }

  .subscribe-art {
    width: 220px;
    margin-bottom: -25px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding-top: 46px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .search-overlay {
    padding: 5vh 10px 20px;
  }

  .search-dialog {
    padding: 21px 18px 15px;
    border-radius: 21px;
    max-height: 88vh;
  }

  .search-dialog h2 {
    font-size: 21px;
  }

  .search-results {
    max-height: 45vh;
  }

  .book-modal {
    align-items: flex-start;
    padding: 14px;
  }

  .modal-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px 19px 22px;
    border-radius: 23px;
    max-height: none;
  }

  .modal-cover-col {
    width: 150px;
    margin: 4px auto 0;
  }

  .modal-content {
    padding-right: 0;
  }

  .modal-content h2 {
    font-size: 25px;
  }

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

  .modal-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 37px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 8px;
  }

  .stat-line {
    display: none;
  }

  .hero-stat > span {
    font-size: 8.5px;
  }

  .art-note {
    display: none;
  }

  .pick-body h3 {
    font-size: 12.5px;
  }

  .pick-intro {
    display: none;
  }

  .fresh-card {
    flex-basis: 145px;
  }

  .rank-title-line h3 {
    font-size: 12.5px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-cat,
  .cat-tail,
  .deco-plane,
  .deco-fish,
  .art-chip,
  .art-note,
  .marquee-track {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Runtime states
   -------------------------------------------------------------------------- */

.search-result-heading {
  margin: 2px 0 8px;
  padding: 0 10px;
  color: var(--ink-mute);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.search-result-cover span[data-cover-fallback] {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 3px;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 9px;
  line-height: 1.25;
  text-align: center;
  background: linear-gradient(145deg, var(--teal-pale), var(--orange-pale));
}

.load-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 40px 24px;
  text-align: center;
}

.load-error-cat {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
  color: var(--teal-deep);
  background: var(--teal-pale);
  border-radius: 25px;
  font-family: var(--font-display);
  font-size: 13px;
  transform: rotate(-4deg);
}

.load-error h3 {
  font-size: 18px;
  font-weight: 800;
}

.load-error p {
  max-width: 360px;
  margin: 8px 0 18px;
  color: var(--ink-mute);
  font-size: 11.5px;
  line-height: 1.7;
}

.refresh-btn.is-loading .icon,
.icon-btn.is-loading .icon,
.mini-refresh.is-loading .icon {
  animation: spin 0.9s linear infinite;
}

.refresh-btn:disabled,
.mini-refresh:disabled {
  cursor: wait;
  opacity: 0.65;
}

.footer-col a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

@media (max-width: 760px) {
  .search-result-heading {
    padding-inline: 7px;
  }

  .load-error {
    min-height: 340px;
  }
}
