:root {
  --app-bg: #ece8df;
  --surface: #f8f6f1;
  --surface-strong: #fff;
  --ink: #191816;
  --ink-muted: #777168;
  --line: #ded9cf;
  --accent: #d69224;
  --accent-soft: #fff1d5;
  --danger: #9d2821;
  --dark: #11110f;
  --shell-width: 430px;
  --sans: "Zen Kaku Gothic New", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", sans-serif;
  --serif: "Noto Serif JP", "YuMincho", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--app-bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  touch-action: manipulation;
}

button,
input,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

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

.app-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.32)),
    url("assets/generated/character-reference.png") 10% 50% / 520px auto fixed;
}

.app-body::before {
  position: fixed;
  inset: 0;
  background: rgba(236, 232, 223, 0.9);
  content: "";
  pointer-events: none;
}

.app-shell {
  position: relative;
  width: min(100%, var(--shell-width));
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(30, 28, 24, 0.08), 0 24px 80px rgba(42, 36, 27, 0.2);
  overscroll-behavior-y: contain;
}

.app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  height: calc(58px + env(safe-area-inset-top));
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) 18px 0;
  border-bottom: 1px solid rgba(30, 28, 24, 0.08);
  background: rgba(248, 246, 241, 0.96);
  backdrop-filter: blur(18px);
}

