:root {
  color-scheme: light;
  --ink: #222723;
  --paper: #f7f6f2;
  --line: #d5d7ce;
  --muted: #626a60;
  --green: #34543c;
}
/* 0.19: clear controls, compact work bar, and location artwork. */
.location-hero019 {
  position: relative;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  margin: 0 0 24px;
  isolation: isolate;
  background: #1d2923;
}
.location-hero019 img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.location-hero019::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #102018ed, #10201800 85%);
  z-index: 0;
}
.location-hero019 > div {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 26px;
  z-index: 1;
}
.location-hero019 h2 {
  color: #fff;
  margin: 0 0 5px;
  font:
    30px Georgia,
    serif;
}
.location-hero019 p {
  color: #e3eadd;
  margin: 0;
}
.vehicle-service019 #service-car-picker {
  padding: 20px;
  background: #e9ede3;
  border-radius: 8px;
  margin-bottom: 20px;
}
.vehicle-service019 .garage-car {
  display: flow-root;
}
.vehicle-service019 .garage-car > .art-button {
  float: right;
  margin: 0 0 15px 20px;
}
.vehicle-service019 .garage-car form {
  clear: both;
}
.vehicle-service019 #fuel-total {
  font-size: 20px;
  font-weight: bold;
  color: #34543c;
}
.training-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.training-grid .training-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
}
.training-grid .training-card button {
  align-self: flex-start;
}
.gang-workbar {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  margin: 0 0 24px;
  background: #edf2e5;
  border: 1px solid #8b9d7f;
  border-left: 5px solid #34543c;
  border-radius: 8px;
  box-shadow: 0 5px 14px #1a291a18;
}
.gang-workbar > div:nth-child(2) {
  text-align: right;
  max-width: 65%;
}
.gang-workbar button {
  background: #34543c;
  color: #fff;
  margin: 0;
}
.gang-workbar small {
  display: block;
  margin-top: 3px;
}
.gang-workbar #gang-bot {
  flex-basis: 100%;
}
.gang-workbar #gang-work-reason {
  max-width: 320px;
}
.control-reason {
  color: #6b4b26;
  font-size: 13px;
  margin: 8px 0;
}
.payout-amount {
  display: block;
  font-size: 30px;
  color: #34543c;
  margin: 5px 0 16px;
}
.business-card > header {
  background: none;
  color: inherit;
  padding: 0;
  border: 0;
  gap: 12px;
}
.business-card > header h3 {
  margin: 0;
}
.business-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 10px;
}
.business-numbers .metric {
  border-left: 2px solid #a4b293;
  padding: 8px 12px;
}
.business-status {
  padding-left: 20px;
}
.business-status li {
  padding: 3px 0;
}
.business-buy {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.business-card details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.plain-values {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(65px, 1fr);
  gap: 9px 20px;
}
.plain-values dt {
  color: var(--muted);
}
.plain-values dd {
  margin: 0;
  text-align: right;
  font-weight: bold;
}
.simple-choice {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 6px;
  margin: 0 0 16px;
  min-width: 0;
}
.simple-choice legend {
  font-weight: bold;
  padding: 0 5px;
}
.simple-choice label:last-child {
  margin-top: 10px;
}
.simple-choice [hidden] {
  display: none !important;
}
.asset-detail {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.password-warning019 {
  border: 1px solid #d7b45c;
  border-left: 5px solid #a97609;
  background: #fff6dd;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 22px;
}
.password-warning019 strong {
  font-size: 17px;
}
.password-warning019 p {
  margin-bottom: 0;
}
#fight-status019 {
  grid-column: 1 / -1;
  background: #652e27;
  color: white;
  padding: 18px 24px;
  border-radius: 8px;
  position: sticky;
  top: 0;
  z-index: 40;
}
#fight-status019[hidden] {
  display: none;
}
#fight-status019 strong {
  font-size: 19px;
}
#fight-status019 b {
  float: right;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
#fight-status019 span {
  display: block;
}
@media (max-width: 640px) {
  .training-grid {
    grid-template-columns: 1fr;
  }
  .business-numbers {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .business-card > header {
    flex-wrap: wrap;
  }
  .location-hero019 img {
    height: 200px;
  }
  .location-hero019 > div {
    padding: 18px;
  }
  .location-hero019 h2 {
    font-size: 27px;
  }
  .gang-workbar {
    top: 4px;
    padding: 10px;
    gap: 8px;
    font-size: 12px;
  }
  .gang-workbar button {
    padding: 11px 9px;
    font-size: 12px;
  }
  .gang-workbar #gang-work-reason {
    max-width: 180px;
    font-size: 11px;
  }
  .vehicle-service019 .garage-car > .art-button {
    float: none;
    margin: 0 0 15px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eaece6;
  color: var(--ink);
  font:
    15px/1.5 Arial,
    sans-serif;
}
header {
  background: var(--ink);
  color: #fff;
  padding: 22px max(22px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 4px solid #879777;
}
.brand {
  font:
    bold 30px Georgia,
    serif;
  color: #fff;
  text-decoration: none;
  letter-spacing: 3px;
}
.brand span {
  display: block;
  font:
    10px Arial,
    sans-serif;
  letter-spacing: 2px;
  color: #b7c2ae;
  margin-top: 3px;
}
#identity {
  font-size: 13px;
}
h1 {
  font:
    38px Georgia,
    serif;
  margin: 8px 0 24px;
}
h2 {
  font:
    28px Georgia,
    serif;
  margin: 0 0 20px;
}
h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
p {
  margin: 8px 0 20px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}
.muted,
small {
  color: var(--muted);
}
small {
  display: block;
  font-size: 12px;
  line-height: 1.6;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #a5ada0;
  background: #f5f6f1;
  color: var(--ink);
  padding: 10px 15px;
  min-height: 44px;
  border-radius: 3px;
}
button:hover {
  background: #e3e8dc;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.link {
  border: 0;
  background: none;
  text-decoration: underline;
  text-align: left;
  padding-left: 0;
}
input,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #a9b0a3;
  border-radius: 2px;
  background: #fff;
  margin: 5px 0 14px;
  min-height: 44px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: bold;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b28e49;
  outline-offset: 2px;
}
.auth {
  max-width: 920px;
  margin: 70px auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 65px;
  padding: 30px;
}
.intro {
  padding-top: 24px;
}
.intro h1 {
  font-size: 54px;
}
.auth form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
}
.auth button {
  width: 100%;
  margin-bottom: 10px;
}
#game {
  max-width: 1160px;
  margin: 0 auto;
}
#statusbar {
  display: flex;
  background: #f7f6f2;
  border: 1px solid var(--line);
  margin: 24px 0 18px;
  padding: 16px 22px;
  gap: 40px;
  flex-wrap: wrap;
}
.stat label {
  font-size: 11px;
  font-weight: normal;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
}
.stat strong {
  font-size: 21px;
  font-weight: normal;
}
.layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 215px;
  gap: 22px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
