: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;
  }
}

/* Lineup-first home: the first screen is a catalog, not a campaign landing page. */
.home-categories {
  position: sticky;
  z-index: 12;
  top: 51px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 9px 12px 8px;
  border-bottom: 1px solid #e8e8e8;
  background: rgba(255, 255, 255, 0.96);
  scrollbar-width: none;
  backdrop-filter: blur(14px);
}

.home-categories::-webkit-scrollbar {
  display: none;
}

.home-categories a {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: #656565;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.home-categories a.is-active {
  background: #111;
  color: #fff;
}

.app-view[data-view="home"] > .catalog-section--first {
  margin: 0;
  padding: 16px 12px 20px;
  border-top: 0;
}

.app-view[data-view="home"] > .catalog-section--first .section-heading {
  margin-bottom: 8px;
}

.app-view[data-view="home"] > .catalog-section--first .section-heading__eyebrow {
  color: var(--accent);
}

.app-view[data-view="home"] > .catalog-section--first .catalog-shelf {
  padding-bottom: 0;
}

.app-view[data-view="home"] > .catalog-section--first .catalog-card__cover {
  box-shadow: 0 7px 18px rgba(15, 18, 26, 0.13);
}

.app-view[data-view="home"] .catalog-card > em {
  display: none;
}

@media (max-width: 359px) {
  .home-categories {
    top: 51px;
    padding-inline: 10px;
  }

  .app-view[data-view="home"] > .catalog-section--first {
    padding-inline: 10px;
  }
}

/* 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;
  }
}

/* 2026-08 mobile commerce + generated brand pass */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  letter-spacing: -0.055em;
}

.wordmark::after {
  display: none;
}

.wordmark > img {
  width: 31px;
  height: 31px;
  border-radius: 7px;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.18);
}

