@charset "UTF-8";

:root {
  --orange: #ff6410;
  --orange-dark: #e84f00;
  --ink: #171717;
  --paper: #f7f3eb;
  --white: #ffffff;
  --line: #cfc8bd;
  --muted: #6d6a66;
  --cyan: #1f9dc4;
  --header-height: 66px;
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

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

ul,
ol {
  padding-left: 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;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--content-width));
  height: 100%;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.brand-copy,
.footer-brand span {
  display: grid;
  line-height: 1.2;
}

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

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.main-nav a {
  position: relative;
  display: block;
  padding: 20px 0 18px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: var(--orange-dark);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.mobile-download {
  padding: 9px 14px;
  color: var(--white);
  background: var(--orange);
  border: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.menu-toggle {
  display: grid;
  place-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background-color: var(--white);
  background-image: radial-gradient(#d8d3cb 0.8px, transparent 0.8px);
  background-size: 12px 12px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  content: "";
  background: rgba(247, 243, 235, 0.83);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-rail {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: max(44px, calc((100vw - var(--content-width)) / 2 - 26px));
  min-width: 44px;
  padding-top: 32px;
  color: var(--ink);
  background: var(--orange);
}

.hero-rail span,
.hero-rail strong {
  font-size: 10px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.hero-rail i {
  width: 1px;
  height: 250px;
  margin: 20px 0;
  background: var(--ink);
}

.hero-rail b {
  margin-top: auto;
  margin-bottom: 28px;
  font-size: 22px;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: 44px;
  align-items: center;
  width: min(calc(100% - 96px), var(--content-width));
  min-height: 560px;
  margin: 0 auto;
  padding: 38px 0;
}

.issue-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.issue-line span {
  padding: 5px 10px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}

.hero h1 {
  margin-bottom: 8px;
  font-family: Arial Black, "Microsoft YaHei", sans-serif;
  font-size: clamp(66px, 7vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.16;
}

.hero-text {
  max-width: 590px;
  margin-bottom: 20px;
  color: #4e4b46;
  font-size: 15px;
}

.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 178px;
  padding: 13px 20px;
  border: 2px solid var(--ink);
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-link:hover,
.download-link:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}

.download-link--android {
  color: var(--white);
  background: var(--orange);
}

.download-link--ios {
  color: var(--white);
  background: var(--ink);
}

.quark-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.icon-android {
  background-image: url("../icons/android.svg");
}

.icon-ios {
  background-image: url("../icons/ios.svg");
}

.icon-search {
  background-image: url("../icons/search.svg");
}

.icon-bell {
  background-image: url("../icons/bell.svg");
}

.icon-plus {
  background-image: url("../icons/plus.svg");
}

.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 500px;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: 282px;
  height: 516px;
  padding: 11px;
  background: #101010;
  border: 2px solid #000;
  border-radius: 40px;
  box-shadow: 14px 16px 0 rgba(255, 100, 16, 0.22);
}

.phone-speaker {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 50%;
  width: 88px;
  height: 22px;
  background: #050505;
  border-radius: 20px;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  height: 100%;
  padding: 15px 13px 10px;
  background: var(--white);
  border-radius: 30px;
}

.app-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 17px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 800;
}

.app-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 19px;
}

.app-title-row .icon {
  width: 18px;
  height: 18px;
}

.app-search {
  margin: 9px 0;
  padding: 8px 10px;
  color: #999;
  background: #f3f3f3;
  border: 1px solid #e3e3e3;
  border-radius: 5px;
  font-size: 11px;
}

.app-feature {
  position: relative;
  min-height: 104px;
  padding: 15px 13px;
  overflow: hidden;
  color: var(--white);
  background: var(--orange);
  border: 2px solid var(--ink);
}

.app-feature span,
.app-feature strong {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 150px;
}

.app-feature span {
  font-size: 12px;
}

.app-feature strong {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.15;
}

.app-feature img {
  position: absolute;
  right: -8px;
  bottom: -15px;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.app-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 10px 0;
  font-size: 10px;
  text-align: center;
}

.app-categories li::before {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 4px;
  content: "";
  background: var(--orange);
  border-radius: 50%;
}

.app-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.app-card-row article {
  min-width: 0;
}

.app-card-row img {
  width: 100%;
  height: 98px;
  object-fit: contain;
  background: #f1ede6;
  border: 1px solid #ddd;
}

.app-card-row strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-size: 10px;
  text-align: center;
}

.app-tabbar b {
  color: var(--orange);
}

.device-ticket {
  position: absolute;
  z-index: 4;
  right: -20px;
  bottom: 44px;
  display: grid;
  width: 118px;
  padding: 13px;
  color: var(--white);
  background: var(--ink);
  border: 3px solid var(--orange);
  box-shadow: 7px 7px 0 var(--orange);
}

.device-ticket span {
  font-size: 12px;
}

.device-ticket strong {
  color: var(--orange);
  font-size: 38px;
  line-height: 1.1;
}

.folio,
.editorial,
.operations,
.interface-archive,
.reader-desk {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 12px auto 0;
}

.folio,
.editorial,
.interface-archive,
.reader-desk {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.folio {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 0 18px;
}

.folio > .section-heading {
  grid-row: 1 / span 2;
  grid-column: 1;
}

.folio > .search-console,
.folio > .filter-console {
  grid-column: 2;
}

.folio > .catalog-grid {
  grid-column: 1 / -1;
}

.section-heading--row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.section-number {
  flex: 0 0 auto;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 46px;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.eyebrow {
  display: block;
  margin-bottom: 2px;
  color: var(--orange-dark);
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-heading h2,
.panel-title h2,
.desk-heading h2 {
  margin-bottom: 2px;
  font-size: 24px;
  line-height: 1.2;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.search-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px auto;
  gap: 0;
  align-items: stretch;
  margin: 0;
  border: 2px solid var(--ink);
}

.search-field input {
  width: 100%;
  height: 46px;
  padding: 0 18px;
  background: var(--white);
  border: 0;
  outline: 0;
}

.search-field input:focus {
  box-shadow: inset 0 0 0 3px rgba(255, 100, 16, 0.35);
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--white);
  background: var(--orange);
  border: 0;
  border-left: 2px solid var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.search-submit .icon {
  width: 17px;
  height: 17px;
}

.search-console p {
  align-self: center;
  margin: 0;
  padding: 0 16px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.filter-console {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  margin: 8px 0 0;
  border: 1px solid var(--line);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-right: 1px solid var(--line);
}

.filter-group:last-child {
  border-right: 0;
}

.filter-group strong {
  margin-right: 4px;
  font-size: 12px;
}

.filter-group button,
.editorial-tabs button,
.week-switch button,
.shelf-toolbar button,
.review-sort button {
  padding: 7px 10px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 12px;
}

.filter-group button:hover,
.filter-group button:focus-visible,
.filter-group button.is-selected {
  color: var(--white);
  background: var(--ink);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.manga-card {
  display: grid;
  grid-template-rows: 190px auto;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}

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

.cover-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 190px;
  padding: 8px;
  overflow: hidden;
  background: #ede8df;
  border-bottom: 2px solid var(--ink);
}

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

.manga-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 10px;
}

.manga-meta h3 {
  overflow: hidden;
  margin-bottom: 0;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manga-meta p {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.shelf-action {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  padding: 0;
  color: transparent;
  background: var(--white);
  border: 1px solid var(--ink);
  cursor: pointer;
}

.shelf-action::before {
  display: block;
  color: var(--ink);
  content: "+";
  font-size: 22px;
  line-height: 30px;
}

.shelf-action.is-added {
  background: var(--orange);
}

.shelf-action.is-added::before {
  color: var(--white);
  content: "✓";
}

.editorial {
  position: relative;
}

.editorial-tabs {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  border-bottom: 2px solid var(--ink);
}

.editorial-tabs button {
  min-width: 92px;
  border-radius: 0;
  font-weight: 800;
}

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

.editorial-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
  margin-top: 18px;
}

.feature-story {
  display: grid;
  grid-template-columns: 47% 1fr;
  min-height: 238px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--ink);
}

.feature-story > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #272727;
  border-right: 2px solid var(--orange);
}

.feature-story > div {
  align-self: center;
  padding: 20px;
}

.feature-story span {
  color: var(--orange);
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.feature-story h3 {
  margin: 10px 0;
  font-size: 23px;
  line-height: 1.25;
}

.feature-story p {
  color: #c9c5bf;
  font-size: 13px;
}

.feature-story button {
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.feature-story button.is-saved {
  color: var(--white);
  background: var(--orange);
}

.editor-picks {
  display: grid;
  margin: 0;
  border-top: 2px solid var(--ink);
}

.editor-picks li {
  display: grid;
  grid-template-columns: 32px 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.editor-picks li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.editor-picks img {
  width: 64px;
  height: 62px;
  object-fit: contain;
  background: #eee8de;
}

.editor-picks strong,
.editor-picks small {
  display: block;
}

.editor-picks small {
  margin-top: 5px;
  color: var(--muted);
}

.operations {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 12px;
}

.radar-panel,
.shelf-panel {
  min-width: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.panel-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.week-switch {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 12px 0 8px;
  border: 1px solid var(--line);
}

.week-switch button {
  padding: 10px 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  font-weight: 800;
}

.week-switch button:last-child {
  border-right: 0;
}

.week-switch button.is-active {
  color: var(--white);
  background: var(--orange);
}

.radar-day {
  margin: 12px 0 4px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
}

.update-list {
  margin-bottom: 14px;
}

.update-list li {
  display: grid;
  grid-template-columns: 52px 1fr 40px;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.update-list time {
  color: var(--orange-dark);
  font-weight: 800;
}

.update-list strong,
.update-list span {
  display: block;
}

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

.reminder-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 30px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
}

.reminder-toggle .icon {
  width: 15px;
  height: 15px;
  opacity: 0.35;
}

.reminder-toggle.is-on {
  background: var(--orange);
  border-color: var(--ink);
}

.reminder-toggle.is-on .icon {
  opacity: 1;
}

.radar-summary {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  background: var(--paper);
  border-left: 5px solid var(--orange);
  font-size: 12px;
}

.shelf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
}

.shelf-toolbar > div {
  display: flex;
  border-bottom: 2px solid var(--ink);
}

.shelf-toolbar button {
  border-radius: 0;
}

.shelf-toolbar div button.is-active {
  color: var(--white);
  background: var(--orange);
}

#sort-shelf {
  border: 1px solid var(--line);
}

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

.shelf-cards article {
  min-width: 0;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.shelf-cards article[hidden] {
  display: none;
}

.shelf-cards img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #e9e4dc;
  border-bottom: 2px solid var(--ink);
}

.shelf-cards strong,
.shelf-cards span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shelf-cards strong {
  margin-top: 8px;
  font-size: 13px;
}

.shelf-cards span {
  color: var(--muted);
  font-size: 10px;
}

.interface-archive {
  background: var(--white);
  color: var(--ink);
}

.archive-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.interface-archive .section-heading p {
  color: var(--muted);
}

.archive-controls {
  display: flex;
  gap: 8px;
}

.archive-controls button {
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 20px;
}

.archive-controls button:hover,
.archive-controls button:focus-visible {
  color: var(--ink);
  background: var(--orange);
}

.archive-track {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--orange) #e6e0d7;
}

.archive-track figure {
  flex: 0 0 210px;
  min-width: 210px;
  margin-bottom: 0;
  scroll-snap-align: start;
}

.archive-track figure > div {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 366px;
  padding: 9px;
  overflow: hidden;
  background: #f0ebe3;
  border: 1px solid var(--line);
}

.archive-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.archive-track figcaption {
  padding: 9px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.archive-track figcaption b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  color: var(--ink);
  background: var(--orange);
}

.reader-desk {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.reader-desk > article + article {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.desk-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.desk-heading > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 10px;
  align-items: end;
}

.desk-heading .section-number {
  grid-row: 1 / span 2;
}

.desk-heading .eyebrow {
  align-self: end;
}

.desk-heading h2 {
  margin: 0;
}

.review-sort {
  display: flex;
}

.review-sort button {
  border: 1px solid var(--line);
  border-radius: 0;
}

.review-sort button.is-active {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

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

.review-card {
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.review-card header {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 9px;
  align-items: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-weight: 800;
}

.review-card header strong,
.review-card time {
  display: block;
}

.review-card time {
  color: var(--muted);
  font-size: 12px;
}

.review-card header > span {
  color: var(--orange-dark);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.review-card p {
  margin: 10px 0 0;
  color: #4f4c48;
  font-size: 13px;
}

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

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.faq-item > button .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.faq-item.is-open > button .icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease;
}

.faq-answer p {
  min-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer p {
  padding-bottom: 16px;
}

.download-band {
  margin-top: 12px;
  color: var(--white);
  background: linear-gradient(112deg, var(--orange) 0 44%, var(--ink) 44% 100%);
  border-top: 3px solid var(--ink);
}

.download-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 210px;
  margin: 0 auto;
  padding: 30px 0;
}

.download-copy span {
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.download-copy h2 {
  margin: 8px 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
}

.download-copy p {
  margin-bottom: 0;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.download-options a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  color: var(--white);
  background: #232323;
  border: 1px solid #777;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.download-options a:hover,
.download-options a:focus-visible {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.download-options small,
.download-options strong {
  display: block;
  white-space: nowrap;
}

.download-options small {
  color: #bcb8b3;
  font-size: 12px;
}

.download-options strong {
  font-size: 15px;
}

.site-footer {
  color: #d8d4cd;
  background: #0e0e0e;
  border-top: 1px solid #383838;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 100px;
  margin: 0 auto;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 9px;
}

.footer-brand small {
  color: #96918a;
  font-size: 12px;
}

.footer-inner ul {
  display: flex;
  gap: 22px;
  margin: 0;
  font-size: 15px;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--orange);
}

.footer-inner p {
  justify-self: end;
  margin: 0;
  color: #87827b;
  font-size: 15px;
}

.back-top {
  position: fixed;
  z-index: 800;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  visibility: hidden;
  background: var(--orange);
  border: 2px solid var(--ink);
  opacity: 0;
  cursor: pointer;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.back-top i {
  display: block;
  width: 24px;
  height: 24px;
  background: url("../images/top.png") center / contain no-repeat;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

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

  .hero-inner {
    gap: 30px;
  }

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

  .search-console,
  .filter-console {
    margin-left: 0;
  }

  .filter-console {
    grid-template-columns: 1fr;
  }

  .filter-group {
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
  }

  .filter-group:last-child {
    border-bottom: 0;
  }

  .editorial-board,
  .reader-desk {
    grid-template-columns: 1fr;
  }

  .reader-desk > article + article {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .archive-track {
    grid-template-columns: repeat(4, 260px);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

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

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

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

  .main-nav {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    left: 0;
    visibility: hidden;
    height: calc(100dvh - var(--header-height));
    padding: 18px;
    background: rgba(23, 23, 23, 0.98);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav ul {
    display: grid;
    gap: 0;
    width: min(100%, 480px);
    margin: 0 auto;
    border-top: 1px solid #4a4a4a;
  }

  .main-nav li {
    border-bottom: 1px solid #4a4a4a;
  }

  .main-nav a {
    padding: 18px 4px;
    color: var(--white);
  }

  .main-nav a::after {
    right: auto;
    width: 42px;
  }

  .header-actions {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero::after,
  .hero-rail {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    width: min(calc(100% - 32px), 560px);
    min-height: auto;
    padding: 54px 0 42px;
  }

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

  .issue-line,
  .hero-downloads {
    justify-content: center;
  }

  .hero-text {
    margin-right: auto;
    margin-left: auto;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 70px);
    letter-spacing: -0.07em;
  }

  .hero-lead {
    font-size: clamp(26px, 7.5vw, 38px);
  }

  .hero-device {
    min-height: 520px;
  }

  .phone-shell {
    width: 282px;
    height: 516px;
  }

  .device-ticket {
    right: calc(50% - 180px);
    bottom: 30px;
  }

  .folio,
  .editorial,
  .operations,
  .interface-archive,
  .reader-desk {
    width: calc(100% - 24px);
  }

  .folio,
  .editorial,
  .interface-archive,
  .reader-desk {
    padding: 20px;
  }

  .folio {
    display: block;
  }

  .section-number {
    font-size: 44px;
  }

  .search-console {
    grid-template-columns: 1fr 116px;
  }

  .search-console p {
    grid-column: 1 / -1;
    padding: 9px 14px;
    border-top: 1px solid var(--line);
  }

  .catalog-grid {
    display: flex;
    gap: 12px;
    padding-bottom: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .manga-card {
    flex: 0 0 210px;
    scroll-snap-align: start;
  }

  .editorial-tabs {
    position: static;
    margin-top: 18px;
    overflow-x: auto;
  }

  .editorial-tabs button {
    flex: 1 0 auto;
  }

  .editorial-board {
    margin-top: 18px;
  }

  .feature-story {
    grid-template-columns: 1fr;
  }

  .feature-story > img {
    height: 280px;
    border-right: 0;
    border-bottom: 2px solid var(--orange);
  }

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

  .shelf-cards {
    display: flex;
    padding-bottom: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .shelf-cards article {
    flex: 0 0 170px;
    scroll-snap-align: start;
  }

  .download-band {
    background: linear-gradient(180deg, var(--orange) 0 48%, var(--ink) 48% 100%);
  }

  .download-inner {
    grid-template-columns: 1fr;
    gap: 52px;
    width: calc(100% - 32px);
    padding: 36px 0;
  }

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

  .download-options {
    margin-top: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    padding: 28px 0;
    text-align: center;
  }

  .footer-inner p {
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .brand-copy small {
    display: none;
  }

  .mobile-download {
    padding: 9px 10px;
    font-size: 15px;
  }

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

  .issue-line {
    margin-bottom: 18px;
  }

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

  .download-link {
    min-width: 0;
    padding: 13px 9px;
    font-size: 13px;
  }

  .download-link .icon {
    width: 19px;
    height: 19px;
  }

  .hero-device {
    min-height: 510px;
  }

  .phone-shell {
    width: min(278px, calc(100vw - 56px));
    height: 506px;
    border-radius: 40px;
  }

  .phone-screen {
    border-radius: 29px;
  }

  .app-card-row img {
    height: 94px;
  }

  .device-ticket {
    right: 5px;
    bottom: 20px;
  }

  .section-heading--row {
    gap: 10px;
  }

  .section-heading h2,
  .panel-title h2,
  .desk-heading h2 {
    font-size: 23px;
  }

  .search-console {
    grid-template-columns: 1fr;
  }

  .search-submit {
    min-height: 46px;
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .filter-group {
    padding: 8px;
  }

  .editorial-board {
    gap: 18px;
  }

  .feature-story > div {
    padding: 20px;
  }

  .feature-story h3 {
    font-size: 23px;
  }

  .radar-panel,
  .shelf-panel {
    padding: 18px;
  }

  .week-switch button {
    min-width: 38px;
  }

  .shelf-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .shelf-toolbar > div {
    overflow-x: auto;
  }

  .archive-heading,
  .desk-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-track {
    gap: 10px;
  }

  .archive-track figure {
    flex-basis: calc(100vw - 76px);
    min-width: calc(100vw - 76px);
  }

  .archive-track figure > div {
    height: 430px;
  }

  .review-sort {
    width: 100%;
  }

  .review-sort button {
    flex: 1;
  }

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

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

  .download-options a {
    justify-content: center;
  }

  .footer-inner ul {
    flex-wrap: wrap;
    justify-content: center;
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