nav button {
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
nav button.active {
  background: var(--ink);
  color: white;
  border-left: 4px solid #a8b894;
}
main {
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 450px;
  padding: 28px;
}
aside {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}
aside h3 {
  color: var(--ink);
}
aside hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.row p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.row strong {
  display: block;
}
.row button {
  flex-shrink: 0;
}
.sheet {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 26px;
}
.sheet td,
.sheet th {
  text-align: left;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.sheet th {
  font-weight: normal;
  color: var(--muted);
}
.sheet td:last-child {
  text-align: right;
}
.tag {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.note {
  background: #ebeede;
  border-left: 3px solid #8c9a75;
  padding: 14px;
  font-size: 13px;
  margin: 20px 0;
}
.log {
  list-style: none;
  padding: 0;
}
.log li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 14px;
}
.log time {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
#notice {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: 1160px;
  margin: 10px auto;
  padding: 12px 20px;
  background: #e0ecd8;
  border: 1px solid #799268;
}
#notice.error {
  background: #f4e3de;
  border-color: #b77762;
}
footer {
  max-width: 1160px;
  margin: 35px auto 20px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font:
    12px Georgia,
    serif;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
footer span {
  font:
    11px Arial,
    sans-serif;
}
.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.section {
  margin: 32px 0 12px;
}
progress {
  width: 100%;
  height: 8px;
  accent-color: var(--green);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  #game,
  footer {
    margin-left: 18px;
    margin-right: 18px;
  }
  .layout {
    grid-template-columns: 145px minmax(0, 1fr);
  }
  aside {
    grid-column: 2;
  }
  #statusbar {
    gap: 25px;
  }
}
@media (max-width: 600px) {
  header {
    padding: 16px;
  }
  .brand {
    font-size: 25px;
  }
  #identity {
    font-size: 11px;
  }
  .auth {
    margin: 18px auto;
    display: block;
    padding: 16px;
  }
  .intro {
    padding: 0;
  }
  .intro h1 {
    font-size: 36px;
    margin-bottom: 12px;
  }
  .intro p {
    margin-bottom: 14px;
  }
  .auth form {
    padding: 20px;
  }
  #game {
    margin: 0 12px;
  }
  #statusbar {
    margin-top: 12px;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
  }
  .stat strong {
    font-size: 18px;
  }
  .stat label {
    font-size: 9px;
  }
  .layout {
    display: block;
  }
  nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 12px;
  }
  nav button {
    font-size: 12px;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid var(--line);
  }
  nav button.active {
    border-left: 1px solid var(--ink);
  }
  main {
    padding: 20px 16px;
    min-height: 360px;
  }
  h2 {
    font-size: 26px;
  }
  aside {
    margin-top: 20px;
  }
  .row {
    gap: 10px;
  }
  .row button {
    padding: 8px 10px;
  }
  .settings {
    grid-template-columns: 1fr;
  }
  footer {
    margin: 22px 12px;
  }
  #notice {
    margin: 8px 12px;
  }
  .sheet td,
  .sheet th {
    padding: 9px 4px;
  }
}

nav button[data-page] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.menu-wait {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0.8;
}
.clock-icon {
  display: inline-block;
  position: relative;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.clock-icon:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 1px;
  height: 4px;
  background: currentColor;
}
.clock-icon:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 3px;
  height: 1px;
  background: currentColor;
}
@media (max-width: 600px) {
  nav button[data-page] {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
  .menu-wait {
    font-size: 10px;
  }
}

.activity-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0;
}
.activity-summary span {
  padding: 5px 9px;
  border: 1px solid var(--line);
}
.target {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 14px 0;
}
.target .row {
  border: 0;
  padding-top: 0;
}
.requirement {
  font-size: 13px;
}
.missing {
  color: #91472e;
}
.half {
  display: block;
  margin: 10px 0 4px;
  font-size: 12px;
}
.subnav {
  margin-bottom: 24px;
}
.note small {
  margin-top: 5px;
}
@media (min-width: 1001px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1fr) 190px;
  }
}
@media (max-width: 600px) {
  nav {
    grid-template-columns: repeat(3, 1fr);
  }
  nav button[data-page] {
    font-size: 11px;
  }
  .row {
    flex-wrap: wrap;
  }
  .target .row {
    flex-wrap: nowrap;
  }
  .actions button {
    flex: 1 1 auto;
  }
}

