/* bks.quest — aurora ledger comic brand */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+QingKe+HuangYou&display=swap');

:root {
  --fq-bg: #eef8f4;
  --fq-bg2: #f7fff9;
  --fq-ink: #12352f;
  --fq-muted: #4a6861;
  --fq-flare: #ff5e3a;
  --fq-flare-deep: #e04322;
  --fq-aqua: #00b39a;
  --fq-navy: #16324f;
  --fq-panel: #ffffff;
  --fq-line: rgba(18, 53, 47, 0.12);
  --fq-glow: rgba(0, 179, 154, 0.18);
  --fq-warm: rgba(255, 94, 58, 0.14);
  --fq-shadow: 0 16px 36px rgba(18, 53, 47, 0.1);
  --fq-max: 1040px;
  --fq-nav-h: 56px;
  --fq-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", sans-serif;
  --fq-body: "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fq-body);
  color: var(--fq-ink);
  background:
    radial-gradient(900px 420px at 0% 0%, var(--fq-glow), transparent 55%),
    radial-gradient(800px 380px at 100% 8%, var(--fq-warm), transparent 50%),
    linear-gradient(180deg, var(--fq-bg2), var(--fq-bg) 40%, #e6f3ee);
  line-height: 1.75;
  padding-top: calc(var(--fq-nav-h) + var(--fq-stick-h, 0px));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--fq-aqua);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--fq-flare);
}

.fq-wrap {
  width: min(100% - 28px, var(--fq-max));
  margin-inline: auto;
}

/* ===== NAV ===== */
.fq-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--fq-nav-h);
  background: rgba(247, 255, 249, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fq-line);
}

.fq-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fq-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fq-navy);
  text-decoration: none;
  font-family: var(--fq-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.fq-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(22, 50, 79, 0.18);
}

.fq-menu-btn {
  border: 1px solid var(--fq-line);
  background: var(--fq-panel);
  color: var(--fq-ink);
  border-radius: 10px;
  padding: 7px 12px;
  font: inherit;
  cursor: pointer;
}

.fq-links {
  display: none;
  gap: 6px;
  align-items: center;
}

.fq-links a {
  text-decoration: none;
  color: var(--fq-muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.fq-links a.is-live,
.fq-links a:hover {
  color: var(--fq-navy);
  background: rgba(0, 179, 154, 0.12);
}

.fq-links.open {
  display: flex;
  position: absolute;
  top: var(--fq-nav-h);
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--fq-line);
  padding: 10px 14px 14px;
  box-shadow: var(--fq-shadow);
}

@media (min-width: 860px) {
  .fq-menu-btn {
    display: none;
  }

  .fq-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

/* ===== PROMO (top, above fold) ===== */
.fq-promo {
  background: linear-gradient(90deg, rgba(0, 179, 154, 0.08), rgba(255, 94, 58, 0.08));
  border-bottom: 1px solid var(--fq-line);
  padding: 8px 0 4px;
}

/* ===== STICKY DOWNLOAD DOCK ===== */
.fq-stick {
  position: fixed;
  top: var(--fq-nav-h);
  left: 0;
  right: 0;
  z-index: 990;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fq-line);
  transform: translateY(-120%);
  transition: transform 0.28s ease;
  padding: 6px 0 2px;
}

.fq-stick.is-show {
  transform: translateY(0);
}

.fq-ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 6px;
  padding: 4px 0;
}

.fq-ads > div {
  width: calc(25% - 6px);
  max-width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 860px) {
  .fq-ads > div {
    width: calc(12.5% - 6px);
  }
}

.fq-ads a {
  display: block;
  border-radius: 16px;
  text-decoration: none;
}

.fq-ads img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(18, 53, 47, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  background: #fff;
}

.fq-ads img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 22px rgba(18, 53, 47, 0.16);
}

.fq-ads .caption {
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 15px;
}

/* ===== HERO ===== */
.fq-splash {
  position: relative;
  overflow: hidden;
  padding: 34px 0 28px;
  isolation: isolate;
}

.fq-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(22, 50, 79, 0.92), rgba(0, 179, 154, 0.78)),
    radial-gradient(500px 280px at 80% 20%, rgba(255, 94, 58, 0.45), transparent 60%);
  z-index: -2;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.fq-splash::after {
  content: "BIKA";
  position: absolute;
  right: -2%;
  top: 8%;
  font-family: var(--fq-display);
  font-size: clamp(4.5rem, 18vw, 9rem);
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: 0.08em;
  z-index: -1;
  pointer-events: none;
  animation: fqFloat 7s ease-in-out infinite;
}

.fq-splash-inner {
  color: #fff;
  max-width: 720px;
}

.fq-splash .fq-name {
  font-family: var(--fq-display);
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  margin: 0 0 10px;
  letter-spacing: 0.04em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: fqRise 0.8s ease both;
}

.fq-splash h1 {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 3.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
  animation: fqRise 0.9s ease 0.08s both;
}

.fq-splash .fq-lead {
  margin: 0;
  font-size: 0.98rem;
  opacity: 0.95;
  max-width: 38em;
  animation: fqRise 1s ease 0.16s both;
}

@keyframes fqRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fqFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ===== CONTENT BLOCKS ===== */
.fq-main {
  padding: 8px 0 48px;
}

