/* =========================================================
   NoirNovel — Design System
   ========================================================= */
:root {
  --pink: #e8305a;
  --pink-2: #ff5c8a;
  --pink-3: #ff8fab;
  --pink-soft: #fff0f4;
  --ink: #14121a;
  --ink-2: #3a3742;
  --muted: #8b8794;
  --line: #ececf1;
  --bg-soft: #f7f7fa;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 8px 20px -14px rgba(20, 16, 32, .45);
  --shadow-md: 0 18px 45px -22px rgba(24, 16, 38, .5);
  --shadow-pink: 0 14px 30px -12px rgba(232, 48, 90, .55);
  --max: 1240px;
  --ease: cubic-bezier(.22, .7, .28, 1);
}

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

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

body {
  margin: 0;
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.container {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

/* =========================================================
   Top announcement bar
   ========================================================= */
.topbar {
  background: linear-gradient(90deg, #ff5c8a, #e8305a 52%, #c81e4b);
  color: #fff;
  overflow: hidden;
  max-height: 48px;
  transition: max-height .4s var(--ease), opacity .3s;
}
.topbar.is-hidden { max-height: 0; opacity: 0; }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 42px;
  font-size: 12.5px;
  position: relative;
}

.topbar-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}

.topbar p { opacity: .95; }
.topbar a { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }

.topbar-close {
  position: absolute;
  right: 0;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  opacity: .8;
  transition: .2s;
}
.topbar-close:hover { opacity: 1; background: rgba(255, 255, 255, .18); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.header.is-stuck { box-shadow: 0 10px 30px -22px rgba(20, 16, 32, .55); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(140deg, #ff6b8f, #e8305a 70%);
  box-shadow: 0 6px 16px -6px rgba(232, 48, 90, .8);
}
.logo-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}
.logo-text em { font-style: normal; color: var(--pink); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color .2s;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--pink); }
.nav a:hover::after { transform: scaleX(1); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.fav { position: relative; flex: none; }

.fav-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 11px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #ff5c8a, #e8305a);
  box-shadow: var(--shadow-pink);
  transition: transform .22s var(--ease), box-shadow .26s;
}
.fav-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(232, 48, 90, .7); }
.fav-btn svg { fill: none; stroke: currentColor; }

.fav-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #1b1622;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
}

.fav-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 120;
  width: 344px;
  max-height: 430px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.fav-panel[hidden] { display: none; }

.fav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.fav-panel-head h4 { font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
.fav-close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 50%;
  color: var(--muted);
  transition: .2s;
}
.fav-close:hover { background: var(--pink-soft); color: var(--pink); }

.fav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border-radius: 10px;
  transition: background .18s;
}
.fav-item:hover { background: var(--pink-soft); }
.fav-item img { width: 36px; height: 48px; border-radius: 5px; object-fit: cover; flex: none; }
.fav-item > span { display: block; min-width: 0; }
.fav-item b {
  display: -webkit-box;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-item > span > span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.fav-empty { padding: 22px 14px 18px; text-align: center; }
.fav-empty p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.fav-empty a {
  display: inline-block;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pink);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
  height: 38px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: .25s var(--ease);
}
.search:focus-within {
  width: 290px;
  background: #fff;
  border-color: #ffd0dd;
  box-shadow: 0 0 0 4px rgba(232, 48, 90, .08);
}
.search-icon {
  width: 16px;
  height: 16px;
  margin-left: 14px;
  color: var(--muted);
  flex: none;
}
.search input {
  width: 100%;
  height: 100%;
  padding: 0 12px 0 8px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--ink);
}
.search input::placeholder { color: #a5a1ad; }

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  z-index: 120;
}
.search-panel[hidden] { display: none; }
.search-hit {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  transition: background .18s;
}
.search-hit:hover { background: var(--pink-soft); }
.search-hit img { width: 34px; height: 46px; border-radius: 5px; object-fit: cover; flex: none; }
.search-hit b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.search-hit span { font-size: 11px; color: var(--muted); }
.search-empty { padding: 18px 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: transform .22s var(--ease), box-shadow .26s, background .22s, color .22s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff5c8a, #e8305a);
  box-shadow: var(--shadow-pink);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(232, 48, 90, .7); }