.skill-progress {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.skill-progress strong {
  font-size: 13px;
}
.skill-progress progress {
  display: block;
  margin: 8px 0;
}

.crime-menu {
  min-width: 0;
}
#crime-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}
#crime-toggle[aria-expanded="true"] .disclosure-arrow {
  transform: rotate(180deg);
}
#crime-submenu {
  display: flex;
  flex-direction: column;
  margin: 3px 0 6px 10px;
  padding-left: 7px;
  border-left: 2px solid var(--line);
}
#crime-submenu button {
  width: 100%;
  font-size: 13px;
  padding-left: 9px;
}
@media (max-width: 600px) {
  .crime-menu {
    grid-column: 1/-1;
  }
  #crime-toggle {
    text-align: left;
    padding: 10px 12px;
  }
  #crime-submenu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  #crime-submenu button {
    font-size: 12px;
  }
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.subnav button {
  font-size: 12px;
  padding: 8px 11px;
}
.target strong,
.row > div {
  overflow-wrap: anywhere;
  min-width: 0;
}
@media (max-width: 600px) {
  .target .row {
    flex-wrap: wrap;
  }
  .subnav {
    gap: 6px;
  }
  .subnav button {
    flex: 1 1 130px;
  }
}
/* 0.4: compact, responsive world and community screens */
.layout {
  grid-template-columns: 200px minmax(0, 1fr);
}
#notice {
  width: 38%;
  max-width: 600px;
  min-width: 290px;
  border-radius: 4px;
}
#notice.error {
  color: #7f1d1d;
  background: #fee2e2;
}
nav .navgroup {
  border-bottom: 1px solid var(--line);
}
.navgroup summary {
  cursor: pointer;
  padding: 12px 9px;
  background: #dde1d7;
  font-weight: bold;
  font-size: 13px;
}
.navgroup button {
  width: 100%;
  font-size: 13px;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
textarea {
  font: inherit;
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #a9b0a3;
  background: white;
  border-radius: 3px;
  margin: 5px 0 14px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 12px 8px 12px 0;
}
form {
  margin: 14px 0 22px;
}
.user-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-log {
  max-height: 450px;
  overflow-y: auto;
  border: 1px solid var(--line);
  padding: 14px;
  margin: 14px 0;
}
.chat-line {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.chat-line p {
  margin: 4px 0;
}
.chat-line button {
  font-size: 11px;
  padding: 3px 8px;
  min-height: 30px;
}
.faq {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary,
details > summary {
  cursor: pointer;
}
.faq p {
  margin-top: 12px;
}
#statusbar {
  gap: 22px;
}
.stat strong {
  font-size: 17px;
}
main {
  min-width: 0;
}
details form {
  padding: 8px;
}
.sheet {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .layout {
    display: block;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .navgroup {
    grid-column: 1/-1;
  }
  .navgroup[open] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .navgroup summary {
    grid-column: 1/-1;
  }
  #notice {
    width: calc(100% - 24px);
    min-width: 0;
    margin: 8px 12px;
  }
  .stat strong {
    font-size: 14px;
  }
  main {
    padding: 18px 12px;
  }
  .chat-log {
    max-height: 320px;
  }
}

/* Compact two-room tavern, with inline messages and a separate scroll pane. */
.tavern-tabs {
  display: flex;
  justify-content: center;
  gap: 1px;
  margin: 12px 0;
}
.tavern-tabs button {
  background: #424242;
  color: #eee;
  border: 1px solid #666;
  border-radius: 0;
  font-size: 13px;
  padding: 9px 18px;
}
.tavern-tabs button.selected {
  background: #232323;
  border-bottom: 3px solid #b69863;
}
.tavern-panel {
  border: 1px solid #555;
  background: #eee;
  padding: 12px;
  max-width: 850px;
  margin: auto;
}
.tavern-panel > h3 {
  margin: -12px -12px 12px;
  padding: 9px 12px;
  background: #383838;
  color: #eee;
  font-size: 15px;
  font-weight: 400;
}
.tavern-panel .chat-log {
  height: 360px;
  max-height: 50vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 13px;
  line-height: 1.65;
}
.tavern-panel .chat-line {
  display: block;
  border: 0;
  padding: 2px 0;
  margin: 0;
  color: #2f4353;
  overflow-wrap: anywhere;
}
.chat-line time {
  font-size: 11px;
}
.chat-line .chat-name,
.chat-line .chat-reply {
  display: inline;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: 0;
  font-size: inherit;
  text-decoration: underline;
  color: #172b3a;
}
.chat-line .chat-name {
  font-weight: bold;
}
.chat-line .chat-reply {
  font-size: 11px;
}
.chat-line .user-text {
  white-space: pre-wrap;
}
.chat-options {
  display: inline-block;
  vertical-align: top;
  margin-left: 6px;
}
.chat-options summary {
  cursor: pointer;
  color: #777;
}
.chat-options[open] {
  background: #eee;
  padding: 3px;
}
.tavern-compose {
  display: block !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}
.tavern-compose input {
  width: 100%;
  margin: 0;
}
.tavern-controls {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin: 6px 0;
}
.tavern-controls button {
  padding: 5px 13px;
  border-radius: 2px;
}
.tavern-footer {
  display: block;
  text-align: center;
  margin-top: 8px;
}
.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;
}
@media (max-width: 600px) {
  .tavern-tabs button {
    padding: 8px;
    font-size: 12px;
  }
  .tavern-panel {
    padding: 8px;
  }
  .tavern-panel > h3 {
    margin: -8px -8px 8px;
  }
  .tavern-panel .chat-log {
    height: 330px;
  }
}

/* 0.4.2: character panel, two navigation columns, consistent action rows. */
#game {
  max-width: 1240px;
  padding: 0 16px;
  margin: 20px auto;
}
.layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 185px;
  gap: 16px;
  align-items: start;
}
.left-column {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  min-width: 0;
}
#statusbar {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  background: #f7f6f2;
  border: 1px solid var(--line);
}
.menu-heading,
.navgroup summary {
  font:
    bold 13px/1.4 Arial,
    sans-serif;
  letter-spacing: 0.2px;
  background: #343934;
  color: #fff;
  margin: 0;
  padding: 8px 10px;
}
.character-info {
  margin: 10px 10px 8px;
  font-size: 12px;
}
.character-info > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
}
.character-info dt {
  color: var(--muted);
}
.character-info dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
  font-weight: bold;
}
.character-bars {
  padding: 0 10px;
}
.character-meter {
  margin: 9px 0;
}
.character-meter > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.character-meter progress {
  display: block;
  height: 7px;
  margin: 4px 0 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  appearance: none;
  accent-color: #589b32;
}
.character-meter progress::-webkit-progress-bar {
  background: #dce1d7;
}
.character-meter progress::-webkit-progress-value {
  background: #589b32;
}
.character-meter progress::-moz-progress-bar {
  background: #589b32;
}
.character-meter.life progress {
  accent-color: #4483bb;
}
.character-meter.life progress::-webkit-progress-value {
  background: #4483bb;
}
.character-meter.life progress::-moz-progress-bar {
  background: #4483bb;
}
.character-gear {
  font-size: 11px;
  margin: 10px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
#halver-warning {
  font-size: 12px;
  margin: 8px;
  padding: 8px;
  background: #fff0c9;
  border: 1px solid #ddbd6c;
  color: #654b13;
}
#main-navigation,
#social-navigation {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  background: #f2f3ed;
}
nav button,
nav .navgroup button {
  font-size: 13px;
  min-height: 35px;
  padding: 7px 10px;
  text-align: left;
}
nav button.active {
  background: #343934;
  border-left: 3px solid #9aaa81;
}
nav .navgroup {
  margin: 0;
  border: 0;
}
.navgroup summary {
  min-height: 35px;
}
.navgroup button:last-child {
  border-bottom: 0;
}
#social-navigation .navgroup + .navgroup {
  margin-top: 12px;
}
#social-navigation {
  border: 0;
  background: transparent;
}
#social-navigation .navgroup {
  border: 1px solid var(--line);
  background: #f2f3ed;
}
main {
  padding: 20px;
  min-height: 520px;
}
h1 {
  font-size: 30px;
  margin-bottom: 16px;
}
h2 {
  font-size: 24px;
  margin-bottom: 14px;
}
.row {
  padding: 11px 0;
  gap: 12px;
}
.target {
  margin-top: 14px;
  padding: 11px 0;
}
.section {
  margin: 22px 0 10px;
}
.note {
  margin: 14px 0;
  padding: 10px 12px;
}
.sheet td,
.sheet th {
  padding: 8px;
}
.skill-progress {
  padding: 9px 0;
  margin-bottom: 12px;
}
.subnav {
  margin-bottom: 16px;
  gap: 6px;
}
.crime-target {
  border: 1px solid var(--line);
  background: #fbfaf7;
  margin: 12px 0;
  padding: 12px;
}
.crime-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.crime-title h3 {
  font-size: 15px;
  margin: 0;
}
.crime-title small {
  white-space: nowrap;
}
.crime-facts {
  display: grid;
  grid-template-columns: 0.7fr 2fr 0.65fr 1fr;
  gap: 12px;
  margin: 0 0 10px;
}
.crime-facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}
.crime-facts dd {
  font-size: 13px;
  font-weight: bold;
  margin: 0;
  overflow-wrap: anywhere;
}
.crime-equipment,
.crime-detail {
  font-size: 12px;
  margin: 6px 0;
}
.crime-actions {
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}
.crime-target .missing {
  font-size: 12px;
  margin: 6px 0;
}
.crime-target button {
  font-size: 13px;
  padding: 7px 12px;
  min-height: 36px;
}
.crime-target .skill-progress {
  border: 0;
  padding: 5px 0;
}
.tavern-panel .chat-log {
  margin: 0;
}
.tavern-tabs button {
  padding: 8px 12px;
}
#mobile-menu-toggle {
  display: none;
}
#workers-list {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
#workers-list summary {
  font-size: 14px;
  font-weight: bold;
}
#workers-list .row {
  font-size: 12px;
  padding: 8px 0;
}
@media (min-width: 761px) and (max-width: 1050px) {
  #game {
    padding: 0 10px;
  }
  .layout {
    grid-template-columns: 175px minmax(0, 1fr) 155px;
    gap: 10px;
  }
  main {
    padding: 16px;
  }
  .crime-facts {
    grid-template-columns: 1fr 2fr;
    gap: 8px;
  }
  .character-info {
    font-size: 11px;
  }
  .navgroup summary,
  nav button,
  nav .navgroup button {
    font-size: 12px;
  }
  .menu-wait {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  #game {
    margin: 12px auto;
    padding: 0 12px;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .left-column {
    width: 100%;
    order: 0;
  }
  #statusbar {
    margin: 0 0 8px;
  }
  .character-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    margin: 8px 12px;
  }
  .character-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 12px;
  }
  .character-meter {
    margin: 3px 0 8px;
  }
  .character-gear {
    margin: 4px 12px 8px;
    padding-top: 5px;
  }
  .character-info > div {
    font-size: 12px;
  }
  .character-info > div:first-child {
    grid-column: 1/-1;
  }
  .character-info > div:first-child dd {
    font-size: 14px;
  }
  .menu-heading {
    padding: 6px 10px;
  }
  #mobile-menu-toggle {
    display: block;
    width: 100%;
    min-height: 44px;
    text-align: left;
    background: #343934;
    color: #fff;
    border: 0;
    margin-bottom: 0;
  }
  #main-navigation,
  #social-navigation {
    display: none;
  }
  #game.menu-open #main-navigation {
    display: flex;
    margin-top: 5px;
  }
  #game.menu-open #social-navigation {
    display: flex;
    width: 100%;
    order: 1;
  }
  main {
    width: 100%;
    order: 2;
    padding: 16px 12px;
    min-height: 360px;
  }
  nav button,
  nav .navgroup button {
    min-height: 44px;
    text-align: left;
    font-size: 13px;
  }
  nav button[data-page] {
    flex-direction: row;
    justify-content: space-between;
  }
  .navgroup[open] {
    display: block;
  }
  #crime-submenu {
    display: flex;
    flex-direction: column;
  }
  #crime-submenu button {
    font-size: 13px;
  }
  .crime-facts {
    grid-template-columns: 1fr 2fr;
    gap: 10px;
  }
  .crime-title {
    align-items: start;
  }
  .crime-title small {
    white-space: normal;
    text-align: right;
  }
  .crime-target button {
    min-height: 44px;
  }
  .crime-actions button {
    flex: 1 1 auto;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  #identity {
    display: none;
  }
  header {
    padding: 14px 16px;
  }
  .brand {
    font-size: 26px;
  }
  .row {
    flex-wrap: wrap;
  }
  .tavern-tabs button {
    min-height: 44px;
  }
  footer {
    margin: 20px 12px;
  }
}

