@font-face {
  font-family: Manrope;
  src: url("assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b1523;
  --panel: #111f30;
  --panel2: #15263a;
  --line: #293e54;
  --muted: #a5b5c9;
  --text: #eef4fc;
  --blue: #429eff;
  --green: #87d9ad;
  --gold: #f2cd7e;
  --radius: 10px;
  font:
    14px/1.6 Manrope,
    system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #9acaff;
  outline-offset: 4px;
}
button {
  border: 0;
}
p {
  color: var(--muted);
  margin: 8px 0 16px;
}
h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(26px, 2.8vw, 40px);
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
small {
  font-size: 12px;
}
.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 12px;
  background: #fff;
  color: #14253a;
}
.skip:focus {
  top: 10px;
}
.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #0e1b2b;
  padding: 0 28px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 252px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.7px;
}
.brand em {
  font-style: normal;
  color: #7e9ab8;
  font-weight: 400;
}
.brand small {
  display: block;
  color: #839cb8;
  font-size: 9px;
  letter-spacing: 2.4px;
  margin-top: 3px;
}
.brand-mark {
  display: flex;
  align-items: center;
  font-size: 22px;
  color: #cfe6ff;
  border: 1px solid #45617c;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  justify-content: center;
  letter-spacing: -4px;
  padding-right: 4px;
}
.brand-mark span {
  font-size: 12px;
  color: var(--blue);
  margin-top: 13px;
}
.topnav {
  display: flex;
  align-self: stretch;
  gap: 27px;
  align-items: stretch;
}
.topnav a {
  display: flex;
  align-items: center;
  position: relative;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}
