@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap");

:root {
  --paper: #f5ecdd;
  --ink: #39251e;
  --muted: #806c58;
  --plum: #743345;
  --line: #d6c4aa;
  --green: #52704c;
  --brass: #b99458;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --rail-width: 142px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #e7dac5;
  color: var(--ink);
  font: 12px var(--sans);
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  transition:
    background 0.16s,
    transform 0.16s;
}
button:hover {
  background: #e5d5bd;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-width);
  background: linear-gradient(100deg, #30201c, #201719);
  color: #d5bc92;
  border-right: 1px solid #836340;
  display: flex;
  align-items: center;
  flex-direction: column;
  z-index: 4;
}
.monogram {
  font: 19px/1.3 var(--serif);
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.7px;
  color: #e9ce9e;
  margin: 23px 8px 0;
}
.monogram span {
  display: block;
  font-size: 18px;
}
.monogram small {
  display: block;
  font: 9px var(--sans);
  letter-spacing: 1px;
  margin-top: 10px;
}
.rail-line {
  width: calc(100% - 26px);
  height: 1px;
  background: #69513a;
  margin: 23px 0 14px;
}
.rail nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 0 8px;
}
.rail nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-align: left;
  font: 12px var(--serif);
  color: #d8c3a2;
}
.rail nav button > span {
  font: 18px var(--sans);
  width: 17px;
}
.rail button.active {
  background: #4e2930;
  color: #f2dbab;
  border-color: #815245;
  box-shadow: inset 0 0 12px #23141566;
}
.rail button:hover {
  background: #50322c;
}
.rail .help {
  margin-top: auto;
  padding: 10px;
  color: #d8c3a2;
}
.help span {
  margin-left: 6px;
  font-size: 11px;
}
.rail-bottom {
  font: 11px var(--serif);
  letter-spacing: 2px;
  margin: 12px 0 24px;
  color: #b79b78;
}
.app {
  margin-left: var(--rail-width);
}
header {
  min-height: 58px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #c6ad88;
  padding: 8px 18px;
  gap: 24px;
  background: linear-gradient(#fff7e9, #f0e3cf);
}
.brand {
  font: 17px var(--serif);
  white-space: nowrap;
}
.brand > span {
  display: block;
  font: 8px var(--sans);
  letter-spacing: 1.5px;
  margin-top: 4px;
  color: var(--muted);
}
.metrics {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.metrics > div {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.metrics > div > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  display: block;
  margin-bottom: 3px;
}
.metrics strong {
  font: 18px var(--serif);
  font-variant-numeric: tabular-nums;
}
.metrics small {
  font: 11px var(--sans);
  color: var(--muted);
}
#reputation {
  color: var(--plum);
}
.icon-button {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 18px;
  white-space: nowrap;
}
.icon-button span {
  font-size: 9px;
  margin-left: 4px;
  color: var(--muted);
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-height: calc(100vh - 120px);
}
.club {
  padding: 0 12px 10px;
  min-width: 0;
  background: #d9c8ad;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 43px;
}
h1 {
  font: 19px var(--serif);
  margin: 0;
}
h1 span {
  font: 10px var(--sans);
  letter-spacing: 1px;
  margin-left: 12px;
  color: var(--muted);
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 600;
}
.badge {
  color: #6f5136;
  font-size: 10px;
  padding: 5px 0;
  text-align: right;
}
.badge.open {
  color: #3c603b;
}
.world-wrap {
  height: max(480px, 65vh);
  background: radial-gradient(ellipse at 50% 65%, #463630, #211c1b 75%);
  border-radius: 3px 3px 0 0;
  border: 3px solid #392b24;
  outline: 1px solid #a58659;
  box-shadow:
    inset 0 0 0 1px #8b6b46,
    0 4px 12px #291a1926;
  position: relative;
  overflow: hidden;
}
.world-top {
  position: absolute;
  inset: 10px 12px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #e6d2af;
  z-index: 2;
  pointer-events: none;
}
.world-top > div {
  padding: 7px 8px;
  background: #211917c9;
  border-radius: 2px;
}
.world-top button {
  pointer-events: auto;
  font-size: 10px;
  color: #e6d2af;
  background: #2e211ee8;
  border: 1px solid #8a6d46;
  border-radius: 3px;
  padding: 7px 10px;
  white-space: nowrap;
}
.world-top button:hover {
  background: #50372d;
}
.tiny {
  color: #b9a387;
  margin-left: 9px;
}
.live-dot {
  display: inline-block;
  background: #9fae78;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
}
#world {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#world:active {
  cursor: grabbing;
}
#room-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.room-label {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  background: #f6ead7f0;
  border: 1px solid #b99b69;
  border-radius: 3px;
  padding: 6px 9px;
  box-shadow: 0 2px 8px #140f1466;
  font-size: 9px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.room-label.selected {
  border-color: #bd835c;
  background: #fff3d9;
  box-shadow: 0 0 0 2px #743345;
}
.room-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #62804f;
}
.room-label.busy i {
  background: #b28139;
}
.room-label.locked {
  border-style: dashed;
  color: #dcc5a7;
  background: #352823e8;
}
.map-hint {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: #d4bfa1;
  font-size: 9px;
  pointer-events: none;
}
.map-hint span {
  padding: 4px 6px;
  background: #211917d9;
  border-radius: 2px;
}
.compass {
  position: absolute;
  right: 13px;
  bottom: 12px;
  color: #c1a77e;
  font-size: 8px;
  text-align: center;
  pointer-events: none;
}
.compass span {
  display: block;
  font-size: 23px;
}
.floor-footer {
  border: 1px solid #b99f78;
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 8px 12px;
  background: var(--paper);
}
.occupancy {
  display: flex;
  align-items: center;
  gap: 8px;
}
.round-icon {
  color: var(--plum);
  font-size: 22px;
}
.occupancy strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.occupancy small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
  color: var(--muted);
}
.floor-key {
  display: flex;
  gap: 10px;
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 5px;
}
.plum {
  background: var(--plum);
}
.gold {
  background: #b08b48;
}
.green {
  background: #698456;
}
.text-button {
  font-size: 10px;
  color: var(--plum);
  padding: 8px 0;
  margin-left: auto;
}
.objective {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px 0;
}
.objective-icon {
  font-size: 25px;
  color: #8e6634;
}
.objective strong {
  display: block;
  font: 13px var(--serif);
  margin: 3px 0;
}
.goal {
  margin-left: auto;
  flex: 0 0 140px;
  font-size: 9px;
  color: #6e563f;
  text-align: right;
}
.progress {
  height: 4px;
  border-radius: 2px;
  background: #dcccaf;
  margin-top: 7px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--plum);
  width: 0%;
  transition: width 0.5s;
}
.management {
  min-width: 0;
  border-left: 1px solid #baa17c;
  padding: 15px 13px;
  background: linear-gradient(100deg, #fbf2e4, #f2e6d4);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.panel-heading h2 {
  font: 23px var(--serif);
  margin: 0;
}
.panel-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.panel-desc {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 5px 0 14px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
  margin: 16px 0 4px;
}
.section-heading strong {
  font-weight: 400;
  letter-spacing: 0;
}
.staff-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.portrait {
  display: block;
  height: 63px;
  width: 50px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 4px;
  border: 1px solid #b89770;
  background: #dac6ac;
}
.candidate .portrait {
  width: 64px;
  height: 76px;
}
.staff-name {
  font: 15px var(--serif);
}
.staff-charm {
  display: block;
  font: 8px var(--sans);
  letter-spacing: 1px;
  color: var(--plum);
  margin-top: 2px;
}
.staff-skill {
  font-size: 10px;
  color: #785f4b;
  margin-top: 3px;
  line-height: 1.4;
}
.energy-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 8px;
  color: #78664c;
}
.energy-row .progress {
  margin: 0;
  flex: 1;
  height: 4px;
}
.energy-row .progress i {
  background: #6e8659;
}
.staff-state {
  color: var(--green);
  font-size: 8px;
  margin-bottom: 7px;
  text-align: right;
}
.break-button {
  font-size: 10px;
  border: 1px solid #bdac8d;
  border-radius: 3px;
  padding: 6px 9px;
  background: #efe2cd;
  float: right;
}
.outline {
  border: 1px solid #aa865c;
  border-radius: 3px;
  padding: 11px;
  width: 100%;
  color: var(--plum);
  font-size: 11px;
  margin-top: 14px;
  background: #f8ecda;
}
.tip {
  background: #eadeca;
  border-left: 2px solid #ae8d57;
  padding: 10px;
  margin-top: 16px;
  font-size: 10px;
  line-height: 1.7;
  color: #795f49;
}
.tip strong {
  font-weight: 500;
  color: #573d2e;
}
.timebar {
  min-height: 62px;
  border-top: 1px solid #bda17b;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 9px 16px;
  background: linear-gradient(#fff6e7, #efdfc8);
}
.night {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 170px;
}
.moon {
  font-size: 29px;
  color: var(--plum);
}
.night strong {
  display: block;
  font: 14px var(--serif);
}
.night small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  font-size: 9px;
  color: var(--muted);
}
.timeline > div {
  height: 3px;
  background: #d8c4a8;
  flex: 1;
  border-radius: 2px;
}
.timeline i {
  display: block;
  background: #986a48;
  height: 100%;
  width: 0;
}
.speed-controls {
  display: flex;
  gap: 3px;
  border: 1px solid #cfb693;
  padding: 3px;
  border-radius: 3px;
}
.speed-controls button {
  min-width: 32px;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 2px;
  font-size: 11px;
}
.speed-controls .selected {
  background: var(--plum);
  color: #fff1da;
}
.primary {
  background: #6c293b;
  color: #fff1da;
  padding: 11px 15px;
  border: 1px solid #8d4c4c;
  border-radius: 3px;
  font-size: 11px;
  min-width: 150px;
}
button.primary:hover {
  background: #873d4d;
}
button.primary:disabled:hover {
  background: #6c293b;
}
.primary span {
  margin-left: 16px;
  color: #ddbd83;
}
.primary.wide {
  width: 100%;
  margin-top: 15px;
}
#toast {
  position: fixed;
  bottom: 85px;
  left: 50%;
  max-width: calc(100% - 24px);
  width: max-content;
  transform: translate(-50%, 20px);
  background: #35211ef5;
  color: #fff0d6;
  padding: 12px 18px;
  border: 1px solid #9c7848;
  border-radius: 4px;
  box-shadow: 0 8px 25px #22151040;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  font-size: 12px;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid #ac875b;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  padding: 24px;
  width: 460px;
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  box-shadow: 0 25px 90px #21120e80;
}
dialog::backdrop {
  background: #1c1413a6;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-top h2 {
  font: 25px var(--serif);
  margin: 0;
}
.close {
  font-size: 26px;
  color: #84573d;
  padding: 3px 8px;
}
.dialog-desc {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.candidate,
.upgrade {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.candidate strong,
.upgrade strong {
  font: 14px var(--serif);
}
.candidate p,
.upgrade p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin: 5px 0;
}
.candidate button,
.upgrade button {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid #b89970;
  padding: 8px;
  border-radius: 3px;
  font-size: 10px;
}
.portrait-button,
.candidate .portrait-button {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 4px;
  color: var(--plum);
  background: transparent;
  text-align: center;
}
.portrait-button span {
  display: block;
  padding: 4px 0;
  font-size: 9px;
}
.portrait-button:hover {
  background: #e5d5bd;
  box-shadow: 0 0 0 2px var(--brass);
}
dialog.profile-dialog {
  width: 720px;
  padding: 20px;
}
.hostess-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 16px;
  align-items: center;
}
.full-body {
  display: block;
  width: 100%;
  height: min(60dvh, 560px);
  object-fit: contain;
  background: #2b1c17;
  border: 1px solid #ac875b;
  border-radius: 3px;
}
.profile-membership {
  color: var(--green);
  font: 18px var(--serif);
  margin: 12px 0;
}
.profile-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
}
.profile-navigation button {
  border: 1px solid #b89970;
  border-radius: 3px;
  padding: 10px 14px;
  color: var(--plum);
}
dialog.walkin-dialog {
  width: 800px;
}
.walkin-dialog .hostess-profile {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.walkin-dialog .full-body {
  height: min(54dvh, 480px);
}
.decision-badge {
  color: var(--plum);
  font-size: 9px;
  letter-spacing: 1px;
  line-height: 1.7;
}
.walkin-dialog .close {
  font: 11px var(--sans);
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px;
}
.page-heading {
  flex-wrap: wrap;
}
#walkin-alert {
  color: #fff1da;
  background: var(--plum);
  border: 1px solid #9a6e48;
  border-radius: 3px;
  padding: 8px;
  margin: 4px 0;
  font-size: 10px;
}
#walkin-alert:hover {
  background: #873d4d;
}
.applicant-name {
  font: 28px var(--serif);
  margin: 8px 0;
}
.offer-budget {
  background: #eadeca;
  padding: 0 12px;
  margin-top: 12px;
  border-left: 2px solid var(--brass);
}
.offer-budget .detail-stat {
  padding: 8px 0;
}
.budget-note,
.walkin-choice {
  font-size: 11px;
  line-height: 1.6;
  color: #79553d;
}
.budget-note {
  padding-bottom: 10px;
}
.offer-actions {
  position: sticky;
  bottom: -20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 0 4px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.offer-actions .outline {
  margin: 0;
}
@media (max-width: 600px) {
  dialog.profile-dialog {
    padding: 16px;
  }
  .hostess-profile {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .full-body {
    height: min(52dvh, 520px);
  }
  .profile-info .detail-stat {
    padding: 8px 0;
  }
  .walkin-dialog .hostess-profile,
  .offer-actions {
    grid-template-columns: 1fr;
  }
  .walkin-dialog .full-body {
    height: 34dvh;
  }
  .walkin-dialog .dialog-top h2 {
    font-size: 22px;
  }
  .offer-actions {
    bottom: -16px;
    gap: 8px;
  }
}
.report-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.report-row.total {
  font: 20px var(--serif);
  color: var(--green);
}
.room-detail-icon {
  font-size: 36px;
  color: #997040;
  padding: 14px 0;
}
.detail-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.detail-stat span {
  color: var(--muted);
}
.detail-stat strong {
  text-align: right;
}
select {
  width: 100%;
  padding: 10px 7px;
  border: 1px solid #bea17c;
  border-radius: 3px;
  background: #fff6e7;
  color: var(--ink);
  margin-top: 8px;
}
.back-button {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 6px 0;
}
#render-error {
  position: absolute;
  inset: 40% 20px auto;
  text-align: center;
  color: #ffe5bc;
  background: #291b18;
  padding: 16px;
}
.log-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.6;
  color: #785b43;
}
.log-item span {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-bottom: 3px;
}
body:has(dialog[open]) {
  overflow: hidden;
}

