@charset "UTF-8";

:root {
  --ink: #171915;
  --paper: #fbfaf5;
  --paper-deep: #f2eee3;
  --lime: #b9ef32;
  --lime-deep: #98cd18;
  --violet: #7956de;
  --violet-light: #eee8ff;
  --muted: #687064;
  --line: #d7d3c6;
  --white: #ffffff;
  --header-height: 78px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: var(--header-height);
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: 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,
.header-inner,
.hero-inner,
.footer-inner {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 245, .97);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand,
.footer-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand img,
.footer-brand img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy,
.footer-brand > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 20px;
  white-space: nowrap;
}

.brand-copy small,
.footer-brand small {
  max-width: 230px;
  margin-top: 4px;
  overflow: visible;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 27px 0 24px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--lime-deep);
  content: "";
  opacity: 0;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 30px;
}

.header-download,
.primary-action,
.pass-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
}

.header-download {
  min-width: 156px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--lime);
  font-size: 14px;
}

.header-download:hover {
  color: var(--white);
  background: var(--ink);
}

.mobile-label,
.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 68%, rgba(121, 86, 222, .06) 68% 100%),
    radial-gradient(circle at 1px 1px, rgba(23, 25, 21, .13) 1px, transparent 1.2px);
  background-size: auto, 20px 20px;
}

.hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 31%;
  height: 100%;
  background: var(--lime);
  content: "";
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%, 0 18%);
}

.hero-mark {
  position: absolute;
  bottom: -54px;
  left: 2%;
  color: transparent;
  font-size: 170px;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(23, 25, 21, .08);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  gap: 76px;
  padding: 62px 0;
}

