/* picac.rest — Harbor Drift visual system (original) */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Sora:wght@600;700;800&display=swap");

:root {
  --navy: #0c2438;
  --ink: #132033;
  --muted: #5a6b7d;
  --lagoon: #00a896;
  --lagoon-deep: #007f72;
  --citrus: #f4a261;
  --coral: #e76f51;
  --mist: #e8f1f8;
  --sheet: #f5fafc;
  --panel: #ffffff;
  --line: rgba(19, 32, 51, 0.1);
  --glass: rgba(245, 250, 252, 0.88);
  --shadow: 0 16px 36px rgba(12, 36, 56, 0.1);
  --r: 14px;
  --max: 1020px;
  --nav-h: 56px;
  --font-display: "Sora", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(165deg, #d9ebf7 0%, var(--mist) 28%, var(--sheet) 62%, #eef7f4 100%);
  line-height: 1.9;
  font-size: 16px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(680px 360px at 0% 12%, rgba(0, 168, 150, 0.14), transparent 70%),
    radial-gradient(540px 300px at 100% 8%, rgba(244, 162, 97, 0.16), transparent 65%);
}

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

a {
  color: var(--lagoon-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.8rem);
  margin: 0 0 0.7rem;
}

h3 {
  font-size: clamp(1.05rem, 2.6vw, 1.28rem);
  margin: 0 0 0.55rem;
}

p {
  margin: 0 0 1rem;
}

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

/* top navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  height: var(--nav-h);
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.mark img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(12, 36, 56, 0.18);
}

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

.menu a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.menu a:hover,
.menu a.is-on {
  color: var(--lagoon-deep);
}

.burger {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  width: 42px;
  height: 36px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

@media (max-width: 760px) {
  .burger {
    display: inline-block;
  }

  .menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(245, 250, 252, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    padding: 12px 18px;
  }
}

/* sticky download dock under header */
.shelf-dock {
  position: sticky;
  top: var(--nav-h);
  z-index: 110;
  background: rgba(12, 36, 56, 0.94);
  color: #fff;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.22s ease;
  padding: 0;
}

.shelf-dock.is-show {
  max-height: 220px;
  opacity: 1;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shelf-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 8px;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px 6px;
}

@media (max-width: 760px) {
  .shelf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.shelf-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  text-align: center;
}

.shelf-grid img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease;
}

.shelf-grid a:hover img {
  transform: translateY(-3px) scale(1.04);
}

.shelf-grid span {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* promo ads top */
.promo-band {
  padding: 12px 0 4px;
}

.promo-ads,
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
  background: transparent;
}

.promo-ads > div,
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

.promo-ads img,
#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  background: linear-gradient(135deg, #fff, #fff);
}

.promo-ads a,
#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

.promo-ads img:hover,
#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.promo-ads .caption,
#ads .caption,
.promo-ads figcaption,
#ads figcaption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* hero */
.drift-hero {
  position: relative;
  margin: 10px 0 28px;
  padding: clamp(28px, 6vw, 48px) clamp(18px, 4vw, 36px);
  color: #f7fbff;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(12, 36, 56, 0.94) 0%, rgba(0, 127, 114, 0.82) 52%, rgba(231, 111, 81, 0.78) 100%),
    url("anime-home.jpg") center/cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  min-height: 280px;
  animation: harborIn 0.9s ease both;
}

.drift-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 40%;
  height: 180px;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.35), transparent 70%);
  pointer-events: none;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.drift-hero h1 {
  color: #fff;
  max-width: 16ch;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.drift-hero p {
  max-width: 36em;
  color: rgba(247, 251, 255, 0.92);
  margin-bottom: 0;
  font-size: 0.98rem;
}

@keyframes harborIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* chapter blocks */
.chapter {
  margin: 0 0 34px;
  padding: 22px 0;
}

.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.chapter-no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--lagoon);
  letter-spacing: 0.08em;
}

.lead {
  font-size: 1.02rem;
  color: var(--ink);
}

.soft {
  color: var(--muted);
}

.split-row {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
  align-items: center;
  margin: 18px 0;
}

.split-row.reverse {
  grid-template-columns: 0.85fr 1.35fr;
}

.split-row.reverse .copy {
  order: 2;
}

.split-row.reverse .visual {
  order: 1;
}

@media (max-width: 800px) {
  .split-row,
  .split-row.reverse {
    grid-template-columns: 1fr;
  }

  .split-row.reverse .copy,
  .split-row.reverse .visual {
    order: initial;
  }
}

.visual {
  position: relative;
}

.visual img {
  width: 100%;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transform: rotate(-1.2deg);
  transition: transform 0.35s ease;
}

.visual:hover img {
  transform: rotate(0deg) scale(1.01);
}

.visual.tilt-r img {
  transform: rotate(1.4deg);
}

.frame-stack {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.tile-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 8px;
}

@media (max-width: 760px) {
  .tile-board {
    grid-template-columns: 1fr;
  }
}

.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 16px 14px;
  box-shadow: 0 8px 20px rgba(12, 36, 56, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 168, 150, 0.35);
}

.tile h3 {
  margin-bottom: 8px;
}

.tile p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.pulse-line {
  height: 3px;
  width: 56px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lagoon), var(--citrus));
  margin: 0 0 14px;
  animation: pulseLine 2.4s ease-in-out infinite;
}

@keyframes pulseLine {
  0%,
  100% {
    width: 48px;
    opacity: 0.7;
  }
  50% {
    width: 72px;
    opacity: 1;
  }
}

.quote-band {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--citrus);
  background: linear-gradient(90deg, rgba(244, 162, 97, 0.12), transparent);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--ink);
  font-weight: 500;
}

.ink-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.ink-list li {
  margin-bottom: 0.45rem;
}

.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.rise.is-in {
  opacity: 1;
  transform: none;
}

/* subpages */
.crumb-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 18px 0 10px;
}

.crumb-trail a {
  text-decoration: none;
  color: var(--lagoon-deep);
}

.crumb-trail span {
  opacity: 0.55;
}

.page-intro {
  padding: 8px 0 18px;
}

.legal-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.legal-block h2 {
  margin-top: 1.4rem;
}

.legal-block h2:first-child {
  margin-top: 0;
}

.err-shell {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.err-shell h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
  background: linear-gradient(120deg, var(--lagoon), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.err-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.err-actions a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
}

.err-actions a.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

/* footer */
.foot {
  margin-top: 40px;
  padding: 28px 0 36px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
}

.foot a {
  color: #9debe3;
  text-decoration: none;
}

.foot a:hover {
  color: var(--citrus);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

@media (max-width: 700px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.foot-copy {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.seo-links {
  margin: 22px 0 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.92rem;
}

.seo-links a {
  margin-right: 12px;
  white-space: nowrap;
}