button.primary small {
  color: inherit;
  opacity: 0.9;
}

/* 0.4.3: menu placement and inventory within the home section. */
.quick-menu {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.quick-menu button,
.places-menu button {
  width: 100%;
}
.places-menu {
  margin-top: 12px;
}
.places-menu .menu-heading {
  cursor: default;
}
.home-tabs {
  margin: 0 0 18px;
}
.home-tabs button {
  font-size: 13px;
}
.quick-menu button:last-child {
  border-bottom: 0;
}

/* 0.4.4: always-visible crime block; quiet active navigation. */
.crime-block button {
  width: 100%;
}
nav button.active,
nav button[data-page].active {
  background: transparent;
  color: var(--ink);
  border-left: 0;
  font-weight: 600;
}
nav button.active:hover {
  background: #e3e8dc;
}
.payout-ready {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
}
.payout-ready button {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .payout-ready {
    align-items: flex-start;
    flex-direction: column;
  }
  .payout-ready button {
    width: 100%;
  }
}
/* 0.5: compact, responsive gang management. */
.gang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 18px 0;
  border-bottom: 1px solid #cdd1c7;
  padding-bottom: 12px;
}
.gang-tabs button {
  background: transparent;
  border: 1px solid #cdd1c7;
  padding: 8px 12px;
  color: var(--ink);
}
.gang-tabs button.selected {
  font-weight: 600;
  background: #e6e9df;
  border-color: #8b9b79;
}
.gang-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-block: 1px solid #d5d9d0;
  padding: 14px 0;
  margin: 12px 0;
}
.gang-summary span {
  font-size: 13px;
  color: #596253;
  flex: 1;
  min-width: 100px;
}
.gang-summary strong {
  display: block;
  font-size: 18px;
  color: #283126;
  margin-top: 4px;
}
.gang-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 16px 0;
}
.table-scroll {
  overflow-x: auto;
}
.gang-event {
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
}
.gang-event small {
  color: #727a69;
}
[data-gang-form] {
  margin: 12px 0;
  max-width: 520px;
}
[data-gang-form] button {
  margin-top: 8px;
}
@media (max-width: 760px) {
  .gang-filters {
    grid-template-columns: 1fr;
  }
  .gang-tabs button {
    flex: 1 0 auto;
  }
  .gang-summary {
    gap: 10px;
  }
}