.eyebrow,
.section-index,
.pass-copy > p {
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

.hero-copy h1 {
  margin-top: 16px;
  font-size: clamp(72px, 7vw, 116px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.08em;
  white-space: nowrap;
}

.hero-copy h2 {
  max-width: 600px;
  margin-top: 24px;
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.3;
}

.hero-description {
  max-width: 610px;
  margin-top: 22px;
  color: #4d554b;
  font-size: 16px;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.hero-keywords span {
  padding: 7px 13px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.hero-action-stack {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  margin-top: 28px;
}

.primary-action {
  min-width: 225px;
  min-height: 56px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  color: var(--white);
  background: var(--ink);
}

.primary-action:hover {
  color: var(--ink);
  background: var(--lime);
}

.age-label {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.manga-console {
  position: relative;
  width: 100%;
  max-width: 510px;
  margin-left: auto;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--white);
  box-shadow: 18px 18px 0 var(--violet);
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 22px;
  color: var(--white);
  background: var(--ink);
}

.console-topbar strong {
  font-size: 16px;
}

.console-topbar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.console-topbar span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #54df91;
}

.console-body {
  padding: 22px;
}

.console-search {
  display: grid;
  min-height: 46px;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f7f2;
}

.console-search > i {
  margin-left: 12px;
}

.console-search input {
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.console-search button {
  align-self: stretch;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 4px 4px 0;
  color: var(--white);
  background: var(--violet);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.console-filters,
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.console-filters {
  margin: 16px 0;
}

.console-filters button,
.catalog-filters button {
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.console-filters button.is-active,
.catalog-filters button.is-active {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.console-featured {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
}

.console-featured figure {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--ink);
  background: #edf0eb;
}

.console-featured figure img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.console-featured > div {
  min-width: 0;
  padding: 18px;
}

.console-featured small {
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
}

.console-featured h3 {
  margin-top: 5px;
  font-size: 24px;
}

.console-featured p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.console-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.shelf-action,
.continue-action,
.remind-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.continue-action,
.shelf-action[aria-pressed="true"],
.remind-action[aria-pressed="true"] {
  color: var(--ink);
  background: var(--lime);
}

.console-list {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.console-list article {
  display: grid;
  min-height: 58px;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.console-list img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #f1f2ed;
}

.console-list div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.5;
}

.console-list strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-list span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 104px 0;
}

.section-heading {
  margin-bottom: 44px;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px);
  align-items: end;
  gap: 60px;
}

.section-index span {
  color: var(--ink);
}

.section-heading h2 {
  margin-top: 8px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.split-heading > p {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-section {
  background: var(--paper);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.catalog-toolbar > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.comic-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 150px 1fr;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}

.comic-card[hidden] {
  display: none;
}

.comic-card figure {
  display: flex;
  min-height: 245px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  background: #f1f2ed;
}

.comic-card figure img {
  width: 100%;
  height: 245px;
  object-fit: contain;
}

.comic-info {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  padding: 22px 18px;
}

.comic-tag {
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--white);
  background: var(--violet);
  font-size: 12px;
  font-weight: 700;
}

.comic-info h3 {
  margin-top: 13px;
  font-size: 20px;
  line-height: 1.35;
}

.comic-info p,
.comic-info small {
  color: var(--muted);
  font-size: 12px;
}

.comic-info .shelf-action {
  margin-top: auto;
}

.schedule-section {
  background: var(--paper-deep);
}

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

.schedule-layout > * {
  min-width: 0;
}

.week-board,
.reading-queue {
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--white);
}

.weekday-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--ink);
}

.weekday-tabs button {
  min-width: 0;
  padding: 14px 8px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.weekday-tabs button:last-child {
  border-right: 0;
}

.weekday-tabs button.is-active {
  color: var(--white);
  background: var(--violet);
}

.weekday-tabs span,
.weekday-tabs strong {
  display: block;
  font-size: 12px;
}

.schedule-cards {
  padding: 8px 20px 18px;
}

.schedule-cards article {
  display: grid;
  min-height: 88px;
  grid-template-columns: 52px 58px 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.schedule-cards article:last-child {
  border-bottom: 0;
}

.schedule-cards time {
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
}

.schedule-cards img,
.reading-queue img {
  width: 52px;
  height: 58px;
  object-fit: contain;
  background: #f2f3ef;
}

.schedule-cards article > div,
.reading-queue article > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.schedule-cards strong,
.reading-queue strong {
  font-size: 14px;
}

.schedule-cards span,
.reading-queue span {
  color: var(--muted);
  font-size: 12px;
}

.reading-queue {
  color: var(--white);
  background: var(--ink);
}

.queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 18px 20px;
  border-bottom: 1px solid #42453e;
}

.queue-heading span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.queue-heading h3 {
  font-size: 20px;
}

.queue-heading > b {
  color: var(--lime);
  font-size: 24px;
}

.reading-queue article {
  display: grid;
  min-height: 88px;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 13px;
  margin: 0 20px;
  border-bottom: 1px solid #42453e;
}

.reading-queue article > b {
  color: var(--lime);
  font-size: 18px;
}

.screenshots-section {
  overflow: hidden;
  background: #ece6ff;
}

.screens-track {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  justify-content: center;
  gap: 16px;
}

.screen-card {
  width: 250px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--white);
}

.screen-image {
  display: flex;
  width: 250px;
  height: 450px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screen-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-lime .screen-image {
  background: #ecf8ce;
}

.screen-violet .screen-image {
  background: #ddd3ff;
}

.screen-black .screen-image {
  background: #e4e5e1;
}

.screen-card figcaption {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--ink);
}

.screen-card figcaption > span {
  color: var(--violet);
  font-size: 14px;
  font-weight: 900;
}

.screen-card figcaption div {
  display: flex;
  flex-direction: column;
}

.screen-card figcaption strong {
  font-size: 15px;
}

.screen-card figcaption small {
  color: var(--muted);
  font-size: 12px;
}

.library-section {
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    var(--ink);
  background-size: 28px 28px;
}

.light-heading .section-index,
.light-heading .section-index span {
  color: var(--lime);
}

.light-heading > p {
  color: #b9beb4;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.library-panel {
  min-height: 390px;
  padding: 28px;
  border: 1px solid #484b45;
  border-radius: 5px;
  background: rgba(23, 25, 21, .9);
}

.library-panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #484b45;
}

.library-panel-title > i {
  width: 38px;
  height: 38px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  background-size: 18px 18px;
}

.library-panel-title span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.library-panel-title h3 {
  font-size: 22px;
}

.library-panel > p {
  min-height: 72px;
  padding: 15px 0;
  color: #b9beb4;
  font-size: 13px;
}

.folder-list button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #484b45;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.folder-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.folder-list span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.folder-list b {
  color: var(--lime);
}

