/* Original game vocabulary: blue-grey tactical surfaces, square frames, red labels, green actions. */
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.cl-search svg {
  width: 16px;
  height: 16px;
}
.cl-reward-btn svg {
  width: 17px;
  height: 17px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.key-term {
  background: none;
}
.sub .ck {
  width: 16px;
  height: 16px;
}
:root {
  color-scheme: dark;
  --bg: #151f27;
  --bg-2: #1a2630;
  --panel: rgba(19, 29, 37, 0.86);
  --panel-2: #30434f;
  --line: rgba(189, 212, 225, 0.26);
  --line-soft: rgba(189, 212, 225, 0.13);
  --text: #e0e7eb;
  --text-dim: #aab9c3;
  --text-faint: #8d9da9;
  --green: #42bca0;
  --green-bright: #64e1bf;
  --red: #ce5551;
  --gold: #d4b56c;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html {
  min-height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100dvh;
  background:
    radial-gradient(
      ellipse at -12% 28%,
      rgba(94, 138, 162, 0.45),
      transparent 60%
    ),
    radial-gradient(
      ellipse at 103% 100%,
      rgba(51, 69, 82, 0.38),
      transparent 60%
    ),
    linear-gradient(115deg, #233644, #151f27 72%);
  background-attachment: fixed;
  color: var(--text);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  min-height: 40px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 4px;
}
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}
::selection {
  background: #317563;
  color: var(--text);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 100;
  background: var(--green-bright);
  color: #102b25;
  padding: 10px 18px;
}
.skip-link:focus {
  top: 10px;
}
.wrap {
  max-width: 1800px;
  padding: 27px clamp(18px, 3.5vw, 64px) 24px;
}
.topbar {
  margin-bottom: 30px;
  gap: 14px;
  height: 42px;
}
.back {
  background: none;
  border: 0;
  width: 34px;
  color: var(--text);
  min-height: 40px;
}
.top-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ticks {
  height: 16px;
  max-width: 420px;
  margin-left: 2px;
  opacity: 0.4;
  background: repeating-linear-gradient(
    135deg,
    #7e99a9 0 1px,
    transparent 1px 5px
  );
  mask-image: linear-gradient(90deg, #000, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
}
.season-tag {
  margin-left: auto;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-color: rgba(100, 225, 191, 0.35);
  font-size: 11px;
  white-space: nowrap;
}
.layout {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.sidenav {
  position: sticky;
  top: 24px;
  gap: 12px;
}
.nav-btn {
  border: 1px solid var(--line);
  border-radius: 1px;
  background: rgba(16, 25, 33, 0.42);
  padding: 19px 7px 15px;
  gap: 9px;
  color: var(--text-dim);
  position: relative;
  min-height: 105px;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.22s var(--ease);
}
.nav-btn svg {
  width: 25px;
  height: 25px;
}
.nav-btn .n {
  font-family: Consolas, monospace;
  font-size: 10px;
  color: var(--text-faint);
}
.nav-btn.active {
  background: rgba(42, 79, 76, 0.34);
  border-color: rgba(100, 225, 191, 0.55);
  box-shadow:
    inset 0 -3px var(--green),
    inset 0 0 24px rgba(66, 188, 160, 0.04);
  color: var(--green-bright);
}
.sec-head {
  margin-bottom: 24px;
}
.sec-head h2 {
  font-size: clamp(25px, 2.7vw, 35px);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.3;
}
.sec-head .meta {
  margin-top: 10px;
  gap: 12px;
  font-size: 11px;
  flex-wrap: wrap;
}
.sec-head .meta .dot {
  font-size: 9px;
}
.view.active {
  animation: panel-in 0.3s var(--ease);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mission-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.mission-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 310px;
  max-width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(14, 23, 30, 0.55);
  padding: 0 11px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.mission-search:focus-within {
  border-color: var(--green);
  background: rgba(14, 23, 30, 0.85);
}
.mission-search svg {
  width: 15px;
  height: 15px;
  color: var(--text-faint);
  flex: none;
}
.mission-search input {
  width: 100%;
  min-width: 0;
  outline: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 11px;
  height: 100%;
}
.mission-search input:focus-visible {
  outline: 0;
}
.mission-search input::placeholder {
  color: var(--text-faint);
  opacity: 1;
}
.search-clear {
  border: 0;
  background: none;
  color: var(--text-dim);
  width: 30px;
  min-height: 30px;
  flex: none;
  font-size: 20px;
  line-height: 1;
}
.toolbar-info {
  font-size: 10px;
  color: var(--text-faint);
  display: flex;
  gap: 14px;
  align-items: center;
}
.overview-toggle {
  font-size: 11px;
  color: var(--green-bright);
  background: rgba(66, 188, 160, 0.06);
  border: 1px solid rgba(66, 188, 160, 0.35);
  padding: 6px 12px;
  min-height: 36px;
}
.task-browser {
  display: grid;
  grid-template-columns: 65px minmax(240px, 330px) minmax(0, 1fr);
  grid-template-areas: "stages chains detail";
  gap: 18px;
  background: none;
  border: 0;
  border-radius: 0;
  min-height: 640px;
  overflow: visible;
  align-items: start;
}
.stage-rail {
  grid-area: stages;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 20px;
}
.stage-tab {
  height: 112px;
  padding: 13px 5px 9px;
  border: 1px solid var(--line);
  background: rgba(20, 32, 42, 0.4);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  position: relative;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.stage-tab .stage-no {
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  font-size: 27px;
  line-height: 1;
  font-weight: 350;
  letter-spacing: 0.04em;
}
.stage-tab .stage-sub {
  font-size: 9px;
}
.stage-tab svg {
  height: 12px;
  width: 12px;
  opacity: 0.7;
}
.stage-tab.active {
  background: linear-gradient(135deg, #d7e0e5, #abbcc7);
  color: #1b2932;
  border-color: #d7e0e5;
  box-shadow: inset 0 0 0 3px rgba(34, 50, 63, 0.12);
}
.stage-tab.active .stage-sub {
  color: #304452;
}
.stage-tab.backup {
  height: 62px;
  font-size: 11px;
  gap: 4px;
}
.chain-list {
  grid-area: chains;
  max-height: calc(100dvh - 215px);
  min-height: 480px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #657b89 transparent;
  padding-right: 6px;
}
.chain-card {
  margin-bottom: 10px;
}
.chain-head {
  width: 100%;
  text-align: left;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  background: rgba(15, 28, 36, 0.55);
  position: relative;
  color: var(--text);
  display: block;
  min-height: 104px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.chain-head::before,
.chain-head::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 2px;
  background: rgba(191, 212, 223, 0.3);
}
.chain-head::before {
  left: 5px;
  top: 4px;
}
.chain-head::after {
  right: 5px;
  bottom: 4px;
}
.chain-card.expanded .chain-head {
  border-color: rgba(210, 229, 239, 0.6);
  background: rgba(65, 88, 102, 0.36);
}
.chain-label {
  display: inline-block;
  font-size: 9px;
  line-height: 1.5;
  color: #211d20;
  background: var(--red);
  padding: 1px 6px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.chain-label.backup {
  background: #b99a65;
  color: #1a2025;
}
.chain-label.contract {
  background: var(--gold);
}
.chain-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  padding-right: 20px;
  display: block;
  overflow-wrap: anywhere;
}
.chain-chevron {
  position: absolute;
  right: 16px;
  top: 36px;
  width: 19px;
  height: 19px;
  color: var(--text-dim);
  transition: transform 0.25s var(--ease);
}
.expanded .chain-chevron {
  transform: rotate(180deg);
}
.chain-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 10px;
  margin-top: 8px;
  font-family: Consolas, "Microsoft YaHei", monospace;
}
.chain-tree {
  padding: 7px 0 3px 18px;
  position: relative;
  animation: panel-in 0.25s var(--ease);
}
.chain-tree::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 23px;
  left: 9px;
  border-left: 1px solid var(--line);
}
.mission-row {
  position: relative;
  width: 100%;
  background: rgba(56, 78, 94, 0.23);
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  padding: 14px 12px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  color: var(--text-dim);
  min-height: 67px;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.mission-row::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 9px;
  border-top: 1px solid var(--line);
  top: 50%;
}
.mission-row.active {
  border-color: rgba(215, 231, 242, 0.65);
  background: rgba(120, 146, 167, 0.3);
  color: var(--text);
  box-shadow: inset 0 0 0 2px rgba(194, 216, 229, 0.035);
}
.mission-row .mission-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.mission-row .mission-id {
  display: block;
  color: var(--text-faint);
  font-size: 9px;
  font-family: Consolas, monospace;
  margin-top: 4px;
}
.mission-status {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-faint);
}
.mission-status.done {
  color: var(--green-bright);
}
.chain-list .empty {
  font-size: 12px;
  padding: 45px 15px;
}
.result-count {
  font-size: 10px;
  color: var(--text-faint);
  margin-bottom: 10px;
  padding: 0 4px;
}
.story-detail {
  grid-area: detail;
  padding: 0 0 0 9px;
  overflow: visible;
  min-height: 590px;
  display: flex;
  flex-direction: column;
  background: none;
}
.detail-render {
  animation: panel-in 0.28s var(--ease);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sd-head {
  padding: 15px 0 17px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 15px;
  margin: 0 0 18px;
}
.sd-head .emblem {
  border: 0;
  border-radius: 0;
  background: none;
  color: #a9becb;
  width: 48px;
  height: 54px;
}
.sd-head .emblem svg {
  height: 48px;
  width: 48px;
}
.sd-head h3 {
  font-size: 25px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.sd-head .tag-red {
  color: #211d20;
  background: var(--red);
  font-size: 10px;
  padding: 1px 7px;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.sd-id {
  font-size: 9px;
  color: var(--text-faint);
  margin-top: 4px;
}
.sd-line {
  display: none;
}
.field {
  font-size: 12px;
  line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.field b {
  color: #cbd6de;
  font-weight: 400;
}
.sub-list {
  margin: 19px 0;
  gap: 8px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.sub {
  background: rgba(11, 21, 28, 0.36);
  border: 0;
  border-radius: 0;
  padding: 14px 15px;
  gap: 11px;
}
.sub .ck.lock {
  color: #8db2c9;
}
.sub .txt {
  font-size: 12px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.sub .prog {
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 8px;
}
.key-term {
  color: var(--gold);
  font-weight: 400;
}
.warn-bar {
  border: 0;
  border-radius: 0;
  background: rgba(153, 46, 46, 0.17);
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.8;
  align-items: flex-start;
}
.warn-bar .ic {
  color: #ef716a;
  margin-top: 3px;
}
.goal-lim {
  border: 1px solid rgba(212, 181, 108, 0.24);
  border-radius: 0;
  font-size: 11px;
}
.story-reward {
  margin-top: auto;
  padding-top: 20px;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}
.story-reward > .label {
  flex-basis: 100%;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  font-size: 12px;
}
.rw.wide {
  border-color: rgba(192, 215, 230, 0.3);
  border-radius: 0;
  background: rgba(10, 19, 25, 0.7);
  min-width: 83px;
  min-height: 76px;
  max-width: 190px;
  padding: 9px 12px;
}
.rw .tag {
  font-size: 9px;
  color: var(--text-dim);
}
.rw.wide .v {
  font-family: "Bahnschrift", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
}
.rw.wide.item .v {
  font-size: 11px;
}
.state-pill {
  border-radius: 0;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  min-width: 96px;
  align-self: flex-end;
  min-height: 40px;
}
.local-complete {
  background: rgba(66, 188, 160, 0.09);
  border: 1px solid rgba(100, 225, 191, 0.45);
  color: var(--green-bright);
  cursor: pointer;
  font-family: inherit;
  gap: 6px;
}
.local-complete svg {
  width: 13px;
  height: 13px;
}
.detail-bottom-note {
  font-size: 9px;
  color: var(--text-faint);
  margin-top: 11px;
  text-align: right;
}
.mback {
  min-height: 40px;
  border-radius: 0;
}
.overview-panel {
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 24, 0.84);
  backdrop-filter: blur(8px);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overview-dialog {
  max-width: 950px;
  width: 100%;
  max-height: 85dvh;
  overflow: auto;
  border: 1px solid var(--line);
  background: #1b2b36;
  padding: 24px;
  box-shadow: 0 30px 100px rgba(3, 10, 15, 0.4);
}
.overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  gap: 15px;
}
.overview-heading h3 {
  font-size: 19px;
}
.close-button {
  height: 40px;
  width: 40px;
  border: 1px solid var(--line);
  background: none;
  color: var(--text);
  font-size: 23px;
  line-height: 1;
}
.overview-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-top: 22px;
}
.overview-stage h4 {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 12px;
}
.overview-group {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(12, 23, 31, 0.4);
  padding: 11px;
  margin-bottom: 7px;
  color: var(--text-dim);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.overview-note {
  color: var(--text-faint);
  font-size: 10px;
  margin-top: 15px;
}
/* Code-native placeholders only; reference screenshots are never used as assets. */
.contract-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #a0b8c8;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(91, 124, 146, 0.15),
    transparent 65%
  );
}
.contract-placeholder > svg {
  width: 85%;
  height: 85%;
  max-height: 430px;
}
.placeholder-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 36px;
  line-height: 1;
  color: #bdcdd7;
}
.placeholder-label {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}
.carousel {
  margin-top: 8px;
  gap: 10px;
}
.stage {
  padding: 28px 0 26px;
  position: relative;
}
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    rgba(190, 215, 229, 0.36) 0 1px,
    transparent 1px 6px
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 25%,
    #000 75%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 25%,
    #000 75%,
    transparent
  );
}
.stage::before {
  top: 0;
}
.stage::after {
  bottom: 0;
}
.stage-track {
  gap: 14px;
  position: relative;
  transition: transform 0.45s var(--ease);
}
.ccard {
  width: clamp(210px, 22vw, 310px);
  opacity: 0.5;
  transform: scale(0.91);
  border-radius: 0;
  border: 1px solid rgba(190, 215, 229, 0.3);
  overflow: hidden;
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease),
    border-color 0.3s;
  display: block;
  padding: 0;
  text-align: left;
  color: var(--text);
  font-family: inherit;
}
.ccard.center {
  opacity: 1;
  transform: scale(1);
  border-color: #c6d6e0;
  box-shadow:
    0 0 0 2px rgba(203, 220, 231, 0.2),
    0 14px 30px rgba(7, 17, 24, 0.3);
}
.ccard .poster {
  height: clamp(290px, 31vw, 410px);
  border-radius: 0;
  position: relative;
  background: linear-gradient(160deg, #344954, #18222b);
}
.ccard .poster .glyph {
  font-family: "Bahnschrift", sans-serif;
  opacity: 0.7;
  font-size: 96px;
}
.ccard .poster .no {
  z-index: 2;
  left: 13px;
  transform: none;
  top: 14px;
  color: #d2dde4;
  background: rgba(8, 16, 22, 0.5);
  font-size: 9px;
  padding: 3px 6px;
  letter-spacing: 0.12em;
}
.ccard .info {
  min-height: 80px;
  padding: 13px 14px;
  background: rgba(6, 14, 19, 0.9);
  border-top: 1px solid var(--line);
}
.ccard .name {
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ccard .status {
  font-size: 9px;
  margin-bottom: 6px;
  color: var(--text-dim);
}
.ccard .status.doing {
  color: var(--green-bright);
}
.ccard .poster::before,
.ccard .poster::after,
.ccard .poster .c3,
.ccard .poster .c4 {
  z-index: 2;
  width: 10px;
  height: 10px;
  border-width: 1px;
  border-color: rgba(211, 228, 238, 0.65);
}
.arrow {
  height: 92px;
  width: 34px;
  border: 0;
  background: rgba(28, 44, 57, 0.3);
  border-radius: 0;
  color: var(--text-dim);
}
.arrow svg {
  width: 24px;
  height: 24px;
}
.dots {
  gap: 8px;
  margin: 19px 0 13px;
}
.dots button {
  height: 12px;
  width: 12px;
  min-height: 12px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  position: relative;
}
.dots button::before {
  content: "";
  position: absolute;
  inset: -8px;
}
.dots button.on {
  background: #d3dce3;
  border-color: #d3dce3;
}
.contract-caption {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
}
.cd-page {
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 0;
  background: rgba(12, 21, 28, 0.7);
  border-radius: 0;
  border-color: var(--line);
}
.cd-art {
  background: linear-gradient(145deg, #354d5a, #1b2c37);
  min-height: 610px;
  overflow: hidden;
}
.cd-art .glyph {
  z-index: 2;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  font-size: 70px;
  font-family: "Bahnschrift", sans-serif;
  color: rgba(222, 234, 241, 0.4);
  pointer-events: none;
}
.cd-right {
  padding: 27px 28px;
  min-height: 610px;
}
.detail-head {
  padding-bottom: 17px;
  border-color: var(--line);
  margin-bottom: 18px;
}
.detail-head .emblem {
  background: none;
  border: 0;
  color: #a9becb;
  width: 48px;
}
.detail-head .emblem svg {
  height: 45px;
  width: 45px;
}
.flag {
  font-size: 10px;
  padding: 1px 6px;
  color: #211d20;
  letter-spacing: 0.04em;
}
.detail-head h3 {
  font-size: 23px;
  line-height: 1.4;
}
.detail-head .btn-outline {
  display: none;
}
.btn-outline {
  border-radius: 0;
  min-height: 40px;
}
.obj {
  border: 0;
  border-radius: 0;
  background: rgba(9, 18, 24, 0.45);
  padding: 13px;
}
.obj .ic {
  color: #8db2c9;
}
.obj .txt {
  font-size: 12px;
  line-height: 1.8;
}
.obj .txt .prog {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 7px;
}
.obj .go {
  display: none;
}
.reward-row {
  margin-top: auto;
  align-items: stretch;
  gap: 8px;
}
.reward-row > .label {
  flex-basis: 100%;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  font-size: 12px;
}
.cd-art .corner,
.cd-art .frame-ticks {
  z-index: 3;
}
.emblem svg {
  overflow: visible;
}
.cl-layout {
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 24px;
}
.cl-box,
.cl-task {
  background: rgba(14, 26, 34, 0.54);
  border-color: var(--line);
  border-radius: 0;
  padding: 18px;
}
.cl-side {
  gap: 13px;
  position: sticky;
  top: 20px;
}
.cl-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
}
.cl-refresh-btn {
  border-radius: 0;
  font-size: 12px;
  background: rgba(149, 175, 194, 0.09);
  min-height: 44px;
}
.cl-notice {
  border: 1px solid var(--line);
  background: rgba(155, 181, 201, 0.08);
  color: var(--text-dim);
  font-size: 10px;
  border-radius: 0;
}
.cl-task {
  padding: 16px;
}
.cl-tag {
  border-radius: 0;
  font-size: 9px;
}
.cl-tline {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 12px;
}
.cl-reward-btn {
  border-radius: 0;
  background: rgba(20, 35, 46, 0.5);
  border-color: var(--line);
  font-size: 12px;
  min-height: 44px;
}
.cl-main {
  gap: 16px;
}
.cl-h {
  font-size: 19px;
}
.cl-remain {
  font-size: 10px;
}
.cl-quests {
  gap: 12px;
}
.cl-quest {
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 0;
  border-radius: 0;
  border-color: var(--line);
  gap: 10px;
  background: rgba(22, 35, 45, 0.75);
}
.cl-quest .ql {
  padding: 17px;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
}
.cl-quest .qidx {
  font-size: 10px;
  border: 0;
  width: 25px;
  height: 30px;
  color: var(--text-faint);
}
.cl-quest .qt {
  font-size: 14px;
  font-weight: 600;
}
.cl-quest .qd {
  font-size: 11px;
  margin-top: 7px;
  line-height: 1.8;
  color: var(--text-dim);
}
.cl-quest .qitems {
  margin-top: 13px;
  gap: 6px;
}
.cl-quest .qit {
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 0;
  background: rgba(12, 22, 30, 0.5);
  border-color: var(--line);
}
.cl-quest .qit .p {
  color: var(--text-dim);
}
.cl-quest .lock-tag {
  font-size: 9px;
  min-height: 34px;
  border-radius: 0;
  padding: 6px 9px;
}
.cl-quest .submit {
  font-size: 10px;
  border-radius: 0;
  margin-right: 15px;
  padding: 8px 10px;
  min-height: 40px;
}
.cl-sub-head {
  font-size: 15px;
  margin: 22px 0 0;
}
.cl-count2 {
  font-size: 10px;
}
.cl-search {
  border-radius: 0;
  min-height: 42px;
  background: rgba(12, 22, 30, 0.5);
  border-color: var(--line);
  padding: 0 12px;
  gap: 10px;
}
.cl-search:focus-within {
  border-color: var(--green);
}
.cl-search input {
  min-width: 0;
  font-size: 11px;
  height: 40px;
}
.cl-search input::placeholder {
  color: var(--text-faint);
}
.cl-all {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.cl-item {
  padding: 14px;
  min-height: 105px;
  border-radius: 0;
  background: rgba(17, 30, 39, 0.6);
  border-color: var(--line);
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.22s var(--ease);
  position: relative;
}
.cl-item .in {
  font-size: 9px;
}
.cl-item .nm {
  font-size: 12px;
  margin-top: 7px;
}
.cl-item .it {
  font-size: 10px;
  margin-top: 8px;
  line-height: 1.65;
  white-space: normal;
}
.cl-item::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  height: 5px;
  width: 5px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
  color: var(--text-dim);
  font-size: 11px;
}
.cl-pagination button {
  min-height: 40px;
  min-width: 40px;
  background: rgba(20, 34, 45, 0.5);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 17px;
}
.cl-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}
.collector-ring {
  position: relative;
  width: 156px;
  height: 156px;
  margin: 17px auto 12px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 9px;
}
.collector-ring > svg {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  transform: rotate(-90deg);
}
.collector-ring .ring-base {
  stroke: rgba(176, 201, 218, 0.15);
}
.collector-ring .ring-value {
  stroke: #b7cbd7;
  stroke-dasharray: 364.425;
  stroke-dashoffset: 291.54;
  transition: stroke-dashoffset 0.5s var(--ease);
}
.collector-ring .ring-caption {
  font-size: 12px;
  color: var(--text-dim);
}
.collector-ring .cl-prog {
  margin: 0;
  font-family: "Bahnschrift", sans-serif;
  font-size: 28px;
  font-weight: 400;
}
.collector-ring .cl-prog b {
  color: var(--text);
  font-weight: 400;
}
.collector-ring .cl-prog span {
  font-size: 20px;
  color: var(--text-dim);
  margin-left: 3px;
}
.collector-ring p {
  position: relative;
}
.cl-side .cl-box:has(.collector-ring) {
  border-top: 3px solid var(--line-strong, rgba(180, 204, 219, 0.4));
}
.cl-library-empty {
  grid-column: 1/-1;
  font-size: 12px;
  padding: 40px 20px;
}
.mask {
  background: rgba(4, 12, 18, 0.8);
  backdrop-filter: blur(7px);
  padding: 20px;
}
.reward-pop {
  border: 1px solid var(--line);
  border-radius: 0;
  background: #1c2b36;
  width: min(720px, 100%);
  max-height: 85dvh;
  overflow: auto;
  animation: panel-in 0.25s var(--ease);
}
.rp-head {
  padding: 15px 20px;
  background: rgba(103, 130, 150, 0.14);
  font-size: 16px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.rp-head button {
  min-height: 40px;
  min-width: 40px;
  font-size: 24px;
}
.rp-body {
  padding: 20px;
}
.rp-row {
  border-radius: 0;
  font-size: 12px;
  gap: 8px;
  padding: 11px;
  background: rgba(13, 23, 31, 0.4);
  flex-wrap: wrap;
}
.rp-row .n {
  font-size: 10px;
  width: 55px;
}
.rp-row .r {
  min-width: 100px;
  overflow-wrap: anywhere;
}
.rp-row .c {
  font-size: 10px;
}
.rp-note {
  font-size: 11px;
  line-height: 1.9;
  color: var(--text-dim);
  margin-bottom: 15px;
}
.reward-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.reward-table th,
.reward-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.reward-table th {
  color: var(--text-dim);
  font-weight: 400;
}
.reward-table td:first-child {
  font-family: Consolas, monospace;
  color: var(--gold);
}
footer {
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
footer .maker,
footer .src {
  font-size: 10px;
  margin: 0;
}
#toast {
  z-index: 100;
  border-radius: 0;
  background: #c8d8df;
  color: #172832;
  border: 1px solid #b9cdd7;
  padding: 11px 20px;
  font-size: 12px;
  max-width: calc(100% - 30px);
  text-align: center;
  bottom: 25px;
}
button:active {
  transform: translateY(1px);
}
.nav-btn.active:active {
  transform: translateY(1px);
}
@media (hover: hover) and (pointer: fine) {
  .nav-btn:hover {
    transform: translateY(-2px);
    background: rgba(56, 83, 100, 0.35);
    border-color: rgba(193, 220, 235, 0.5);
  }
  .chain-head:hover {
    background: rgba(73, 101, 118, 0.3);
    border-color: rgba(201, 222, 235, 0.5);
  }
  .mission-row:hover {
    background: rgba(113, 142, 162, 0.23);
    color: var(--text);
  }
  .mission-row.active:hover {
    background: rgba(120, 146, 167, 0.36);
  }
  .stage-tab:not(.active):hover {
    background: rgba(109, 139, 160, 0.23);
    border-color: rgba(211, 230, 240, 0.55);
  }
  .local-complete:hover,
  .overview-toggle:hover {
    background: rgba(66, 188, 160, 0.16);
  }
  .cl-item:hover {
    border-color: var(--green);
    background: rgba(41, 66, 78, 0.6);
    transform: translateY(-2px);
  }
  .overview-group:hover {
    color: var(--text);
    border-color: var(--green);
  }
}
@media (min-width: 1550px) {
  .task-browser {
    grid-template-columns: 78px 375px minmax(0, 1fr);
    gap: 25px;
    min-height: 700px;
  }
  .stage-tab {
    height: 133px;
  }
  .chain-head {
    min-height: 111px;
    padding: 17px 20px;
  }
  .chain-name {
    font-size: 18px;
  }
  .mission-row {
    min-height: 74px;
    padding: 16px;
  }
  .mission-row .mission-text {
    font-size: 13px;
  }
  .story-detail {
    padding-left: 12px;
    min-height: 680px;
  }
  .sd-head h3 {
    font-size: 29px;
  }
  .field,
  .sub .txt {
    font-size: 14px;
  }
  .sub {
    padding: 18px;
  }
  .cl-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .cl-all {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1179px) {
  .layout {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 19px;
  }
  .wrap {
    padding: 22px 25px;
  }
  .nav-btn {
    min-height: 96px;
    font-size: 11px;
    padding: 17px 5px;
  }
  .task-browser {
    grid-template-columns: 55px 260px minmax(0, 1fr);
    gap: 14px;
  }
  .stage-tab {
    height: 106px;
  }
  .chain-head {
    padding: 13px;
  }
  .chain-name {
    font-size: 14px;
  }
  .chain-chevron {
    right: 12px;
    width: 17px;
    height: 17px;
  }
  .story-detail {
    padding-left: 1px;
  }
  .sd-head h3 {
    font-size: 22px;
  }
  .field,
  .sub .txt {
    font-size: 11px;
  }
  .sd-head .emblem {
    height: 42px;
    width: 37px;
  }
  .sd-head .emblem svg {
    height: 38px;
    width: 38px;
  }
  .rw.wide {
    min-width: 72px;
    padding: 8px;
    max-width: 160px;
  }
  .rw.wide .v {
    font-size: 15px;
  }
  .rw.wide.item .v {
    font-size: 10px;
  }
  .cd-right {
    padding: 22px;
  }
  .cd-art,
  .cd-right {
    min-height: 560px;
  }
  .cd-page {
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr);
  }
  .cl-layout {
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 18px;
  }
  .cl-all {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cl-quest {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
  }
  .cl-quest .ql {
    grid-column: 1/-1;
    padding: 15px 15px 12px;
  }
  .cl-quest .lock-tag {
    margin: 0 0 14px 16px;
    justify-self: start;
  }
  .cl-quest .submit {
    margin: 0 15px 14px;
    justify-self: end;
  }
  .cl-quest .qt {
    font-size: 13px;
  }
}
@media (min-width: 761px) and (max-width: 970px) {
  .task-browser {
    grid-template-columns: 54px 220px minmax(0, 1fr);
    grid-template-areas: "stages chains detail";
    gap: 12px;
  }
  .chain-list {
    max-height: 650px;
  }
  .mission-row {
    padding: 12px 9px;
    min-height: 65px;
  }
  .mission-row .mission-text {
    font-size: 11px;
  }
  .chain-name {
    font-size: 13px;
  }
  .chain-head {
    padding: 12px;
    min-height: 99px;
  }
  .chain-label {
    font-size: 8px;
  }
  .chain-meta {
    font-size: 9px;
  }
  .sd-head {
    gap: 10px;
  }
  .sd-head .emblem {
    display: none;
  }
  .sd-head h3 {
    font-size: 21px;
  }
  .sd-head .tag-red {
    font-size: 9px;
  }
  .sub {
    padding: 11px;
    gap: 8px;
  }
  .rw.wide {
    min-height: 66px;
    min-width: 68px;
    max-width: 145px;
  }
  .story-reward {
    gap: 6px;
  }
  .state-pill {
    margin-left: 0;
    min-width: 110px;
  }
  .cd-page {
    grid-template-columns: 1fr;
  }
  .cd-art {
    min-height: 230px;
    max-height: 260px;
  }
  .cd-right {
    min-height: 0;
  }
  .cl-layout {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 16px;
  }
  .cl-box {
    padding: 15px;
  }
  .collector-ring {
    width: 140px;
    height: 140px;
  }
}
@media (max-width: 760px) {
  .wrap {
    padding: 17px 18px 22px;
  }
  .topbar {
    margin-bottom: 22px;
    height: 35px;
    gap: 9px;
  }
  .top-title {
    font-size: 20px;
  }
  .ticks {
    max-width: 150px;
  }
  .season-tag {
    font-size: 9px;
    padding: 4px 8px;
    letter-spacing: 0.02em;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .sidenav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow: visible;
    order: -1;
  }
  .sidenav .nav-btn {
    flex: 1;
    min-width: 0;
    min-height: 61px;
    padding: 12px 8px;
    flex-direction: row;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
  }
  .sidenav .nav-btn svg {
    height: 19px;
    width: 19px;
  }
  .sidenav .nav-btn .n {
    font-size: 9px;
    margin-left: 2px;
  }
  .sec-head {
    margin-bottom: 18px;
  }
  .sec-head h2 {
    font-size: 25px;
  }
  .sec-head .meta {
    font-size: 10px;
    gap: 7px;
    line-height: 1.8;
    margin-top: 8px;
  }
  .sec-head .meta > span:last-child {
    flex-basis: 100%;
    padding-left: 15px;
  }
  .mission-toolbar {
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
  }
  .mission-search {
    width: auto;
    flex: 1;
    min-width: 180px;
    height: 42px;
  }
  .mission-search input {
    font-size: 11px;
  }
  .toolbar-info {
    gap: 8px;
  }
  .toolbar-info > span {
    display: none;
  }
  .overview-toggle {
    min-height: 42px;
    padding: 7px 10px;
    font-size: 10px;
  }
  .task-browser {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas: "stages chains";
    gap: 11px;
    min-height: 0;
  }
  .stage-rail {
    top: 15px;
    gap: 7px;
  }
  .stage-tab {
    height: 96px;
    padding: 12px 3px;
    gap: 13px;
  }
  .stage-tab .stage-no {
    font-size: 23px;
  }
  .stage-tab .stage-sub {
    font-size: 8px;
  }
  .stage-tab.backup {
    height: 56px;
    font-size: 10px;
  }
  .chain-list {
    max-height: none;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }
  .chain-head {
    padding: 15px 16px;
    min-height: 104px;
  }
  .chain-name {
    font-size: 16px;
  }
  .chain-label {
    font-size: 9px;
  }
  .chain-meta {
    font-size: 10px;
  }
  .mission-row {
    min-height: 68px;
    padding: 14px 12px;
  }
  .mission-row .mission-text {
    font-size: 12px;
  }
  .story-detail {
    display: none !important;
    grid-area: auto;
  }
  .story-detail.drawer-open {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 60;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(115deg, #253a48, #182630 80%);
    padding: 68px 21px 28px;
    min-height: 100dvh;
    animation: drawer-in 0.3s var(--ease);
  }
  @keyframes drawer-in {
    from {
      opacity: 0.4;
      transform: translateX(25px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  .drawer-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 0 18px;
    min-height: 52px;
    background: #1a2b37;
    color: var(--text-dim);
    font-size: 11px;
  }
  .drawer-bar button {
    border: 0;
    background: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    min-height: 44px;
    font-size: 12px;
  }
  .drawer-bar svg {
    height: 17px;
    width: 17px;
  }
  .drawer-bar > span {
    font-family: Consolas, monospace;
    font-size: 10px;
    color: var(--text-faint);
  }
  .sd-head {
    padding-top: 14px;
    gap: 13px;
  }
  .sd-head .emblem {
    display: flex;
    width: 40px;
    height: 45px;
  }
  .sd-head .emblem svg {
    width: 40px;
    height: 40px;
  }
  .sd-head h3 {
    font-size: 25px;
  }
  .sd-id {
    font-size: 9px;
  }
  .field {
    font-size: 12px;
    line-height: 1.9;
    margin-bottom: 10px;
  }
  .sub-list {
    margin: 20px 0;
  }
  .sub .txt {
    font-size: 12px;
    line-height: 1.95;
  }
  .sub .prog {
    font-size: 11px;
  }
  .sub {
    padding: 15px 13px;
  }
  .story-reward {
    margin-top: 24px;
  }
  .rw.wide {
    min-width: 83px;
    min-height: 80px;
    max-width: 180px;
  }
  .rw.wide .v {
    font-size: 18px;
  }
  .rw.wide.item .v {
    font-size: 11px;
  }
  .state-pill {
    margin-left: auto;
    min-height: 44px;
  }
  .detail-bottom-note {
    font-size: 10px;
    margin: 15px 0 10px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .drawer-open .mback {
    display: none;
  }
  .overview-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .overview-dialog {
    padding: 17px;
  }
  .overview-panel {
    padding: 15px;
  }
  .overview-heading h3 {
    font-size: 17px;
  }
  .overview-group {
    font-size: 10px;
    min-height: 44px;
  }
  .carousel {
    gap: 5px;
  }
  .arrow {
    width: 23px;
    height: 70px;
    padding: 0;
  }
  .arrow svg {
    height: 22px;
    width: 22px;
  }
  .ccard {
    width: clamp(180px, 54vw, 260px);
  }
  .ccard .poster {
    height: clamp(250px, 72vw, 345px);
  }
  .ccard .name {
    font-size: 15px;
  }
  .stage-track {
    gap: 8px;
  }
  .stage {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .dots {
    gap: 9px;
    margin-top: 18px;
  }
  .dots button {
    height: 10px;
    width: 10px;
    min-height: 10px;
  }
  .dots button::before {
    inset: -12px;
  }
  .cd-page {
    grid-template-columns: 1fr;
  }
  .cd-art {
    min-height: 240px;
    max-height: 240px;
  }
  .cd-art .glyph {
    font-size: 55px;
    padding: 12px;
  }
  .cd-right {
    padding: 20px;
    min-height: 0;
  }
  .detail-head h3 {
    font-size: 23px;
  }
  .cd-page .field {
    font-size: 12px;
  }
  .obj .txt {
    font-size: 12px;
  }
  .obj {
    padding: 14px 12px;
  }
  .reward-row {
    margin-top: 24px;
  }
  .cd-page .state-pill {
    margin-top: 4px;
  }
  .cl-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .cl-side {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }
  .cl-side > .cl-box:first-child {
    grid-column: 2;
    grid-row: 1;
  }
  .cl-side > .cl-box:nth-child(2) {
    grid-column: 1;
    grid-row: 1/3;
  }
  .cl-side > .cl-notice {
    grid-column: 1/-1;
    grid-row: 3;
    justify-content: center;
    font-size: 10px;
    padding: 10px;
  }
  .cl-side > .cl-task {
    grid-column: 2;
    grid-row: 2;
    padding: 12px;
  }
  .cl-side > .cl-reward-btn {
    grid-column: 1/-1;
    grid-row: 4;
  }
  .cl-box {
    padding: 14px 10px;
  }
  .cl-label {
    font-size: 11px;
  }
  .cl-refresh-btn {
    font-size: 10px;
    padding: 8px 4px;
    min-height: 40px;
    gap: 4px;
  }
  .collector-ring {
    width: 138px;
    height: 138px;
    margin: 12px auto 0;
  }
  .collector-ring .ring-caption {
    font-size: 10px;
  }
  .collector-ring .cl-prog {
    font-size: 26px;
  }
  .cl-tline {
    font-size: 10px;
    margin-top: 7px;
  }
  .cl-tag {
    font-size: 8px;
    padding: 1px 5px;
  }
  .cl-h {
    font-size: 18px;
  }
  .cl-remain {
    font-size: 9px;
  }
  .cl-quest {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
  }
  .cl-quest .ql {
    padding: 15px 13px 12px;
    grid-column: 1/-1;
    gap: 8px;
  }
  .cl-quest .qt {
    font-size: 14px;
  }
  .cl-quest .qd {
    font-size: 11px;
    line-height: 1.8;
  }
  .cl-quest .qidx {
    width: 20px;
  }
  .cl-quest .lock-tag {
    margin: 0 0 13px 41px;
    font-size: 10px;
    min-height: 40px;
  }
  .cl-quest .submit {
    font-size: 11px;
    min-height: 40px;
  }
  .cl-quest .qit {
    font-size: 10px;
  }
  .cl-all {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .cl-item {
    padding: 13px;
    min-height: 110px;
  }
  .cl-item .nm {
    font-size: 12px;
  }
  .cl-item .it {
    font-size: 10px;
  }
  .cl-search input {
    font-size: 11px;
  }
  .cl-sub-head span:first-child {
    font-size: 14px;
  }
  .cl-count2 {
    font-size: 10px;
  }
  .rp-row {
    font-size: 11px;
  }
  .reward-table td,
  .reward-table th {
    padding: 10px 5px;
    font-size: 10px;
  }
  .rp-head {
    font-size: 14px;
  }
  .rp-body {
    padding: 16px;
  }
  .mask {
    padding: 14px;
  }
  .mback {
    display: none !important;
  }
  footer {
    font-size: 9px;
    line-height: 1.8;
    margin-top: 24px;
    padding-top: 15px;
    gap: 5px;
  }
  footer > div:first-child {
    flex-basis: 100%;
  }
  footer .maker,
  footer .src {
    font-size: 9px;
  }
  .task-browser .task-list,
  .task-browser .grp-list {
    display: none !important;
  }
}
@media (max-width: 400px) {
  .wrap {
    padding-inline: 13px;
  }
  .top-title {
    font-size: 18px;
  }
  .topbar {
    gap: 5px;
  }
  .back {
    width: 26px;
  }
  .ticks {
    max-width: 65px;
  }
  .season-tag {
    font-size: 8px;
    padding: 4px 6px;
  }
  .sidenav .nav-btn {
    font-size: 10px;
    padding: 12px 5px;
    gap: 5px;
  }
  .sidenav .nav-btn .n {
    font-size: 8px;
  }
  .sidenav .nav-btn svg {
    height: 17px;
    width: 17px;
  }
  .sec-head h2 {
    font-size: 23px;
  }
  .mission-search {
    min-width: 150px;
  }
  .overview-toggle {
    font-size: 9px;
    padding-inline: 7px;
  }
  .task-browser {
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 9px;
  }
  .stage-tab {
    height: 94px;
  }
  .stage-tab .stage-no {
    font-size: 22px;
  }
  .stage-tab .stage-sub {
    font-size: 7px;
  }
  .chain-head {
    padding: 14px 13px;
  }
  .chain-name {
    font-size: 15px;
  }
  .mission-row .mission-text {
    font-size: 11px;
  }
  .cl-item {
    padding: 11px;
  }
  .cl-item .nm {
    font-size: 11px;
  }
  .cl-side {
    gap: 8px;
  }
  .collector-ring {
    width: 120px;
    height: 120px;
  }
  .cl-label {
    font-size: 10px;
  }
  .cl-refresh-btn {
    font-size: 9px;
  }
  .cl-box {
    padding: 14px 8px;
  }
  .cl-refresh-btn svg {
    width: 12px;
  }
  .state-pill {
    margin-left: 0;
  }
  .rw.wide {
    min-width: 76px;
    max-width: 162px;
  }
  .rw.wide.item .v {
    font-size: 10px;
  }
  .overview-stages {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .overview-group {
    padding: 9px 8px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .view.active,
  .detail-render,
  .chain-tree,
  .story-detail.drawer-open {
    opacity: 1;
    transform: none;
  }
}