.fq-chapter {
  margin: 28px 0;
  padding: 22px 18px;
  background: var(--fq-panel);
  border: 1px solid var(--fq-line);
  border-radius: 18px 28px 18px 28px;
  box-shadow: var(--fq-shadow);
  position: relative;
  overflow: hidden;
}

.fq-chapter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--fq-aqua), var(--fq-flare));
}

.fq-chapter h2 {
  margin: 0 0 12px;
  font-family: var(--fq-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: var(--fq-navy);
  line-height: 1.35;
}

.fq-chapter h3 {
  margin: 18px 0 8px;
  font-size: 1.08rem;
  color: var(--fq-ink);
}

.fq-chapter p {
  margin: 0 0 12px;
  color: var(--fq-muted);
  font-size: 0.98rem;
}

.fq-chapter p:last-child {
  margin-bottom: 0;
}

.fq-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fq-aqua);
  margin-bottom: 6px;
  font-weight: 700;
}

/* zig duo */
.fq-zig {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}

@media (min-width: 780px) {
  .fq-zig {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .fq-zig.is-flip {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .fq-zig.is-flip .fq-shot {
    order: -1;
  }
}

.fq-shot {
  margin: 0;
  position: relative;
}

.fq-shot img {
  border-radius: 18px;
  box-shadow: var(--fq-shadow);
  border: 3px solid #fff;
  transform: rotate(-1.5deg);
  transition: transform 0.35s ease;
}

.fq-shot:hover img {
  transform: rotate(0deg) scale(1.02);
}

.fq-shot figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--fq-muted);
  text-align: center;
}

/* tiles */
.fq-tiles {
  display: grid;
  gap: 12px;
  margin: 14px 0 4px;
}

@media (min-width: 680px) {
  .fq-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fq-tile {
  background: linear-gradient(160deg, #f4fffb, #fff);
  border: 1px solid var(--fq-line);
  border-radius: 16px;
  padding: 14px 14px 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fq-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--fq-shadow);
}

.fq-tile strong {
  display: block;
  color: var(--fq-navy);
  margin-bottom: 6px;
  font-size: 1rem;
}

.fq-tile p {
  margin: 0;
  font-size: 0.9rem;
}

/* quote band */
.fq-band {
  margin: 30px 0;
  padding: 26px 20px;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(22, 50, 79, 0.95), rgba(0, 179, 154, 0.88));
  color: #fff;
  box-shadow: var(--fq-shadow);
  position: relative;
  overflow: hidden;
}

.fq-band::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  bottom: -50px;
  border-radius: 50%;
  background: rgba(255, 94, 58, 0.35);
  filter: blur(2px);
}

.fq-band h2 {
  margin: 0 0 10px;
  font-family: var(--fq-display);
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  position: relative;
  z-index: 1;
}

.fq-band p {
  margin: 0 0 10px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.fq-band p:last-child {
  margin-bottom: 0;
}

/* media stack */
.fq-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 760px) {
  .fq-stack {
    grid-template-columns: 1fr 1fr;
  }
}

.fq-stack .fq-shot img {
  transform: rotate(1.2deg);
}

/* breadcrumb */
.fq-crumbs {
  padding: 14px 0 0;
  font-size: 0.88rem;
  color: var(--fq-muted);
}

.fq-crumbs a {
  color: var(--fq-navy);
  text-decoration: none;
}

.fq-crumbs span {
  margin: 0 6px;
  opacity: 0.5;
}

/* subpage hero */
.fq-subhead {
  padding: 22px 0 8px;
}

.fq-subhead h1 {
  margin: 6px 0 8px;
  font-family: var(--fq-display);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  color: var(--fq-navy);
}

.fq-subhead p {
  margin: 0;
  color: var(--fq-muted);
  max-width: 42em;
}

/* legal prose */
.fq-legal {
  padding: 8px 0 50px;
}

.fq-legal .fq-chapter h2 {
  font-size: 1.25rem;
}

/* error pages */
.fq-error {
  min-height: 56vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.fq-error h1 {
  font-family: var(--fq-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  margin: 0 0 10px;
  color: var(--fq-navy);
}

.fq-error p {
  margin: 0 0 18px;
  color: var(--fq-muted);
}

.fq-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--fq-aqua), #05967f);
  color: #fff !important;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 179, 154, 0.28);
}

/* footer */
.fq-foot {
  border-top: 1px solid var(--fq-line);
  background: rgba(255, 255, 255, 0.72);
  padding: 28px 0 36px;
  margin-top: 20px;
}

.fq-foot-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .fq-foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.fq-foot h3 {
  margin: 0 0 8px;
  font-family: var(--fq-display);
  font-size: 1.15rem;
  color: var(--fq-navy);
}

.fq-foot p,
.fq-foot a {
  color: var(--fq-muted);
  font-size: 0.92rem;
}

.fq-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fq-foot li {
  margin: 0 0 6px;
}

.fq-foot a {
  text-decoration: none;
}

.fq-foot a:hover {
  color: var(--fq-flare);
}

.fq-copy {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--fq-line);
  font-size: 0.82rem;
  color: var(--fq-muted);
  text-align: center;
}

/* reveal motion */
.fq-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fq-fade.is-in {
  opacity: 1;
  transform: none;
}

body.is-error {
  padding-top: var(--fq-nav-h);
}

body.is-error .fq-stick {
  display: none;
}
