:root {
  font-family: "Noto Sans TC", system-ui, sans-serif;
  color: #263d35;
  background: #f6f5ef;
  font-synthesis: none;
  --green: #214e40;
  --muted: #7c887e;
  --line: #e4e8dd;
  --cream: #fcfcf7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d8aa56;
  outline-offset: 3px;
}
button {
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 9px;
  padding: 10px 15px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #366a53;
}
input,
select {
  min-width: 0;
  background: white;
  border: 1px solid #d9e0d5;
  border-radius: 8px;
  padding: 10px 11px;
  color: #263d35;
  width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
}
h2 {
  font-size: 17px;
}
h3 {
  font-size: 14px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 11px;
}
a {
  color: inherit;
}
.layout {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #183f35;
  color: #dce7dc;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f3f4d6;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.6px;
}
.brand-mark {
  width: 33px;
  height: 37px;
  display: grid;
  place-items: center;
  background: #d2dc9b;
  color: #214e40;
  border-radius: 10px;
  font-size: 24px;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 2.8px;
  color: #a6bba4;
  margin: 8px 0 43px 44px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #8eaa98;
  margin: 0 12px 12px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  text-align: left;
  color: #a7bfaf;
  background: transparent;
  font-size: 13px;
  padding: 13px 15px;
}
.nav button.active {
  background: #34594a;
  color: #f3f5db;
}
.nav button span {
  display: inline-block;
  width: 25px;
  font-size: 16px;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  color: #a4bcab;
  line-height: 1.9;
}
.sidebar-bottom strong {
  display: block;
  color: #e2ebda;
  font-size: 12px;
}
.leaf {
  font-size: 49px;
  color: #a9be7e;
  margin-bottom: 14px;
}
.main {
  padding: 30px 32px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
  gap: 18px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #819078;
  margin-bottom: 6px;
}
.subtitle {
  font-size: 12px;
  color: #83907f;
  margin-top: 8px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e1e7c8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 19px;
}
.status {
  font-size: 10px;
  color: #6e8173;
  margin-top: 4px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #65a174;
  border-radius: 50%;
  margin-right: 5px;
}
.dot.off {
  background: #ce9257;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}
.metric {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 13px;
  padding: 17px 20px;
  position: relative;
}
.metric-label {
  font-size: 11px;
  color: #7f8b7c;
}
.metric-value {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 7px 0 3px;
}
.metric-icon {
  position: absolute;
  right: 18px;
  top: 17px;
  color: #9ba684;
}
.metric-note {
  font-size: 10px;
  color: #8a9682;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 21px;
  align-items: start;
}
.column {
  display: grid;
  gap: 20px;
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.card-head {
  padding: 19px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-head small {
  display: block;
  margin-top: 4px;
}
.pill {
  font-size: 10px;
  background: #edf0e2;
  color: #69805f;
  padding: 5px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.map-wrap {
  position: relative;
  background: #dde7bc;
  margin: 0 13px;
  border-radius: 10px;
  overflow: hidden;
}
.city-map {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
}
.map-tile {
  fill: transparent;
  cursor: pointer;
}
.map-tile:hover,
.map-tile:focus {
  fill: #fff8;
  stroke: #658653;
  stroke-width: 2;
  outline: none;
}
.map-label {
  fill: #41533c;
  font-size: 9px;
  font-weight: 700;
  pointer-events: none;
  paint-order: stroke;
  stroke: #f4f1d8;
  stroke-width: 3;
}
.map-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 21px;
  font-size: 10px;
  color: #809078;
}
.legend {
  display: flex;
  gap: 12px;
}
.legend b {
  color: #e8a959;
}
.jobs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  padding: 0 18px 18px;
}
.job {
  border: 1px solid #e5e7da;
  border-radius: 11px;
  padding: 15px;
  background: #f9faf1;
}
.job-icon {
  font-size: 24px;
  margin-bottom: 13px;
}
.job p {
  font-size: 10px;
  color: #8b967e;
  margin: 7px 0 13px;
}
.job button {
  width: 100%;
  font-size: 11px;
  padding: 9px;
}
.job .pay {
  font-size: 18px;
  color: #456941;
  margin-top: 10px;
  font-weight: 700;
}
.body {
  padding: 0 21px 20px;
}
.stack {
  display: grid;
  gap: 12px;
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.row > * {
  min-width: 0;
}
.row input,
.row select {
  flex: 1;
}
.row button {
  white-space: nowrap;
  font-size: 11px;
}
.outline {
  background: #edf0e5;
  color: #466044;
}
.outline:hover {
  background: #dfe7d2;
}
.danger {
  background: #a16348;
}
.hint {
  font-size: 11px;
  color: #829078;
  line-height: 1.8;
}
.section-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-tabs button {
  font-size: 11px;
  background: #edf0e4;
  color: #607654;
  padding: 8px 12px;
}
.section-tabs button.active {
  background: var(--green);
  color: #fff;
}
.mini-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8ebdf;
  padding: 12px 0;
  font-size: 12px;
}
.mini-stat:first-child {
  padding-top: 0;
}
.mini-stat:last-child {
  border: 0;
  padding-bottom: 0;
}
.progress {
  height: 5px;
  background: #e9eddc;
  border-radius: 5px;
  overflow: hidden;
  margin: 10px 0;
}
.progress span {
  display: block;
  height: 100%;
  background: #91a763;
}
.resident {
  padding: 11px 0;
  border-bottom: 1px solid #e9ecdf;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.resident .avatar {
  width: 30px;
  height: 30px;
  font-size: 13px;
}
.resident .pill {
  margin-left: auto;
}
.empty {
  font-size: 12px;
  color: #84917e;
  line-height: 1.9;
  padding: 14px 0;
}
.feed-item {
  padding: 11px 0;
  border-bottom: 1px solid #e9ecdf;
  line-height: 1.7;
  font-size: 11px;
}
.feed-item:last-child {
  border: 0;
}
.feed-item time {
  font-size: 9px;
  color: #99a08e;
}
.feed-item p {
  margin-top: 3px;
}
.chat-list {
  max-height: 230px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-bottom: 12px;
}
.chat-item {
  font-size: 12px;
  line-height: 1.8;
  margin: 9px 0;
  overflow-wrap: anywhere;
}
.chat-item strong {
  color: #577149;
  margin-right: 7px;
  font-size: 11px;
}
.chat-form {
  display: flex;
  gap: 7px;
}
.chat-form input {
  font-size: 11px;
}
.chat-form button {
  padding: 8px 12px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.table td,
.table th {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #e8ebdf;
}
.table th {
  font-size: 10px;
  font-weight: 500;
  color: #87917f;
}
.positive {
  color: #4c814e;
}
.negative {
  color: #b57351;
}
.stock {
  border: 1px solid #e6e9dc;
  border-radius: 10px;
  padding: 15px;
}
.stock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sparkline {
  width: 110px;
  height: 34px;
}
.stock .row {
  margin-top: 12px;
}
.stock input {
  max-width: 90px;
}
.case {
  border: 1px solid #e7e8da;
  padding: 16px;
  border-radius: 10px;
}
.case h3 {
  margin: 8px 0;
}
.case p {
  font-size: 12px;
  line-height: 1.9;
  color: #7c8a74;
}
.case .row {
  margin-top: 12px;
}
.tutorial {
  background: #edf1df;
  border: 1px solid #e0e7ca;
  padding: 15px 18px;
  border-radius: 11px;
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 11px;
  line-height: 1.8;
  color: #6b7f5c;
}
.tutorial strong {
  color: #425d38;
  display: block;
  font-size: 12px;
}
.tutorial button {
  padding: 0;
  background: none;
  color: #7c8e6b;
  align-self: start;
  margin-left: auto;
}
.footer {
  display: flex;
  justify-content: space-between;
  color: #9aa28f;
  font-size: 9px;
  margin-top: 24px;
  letter-spacing: 0.5px;
}
.join-backdrop {
  position: fixed;
  inset: 0;
  background: #163d35ed;
  display: flex;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 24px;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.join-card {
  flex: 0 0 auto;
  margin: auto;
  max-width: 460px;
  width: 100%;
  background: #faf9ef;
  border-radius: 23px;
  padding: 38px;
  box-shadow: 0 25px 90px #092d3655;
}
.join-art {
  font-size: 45px;
  margin: 15px 0 25px;
}
.join-card h1 {
  font-size: 32px;
}
.join-card p {
  font-size: 13px;
  line-height: 1.95;
  color: #839078;
  margin: 17px 0 24px;
}
.join-card label {
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}
.join-card input {
  margin-bottom: 11px;
}
.join-card button {
  width: 100%;
  padding: 13px;
}
.join-card small {
  display: block;
  line-height: 1.8;
  margin-top: 16px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  max-width: min(90vw, 560px);
  border-radius: 11px;
  background: #234b3c;
  color: white;
  box-shadow: 0 8px 28px #17392b33;
  font-size: 13px;
  z-index: 20;
  display: none;
}
#toast.visible {
  display: block;
}
#toast.error {
  background: #985b44;
}
.jail-banner {
  background: #faecda;
  color: #946437;
  padding: 13px 17px;
  font-size: 12px;
  border-radius: 10px;
  margin-bottom: 16px;
}
@media (min-width: 1450px) {
  .main {
    padding: 38px 45px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    padding: 25px 13px;
  }
  .layout {
    grid-template-columns: 177px minmax(0, 1fr);
  }
  .main {
    padding: 25px 21px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .column.side {
    grid-template-columns: 1fr 1fr;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 14px;
  }
  .metric-value {
    font-size: 22px;
  }
  .metric-icon {
    display: none;
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 14px 16px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-mark {
    height: 27px;
    width: 27px;
    font-size: 19px;
  }
  .brand-sub,
  .sidebar-bottom,
  .nav-label {
    display: none;
  }
  .nav {
    display: flex;
    margin-top: 13px;
    gap: 3px;
    overflow: auto;
  }
  .nav button {
    white-space: nowrap;
    padding: 9px 10px;
    font-size: 11px;
  }
  .nav button span {
    width: 19px;
    font-size: 13px;
  }
  .main {
    padding: 21px 14px;
  }
  .topline {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 24px;
  }
  .subtitle {
    font-size: 10px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 17px;
  }
  .metric-value {
    font-size: 23px;
  }
  .column.side {
    grid-template-columns: 1fr;
  }
  .jobs {
    gap: 7px;
    padding: 0 12px 13px;
  }
  .job {
    padding: 11px 9px;
  }
  .job h3 {
    font-size: 12px;
  }
  .job .pay {
    font-size: 16px;
  }
  .job p {
    font-size: 9px;
  }
  .card-head {
    padding: 17px;
  }
  .body {
    padding: 0 17px 17px;
  }
  .tutorial {
    margin-bottom: 17px;
  }
  .footer {
    gap: 10px;
    line-height: 1.8;
  }
  .identity {
    gap: 6px;
    font-size: 11px;
  }
  .identity .avatar {
    display: none;
  }
  .map-caption {
    padding: 12px;
    font-size: 9px;
  }
  .join-card {
    padding: 28px;
  }
  .table td {
    padding: 11px 4px;
  }
}

/* Account and neighbourhood services share the city's quiet visual language. */
.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0;
}
.auth-tabs button {
  flex: 1;
  min-width: 84px;
  padding: 10px;
}
.join-card .auth-tabs button {
  width: auto;
  margin: 0;
}
.join-card form {
  margin: 20px 0;
}
.stack label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #43583e;
}
textarea {
  width: 100%;
  min-height: 95px;
  resize: vertical;
  border: 1px solid #dfdfcc;
  border-radius: 8px;
  background: #fffef8;
  padding: 12px;
  color: #283f35;
  font: inherit;
}
textarea:focus {
  outline: 2px solid #8ca477;
  outline-offset: 2px;
}
details {
  padding: 15px;
  border: 1px solid #e4e4d5;
  border-radius: 10px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  color: #355745;
}
details[open] summary {
  margin-bottom: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.form-grid input,
.stack select {
  width: 100%;
  min-width: 0;
}
.billing-box {
  padding: 18px;
  border-radius: 12px;
  background: #eef1e3;
}
.billing-box p {
  margin: 12px 0;
  line-height: 1.7;
}
.recovery-banner {
  background: #fff0ca;
  border: 1px solid #d6b975;
  border-radius: 14px;
  margin: 0 0 20px;
  padding: 20px;
  line-height: 1.7;
}
.recovery-banner p {
  font-size: 13px;
  margin: 9px 0;
}
.recovery-banner code {
  display: block;
  overflow-wrap: anywhere;
  user-select: all;
  padding: 14px;
  border-radius: 8px;
  background: #fffbf0;
  color: #503b24;
  margin: 12px 0;
  font-size: 17px;
}
.case p,
.case small,
.chat-item,
.hint {
  overflow-wrap: anywhere;
}
.case .row:empty {
  display: none;
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .auth-tabs button {
    font-size: 12px;
  }
  .recovery-banner {
    padding: 15px;
  }
  .row {
    flex-wrap: wrap;
  }
  .row input {
    min-width: 90px;
  }
}

/* Careers and player storefronts. */
.compact-job,
.career-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.compact-job {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.compact-job button {
  flex-shrink: 0;
  font-size: 12px;
}
.career-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.career-job {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  background: #f9faf1;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.career-job > p {
  font-size: 12px;
  line-height: 1.8;
}
.career-job button {
  align-self: end;
}
.career-heading {
  align-items: flex-start;
}
.career-heading h3 {
  overflow-wrap: anywhere;
}
.career-pay {
  color: var(--green);
  font-size: 21px;
  font-weight: 700;
}
.career-current {
  background: #edf1df;
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 10px;
}
.industry-notes {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 10px;
  background: #f0f3e9;
}
.career-filters {
  margin: 0;
}
button:disabled {
  cursor: not-allowed;
}
@media (max-width: 700px) {
  .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: 4px;
  }
  .nav button {
    text-align: center;
    white-space: normal;
    padding: 9px 2px;
  }
  .nav button span {
    display: none;
  }
  .career-grid {
    grid-template-columns: 1fr;
  }
}

.government-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.government-metrics h3 {
  overflow-wrap: anywhere;
  font-size: 22px;
}
@media (max-width: 700px) {
  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The city is the primary play surface; management tools stay in the menu. */
.game-shell {
  min-height: 100dvh;
  background: #eef0e5;
  color: #28483e;
  padding: 0 30px 20px;
}
.game-top {
  max-width: 1500px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #d5ddce;
}
.game-brand {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -1px;
}
.game-brand small {
  font-size: 10px;
  letter-spacing: 3px;
  margin-left: 12px;
}
.game-top > button {
  margin-left: auto;
}
.game-connection {
  font-size: 12px;
  color: #64816b;
}
.game-hud {
  max-width: 1500px;
  margin: 16px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.game-hud span {
  padding: 9px 16px;
  background: #fffdf4;
  border: 1px solid #d9dfd0;
  border-radius: 24px;
  font-size: 12px;
}
.game-hud b {
  font-size: 15px;
  margin-left: 8px;
  color: #2f5847;
}
.game-layout {
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.game-stage {
  min-width: 0;
  background: #c4d19e;
  border: 1px solid #bdcaaa;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 30px #2847350c;
}
.scene-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: #fbf9ee;
}
.scene-heading small,
.scene-services > small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #738677;
}
.scene-heading h1 {
  font-size: 23px;
  margin-top: 5px;
}
.scene-heading > span {
  font-size: 12px;
}
.scene-world {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 768 / 448;
  min-height: 0;
  background: #aec28e;
  touch-action: pan-y;
}
.scene-ground {
  cursor: crosshair;
}
.scene-ground:hover {
  fill: #fff8c438;
  stroke: #fff2a9;
  stroke-width: 2px;
}
.scene-building {
  cursor: pointer;
}
.scene-building:hover,
.scene-building:focus {
  filter: brightness(1.09);
  outline: none;
}
.scene-building:focus > rect:first-child {
  stroke: #fff9c1;
  stroke-width: 5px;
}
.game-controls {
  padding: 13px 20px;
  background: #fbf9ee;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  line-height: 1.6;
}
.direction-pad {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.direction-pad button {
  padding: 7px 12px;
  border-radius: 7px;
}
.game-panel {
  display: grid;
  gap: 14px;
  max-height: calc(100dvh - 165px);
  overflow: auto;
  padding-bottom: 5px;
}
.scene-services,
.game-chat,
.game-menu {
  background: #fffcf3;
  border: 1px solid #dce2d3;
  padding: 20px;
  border-radius: 17px;
}
.scene-services h2 {
  font-size: 21px;
  margin: 8px 0 12px;
}
.scene-services p {
  font-size: 12px;
  color: #758475;
  line-height: 1.8;
  margin-bottom: 12px;
}
.place-list {
  display: grid;
  gap: 6px;
}
.place-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 8px;
  background: transparent;
  color: #2c4b3e;
  border-bottom: 1px solid #e9e9dc;
  border-radius: 0;
}
.place-list button:hover {
  background: #f0f0df;
  border-radius: 8px;
}
.place-list button > span {
  font-size: 22px;
  width: 29px;
  text-align: center;
  color: #85916e;
}
.place-list strong {
  font-size: 13px;
  display: block;
}
.place-list small {
  font-size: 10px;
  display: block;
  line-height: 1.6;
  font-weight: 400;
  margin-top: 3px;
}
.place-list b {
  margin-left: auto;
  color: #87967c;
}
.scene-service-controls {
  display: grid;
  gap: 12px;
}
.scene-service-controls .card {
  box-shadow: none;
}
.scene-service-controls .card-head {
  padding: 12px;
}
.scene-service-controls .body {
  padding: 12px;
}
.scene-service-controls label {
  font-size: 12px;
}
.scene-service-controls input {
  margin-top: 5px;
}
.game-chat summary,
.game-menu summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.game-chat #chat-list {
  max-height: 180px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.8;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.game-menu > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-top: 12px;
}
.game-menu button,
.game-menu a {
  font-size: 11px;
}
.game-footer {
  text-align: center;
  padding: 18px 0 0;
  color: #798574;
  font-size: 11px;
}
.game-shell > .recovery-banner,
.game-notice {
  max-width: 1500px;
  margin: 12px auto;
}
.room-art {
  position: relative;
  height: 500px;
  max-height: calc(100dvh - 280px);
  min-height: 340px;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 43px, #b79d7640 43px 45px),
    repeating-linear-gradient(90deg, #e1c79a 0 86px, #d9bf94 86px 88px);
  border-top: 90px solid #709282;
}
.room-sign {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #fffae7;
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 0 4px #7f9070;
  font-weight: 700;
  white-space: nowrap;
}
.room-window {
  position: absolute;
  top: 35px;
  left: 8%;
  width: 75px;
  height: 80px;
  border: 7px solid #fff5d7;
  background: #a5ccc3;
  text-align: center;
  font-size: 40px;
  color: #fff5b4;
}
.room-shelf {
  position: absolute;
  right: 6%;
  top: 48px;
  background: #a68865;
  border-bottom: 8px solid #826446;
  padding: 10px;
  color: #f7e6ac;
  font-size: 26px;
}
.room-counter {
  position: absolute;
  top: 130px;
  left: 25%;
  width: 50%;
  height: 65px;
  text-align: center;
  padding: 17px;
  background: #779483;
  border: 8px solid #4f7161;
  box-shadow: 0 10px #36574750;
  color: #fff3cc;
  font-size: 16px;
  letter-spacing: 5px;
}
.room-person svg {
  width: 64px;
  height: 64px;
  display: block;
}
.room-person {
  position: absolute;
  top: 215px;
  left: 48%;
  font-size: 44px;
  filter: drop-shadow(4px 8px 2px #405c4340);
}
.room-plant {
  position: absolute;
  right: 10%;
  bottom: 70px;
  font-size: 50px;
}
.room-art > p {
  position: absolute;
  bottom: 18px;
  left: 10%;
  width: 80%;
  padding: 12px;
  background: #fff9e6db;
  text-align: center;
  border-radius: 9px;
  font-size: 13px;
}
@media (prefers-reduced-motion: no-preference) {
  .is-walking .scene-person:last-child .sprite-body {
    animation: walk-bob 0.35s infinite alternate;
  }
  @keyframes walk-bob {
    to {
      transform: translateY(-3px);
    }
  }
}
@media (min-width: 1600px) {
  .scene-world {
    max-height: 800px;
  }
}
@media (max-width: 1000px) {
  .game-shell {
    padding: 0 16px 16px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
  }
  .game-top {
    gap: 12px;
  }
  .game-brand small {
    display: none;
  }
  .game-hud {
    gap: 6px;
  }
  .game-hud span {
    padding: 7px 10px;
  }
  .scene-world {
    min-height: 0;
  }
  .scene-services {
    padding: 14px;
  }
}
@media (max-width: 700px) {
  .game-shell {
    padding: 0 10px 10px;
  }
  .game-top {
    padding: 14px 0;
  }
  .game-brand {
    font-size: 20px;
  }
  .game-connection {
    display: none;
  }
  .game-hud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .game-hud span {
    font-size: 10px;
    padding: 7px;
    text-align: center;
  }
  .game-hud b {
    font-size: 12px;
    margin-left: 4px;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .game-panel {
    max-height: none;
    overflow: visible;
  }
  .scene-world {
    aspect-ratio: 512 / 448;
    min-height: 0;
    max-height: none;
  }
  .scene-heading {
    padding: 14px;
  }
  .scene-heading h1 {
    font-size: 20px;
  }
  .game-controls {
    flex-wrap: wrap;
    padding: 12px;
  }
  .direction-pad {
    margin: auto;
  }
  .direction-pad button {
    padding: 10px 18px;
  }
  .room-art {
    height: 380px;
    max-height: none;
  }
  .room-shelf {
    display: none;
  }
  .room-window {
    left: 4%;
    width: 48px;
    font-size: 25px;
    height: 60px;
  }
  .game-footer {
    line-height: 1.8;
  }
  .place-list {
    grid-template-columns: 1fr 1fr;
  }
  .place-list small {
    display: none;
  }
}