.progress-list > div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 13px 0 20px;
}

.progress-list span {
  display: flex;
  flex-direction: column;
}

.progress-list small {
  color: #9ea49a;
  font-size: 12px;
}

.progress-list strong {
  color: var(--lime);
  font-size: 12px;
}

.progress-list progress {
  width: 100%;
  height: 5px;
  grid-column: 1 / -1;
  border: 0;
  accent-color: var(--lime);
}

.notice-list label {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #484b45;
  cursor: pointer;
}

.notice-list label > span {
  display: flex;
  flex-direction: column;
  font-weight: 700;
}

.notice-list small {
  color: #9ea49a;
  font-size: 12px;
  font-weight: 400;
}

.notice-list input {
  position: absolute;
  opacity: 0;
}

.notice-list label > i {
  position: relative;
  width: 42px;
  height: 24px;
  border: 1px solid #5b5e56;
  border-radius: 20px;
  background: #33362f;
}

.notice-list label > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #90958b;
  content: "";
}

.notice-list input:checked + i {
  border-color: var(--lime);
  background: var(--lime);
}

.notice-list input:checked + i::after {
  left: 21px;
  background: var(--ink);
}

.narrow-container {
  max-width: var(--container);
}

.faq-section {
  background: var(--paper);
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.faq-list summary {
  display: grid;
  min-height: 72px;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary > span:first-child {
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
}

.faq-list summary strong {
  font-size: 15px;
}

.faq-list summary > i:last-child {
  position: relative;
  width: 18px;
  height: 18px;
}

.faq-list summary > i:last-child::before,
.faq-list summary > i:last-child::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 1px;
  background: var(--ink);
  content: "";
}

.faq-list summary > i:last-child::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary > i:last-child::after {
  transform: rotate(0);
}

.faq-list details > p {
  padding: 0 72px 24px 80px;
  color: var(--muted);
  font-size: 14px;
}

.faq-list .official-site {
  margin-top: 18px;
  border: 1px solid var(--ink);
  border-radius: 5px;
}

.official-site summary > span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
}

.official-site p a {
  color: var(--violet);
  text-decoration: underline;
}

.reviews-section {
  background: #eff7dc;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid #a4bd6a;
  border-radius: 5px;
  background: var(--white);
}

.review-card:nth-child(2n) {
  border-top: 4px solid var(--violet);
}

.review-card:nth-child(2n + 1) {
  border-top: 4px solid var(--lime-deep);
}

.review-head {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
}

.review-head > i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--ink);
  background-size: 20px 20px;
}

.review-head strong {
  font-size: 14px;
}

.review-head span {
  color: #d6a900;
  font-size: 14px;
  letter-spacing: .08em;
}

.review-card > p {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.9;
}

.review-card time {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.download-section {
  padding: 72px 0;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(23, 25, 21, .08) 50%, transparent 50.3%),
    var(--violet);
}

.download-pass {
  position: relative;
  display: grid;
  min-height: 170px;
  grid-template-columns: 180px minmax(0, 1fr) 230px;
  align-items: stretch;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
}

.download-pass::before,
.download-pass::after {
  position: absolute;
  top: 50%;
  width: 26px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--violet);
  content: "";
  transform: translateY(-50%);
}

.download-pass::before {
  left: -15px;
}

.download-pass::after {
  right: -15px;
}

.pass-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-right: 1px dashed var(--ink);
}