.wordmark {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.app-header__actions {
  display: flex;
  gap: 7px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button img {
  width: 22px;
  height: 22px;
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 4px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
}

.app-main {
  min-height: calc(100dvh - 58px);
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

.app-view {
  display: none;
  min-height: calc(100dvh - 136px);
}

.app-view.is-active {
  display: block;
  animation: view-in 260ms ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.content-tabs {
  display: flex;
  overflow-x: auto;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.content-tabs::-webkit-scrollbar,
.cover-shelf::-webkit-scrollbar,
.filter-chips::-webkit-scrollbar {
  display: none;
}

.content-tab {
  flex: 0 0 auto;
  padding: 13px 11px 11px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.content-tab.is-active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.featured {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--dark);
  color: #f6f1e7;
}

.featured__rail {
  display: grid;
  grid-template-columns: 62px minmax(0, 245px) 62px;
  gap: 9px;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.featured-cover {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #25231f;
  cursor: pointer;
}

.featured-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-cover--main {
  height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.featured-cover--main img {
  object-position: 76% center;
}

.featured-cover--side {
  height: 218px;
  opacity: 0.48;
}

.featured-cover--side:first-child img {
  object-position: 54% center;
}

.featured-cover--side:last-child img {
  object-position: 43% center;
}

.featured-cover__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  background: var(--accent);
  color: #191816;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.featured__meta {
  padding: 20px 22px 0;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.featured h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.4;
}

.featured__meta > p:last-of-type {
  margin: 7px 0 0;
  color: #aaa397;
  font-size: 11px;
}

.featured__actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}

.primary-button,
.save-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  flex: 1;
  background: var(--accent);
  color: #17130d;
}

.primary-button img,
.save-button img {
  width: 18px;
  height: 18px;
}

.save-button {
  background: transparent;
  color: inherit;
}

.featured .save-button {
  border-color: rgba(255, 255, 255, 0.24);
}

.save-button.is-saved {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 15px;
}

.carousel-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.carousel-dots .is-active {
  width: 16px;
  border-radius: 8px;
  background: var(--accent);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.quick-actions button {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
  padding: 6px 3px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.quick-actions button:last-child {
  border-right: 0;
}

.quick-actions img {
  width: 23px;
  height: 23px;
}

.quick-actions span {
  display: grid;
  gap: 2px;
}

.quick-actions strong {
  font-size: 10px;
}

.quick-actions small {
  color: var(--ink-muted);
  font-size: 8px;
}

.catalog-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 16px 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(230, 155, 28, 0.1), transparent 48%),
    var(--surface-strong);
}

.catalog-overview span {
  display: grid;
  gap: 2px;
  padding: 12px 8px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.catalog-overview span:last-child {
  border-right: 0;
}

.catalog-overview strong {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
}

.catalog-overview small {
  color: var(--ink-muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-block {
  padding: 26px 16px 2px;
}

.catalog-section {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.catalog-section--first {
  padding-top: 23px;
}

.catalog-section--last {
  padding-bottom: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading__eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.section-heading > button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 10px;
}

.continue-card {
  display: grid;
  width: 100%;
  grid-template-columns: 88px 1fr 18px;
  gap: 13px;
  align-items: center;
  padding: 0;
  border: 0;
  background: var(--surface-strong);
  box-shadow: 0 7px 24px rgba(45, 37, 25, 0.08);
  cursor: pointer;
  text-align: left;
}

.continue-card > img:first-child {
  width: 88px;
  height: 106px;
  object-fit: cover;
}

.continue-card__body {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding-block: 9px;
}

.continue-card strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continue-card small,
.continue-card em {
  color: var(--ink-muted);
  font-size: 9px;
  font-style: normal;
}

.progress-track {
  display: block;
  height: 3px;
  overflow: hidden;
  background: #e2ddd3;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.continue-card__arrow {
  width: 15px;
  height: 15px;
  margin-right: 8px;
  opacity: 0.5;
}

.cover-shelf {
  display: grid;
  grid-auto-columns: 126px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  margin-inline: -16px;
  padding: 0 16px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.catalog-shelf {
  display: grid;
  grid-auto-columns: 116px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  margin-inline: -16px;
  padding: 0 16px 18px;
  scroll-padding-inline: 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.catalog-shelf::-webkit-scrollbar {
  display: none;
}

.catalog-card {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
}

.catalog-card__cover {
  position: relative;
  overflow: hidden;
  width: 116px;
  height: 162px;
  border: 1px solid rgba(30, 28, 24, 0.1);
  background: var(--dark);
}

.catalog-card__cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card__cover > span {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 4px 6px;
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.catalog-card__cover > span[data-tone="amber"] {
  background: var(--accent);
}

.catalog-card__cover > span[data-tone="dark"] {
  background: var(--dark);
  color: #fff;
}

.catalog-card > strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 34px;
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-card > small {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-card > em {
  color: #a26413;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.cover-item {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
}

.cover-item > img {
  width: 126px;
  height: 177px;
  border: 1px solid rgba(30, 28, 24, 0.09);
  object-fit: cover;
  object-position: center top;
}

.cover-item strong {
  overflow: hidden;
  min-height: 36px;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.5;
}

.cover-item small {
  color: var(--ink-muted);
  font-size: 9px;
}

.rank-number {
  position: absolute;
  z-index: 2;
  top: -7px;
  left: -4px;
  display: grid;
  width: 25px;
  height: 31px;
  place-items: center;
  background: var(--dark);
  color: #fff;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.wait-section {
  padding-bottom: 28px;
}

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

.status-list button {
  display: grid;
  width: 100%;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.status-list > button > img:first-child {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.status-list span {
  display: grid;
  gap: 5px;
}

.status-list strong {
  font-size: 11px;
}

.status-list small {
  color: var(--ink-muted);
  font-size: 9px;
}

.status-list b {
  color: var(--accent);
}

.list-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.45;
}

.free-badge,
.episode-access {
  padding: 5px 7px;
  background: var(--dark);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.page-title {
  padding: 27px 18px 18px;
}

.page-title p {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.page-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
}

.search-field {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 9px;
  margin: 0 18px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.search-field img {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.filter-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 15px 18px 5px;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.filter-chips button {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 10px;
}

.filter-chips .is-active {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.ranking-list {
  padding: 24px 18px;
}

.ranking-row {
  display: grid;
  width: 100%;
  grid-template-columns: 24px 58px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.ranking-row > span:first-child {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.ranking-row > img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  object-position: center top;
}

.ranking-row > span:nth-child(3) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ranking-row strong {
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.5;
}

.ranking-row small {
  color: var(--ink-muted);
  font-size: 9px;
}

.ranking-row em {
  color: var(--accent);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.empty-search {
  margin: 20px;
  color: var(--ink-muted);
  font-size: 12px;
  text-align: center;
}

.detail-view {
  position: relative;
  padding-bottom: 20px;
}

.detail-back {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(248, 246, 241, 0.9);
}

.detail-hero {
  position: relative;
  height: 285px;
  overflow: hidden;
  background: #111;
}

.detail-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  content: "";
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 42%;
  filter: saturate(0.72) contrast(1.04);
}

.detail-summary {
  padding: 22px 18px 16px;
}

.detail-summary h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.4;
}

.detail-summary__meta {
  margin: 10px 0;
  color: var(--ink-muted);
  font-size: 10px;
}

.detail-summary__description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #504b44;
  font-size: 11px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.detail-summary__description.is-expanded {
  display: block;
}

.description-toggle {
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 9px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr auto 44px;
  gap: 8px;
  margin-top: 17px;
}

.detail-actions .save-button {
  border-color: var(--line);
  background: var(--surface-strong);
  font-size: 10px;
}

.detail-actions .icon-button {
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.unlock-banner {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0 18px 18px;
  padding: 13px;
  border: 1px solid #e5c88f;
  background: var(--accent-soft);
}

.unlock-banner > img {
  width: 27px;
  height: 27px;
}

.unlock-banner span {
  display: grid;
}

.unlock-banner strong {
  font-size: 10px;
}

.unlock-banner small {
  color: #a26413;
  font-size: 11px;
  font-weight: 900;
}

.unlock-banner button {
  padding: 8px 10px;
  border: 0;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
}

.detail-tabs,
.library-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid var(--line);
  background: var(--surface-strong);
}

.detail-tabs button,
.library-tabs button {
  padding: 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
}

.detail-tabs .is-active,
.library-tabs .is-active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.detail-panel,
.library-panel {
  display: none;
}

.detail-panel.is-active,
.library-panel.is-active {
  display: block;
}

.episode-list-heading {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  font-size: 10px;
}

.episode-list-heading button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 9px;
}

.episode-list {
  margin: 0;
  padding: 0 18px;
  list-style: none;
}

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

.episode-list a,
.episode-list li > button {
  display: grid;
  width: 100%;
  grid-template-columns: 82px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.episode-list a > img:first-child,
.episode-list li > button > img:first-child {
  width: 82px;
  height: 54px;
  object-fit: cover;
}

.episode-list span {
  display: grid;
  gap: 4px;
}

.episode-list strong {
  font-family: var(--serif);
  font-size: 10px;
}

.episode-list small {
  color: var(--ink-muted);
  font-size: 8px;
}

.episode-access--free {
  background: var(--accent);
  color: var(--ink);
}

.episode-access--ad {
  background: var(--danger);
}

.episode-list__locked {
  opacity: 0.58;
}

.lock-icon {
  width: 19px;
  height: 19px;
}

.about-panel {
  padding: 20px 18px;
}

.about-panel dl {
  margin: 0;
}

.about-panel dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.about-panel dt {
  color: var(--ink-muted);
}

.about-panel dd {
  margin: 0;
  font-weight: 700;
}

.about-panel p {
  margin: 20px 0 0;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.9;
}

.library-tabs {
  margin-bottom: 8px;
}

.library-tabs span {
  color: var(--accent);
}

.library-panel {
  padding: 10px 18px;
}

.library-item {
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.library-item > button:first-child {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 13px;
  padding: 12px 0 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.library-item > button:first-child > img {
  width: 92px;
  height: 132px;
  object-fit: cover;
  object-position: center top;
}

.library-item > button:first-child > span {
  display: grid;
  align-content: center;
  gap: 7px;
}

.library-item strong {
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.55;
}

.library-item small,
.library-item em {
  color: var(--ink-muted);
  font-size: 9px;
  font-style: normal;
}

.history-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.history-item > img {
  width: 82px;
  height: 60px;
  object-fit: cover;
}

.history-item span {
  display: grid;
  gap: 5px;
}

.history-item strong {
  font-size: 10px;
}

.history-item small {
  color: var(--ink-muted);
  font-size: 8px;
}

.history-item a {
  color: #a26413;
  font-size: 9px;
  font-weight: 900;
}

.profile-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0 18px;
  padding: 17px;
  background: var(--dark);
  color: #fff;
}

.profile-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 21px;
}

.profile-card div {
  display: grid;
  gap: 4px;
}

.profile-card strong {
  font-family: var(--serif);
  font-size: 13px;
}

.profile-card small {
  color: #aaa397;
  font-size: 9px;
}

.profile-card button {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 9px;
}

.wallet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 15px 18px 25px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.wallet button {
  display: grid;
  gap: 3px;
  padding: 14px 7px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

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

.wallet small {
  color: var(--ink-muted);
  font-size: 8px;
}

.wallet strong {
  font-family: var(--serif);
  font-size: 18px;
}

.wallet em {
  color: var(--accent);
  font-size: 8px;
  font-style: normal;
}

.profile-menu {
  margin: 0 18px;
  border-top: 1px solid var(--line);
}

.profile-menu button {
  display: grid;
  width: 100%;
  grid-template-columns: 22px 1fr 16px;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.profile-menu img {
  width: 20px;
  height: 20px;
}

.profile-menu img:last-child {
  width: 15px;
  height: 15px;
  opacity: 0.4;
}

.profile-menu span {
  font-size: 11px;
}

.profile-note {
  margin: 30px 18px;
  color: #aaa49b;
  font-size: 8px;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  z-index: 60;
  bottom: 0;
  left: 50%;
  display: grid;
  width: min(100%, var(--shell-width));
  height: calc(70px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr);
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  padding: 7px 2px 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-muted);
}

.bottom-nav button::before {
  position: absolute;
  top: 0;
  width: 32px;
  height: 3px;
  background: transparent;
  content: "";
}

.bottom-nav img {
  width: 23px;
  height: 23px;
  opacity: 0.64;
}

.bottom-nav span {
  font-size: 9px;
  font-weight: 700;
}

.bottom-nav .is-active {
  color: #a26413;
}

.bottom-nav .is-active::before {
  background: var(--accent);
}

.bottom-nav .is-active img {
  opacity: 1;
  filter: sepia(1) saturate(4) hue-rotate(351deg) brightness(0.74);
}

.bottom-nav button:focus-visible {
  outline-offset: -3px;
}

.unlock-dialog {
  width: min(calc(100% - 28px), 400px);
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.unlock-dialog::backdrop {
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(4px);
}

.unlock-dialog form {
  position: relative;
  padding: 27px 20px 21px;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 9px;
}

.unlock-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
}

.unlock-dialog__lead {
  margin: 8px 0 19px;
  color: var(--ink-muted);
  font-size: 10px;
}

.unlock-option {
  display: grid;
  width: 100%;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  cursor: pointer;
  text-align: left;
}

.unlock-option > img:first-child {
  width: 25px;
  height: 25px;
}

.unlock-option > img:last-child {
  width: 16px;
  height: 16px;
}

.unlock-option span {
  display: grid;
  gap: 3px;
}

.unlock-option strong {
  font-size: 11px;
}

.unlock-option small {
  color: var(--ink-muted);
  font-size: 8px;
}

.unlock-option--accent {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.unlock-option em {
  padding: 4px 6px;
  background: var(--accent);
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

.unlock-dialog__note {
  margin: 15px 0 0;
  color: var(--ink-muted);
  font-size: 8px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: 88px;
  left: 50%;
  max-width: calc(100% - 48px);
  padding: 11px 16px;
  transform: translate(-50%, 20px);
  background: var(--dark);
  color: #fff;
  opacity: 0;
  font-size: 10px;
  pointer-events: none;
  transition: 220ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 430px) {
  .app-body {
    background: var(--surface);
  }

  .app-body::before {
    display: none;
  }

  .app-shell {
    box-shadow: none;
  }
}

@media (max-width: 359px) {
  .app-header {
    padding-inline: 13px;
  }

  .wordmark {
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .app-header__actions {
    gap: 2px;
  }

  .featured__rail {
    grid-template-columns: 48px minmax(0, 216px) 48px;
    gap: 6px;
  }

  .featured-cover--main {
    height: 250px;
  }

  .featured-cover--side {
    height: 196px;
  }

  .featured__meta {
    padding-inline: 17px;
  }

  .featured h1 {
    font-size: 23px;
  }

  .quick-actions {
    padding-inline: 4px;
  }

  .quick-actions strong {
    font-size: 9px;
  }

  .bottom-nav span {
    font-size: 8px;
  }
}

/* SWIPECOMIC storefront — full-bleed Webtoon hero */
:root {
  --accent: #f02642;
  --accent-blue: #236cff;
  --accent-soft: #fff0f2;
}

.wordmark {
  position: relative;
}

.wordmark::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 3px;
  background: linear-gradient(108deg, var(--accent) 0 47%, #fff 48% 52%, var(--accent-blue) 53%);
  content: "";
  transform: scaleX(0.34);
  transform-origin: left;
}

.content-tab.is-active {
  border-bottom-color: transparent;
  background-image: linear-gradient(90deg, var(--accent), var(--accent-blue));
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: calc(100% - 18px) 3px;
  color: #111;
}

.featured {
  position: relative;
  display: block;
  min-height: 336px;
  overflow: hidden;
  background: #090b12;
  color: #fff;
  isolation: isolate;
}

.featured__rail {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.featured-cover--main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-cover--main::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.04) 12%, rgba(5, 7, 13, 0.18) 45%, rgba(5, 7, 13, 0.96) 100%),
    linear-gradient(90deg, rgba(5, 7, 13, 0.32), transparent 66%);
  content: "";
}

.featured-cover--main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
  filter: saturate(0.9) contrast(1.06);
  transform: scale(1.025);
}

.featured-cover__badge {
  top: 13px;
  left: 12px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(5, 7, 13, 0.58);
  color: #fff;
  font-size: 7px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.featured__meta {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 14px 16px;
  pointer-events: none;
}

.featured__choice-mark {
  position: absolute;
  top: 14px;
  right: 12px;
  display: grid;
  grid-template-columns: 1fr 10px 1fr;
  align-items: center;
  min-height: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(4, 6, 12, 0.62);
  font-family: var(--sans);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.featured__choice-mark b {
  padding-inline: 7px;
  font-weight: 900;
}

.featured__choice-mark b:first-child {
  color: #ff5268;
}

.featured__choice-mark b:last-child {
  color: #68a0ff;
}

.featured__choice-mark i {
  width: 2px;
  height: 34px;
  justify-self: center;
  background: #fff;
  transform: rotate(20deg);
}

.featured .eyebrow {
  margin: 0 0 5px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px #000;
}

.featured h1 {
  max-width: 12em;
  margin: 0;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.32;
  text-shadow: 0 3px 18px #000;
}

.featured__meta > p:last-of-type {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.4;
}

.featured__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 7px;
  width: min(100%, 330px);
  margin-top: 13px;
  pointer-events: auto;
}

.featured .primary-button,
.featured .save-button {
  min-height: 42px;
  border: 0;
  font-size: 10px;
  font-weight: 900;
}

.featured .primary-button {
  background: var(--accent);
  color: #fff;
}

.featured .primary-button img {
  filter: brightness(0) invert(1);
}

.featured .save-button {
  background: rgba(5, 7, 13, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(8px);
}

.featured .save-button img {
  filter: brightness(0) invert(1);
}

.quick-actions {
  border-bottom: 8px solid #f3f3f3;
}

.catalog-section--first {
  padding-top: 14px;
}

.catalog-card__cover > span[data-tone="amber"],
.free-badge {
  background: var(--accent);
  color: #fff;
}

.bottom-nav .is-active {
  color: var(--accent);
}

.bottom-nav .is-active::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
}

.app-view[data-view="home"].is-active .featured-cover--main img {
  animation: storefrontHeroReveal 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.app-view[data-view="home"].is-active .featured__meta > * {
  animation: storefrontCopyReveal 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.app-view[data-view="home"].is-active .featured__meta > :nth-child(2) {
  animation-delay: 80ms;
}

.app-view[data-view="home"].is-active .featured__meta > :nth-child(3) {
  animation-delay: 140ms;
}

.app-view[data-view="home"].is-active .featured__meta > :nth-child(4) {
  animation-delay: 200ms;
}

.app-view[data-view="home"].is-active .featured__meta > :nth-child(5) {
  animation-delay: 260ms;
}

@keyframes storefrontHeroReveal {
  from {
    opacity: 0.62;
    transform: scale(1.09);
  }
  to {
    opacity: 1;
    transform: scale(1.025);
  }
}

@keyframes storefrontCopyReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 359px) {
  .featured,
  .featured__rail,
  .featured-cover--main {
    min-height: 310px;
    height: 310px;
  }

  .featured h1 {
    font-size: 22px;
  }
}

/* Home information architecture: hero → access → trending → updates → continue. */
.app-view[data-view="home"].is-active {
  display: flex;
  flex-direction: column;
}

.app-view[data-view="home"] > * {
  order: 10;
}

.app-view[data-view="home"] > .featured {
  order: 1;
}

.app-view[data-view="home"] > .quick-actions {
  order: 2;
}

.app-view[data-view="home"] > .trending-section {
  order: 3;
  padding-top: 15px;
  padding-bottom: 2px;
  border-bottom: 8px solid #f3f3f3;
}

.app-view[data-view="home"] > .catalog-section--first {
  order: 4;
}

.app-view[data-view="home"] > .continue-section {
  order: 5;
  padding-bottom: 16px;
  border-bottom: 8px solid #f3f3f3;
}

.trending-section .cover-shelf {
  grid-auto-columns: 92px;
}

.trending-section .cover-item > img {
  width: 92px;
  height: 126px;
}

.trending-section .rank-number {
  width: 24px;
  height: 30px;
  background: #111;
  color: #fff;
  font-size: 15px;
}

.trending-section .cover-item:first-child .rank-number {
  background: linear-gradient(145deg, var(--accent), var(--accent-blue));
}

@media (prefers-reduced-motion: reduce) {
  .app-view[data-view="home"].is-active .featured-cover--main img,
  .app-view[data-view="home"].is-active .featured__meta > * {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-view.is-active {
    animation: none;
  }

  .toast {
    transition: none;
  }
}

/* Dense mobile Webtoon storefront */
:root {
  --app-bg: #ececec;
  --surface: #fff;
  --surface-strong: #fff;
  --ink: #111;
  --ink-muted: #6f6f6f;
  --line: #ececec;
  --accent: #ffd400;
  --accent-soft: #fff8c7;
  --serif: var(--sans);
}

.app-body {
  background: var(--app-bg);
}

.app-body::before {
  display: none;
}

.app-shell {
  background: var(--surface);
}

.app-header {
  height: calc(52px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.wordmark {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.035em;
}

.app-header__actions {
  gap: 2px;
}

.content-tabs {
  min-height: 41px;
  padding: 0 8px;
  background: #fff;
}

.content-tab {
  padding: 11px 10px 8px;
  border-bottom-width: 3px;
  font-size: 11px;
  font-weight: 800;
}

.featured {
  display: grid;
  min-height: 218px;
  grid-template-columns: 42% 58%;
  padding: 0;
  background: #111;
}

.featured__rail {
  display: block;
  width: 100%;
  height: 218px;
  overflow: hidden;
}

.featured-cover--side {
  display: none;
}

.featured-cover--main {
  width: 100%;
  height: 218px;
  border: 0;
  box-shadow: none;
}

.featured-cover--main img {
  object-position: 68% center;
}

.featured__meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 15px 14px 12px;
}

.featured .eyebrow {
  margin-bottom: 5px;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.featured h1 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.4;
}

.featured__meta > p:last-of-type {
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.5;
}

.featured__actions {
  gap: 6px;
  margin-top: auto;
}

.featured .primary-button,
.featured .save-button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 10px;
}

.featured .save-button {
  flex: 0 0 42px;
  padding: 0;
  font-size: 0;
}

.featured .save-button img {
  width: 17px;
  height: 17px;
}

.carousel-dots {
  display: none;
}

.quick-actions {
  padding: 8px 4px;
}

.quick-actions button {
  min-height: 54px;
  gap: 2px;
  padding: 3px 2px;
}

.quick-actions img {
  width: 20px;
  height: 20px;
}

.quick-actions strong {
  font-size: 9px;
}

.quick-actions small {
  font-size: 7px;
}

.catalog-overview {
  display: none;
}

.section-block {
  padding: 16px 12px 0;
}

.catalog-section,
.catalog-section--first,
.catalog-section--last {
  padding-top: 16px;
  padding-bottom: 0;
}

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

.section-heading__eyebrow {
  display: none;
}

.section-heading h2 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-heading > button {
  font-size: 9px;
}

.update-days {
  display: flex;
  gap: 0;
  overflow-x: auto;
  margin: 0 -12px 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.update-days::-webkit-scrollbar {
  display: none;
}

.update-days button {
  flex: 0 0 auto;
  min-width: 38px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.update-days button.is-active {
  border-bottom-color: var(--ink);
  color: var(--ink);
  font-weight: 900;
}

.catalog-shelf {
  display: grid;
  grid-auto-columns: calc((100% - 16px) / 3);
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  column-gap: 8px;
  row-gap: 14px;
  margin-inline: 0;
  padding: 0 0 14px;
  scroll-snap-type: x mandatory;
}

.catalog-card {
  gap: 4px;
}

.catalog-card__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 7;
}

.catalog-card__cover > span {
  top: 5px;
  left: 5px;
  padding: 3px 5px;
  font-size: 6px;
}

.catalog-card > strong {
  min-height: 29px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
}

.catalog-card > small {
  font-size: 7px;
}

.catalog-card > em {
  font-size: 7px;
}

.continue-section {
  padding-top: 15px;
}

.continue-card {
  grid-template-columns: 72px 1fr 16px;
  gap: 10px;
  border: 1px solid var(--line);
  box-shadow: none;
}

.continue-card > img:first-child {
  width: 72px;
  height: 82px;
}

.continue-card strong {
  font-family: var(--sans);
  font-size: 10px;
}

.continue-card small,
.continue-card em {
  font-size: 8px;
}

.cover-shelf {
  grid-auto-columns: 82px;
  gap: 8px;
  margin-inline: -12px;
  padding: 4px 12px 12px;
}

.cover-item {
  gap: 3px;
}

.cover-item > img {
  width: 82px;
  height: 112px;
}

.cover-item strong {
  min-height: 28px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
}

.cover-item small {
  font-size: 7px;
}

.rank-number {
  top: -4px;
  left: -2px;
  width: 20px;
  height: 25px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 900;
}

.wait-section {
  padding-bottom: 16px;
}

.status-list button {
  grid-template-columns: 52px 1fr auto;
  gap: 9px;
  padding: 9px 0;
}

.status-list > button > img:first-child {
  width: 52px;
  height: 52px;
}

.bottom-nav {
  height: calc(58px + env(safe-area-inset-bottom));
}

.bottom-nav button {
  gap: 2px;
  padding-top: 5px;
}

.bottom-nav button::before {
  width: 26px;
  height: 2px;
}

.bottom-nav img {
  width: 20px;
  height: 20px;
}

.bottom-nav span {
  font-size: 8px;
}

.bottom-nav .is-active {
  color: #8a7200;
}

.app-main {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

@media (max-width: 359px) {
  .featured {
    min-height: 204px;
    grid-template-columns: 40% 60%;
  }

  .featured__rail,
  .featured-cover--main {
    height: 204px;
  }

  .featured__meta {
    padding: 12px 11px 10px;
  }

  .featured h1 {
    font-size: 15px;
  }

  .featured .primary-button,
  .featured .save-button {
    min-height: 36px;
  }

  .section-block,
  .catalog-section,
  .catalog-section--first,
  .catalog-section--last {
    padding-inline: 10px;
  }

  .update-days {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .cover-shelf {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .content-tab {
    padding-inline: 8px;
    font-size: 10px;
  }
}

/* Final storefront overrides: keep after dense-layout rules. */
:root {
  --accent: #f02642;
  --accent-blue: #236cff;
  --accent-soft: #fff0f2;
}

.content-tab.is-active {
  border-bottom-color: transparent;
  background-image: linear-gradient(90deg, var(--accent), var(--accent-blue));
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: calc(100% - 18px) 3px;
}

.featured {
  position: relative;
  display: block;
  min-height: 336px;
  overflow: hidden;
  background: #090b12;
  color: #fff;
  isolation: isolate;
}

.featured__rail {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.featured-cover--main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-cover--main::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.04) 12%, rgba(5, 7, 13, 0.18) 45%, rgba(5, 7, 13, 0.96) 100%),
    linear-gradient(90deg, rgba(5, 7, 13, 0.32), transparent 66%);
  content: "";
}

.featured-cover--main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
  filter: saturate(0.9) contrast(1.06);
  transform: scale(1.025);
}

.featured-cover__badge {
  top: 13px;
  left: 12px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(5, 7, 13, 0.58);
  color: #fff;
  font-size: 7px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.featured__meta {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 14px 16px;
  pointer-events: none;
}

.featured .eyebrow {
  margin: 0 0 5px;
  color: #fff;
  font-size: 8px;
  text-shadow: 0 2px 10px #000;
}

.featured h1 {
  max-width: 12em;
  margin: 0;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.32;
  text-shadow: 0 3px 18px #000;
}

.featured__meta > p:last-of-type {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
}

.featured__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 7px;
  width: min(100%, 330px);
  margin-top: 13px;
  pointer-events: auto;
}

.featured .primary-button,
.featured .save-button {
  min-height: 42px;
  border: 0;
  font-size: 10px;
  font-weight: 900;
}

.featured .primary-button {
  background: var(--accent);
  color: #fff;
}

.featured .primary-button img,
.featured .save-button img {
  filter: brightness(0) invert(1);
}

.featured .save-button {
  background: rgba(5, 7, 13, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(8px);
}

.quick-actions {
  border-bottom: 8px solid #f3f3f3;
}

.catalog-section--first {
  padding-top: 14px;
}

.catalog-card__cover > span[data-tone="amber"],
.free-badge {
  background: var(--accent);
  color: #fff;
}

.bottom-nav .is-active {
  color: var(--accent);
}

.bottom-nav .is-active::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
}

@media (max-width: 359px) {
  .featured,
  .featured__rail,
  .featured-cover--main {
    min-height: 310px;
    height: 310px;
  }

  .featured h1 {
    font-size: 22px;
  }
}
