@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #14181b;
  --panel: #1c2125;
  --panel2: #22282c;
  --line: #333b3f;
  --muted: #a1abab;
  --text: #eceddf;
  --mint: #90dfca;
  --ink: #102620;
  --top: 66px;
  --rail: 91px;
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #b0fbe6;
  outline-offset: 3px;
}
button {
  touch-action: manipulation;
}
button,
select,
input {
  border-radius: 4px;
}
button:enabled:hover {
  filter: brightness(1.13);
}
.ico {
  vertical-align: middle;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 19px;
  letter-spacing: 0.045em;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.85;
  color: #b4bdba;
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #161a1d;
  border-bottom: 1px solid var(--line);
  height: var(--top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 29px 0 23px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
.brand > svg {
  width: 39px;
  height: 39px;
  color: var(--mint);
}
.brand b {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Arial, sans-serif;
  font-weight: 850;
  font-size: 25px;
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.brandzh {
  font-family: "Microsoft JhengHei", sans-serif;
  font-size: 21px;
  letter-spacing: 0.14em;
}
.brandsep {
  color: #61726d;
  font-weight: 300;
  font-size: 22px;
}
.brand small {
  display: block;
  font:
    9px/1.4 Consolas,
    monospace;
  letter-spacing: 0.26em;
  color: #a2b1ab;
  margin-top: 3px;
}
.top-end,
.system,
.page-head,
.datebox,
.panelhead,
.panelhead h2,
.mapfoot,
.mapfoot span,
.railbtn,
.eyeline,
.spread,
.soft,
.primary,
.textbtn,
.modalactions,
.planline,
.sectortitle,
.newskicker,
.top-end > .iconbtn {
  display: flex;
  align-items: center;
}
.top-end {
  gap: 11px;
}
.system {
  gap: 9px;
  color: #b5c7bc;
  font-size: 12px;
  letter-spacing: 0.09em;
}
.led {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
}
.top-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 5px;
}
.iconbtn {
  height: 33px;
  width: 33px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  display: inline-grid;
  place-items: center;
  color: #c1cbc7;
}
.top-end > .iconbtn {
  justify-content: center;
}
.iconbtn:hover {
  background: #29302f;
}
.rail {
  position: fixed;
  z-index: 4;
  top: var(--top);
  bottom: 0;
  left: 0;
  width: var(--rail);
  border-right: 1px solid var(--line);
  background: #171c1f;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 21px 9px 14px;
}
.rail nav {
  display: grid;
  gap: 6px;
}
.railbtn {
  width: 100%;
  min-height: 66px;
  background: transparent;
  border: 1px solid transparent;
  color: #a1aaa9;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
}
.railbtn.current {
  border-color: #3b5b52;
  background: #243a34;
  color: #a0e9d2;
}
.railbtn.current:before {
  content: "";
  position: absolute;
  left: -10px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: var(--mint);
}
.railbtn:hover {
  background: #222a2d;
}
.railfoot {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.railfoot .railbtn {
  min-height: 54px;
}
main {
  margin-left: var(--rail);
  padding: 27px clamp(20px, 2.6vw, 52px) 14px;
  max-width: 2000px;
  min-height: calc(100vh - var(--top));
  background-image: radial-gradient(
    ellipse at 80% 1%,
    #1c252580,
    transparent 45%
  );
}
.page-head {
  justify-content: space-between;
  margin-bottom: 22px;
}
.eyeline {
  gap: 10px;
  color: #aeb9b4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.eyeline i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--mint);
}
.eyeline span {
  color: #606e69;
}
.page-head h1 {
  font-size: clamp(31px, 2.8vw, 44px);
  line-height: 1.35;
  font-weight: 760;
  letter-spacing: 0.09em;
}
.datebox {
  gap: 12px;
  color: #a6b4af;
  font-size: 13px;
}
.datebox > i {
  height: 24px;
  width: 1px;
  background: var(--line);
  margin: 0 3px;
}
.datebox small {
  display: block;
  font-size: 10px;
  color: #9aa6a1;
  margin-bottom: 2px;
}
.datebox b,
.count,
.micro,
.scale,
.mapstamp span,
.newsitem time,
footer,
.choiceno,
.scene-tag,
.mapfoot,
.tag,
.row strong {
  font-family: Consolas, "Microsoft JhengHei", monospace;
}
.datebox b {
  font-family: Consolas, "Microsoft JhengHei", monospace;
  font-size: 16px;
  color: #e0e4da;
  font-weight: 600;
  letter-spacing: 0.035em;
}
.datebox b span {
  font-size: 11px;
  color: #a6b3ac;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
}
.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.38fr) minmax(285px, 1fr);
  gap: 18px;
  align-items: stretch;
}
.panelhead {
  height: 45px;
  padding: 0 16px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #202529;
}
.panelhead h2 {
  font-size: 14px;
  gap: 9px;
  letter-spacing: 0.08em;
}
.panelhead h2 svg {
  color: #b1cbc1;
}
.micro {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a1b3a9;
  font-size: 11px;
}
.micro .led {
  width: 5px;
  height: 5px;
}
.count {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #d3dbd3;
}
.count em {
  font-style: normal;
  color: #818e87;
}
.mapbox {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mapfield {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 395px;
  background: #a7a78b;
  touch-action: pan-y;
}
.mapplane {
  position: absolute;
  inset: 0;
  transition: transform 0.22s ease-out;
  transform-origin: 50% 50%;
}
.atlas-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  user-select: none;
  filter: saturate(0.83) contrast(0.93) brightness(1.06);
}
.mapfield:after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 28px #1f30251f;
  z-index: 2;
  background-image:
    linear-gradient(#23372a16 1px, transparent 1px),
    linear-gradient(90deg, #23372a16 1px, transparent 1px);
  background-size: 60px 60px;
}
.mapstamp {
  position: absolute;
  top: 15px;
  left: 16px;
  pointer-events: none;
  padding: 9px 13px 8px;
  background: #172323e8;
  color: #f2eede;
  border-left: 3px solid var(--mint);
  box-shadow: 0 1px 8px #1e281d22;
}
.mapstamp span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #c3cbb9;
}
.mapstamp b {
  display: block;
  font-size: 21px;
  letter-spacing: 0.19em;
  margin-top: 3px;
}
.compass {
  position: absolute;
  right: 16px;
  top: 12px;
  display: grid;
  justify-items: center;
  filter: drop-shadow(0 1px 2px #f8edcc);
  color: #27332f;
  font:
    700 12px Consolas,
    monospace;
}
.compass svg {
  width: 20px;
  height: 32px;
}
.marker {
  position: absolute;
  transform: translate(-17px, -50%);
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 6px 0;
  z-index: 2;
  color: #eef0e4;
  filter: drop-shadow(0 2px 2px #1b261d70);
}
.locator {
  height: 30px;
  width: 30px;
  border: 2px solid var(--pin);
  background: #222c2e;
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  border-radius: 3px;
}
.locator b {
  transform: rotate(-45deg);
  color: var(--pin);
  font:
    700 13px Consolas,
    monospace;
}
.pinname {
  background: #1c2628f2;
  border: 1px solid #aab2a350;
  border-left: 0;
  font-size: 13px;
  letter-spacing: 0.025em;
  padding: 5px 8px 5px 10px;
  line-height: 1.15;
  border-radius: 0 3px 3px 0;
  white-space: nowrap;
}
.marker.chosen {
  z-index: 3;
}
.chosen .locator {
  background: var(--mint);
  border: 2px solid #1e3931;
  outline: 1px solid #a7edd8;
  box-shadow: 0 0 0 6px #8ae8c64d;
}
.chosen .locator b {
  color: #19372a;
}
.chosen .pinname {
  color: #132b23;
  background: #9ee6cf;
  font-weight: 750;
  border-color: #304c41;
}
.maptools {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  background: #1f2929f5;
  box-shadow: 0 2px 6px #273a2f55;
  border: 1px solid #6d786b;
  border-radius: 4px;
  z-index: 3;
}
.maptools button {
  border: 0;
  border-radius: 0;
  width: 34px;
  height: 32px;
  color: #dce6da;
}
.maptools button + button {
  border-left: 1px solid #4f5953;
}
.scale {
  position: absolute;
  bottom: 15px;
  right: 16px;
  color: #24342e;
  font-weight: bold;
  font-size: 10px;
  text-shadow: 0 1px 2px #f9f4df;
  background: #e7e6cec9;
  padding: 3px 6px;
  text-align: center;
}
.scale i {
  display: block;
  width: 49px;
  height: 5px;
  border: solid #354138;
  border-width: 0 1px 2px;
}
.mapfoot {
  height: 34px;
  background: #20262a;
  justify-content: space-between;
  padding: 0 13px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #a8b4af;
}
.mapfoot span {
  gap: 7px;
}
.mobileplay {
  display: none;
}
.worldstats {
  margin: 14px 0;
  border: 1px solid var(--line);
  padding: 10px 14px;
  background: #232b2c;
}
.worldstats summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--mint);
}
.mapfoot .ico {
  color: #9abcd0;
}
.sector {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.scene {
  height: clamp(144px, 13.4vw, 242px);
  position: relative;
  overflow: hidden;
  background: #4b5349;
}
.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
  display: block;
}
.scene:after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #111d1eaa);
  pointer-events: none;
}
.scene-tag,
.scene-nav {
  position: absolute;
  bottom: 10px;
  z-index: 1;
}
.scene-tag {
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f3f2e4;
  background: #1b2626dc;
  padding: 4px 8px;
  border: 1px solid #a1ada966;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.scene-tag i {
  width: 5px;
  height: 5px;
}
.scene-nav {
  right: 10px;
  display: flex;
  gap: 4px;
}
.scene-nav .iconbtn {
  background: #152022d9;
  border: 1px solid #8c9a8d70;
  color: #e9ecdf;
  width: 25px;
  height: 25px;
}
.sectorbody {
  padding: 17px 18px 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.sectortitle {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.sectortitle h2 {
  font-size: clamp(22px, 1.8vw, 30px);
  letter-spacing: 0.08em;
}
.sectortitle > span,
.tag {
  background: #2b3733;
  border: 1px solid #42564d;
  color: #a9cdbb;
  border-radius: 3px;
  font-size: 10.5px;
  padding: 3px 6px;
  white-space: nowrap;
}
.sectorbody > p {
  font-size: 13.5px;
  line-height: 1.8;
  margin: 9px 0 12px;
  letter-spacing: 0.035em;
}
.sectorstats {
  border-top: 1px solid var(--line);
  padding: 6px 0 10px;
  margin-top: auto;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #aab5ae;
  font-size: 13px;
}
.row > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.row strong {
  color: #dde4da;
  font-size: 14px;
  font-weight: 500;
}
.row strong small {
  font-size: 11px;
  color: #a4afa8;
}
.sectorstats .row {
  padding: 4.5px 0;
  font-size: 12px;
}
.sectorstats .row svg {
  color: #899d94;
}
.soft,
.primary,
.textbtn {
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  line-height: 1.35;
}
.soft {
  padding: 9px 13px;
  background: #2a3033;
  color: #e0e4db;
  font-size: 13px;
}
.primary {
  justify-content: space-between;
  padding: 11px 15px;
  background: var(--mint);
  border: 1px solid #a1e6d4;
  color: var(--ink);
  font-weight: 750;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.sectorbody > .primary {
  width: 100%;
}
.soft.active {
  background: #2a443b;
  color: #adedd8;
  border-color: #51715e;
}
.textbtn {
  background: none;
  border: 0;
  color: #abbab2;
  font-size: 12px;
  padding: 6px 0 6px 8px;
}
.newsstrip {
  margin-top: 18px;
}
.newsgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 13px 0;
}
.newsitem {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 2px 17px;
  border-radius: 0;
}
.newsgrid .newsitem + .newsitem {
  border-left: 1px solid var(--line);
}
.newsitem img {
  width: 78px;
  height: 52px;
  object-fit: cover;
  border: 1px solid #5a605740;
  border-radius: 3px;
}
.newstext {
  display: grid;
  gap: 6px;
  flex: 1;
}
.newskicker {
  gap: 9px;
}
.newskicker b {
  color: #a2c7b9;
  background: #293934;
  padding: 2px 5px;
  font-size: 10px;
  border-radius: 2px;
  font-weight: 500;
}
.newskicker time {
  font-size: 11px;
  color: #94a59d;
}
.newstext strong {
  font-size: 14px;
  letter-spacing: 0.035em;
  font-weight: 600;
}
.newsitem > .ico {
  color: #879890;
}
.newstext small {
  font-size: 13px;
  line-height: 1.7;
  color: #a9b5ad;
}
.allnews .newsitem {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
footer {
  margin-top: 20px;
  padding: 11px 1px 4px;
  border-top: 1px solid #2e3738;
  display: flex;
  justify-content: space-between;
  color: #85918c;
  font-size: 10px;
  letter-spacing: 0.06em;
}
footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
footer svg {
  width: 17px;
  height: 17px;
  color: #80968b;
}
.footerbar {
  color: #627069;
}
dialog {
  border: 1px solid #4b5a54;
  border-radius: 8px;
  background: #20272a;
  color: var(--text);
  width: min(520px, calc(100% - 24px));
  max-height: 90dvh;
  padding: 26px;
  box-shadow: 0 20px 70px #060c0d99;
  overflow-y: auto;
}
dialog::backdrop {
  background: #081012b9;
}
dialog > .modalclose {
  position: absolute;
  top: 12px;
  right: 12px;
}
dialog h2 {
  font-size: 25px;
  line-height: 1.45;
  margin: 4px 30px 15px 0;
}
dialog h3 {
  margin: 12px 0 7px;
}
dialog p {
  font-size: 14px;
  margin: 7px 0;
}
dialog > .primary,
dialog > div > .primary {
  width: 100%;
}
.modalactions {
  flex-wrap: wrap;
  gap: 9px;
  margin: 15px 0;
}
.birth-card,
.identity {
  display: flex;
  align-items: center;
  gap: 18px;
}
.birth-card {
  margin: 12px 0 16px;
}
.birth-card img,
.identity img {
  width: 100px;
  height: 116px;
  object-fit: cover;
  border-radius: 3px;
  background: #718479;
}
.birth-card h3,
.identity h2 {
  font-size: 25px;
  margin: 9px 0 4px;
}
.birth-card span:not(.tag),
.identity span:not(.tag) {
  color: #b9c3bb;
  font-size: 13px;
}
.storybox,
.result,
.memory {
  background: #26332e;
  padding: 11px 14px;
  border-left: 2px solid #78aa92;
  margin: 10px 0;
}
.storybox .tag {
  font-weight: 400;
}
.storybox p {
  margin: 5px 0 0;
}
select,
input {
  background: #151c1d;
  color: #e4e9dd;
  border: 1px solid #46534d;
  padding: 8px 10px;
  min-width: 0;
}
#custom-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 13px;
}
label {
  font-size: 13px;
  color: #b4c0b7;
}
#custom-form label {
  display: grid;
  gap: 5px;
}
#notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  max-width: min(450px, 85vw);
  pointer-events: none;
}
#notice:not(:empty) {
  background: #c4e2d3;
  color: #183525;
  border: 1px solid #789d88;
  padding: 11px 18px;
  box-shadow: 0 5px 24px #0005;
  border-radius: 5px;
  font-size: 14px;
}
.empty,
.life-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 18px;
}
.empty {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.empty > img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.empty > div {
  padding: 24px;
}
.empty .primary {
  margin-top: 18px;
}
.pad,
.profilebody,
.eventbody {
  padding: 20px;
}
.pad h2,
.profile h2 {
  margin: 0 0 12px;
}
.pad + .panel,
.eventcard + .panel {
  margin-top: 15px;
}
.identity {
  padding: 20px 16px;
  background: #28312e;
  border-bottom: 1px solid var(--line);
}
.identity small {
  display: block;
  color: #aabbb0;
  margin-top: 7px;
  font-size: 12px;
}
.identity img {
  width: 73px;
  height: 93px;
}
.profile {
  align-self: start;
}
.meter {
  margin: 8px 0 13px;
}
.meter > div,
.spread,
.planline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.meter > div {
  font-size: 13px;
  color: #b8c4bc;
  margin-bottom: 5px;
}
.meter b {
  color: #e0e8dc;
  font:
    14px Consolas,
    monospace;
}
.meter i {
  display: block;
  height: 4px;
  background: #35403c;
  overflow: hidden;
}
.meter em {
  display: block;
  height: 100%;
}
.wide {
  width: 100%;
  margin-top: 12px;
}
.eventpic {
  height: 210px;
  background-size: cover;
  background-position: 50% 56%;
  position: relative;
}
.eventpic > div {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 7px;
  background: linear-gradient(0deg, #0c1719e6, transparent 74%);
  padding: 20px;
}
.eventpic h2 {
  font-size: 26px;
}
.eventbody p {
  margin: 0 0 15px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: #272f30;
  border: 1px solid #47564e;
  text-align: left;
  margin: 8px 0;
}
.choiceno {
  color: var(--mint);
  font-size: 12px;
}
.choice strong {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}
.choice small {
  color: #a2c6af;
  font-size: 11px;
}
.result {
  font-size: 13px;
  line-height: 1.8;
}
.focusgrid,
.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 17px;
}
.planline {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13px;
}
.statgrid,
.peoplegrid,
.jobgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
}
.jobgrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.job,
.person {
  background: #242c2d;
  border: 1px solid #35413d;
  padding: 15px;
  border-radius: 4px;
}
.job {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.job p {
  font-size: 13px;
  margin: 7px 0;
  flex: 1;
}
.job small {
  font-size: 11px;
  color: #a2b1a7;
  margin: 6px 0 12px;
}
.peoplegrid {
  margin-top: 16px;
}
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px;
}
.person img {
  width: 54px;
  height: 66px;
  object-fit: cover;
}
.person span {
  flex: 1;
  display: grid;
  gap: 4px;
}
.person small {
  color: #aebbb1;
  font-size: 12px;
}
.itempic {
  width: 100%;
  height: 135px;
  object-fit: contain;
  background: #94958a;
  border-radius: 3px;
  margin-bottom: 12px;
}
.itemcard {
  padding: 12px;
}
.roompic,
.articlepic,
.ending > img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 3px;
}
.articlepic {
  margin: 17px 0 13px;
}
.ending > img {
  max-height: 360px;
}
.ending h2 {
  margin-top: 10px;
}
.spread {
  flex-wrap: wrap;
}
.spread h2 {
  margin: 0;
}
.entry {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  gap: 20px;
}
.entry time {
  color: var(--mint);
  font:
    12px Consolas,
    monospace;
  min-width: 42px;
}
.entry p {
  font-size: 13px;
  margin-top: 3px;
}
.entry b {
  font-size: 14px;
}
.save-slot {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.save-slot small {
  color: #b5c2b8;
  display: block;
  margin-top: 4px;
}
.save-slot > div:last-child {
  display: flex;
  gap: 5px;
}
.save-slot .soft {
  padding: 7px 10px;
}
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.setting input {
  accent-color: var(--mint);
  width: 19px;
  height: 19px;
}
.panel,
.birth-card {
  animation: appear 0.22s ease-out;
}
@keyframes appear {
  from {
    opacity: 0.65;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.reduce * {
  scroll-behavior: auto !important;
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 1600px) {
  main {
    padding-top: 35px;
  }
  .mapfield {
    min-height: 485px;
  }
  .sectorbody {
    padding: 22px;
  }
  .sectorbody > p {
    font-size: 15px;
  }
  .newsitem img {
    width: 98px;
    height: 62px;
  }
}
@media (max-width: 1080px) {
  :root {
    --rail: 72px;
  }
  .rail {
    padding-left: 5px;
    padding-right: 5px;
  }
  .railbtn {
    font-size: 10.5px;
  }
  .atlas-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
    gap: 12px;
  }
  .mapfield {
    min-height: 385px;
  }
  .sectorbody {
    padding: 13px;
  }
  .sectortitle {
    gap: 5px;
  }
  .sectortitle h2 {
    font-size: 22px;
  }
  .pinname {
    font-size: 11px;
    padding: 5px 5px 5px 8px;
  }
  .locator {
    width: 25px;
    height: 25px;
  }
  .locator b {
    font-size: 11px;
  }
  .mapstamp b {
    font-size: 18px;
  }
  .newsitem {
    gap: 8px;
    padding: 1px 12px;
  }
  .newsitem img {
    width: 57px;
  }
  .mapstamp {
    top: 10px;
    left: 10px;
  }
  .jobgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .life-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(210px, 1fr);
  }
}
@media (max-width: 760px) {
  :root {
    --top: 56px;
    --rail: 0px;
  }
  .top {
    padding: 0 13px;
  }
  .brand > svg {
    width: 32px;
    height: 34px;
  }
  .brand {
    gap: 6px;
  }
  .brand b {
    font-size: 19px;
    gap: 7px;
  }
  .brandzh {
    font-size: 17px;
  }
  .brand small {
    font-size: 7px;
  }
  .top-end {
    gap: 2px;
  }
  .system {
    font-size: 10px;
    gap: 5px;
  }
  .top-divider {
    margin: 0 4px;
  }
  .top-end .iconbtn {
    width: 30px;
  }
  .rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 2px max(2px, env(safe-area-inset-bottom));
    background: #181e21;
    display: flex;
    flex-direction: row;
    border-top: 1px solid #3b4543;
    border-right: 0;
    z-index: 6;
  }
  .rail nav {
    display: flex;
    flex: 1;
    gap: 0;
  }
  .railbtn,
  .railfoot .railbtn {
    flex: 1;
    min-height: 54px;
    gap: 4px;
    font-size: 10px;
    border: 0;
    border-radius: 0;
    letter-spacing: 0;
    padding: 5px 1px;
  }
  .railbtn svg {
    width: 18px;
    height: 18px;
  }
  .railbtn.current:before {
    left: 16%;
    right: 16%;
    top: 0;
    height: 2px;
    width: auto;
    bottom: auto;
  }
  .railfoot {
    padding: 0;
    border: 0;
    display: flex;
    flex: 0 0 14%;
  }
  .railbtn.current {
    background: #22332e;
  }
  main {
    margin: 0;
    padding: 16px 12px 73px;
  }
  .page-head {
    margin-bottom: 13px;
  }
  .page-head h1 {
    font-size: 29px;
  }
  .eyeline {
    font-size: 9px;
    gap: 7px;
    margin-bottom: 4px;
  }
  .datebox {
    gap: 6px;
  }
  .datebox > i,
  .datebox > .ico:last-of-type,
  .weather {
    display: none;
  }
  .datebox b {
    font-size: 13px;
  }
  .datebox > svg {
    width: 15px;
  }
  .datebox small {
    font-size: 9px;
  }
  .atlas-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mapfield {
    min-height: 0;
    height: clamp(300px, 77vw, 400px);
    flex: auto;
  }
  .mapstamp {
    padding: 6px 8px;
  }
  .mapstamp span {
    font-size: 6px;
  }
  .mapstamp b {
    font-size: 15px;
  }
  .panelhead {
    height: 39px;
    padding: 0 12px;
  }
  .panelhead h2 {
    font-size: 13px;
  }
  .mapfoot {
    height: 42px;
    font-size: 10px;
  }
  .mapfoot .zoominfo {
    display: none;
  }
  .mobileplay {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-direction: row-reverse;
    padding: 6px 10px;
    color: #152e26;
    background: var(--mint);
    border: 0;
    font-size: 12px;
    font-weight: 650;
  }
  .maptools {
    left: 9px;
    bottom: 10px;
  }
  .maptools button {
    width: 29px;
    height: 28px;
  }
  .compass {
    right: 9px;
    top: 8px;
  }
  .pinname {
    font-size: 11px;
  }
  .marker {
    transform: translate(-12px, -50%);
  }
  .marker[data-act="district:port"] {
    flex-direction: row-reverse;
    transform: translate(calc(-100% + 10px), -50%);
  }
  .marker[data-act="district:port"] .pinname {
    padding: 5px 8px 5px 5px;
  }
  .sector .scene {
    height: 165px;
  }
  .sectorbody {
    padding: 14px;
  }
  .sectorstats {
    display: flex;
    gap: 10px;
    justify-content: space-between;
  }
  .sectorstats .row {
    display: grid;
    gap: 4px;
  }
  .sectorstats .row span {
    gap: 4px;
    font-size: 11px;
  }
  .sectorstats .row strong {
    font-size: 13px;
  }
  .newsstrip {
    margin-top: 12px;
  }
  .newsgrid {
    display: block;
    padding: 2px 11px;
  }
  .newsgrid .newsitem {
    padding: 11px 0;
  }
  .newsgrid .newsitem + .newsitem {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .newsitem img {
    width: 61px;
    height: 43px;
  }
  .newstext strong {
    font-size: 13px;
  }
  .newsitem .newskicker {
    gap: 7px;
  }
  .newstext {
    gap: 4px;
  }
  .newsitem time {
    font-size: 10px;
  }
  footer {
    margin-top: 14px;
    font-size: 8px;
  }
  .empty,
  .life-grid {
    grid-template-columns: 1fr;
  }
  .empty {
    gap: 0;
  }
  .empty > img {
    height: 160px;
  }
  .life-grid {
    gap: 12px;
  }
  .pad,
  .eventbody,
  .profilebody {
    padding: 15px;
  }
  .eventpic {
    height: 170px;
  }
  .eventpic h2 {
    font-size: 23px;
  }
  .focusgrid {
    gap: 5px;
  }
  .soft {
    padding: 9px 10px;
  }
  .modalactions .soft {
    font-size: 12px;
  }
  .peoplegrid {
    grid-template-columns: 1fr;
  }
  .jobgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .job {
    padding: 10px;
  }
  .job h3 {
    font-size: 15px;
  }
  .job small {
    line-height: 1.6;
  }
  .planline {
    flex-wrap: wrap;
  }
  dialog {
    padding: 20px 16px;
  }
  .newsgrid .newsitem > .ico {
    margin-left: auto;
  }
  #notice {
    bottom: 70px;
    right: 10px;
  }
  .save-slot {
    font-size: 13px;
  }
}
@media (min-width: 761px) and (max-height: 730px) {
  :root {
    --top: 55px;
  }
  main {
    padding-top: 16px;
  }
  .page-head {
    margin-bottom: 14px;
  }
  .rail {
    padding-top: 12px;
  }
  .railbtn {
    min-height: 57px;
  }
  .scene {
    height: 130px;
  }
  .sectorbody {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .mapfield {
    min-height: 350px;
  }
  .newsstrip {
    margin-top: 13px;
  }
}