@media (min-width: 1600px) {
  main {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .management {
    padding: 16px;
  }
  .staff-card {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }
  .portrait {
    width: 56px;
    height: 68px;
  }
}
@media (max-width: 1150px) {
  :root {
    --rail-width: 130px;
  }
  .monogram {
    font-size: 17px;
  }
  .rail nav {
    padding: 0 5px;
  }
  .rail nav button {
    font-size: 11px;
    gap: 6px;
  }
  main {
    grid-template-columns: minmax(0, 1fr) 264px;
  }
  header {
    gap: 12px;
    padding: 8px 12px;
  }
  .brand {
    font-size: 15px;
  }
  .metrics {
    gap: 14px;
  }
  .metrics > div {
    padding-left: 12px;
  }
  .metrics strong {
    font-size: 16px;
  }
  .floor-key {
    order: 3;
    margin-left: 0;
  }
  .tiny {
    display: none;
  }
  h1 span {
    display: none;
  }
}
@media (max-width: 950px) {
  main {
    display: block;
  }
  .management {
    border-left: 0;
    border-top: 1px solid #bda17b;
    padding: 18px;
  }
  .brand {
    display: none;
  }
  .metrics {
    margin-left: 0;
    flex: 1;
    justify-content: space-between;
  }
  .metrics > div:first-child {
    border: 0;
    padding-left: 0;
  }
  .staff-card {
    grid-template-columns: 56px minmax(0, 1fr) 70px;
  }
  .portrait {
    width: 56px;
    height: 68px;
  }
  .staff-charm {
    display: inline;
    margin-left: 4px;
  }
  .energy-row {
    max-width: 260px;
  }
  .timebar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .timeline {
    min-width: 110px;
  }
  .night {
    margin-right: auto;
  }
}
@media (max-width: 600px) {
  .rail {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 10px;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid #836340;
  }
  .monogram {
    margin: 0;
    text-align: left;
    font-size: 17px;
  }
  .monogram span {
    display: inline;
    font-size: inherit;
    margin-left: 5px;
  }
  .monogram small {
    margin-top: 3px;
    font-size: 8px;
  }
  .rail-line,
  .rail-bottom {
    display: none;
  }
  .rail nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 0.8fr 1fr 1.3fr 0.9fr;
    gap: 3px;
    padding: 0;
  }
  .rail nav button {
    justify-content: center;
    padding: 7px 3px;
    min-height: 40px;
    font-size: 11px;
    gap: 4px;
  }
  .rail nav button > span {
    font-size: 15px;
    width: auto;
  }
  .rail .help {
    margin: 0;
    padding: 8px;
    border: 1px solid #71553e;
    border-radius: 3px;
  }
  .help span {
    font-size: 10px;
  }
  .app {
    margin-left: 0;
  }
  header {
    padding: 9px 10px;
    gap: 10px;
    min-height: 59px;
  }
  .metrics {
    gap: 9px;
  }
  .metrics > div {
    padding-left: 8px;
  }
  .metrics > div > span {
    font-size: 7px;
    letter-spacing: 0.3px;
  }
  .metrics strong {
    font-size: 15px;
  }
  .metrics small {
    font-size: 9px;
  }
  .icon-button {
    padding: 7px 6px;
    font-size: 16px;
  }
  .icon-button span {
    display: block;
    margin: 1px 0 0;
    font-size: 8px;
  }
  .club {
    padding: 0 8px 12px;
  }
  .page-heading {
    min-height: 42px;
  }
  h1 {
    font-size: 18px;
  }
  .badge {
    font-size: 9px;
  }
  .world-wrap {
    height: max(440px, 65vh);
  }
  .world-top {
    inset: 8px 7px auto;
    font-size: 8px;
    letter-spacing: 0.4px;
  }
  .world-top button {
    padding: 8px;
    font-size: 9px;
  }
  .map-hint {
    left: 7px;
    font-size: 8px;
    gap: 4px;
  }
  .room-label {
    font-size: 8px;
    padding: 6px;
  }
  .floor-footer {
    padding: 9px;
    gap: 7px 10px;
  }
  .floor-key {
    width: 100%;
    padding-top: 5px;
    border-top: 1px solid var(--line);
  }
  .objective {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 5px 8px;
  }
  .objective strong {
    font-size: 12px;
  }
  .goal {
    grid-column: 2;
    width: 100%;
    text-align: left;
    margin-top: 4px;
  }
  .goal .progress {
    margin-top: 4px;
  }
  .management {
    padding: 18px 14px;
  }
  .staff-card {
    padding: 11px 0;
  }
  .staff-state {
    font-size: 9px;
  }
  .break-button {
    min-height: 36px;
    min-width: 58px;
  }
  .timebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 12px;
  }
  .night {
    min-width: 0;
    margin: 0;
  }
  .timeline {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
  }
  .speed-controls {
    grid-row: 1;
    grid-column: 2;
  }
  .speed-controls button {
    min-height: 36px;
    min-width: 36px;
  }
  #open-club {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
  }
  #toast {
    bottom: 16px;
  }
  dialog {
    padding: 18px;
  }
  .dialog-top h2 {
    font-size: 22px;
  }
  .candidate {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .candidate .portrait {
    width: 56px;
    height: 68px;
    grid-row: 1 / 3;
  }
  .candidate button {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
    min-height: 36px;
  }
  .report-row {
    gap: 10px;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