.btn-ghost {
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: #ffc9d7; color: var(--pink); }

.btn-dark { color: #fff; background: #1b1622; }
.btn-dark:hover { background: #2a2234; }

.btn-white { color: var(--pink); background: #fff; box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .5); }
.btn-white:hover { background: #fff6f9; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: .28s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero-wrap { padding-top: 26px; }

.hero {
  position: relative;
  height: 560px;
  border-radius: 26px;
  overflow: hidden;
  background: #15111c;
  box-shadow: 0 34px 70px -40px rgba(20, 12, 30, .7);
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s var(--ease);
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-banner.png');
  background-size: cover;
  background-position: center 46%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 9s linear;
}
.hero-slide.is-active .hero-media { transform: scale(1); }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 10, 18, .95) 0%, rgba(13, 10, 18, .82) 38%, rgba(13, 10, 18, .38) 68%, rgba(13, 10, 18, .12) 100%),
    linear-gradient(0deg, rgba(13, 10, 18, .55), transparent 45%);
}

.hero-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 60px;
  color: #fff;
}

.hero-copy { max-width: 600px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffd7e2;
  background: rgba(255, 92, 138, .18);
  border: 1px solid rgba(255, 138, 171, .35);
  backdrop-filter: blur(8px);
}
.hero-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff7aa0;
  box-shadow: 0 0 0 3px rgba(255, 122, 160, .25);
}

.hero-title {
  margin: 18px 0 12px;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .72);
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.hero-meta .star { color: #ffca6b; font-weight: 700; }

.hero-desc {
  margin: 16px 0 26px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .78);
}

.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero-actions .btn { height: 44px; padding: 0 24px; font-size: 13.5px; }
.hero-actions .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .24);
  backdrop-filter: blur(8px);
}
.hero-actions .btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .45);
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  flex: none;
}
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.stat span { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

.hero-visual {
  display: flex;
  align-items: center;
  gap: 38px;
  flex: none;
}
.hero-art {
  position: relative;
  flex: none;
  transform: rotate(-3.5deg);
  transition: transform .7s var(--ease);
}
.hero-art img {
  width: 186px;
  height: 250px;
  object-fit: cover;
  border-radius: 13px;
  border: 4px solid rgba(255, 255, 255, .92);
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .9);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 16px -15px -15px 16px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  z-index: -1;
}
.hero:hover .hero-art { transform: rotate(0) translateY(-6px); }

.hero-dots {
  position: absolute;
  left: 60px;
  bottom: 26px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  transition: .3s var(--ease);
}
.hero-dots button.is-active { width: 38px; background: linear-gradient(90deg, #ff8fab, #ff4d7d); }

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 12px;
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 15, 26, .42);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: .25s var(--ease);
  opacity: 0;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(232, 48, 90, .85); border-color: transparent; }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }

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

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink);
}
.eyebrow-light { color: #ffb3c8; }

.section-title {
  margin-top: 7px;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 800;
  letter-spacing: -.03em;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pink);
  padding-bottom: 3px;
  transition: gap .22s var(--ease);
  white-space: nowrap;
}
.more svg { width: 13px; height: 13px; }
.more:hover { gap: 8px; }

/* =========================================================
   Book cards
   ========================================================= */
.grid { display: grid; gap: 28px 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.book { position: relative; display: flex; flex-direction: column; min-width: 0; }

.book-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 11px;
  overflow: hidden;
  background: #efeff3;
  box-shadow: 0 10px 26px -18px rgba(20, 14, 32, .7);
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.book:hover .book-cover img { transform: scale(1.065); }
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 8, 18, .55), rgba(12, 8, 18, 0) 46%);
  opacity: 0;
  transition: opacity .35s;
}
.book:hover .book-cover::after { opacity: 1; }

.book-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  background: linear-gradient(135deg, #ff6b8f, #e8305a);
  box-shadow: 0 8px 18px -8px rgba(232, 48, 90, .9);
}