.wordmark > span {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.wordmark > span em {
  color: #1766e8;
  font-style: normal;
}

.wordmark > span::first-line {
  color: #ea1739;
}

.ticket-balance {
  display: inline-flex;
  min-width: 49px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
  border: 1px solid #dedede;
  border-radius: 99px;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.ticket-balance img {
  width: 17px;
  height: 17px;
}

.ticket-balance strong {
  font-size: 11px;
}

.promo-carousel {
  cursor: grab;
  scroll-snap-stop: always;
  touch-action: pan-y;
  user-select: none;
}

.promo-carousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.promo-slide > img {
  pointer-events: none;
}

.promo-slide--noir > img { object-position: 50% 19%; }
.promo-slide--royal > img { object-position: 50% 18%; }
.promo-slide--romance > img { object-position: 50% 24%; }

.promo-nav {
  position: absolute;
  z-index: 4;
  top: 77px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  cursor: pointer;
  font-family: sans-serif;
  font-size: 24px;
  line-height: 1;
  backdrop-filter: blur(5px);
}

.promo-nav--prev { left: 18px; }
.promo-nav--next { right: 18px; }

.promo-pagination > button {
  min-width: 24px;
  min-height: 18px;
  background-clip: content-box;
  padding-block: 7px;
}

.app-view[data-view="home"] > .promo-stage { order: 1; }
.app-view[data-view="home"] > .home-categories { order: 2; }
.app-view[data-view="home"] > .catalog-section--first { order: 3; }
.app-view[data-view="home"] > .trending-section { order: 4; }
.app-view[data-view="home"] > .campaign-section { order: 5; }
.app-view[data-view="home"] > #lineup-romance { order: 6; }
.app-view[data-view="home"] > #lineup-revenge { order: 7; }
.app-view[data-view="home"] > #lineup-fantasy { order: 8; }
.app-view[data-view="home"] > #lineup-thriller { order: 9; }
.app-view[data-view="home"] > #lineup-new { order: 10; }
.app-view[data-view="home"] > .continue-section { order: 11; }

.catalog-card__cover > .catalog-card__logo {
  min-height: 22px;
  padding: 3px 2px 2px 26px;
}

.catalog-card__logo::before {
  position: absolute;
  bottom: 1px;
  left: 1px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background-image: url("assets/brand/genre-marks-v1.webp");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  content: "";
}

.catalog-card__logo[data-logo-style="noir"]::before { background-position: 0 0; }
.catalog-card__logo[data-logo-style="romance"]::before { background-position: 50% 0; }
.catalog-card__logo[data-logo-style="royal"]::before { background-position: 100% 0; }
.catalog-card__logo[data-logo-style="thriller"]::before { background-position: 0 100%; }
.catalog-card__logo[data-logo-style="youth"]::before { background-position: 50% 100%; }
.catalog-card__logo[data-logo-style="horror"]::before { background-position: 100% 100%; }

.catalog-card__logo[data-logo-style="noir"],
.catalog-card__logo[data-logo-style="royal"],
.catalog-card__logo[data-logo-style="thriller"],
.catalog-card__logo[data-logo-style="horror"] {
  padding-left: 27px;
}

.catalog-card__logo[data-logo-style="romance"],
.catalog-card__logo[data-logo-style="royal"] {
  text-align: left;
}

.catalog-card__access {
  margin-top: 2px;
  color: #e31a3b;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.episode-access--free {
  color: #fff;
}

.ticket-dialog,
.experience-dialog {
  width: min(calc(100% - 24px), 410px);
  max-height: min(88dvh, 680px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 18px 18px 4px 4px;
  background: #fff;
  color: #111;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.ticket-dialog::backdrop,
.experience-dialog::backdrop {
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(5px);
}

.ticket-dialog form {
  position: relative;
  padding: 26px 18px calc(18px + env(safe-area-inset-bottom));
}

.ticket-dialog h2 {
  margin: 1px 0 4px;
  font-family: "Noto Serif JP", serif;
  font-size: 23px;
}

.ticket-dialog__balance {
  margin: 0 0 17px;
  color: #777;
  font-size: 10px;
}

.ticket-dialog__balance strong {
  color: #111;
  font-size: 17px;
}

.ticket-actions {
  display: grid;
  gap: 8px;
}

.ticket-actions > button {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
}

.ticket-actions > button:first-child {
  border-color: #ffc3cc;
  background: #fff4f6;
}

.ticket-actions > button:disabled {
  opacity: 0.5;
  cursor: default;
}

.ticket-actions__icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 16px;
}

.ticket-actions > button > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.ticket-actions strong { font-size: 11px; }
.ticket-actions small { color: #777; font-size: 8px; }
.ticket-actions em { color: #e5193e; font-size: 10px; font-style: normal; font-weight: 900; }

.ticket-dialog h3 {
  margin: 20px 0 9px;
  font-size: 11px;
}

.ticket-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.ticket-packages button {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 15px 4px 11px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.ticket-packages button:nth-child(2) { border-color: #e5193e; }
.ticket-packages span { font-size: 12px; font-weight: 900; }
.ticket-packages strong { font-size: 9px; }
.ticket-packages em {
  position: absolute;
  top: -7px;
  left: 50%;
  padding: 2px 7px;
  border-radius: 99px;
  background: #e5193e;
  color: #fff;
  font-size: 7px;
  font-style: normal;
  transform: translateX(-50%);
}

.purchase-confirm {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
  padding: 11px;
  border-radius: 9px;
  background: #111;
  color: #fff;
}

.purchase-confirm[hidden] { display: none; }
.purchase-confirm p { display: grid; gap: 2px; margin: 0; }
.purchase-confirm strong { font-size: 9px; }
.purchase-confirm small { color: #aaa; font-size: 7px; }
.purchase-confirm button {
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(120deg, #ef163d, #1f69ef);
  color: #fff;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
}

.experience-dialog {
  overflow: hidden;
  border-radius: 15px;
  background: #090b10;
  color: #fff;
}

.experience-dialog > div {
  display: grid;
  min-height: 310px;
  place-items: center;
  align-content: center;
  padding: 34px 24px;
  background:
    radial-gradient(circle at 25% 20%, rgba(235, 25, 59, 0.35), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(28, 103, 238, 0.38), transparent 36%);
  text-align: center;
}

.experience-dialog__icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  animation: experience-pulse 1.1s ease-in-out infinite alternate;
}

.experience-dialog h2 { margin: 4px 0 8px; font-family: "Noto Serif JP", serif; font-size: 22px; }
.experience-dialog p:not(.eyebrow) { max-width: 250px; margin: 0; color: #aeb4c2; font-size: 10px; line-height: 1.7; }
.experience-progress { width: min(100%, 260px); height: 5px; margin-top: 24px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.15); }
.experience-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #ef163d, #1f69ef); }
.experience-dialog > div > strong { margin-top: 10px; color: #fff; font-size: 11px; }

@keyframes experience-pulse {
  from { box-shadow: 0 0 0 0 rgba(239, 22, 61, 0.28); transform: scale(0.96); }
  to { box-shadow: 0 0 0 14px rgba(31, 105, 239, 0); transform: scale(1.03); }
}

@media (max-width: 359px) {
  .app-header { padding-inline: 12px; }
  .wordmark { gap: 6px; }
  .wordmark > img { width: 28px; height: 28px; }
  .wordmark > span { font-size: 14px; }
  .ticket-balance { min-width: 43px; padding-inline: 6px; }
  .promo-nav { width: 32px; height: 32px; top: 70px; }
  .ticket-dialog form { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .experience-dialog__icon { animation: none; }
  .promo-carousel { scroll-behavior: auto; }
}

@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;
  }
}

/* Cover title-logo system: each dummy work reads as a distinct publication. */
.catalog-card__cover::after {
  position: absolute;
  z-index: 2;
  inset: 38% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  content: "";
  pointer-events: none;
}

.catalog-card__cover > span:not(.catalog-card__logo) {
  z-index: 5;
}

.catalog-card__cover > .catalog-card__logo {
  position: absolute;
  z-index: 4;
  right: 7px;
  bottom: 8px;
  left: 7px;
  display: -webkit-box;
  overflow: hidden;
  max-height: 4.2em;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.25;
  text-align: left;
  text-shadow: 0 2px 6px #000, 0 0 2px #000;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalog-card__logo[data-logo-style="noir"] {
  padding-left: 6px;
  border-left: 3px solid #ef2945;
  font-family: "Noto Serif JP", serif;
  font-size: 12px;
}

.catalog-card__logo[data-logo-style="romance"] {
  color: #fff2f6;
  font-family: "Noto Serif JP", serif;
  font-style: italic;
  text-align: center;
  text-shadow: 0 2px 5px #771835, 0 0 8px #ff5b9c;
}

.catalog-card__logo[data-logo-style="royal"] {
  padding-block: 4px;
  border-block: 1px solid rgba(255, 220, 133, 0.8);
  color: #ffe6a4;
  font-family: "Noto Serif JP", serif;
  letter-spacing: -0.03em;
  text-align: center;
}

.catalog-card__logo[data-logo-style="thriller"] {
  right: 5px;
  bottom: 6px;
  left: 5px;
  padding: 4px 5px;
  background: rgba(180, 0, 26, 0.88);
  font-size: 10px;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 2px #000;
  transform: rotate(-1.5deg);
}

.catalog-card__logo[data-logo-style="youth"] {
  color: #eaf5ff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 0 #164d95, 0 2px 6px #000;
}

.catalog-card__logo[data-logo-style="horror"] {
  right: 5px;
  bottom: 7px;
  left: auto;
  max-width: 4.4em;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.64);
  color: #e8e8e8;
  font-family: "Noto Serif JP", serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: right;
}

.cover-item {
  position: relative;
}

.cover-item__logo {
  position: absolute;
  z-index: 3;
  top: 72px;
  right: 5px;
  left: 5px;
  display: -webkit-box;
  overflow: hidden;
  max-height: 3.5em;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  text-shadow: 0 2px 5px #000, 0 0 2px #000;
  pointer-events: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cover-item__logo[data-logo-style="thriller"] {
  padding: 3px;
  background: rgba(176, 0, 28, 0.82);
  transform: rotate(-2deg);
}

.cover-item__logo[data-logo-style="royal"] {
  color: #ffe29a;
  text-align: center;
}

.cover-item__logo[data-logo-style="youth"] {
  color: #eaf5ff;
  text-shadow: 2px 2px 0 #144b91, 0 2px 5px #000;
}

/* 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;
  }
}

/* Final home order: compact campaign carousel, then discovery shelves. */
.app-view[data-view="home"] > .promo-stage {
  order: 1;
}

.app-view[data-view="home"] > .home-categories {
  order: 2;
}

.app-view[data-view="home"] > .catalog-section--first {
  order: 3;
}

.app-view[data-view="home"] > .trending-section {
  order: 4;
}

.app-view[data-view="home"] > .campaign-section {
  order: 5;
}

.app-view[data-view="home"] > .continue-section {
  order: 6;
}

/* Compact promo carousel: campaign information without displacing the catalog. */
.promo-stage {
  position: relative;
  padding: 10px 0 7px;
  overflow: hidden;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.promo-carousel {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 12px;
  scroll-behavior: smooth;
  scroll-padding-left: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}

.promo-carousel::-webkit-scrollbar,
.campaign-rail::-webkit-scrollbar {
  display: none;
}

.promo-slide {
  position: relative;
  flex: 0 0 calc(100% - 34px);
  height: 164px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: #111;
  color: #fff;
  cursor: pointer;
  isolation: isolate;
  scroll-snap-align: start;
  text-align: left;
}

.promo-slide > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-slide--noir > img {
  object-position: 58% 34%;
}

.promo-slide--royal > img {
  object-position: 50% 24%;
}

.promo-slide--romance > img {
  object-position: 60% 30%;
}

.promo-slide__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.92), rgba(5, 7, 12, 0.48) 52%, rgba(5, 7, 12, 0.08)),
    linear-gradient(180deg, transparent 38%, rgba(5, 7, 12, 0.72));
}

.promo-slide--royal .promo-slide__shade {
  background: linear-gradient(90deg, rgba(32, 17, 39, 0.92), rgba(32, 17, 39, 0.5) 55%, rgba(32, 17, 39, 0.06));
}

.promo-slide--romance .promo-slide__shade {
  background: linear-gradient(90deg, rgba(43, 12, 25, 0.9), rgba(43, 12, 25, 0.46) 56%, rgba(43, 12, 25, 0.06));
}

.promo-slide__tag {
  position: absolute;
  top: 11px;
  left: 12px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.promo-slide__copy {
  position: absolute;
  bottom: 13px;
  left: 13px;
  display: grid;
  max-width: 64%;
  gap: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.86);
}

.promo-slide__copy small {
  color: #ff3553;
  font-size: 8px;
  font-weight: 900;
}

.promo-slide--royal .promo-slide__copy small {
  color: #ffdf8a;
}

.promo-slide--romance .promo-slide__copy small {
  color: #ff9fbb;
}

.promo-slide__copy strong {
  font-family: "Noto Serif JP", serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.24;
}

.promo-slide__copy em {
  color: rgba(255, 255, 255, 0.76);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.promo-slide__arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  font-size: 13px;
}

.promo-slide:active > img {
  transform: scale(1.025);
}

.promo-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding-top: 6px;
}

.promo-pagination > button {
  width: 16px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #d2d2d2;
}

.promo-pagination > button.is-active {
  width: 28px;
  background: linear-gradient(90deg, #f02642, #236cff);
}

.promo-pagination > span {
  margin-left: 5px;
  color: #777;
  font-size: 8px;
  font-weight: 800;
}

/* Campaign banner inventory for future editorial programming. */
.campaign-section {
  padding-bottom: 18px;
  border-bottom: 8px solid #f3f3f3;
}

.campaign-rail {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin-inline: -12px;
  padding: 0 12px 2px;
  scroll-padding-left: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.campaign-banner {
  position: relative;
  display: grid;
  min-width: 238px;
  min-height: 92px;
  align-content: center;
  gap: 3px;
  overflow: hidden;
  padding: 13px 15px;
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
}

.campaign-banner::after {
  position: absolute;
  right: -24px;
  bottom: -48px;
  width: 126px;
  height: 126px;
  border: 18px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.campaign-banner--choice {
  background: linear-gradient(115deg, #b30628 0 48%, #12151d 49% 55%, #124cbd 56%);
}

.campaign-banner--complete {
  background: linear-gradient(135deg, #151515, #5d4526);
}

.campaign-banner--new {
  background: linear-gradient(135deg, #244f42, #111a25);
}

.campaign-banner small {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.campaign-banner strong {
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  line-height: 1.35;
}

.campaign-banner span {
  font-size: 8px;
  font-weight: 800;
  opacity: 0.74;
}

/* Face-safe cover typography: every title lives in the lower cover zone. */
.catalog-card__cover {
  border-bottom: 3px solid var(--cover-accent, #222);
  background: #161616;
}

.catalog-card__cover::after {
  z-index: 1;
  background: linear-gradient(180deg, transparent 48%, rgba(5, 6, 10, 0.22) 64%, rgba(5, 6, 10, 0.94) 100%);
}

.catalog-card__cover[data-cover-style="noir"] { --cover-accent: #e2253f; }
.catalog-card__cover[data-cover-style="romance"] { --cover-accent: #ef7e9f; }
.catalog-card__cover[data-cover-style="royal"] { --cover-accent: #c99b39; }
.catalog-card__cover[data-cover-style="thriller"] { --cover-accent: #a80020; }
.catalog-card__cover[data-cover-style="youth"] { --cover-accent: #2d83dd; }
.catalog-card__cover[data-cover-style="horror"] { --cover-accent: #70757d; }

.catalog-card__cover > .catalog-card__logo {
  z-index: 3;
  top: auto;
  right: 7px;
  bottom: 7px;
  left: 7px;
  display: -webkit-box;
  width: auto;
  max-width: none;
  max-height: 2.7em;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.3;
  text-align: left;
  text-shadow: 0 2px 6px #000;
  transform: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-card__logo[data-logo-style="noir"] {
  padding-left: 5px;
  border-left: 3px solid #ef2b46;
  font-family: "Noto Serif JP", serif;
}

.catalog-card__logo[data-logo-style="romance"] {
  color: #ffe8ef;
  font-family: "Noto Serif JP", serif;
  font-style: italic;
  text-align: center;
}

.catalog-card__logo[data-logo-style="royal"] {
  padding-block: 3px;
  border-block: 1px solid rgba(255, 221, 137, 0.82);
  color: #ffe7a8;
  font-family: "Noto Serif JP", serif;
  text-align: center;
}

.catalog-card__logo[data-logo-style="thriller"] {
  padding: 3px 5px;
  background: rgba(158, 0, 27, 0.88);
  letter-spacing: -0.055em;
  transform: none;
}

.catalog-card__logo[data-logo-style="youth"] {
  color: #eef7ff;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #15539a, 0 2px 6px #000;
}

.catalog-card__logo[data-logo-style="horror"] {
  padding: 3px 4px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(0, 0, 0, 0.46);
  color: #ededed;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.04em;
  text-align: right;
}

.cover-item__logo {
  top: 91px;
  max-height: 2.7em;
  padding: 3px 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
  font-size: 8px;
  -webkit-line-clamp: 2;
}

@media (max-width: 359px) {
  .promo-slide {
    flex-basis: calc(100% - 26px);
    height: 150px;
  }

  .promo-slide__copy strong {
    font-size: 17px;
  }

  .campaign-banner {
    min-width: 214px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-carousel {
    scroll-behavior: auto;
  }

  .promo-slide > img,
  .promo-pagination > button {
    transition: none;
  }
}

/* Title typography, guided section travel, and progressive media loading. */
html {
  scroll-padding-top: 112px;
}

#lineup-recommended,
#lineup-ranking,
#lineup-romance,
#lineup-revenge,
#lineup-fantasy,
#lineup-thriller,
#lineup-new {
  scroll-margin-top: 112px;
}

.catalog-card__logo::before {
  display: none !important;
  content: none !important;
}

.catalog-card__cover > .catalog-card__logo,
.cover-item__logo {
  display: grid;
  overflow: visible;
  max-height: none;
  align-content: end;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: var(--title-logo-size, 10px);
  font-style: normal;
  line-height: 1.02;
  text-align: left;
  text-shadow: 0 2px 7px #000, 0 0 2px #000;
  transform: none;
  -webkit-line-clamp: unset;
}

.catalog-card__cover > .catalog-card__logo {
  right: 6px;
  bottom: 6px;
  left: 6px;
  min-height: 0;
}

.title-logo__line {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

.title-logo__line b {
  font: inherit;
}

.catalog-card__logo::after,
.cover-item__logo::after {
  display: block;
  order: 3;
  margin-top: 3px;
  color: var(--logo-accent, #f12745);
  content: attr(data-mark);
  font-family: "Arial Narrow", "Yu Gothic UI", sans-serif;
  font-size: 5px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
  text-shadow: 0 1px 3px #000;
}

.catalog-card__logo[data-logo-style="noir"],
.cover-item__logo[data-logo-style="noir"] {
  --logo-accent: #ff284b;
  padding: 0 0 0 5px;
  border: 0;
  border-left: 2px solid #ff284b;
  font-family: "YuMincho", "BIZ UDPMincho", "Hiragino Mincho ProN", serif;
  font-weight: 900;
  letter-spacing: -0.09em;
}

[data-logo-style="noir"] .title-logo__line--1 {
  font-size: 0.92em;
}

[data-logo-style="noir"] .title-logo__line--2 {
  margin-left: 4px;
  font-size: 1.16em;
}

[data-logo-style="noir"] .title-logo__line b {
  color: #ff284b;
  font-size: 1.18em;
}

.catalog-card__logo[data-logo-style="romance"],
.cover-item__logo[data-logo-style="romance"] {
  --logo-accent: #ff91b5;
  justify-items: center;
  color: #fff5f8;
  font-family: "YuMincho", "Hiragino Mincho ProN", serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
  text-shadow: 0 2px 5px #65142f, 0 0 9px rgba(255, 98, 157, 0.85);
  transform: rotate(-2deg);
}

[data-logo-style="romance"] .title-logo__line {
  width: auto;
}

[data-logo-style="romance"] .title-logo__line--2 {
  margin-top: 1px;
  padding-inline: 7px;
  border-bottom: 1px solid rgba(255, 197, 217, 0.82);
  font-size: 1.12em;
}

[data-logo-style="romance"] .title-logo__line b {
  color: #ffc1d6;
  font-size: 1.2em;
}

.catalog-card__logo[data-logo-style="royal"],
.cover-item__logo[data-logo-style="royal"] {
  --logo-accent: #f4cb69;
  justify-items: center;
  padding: 3px 3px 2px;
  border: 0;
  border-top: 1px solid rgba(255, 220, 133, 0.9);
  border-bottom: 1px solid rgba(255, 220, 133, 0.62);
  color: #ffe8aa;
  font-family: "YuMincho", "BIZ UDPMincho", serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
  text-shadow: 0 1px 0 #6f4611, 0 2px 7px #000;
}

[data-logo-style="royal"] .title-logo__line {
  width: auto;
}

[data-logo-style="royal"] .title-logo__line b {
  color: #fff4c6;
  font-size: 1.18em;
}

.catalog-card__logo[data-logo-style="thriller"],
.cover-item__logo[data-logo-style="thriller"] {
  --logo-accent: #ff3352;
  right: 5px;
  bottom: 6px;
  left: 5px;
  padding: 0;
  background: transparent;
  font-family: "Yu Gothic UI", "BIZ UDPGothic", sans-serif;
  font-weight: 900;
  letter-spacing: -0.07em;
  text-shadow: 2px 2px 0 #000;
}

[data-logo-style="thriller"] .title-logo__line {
  padding: 2px 5px 3px;
  background: rgba(169, 0, 28, 0.92);
  box-shadow: 3px 0 0 rgba(0, 0, 0, 0.72);
  transform: skewX(-7deg);
}

[data-logo-style="thriller"] .title-logo__line--2 {
  margin-top: 1px;
  margin-left: 5px;
  background: rgba(16, 16, 19, 0.9);
}

[data-logo-style="thriller"] .title-logo__line b {
  color: #fff;
  font-size: 1.15em;
}

.catalog-card__logo[data-logo-style="youth"],
.cover-item__logo[data-logo-style="youth"] {
  --logo-accent: #ffd82b;
  color: #f4fbff;
  font-family: "Yu Gothic UI", "BIZ UDPGothic", sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 2px 2px 0 #096ec2, 4px 4px 0 rgba(0, 0, 0, 0.75);
  transform: skewX(-5deg);
}

[data-logo-style="youth"] .title-logo__line--2 {
  margin-left: 8px;
  color: #c8f3ff;
  font-size: 1.12em;
}

[data-logo-style="youth"] .title-logo__line b {
  color: #ffdf2f;
  font-size: 1.18em;
}

.catalog-card__logo[data-logo-style="horror"],
.cover-item__logo[data-logo-style="horror"] {
  --logo-accent: #e23a32;
  right: 5px;
  bottom: 6px;
  left: 5px;
  max-width: none;
  padding: 3px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.58);
  color: #eee9df;
  font-family: "YuMincho", "BIZ UDPMincho", serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-shadow: 1px 2px 0 #000;
}

[data-logo-style="horror"] .title-logo__line--2 {
  margin-left: 7px;
}

[data-logo-style="horror"] .title-logo__line b {
  color: #dc332d;
  font-size: 1.25em;
}

.cover-item__logo {
  top: 73px;
  right: 4px;
  bottom: auto;
  left: 4px;
  z-index: 4;
  font-size: calc(var(--title-logo-size, 9px) * 0.78);
}

.cover-item__logo::after {
  font-size: 4px;
}

.is-media-loading {
  position: relative;
  overflow: hidden;
  background: #d7d8da !important;
}

.is-media-loading::before {
  position: absolute;
  z-index: 8;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.48) 43%, transparent 66%);
  content: "";
  pointer-events: none;
  transform: translate3d(-110%, 0, 0);
  animation: skeleton-travel 1.25s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.is-media-loading > img {
  opacity: 0 !important;
}

.is-media-loaded > img {
  opacity: 1;
  transition: opacity 240ms cubic-bezier(0.25, 1, 0.5, 1);
}

.promo-slide.is-media-loading .promo-slide__tag,
.promo-slide.is-media-loading .promo-slide__copy,
.promo-slide.is-media-loading .promo-slide__arrow,
.catalog-card__cover.is-media-loading > span,
.cover-item.is-media-loading > :not(img):not(.rank-number) {
  opacity: 0;
}

.catalog-card.is-loading > strong,
.catalog-card.is-loading > small,
.catalog-card.is-loading > em {
  width: 82%;
  min-height: 8px;
  border-radius: 2px;
  background: #dcdddf;
  color: transparent !important;
}

.catalog-card.is-loading > small {
  width: 62%;
  min-height: 6px;
}

.is-media-error {
  position: relative;
  background: #d1d2d4 !important;
}

.is-media-error::before {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  color: #6d6f73;
  content: "画像を読み込めません";
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}

.section-travel-indicator {
  position: fixed;
  z-index: 80;
  right: 50%;
  bottom: calc(70px + env(safe-area-inset-bottom));
  display: grid;
  width: min(248px, calc(100% - 36px));
  grid-template-columns: 1fr 74px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(12, 14, 19, 0.94);
  color: #fff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(50%, 12px, 0);
  transition: opacity 180ms ease-out, transform 280ms cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(10px);
}

.section-travel-indicator.is-visible {
  opacity: 1;
  transform: translate3d(50%, 0, 0);
}

.section-travel-indicator > span {
  display: grid;
  gap: 1px;
}

.section-travel-indicator small {
  color: #8f949e;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.section-travel-indicator strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-travel-indicator > i {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #343840;
}

.section-travel-indicator > i > b {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ef193e, #256bf0);
  transform: scaleX(0.04);
  transform-origin: left center;
  transition: transform 90ms linear;
}

.home-categories a {
  transition: background-color 180ms ease-out, color 180ms ease-out, transform 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.home-categories a.is-active {
  background: linear-gradient(105deg, #17181b 0 76%, #2765e5 77%);
  transform: translateY(-1px);
}

body.is-section-travelling .home-categories {
  box-shadow: 0 8px 24px rgba(15, 18, 25, 0.1);
}

.is-scroll-arrival > .section-heading {
  animation: section-arrival 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes skeleton-travel {
  to { transform: translate3d(110%, 0, 0); }
}

@keyframes section-arrival {
  0% { opacity: 0.42; transform: translate3d(0, 10px, 0); }
  55% { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 359px) {
  .catalog-card__cover > .catalog-card__logo {
    right: 4px;
    bottom: 5px;
    left: 4px;
  }

  .catalog-card__logo::after {
    font-size: 4.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-media-loading::before {
    animation: none;
    background: rgba(255, 255, 255, 0.12);
    transform: none;
  }

  .is-media-loaded > img,
  .section-travel-indicator,
  .home-categories a,
  .section-travel-indicator > i > b {
    transition: none;
  }

  .is-scroll-arrival > .section-heading {
    animation: none;
  }
}

.is-constrained-network .is-media-loading::before {
  animation-duration: 1.8s;
}

/* 2026-08 account, notifications, and device-local library flow */
.app-header__actions {
  align-items: center;
}

.ticket-balance {
  min-width: 88px;
  height: 36px;
  gap: 5px;
  padding-inline: 9px 7px;
  border-color: #dedede;
}

.ticket-balance > span {
  font-size: 8px;
  font-weight: 800;
}

.ticket-balance strong {
  min-width: 12px;
  font-size: 12px;
  text-align: center;
}

.ticket-balance .ticket-balance__plus {
  width: 13px;
  height: 13px;
  padding: 2px;
  border-radius: 50%;
  background: #111;
  filter: invert(1);
}

.header-notification {
  width: 44px;
  height: 44px;
}

.notification-count,
.page-title__notice > span {
  position: absolute;
  top: 5px;
  right: 1px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 99px;
  background: #ef1f3b;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}

.notification-count[hidden],
.page-title__notice > span[hidden] {
  display: none;
}

.page-title--utility {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.page-title--utility > div {
  display: grid;
  gap: 3px;
}

.page-title--utility > span {
  padding-bottom: 3px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 700;
}

.page-title__notice {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.page-title__notice img {
  width: 21px;
  height: 21px;
}

.library-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.library-tabs button {
  min-width: 0;
  min-height: 46px;
  padding: 8px 2px;
  border-bottom: 3px solid transparent;
  font-size: 10px;
  font-weight: 800;
}

.library-tabs button.is-active {
  border-color: #111;
  color: #111;
}

.library-tabs span {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  margin-left: 2px;
  border-radius: 50%;
  background: #f1f1f1;
  color: #555;
  font-size: 8px;
}

.library-panel {
  min-height: 240px;
  padding: 16px 18px;
}

.reading-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.reading-card > img {
  width: 92px;
  height: 132px;
  border-radius: 4px;
  object-fit: cover;
}

.reading-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.reading-card__label {
  color: #e51f3e;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.reading-card__body > strong {
  font-size: 12px;
  line-height: 1.45;
}

.reading-card__body > span:not(.progress-track) {
  color: var(--ink-muted);
  font-size: 9px;
}

.reading-card__progress {
  color: var(--ink-muted);
  font-size: 8px;
}

.reading-card__button {
  display: grid;
  min-height: 34px;
  place-items: center;
  margin-top: 2px;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.episode-quick-list {
  display: grid;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.episode-quick-row {
  display: grid;
  min-height: 68px;
  grid-template-columns: 64px 1fr 16px;
  gap: 11px;
  align-items: center;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #111;
  text-align: left;
}

.episode-quick-row > img:first-child {
  width: 64px;
  height: 48px;
  border-radius: 3px;
  object-fit: cover;
}

.episode-quick-row > img:last-child {
  width: 15px;
  height: 15px;
  opacity: 0.55;
}

.episode-quick-row > span {
  display: grid;
  gap: 5px;
}

.episode-quick-row strong {
  font-size: 9px;
  line-height: 1.45;
}

.episode-quick-row small {
  color: var(--ink-muted);
  font-size: 8px;
}

.library-empty {
  display: grid;
  min-height: 214px;
  place-items: center;
  align-content: center;
  gap: 13px;
  padding: 28px;
  border: 1px dashed #d8d8d8;
  text-align: center;
}

.library-empty > img {
  width: 29px;
  height: 29px;
  opacity: 0.45;
}

.library-empty > span {
  display: grid;
  gap: 7px;
}

.library-empty strong {
  font-size: 11px;
}

.library-empty small {
  color: var(--ink-muted);
  font-size: 8px;
  line-height: 1.6;
}

.library-empty button {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.library-help {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  margin: 0 18px 24px;
  padding: 14px;
  border-radius: 6px;
  background: #f6f6f6;
}

.library-help img {
  width: 22px;
  height: 22px;
}

.library-help span {
  display: grid;
  gap: 4px;
}

.library-help strong {
  font-size: 9px;
}

.library-help small {
  color: var(--ink-muted);
  font-size: 8px;
  line-height: 1.5;
}

.library-skeleton {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
}

.library-skeleton i,
.library-skeleton b {
  display: block;
  border-radius: 4px;
  background: #e7e7e7;
}

.library-skeleton i {
  width: 92px;
  height: 132px;
}

.library-skeleton span {
  display: grid;
  align-content: center;
  gap: 11px;
}

.library-skeleton b {
  height: 12px;
}

.library-skeleton b:nth-child(2) { width: 72%; }
.library-skeleton b:nth-child(3) { width: 54%; }

.wallet {
  border-radius: 8px;
  overflow: hidden;
}

.wallet button {
  justify-items: center;
  padding: 12px 4px;
}

.wallet button > img {
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
}

.reading-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -10px 18px 22px;
  padding: 13px 0;
  border-radius: 7px;
  background: #111;
  color: #fff;
}

.reading-summary > div {
  display: grid;
  justify-items: center;
  gap: 3px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.reading-summary > div:last-child { border-right: 0; }
.reading-summary strong { font-size: 17px; }
.reading-summary small { color: #aaa; font-size: 7px; }

.profile-menu button {
  grid-template-columns: 22px 1fr 30px;
  min-height: 61px;
}

.profile-menu button > span {
  display: grid;
  gap: 4px;
}

.profile-menu button > span strong {
  font-size: 10px;
}

.profile-menu button > span small {
  color: var(--ink-muted);
  font-size: 8px;
  line-height: 1.35;
}

.setting-switch {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 99px;
  background: #d6d6d6;
}

.setting-switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  content: "";
  transition: transform 180ms ease;
}

[data-action="toggle-data-saver"].is-on .setting-switch {
  background: #1766e8;
}

[data-action="toggle-data-saver"].is-on .setting-switch::after {
  transform: translateX(12px);
}

.notification-dialog {
  width: min(100%, var(--shell-width));
  max-width: none;
  height: min(78dvh, 680px);
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: #fff;
}

.notification-dialog::backdrop {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(3px);
}

.notification-dialog form {
  height: 100%;
  overflow-y: auto;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
}

.notification-dialog__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.notification-dialog__header h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.notification-dialog__header .dialog-close {
  position: static;
}

.notification-read-all {
  display: block;
  margin: -4px 0 12px auto;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #1766e8;
  font-size: 9px;
  font-weight: 800;
}

.notification-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 82px;
  padding: 13px 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
}

.notification-item.is-unread::before {
  position: absolute;
  top: 19px;
  left: -9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef1f3b;
  content: "";
}

.notification-item > img {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 50%;
  background: #f2f2f2;
}

.notification-item--reward > img { background: #fff3b7; }
.notification-item--story > img { background: #e9f0ff; }

.notification-item__copy {
  display: grid;
  gap: 5px;
}

.notification-item__copy strong {
  font-size: 10px;
}

.notification-item__copy small {
  color: var(--ink-muted);
  font-size: 8px;
  line-height: 1.5;
}

.notification-item em {
  color: #1766e8;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 359px) {
  .app-header { padding-inline: 8px; }
  .wordmark { gap: 6px; }
  .wordmark > span { font-size: 14px; }
  .wordmark > img { width: 29px; height: 29px; }
  .ticket-balance { min-width: 52px; padding-inline: 7px; }
  .ticket-balance > span { display: none; }
  .header-notification { width: 44px; }
  .reading-card { grid-template-columns: 82px 1fr; gap: 11px; padding: 10px; }
  .reading-card > img { width: 82px; height: 118px; }
}