.gang-history {
  border-top: 1px solid #d6d8cf;
  padding: 16px 0;
  margin-top: 16px;
}
.gang-history summary,
.gang-business summary {
  cursor: pointer;
  font-weight: 600;
}
.gang-history-scroll {
  max-height: 260px;
  overflow-y: auto;
}
.gang-business {
  border-bottom: 1px solid #d6d8cf;
  padding: 16px 0;
}
.gang-business h3 {
  margin: 0;
}
.business-state {
  font-size: 0.85em;
  color: #53624b;
}
.gang-business details {
  margin: 12px 0;
}

.energy-hint {
  display: block;
  color: #963c32;
  font-size: 0.85rem;
  margin: 6px 0;
}
.energy-hint[hidden],
.halver-status[hidden] {
  display: none;
}
.energy-hint .link {
  font-size: inherit;
}
.halver-status {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #36563d;
}
.halver-status summary {
  cursor: pointer;
}
.halver-status small {
  display: block;
  margin-top: 6px;
}
#gang-menu {
  margin-bottom: 14px;
}

.garage-car {
  padding: 12px;
  margin: 8px 0;
}
.garage-car h3,
.garage-car p {
  margin: 0 0 6px;
}
.garage-car h3 small {
  font-weight: normal;
}
.garage-car .row {
  padding: 6px 0;
}
.garage-car button {
  margin: 3px;
}
/* Community expansion */
.profile-hero {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 20px;
  background: #e8ece4;
  border-left: 3px solid #879b78;
  margin-bottom: 16px;
}
.profile-avatar {
  font-size: 64px;
  color: #36543e;
}
.profile-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.profile-highlights strong {
  font-size: 24px;
  display: block;
}
.profile-highlights small {
  display: block;
}
.item-points {
  display: block;
  color: #405d46;
  margin: 8px 0;
}
.account-number {
  font-size: 24px;
  letter-spacing: 2px;
}
.market-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding: 12px;
}
.market-feed div {
  padding: 8px;
  background: #eef0e9;
}
.market-feed small {
  display: block;
}
#gang-chat-log p {
  margin: 8px 0;
}
#gang-chat-log small {
  display: block;
}
.gang-summary {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .profile-highlights,
  .market-feed {
    grid-template-columns: 1fr;
  }
  .profile-hero {
    padding: 12px;
    gap: 12px;
  }
}
#social-navigation > section.navgroup > h2 {
  background: #343c34;
  color: #fff;
  font:
    700 15px Georgia,
    serif;
  margin: 0;
  padding: 11px 12px;
}