.topnav a[aria-current="page"] {
  color: #fff;
}
.topnav a[aria-current="page"]:after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--blue);
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 3px;
}
.topnav a:hover {
  color: #fff;
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  font-size: 12px;
  color: #c1d1e3;
}
.icon-button {
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  font-size: 26px;
  color: #adc5df;
}
.icon-button:hover {
  background: var(--panel2);
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.app-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 92px);
}
.sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(145deg, #122237, #0e1a29 60%);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.portrait-wrap {
  position: relative;
  aspect-ratio: 1.16;
  overflow: hidden;
  border: 1px solid #476079;
  border-radius: 8px;
}
.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 37%;
}
.portrait-wrap:after {
  content: "";
  position: absolute;
  inset: 65% 0 0;
  background: linear-gradient(transparent, #071522bf);
}
.portrait-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  height: 6px;
  width: 6px;
  background: var(--green);
  display: inline-block;
  border-radius: 50%;
}
.character-summary h2 {
  font-size: 24px;
}
.character-summary > p {
  font-size: 12px;
  margin: 6px 0 24px;
}
.dot-separator {
  color: #546e88;
  margin: 0 5px;
}
.vital {
  display: grid;
  grid-template-columns: 20px 64px 1fr 30px;
  gap: 7px;
  align-items: center;
  margin: 14px 0;
  font-size: 11px;
}
.vital .icon {
  width: 15px;
  color: #9bb5cf;
}
.vital span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.meter {
  height: 6px;
  border-radius: 6px;
  background: #25374c;
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--blue);
  transition: width 0.3s;
}
.vital.health .meter > span {
  background: var(--green);
}
.vital.happiness .meter > span {
  background: var(--gold);
}
.cash-row {
  border-block: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  font-size: 12px;
}
.cash-row strong {
  font-size: 20px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
#sidenav {
  display: grid;
  gap: 5px;
}
#sidenav a {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 12px;
  color: #bdcce0;
  font-size: 12px;
  font-weight: 600;
}
#sidenav a:hover {
  background: #182b40;
}
#sidenav a[aria-current="page"] {
  background: linear-gradient(90deg, #1c3e60, #172d44);
  border-color: #2d4c6c;
  color: #d8ebff;
}
#sidenav a[aria-current="page"] .icon {
  color: var(--blue);
}
.count {
  margin-left: auto;
  background: #2d6aa5;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 10px;
  color: #fff;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #8aa2bc;
}
.sidebar-bottom > .live-dot {
  margin-right: 6px;
}
.sidebar-bottom button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: none;
  padding: 12px 0 0;
  text-align: left;
  font-size: 11px;
  color: #a8bfd6;
  letter-spacing: 0;
}
main {
  padding: 0 27px;
  min-width: 0;
}
.page-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 17px 0;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #8a9eb6;
}
.prototype-label {
  letter-spacing: 0.3px;
  color: #8199b3;
}
.hero {
  height: 244px;
  position: relative;
  overflow: hidden;
  border: 1px solid #3b5165;
  border-radius: 10px;
  background: #273e4a url("assets/city.webp") center 53% / cover;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #091828ba, transparent 90%),
    linear-gradient(0deg, #081728c9, transparent 75%);
}
.hero-content {
  position: absolute;
  bottom: 27px;
  left: 28px;
  right: 22px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a7c5e3;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero p {
  color: #d6e1e9;
  font-size: 14px;
  margin: 10px 0 0;
}
.hero-meta {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #091522b8;
  border: 1px solid #ffffff24;
  border-radius: 5px;
  padding: 5px 10px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #e8eef6;
  font-size: 10px;
}
.hero-meta .icon {
  width: 13px;
  height: 13px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 18px 0;
}
.summary-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(115deg, #172b41, #102033);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  min-height: 108px;
  transition: border-color 0.2s;
}
.summary-card:hover {
  border-color: #5683ab;
}
.summary-card > .icon {
  width: 28px;
  height: 28px;
  color: #73b5f7;
  margin-top: 2px;
}
.summary-card .label {
  display: block;
  color: #93bce6;
  font-size: 11px;
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}
.summary-card strong {
  font-size: 13px;
  display: block;
}
.summary-card small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 18px;
}
.panel {
  background: linear-gradient(130deg, #132336, #101d2d);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.panel-head {
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.panel-head h2 {
  font-size: 18px;
}
.panel-head .icon {
  color: #80b7ef;
}
.panel-head .heading-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-head small {
  font-size: 10px;
  color: var(--muted);
}
.panel-body {
  padding: 20px;
}
.map {
  aspect-ratio: 1.8;
  position: relative;
  background: #365447 url("assets/map.webp") center/cover;
}
.map:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 35px #0b19204d;
}
.map-pin {
  position: absolute;
  background: #0d2136f0;
  border: 1px solid #749cbd;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  box-shadow: 0 4px 14px #0006;
  font-size: 10px;
  font-weight: 700;
  z-index: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.map-pin:hover {
  background: #215c92;
  border-color: #bce1ff;
}
.map-pin .icon {
  width: 16px;
  height: 16px;
}
.map-pin.market {
  left: 23%;
  top: 32%;
}
.map-pin.townhall {
  left: 53%;
  top: 48%;
}
.map-pin.school {
  left: 77%;
  top: 75%;
}
.map-pin.park {
  left: 24%;
  top: 79%;
}
.map-pin.workshop {
  left: 81%;
  top: 25%;
}
.map-caption {
  padding: 11px 18px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  color: #9cb0c6;
  gap: 10px;
}
.text-button {
  background: none;
  color: #8dc4ff;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
}
.text-button:hover {
  text-decoration: underline;
}
.task {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 17px;
  border-bottom: 1px solid var(--line);
}
.task:last-child {
  border: 0;
}
.task-icon {
  height: 38px;
  width: 38px;
  display: grid;
  place-items: center;
  background: #20364e;
  border: 1px solid #34516d;
  border-radius: 8px;
  color: #8cc3fa;
}
.task h3 {
  font-size: 12px;
  letter-spacing: 0;
}
.task p {
  font-size: 10px;
  line-height: 1.6;
  margin: 4px 0 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 6px;
  background: #287fe0;
  border: 1px solid #4999ed;
  box-shadow: inset 0 1px #ffffff13;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.button:hover:not(:disabled) {
  background: #3997f5;
}
.button.secondary {
  background: #1b3048;
  border-color: #385574;
  color: #cce1f7;
}
.button.secondary:hover:not(:disabled) {
  background: #264361;
}
.button.danger {
  background: #62323e;
  border-color: #a75b68;
}
.button.small {
  padding: 8px 11px;
  min-height: 33px;
  font-size: 10px;
}
.season-footer {
  padding: 15px 17px;
  background: #0c1929;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.season-footer p {
  font-size: 10px;
  margin: 0;
}
.season-footer strong {
  display: block;
  color: #dce8f6;
  font-size: 11px;
}
.news {
  margin-top: 18px;
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.news-item {
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.news-item + .news-item {
  border-left: 1px solid var(--line);
}
.news-date {
  display: flex;
  flex-direction: column;
  border: 1px solid #355474;
  border-radius: 6px;
  min-width: 44px;
  align-items: center;
  padding: 5px;
  color: #a6c7e8;
  font-size: 9px;
}
.news-date strong {
  font-size: 18px;
  color: #e1edfb;
}
.news-item h3 {
  font-size: 12px;
  letter-spacing: 0;
}
.news-item p {
  font-size: 11px;
  margin: 6px 0 10px;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 23px 0;
  color: #718ba5;
  font-size: 9px;
}
.footer button {
  background: none;
  color: #9ab5d1;
  font-size: 10px;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 24px;
}
.page-intro p {
  margin: 8px 0 0;
  font-size: 12px;
}
.page-intro h1 {
  font-size: 30px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}
.stack {
  display: grid;
  gap: 18px;
  align-content: start;
}
.detail-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.detail-row:first-child {
  padding-top: 0;
}
.detail-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.detail-row p {
  font-size: 11px;
  margin: 5px 0 0;
}
.detail-row strong {
  font-size: 12px;
}
.badge {
  background: #203b55;
  color: #9cc7f2;
  padding: 4px 8px;
  border: 1px solid #345472;
  border-radius: 4px;
  font-size: 9px;
  white-space: nowrap;
}
.badge.green {
  color: #9bdab3;
  background: #1c3932;
  border-color: #325847;
}
.subtle {
  font-size: 11px;
  color: var(--muted);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.metric {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.metric small {
  color: var(--muted);
  font-size: 11px;
}
.metric strong {
  display: block;
  font-size: 25px;
  margin: 7px 0 3px;
}
.metric span {
  font-size: 10px;
  color: #849db8;
}
.wide-meter {
  height: 10px;
  margin: 20px 0 10px;
}
.action-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.action-row .button {
  font-size: 12px;
  min-height: 42px;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 18px;
}
.store-card {
  padding: 22px;
}
.store-card > .icon {
  height: 34px;
  width: 34px;
  color: #95c5ee;
  margin-bottom: 15px;
}
.store-card h3 {
  font-size: 14px;
}
.store-card p {
  font-size: 11px;
  min-height: 55px;
}
.store-price {
  font-size: 22px;
  font-weight: 750;
  color: var(--green);
}
.store-card .button {
  margin-top: 18px;
  width: 100%;
}
.location-list {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.family-avatar {
  height: 45px;
  width: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #27435e;
  color: #b7d7fa;
  font-weight: 700;
  flex: none;
}
.person {
  display: flex;
  gap: 13px;
  align-items: center;
}
.letter {
  color: #a0c8f2;
  font-size: 25px;
  line-height: 1;
}
.message-list {
  display: grid;
  gap: 12px;
}
.message-button {
  display: flex;
  gap: 15px;
  text-align: left;
  width: 100%;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  align-items: center;
}
.message-button:hover {
  border-color: #5886b1;
}
.message-button h3 {
  font-size: 14px;
}
.message-button p {
  font-size: 11px;
  margin: 5px 0 0;
}
.message-button .badge {
  margin-left: auto;
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.journal {
  list-style: none;
  padding: 0;
  margin: 0;
}
.journal li {
  padding: 13px 0 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #b1c2d6;
  position: relative;
}
.journal li:before {
  content: "";
  width: 5px;
  height: 5px;
  background: #6d9ccc;
  position: absolute;
  left: 0;
  top: 20px;
  border-radius: 50%;
}
.journal li:last-child {
  border: 0;
}
.bill {
  background: #102136;
  border: 1px solid #355574;
  border-radius: 8px;
  padding: 22px;
  margin-top: 20px;
}
.bill p {
  font-size: 12px;
}
.callout {
  border-left: 3px solid var(--blue);
  background: #17304a88;
  padding: 14px 17px;
  margin: 18px 0;
  font-size: 12px;
  color: #bbd4ef;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px 23px;
}
.dialog-top h2 {
  font-size: 21px;
}
dialog {
  background: #122235;
  color: var(--text);
  border: 1px solid #46617d;
  border-radius: 12px;
  padding: 0;
  width: min(550px, calc(100% - 30px));
  max-height: 85dvh;
  box-shadow: 0 25px 100px #0008;
}
dialog::backdrop {
  background: #020914ba;
  backdrop-filter: blur(4px);
}
#dialog-body {
  padding: 24px;
}
#dialog-body p {
  font-size: 13px;
}
#dialog-body ul {
  padding-left: 20px;
  color: #b7cce0;
  font-size: 12px;
}
#dialog-body li {
  margin: 10px 0;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #203c56;
  border: 1px solid #5b8ab1;
  border-radius: 9px;
  padding: 14px 22px;
  box-shadow: 0 8px 30px #0006;
  z-index: 30;
  width: max-content;
  max-width: calc(100% - 30px);
  font-size: 12px;
}
.storage-warning {
  background: #544424;
  color: #ffe5a4;
  padding: 12px 24px;
  font-size: 12px;
}
.noscript {
  position: fixed;
  inset: 20% 10%;
  padding: 30px;
  background: #142b43;
  border: 1px solid #aac9ef;
  z-index: 99;
}
.large-text {
  font-size: 16px;
}
.large-text .subtle,
.large-text .action-note,
.large-text .detail-row p,
.large-text .task p,
.large-text .news-item p,
.large-text .store-card p {
  font-size: 13px;
}
.large-text #sidenav a,
.large-text .topnav a,
.large-text .button {
  font-size: 14px;
}
.large-text .task {
  grid-template-columns: 28px 1fr;
}
.large-text .task .button {
  grid-column: 2;
  justify-self: start;
}
.large-text .store-card p {
  min-height: 90px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding-inline: 36px;
  }
  .hero {
    height: 300px;
  }
  .map {
    aspect-ratio: 1.85;
  }
  .topnav {
    gap: 38px;
  }
  .overview-grid {
    grid-template-columns: 1.7fr 1fr;
  }
}
@media (max-width: 1190px) {
  .brand {
    min-width: 216px;
    font-size: 20px;
  }
  .topbar {
    padding-inline: 20px;
    gap: 16px;
  }
  .topnav {
    gap: 18px;
  }
  .app-layout {
    grid-template-columns: 228px 1fr;
  }
  .sidebar {
    padding: 18px 14px;
  }
  main {
    padding-inline: 20px;
  }
  .vital {
    grid-template-columns: 16px 59px 1fr 26px;
    gap: 4px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .task {
    grid-template-columns: 38px 1fr auto;
  }
  .summary-card {
    padding: 15px;
    gap: 10px;
  }
  .summary-card > .icon {
    width: 21px;
  }
  .hero {
    height: 230px;
  }
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
  .store-grid {
    grid-template-columns: 1fr;
  }
  .store-card p {
    min-height: 0;
  }
  .store-card .button {
    width: auto;
  }
  .header-right {
    gap: 10px;
  }
  .news-item {
    padding: 16px;
  }
}
@media (max-width: 900px) {
  .topbar {
    height: auto;
    min-height: 85px;
    flex-wrap: wrap;
    padding: 15px 20px 0;
    gap: 0;
  }
  .brand {
    min-width: 0;
    flex: 1;
  }
  .header-right {
    order: 1;
  }
  .topnav {
    order: 2;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    height: 50px;
    margin-top: 9px;
    overflow: auto;
  }
  .app-layout {
    min-height: calc(100vh - 130px);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .summary-card {
    min-height: 0;
    padding: 13px 17px;
    align-items: center;
  }
  .summary-card small {
    margin-top: 3px;
  }
  .summary-card .label {
    margin: 0;
  }
  .summary-card > div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0 12px;
    align-items: center;
    width: 100%;
  }
  .summary-card small {
    grid-column: 2;
  }
  .page-intro {
    align-items: flex-start;
  }
  .metric {
    padding: 15px;
  }
  .metric-grid {
    gap: 9px;
  }
  .metric strong {
    font-size: 22px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-item + .news-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 650px) {
  :root {
    font-size: 14px;
  }
  .topbar {
    padding: 13px 16px 0;
  }
  .brand {
    font-size: 21px;
  }
  .brand-mark {
    height: 35px;
    width: 35px;
    font-size: 18px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.9px;
  }
  .header-right {
    font-size: 10px;
    gap: 6px;
  }
  .header-right .icon-button {
    width: 28px;
  }
  .topnav a {
    font-size: 11px;
  }
  .app-layout {
    display: block;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0 13px;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .portrait-wrap {
    aspect-ratio: 1;
    height: 64px;
    width: 64px;
    border-radius: 50%;
    grid-row: 1;
  }
  .portrait-tag {
    display: none;
  }
  .character-summary h2 {
    font-size: 18px;
  }
  .character-summary > p {
    margin: 3px 0;
    font-size: 11px;
  }
  .character-summary {
    position: relative;
    padding-right: 94px;
  }
  #vitals {
    display: none;
  }
  .cash-row {
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
    padding: 0;
    border: 0;
    display: block;
    text-align: right;
    font-size: 9px;
  }
  .cash-row strong {
    font-size: 19px;
    display: block;
  }
  #sidenav {
    grid-column: 1/-1;
    display: flex;
    overflow: auto;
    gap: 5px;
    margin-top: 14px;
    padding-bottom: 4px;
  }
  #sidenav a {
    padding: 7px 10px;
    white-space: nowrap;
    font-size: 10px;
    border-color: #243c54;
  }
  #sidenav a .icon {
    height: 14px;
    width: 14px;
  }
  #sidenav a {
    gap: 6px;
  }
  .sidebar-bottom {
    display: none;
  }
  main {
    padding-inline: 16px;
  }
  .page-topline {
    padding-block: 13px;
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .hero {
    height: 234px;
  }
  .hero-content {
    left: 20px;
    bottom: 24px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 12px;
    max-width: 220px;
  }
  .hero-meta {
    font-size: 9px;
    right: 12px;
    top: 12px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .summary-card > div {
    grid-template-columns: 86px 1fr;
  }
  .summary-card strong {
    font-size: 11px;
  }
  .summary-card .label {
    font-size: 10px;
  }
  .summary-grid {
    margin: 13px 0;
  }
  .overview-grid {
    gap: 13px;
  }
  .panel-head {
    padding: 15px;
  }
  .panel-head h2 {
    font-size: 17px;
  }
  .map {
    aspect-ratio: 1.3;
  }
  .map-pin {
    font-size: 9px;
    padding: 6px 8px;
    gap: 4px;
  }
  .map-pin .icon {
    height: 13px;
    width: 13px;
  }
  .map-pin.workshop {
    left: 79%;
    top: 23%;
  }
  .map-pin.school {
    left: 78%;
    top: 79%;
  }
  .map-caption {
    font-size: 9px;
    padding: 10px 12px;
  }
  .task {
    padding: 15px;
    grid-template-columns: 30px 1fr auto;
    gap: 9px;
  }
  .task-icon {
    height: 30px;
    width: 30px;
  }
  .task h3 {
    font-size: 11px;
  }
  .task p {
    font-size: 10px;
  }
  .task .button {
    font-size: 9px;
    padding: 8px;
  }
  .panel-body {
    padding: 17px;
  }
  .page-intro {
    flex-wrap: wrap;
    padding-bottom: 20px;
    gap: 13px;
  }
  .page-intro h1 {
    font-size: 27px;
  }
  .page-intro p {
    font-size: 12px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-grid > .metric:last-child {
    grid-column: 1/-1;
  }
  .metric strong {
    font-size: 23px;
  }
  .store-grid {
    margin-top: 13px;
    gap: 13px;
  }
  .detail-row {
    gap: 10px;
  }
  .detail-row strong {
    font-size: 12px;
  }
  .badge {
    font-size: 8px;
    padding: 4px 6px;
  }
  .footer {
    font-size: 8px;
    padding-block: 20px;
  }
  .footer > span:last-child {
    width: 100%;
  }
  .large-text .summary-card > div {
    display: block;
  }
  .large-text .topnav a {
    font-size: 12px;
  }
  .large-text .character-summary {
    padding-right: 85px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Keep the compact phone layout comfortable to read and tap. */
@media (max-width: 650px) {
  .topnav a {
    font-size: 12px;
  }
  #sidenav {
    scrollbar-width: thin;
    scrollbar-color: #365575 transparent;
  }
  #sidenav a {
    font-size: 12px;
    min-height: 40px;
  }
  .summary-card strong,
  .summary-card small,
  .summary-card .label,
  .task h3,
  .task p,
  .task .button,
  .season-footer p,
  .season-footer strong,
  .news-item h3,
  .news-item p,
  .detail-row p,
  .action-note,
  .store-card p,
  .subtle,
  .map-caption,
  .text-button {
    font-size: 12px;
  }
  .task {
    grid-template-columns: 30px 1fr;
  }
  .task .button {
    grid-column: 2;
    justify-self: start;
    min-height: 40px;
  }
  .summary-card > div {
    grid-template-columns: 85px 1fr;
  }
  .button,
  .button.small {
    min-height: 40px;
    font-size: 12px;
  }
  .map-pin {
    min-height: 36px;
  }
}
@media (max-width: 360px) {
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand > span:last-child {
    white-space: nowrap;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.6px;
  }
}