.book-fav {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 12, 24, .38);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition: .25s var(--ease);
}
.book:hover .book-fav { opacity: 1; transform: translateY(0); }
.book-fav:hover { background: var(--pink); }
.book-fav.is-on { opacity: 1; transform: none; color: #fff; background: var(--pink); }
.book-fav.is-on svg { fill: currentColor; }

.book-title {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.book:hover .book-title { color: var(--pink); }

.book-author {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-desc {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 10.5px;
  color: #a5a0ad;
}
.book-foot .tag {
  padding: 2px 7px;
  border-radius: 4px;
  background: #f3f1f6;
  color: #7c7686;
  font-weight: 600;
}
.book-foot .score { margin-left: auto; color: #b3aeba; font-weight: 600; }

/* =========================================================
   Ranking
   ========================================================= */
.ranking { background: var(--bg-soft); }

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px 16px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.rank-item:hover {
  transform: translateY(-3px);
  border-color: #ffd3df;
  box-shadow: 0 22px 40px -28px rgba(20, 14, 32, .5);
}

.rank-num {
  flex: none;
  width: 34px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, #ff9ab6, #e8305a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e8305a;
  padding-top: 2px;
}
.rank-item:nth-child(1) .rank-num { background-image: linear-gradient(180deg, #ffd76e, #e8a020); }
.rank-item:nth-child(2) .rank-num { background-image: linear-gradient(180deg, #c9d3e0, #8c9aad); }
.rank-item:nth-child(3) .rank-num { background-image: linear-gradient(180deg, #f3b98a, #c9763a); }

.rank-cover {
  flex: none;
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 22px -14px rgba(20, 14, 32, .8);
}

.rank-body { min-width: 0; flex: 1; }

.rank-body h3 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-body h3 small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
}

.rank-meta {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--pink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.rank-tags span {
  padding: 2px 7px;
  border-radius: 4px;
  background: #f5f2f7;
  font-size: 9.5px;
  font-weight: 600;
  color: #7c7686;
  white-space: nowrap;
}

.rank-desc {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pink);
  background: var(--pink-soft);
}

@media (max-width: 1060px) {
  .rank-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .rank-item { padding: 13px 14px; gap: 12px; }
  .rank-num { width: 28px; font-size: 23px; }
  .rank-cover { width: 54px; height: 73px; }
  .rank-body h3 { font-size: 12.5px; }
}

/* =========================================================
   Promo strip
   ========================================================= */
.promo { padding: 14px 0 6px; }

.promo-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 32px 44px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(102deg, #fff5f8 0%, #ffe7ef 48%, #ffd8e5 100%);
  border: 1px solid #ffe0e9;
}

.promo-covers { display: flex; flex: none; padding-left: 6px; }
.promo-covers img {
  width: 88px;
  height: 122px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #fff;
  box-shadow: 0 18px 34px -18px rgba(150, 30, 70, .6);
  transform: rotate(-7deg);
}
.promo-covers img:nth-child(2) {
  transform: rotate(0) translateY(-10px);
  margin-left: -22px;
  z-index: 2;
}
.promo-covers img:nth-child(3) { transform: rotate(7deg); margin-left: -22px; }

.promo-copy { flex: 1; min-width: 0; }
.promo-copy h3 {
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 800;
  letter-spacing: -.025em;
}
.promo-copy em { font-style: normal; color: var(--pink); }
.promo-copy p {
  margin-top: 7px;
  max-width: 640px;
  font-size: 13px;
  line-height: 1.6;
  color: #7b5462;
}

/* =========================================================
   Trending + Rising
   ========================================================= */
.tr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 44px;
  align-items: start;
}

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

.trend-grid .book-cover { aspect-ratio: 3 / 4.15; }
.trend-grid .book-cover::after { opacity: 1; background: linear-gradient(to top, rgba(12, 8, 18, .62), transparent 42%); }

.trend-ribbon {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  transform: translateX(-50%);
  padding: 5px 22px;
  border-radius: 9px 9px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  background: linear-gradient(135deg, #ff6b8f, #e8305a);
  box-shadow: 0 -4px 18px -6px rgba(232, 48, 90, .9);
}
.trend-grid .book:nth-child(2) .trend-ribbon { background: linear-gradient(135deg, #ffb15c, #f07b1f); box-shadow: 0 -4px 18px -6px rgba(240, 123, 31, .9); }
.trend-grid .book:nth-child(3) .trend-ribbon { background: linear-gradient(135deg, #8f7bff, #6247e0); box-shadow: 0 -4px 18px -6px rgba(98, 71, 224, .9); }

.tr-aside .section-head { margin-bottom: 14px; }

.rising-list { display: flex; flex-direction: column; gap: 2px; }
.rising-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border-radius: 12px;
  transition: background .22s, box-shadow .22s;
}
.rising-item:hover {
  background: #fff;
  box-shadow: 0 14px 30px -22px rgba(20, 14, 32, .7);
}
.rising-num {
  flex: none;
  width: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 700;
  color: #d9d5e0;
  text-align: center;
  transition: color .22s;
}
.rising-item:hover .rising-num { color: var(--pink); }
.rising-item img {
  flex: none;
  width: 46px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 8px 18px -12px rgba(20, 14, 32, .8);
}
.rising-info { min-width: 0; flex: 1; }
.rising-info b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rising-info span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rising-read {
  flex: none;
  font-size: 10.5px;
  font-weight: 600;
  color: #b3aeba;
}

/* =========================================================
   Newsletter
   ========================================================= */
.newsletter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  padding: 54px 58px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(120% 160% at 84% 12%, #54203a 0%, #2a1727 42%, #17111d 100%);
}
.newsletter-glow {
  position: absolute;
  top: -180px;
  right: -60px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 125, .65), transparent 66%);
  filter: blur(26px);
  pointer-events: none;
}
.newsletter::after {
  content: "";
  position: absolute;
  left: -90px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 71, 224, .35), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}
.newsletter-copy { position: relative; z-index: 1; max-width: 560px; }
.newsletter-copy h3 {
  margin: 12px 0 10px;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-wrap: balance;
}
.newsletter-copy p { font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .62); }

.newsletter-form { position: relative; z-index: 1; flex: none; width: 400px; }
.newsletter-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: .25s var(--ease);
}
.newsletter-field:focus-within { background: rgba(255, 255, 255, .16); border-color: rgba(255, 138, 171, .5); }
.newsletter-field input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  background: transparent;
  outline: none;
  color: #fff;
  font-size: 13px;
}
.newsletter-field input::placeholder { color: rgba(255, 255, 255, .42); }
.newsletter-note { margin-top: 10px; padding-left: 18px; font-size: 10.5px; color: rgba(255, 255, 255, .38); }

/* =========================================================
   Footer
   ========================================================= */
.footer { margin-top: 26px; padding-top: 26px; background: #131019; color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.15fr;
  gap: 48px;
  padding: 64px 0 52px;
}

.footer-brand p {
  margin: 16px 0 22px;
  max-width: 300px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .48);
}
.logo-light .logo-text { color: #fff; }
.logo-light .logo-text em { color: #ff7ea2; }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 9px;
  border-radius: 50%;
  color: rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: .25s var(--ease);
}
.socials a svg { stroke: none; fill: currentColor; }
.socials a:hover { color: #fff; background: var(--pink); border-color: transparent; transform: translateY(-3px); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col li a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .48);
  transition: color .2s, padding-left .2s;
}
.footer-col li a:hover { color: #ff8fab; padding-left: 3px; }

.footer-app { display: flex; flex-direction: column; gap: 10px; }
.footer-app h4 { margin-bottom: 8px; }
.store {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: .22s var(--ease);
}
.store svg { width: 18px; height: 18px; flex: none; stroke: none; fill: #fff; }
.store span { display: flex; flex-direction: column; font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.store small { font-size: 9px; font-weight: 500; color: rgba(255, 255, 255, .5); letter-spacing: .04em; }
.store:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.footer-note { font-size: 10.5px; color: rgba(255, 255, 255, .3); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 62px 20px 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .38);
}
.footer-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-links a:hover { color: #ff8fab; }
.footer-links span { opacity: .35; }
.footer-lang { color: rgba(255, 255, 255, .5); }

/* =========================================================
   Loading top bar
   ========================================================= */
.loading-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1b1920;
  color: #fff;
  transition: transform .55s var(--ease), opacity .45s;
}
.loading-top.is-done {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.loading-top-inner {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 0;
}

.loading-top-text {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .8);
  animation: gate-shake 1.6s ease-in-out infinite;
}
.loading-top-text b {
  margin-right: 4px;
  font-weight: 800;
  color: #fff;
}

.loading-ring {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
}
.loading-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.loading-ring circle {
  fill: none;
  stroke-width: 3.2;
}
.loading-ring-bg { stroke: rgba(255, 255, 255, .16); }
.loading-ring-fg {
  stroke: #ff8a1f;
  stroke-linecap: round;
  stroke-dasharray: 106.81;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .95s linear;
  filter: drop-shadow(0 0 6px rgba(255, 122, 26, .7));
}
.loading-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.loading-ring-num::after {
  content: 's';
  font-size: 8px;
  font-weight: 700;
  opacity: .75;
  margin-left: 1px;
  align-self: center;
}

body.has-loading { padding-top: var(--gate-h, 70px); }
body.has-loading .header { top: var(--gate-h, 70px); }

@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-2px) rotate(-.25deg); }
  30% { transform: translateX(2px) rotate(.25deg); }
  45% { transform: translateX(-1.5px); }
  60% { transform: translateX(1.5px); }
  75% { transform: translateX(-1px); }
}

@keyframes blocked-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-5px) rotate(-.6deg); }
  30% { transform: translateX(5px) rotate(.6deg); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@keyframes warning-flash {
  0%, 100% { background-color: #1b1920; }
  50% { background-color: #e8305a; }
}

.loading-top.is-warning {
  background-color: #e8305a;
  animation: warning-flash .38s ease 2, blocked-shake .38s ease 2;
}
.loading-top.is-warning .loading-top-text {
  animation: none;
  color: #fff;
}
.loading-top.is-warning .loading-top-text b { color: #fff; }
.loading-top.is-warning .loading-ring-bg { stroke: rgba(255, 255, 255, .45); }
.loading-top.is-warning .loading-ring-fg { stroke: #fff; }
.loading-top.is-warning .loading-ring-num { color: #fff; }

@media (max-width: 620px) {
  .loading-top-inner { width: calc(100% - 28px); gap: 12px; padding: 11px 0; }
  .loading-top-text { font-size: 11px; line-height: 1.5; }
  .loading-ring { width: 38px; height: 38px; }
  .loading-ring-num { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-top-text { animation: none; }
}

/* =========================================================
   Utility
   ========================================================= */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 13px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #ff5c8a, #e8305a);
  box-shadow: 0 16px 32px -14px rgba(232, 48, 90, .8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 15, 26, .94);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .7);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Mobile tab bar */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a,
.tabbar button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 0 8px;
  border: 0;
  background: none;
  font-size: 9.5px;
  font-weight: 600;
  color: #a09aa9;
  transition: color .2s;
  cursor: pointer;
}
.tabbar svg { width: 20px; height: 20px; stroke-width: 1.8; }
.tabbar .is-active { color: var(--pink); }
.tabbar .is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 2.5px;
  border-radius: 0 0 3px 3px;
  background: var(--pink);
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes flashRing {
  0%, 100% { box-shadow: 0 10px 26px -18px rgba(20, 14, 32, .7); }
  40% { box-shadow: 0 0 0 5px rgba(232, 48, 90, .35), 0 10px 26px -18px rgba(20, 14, 32, .7); }
}
.book.is-flash .book-cover { animation: flashRing 1.1s ease; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav a { font-size: 12.5px; }
  .search { width: 200px; }
  .tr-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
  .grid-6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1060px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(20, 16, 32, .6);
  }
  .nav.is-open a { padding: 13px 4px; font-size: 14px; border-bottom: 1px solid #f4f2f6; }
  .nav.is-open a::after { display: none; }

  .hero { height: 520px; }
  .hero-body { padding: 0 40px; gap: 24px; }
  .hero-art img { width: 164px; height: 220px; }
  .hero-stats { padding: 20px 22px; gap: 14px; }
  .stat b { font-size: 21px; }
  .hero-dots { left: 40px; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-grid { grid-template-columns: 1fr; }
  .tr-aside { margin-top: 6px; }
  .rising-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
  .footer-app { grid-column: span 3; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
  .footer-app h4 { flex-basis: 100%; margin: 0 0 4px; }
  .newsletter { flex-direction: column; align-items: flex-start; gap: 28px; padding: 44px; }
  .newsletter-form { width: 100%; max-width: 460px; }
}

@media (max-width: 820px) {
  .container { width: min(var(--max), 100% - 36px); }
  .topbar p { font-size: 11.5px; }
  .topbar p span.hide-sm { display: none; }

  .hero { height: 500px; border-radius: 20px; }
  .hero-slide::after {
    background: linear-gradient(180deg, rgba(11, 9, 16, .42) 0%, rgba(11, 9, 16, .8) 56%, rgba(11, 9, 16, .97) 100%);
  }
  .hero-media { background-position: 58% center; }
  .hero-body { padding: 0 28px 54px; align-items: flex-end; }
  .hero-copy { max-width: 100%; }
  .hero-eyebrow { display: none; }
  .hero-visual {
    position: absolute;
    top: 16px;
    right: 20px;
    display: block;
    gap: 0;
  }
  .hero-stats { display: none; }
  .hero-art { transform: rotate(-7deg); }
  .hero-art img {
    width: 90px;
    height: 120px;
    border-width: 3px;
    border-radius: 9px;
    box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .95);
  }
  .hero-art::after { display: none; }
  .hero-dots { left: 28px; bottom: 22px; }
  .hero-arrow { display: none; }
  .hero-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 20px; }

  .section { padding: 44px 0; }
  .grid { gap: 24px 16px; }
  .grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .promo-inner { flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px; }
  .promo-covers { align-self: flex-start; }
  .promo-copy p { font-size: 12.5px; }

  .trend-grid { gap: 14px; }
  .rising-list { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-app { grid-column: span 2; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding-right: 0; }

  .search { width: 180px; }
  .search:focus-within { width: 210px; }
  .search-panel { width: min(360px, 78vw); }
}

@media (max-width: 620px) {
  .container { width: min(var(--max), 100% - 28px); }
  body { padding-bottom: 64px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); }
  .to-top { right: 16px; bottom: 78px; }
  .toast { bottom: 80px; }
  .header-inner { height: 62px; gap: 12px; }
  .logo-text { font-size: 19px; }
  .logo-mark { width: 29px; height: 29px; font-size: 15px; }
  .header-tools .btn-ghost { display: none; }
  .search { display: none; }

  .fav-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 74px;
    width: auto;
    max-height: 64vh;
    z-index: 130;
  }
  .header-tools { gap: 8px; }
  .btn-primary { height: 36px; padding: 0 15px; font-size: 12px; }

  .hero { height: 540px; }
  .hero-title { font-size: 30px; }
  .hero-meta { font-size: 11.5px; gap: 7px; }
  .hero-desc { font-size: 12.5px; }
  .hero-actions .btn { height: 40px; padding: 0 18px; font-size: 12.5px; }
  .hero-eyebrow { font-size: 9.5px; }

  .section { padding: 38px 0; }
  .section-head { margin-bottom: 20px; }
  .section-title { font-size: 21px; }
  .eyebrow { font-size: 10px; }

  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .book-title { font-size: 12.5px; }
  .book-author { font-size: 10.5px; }
  .book-desc { font-size: 10.5px; -webkit-line-clamp: 3; }
  .book-foot { display: none; }

  .trend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trend-ribbon { font-size: 9px; padding: 4px 12px; }
  .rising-item { padding: 8px 6px; gap: 10px; }
  .rising-num { font-size: 18px; width: 18px; }
  .rising-item img { width: 38px; height: 50px; }
  .rising-info b { font-size: 12px; }
  .rising-info span, .rising-read { font-size: 10px; }

  .newsletter { padding: 30px 22px; border-radius: 20px; }
  .newsletter-copy h3 { font-size: 20px; }
  .newsletter-field { padding-left: 14px; }
  .newsletter-field .btn { padding: 0 14px; font-size: 12px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; padding: 44px 0 36px; }
  .footer-brand { grid-column: span 2; }
  .footer-brand p { max-width: 100%; }
  .footer-app { grid-column: span 2; }
  .to-top { display: none; }
  .toast { bottom: 80px; width: calc(100% - 32px); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}




/* Browser guidance modal — informational only; the complete page remains available. */
.browser-help-backdrop {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center;
  justify-content: center; padding: 22px; background: rgba(3, 8, 18, .72);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.browser-help-backdrop[hidden] { display: none; }
.browser-help {
  width: min(100%, 460px); box-sizing: border-box; border-radius: 25px;
  background: #fff; color: #252a33; padding: 34px 28px 25px; text-align: center;
  box-shadow: 0 22px 70px rgba(0,0,0,.32); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.browser-help-globe { font-size: 43px; line-height: 1.2; margin: 0 auto 18px; }
.browser-help h2 { margin: 0 0 13px; font-size: 21px; line-height: 1.35; font-weight: 750; color: #1d2633; }
.browser-help-copy { margin: 0 auto 23px; max-width: 360px; font-size: 15px; line-height: 1.75; color: #646b76; }
.browser-help-primary, .browser-help-secondary {
  display: block; width: 100%; min-height: 58px; border: 0; border-radius: 15px;
  font: inherit; font-size: 17px; font-weight: 650; cursor: pointer;
}
.browser-help-primary { background: #087cf0; color: #fff; }
.browser-help-primary:active { background: #066bd0; }
.browser-help-secondary { margin-top: 12px; background: #f0f1f5; color: #252a33; }
.browser-help-feedback { min-height: 18px; margin: 8px 0 0; font-size: 12px; color: #26734d; }
.browser-help-hint { margin: 16px 0 0; color: #858b95; font-size: 12px; line-height: 1.6; }
@media (max-width: 380px) {
  .browser-help { padding: 28px 20px 21px; border-radius: 22px; }
  .browser-help-copy { font-size: 14px; }
}