/* Compact, responsive 0.8 activity and vehicle views. */
.crime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.crime-grid > .section {
  grid-column: 1/-1;
  margin: 8px 0 0;
}
.crime-grid > .crime-target,
.work-grid > .target {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.crime-grid .crime-title {
  display: block;
}
.crime-grid .crime-title h3 {
  margin-bottom: 6px;
}
.crime-grid .crime-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 8px;
}
.crime-grid .crime-facts dd {
  overflow-wrap: anywhere;
}
.crime-grid .crime-equipment {
  line-height: 1.5;
}
.crime-grid .crime-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.crime-grid button {
  white-space: normal;
}
.work-grid form {
  margin-top: auto;
}
.garage-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}
.garage-controls input,
.garage-controls select {
  width: 100%;
  min-width: 0;
}
.garage-compact {
  border-bottom: 1px solid var(--line, #d4d7cb);
  margin: 0;
}
.garage-compact > summary {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) repeat(3, minmax(60px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 12px 10px;
  cursor: pointer;
  list-style: none;
}
.garage-compact > summary > span:first-child:before {
  content: "▸ ";
  color: #52684f;
}
.garage-compact[open] > summary > span:first-child:before {
  content: "▾ ";
}
.garage-compact summary:hover {
  background: #ecefe4;
}
.garage-compact summary small {
  display: block;
  color: #6c766a;
  font-size: 11px;
  margin-top: 4px;
}
.garage-compact .garage-car {
  margin: 0 8px 12px;
  background: #f7f8f2;
}
.garage-pagination {
  justify-content: space-between;
  margin: 16px 0;
}
.bounty-messages {
  max-height: 260px;
  overflow: auto;
}
.bounty-messages p {
  border-bottom: 1px solid #d4d7cb;
  padding-bottom: 8px;
}
[data-shadow] {
  margin: 12px 0;
}
[data-shadow] textarea {
  width: 100%;
  min-height: 70px;
}
@media (max-width: 1100px) {
  .crime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .crime-grid {
    grid-template-columns: 1fr;
  }
  .garage-controls {
    grid-template-columns: 1fr;
  }
  .garage-compact > summary {
    gap: 6px;
    padding: 10px 3px;
    grid-template-columns: minmax(90px, 2fr) repeat(3, minmax(44px, 1fr));
    font-size: 12px;
  }
}

/* 0.10: compact visual inventory and new systems */
.language-picker {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.language-picker select {
  width: auto;
  padding: 5px;
}
.art-button {
  padding: 0;
  border: 0;
  background: #252922;
  overflow: hidden;
  border-radius: 5px;
  flex-shrink: 0;
}
.art-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-art {
  width: 110px;
  height: 78px;
}
.shop-item {
  gap: 16px;
  align-items: center;
}
.shop-item > div {
  flex: 1;
}
.shop-item p {
  margin: 6px 0;
}
.banner-art {
  width: 100%;
  height: 190px;
  margin-bottom: 12px;
}
.art-dialog {
  max-width: min(94vw, 1000px);
  border: 0;
  padding: 12px;
  background: #f7f7f2;
  border-radius: 8px;
}
.art-dialog img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
.art-dialog::backdrop {
  background: #101812dd;
}
.capacity {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
}
.table-scroll {
  overflow-x: auto;
}
.sheet th {
  white-space: nowrap;
}
.test-world-note {
  font-size: 12px;
}
.shop-item small {
  display: block;
}
.garage-car > .item-art {
  float: right;
  margin: 0 0 12px 16px;
}
@media (max-width: 650px) {
  .shop-item {
    flex-wrap: wrap;
  }
  .item-art {
    width: 80px;
    height: 60px;
  }
  .shop-item > div {
    min-width: 140px;
  }
  .capacity {
    display: block;
  }
  .language-picker {
    margin: 0;
  }
  .banner-art {
    height: 130px;
  }
}

.crime-art {
  display: block;
  width: 100%;
  height: 110px;
  margin-bottom: 12px;
}
.crime-target .crime-art img {
  object-fit: cover;
}
.shop-item .item-art {
  transition: filter 0.15s;
}
.art-button:hover {
  filter: brightness(1.12);
}

.row .item-points strong {
  display: inline;
}
/* 0.11 unified venues: compact, readable and responsive. */
.renewal {
  --ink: #20392c;
  --line: #d8ddcf;
  --gold: #b58b45;
}
.venue-hero {
  position: relative;
  margin: -1px -1px 24px;
  isolation: isolate;
  border-radius: 10px;
  overflow: hidden;
  background: #20352b;
  min-height: 210px;
  color: #fff;
}
.venue-hero > img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  filter: brightness(0.72);
}
.venue-hero > div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(0deg, rgba(10, 25, 17, 0.92), transparent 95%);
}
.venue-hero h2 {
  font-size: 32px;
  color: #fff;
  border: 0;
  margin: 6px 0;
  font-weight: 500;
}
.venue-hero p {
  margin: 0;
  max-width: 620px;
  color: #f2f2e9;
}
.venue-hero .eyebrow {
  color: #ead3a2;
  letter-spacing: 0.12em;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.metric {
  border: 1px solid var(--line);
  background: #f1f3e9;
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}
.metric small {
  display: block;
  color: #596655;
  font-size: 12px;
}
.metric strong {
  display: block;
  font-size: 21px;
  color: var(--ink);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.service-grid,
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.service-card,
.role-card,
.crew-card {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 2px 4px #20392c06;
}
.service-grid > .service-card,
.role-grid > .role-card,
.crime-grid > .service-card {
  margin: 0;
}
.service-card h3,
.role-card h4 {
  margin: 0 0 12px;
  color: var(--ink);
}
.service-card p,
.role-card p {
  line-height: 1.55;
}
.service-card > strong {
  display: block;
  margin: 12px 0;
}
.crew-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.crew-heading h3 {
  margin: 0;
}
.role-card {
  border-top: 3px solid #9cae8a;
}
.role-card > small {
  display: block;
  min-height: 48px;
  color: #5b675c;
}
.renewal form {
  max-width: 600px;
}
.renewal .service-card form {
  max-width: none;
}
.renewal label {
  line-height: 1.6;
}
.renewal input,
.renewal select,
.renewal textarea {
  border-radius: 5px;
  border: 1px solid #bac4b5;
  background: #fffefa;
  min-height: 42px;
}
.renewal button {
  border-radius: 5px;
  min-height: 40px;
  padding: 10px 16px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.renewal button:hover:not(:disabled) {
  box-shadow: 0 2px 8px #20392c25;
}
.renewal button:focus-visible {
  outline: 3px solid #c39a56;
  outline-offset: 3px;
}
.renewal .gang-tabs,
.renewal .actions.home-tabs,
.category-tabs,
.renewal .subtabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 14px 0;
  margin: 0 0 20px;
}
.renewal .gang-tabs button,
.renewal .home-tabs button,
.category-tabs button {
  flex: 1 1 125px;
  max-width: 240px;
  text-align: center;
}
.category-tabs .selected {
  background: #315540;
  color: white;
  border-color: #315540;
}
.renewal .home-tabs {
  max-width: 540px;
  margin-inline: auto;
}
.renewal .actions {
  gap: 12px;
  justify-content: center;
}
.renewal > button:only-of-type,
.renewal .service-card > button:only-of-type {
  display: block;
  margin: 16px auto;
}
.renewal form[data-horizon-form="credits/list"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 520px;
  margin: 20px auto 28px;
  padding: 20px;
  background: #f1f3e9;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.renewal form[data-horizon-form="credits/list"] button {
  grid-column: 1/-1;
  justify-self: center;
}
.renewal .food-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.food-card {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.food-card .art-button {
  padding: 0;
  border: 0;
  display: block;
  width: 100%;
  height: 170px;
  max-width: none;
  margin: 0;
}
.food-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.food-card > div {
  padding: 18px;
}
.food-card h3 {
  margin: 0;
}
.food-card strong {
  display: block;
  margin-bottom: 14px;
}
.food-card button[data-world] {
  display: block;
  width: 100%;
}
#invitation-banner {
  padding: 10px;
  margin-bottom: 14px;
  background: #f5e8c7;
  border-left: 4px solid #ba8a2d;
  border-radius: 6px;
}
#invitation-banner button {
  display: block;
  border: 0;
  background: transparent;
  text-align: left;
  color: #513d16;
}
.has-invitation::after {
  content: " ●";
  color: #c79837;
}
.has-invitation {
  font-weight: bold !important;
  background: #f4ebd4 !important;
}
.target-people {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.target-people small {
  display: block;
}
.renewal details {
  margin: 16px 0;
}
.renewal summary {
  padding: 12px 4px;
  color: #294837;
  font-weight: 600;
}
.renewal .crime-grid .art-button {
  width: 100%;
  max-width: none;
  height: 125px;
  margin-bottom: 12px;
}
.renewal .crime-grid .art-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 650px) {
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-grid > .metric:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .service-grid,
  .role-grid,
  .renewal .food-grid {
    grid-template-columns: 1fr;
  }
  .venue-hero > img {
    height: 200px;
  }
  .venue-hero > div {
    padding: 18px;
  }
  .venue-hero h2 {
    font-size: 27px;
  }
  .crew-heading {
    display: block;
  }
  .renewal .gang-tabs button {
    flex-basis: 110px;
  }
  .metric strong {
    font-size: 18px;
  }
}
.renewal .subnav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 24px;
  padding: 12px;
  background: #f0f2e9;
  border: 1px solid #d8ddcf;
  border-radius: 8px;
}
.renewal .subnav button {
  flex: 1 1 130px;
  max-width: 240px;
  min-height: 54px;
  font-size: 14px;
}
.renewal .training-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.renewal .training-card > button {
  margin: 0 !important;
}

.renewal form > button:only-of-type {
  display: block;
  margin: 18px auto 4px;
}
.renewal .food-card button:not(.art-button) {
  display: block;
  margin: 14px auto 0;
}
.renewal .art-button {
  padding: 0;
  min-height: 0;
}
.renewal .bank-extra {
  max-width: 600px;
  margin: 24px auto;
  padding: 22px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 9px;
}
/* 0.12: consistent cards throughout city services and community pages. */
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.property-grid > .service-card {
  margin: 0;
}
.property-card > .art-button {
  display: block;
  width: 100%;
  height: 190px;
  margin: 0 0 18px;
}
.dog-card > .art-button {
  height: 150px;
}
.renewal section.target {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffefa;
  padding: 20px;
  margin: 18px 0;
}
.renewal .gang-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
}
.renewal .gang-summary > span {
  flex: 1;
  min-width: 120px;
  background: #f0f3e9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.renewal .row {
  gap: 16px;
  padding: 16px 0;
}
.renewal .row small {
  line-height: 1.6;
}
.renewal .sheet {
  border-radius: 7px;
  overflow: hidden;
}
.renewal .sheet th {
  background: #e8eddf;
  color: #294837;
  padding: 12px;
}
.renewal .sheet td {
  padding: 12px;
  border-bottom: 1px solid #d8ddcf;
}
.renewal .sheet tr:nth-child(even) {
  background: #f1f3eb;
}
.renewal .note {
  border-radius: 7px;
  line-height: 1.7;
  padding: 15px;
}
.renewal h3 {
  line-height: 1.4;
}
.renewal .section {
  margin: 22px 0;
  padding-top: 18px;
}
.renewal .garage-controls {
  background: #f0f3e9;
  padding: 15px;
  border-radius: 8px;
}
.renewal .garage-compact {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffefa;
  padding: 0 12px;
}
.renewal .garage-compact summary {
  font-weight: 400;
}
.renewal .art-button img {
  object-fit: cover;
}
.renewal .compact-form {
  margin: 12px auto;
}
.renewal form select:disabled {
  opacity: 0.6;
}
.renewal .food-card > div {
  padding: 18px;
}
.renewal .crew-card .role-card {
  box-shadow: none;
}
.renewal #crew-create {
  margin: 20px 0;
}
.renewal .crime-grid {
  align-items: stretch;
}
.renewal .crime-target {
  border-radius: 8px;
  background: #fffefa;
}
.renewal .crime-target h3 {
  min-height: 25px;
}
.renewal .crime-target button {
  margin-top: auto;
}
.renewal .profile-sections {
  gap: 18px;
}
@media (max-width: 650px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
  .renewal .row {
    flex-wrap: wrap;
  }
  .property-card > .art-button {
    height: 180px;
  }
  .renewal .sheet td,
  .renewal .sheet th {
    padding: 9px;
  }
  .renewal .gang-summary > span {
    min-width: 100px;
  }
}
.dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.dog-grid > .dog-card {
  margin: 0;
}
.dog-grid .art-button {
  display: block;
  width: 100%;
  height: 190px;
  margin: 0 0 16px;
}
.dog-grid .dog-card:only-child {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 1fr;
  column-gap: 22px;
}
.dog-grid .dog-card:only-child > .art-button {
  grid-row: 1/5;
  height: 100%;
  min-height: 220px;
  margin: 0;
}
.dog-card p {
  margin: 8px 0;
}
.dog-card form {
  margin: 0;
}
.renewal > form.service-card {
  margin: 20px auto;
  max-width: 600px;
  width: 100%;
}
.renewal input[type="checkbox"],
.renewal input[type="radio"] {
  min-height: 0;
  width: auto;
  vertical-align: middle;
}
.renewal[data-view="profile"] > h3 {
  margin-top: 28px;
}
.renewal[data-view="forum"] .subnav {
  gap: 10px;
}
.renewal .sheet th {
  text-align: left;
  font-weight: 600;
}
.renewal .sheet td {
  overflow-wrap: anywhere;
}
.renewal > h2:first-child {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.renewal details:not(.garage-compact) {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  padding: 0 16px;
}
.renewal details[open]:not(.garage-compact) {
  padding-bottom: 16px;
}
.renewal details > summary {
  padding: 15px 0;
}
.renewal .target p:last-child {
  margin-bottom: 0;
}
@media (max-width: 650px) {
  .dog-grid {
    grid-template-columns: 1fr;
  }
  .dog-grid .dog-card:only-child {
    display: block;
  }
  .dog-grid .dog-card:only-child > .art-button {
    height: 190px;
    min-height: 0;
    margin-bottom: 16px;
  }
  .renewal > form.service-card {
    padding: 16px;
  }
}
.renewal[data-view="dogs"] .venue-hero > img {
  object-position: center top;
}
.renewal .crime-target > .art-button {
  margin: 0 0 12px !important;
}
.renewal[data-view="boxing"] [data-expand="sport_offer"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.renewal[data-view="boxing"] [data-expand="sport_offer"] > button {
  grid-column: 1/-1;
  justify-self: center;
}
.renewal .service-card > button:not(.art-button) {
  display: block;
  margin: 16px auto 0;
}
.renewal .training-card > button {
  margin: 0 !important;
}

/* Localization: longer German/Spanish labels must wrap without widening columns. */
button,
summary,
.category-tabs button,
.crime-tabs button {
  overflow-wrap: anywhere;
  white-space: normal;
}
label,
.service-card,
.role-card,
.target {
  min-width: 0;
}
select {
  max-width: 100%;
}
[lang="de"] .navgroup button,
[lang="es"] .navgroup button {
  line-height: 1.35;
}

/* 0.13: approved light three-column demo, connected to live game data. */
body {
  background: #e9ece6;
  color: #29342e;
  font-size: 14px;
}
header {
  padding: 22px max(24px, calc((100vw - 1320px) / 2));
  background: #222e27;
  border-bottom: 3px solid #849777;
  gap: 24px;
}
.brand {
  font-size: 29px;
  letter-spacing: 3px;
}
.brand span {
  font-size: 9px;
  letter-spacing: 1.6px;
}
#game {
  max-width: 1320px;
  padding: 0 16px;
  margin: 24px auto;
}
.layout {
  grid-template-columns: 210px minmax(0, 1fr) 184px;
  gap: 20px;
}
#content {
  background: #f8f9f5;
  border: 1px solid #d8ded3;
  border-radius: 8px;
  padding: 26px;
  min-width: 0;
}
nav .navgroup,
#statusbar {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #d5dccf;
  background: #f7f8f3;
}
nav button {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  min-height: 36px;
}
.menu-heading,
.navgroup summary,
#social-navigation > section.navgroup > h2 {
  background: #35453a;
  font:
    600 12px/1.4 Arial,
    sans-serif;
  letter-spacing: 0.3px;
  padding: 12px;
}
button {
  border-radius: 4px;
}
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #829b69;
  outline-offset: 2px;
}
.profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 14px 12px;
}
.profile-top > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-top strong {
  font-size: 18px;
}
.profile-top small {
  display: block;
  margin-top: 4px;
  color: #687563;
}
.monogram {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: #e3e9dc;
  color: #40553b;
  font: 24px Georgia;
  border-radius: 5px;
}
.character-info {
  margin: 0;
  padding: 0 14px;
}
.character-info > div {
  padding: 6px 0;
}
.character-info dt {
  font-size: 12px;
  color: #64705f;
}
.character-info dd {
  font-size: 12px;
}
.character-bars {
  padding: 0 14px;
}
.character-meter {
  margin: 12px 0;
}
.character-meter progress {
  height: 6px;
  margin-top: 6px;
}
.halver-status {
  border-top: 1px solid #dce2d7;
  padding: 11px 14px;
  color: #52664b;
  font-size: 12px;
}
.overview-dashboard .pagehead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.overview-dashboard .eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #74806b;
}
.overview-dashboard h1 {
  font:
    38px Georgia,
    serif;
  margin: 8px 0 10px;
  overflow-wrap: anywhere;
}
.rank-badge {
  font:
    11px Arial,
    sans-serif;
  vertical-align: middle;
  display: inline-block;
  background: #e7ecdf;
  color: #506346;
  border: 1px solid #d3ddc9;
  padding: 6px 9px;
  margin-left: 12px;
  border-radius: 4px;
}
.pagehead p {
  margin: 0;
  color: #586651;
  font-size: 12px;
}
.dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: #9ba593;
  margin: 0 8px;
  vertical-align: middle;
}
.overview-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.overview-stat {
  background: #edf1e7;
  border: 1px solid #dce3d3;
  padding: 16px 14px;
  border-radius: 5px;
}
.overview-stat small {
  color: #59664f;
  font-size: 11px;
}
.overview-stat strong {
  display: block;
  font-size: 25px;
  font-weight: 500;
  margin-top: 10px;
}
.overview-dashboard .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.overview-dashboard .section-title h2 {
  font: 600 15px Arial;
  margin: 0;
  border: 0;
  padding: 0;
}
.overview-dashboard .section-title > span {
  font-size: 10px;
  color: #637157;
}
.overview-equipment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
}
.overview-equipment {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #dce2d4;
  border-radius: 5px;
  background: #fff;
  min-width: 0;
}
.overview-equipment > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.overview-picture {
  padding: 0;
  border: 0;
  background: #263128;
  width: 108px;
  height: 86px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}