.pass-number strong {
  color: var(--violet);
  font-size: 68px;
  line-height: 1;
}

.pass-number span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.pass-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 28px 36px;
}

.pass-copy h2 {
  margin: 6px 0;
  font-size: 28px;
  line-height: 1.3;
}

.pass-copy > span {
  color: var(--muted);
  font-size: 13px;
}

.pass-action {
  position: relative;
  z-index: 1;
  border-left: 2px solid var(--ink);
  border-radius: 0 3px 3px 0;
  background: var(--lime);
  font-size: 18px;
}

.pass-action:hover {
  color: var(--white);
  background: var(--ink);
}

.site-footer {
  color: var(--white);
  background: var(--ink);
}

.footer-inner {
  display: grid;
  min-height: 185px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-brand small {
  color: #a9afa5;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
}

.footer-nav a {
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--lime);
}

.copyright {
  grid-column: 1 / -1;
  margin-top: -36px;
  color: #a9afa5;
  font-size: 12px;
  text-align: center;
}

.back-top {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

[class^="i-"],
[class*=" i-"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.i-download { background-image: url("../icons/download.svg"); }
.i-menu { background-image: url("../icons/menu.svg"); }
.i-search { background-image: url("../icons/search.svg"); }
.i-folder { background-image: url("../icons/folder.svg"); }
.i-bookmark { background-image: url("../icons/bookmark.svg"); }
.i-bell { background-image: url("../icons/bell.svg"); }
.i-globe { background-image: url("../icons/globe.svg"); }
.i-user { background-image: url("../icons/user.svg"); }
.i-up { background-image: url("../icons/up.svg"); }

.header-download:hover .i-download,
.primary-action .i-download,
.pass-action:hover .i-download {
  filter: brightness(0) invert(1);
}

@media (max-width: 1120px) {
  .main-nav ul {
    gap: 20px;
  }

  .header-download {
    min-width: 130px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 44px;
  }

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

  .comic-card {
    grid-template-columns: 140px 1fr;
  }

  .screens-track {
    grid-template-columns: repeat(2, 250px);
    justify-content: center;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 66px;
  }

  body {
    padding-top: var(--header-height);
  }

  .container,
  .header-inner,
  .hero-inner,
  .footer-inner {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    height: var(--header-height);
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    max-width: none;
    font-size: 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .desktop-label {
    display: none;
  }

  .mobile-label,
  .menu-toggle {
    display: inline-flex;
  }

  .header-download {
    min-width: 92px;
    height: 40px;
    padding: 0 13px;
  }

  .header-download .i-download {
    display: none;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 5px;
    background: var(--paper);
  }

  .main-nav {
    position: fixed;
    z-index: -1;
    top: var(--header-height);
    right: 0;
    left: 0;
    margin: 0;
    padding: 10px 14px 18px;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .main-nav.is-open {
    z-index: 999;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav ul {
    display: grid;
    gap: 0;
  }

  .main-nav a {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after {
    top: 50%;
    right: 8px;
    bottom: auto;
    left: auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  .hero::before {
    display: none;
  }

  .hero-mark {
    display: none;
  }

  .hero {
    min-height: 0;
    background-size: 18px 18px;
  }

  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 54px 0 66px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(54px, 16vw, 90px);
    white-space: normal;
  }

  .hero-copy h2,
  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-keywords {
    justify-content: center;
  }

  .hero-action-stack {
    align-items: center;
  }

  .manga-console {
    max-width: 560px;
    margin-right: auto;
    box-shadow: 10px 10px 0 var(--violet);
  }

  .section {
    padding: 74px 0;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .split-heading > p {
    max-width: 620px;
  }

  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .library-panel {
    min-height: 0;
  }

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

  .download-pass {
    grid-template-columns: 150px 1fr;
  }

  .pass-action {
    min-height: 68px;
    grid-column: 1 / -1;
    border-top: 2px solid var(--ink);
    border-left: 0;
    border-radius: 0 0 3px 3px;
  }
}

@media (max-width: 680px) {
  .container,
  .hero-inner,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .header-inner {
    width: calc(100% - 20px);
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    font-size: 12px;
    transform: scale(.92);
    transform-origin: left center;
  }

  .header-actions {
    gap: 7px;
  }

  .header-download {
    min-width: 84px;
    height: 38px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

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

  .hero-copy h1 {
    margin-top: 10px;
    font-size: clamp(50px, 18vw, 74px);
  }

  .hero-copy h2 {
    margin-top: 18px;
    font-size: 25px;
  }

  .hero-description {
    margin-top: 16px;
    font-size: 14px;
  }

  .hero-keywords span {
    font-size: 12px;
  }

  .manga-console {
    box-shadow: 7px 7px 0 var(--violet);
  }

  .console-body {
    padding: 14px;
  }

  .console-featured {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .console-featured figure,
  .console-featured figure img {
    min-height: 150px;
    height: 150px;
  }

  .console-featured > div {
    padding: 14px;
  }

  .console-featured h3 {
    font-size: 20px;
  }

  .console-actions {
    flex-wrap: wrap;
  }

  .section-heading h2 {
    font-size: 40px;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .comic-card {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .comic-card figure,
  .comic-card figure img {
    min-height: 210px;
    height: 210px;
  }

  .comic-info {
    padding: 16px 14px;
  }

  .weekday-tabs {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(78px, 1fr));
    scrollbar-width: none;
  }

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

  .schedule-cards {
    padding: 4px 12px 12px;
  }

  .schedule-cards article {
    grid-template-columns: 44px 48px 1fr;
    gap: 8px;
    padding: 10px 0;
  }

  .schedule-cards article .remind-action {
    grid-column: 3;
    justify-self: start;
  }

  .schedule-cards img,
  .reading-queue img {
    width: 46px;
    height: 52px;
  }

  .screens-track {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .screens-track::-webkit-scrollbar {
    display: none;
  }

  .screen-card {
    width: 250px;
    min-width: 250px;
    scroll-snap-align: start;
  }

  .screen-image {
    width: 250px;
    height: 450px;
  }

  .faq-list summary {
    min-height: 66px;
    grid-template-columns: 34px 1fr 20px;
    padding: 0 12px;
  }

  .faq-list summary strong {
    font-size: 14px;
  }

  .faq-list details > p {
    padding: 0 18px 20px 46px;
    font-size: 13px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    min-height: 0;
  }

  .review-head {
    grid-template-columns: 38px 1fr auto;
    gap: 9px;
  }

  .review-head > i {
    width: 38px;
    height: 38px;
  }

  .review-head span {
    font-size: 12px;
  }

  .download-pass {
    grid-template-columns: 1fr;
  }

  .pass-number {
    min-height: 94px;
    border-right: 0;
    border-bottom: 1px dashed var(--ink);
  }

  .pass-number strong {
    font-size: 48px;
  }

  .pass-copy {
    align-items: center;
    padding: 26px 18px;
    text-align: center;
  }

  .pass-copy h2 {
    font-size: 23px;
  }

  .footer-inner {
    display: flex;
    min-height: 240px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 22px;
    padding: 36px 0;
    text-align: center;
  }

  .footer-nav ul {
    justify-content: center;
    gap: 12px 20px;
  }

  .copyright {
    margin: 0;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
  }

  a,
  button,
  summary,
  input,
  label {
    -webkit-tap-highlight-color: transparent;
  }

  a:active,
  button:active,
  summary:active {
    opacity: 1;
  }
}

@media (max-width: 400px) {
  .brand-copy small {
    max-width: 112px;
  }

  .header-download {
    min-width: 78px;
    padding: 0 8px;
  }

  .console-topbar {
    padding: 0 14px;
  }

  .console-search button {
    padding: 0 12px;
  }

  .console-filters {
    gap: 5px;
  }

  .console-filters button {
    padding: 0 10px;
  }

  .console-list article {
    grid-template-columns: 38px 1fr auto;
  }
}