.overview-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.overview-equipment small {
  font-size: 10px;
  color: #627157;
  letter-spacing: 1px;
}
.overview-equipment h3 {
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0;
}
.equipped {
  font-size: 10px;
  color: #58734b;
}
.overview-two {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}
.overview-panel {
  padding: 18px;
  border: 1px solid #dce2d4;
  background: #fff;
  border-radius: 5px;
  min-width: 0;
}
.formline {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 20px 0 8px;
}
.overview-dashboard progress {
  height: 6px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  accent-color: #6c8857;
}
.overview-dashboard .subtle {
  font-size: 11px;
  color: #65735a;
  line-height: 1.7;
}
.overview-dashboard .actions {
  gap: 8px;
  margin-top: 18px;
}
.overview-dashboard .actions button {
  font-size: 11px;
  padding: 10px 12px;
  flex: 1;
  white-space: normal;
}
.overview-wait {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0e8;
  font-size: 12px;
}
.overview-wait b {
  font-size: 11px;
  color: #536947;
  font-weight: 400;
}
.overview-wait:last-of-type {
  border: 0;
}
.overview-explanation {
  margin-top: 20px;
  border-top: 1px solid #dce2d4;
  padding: 15px 0 0;
}
.overview-explanation summary {
  font-size: 12px;
  color: #56664b;
}
.overview-explanation p {
  font-size: 12px;
  color: #56634e;
  line-height: 1.6;
}
@media (max-width: 1100px) and (min-width: 761px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  #social-navigation {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .overview-equipment {
    display: block;
  }
  .overview-picture {
    width: 100%;
    height: 110px;
    margin-bottom: 12px;
  }
}
@media (max-width: 760px) {
  header {
    padding: 18px;
    flex-wrap: wrap;
  }
  #game {
    margin: 14px auto;
    padding: 0 12px;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .left-column {
    width: 100%;
  }
  #content {
    padding: 18px;
    width: 100%;
  }
  .overview-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .overview-two {
    grid-template-columns: 1fr;
  }
  .overview-equipment-grid {
    gap: 8px;
  }
  .overview-equipment {
    padding: 9px;
    display: block;
  }
  .overview-picture {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
  }
  .overview-dashboard h1 {
    font-size: 32px;
  }
  .language-picker {
    margin-left: auto;
  }
  #identity {
    display: none;
  }
  #statusbar .profile-top {
    padding: 12px;
  }
  .character-info {
    padding: 0 12px;
  }
  .character-info > div {
    display: flex;
  }
  .character-info > div:first-child {
    grid-column: auto;
    border: 0;
    margin: 0;
    padding: 6px 0;
  }
  .character-info > div:first-child dd {
    font-size: 12px;
  }
  .character-bars {
    padding: 0 12px;
  }
  #mobile-menu-toggle {
    display: block;
  }
  #main-navigation,
  #social-navigation {
    display: none;
  }
  #game.menu-open #main-navigation,
  #game.menu-open #social-navigation {
    display: flex;
    width: 100%;
  }
}
.email-reminder {
  border-left-color: #b8860b;
  margin-top: 0;
}
.turnstile:empty {
  display: none;
}
.turnstile {
  margin: 8px 0;
}

/* Ownership stays beside the purchase action, including on narrow screens. */
.shop-item > .shop-purchase {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-left: auto;
}
.shop-owned {
  padding: 10px 14px;
  border-radius: 8px;
  background: #e8eddf;
  text-align: center;
  line-height: 1.5;
}
.shop-owned strong {
  display: inline;
}
.shop-owned small {
  color: #35573e;
}
@media (max-width: 650px) {
  .shop-item > .shop-purchase {
    flex-basis: 100%;
  }
}
