#harborBoot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  align-items: center;
  padding: 20px max(6vw, env(safe-area-inset-left));
  color: #fff2d2;
  background: #092518 var(--harbor-loading-image,url('./assets/harbor-mobile-loading.jpg')) center / cover no-repeat;
  font: 500 15px system-ui, sans-serif;
  transition: opacity .18s ease-out;
}
#harborBoot.is-ready { opacity: 0; pointer-events: none; }
#harborBoot[hidden] { display: none; }
#harborBoot .harbor-loading-copy { width: min(300px, 42vw); text-shadow: 0 2px 10px #061812; }
#harborBoot strong { display: block; font: 700 clamp(30px, 5vw, 69px)/.95 Georgia, serif; letter-spacing: .025em; }
#harborBoot .harbor-loading-status { margin: 11px 0 0; color: #ffe1a0; }
#harborBoot .harbor-loading-bar { position: relative; height: 14px; margin-top: 15px; }
#harborBoot progress { display: block; appearance: none; width: 100%; height: 12px; border: 1px solid #b08a49; border-radius: 99px; background: #113528; overflow: hidden; color: #e9b962; }
#harborBoot progress::-webkit-progress-bar { background: #113528; }
#harborBoot progress::-webkit-progress-value { background: #e9b962; border-radius: 99px; }
#harborBoot progress::-moz-progress-bar { background: #e9b962; }
#harborBoot .harbor-loading-lottie { position: absolute; inset: 0; }
#harborBoot .harbor-loading-bar.has-motion progress { opacity: 0; }
#harborBoot .harbor-loading-actions button { min-height: 44px; padding: 5px 14px; color: #10291f; background: #f1c476; border: 1px solid #8b5e26; border-radius: 12px; }
#harborBoot .harbor-loading-actions details { margin-top: 10px; font-size: 12px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { #harborBoot { transition: none; } }
@media (orientation: portrait) {
  #harborBoot { align-items: end; padding-bottom: max(17vh, env(safe-area-inset-bottom)); background-position: 58% center; }
  #harborBoot .harbor-loading-copy { width: min(320px, 84vw); }
}

body.handset-landscape #game {
  --handset-brass: #b48b50;
  --handset-ink: #133b2e;
  --handset-art: url('./assets/harbor-mobile-tab.jpg');
  --handset-window-width: 740px;
  --handset-window-height: min(310px, calc(100dvh - var(--touch-top, 6px) - var(--touch-bottom, 6px) - 12px));
  --handset-window-radius: 18px;
}
body.phone.handset-landscape #game:not(.hank-preview):not(.deco-game) :is(#panel, #panel.centered, #panel.wide, #panel[data-kind]):not([hidden]) {
  top: max(var(--touch-top, 6px), 6px);
  bottom: max(var(--touch-bottom, 6px), 6px);
  height: var(--handset-window-height);
  max-width: var(--handset-window-width);
  margin-block: auto;
  border-radius: var(--handset-window-radius);
}
body.handset-landscape #game #panel:not([data-kind="questpath"]) {
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px #10241bc0;
}
body.handset-landscape #game #panel[hidden] { display: none; }
body.handset-landscape #game #panel:is([data-kind="jeweler"],[data-kind="freight-yard"],[data-kind^="future-"]) {
  --handset-window-width: 460px;
  --handset-window-height: min(195px, calc(100dvh - 24px));
}
#game #panelBody .hotel-summary {
  display: flex;
  align-items: center;
  min-height: 84px;
  margin-bottom: 7px;
  padding: 8px 11px;
  border: 1px solid #a58652;
  border-radius: 10px;
  background: linear-gradient(90deg, #123128 0%, #123128dc 29%, #1231280f 65%),
    url('./assets/lindenburg-grandhotel-lobby.jpg') center 54% / cover;
  color: #fff2d1;
}
#game #panelBody .hotel-summary-text { display: grid; gap: 2px; }
#game #panelBody .hotel-summary-text span { font-size: 12px; }
#game #panelBody .hotel-summary-text strong { color: #fff3d1; font-size: 19px; font-variant-numeric: tabular-nums; }
#game #panelBody .hotel-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin: 0 0 6px; }
#game #panelBody .hotel-tabs > button { min-height: 44px; margin: 0; }
#game #panelBody .hotel-tabs > button.selected { background: #f3ca74; color: #372717; }
#game #panelBody .hotel-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; align-items: stretch; }
#game #panelBody .hotel-floor-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
#game #panelBody .hotel-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: 7px; }
#game #panelBody .hotel-card header { display: flex; gap: 4px; align-items: baseline; flex-wrap: wrap; justify-content: space-between; }
#game #panelBody .hotel-card h3 { margin: 0; font-size: 14px; line-height: 1.2; }
#game #panelBody .hotel-card header small { color: #694c28; font-size: 11px; font-weight: 700; }
#game #panelBody .hotel-card p { margin: 0; font-size: 12px; line-height: 1.2; }
#game #panelBody .hotel-action { display: grid; gap: 3px; align-items: end; margin-top: auto; }
#game #panelBody .hotel-requirement { display: block; color: #674320; font-size: 11px; line-height: 1.2; }
#game #panelBody :is(.hotel-opening,.hotel-action) button { min-height: 44px; margin: 0; }
#game #panelBody .hotel-action button { width: 100%; padding-inline: 3px; font-size: 11px; letter-spacing: 0; white-space: nowrap; }
#game #panelBody .hotel-opening { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 5px 9px; }
#game #panelBody .hotel-opening .hotel-requirement { grid-column: 1 / -1; }
#game #panelBody .hotel-opening p { margin: 0; font-size: 13px; }
#game #panelBody .freight-yard-intro { display: flex; gap: 10px; align-items: center; }
#game #panelBody .freight-yard-intro img { width: 56px; height: 56px; object-fit: contain; }
#game #lithium-scene[data-mine-id="aurum"] .mine-icon.crystal {
  background: url("./assets/lindenburg-golderz.png") center / contain no-repeat;
  font-size: 0;
}
body.handset-landscape #game #panel #panelBody .hotel-summary { min-height: 42px; padding-block: 4px; margin-bottom: 4px; }
body.handset-landscape #game #panel[data-kind="grandhotel"] #panelBody { padding-block: 4px; }
body.handset-landscape #game #panel #panelBody .hotel-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 4px; }
body.handset-landscape #game #panel #panelBody .hotel-grid .hotel-card { padding: 5px; gap: 2px; }
body.handset-landscape #game #panel #panelBody .hotel-card :is(h3,p) { margin: 0; }
@media (max-width: 600px) {
  #game #panelBody .hotel-floor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 440px) {
  #game #panelBody .hotel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #game #panelBody .hotel-opening { grid-template-columns: 1fr; }
}
body.handset-landscape #game #panel .panel-head {
  flex: 0 0 auto;
  min-height: 45px;
  padding: 5px 56px 5px 16px;
  border-radius: 17px 17px 0 0;
}
body.handset-landscape #game #panel .panel-head h1 { line-height: 1.05; font-size: clamp(16px,3.1vh,22px); }
body.handset-landscape #game #panel .panel-head small { display: none; }
body.phone.handset-landscape #game:not(.deco-game) #panel > .panel-head #closePanel {
  position: absolute;
  top: 1px;
  right: 5px;
  z-index: 12;
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
body.handset-landscape #game #panel #panelBody {
  flex: 1 1 0;
  min-height: 0;
  padding: 8px 12px;
  font: 500 14px/1.28 system-ui, sans-serif;
}
body.handset-landscape #game #panel #panelBody > :first-child { margin-top: 0; }
body.handset-landscape #game #panel #panelBody :is(h2, h3, p, ul, dl) { margin-block: 4px 7px; }
body.handset-landscape #game #panel #panelBody h2 { font-size: 17px; }
body.handset-landscape #game #panel #panelBody h3 { font-size: 15px; }
body.handset-landscape #game #panel #panelBody :is(.card, .note) { border-radius: 12px; padding: 8px; }
body.handset-landscape #game #panel #panelBody .ledger div { padding: 4px 2px; line-height: 1.12; }
body.handset-landscape #game #panel #panelBody .stats { margin: 4px 0 8px; gap: 6px; }
body.handset-landscape #game #panel #panelBody .stats > div { padding: 5px 6px; border-radius: 9px; }
body.handset-landscape #game #panel #panelBody :is(.team-grid,.server-farm-grid,.office-upgrade-grid,.city-scenery-grid,.more-grid,.kontor-track,.gold-looks,.gold-boosts,.office-skin-grid,.pet-skin-grid,.bank-loan-grid,.customer-grid,.mine-region-list) {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%, 188px),1fr));
  gap: 8px;
}
body.handset-landscape #game #panel #panelBody :is(.jewel-pack-grid,.elite-avatar-grid,.profile-header-gallery) {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%, 128px),1fr));
  gap: 8px;
}
body.handset-landscape #game #panel #panelBody [data-handset-off-page] { display: none !important; }
.handset-pager { display: none; }
body #game #hud #oreStocks > span[hidden] { display: none; }
body #game #hud #oreStocks.has-gold-ore:not([hidden]) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body.handset-landscape #game #panel .handset-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  color: #674c2a;
  font-variant-numeric: tabular-nums;
}
body.handset-landscape #game #panel .handset-pager button {
  margin: 0;
  min-width: 42px;
  height: 38px;
  padding: 0;
  border-radius: 11px;
  font: 700 19px/1 system-ui, sans-serif;
  color: #fff1d1;
  background: #143c30;
}
body.handset-landscape #game :is(#panelBody, #globalChatDrawer) .handset-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,78px),1fr));
  align-items: stretch;
  gap: 5px;
  margin: 0 0 7px;
}
body.handset-landscape #game :is(#panelBody, #globalChatDrawer) .handset-tabs > button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 4px 5px;
  border: 1px solid #9c7841;
  border-radius: 13px;
  background: #113628 var(--handset-art) center / 100% 100% no-repeat;
  box-shadow: none;
  color: #fff1d0;
  font: 700 clamp(11px,1.7vw,14px)/1.13 system-ui, sans-serif;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.handset-landscape #game :is(#panelBody, #globalChatDrawer) .handset-tabs > button:is(.selected,.active,.primary,[aria-pressed="true"],[aria-current="true"],[aria-selected="true"]) {
  background: linear-gradient(#fbe7aa,#d6a65c);
  color: #2f2110;
  border-color: #795525;
  box-shadow: inset 0 1px #fff2c4;
}
body.handset-landscape #game #panelBody .handset-tabs.kontor-icon-nav { grid-template-columns: repeat(auto-fit,minmax(44px,55px)); justify-content: center; }
body.handset-landscape #game #panelBody .handset-tabs.kontor-icon-nav > button { padding: 3px; }
body.handset-landscape #game #panelBody .handset-tabs.kontor-icon-nav img { width: 34px; height: 34px; object-fit: contain; }
body.handset-landscape #game #panelBody :is(.team-section-nav, .kontor-section-heading) { margin-block: 4px; padding-block: 3px; }
body.handset-landscape #game #panelBody :is(.jewel-pack, .elite-avatar-grid .card) { min-height: 0; }
body.handset-landscape #game #panelBody .elite-avatar-grid img { max-height: 86px; width: auto; max-width: 100%; margin: auto; object-fit: contain; }
body.handset-landscape #game #panelBody .profile-header-gallery img { max-height: 85px; object-fit: cover; }

body.handset-landscape #game #panel[data-kind="questpath"] #panelBody { padding: 0; height: 100%; }
body.handset-landscape #game #panel[data-kind="questpath"] .quest-book { padding: 8px 11px 6px; }
body.handset-landscape #game #panel[data-kind="questpath"] .quest-book-spread {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.45fr);
  gap: 8px;
}
body.handset-landscape #game #panel[data-kind="questpath"] .quest-book-page {
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border-radius: 10px;
  background: #fff7e6bd;
}
body.handset-landscape #game #panel[data-kind="questpath"] .quest-book-page:first-child button {
  margin: 0 0 4px;
  min-height: 40px;
  padding: 5px 7px;
  font-size: 13px;
  border-radius: 9px;
}
body.handset-landscape #game #panel[data-kind="questpath"] .quest-book-page:nth-child(2) h2 { padding-inline-end: 42px; }
body.handset-landscape #game #panel[data-kind="questpath"] .quest-book-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); margin: 4px 0 0; }
body.handset-landscape #game #panel[data-kind="questpath"] .quest-step { padding: 5px 7px; margin-block: 3px; border-radius: 9px; }
body.handset-landscape #game #panel[data-kind="questpath"] .quest-step p { margin: 3px 0; }

#game #globalChatDrawer {
  top: 0;
  bottom: 0;
  left: 0;
}
#game:has(#globalChatDrawer:not([hidden])) #globalChatToggle { visibility: hidden; }
body.handset-landscape #game #globalChatDrawer {
  top: 0;
  bottom: 0;
  left: 0;
  width: min(460px, calc(100% - var(--touch-right, 6px)));
  max-width: none;
  border: 0;
  border-inline-end: 1px solid #a98043;
  border-radius: 0 16px 16px 0;
  color: #202e27;
  font: 500 14px/1.2 system-ui, sans-serif;
}
body.handset-landscape #game #globalChatDrawer > header {
  flex: 0 0 auto;
  min-height: 42px;
  padding: var(--touch-top, 8px) 6px 1px calc(var(--touch-left, 12px) + 7px);
  background: #163a2d var(--handset-art) center / 100% 100%;
  font: 700 16px/1.15 system-ui, sans-serif;
}
body.handset-landscape #game #globalChatDrawer > header button { width: 40px; height: 40px; border-radius: 11px; }
body.handset-landscape #game #globalChatDrawer :is(.global-chat-body, .radio-channel) { min-height: 0; overflow: hidden; gap: 3px; }
body.handset-landscape #game #globalChatDrawer .global-chat-body {
  padding: 5px 7px var(--touch-bottom, 8px) calc(var(--touch-left, 12px) + 7px);
}
body.handset-landscape #game #globalChatDrawer .chat-tabs { grid-template-columns: repeat(auto-fit,minmax(82px,1fr)); margin-bottom: 2px; }
body.handset-landscape #game #globalChatDrawer .chat-tab { display: flex; justify-content: center; align-items: center; gap: 5px; }
body.handset-landscape #game #globalChatDrawer .radio-chat { min-height: 0; margin: 0; scrollbar-width: thin; overscroll-behavior: contain; }
body.handset-landscape #game #globalChatDrawer .radio-chat li { margin: 2px 0; padding: 3px; border-radius: 9px; }
body.handset-landscape #game #globalChatDrawer .radio-face { flex-basis: 29px; }
body.handset-landscape #game #globalChatDrawer .radio-face img { width: 29px; height: 29px; border-radius: 7px; }
body.handset-landscape #game #globalChatDrawer .radio-compose { flex: 0 0 auto; padding: 1px 0 0; }
body.handset-landscape #game #globalChatDrawer .radio-compose :is(input,button) {
  min-height: 44px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 11px;
  font-size: 16px;
}
body.handset-landscape.handset-keyboard #game #globalChatDrawer {
  top: var(--handset-visible-top, 0px);
  bottom: auto;
  height: var(--handset-visible-height, 100dvh);
  max-height: none;
  width: min(570px, calc(100% - var(--touch-right, 6px)));
}
body.handset-landscape.handset-keyboard #game #globalChatDrawer :is(.chat-tabs,.radio-private-head) { display: none; }
body.handset-landscape.handset-keyboard #game #globalChatDrawer > header { min-height: 27px; padding-top: 2px; }
body.handset-landscape.handset-keyboard #game #globalChatDrawer > header button { height: 30px; width: 38px; }
body.handset-landscape.handset-keyboard #game #globalChatDrawer .global-chat-body { padding-bottom: 4px; }

body.handset-landscape #game #dialog:has(.welcome) { padding: 5px var(--touch-right, 6px) 5px var(--touch-left, 6px); }
body.handset-landscape #game #dialogBody:has(.welcome) {
  width: min(620px,100%);
  max-height: 100%;
  padding: clamp(8px, 3vh, 18px);
  border-radius: 18px;
  overflow: auto;
  overscroll-behavior: contain;
}
body.handset-landscape #game #dialogBody .welcome { font: 500 14px/1.2 system-ui, sans-serif; }
body.handset-landscape #game #dialogBody .welcome h1 { margin: 0 0 5px; font-size: clamp(20px,5vh,28px); }
body.handset-landscape #game #dialogBody .welcome > p { margin: 4px 0 7px; }
body.handset-landscape #game #dialogBody .welcome :is(#nameForm,#moderatedNameForm) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 8px; }
body.handset-landscape #game #dialogBody .welcome label { color: #384c3c; font-size: 13px; margin: 1px 0; }
body.handset-landscape #game #dialogBody .welcome form :is(input,select) { height: 44px; padding: 5px 8px; margin: 3px 0 0; border-radius: 10px; font-size: 16px; }
body.handset-landscape #game #dialogBody .welcome form :is(button,#brandError,.company-font-preview) { grid-column: 1 / -1; }
body.handset-landscape #game #dialogBody .welcome form button { min-height: 44px; margin: 1px 0; padding: 4px 7px; border-radius: 12px; font-size: 15px; }
body.handset-landscape #game #dialogBody .welcome #brandError:empty { display: none; }
body.handset-landscape #game #dialogBody .welcome .mini { font-size: 12px; }
body.handset-landscape.handset-keyboard #game #dialog:has(.welcome) { top: var(--handset-visible-top,0px); bottom: auto; height: var(--handset-visible-height,100dvh); }
body.handset-landscape.handset-keyboard #game #dialogBody .welcome > :is(p,.mini) { display: none; }
body.handset-landscape #game :is(.pause-card,.decision-card,.meeting-card,.mini-card,.ending-card) { border-radius: 18px; }
body.handset-landscape #game .pause-card { max-height: calc(100dvh - 12px); padding: 8px 13px; overflow-y: auto; }
body.handset-landscape #game .pause-card h1 { margin-block: 0 4px; font-size: 22px; }
body.handset-landscape #game .pause-card .pause-setting { padding-block: 6px; }
body.handset-landscape #game nav#dock #petDock :is(img,svg,.game-icon,.dock-glyph,.dock-pet-sprite) {
  width: 23px;
  height: 23px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  flex: 0 0 auto;
}
body.handset-landscape #game nav#dock #petDock .dock-glyph { background-size: 400% 300%; }
body.handset-landscape #game #panel #panelBody .kontor-track { overflow: visible; }
body.handset-landscape #game #panel #panelBody .kontor-scroll-controls { display: none; }
body.handset-landscape #game #panel #panelBody .kontor-track > * { width: auto; min-width: 0; }
body.handset-landscape #game #panel #panelBody .jewel-pack-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
body.handset-landscape #game #panel #panelBody .jewel-gold .jewel-pack-grid { grid-template-columns: repeat(2,minmax(0,190px)); justify-content: center; }
body.handset-landscape #game #panel #panelBody .jewel-currency-tabs { grid-template-columns: repeat(2,minmax(106px,150px)); justify-content: center; }
body.handset-landscape #game #panel #panelBody .jewel-pack { min-width: 0; }
body.handset-landscape #game #panel #panelBody .jewel-pack .jewel-price { white-space: nowrap; font-size: clamp(11px,1.8vw,15px); }
body.handset-landscape #game #panel #panelBody .rank-board .ranking-podium { margin: 4px auto 6px; max-width: 540px; }
body.handset-landscape #game #panel #panelBody .rank-board .podium-place { padding: 4px; }
body.handset-landscape #game #panel #panelBody .rank-board .podium-portrait { width: min(100%, 84px); }
body.handset-landscape #game #panel #panelBody .rank-board .ranking-caption { padding-block: 3px; margin-block: 2px; }
body.handset-landscape #game #panel #panelBody .rank-board .ranking-row { grid-template-columns: 2ch 28px minmax(0,1fr) auto auto; gap: 5px; padding: 3px 6px; align-items: center; }
body.handset-landscape #game #panel #panelBody .rank-board .ranking-row img { width: 28px; height: 28px; }
body.handset-landscape #game #panel #panelBody .rank-board .ranking-row > button { grid-column: auto; margin: 0; }
body.handset-landscape #game #panel #panelBody .rank-board .ranking-company { overflow: hidden; }
body.handset-landscape #game #panel #panelBody .rank-board .ranking-nickname { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
body.handset-landscape #game nav#dock {
  justify-content: safe center;
  flex-wrap: nowrap;
  gap: clamp(5px,1vw,11px);
  overflow-x: auto;
  scrollbar-width: none;
}
body.handset-landscape #game nav#dock button:not([hidden]) {
  min-width: 44px;
  width: auto;
  flex: 0 1 auto;
  padding-inline: 7px;
  border-radius: 11px;
}
body.handset-landscape #game :is(nav#dock, #panelBody .handset-tabs) button > span {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
body.handset-landscape #game nav#dock button > span { font-size: clamp(10px, 1.55vw, 13px); line-height: 1.1; }
body.handset-landscape #game #panelBody :is(.handset-tabs, .buttons, .team-section-nav) { justify-content: center; }
body.handset-landscape #game #panelBody button[data-action]:not(.radio-message-profile) > span:first-of-type {
  white-space: normal;
  min-width: 0;
  overflow-wrap: anywhere;
}
body.handset-landscape #game .pause-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
body.handset-landscape #game .pause-settings-grid > .pause-setting { margin: 0; border-radius: 11px; padding: 6px 8px; }
body.handset-landscape #game .pause-settings-grid .pause-contact { grid-column: 1 / -1; }
body.handset-landscape #game .pause-card :is(.pause-actions,.language-options) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
body.handset-landscape #game .pause-card .language-options { grid-template-columns: repeat(4,minmax(0,1fr)); }
body.handset-landscape #game .pause-card :is(button,a) { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
body.handset-landscape #game .pause-card .pause-desktop { display: none; }
body.handset-landscape #game .pause-contact .buttons { margin: 0; gap: 7px; }
body.handset-landscape #game .pause-contact a { padding: 7px; line-height: 1.2; }
.profile-menu-tabs { display: flex; justify-content: safe center; gap: 5px; padding: 6px; margin: 0; background: #eee1c5; }
.profile-menu-tabs button { padding: 5px 9px; border: 1px solid #8e7044; border-radius: 10px; background: #133b2e; color: #fff2d0; font-weight: 700; white-space: nowrap; }
.profile-menu-tabs button[aria-pressed="true"] { background: #e5bd72; color: #342213; }
body.handset-landscape #game #panel #panelBody .profile-menu-tabs {
  position: sticky;
  top: -8px;
  z-index: 3;
  grid-template-columns: repeat(5,minmax(0,1fr));
  border-radius: 0 0 12px 12px;
}
body.handset-landscape #game #panel[data-kind="profile"] #panelBody .profile-menu-tabs { top: 0; }
body.handset-landscape #game #panelBody .company-profile-banner { min-height: 120px; max-height: 150px; }
body.handset-landscape #game #panelBody .company-profile-portrait { width: min(64px,18%); }
body.handset-landscape #game #panelBody .company-profile-stats { margin-block: 6px; }
body.handset-landscape #game #panelBody .company-profile-collection { gap: 5px; }
body.handset-landscape #game #panelBody .profile-routes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
body.handset-landscape #game #panelBody .profile-routes button { border-radius: 11px; min-width: 0; }
body.handset-landscape #game #panelBody .profile-routes button small { display: none; }
body.handset-landscape #game #panelBody .radio-profile-grid :is(img,.pet-base-image,.pet-skin-image) {
  width: 32px;
  height: 32px;
  object-fit: contain;
  aspect-ratio: 1;
}
body.handset-landscape #game #dialog:not(.hank-guide) #dialogBody:has(.avatar-story) {
  width: min(660px, calc(100% - var(--touch-left, 6px) - var(--touch-right, 6px)));
  max-height: calc(100dvh - 14px);
  overflow-y: auto;
}
body.handset-landscape #game #dialog .avatar-story {
  --story-portrait-size: clamp(68px, 22dvh, 112px);
  grid-template-columns: var(--story-portrait-size) minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 5px;
  align-items: start;
}
body.handset-landscape #game #dialog.hank-guide .avatar-story {
  --story-portrait-size: clamp(54px, 17dvh, 80px);
  grid-template-columns: var(--story-portrait-size) minmax(0, 1fr);
}
body.handset-landscape #game #dialog .avatar-story .speaker-avatar {
  box-sizing: border-box;
  width: var(--story-portrait-size);
  height: var(--story-portrait-size);
  object-fit: cover;
  border-radius: 12px;
}
body.handset-landscape #game #dialog .avatar-story .story-speech {
  min-height: 0;
  padding: 8px 12px;
  border-radius: 13px;
  font-size: clamp(13px, 3.7vh, 17px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
body.handset-landscape #game #dialog .avatar-story .story-speech strong { margin-bottom: 3px; }
body.handset-landscape #game #dialog .avatar-story > .mini { display: none; }
body.handset-landscape #game #dialog .dialog-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: safe center;
  gap: 8px;
  margin: 4px 0 0;
}
body.handset-landscape #game #dialog .dialog-actions button {
  min-height: 44px;
  min-width: 0;
  border-radius: 13px;
  margin: 0;
  padding: 4px 9px;
  font-size: clamp(11px, 1.65vw, 14px);
  white-space: nowrap;
}
body.handset-landscape #game #dialog .dialog-actions button > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.handset-landscape #game #dialog .kranen-comic figure img { max-height: 54dvh; width: 100%; object-fit: contain; }

body.handset-landscape #game :is(#meeting,#decision,#ending) {
  padding: 7px var(--touch-right, 12px) 7px var(--touch-left, 12px);
}
body.handset-landscape #game :is(.meeting-card,.decision-card,.ending-card) {
  max-width: min(660px, 100%);
  max-height: calc(100dvh - 14px);
  overflow-y: auto;
  border-radius: 16px;
}
body.handset-landscape #game .meeting-card .story-speech {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: clamp(13px, 3.7vh, 17px);
  line-height: 1.25;
}
body.handset-landscape #game :is(#meeting,#decision,#ending) button {
  min-height: 44px;
  border-radius: 13px;
}
body.handset-landscape #game #dialog.hank-guide .dialog-actions {
  grid-column: 1 / -1;
  justify-content: center;
}

body.phone.handset-landscape #game:has(#world[data-scene="world"]):has(#questTracker:not([hidden])) nav#dock {
  inset-inline: max(var(--touch-left), var(--touch-right)) !important;
}
body.handset-landscape #game:has(#world[data-scene="world"]) #questTracker {
  bottom: calc(var(--touch-bottom) + 64px) !important;
}
#game:is(.lithium-open, :has(#world[data-scene="power-plant"])) :is(#globalChatToggle, #globalChatDrawer) {
  display: none;
}

#game #lithium-scene .mine-status {
  position: absolute;
  z-index: 3;
  top: calc(var(--hud-bottom,72px) + 8px);
  left: calc(max(8px, env(safe-area-inset-left)) + 82px);
  display: grid;
  justify-items: start;
  gap: 6px;
  width: min(38%, 250px);
  pointer-events: none;
}
#game #lithium-scene .mine-status > :is(.mine-header, .mine-readouts) {
  position: static;
  width: auto;
  max-width: 100%;
  margin: 0;
}
#game #lithium-scene .mine-status > .mine-readouts { width: 100%; max-width: none; }
#game #lithium-scene .mine-actions :is([data-mine="industry"], [data-mine="upgrades"], [data-mine="help"], .mine-pet-chip) {
  --mine-right-top: calc(var(--hud-bottom,72px) + 12px);
  --mine-right-step: 58px;
  top: calc(var(--mine-right-top) + var(--mine-right-row, 0) * var(--mine-right-step));
  right: max(8px, env(safe-area-inset-right));
  bottom: auto;
  width: clamp(122px, 16vw, 170px);
  min-height: 46px;
}
#game #lithium-scene .mine-actions [data-mine="upgrades"] { --mine-right-row: 1; }
#game #lithium-scene .mine-actions [data-mine="help"] { --mine-right-row: 2; }
#game #lithium-scene .mine-actions .mine-pet-chip { --mine-right-row: 3; }
#game #lithium-scene:has(.mine-inspect:not([hidden])) .mine-status { visibility: hidden; }

body.handset-landscape #game #lithium-scene .mine-status {
  top: calc(var(--hud-bottom) + 6px);
  left: calc(var(--touch-left) + 82px);
  width: min(38%, 180px);
  gap: 5px;
}
body.handset-landscape #game #lithium-scene .mine-status .mine-header {
  padding: 4px 8px;
}
body.handset-landscape #game #lithium-scene .mine-status .mine-readouts { max-width: none; }
body.handset-landscape #game #lithium-scene .mine-status .mine-heading h1 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
body.handset-landscape #game #lithium-scene .mine-actions :is([data-mine="industry"], [data-mine="upgrades"], [data-mine="help"], .mine-pet-chip) {
  --mine-right-top: calc(var(--hud-bottom) + 12px);
  --mine-right-step: 51px;
  right: var(--touch-right);
  height: 44px;
  min-height: 44px;
  padding: 3px 7px;
  font-size: 11px;
}
body.handset-landscape #game #lithium-scene .mine-actions :is(.mine-icon, .mine-industry-icon):not(.pickaxe) {
  width: 24px;
  height: 24px;
}
body.handset-landscape #game.lithium-open #lithium-scene:has(.mine-inspect:not([hidden])) { z-index: 24; }
body.handset-landscape #game #lithium-scene .mine-inspect {
  inset: max(var(--touch-top, 6px), 6px) 0 max(var(--touch-bottom, 6px), 6px);
  width: min(var(--handset-window-width), calc(100% - var(--touch-left, 6px) - var(--touch-right, 6px) - 16px));
  height: var(--handset-window-height);
  max-height: none;
  margin: auto;
  transform: none;
  align-content: start;
  gap: 6px;
  padding: 0 10px 9px;
  border-radius: var(--handset-window-radius);
  background: #f5e8c9;
  font: 500 13px/1.25 system-ui, sans-serif;
}
body.handset-landscape #game #lithium-scene .mine-upgrades-head {
  position: sticky;
  z-index: 1;
  top: 0;
  min-height: 45px;
  margin-inline: -10px;
  padding: 0 5px 0 14px;
  background: #143328 url('./assets/window-title-deco.jpg') center / 100% 100% no-repeat;
}
body.handset-landscape #game #lithium-scene .mine-upgrades-head h2 {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 17px;
}
body.handset-landscape #game #lithium-scene .mine-station {
  gap: 7px;
  padding: 5px 7px;
  border-radius: 12px;
}
body.handset-landscape #game #lithium-scene :is(.mine-capacity, .mine-impact, .mine-lift-preview) {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
}
body.handset-landscape #game #lithium-scene .mine-lift-cabin {
  width: 34px;
  height: 43px;
  object-fit: contain;
}
body.handset-landscape #game #lithium-scene .mine-inspect .mine-buy {
  min-height: 44px;
}

#globalChatToggle .chat-unread[data-channel="friends"] { background-color: #328bff; }
#globalChatToggle .chat-unread[data-channel="both"] { background-color: #aa53e4; }
#globalChatDrawer .radio-face .radio-presence {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff1d7;
  border-radius: 50%;
  background: #778179;
}
#globalChatDrawer .radio-face .radio-presence[data-online="true"] { background: #22964e; }

#game #lithium-scene .mine-actions button:is(.mine-region-back, .mine-commodity-shortcut) {
  box-sizing: border-box;
  width: var(--mine-nav-width);
  height: var(--mine-nav-height);
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  grid-template-rows: minmax(0,1fr) auto;
  padding: 4px;
  border: 1px solid #ae884f;
  border-radius: 9px;
  border-image: none;
  background: #18372e;
  box-shadow: 0 3px 8px #081c1699;
}
#game #lithium-scene .mine-actions button:is(.mine-region-back, .mine-commodity-shortcut) img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
#game #lithium-scene .mine-actions button:is(.mine-region-back, .mine-commodity-shortcut) span {
  padding: 0;
  background: none;
  font-size: clamp(10px, 1.4vw, 13px);
  white-space: normal;
  text-align: center;
}
body.handset-landscape #game #lithium-scene .mine-actions {
  --mine-nav-width: 106px;
  --mine-nav-height: 58px;
  --mine-nav-gap: 8px;
}
body.handset-landscape #game #lithium-scene .mine-actions :is(.mine-region-back, .mine-commodity-shortcut) {
  left: var(--touch-left);
  bottom: var(--touch-bottom);
}
body.handset-landscape #game #lithium-scene .mine-actions .mine-commodity-shortcut:not([hidden]) + .mine-region-back {
  left: calc(var(--touch-left) + var(--mine-nav-width) + var(--mine-nav-gap));
  bottom: var(--touch-bottom);
}
@media (max-width: 740px) {
  body.handset-landscape #game #lithium-scene .mine-actions {
    --mine-nav-width: 86px;
    --mine-nav-height: 50px;
  }
  body.handset-landscape #game #lithium-scene .mine-actions .mine-commodity-shortcut:not([hidden]) + .mine-region-back {
    left: var(--touch-left);
    bottom: calc(var(--touch-bottom) + var(--mine-nav-height) + var(--mine-nav-gap));
  }
}

#game #panelBody :is(.bank-balance, .bot-summary, .commodity-summary) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 7px 9px;
  margin-bottom: 6px;
  border: 1px solid #c7ac76;
  border-radius: 9px;
  background: #f7eccd;
  color: #234136;
}
#game #panelBody :is(.firm-update-grid, .bot-compute-grid, .bank-offers) {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
}
#game #panelBody :is(.firm-update-grid, .bot-compute-grid, .bank-offers) > .card { min-width: 0; margin: 0; }
#game #panelBody .jewel-purchase-tools { display: flex; justify-content: center; margin-top: 6px; }
body.handset-landscape #game #panel #panelBody :is(.ben-tech-tabs, .jewel-currency-tabs) {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
}
body.handset-landscape #game #panel #panelBody :is(.ben-tech-tabs, .jewel-currency-tabs) > button { width: auto; }
body.handset-landscape #game #panel[data-kind="room"] #panelBody .server-farm-grid .upgrade-card {
  gap: 3px;
  min-height: 0;
  padding: 6px;
}
body.handset-landscape #game #panelBody .server-farm-art { height: clamp(36px, 13dvh, 60px); object-fit: cover; }
body.handset-landscape #game #panelBody :is(.server-farm-grid,.bot-compute-grid,.firm-update-grid,.bank-offers,.commodity-stock) :is(p, li) {
  font-size: 12px;
  line-height: 1.24;
}
body.handset-landscape #game #panelBody :is(.server-farm-grid,.firm-update-grid) .unlock-checks { margin: 2px 0; gap: 2px; }
body.handset-landscape #game #panelBody :is(.server-farm-grid,.firm-update-grid) .unlock-checks li { padding: 2px 4px; }
body.handset-landscape #game #panelBody :is(.server-farm-grid,.firm-update-grid) .unlock-checks li:has(.requirement-link) { padding: 0; }
body.handset-landscape #game #panel #panelBody :is(.server-farm-grid,.bot-compute-grid,.firm-update-grid,.bank-offers,.commodity-stock) button {
  font-size: 12px;
  line-height: 1.15;
}
body.handset-landscape #game #panel #panelBody .bank-loan-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5px;
}
body.handset-landscape #game #panel #panelBody .bank-balance strong { font-variant-numeric: tabular-nums; }
body.handset-landscape #game #panel #panelBody .loan-card p { margin-block: 4px; }
body.handset-landscape #game #panel #panelBody .loan-progress { height: 9px; }
body.handset-landscape #game #panel #panelBody .commodity-stock {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px;
}
body.handset-landscape #game #panel #panelBody .commodity-stock > article { padding: 6px 8px; }
body.handset-landscape #game #panel #panelBody .commodity-sell-actions { display: flex; gap: 4px; flex-wrap: wrap; }
body.handset-landscape #game #panel #panelBody .commodity-summary p { margin: 0; }
body.handset-landscape #game #panel #panelBody .ore-manager-card { margin-top: 6px; }
body.handset-landscape #game #panel #panelBody .ore-manager-card .portrait { width: 44px; height: 44px; object-fit: contain; }

body.handset-landscape #game #panel #panelBody :is(.office-upgrade-grid, .pc-links) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 6px;
}
body.handset-landscape #game #panel #panelBody .office-upgrade-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: start;
  gap: 3px 7px;
  margin: 0;
  padding: 6px;
}
body.handset-landscape #game #panel #panelBody .office-upgrade-card > img {
  grid-row: 1 / span 2;
  width: 62px;
  height: 36px;
  border-radius: 5px;
}
body.handset-landscape #game #panel #panelBody .office-upgrade-details :is(h3,p) {
  grid-column: 2;
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}
body.handset-landscape #game #panel #panelBody .office-upgrade-details h3 { font-size: 14px; }
body.handset-landscape #game #panel #panelBody .office-upgrade-details > :is(.office-upgrade-requirements,.unlock-guide,button) { grid-column: 1 / -1; }
body.handset-landscape #game #panel #panelBody .office-upgrade-details > button { min-height: 44px; margin: 0; }
body.handset-landscape #game #panel #panelBody .office-upgrade-requirements summary {
  align-content: center;
  min-height: 44px;
  padding-inline: 6px;
  color: #264a3b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
body.handset-landscape #game #panel #panelBody .handset-pager button {
  min-width: 44px !important;
  min-height: 44px;
}
@media (min-width: 740px) {
  body.handset-landscape #game #panel #panelBody .office-upgrade-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
body.handset-landscape #game #panel #panelBody .office-upgrade-details .unlock-guide > p { margin-top: 3px; font-size: 11px; }
body.handset-landscape #game #panel[data-kind="shop"] #panelBody .unlock-card .unlock-checks {
  grid-template-columns: minmax(0, 1fr);
}
body.handset-landscape #game #panel[data-kind="shop"] #panelBody .unlock-card .requirement-label {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.handset-landscape #game #panel #panelBody .office-upgrade-details .unlock-checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin: 2px 0;
  font-size: 11px;
}
body.handset-landscape #game #panel #panelBody .office-upgrade-details .unlock-checks li:has(small) { grid-column: 1 / -1; }
body.handset-landscape #game #panel #panelBody .office-upgrade-details .unlock-checks li:not(:has(.requirement-link)) { padding: 4px 6px; }
body.handset-landscape #game #panel #panelBody .office-upgrade-details .requirement-link {
  gap: 3px;
  min-height: 44px;
  padding: 3px 6px;
  letter-spacing: normal;
  text-align: left;
}
body.handset-landscape #game #panel #panelBody .office-upgrade-details .requirement-state { font-size: 0; }
body.handset-landscape #game #panel #panelBody .office-upgrade-details .requirement-open { width: 16px; height: 16px; }
body.handset-landscape #game #panel #panelBody .office-upgrade-details .requirement-label { white-space: normal; min-width: 0; }
body.handset-landscape #game #panel #panelBody .pc-summary { margin: 0 0 6px; padding: 5px 8px; font-size: 12px; }
body.handset-landscape #game #panel[data-kind="desk"] #panelBody p:has(+ .pc-summary) { display: none; }
body.handset-landscape #game #panel #panelBody .pc-link {
  min-height: 44px;
  gap: 6px;
  padding: 4px 7px;
  margin: 0;
  letter-spacing: normal;
}
body.handset-landscape #game #panel #panelBody .pc-link strong { font-size: 13px; line-height: 1.15; }
body.handset-landscape #game #panel #panelBody .pc-link small {
  font-size: 11px;
  line-height: 1.15;
  white-space: normal;
}
body.handset-landscape #game #panel #panelBody[data-render-key="shop:growth"],
body.handset-landscape #game #panel[data-kind="properties"] #panelBody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  gap: 6px;
}
body.handset-landscape #game #panel #panelBody[data-render-key="shop:growth"] > :not(.card),
body.handset-landscape #game #panel[data-kind="properties"] #panelBody > :not(.card) { grid-column: 1 / -1; }
body.handset-landscape #game #panel #panelBody[data-render-key="shop:growth"] > .card,
body.handset-landscape #game #panel[data-kind="properties"] #panelBody > .card { margin: 0; min-width: 0; padding: 6px; }
body.handset-landscape #game #panel[data-kind="properties"] #panelBody .ledger { font-size: 11px; }
body.handset-landscape #game #panel[data-kind="properties"] #panelBody :is(.card,.note) p { margin-block: 3px; font-size: 12px; }

body.handset-landscape #game #panel #panelBody .rank-board .ranking-podium { max-width: 470px; gap: 5px; }
body.handset-landscape #game #panel #panelBody .rank-board .podium-place {
  grid-template-columns: 40px minmax(0,1fr);
  grid-template-rows: auto auto auto;
  gap: 3px;
  align-items: center;
}
body.handset-landscape #game #panel #panelBody .rank-board .podium-portrait { width: 40px; grid-row: 1 / 3; }
body.handset-landscape #game #panel #panelBody .rank-board .podium-place > button { grid-column: 1 / -1; }
body.handset-landscape #game #panel #panelBody .rank-board .brand-mark { min-height: 24px; height: 24px; padding: 2px 5px; }
body.handset-landscape #game #panel #panelBody .rank-board .brand-symbol { width: 14px; height: 14px; }
body.handset-landscape #game #panel #panelBody .rank-board .ranking-row .ranking-company {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 0 3px;
}
body.handset-landscape #game #panel #panelBody .rank-board .ranking-row .brand-mark { grid-column: 1 / -1; }
body.handset-landscape #game #panel #panelBody .rank-board :is(.ranking-caption,.ranking-world,.ranking-nickname,.ranking-wealth,.ranking-pages) {
  font-size: 12px;
  line-height: 1.2;
}
body.handset-landscape #game #panel #panelBody .rank-board button { min-height: 36px; padding: 3px 7px; font-size: 12px; }
body.handset-landscape #game #panel #panelBody .rank-board .ranking-list { gap: 3px; margin-block: 5px; }
body.handset-landscape #game #panel #panelBody .rank-board .ranking-pages { gap: 5px; margin-block: 5px 0; }

body.handset-landscape #game #panel[data-kind="jewels"] #panelBody .kontor-section-heading { margin-block: 3px; padding: 3px 8px; }
body.handset-landscape #game #panel[data-kind="jewels"] #panelBody .kontor-section-heading h2 { font-size: 15px; }
body.handset-landscape #game #panel[data-kind="jewels"] #panelBody .jewel-purchases .jewel-pack-grid {
  grid-template-columns: repeat(4,minmax(0,114px));
  justify-content: center;
}
body.handset-landscape #game #panel[data-kind="jewels"] #panelBody .jewel-pack button.jewel-price {
  min-height: 36px;
  padding-inline: 6px;
}
body.handset-landscape #game #panel[data-kind="jewels"] #panelBody .jewel-pack button.jewel-price > span { font-size: 12px; }

body.handset-landscape #game #panel[data-kind="events"] #panelBody .event-rewards { gap: 6px; }
body.handset-landscape #game #panel[data-kind="events"] #panelBody .events-hero { min-height: 52px; padding: 6px 10px; }
body.handset-landscape #game #panel[data-kind="events"] #panelBody .events-hero h2 { font-size: 16px; }
body.handset-landscape #game #panel[data-kind="events"] #panelBody .events-hero > div { max-width: 82%; }
body.handset-landscape #game #panel[data-kind="events"] #panelBody :is(.event-streak,.event-level-rewards) { padding: 5px 7px; }
body.handset-landscape #game #panel[data-kind="events"] #panelBody .event-days { --event-icon-size: 16px; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; }
body.handset-landscape #game #panel[data-kind="events"] #panelBody .event-days li { grid-column: auto; padding: 3px 1px; gap: 2px; font-size: 11px; }
body.handset-landscape #game #panel[data-kind="events"] #panelBody .event-claim { margin-top: 4px; }
body.handset-landscape #game #panel[data-kind="events"] #panelBody button.event-button { min-height: 40px; padding: 6px 12px; }
@media (min-width: 600px) {
  body.handset-landscape #game #panel #panelBody .bot-compute-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.handset-landscape #game #panel[data-kind="events"] #panelBody .event-rewards {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 24%);
    align-items: start;
  }
  body.handset-landscape #game #panel[data-kind="events"] #panelBody .events-hero { grid-column: 1 / -1; }
}

body.handset-landscape #game #panel #panelBody :is(.workshop-panel,.workshop-management) { gap: 6px; }
body.handset-landscape #game #panel #panelBody .workshop-overview { min-height: 45px; padding: 5px 9px; }
body.handset-landscape #game #panel #panelBody .workshop-overview h2 { font-size: 16px; }
body.handset-landscape #game #panel #panelBody .workshop-overview p { margin-top: 2px; font-size: 12px; }
body.handset-landscape #game #panel #panelBody :is(.workshop-active,.workshop-route) { padding: 5px 7px; }
body.handset-landscape #game #panel #panelBody .workshop-active .buttons { margin: 4px 0 0; }
body.handset-landscape #game #panel #panelBody .workshop-catalog .card {
  grid-template-columns: 36px minmax(0,1fr) minmax(100px,34%);
  gap: 6px;
  padding: 4px 6px;
}
body.handset-landscape #game #panel #panelBody .workshop-catalog .workshop-ship-icon { width: 36px; }
body.handset-landscape #game #panel #panelBody .workshop-catalog dl { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; }
body.handset-landscape #game #panel #panelBody .workshop-catalog dl > div { display: flex; gap: 4px; }
body.handset-landscape #game #panel #panelBody .workshop-catalog :is(dt,dd,small) { font-size: 11px; line-height: 1.2; }
body.handset-landscape #game #panel #panelBody .workshop-catalog dd { margin: 0; }
body.handset-landscape #game #panel #panelBody .workshop-panel button { min-height: 44px; font-size: 12px; padding: 4px 7px; }

#game #panelBody .pet-overview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 6px;
}
#game #panelBody .pet-overview-list { display: grid; gap: 6px; }
#game #panelBody .pet-overview-list .pet-look-options { margin: 0; padding: 0 8px 5px; }
body.handset-landscape #game #panel #panelBody .pet-overview-list .pet-base-row {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) minmax(88px,auto);
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 5px 7px;
  border-radius: 9px;
}
body.handset-landscape #game #panel #panelBody .pet-overview-list .pet-base-image { width: 38px; height: 38px; }
body.handset-landscape #game #panel #panelBody .pet-overview-list .pet-base-row p { margin: 0; font-size: 12px; line-height: 1.2; }
body.handset-landscape #game #panel #panelBody .pet-overview-list .pet-base-row small { margin-top: 1px; }
body.handset-landscape #game #panel #panelBody .pet-overview-list .pet-base-actions { gap: 4px; }
body.handset-landscape #game #panel #panelBody .pet-overview-list .pet-base-actions > button { font-size: 12px; min-height: 44px; }

body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-section-nav { margin: 0 0 6px; gap: 5px; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-section-nav > span { font-size: 11px; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-stats b { margin-top: 2px; font-size: 16px; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-card { display: grid; gap: 4px; min-width: 0; margin: 0; padding: 6px; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-card .employee { align-items: center; gap: 6px; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-card .employee strong { font-size: 14px; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-card .employee p { margin: 0; font-size: 12px; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-card .portrait { width: 38px; height: 38px; object-fit: contain; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-card :is(.ledger,.team-payroll,.worker-condition) { font-size: 12px; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-card .ledger div { gap: 5px; font-size: 12px; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-card .worker-condition { padding: 2px 0; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-card .worker-condition label { margin: 3px 0; font-size: 12px; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-card .bar { margin: 2px 0; }
body.handset-landscape #game #panel[data-kind="team"] #panelBody .team-card button { min-height: 44px; margin: 0; padding: 4px 7px; font-size: 12px; }

body.handset-landscape #game :is(#dock,#panel #panelBody,#dialogBody,#globalChatDrawer,.pause-card) button:not(.radio-message-profile) {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap !important;
  font-size: 11px;
  line-height: 1.15;
}
body.handset-landscape #game :is(#dock,#panel #panelBody,#dialogBody,#globalChatDrawer,.pause-card) button:not(.radio-message-profile) > span:first-of-type {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: inherit !important;
}
body.handset-landscape #game nav#dock > button:not([hidden]) {
  display: grid;
  grid-template-rows: 22px 14px;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: max-content !important;
  min-width: 78px;
  height: 56px;
  min-height: 56px;
  flex: 0 0 auto !important;
  padding: 3px 7px;
  border-width: 6px;
  border-image-width: 6px;
  font-size: 11px !important;
}
body.handset-landscape #game nav#dock > button:not([hidden]) > :is(img, i) {
  width: 22px;
  height: 22px;
  margin: 0;
  object-fit: contain;
}
body.handset-landscape #game nav#dock > button:not([hidden]) > span {
  height: 14px;
  line-height: 14px;
  text-shadow: 0 1px 1px #1b2115;
}
body.handset-landscape #game nav#dock > button[data-panel="shop"] > span { text-shadow: none; }
body.handset-landscape #game nav#dock > button:disabled:not([hidden]) {
  opacity: 1;
  color: #e6d6b4;
}
body.handset-landscape #game nav#dock > button:disabled:not([hidden]) > :is(img, i) {
  filter: grayscale(.75);
  opacity: .65;
}
body.handset-landscape #game #panelBody .handset-tabs:not(.kontor-icon-nav) {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
body.handset-landscape #game #panelBody .handset-tabs:not(.kontor-icon-nav) > button { width: auto; }
body.handset-landscape #game #panelBody button:not(.radio-message-profile):has(> span) { padding-inline: 7px; }

#globalChatDrawer .radio-friend-list > li.radio-friend-unread { background: #dcecff; border-color: #689bda; }
#globalChatDrawer .radio-friend-list .radio-message-profile { width: 100%; }
#globalChatDrawer .radio-friend-list .radio-new-message {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: auto;
  color: #164b8b;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
#globalChatDrawer .radio-friend-list .radio-new-message::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #328bff;
  flex: none;
}
#game #panelBody .mailbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
  border-bottom: 1px solid #c8ae7c;
  padding-bottom: 5px;
}
#game #panelBody .mailbox-toolbar :is(p,.buttons) { margin: 0; }
#game #panelBody .mailbox-content .mailbox-section { margin-block: 6px; }
#game #panelBody .mailbox-content .radio-list { margin-block: 4px; gap: 4px; }
#game #panelBody .mailbox-content .radio-list > li { padding: 5px 7px; }
#game #panelBody .mailbox-content .radio-list > li:has(.radio-member) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
}
#game #panelBody .mailbox-content .radio-list .buttons { margin: 0 0 0 auto; gap: 4px; }
#game #panelBody .mailbox-content .radio-list .radio-member small { display: block; margin-left: 0; }
#game #panelBody .mailbox-content .radio-list .mailbox-unread { border-color: #638ac5; background: #e5edfc; }
body.handset-landscape #game #panelBody .mailbox-content .radio-face { width: 30px; flex-basis: 30px; }
body.handset-landscape #game #panelBody .mailbox-content .radio-face img { width: 30px; height: 30px; }
body.handset-landscape #game #panelBody .mailbox-content .radio-list button { min-height: 44px; margin: 0; }
body.handset-landscape #game #panelBody .mailbox-content #radioPlayerSearch label { margin: 0; }
body.handset-landscape #game #panelBody .mailbox-content #radioPlayerSearch input { min-height: 44px; margin-top: 3px; font-size: 16px; }

body.handset-landscape #game #panelBody[data-render-key="eisen-works:pets"] .eisen-pet-categories {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr));
  gap: 6px;
  align-items: start;
}
body.handset-landscape #game #panelBody[data-render-key="eisen-works:pets"] .eisen-pet-category .eisen-facilities { grid-template-columns: 1fr; gap: 5px; }
body.handset-landscape #game #panelBody[data-render-key="eisen-works:pets"] .eisen-pet-category .card {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  gap: 3px 6px;
  padding: 5px;
}
body.handset-landscape #game #panelBody[data-render-key="eisen-works:pets"] .eisen-pet-image {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
body.handset-landscape #game #panelBody[data-render-key="eisen-works:pets"] .eisen-pet-category .card :is(h4,p) { margin: 0; font-size: 12px; }
body.handset-landscape #game #panelBody[data-render-key="eisen-works:pets"] .eisen-pet-category .card button { grid-column: 1 / -1; min-height: 44px; margin: 0; }
body.handset-landscape #game #panelBody[data-render-key="eisen-works:managers"] {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr));
  align-content: start;
  align-items: start;
  gap: 6px;
}
body.handset-landscape #game #panelBody[data-render-key="eisen-works:managers"] .eisen-manager {
  grid-template-columns: 38px minmax(0,1fr);
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 5px;
}
body.handset-landscape #game #panelBody[data-render-key="eisen-works:managers"] .eisen-manager img { width: 38px; height: 38px; object-fit: cover; }
body.handset-landscape #game #panelBody[data-render-key="eisen-works:managers"] .eisen-manager h3 { font-size: 13px; margin: 0 0 3px; }
body.handset-landscape #game #panelBody[data-render-key="eisen-works:managers"] .eisen-manager p { margin: 2px 0 4px; font-size: 11px; line-height: 1.2; }
body.handset-landscape #game #panelBody[data-render-key="eisen-works:managers"] .eisen-production-line { gap: 3px; font-size: 11px; }
body.handset-landscape #game #panelBody[data-render-key="eisen-works:managers"] #eisenBuyerBudget { gap: 4px; }
body.handset-landscape #game #panelBody[data-render-key="eisen-works:managers"] #eisenBuyerBudget label { margin: 0; }
body.handset-landscape #game #panelBody[data-render-key="eisen-works:managers"] #eisenBuyerBudget input { margin-top: 3px; font-size: 16px; }

@media (min-width: 620px) {
  body.handset-landscape #game #panel #panelBody .workshop-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
  body.handset-landscape #game #panel #panelBody .workshop-catalog .card { grid-template-columns: 28px minmax(0,1fr); gap: 4px; min-width: 0; }
  body.handset-landscape #game #panel #panelBody .workshop-catalog .workshop-ship-icon { width: 28px; }
  body.handset-landscape #game #panel #panelBody .workshop-catalog .workshop-order-action { grid-column: 1 / -1; text-align: left; }
  body.handset-landscape #game #panel #panelBody .workshop-catalog .workshop-order-action button { width: 100%; }
}

/* Lindenburg currency and bank exchange */
#hud #lindenburgMarksHud:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 3px;
  min-height: 23px;
  padding: 1px 5px;
  color: #edf5ff;
  background: #12365a;
  border: 1px solid #a8bdd6;
  border-radius: 4px;
  font: 700 clamp(9px,1.15vw,14px)/1.1 system-ui;
  white-space: nowrap;
}
#hud #lindenburgMarksHud img { width: 15px; height: 15px; object-fit: contain; }
.bank-service-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
#panelBody .bank-service-tabs button { margin: 0; }
#panelBody .marks-exchange {
  display: grid;
  grid-template-columns: clamp(54px,14%,116px) minmax(0,1fr);
  align-items: center;
  gap: 10px;
}
#panelBody .marks-exchange img { width: 100%; height: auto; }
#panelBody .marks-exchange h3 { margin: 0 0 4px; }
body.handset-landscape #game #panelBody .marks-exchange p { margin-block: 4px; }
body.handset-landscape #game #hud #lindenburgMarksHud:not([hidden]) { min-height: 18px; padding-inline: 3px; font-size: 9px; }
body.handset-landscape #game #hud #lindenburgMarksHud img { width: 11px; height: 11px; }
#game #hud .money .balance-line:has(#lindenburgMarksHud:not([hidden])) {
  grid-template-columns: minmax(0,1fr) auto auto;
}
body.phone.handset-landscape.landscape #game #hud .money:has(#lindenburgMarksHud:not([hidden])) {
  grid-template-columns: minmax(0,1fr) auto auto;
}
body.phone.handset-landscape.landscape #game #hud .money:has(#lindenburgMarksHud:not([hidden])) .cash-counter { grid-area: 1 / 1; }
body.phone.handset-landscape.landscape #game #hud .money #lindenburgMarksHud:not([hidden]) { grid-area: 1 / 2; align-self: center; }
body.phone.handset-landscape.landscape #game #hud .money:has(#lindenburgMarksHud:not([hidden])) #jewelBalance { grid-area: 1 / 3; }
body.phone.handset-landscape.landscape #game #hud .money:has(#lindenburgMarksHud:not([hidden])) #income { grid-column: 1 / -1; }

/* Hotel administration and matching currency badges */
#game #hud .money:has(#lindenburgMarksHud:not([hidden])) {
  --wallet-badge-width: clamp(54px, 8vw, 68px);
  --wallet-badge-height: clamp(21px, 3.2vw, 28px);
}
#game #hud .money:has(#lindenburgMarksHud:not([hidden])) :is(#lindenburgMarksHud, #jewelBalance) {
  box-sizing: border-box;
  align-self: center;
  justify-self: center;
  width: var(--wallet-badge-width);
  height: var(--wallet-badge-height);
  min-height: var(--wallet-badge-height);
  padding-inline: 3px;
  gap: 3px;
  font: 700 clamp(9px, 1.45vw, 13px)/1 system-ui;
}
#game #hud .money:has(#lindenburgMarksHud:not([hidden])) :is(#lindenburgMarksHud img, #jewelBalance .jewel-icon) {
  flex: none;
  width: clamp(12px, 1.8vw, 16px);
  height: clamp(12px, 1.8vw, 16px);
}
#game #hud .money:has(#lindenburgMarksHud:not([hidden])) :is(#lindenburgMarksHud b,#jewelBalance b) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.phone.handset-landscape.landscape #game #hud.has-ore-stocks .money:has(#lindenburgMarksHud:not([hidden])) {
  grid-template-columns: minmax(0,1fr) auto auto;
}
body.phone.handset-landscape.landscape #game #hud.has-ore-stocks .money:has(#lindenburgMarksHud:not([hidden])) #jewelBalance { grid-area: 1 / 3; }
#panelBody .marks-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(140px,100%),1fr));
  gap: 5px;
}
#panelBody .marks-offer-grid button { width: 100%; margin: 0; min-height: 44px; font-size: clamp(11px,1.9vw,14px); white-space: nowrap; }
#game:has(#world[data-scene="hotel-admin"]) nav#dock,
body.handset-landscape #game:has(#world[data-scene="hotel-admin"]) nav#dock {
  left: var(--touch-left, 16px);
  right: var(--touch-right, 16px);
  width: auto;
  max-width: none;
  transform: none;
  justify-content: flex-start;
}
#game #mainAction[data-appearance="lindenburg-marks"],
body.phone.handset-landscape.landscape #game #mainAction[data-appearance="lindenburg-marks"] {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: max(68px, 15%);
  transform: translateX(-50%);
  width: clamp(188px, 24vw, 280px);
  height: clamp(46px, 6vw, 67px);
  min-height: 44px;
  min-width: 0;
  padding: 0 9px 0 clamp(36px, 5vw, 64px);
  border: 0;
  background: url('./assets/lindenburg-wertmarken-klicker.png') center / 100% 100% no-repeat;
  box-shadow: none;
  color: #f4f7ff;
  font: 700 clamp(12px, 1.6vw, 19px)/1.1 system-ui;
  text-shadow: 0 1px 2px #071427;
  white-space: nowrap;
}
#game #mainAction[data-appearance="lindenburg-marks"]:focus-visible { outline: 2px solid #add8ff; outline-offset: 2px; }
#game #mainAction[data-appearance="lindenburg-marks"]::after { display: none; }
#game .lbwm-float { bottom: max(121px, 24%); color: #d7efff; pointer-events: none; font-size: clamp(17px, 2.5vw, 30px); }

/* Shop entries and Lindenburg token offers */
#game #hud #hudShop {
  padding: 0 4px;
  background: #10382d;
  border: 1px solid #c8aa6e;
  color: #fff1d4;
  white-space: nowrap;
}
#game #hud #hudShop .shop-entry-icon {
  width: 23px;
  height: 23px;
  margin-inline-end: 4px;
  vertical-align: middle;
  object-fit: contain;
}
#game #mapShortcuts .map-shortcut .shop-entry-icon {
  width: 74%;
  height: 74%;
  object-fit: contain;
}
#game nav#dock button[data-panel="gold-shop"] .shop-entry-icon {
  width: 29px;
  height: 29px;
  object-fit: contain;
}
#game #hud #lindenburgMarksHud:not([hidden]) {
  margin: 0;
  box-shadow: none;
  cursor: pointer;
}
#game #hud #lindenburgMarksHud:hover { filter: brightness(1.16); }
#game #hud #lindenburgMarksHud:focus-visible { outline: 2px solid #c6e1ff; outline-offset: 2px; }
#game #panelBody .lbwm-shop-balance {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-bottom: 6px;
}
#game #panelBody .lbwm-shop-balance img { width: 23px; height: 23px; object-fit: contain; }
#game #panelBody .lbwm-shop-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
#game #panelBody .lbwm-shop-item { display: grid; gap: 4px; align-content: start; margin: 0; padding: 7px; min-width: 0; }
#game #panelBody .lbwm-shop-item img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 5px; }
#game #panelBody .lbwm-shop-item h3 { margin: 0; font-size: clamp(12px, 2vw, 17px); }
#game #panelBody .lbwm-shop-item button { min-height: 44px; margin: 0; white-space: nowrap; }

/* Opening choices and Grandhotel bookings */
#game #panelBody .contextual-hank-hint {
  margin: 0 0 7px;
  padding: 5px 8px;
  border-inline-start: 2px solid #99713e;
  font-size: clamp(12px,1.5vw,15px);
}
#game #panelBody :is(.opening-investment-grid,.hotel-booking-grid) {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr));
}
#game #panelBody :is(.opening-investment-grid,.hotel-booking-grid) .card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 7px;
}
#game #panelBody :is(.opening-investment-grid,.hotel-booking-grid) :is(h3,p,.hotel-booking-requirements) { margin: 0; }
#game #panelBody :is(.opening-investment-grid,.hotel-booking-grid) button { align-self: end; min-height: 44px; margin: 0; }
#game #panelBody .hotel-booking-requirements { padding-inline-start: 15px; font-size: 12px; }
#game #panelBody .hotel-booking-balance {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}
#game #panelBody .hotel-booking-balance img { width: 23px; height: 23px; object-fit: contain; }
#game #panelBody .hotel-booking-balance button { min-height: 44px; margin: 0 0 0 auto; }

body.handset-landscape #game #panel #panelBody .hotel-booking-grid .hotel-card { gap: 3px; padding: 5px; }
body.handset-landscape #game #panel #panelBody .hotel-booking-requirements { font-size: 11px; line-height: 1.15; }

/* Company founding */
#game #dialog #dialogBody:has(.founding-welcome) {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-width:100%;
  max-height: min(94dvh,100%);
  padding: 0;
  border: 1px solid #b29153;
  border-radius: 18px;
  background: #f6ecd7;
  color: #17372e;
  overflow: auto;
}
#game #dialogBody .founding-welcome {
  display: block;
  width:100%;
  padding:0;
  font: 500 14px/1.3 Arial,sans-serif;
}
#game #dialogBody .founding-heading {
  padding: clamp(10px,2.8vmin,23px) clamp(14px,4vmin,30px);
  background: linear-gradient(90deg,#162f2df2 12%,#233d3bf0 43%,#162f2d55),
    #233d3b url('./assets/lindenburg-founding-office.jpg') center 48% / cover no-repeat;
  border-bottom: 1px solid #b29153;
}
#game #dialogBody .founding-content { min-width: 0; padding: clamp(12px, 3vmin, 24px); }
body.handset-landscape #game #dialogBody .founding-welcome .founding-heading h1,
#game #dialogBody .founding-heading h1 {
  margin: 0;
  color: #fff4db;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  text-align: start;
  font: 700 clamp(21px,4.4vmin,34px)/1.1 Arial,sans-serif;
}
#game #dialogBody .founding-content #nameForm {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: stretch;
  gap: 10px clamp(12px,4vmin,24px);
}
#game #dialogBody .founding-fields { display:grid; align-content:start; gap:8px; }
#game #dialogBody .founding-content label { margin:0; min-width:0; color:#17372e; font-size:13px; font-weight:700; }
#game #dialogBody .founding-fields input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 3px 0 0;
  padding: 4px 9px;
  border: 1px solid #ad9c79;
  border-radius: 9px;
  background: #fffaf0;
  color: #17372e;
  font: 500 16px/1.2 Arial,sans-serif;
}
#game #dialogBody .founding-fields input:focus-visible { outline:2px solid #386655; outline-offset:1px; }
#game #dialogBody .founding-avatar-field { margin:0; padding:0; min-width:0; border:0; }
#game #dialogBody .founding-avatar-field legend { padding:0; color:#17372e; font-weight:700; }
#game #dialogBody .founding-avatars { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:3px; }
#game #dialogBody .founding-avatar {
  position:relative; display:grid; align-content:center; justify-items:center; gap:5px;
  border:1px solid #b8a88a; border-radius:12px; background:#fdf5e2; padding:6px; cursor:pointer;
}
#game #dialogBody .founding-avatar img {
  display:block; height:clamp(45px,18dvh,100px); aspect-ratio:1; object-fit:cover;
  max-width:100%; border-radius:8px;
}
#game #dialogBody .founding-avatar :is(img,span) { pointer-events:none; }
#game #dialogBody .founding-avatar input[type="radio"] {
  position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; opacity:0; cursor:pointer;
}
#game #dialogBody .founding-avatar:has(input:checked) { box-shadow:inset 0 0 0 2px #396554; border-color:#396554; background:#e7ede0; }
#game #dialogBody .founding-avatar:has(input:checked)::after {
  content:'✓'; position:absolute; top:5px; right:5px; width:21px; height:21px;
  display:grid; place-items:center; color:#fff8df; background:#34604f; border-radius:50%; pointer-events:none;
}
#game #dialogBody .founding-avatar:has(input:focus-visible) { outline:2px solid #34604f; outline-offset:2px; }
#game #dialogBody .founding-content :is(#brandError,.founding-actions) { grid-column:1 / -1; }
#game #dialogBody .founding-content #brandError:empty { display: none; }
#game #dialogBody .founding-content #brandError { margin: 2px 0; }
#game #dialogBody .founding-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; }
#game #dialog #dialogBody .founding-actions button {
  width:auto;
  min-height: 44px;
  margin: 0;
  padding-inline:clamp(14px,4vmin,28px);
  border:1px solid #a89776 !important;
  border-radius:12px !important;
  color:#243d34 !important;
  background:#ece0c4 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  font-weight: 750;
}
#game #dialog #dialogBody .founding-actions button[type="submit"] {
  border-color:#527064 !important;
  color:#fff4db !important;
  background:#25463f !important;
}
#game #dialogBody .founding-links { display:flex; flex-wrap:wrap; gap:5px; }
#game #dialogBody .founding-links button { min-height: 44px; margin: 0; }
@media (max-width:460px) {
  #game #dialogBody .founding-content #nameForm { grid-template-columns:1fr; }
}
body.handset-landscape.handset-keyboard #game #dialogBody .founding-avatar img { height:44px; }

/* Mobile team and recruitment */
#game #panelBody :is(.handset-team-summary,.handset-team-card-stats) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
#game #panelBody :is(.handset-team-summary,.handset-team-card-stats) div { min-width:0; }
#game #panelBody :is(.handset-team-summary,.handset-team-card-stats) :is(small,strong) { display:block; line-height:1.18; }
#game #panelBody .handset-team-summary { margin-bottom:5px; }
#game #panelBody .handset-team-summary div {
  background:#17392e;
  color:#fff4d6;
  border:1px solid #b79c60;
  border-radius:8px;
  padding:5px 7px;
}
#game #panelBody .handset-team-summary small { font-size:10px; }
#game #panelBody .handset-team-summary strong { font-size:14px; font-variant-numeric:tabular-nums; }
#game #panelBody .handset-team-tabs {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:4px;
  margin-bottom:6px;
}
#game #panelBody .handset-team-tabs button,
#game #panelBody .handset-team-card button { min-height:44px; margin:0; padding:4px 5px; border-radius:8px; }
#game #panelBody .game-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 144px), 1fr));
  max-width: 680px;
  gap: 8px;
}
#game #panel:is([data-kind="team"],[data-kind="room"],[data-kind="jeweler"],[data-kind="shop"],[data-kind="grandhotel"]) #panelBody { container-type: inline-size; }
@container (min-width: 448px) {
  #game #panelBody .game-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#game #panelBody .handset-team-card {
  display:grid;
  gap:5px;
  align-content:start;
  min-width:0;
  padding: 12px 7px 7px;
  color: #193b30;
}
#game #panelBody .clipboard-card {
  position: relative;
  border: 1px solid #80613d;
  border-radius: 8px;
  background: linear-gradient(150deg, #fff7de, #ecdfba) padding-box;
  box-shadow: inset 0 0 0 3px #b18e60, 0 2px 3px #39291530;
}
#game #panelBody .clipboard-card::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: calc(50% - 20px);
  width: 40px;
  height: 7px;
  border: 1px solid #77572f;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(#d9bc78,#92703d);
  pointer-events: none;
}
#game #panelBody .handset-team-person { display:flex; align-items:center; gap:6px; min-width:0; }
#game #panelBody .handset-team-person img { flex:none; width:42px; height:42px; border-radius:7px; object-fit:cover; }
#game #panelBody .handset-team-person div { min-width:0; }
#game #panelBody .handset-team-person :is(strong,small) { display:block; line-height:1.12; }
#game #panelBody .handset-team-person strong { font-size:14px; overflow-wrap:anywhere; }
#game #panelBody .handset-team-card-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
#game #panelBody .handset-team-card-stats strong { font-size:12px; }
#game #panelBody .handset-team-card :is(small,summary) { font-size:11px; }
#game #panelBody .handset-team-card summary { min-height: 24px; align-content: center; }
#game #panelBody .handset-team-card details p { margin:3px 0; font-size:12px; }
#game #panelBody .handset-team-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }

#game #panelBody .clipboard-card { padding: 12px 9px 8px; min-width: 0; }
#game #panelBody .game-card-grid .card { min-width: 0; margin: 0; }
#game #panelBody .team-card-status { margin: 0; font-size: 11px; }
#game #panelBody .employee-bio { margin-bottom: 10px; }

#game #applicationsHint:not([hidden]) { position:absolute; inset-inline-start:max(12px,var(--native-safe-left,0px)); bottom:78px; z-index:5; min-height:44px; max-width:55vw; padding:4px 12px; color:#fff1ca; background:#174234; border:1px solid #c8a466; border-radius:8px; font-weight:700; }

#game #panelBody .game-card-grid { align-items: stretch; }
#game #panelBody .game-card-grid > article { height: 100%; box-sizing: border-box; }
#game #hud #clock {
 display:inline-grid!important;
 width:var(--clock-wheel-size,44px); height:var(--clock-wheel-size,44px);
 min-width:0; min-height:0; padding:0; border:0; box-shadow:none;
 background:transparent url('./assets/harbor-clock-icon.png') center / contain no-repeat;
}
#game #hud #hudClock {
 position:relative;
 flex:0 0 var(--clock-wheel-size,44px);
 width:var(--clock-wheel-size,44px);
 height:var(--clock-wheel-size,44px);
 display:grid;
 place-items:center;
}
#game #hud #hudClock #clock { margin:0; }
#game #hud #clockTime {
 position:absolute;
 inset:100% 50% auto auto;
 transform:translateX(50%);
 min-width:max-content;
 color:#fff1cc;
 font:bold clamp(9px,1.3vw,12px)/1.1 Georgia,serif;
 text-shadow:0 1px 2px #12251c,0 0 3px #102b20;
 pointer-events:none;
}
body.phone.handset-landscape.landscape #game #hud:not(.has-ore-stocks),
body.phone.handset-landscape.landscape #game #hud.has-ore-stocks {
 grid-template-columns:minmax(0,.95fr) minmax(0,1.47fr) minmax(0,.97fr) calc(var(--clock-wheel-size,44px) * 2 + 4px);
}
body.phone.handset-landscape.landscape #game #hud.has-ore-stocks #hudControls { grid-area:controls; }
#game,#game *, #startScreen,#startScreen * {
 -webkit-user-select:none;
 user-select:none;
 -webkit-touch-callout:none;
}
#game :is(input,textarea,select,[contenteditable="true"]), #startScreen :is(input,textarea,select,[contenteditable="true"]) {
 -webkit-user-select:text;
 user-select:text;
 -webkit-touch-callout:default;
}
#game img,#startScreen img { -webkit-user-drag:none; }
#game #panelBody .seminar-progress { display:grid; gap:4px; margin:7px 0; }
#game #panelBody .seminar-progress > div:first-child { display:flex; justify-content:space-between; gap:4px; font-size:.8em; }
#game #panelBody .seminar-progress .bar { min-height:7px; }
#game #hud #clock::before { content:none!important; display:none!important; }
#game #hud #reputation { display:none!important; }
#game #hud #hudControls #pauseButton {
 width:var(--clock-wheel-size,44px)!important; height:var(--clock-wheel-size,44px)!important;
 min-width:var(--clock-wheel-size,44px)!important; min-height:var(--clock-wheel-size,44px)!important;
 max-width:var(--clock-wheel-size,44px)!important; max-height:var(--clock-wheel-size,44px)!important;
 flex-basis:var(--clock-wheel-size,44px)!important;
}
@media (max-height:400px) and (orientation:landscape) {
 body.handset-landscape #game #hud { --clock-wheel-size:36px; }
}
#game.city-guide-running #mapShortcuts { display:grid!important; }
#game.city-guide-running #pauseButton:not(.city-guide-focus),
#game.city-guide-running #fullscreen,
#game.city-guide-running #hudFullscreen,
#game.city-guide-running #hudFullscreen,
#game.city-guide-running #fullscreenButton,
#game.city-guide-running #hudShop { visibility:hidden!important; }
#game.city-guide-running .city-guide-focus { visibility:visible!important; }
#game #dock [data-panel^="office-seminar"] { white-space:nowrap; }
#game #hud #identity .level-row { align-self:center; }
body.handset-landscape #game:has(#world[data-scene="office"]) #questTracker { inset-inline-end:max(14px,var(--native-safe-right,0px)); bottom:74px!important; }

#game #panelBody .staff-course-grid {
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:8px;
}
#game #panelBody .staff-course-grid > article { min-width:0; margin:0; }
@media (max-width:490px) {
 #game #panelBody .staff-course-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

#game #panel #panelBody .cards-three {
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 grid-auto-flow:row!important;
 gap:8px;
 overflow:visible;
 align-items:stretch;
}
#game #panel #panelBody .cards-three > article {
 width:auto!important;
 max-width:none!important;
 min-width:0!important;
 margin:0;
 display:flex;
 flex-direction:column;
}
#game #panel #panelBody .cards-three > article > :is(button,.pill):last-child { margin-top:auto; }
#game #panel #panelBody .cards-three > article img { max-width:100%; object-fit:contain; }
#game #eventShortcut[hidden] { display:none!important; }
#game #managerResidents:not([hidden]) {
 position:absolute;
 inset:42% 12% auto;
 z-index:6;
 display:flex;
 flex-wrap:wrap;
 justify-content:center;
 gap:8px;
}
#game .manager-resident { display:grid; justify-items:center; padding:3px; gap:3px; }
#game .manager-resident img { width:clamp(34px,6vw,66px); aspect-ratio:1; border-radius:5px; }
#game .manager-resident span { font-size:clamp(8px,1.2vw,14px); }
@media (max-width:490px) and (orientation:portrait) {
 #game #panel #panelBody .cards-three { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}

html,body { overscroll-behavior:none; overflow:hidden; }
#game #world, #game .mine-background { touch-action:none!important; overscroll-behavior:none; }
#game nav#dock > button.city-dock-button:not([hidden]) {
 background:#153f6c linear-gradient(180deg,#285e8a,#102e52)!important;
 color:#fff0d1!important; border:2px solid #a9c9ea!important; border-image:none!important;
}
#game #panelBody .daily-clipboard { max-width:640px; margin:0 auto; }
#game #panelBody .daily-clipboard .ledger > div { display:flex; justify-content:space-between; align-items:center; gap:8px; }
#game #panelBody .daily-clipboard h2 { margin:2px 0 6px; }
#game #panelBody .hotel-meal-name { display:flex; align-items:center; gap:6px; }
#game #panelBody .hotel-meal-name img { width:34px; height:34px; object-fit:contain; }
body.handset-landscape #game #panelBody .company-profile-banner { min-height:132px; max-height:165px; }
body.handset-landscape #game #hud :is(#identity,.money) { align-self:start; }
body.handset-landscape #game #hud #identity .level-row { align-self:start; margin-top:0; }
body.handset-landscape #game #hud #income { font-size:clamp(8px,1.12vw,11px)!important; }
#game #hud #income.loss { color:#ffc299; }

body.handset-landscape #game #hud #identity > span { align-self:start; transform:translateY(-1px); }
body.handset-landscape #game #hud #cash { font-size:clamp(12px,1.72vw,18px)!important; }
#game #lithium-scene .mine-art { touch-action:none; }

#game #panel #panelBody .kontor-icon-nav {
 display:flex; flex-wrap:wrap; justify-content:center; gap:5px;
}
#game #panel #panelBody .kontor-icon-nav > .kontor-text-tab {
 display:inline-grid; place-items:center; flex:0 0 auto; width:auto; min-width:72px; min-height:42px; height:auto;
 padding:8px 15px; border:0; background:transparent url('./assets/kontor-text-tab.png') center/100% 100% no-repeat;
 color:#fff3d6; font:bold clamp(11px,1.6vw,16px)/1.15 Georgia,serif; white-space:nowrap; text-shadow:0 1px 3px #0b2216;
}
#game #panel #panelBody .kontor-icon-nav .kontor-text-tab[aria-pressed="true"] { filter:brightness(1.3); color:#ffdb7f; }
#game #panel:is([data-kind="jewels"],[data-kind="gold-shop"]) #panelBody :is(.cards-three,.jewel-pack-grid,.elite-avatar-grid,.gold-looks,.gold-boosts,.office-skin-grid,.map-theme-grid,.city-scenery-grid,.pet-skin-grid,.shop-scene-grid) {
 display:grid; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:clamp(3px,1vw,12px);
}
#game #panel #panelBody .mark-shop-grid .avatar img, #game #panel #panelBody .mark-shop-grid:not(:has(.header)) img {
 display:block; width:min(100%,105px); aspect-ratio:1; object-fit:cover; align-self:center; border-radius:8px;
}
#game #panel #panelBody .mark-shop-grid .header img { width:100%; aspect-ratio:3; object-fit:cover; border-radius:6px; }
body.handset-landscape #game #hud .cash-counter { padding-inline:6px; min-width:0; }
body.handset-landscape #game #hud #cash { font-size:clamp(11px,1.46vw,17px)!important; font-variant-numeric:tabular-nums; letter-spacing:0; }

#game #panel #panelBody .cards-three > article { align-self:stretch; }
#game #panel #panelBody .cards-three > article > :is(button,.buttons,.purchase-actions,.card-actions):last-child { margin-block-start:auto; }
#game #panel #panelBody .district-cards article { min-width:0; }
#game #panel #panelBody .mine-permit-target { outline:2px solid #b47a21; outline-offset:-2px; }
#game #lithium-scene .mine-staff-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr)); gap:8px; }
#game #lithium-scene .mine-staff-card { display:flex; flex-direction:column; min-width:0; gap:4px; padding:8px; background:#17392d; color:#fff0cf; border:1px solid #9c733b; border-radius:8px; }
#game #lithium-scene .mine-staff-card :is(h3,p) { margin:0; }
#game #lithium-scene .mine-staff-card > button { margin-top:auto; white-space:normal; }
#game #lithium-scene .mine-actions .mine-city-button { background-color:#214d75; background-image:linear-gradient(#315f8a,#142e4c); }

#game #hud.has-ore-stocks #oreStocks:not([hidden]),
#game #hud.has-ore-stocks .money #oreStocks:not([hidden]),
body.phone.handset-landscape.landscape #game #hud.has-ore-stocks #oreStocks:not([hidden]) {
 width:calc(50% + 8px); max-width:480px; justify-self:center; align-self:center; margin-inline:0;
 grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; padding-inline:0; border-inline:none;
}
#game #hud.has-ore-stocks #oreStocks.has-gold-ore:not([hidden]),
#game #hud.has-ore-stocks .money #oreStocks.has-gold-ore:not([hidden]),
body.phone.handset-landscape.landscape #game #hud.has-ore-stocks #oreStocks.has-gold-ore:not([hidden]) {
 width:calc(62.5% + 8px); width:min(100%,max(215px,calc(62.5% + 8px))); width:calc(62.5% + 8px); width:calc(62.5% + 8px); grid-template-columns:repeat(5,minmax(0,1fr));
}
#game #hud.has-ore-stocks #oreStocks > span { min-height:18px; }
#game #hud.has-ore-stocks #oreStocks > span img { width:clamp(9px,1.4vw,15px); height:auto; aspect-ratio:1; }
#game #hud.has-ore-stocks #oreStocks > span b { font-size:clamp(9px,1.35vw,13px); }
#game #panel:is([data-kind="jewels"],[data-kind="gold-shop"]) #panelBody .cards-three {
 grid-auto-flow:row; grid-auto-columns:auto; overflow:visible; min-width:0;
}
#game #panel:is([data-kind="jewels"],[data-kind="gold-shop"]) #panelBody .cards-three > article {
 min-width:0; width:auto; max-width:none;
}
#game #panel #panelBody .city-scenery-preview > img { aspect-ratio:2.2; object-fit:cover; width:100%; height:auto; }
@media(max-width:620px) {
 #game #panel:is([data-kind="jewels"],[data-kind="gold-shop"]) #panelBody .cards-three {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
}
@media(max-width:450px) {
 #game #panel:is([data-kind="jewels"],[data-kind="gold-shop"]) #panelBody .cards-three {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 #game #hud.has-ore-stocks .money #oreStocks:not([hidden]) { width:100%; }
}

#game #lithium-scene .mine-actions button.mine-region-back.mine-city-button {
 background:linear-gradient(#376b9a,#173555); color:#f9ebd0;
}

#game #panelBody .property-cards article img { width:100%;aspect-ratio:2;object-fit:cover;border-radius:6px; }
#game #mapShortcuts > .scene-quest-shortcut:not([hidden]),
#game #mapShortcuts > .scene-gold-shortcut:not([hidden]) { display:grid; }
body:not(.handset-landscape) #game #mapShortcuts { display:flex;position:absolute;right:8px;top:90px;z-index:4;gap:5px; }
body:not(.handset-landscape) #game #mapShortcuts > :is(.scene-quest-shortcut,.scene-gold-shortcut) { width:38px;height:38px;place-items:center; }
#game #mapShortcuts > button[hidden] { display:none!important; }
#game.theme-trial :is(#dock,#mapShortcuts,#mainAction,#globalChatToggle,#hudControls) { visibility:hidden; }
#themeTrialActions:not([hidden]) { position:absolute;z-index:30;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;gap:12px;white-space:nowrap; }
#game #milestoneBanner.quest-finish { background:#11372a url('./assets/quest-fertig-banner.jpg') center/100% 100% no-repeat; border:0;color:#fff1c7; min-width:min(360px,76vw); padding:18px 30px; }
#game #dialogBody .next-quest-intro { background:#15392b url('./assets/quest-fertig-banner.jpg') center/100% 100% no-repeat; color:#fff1cb; padding:14px 24px; text-align:center; }

body.handset-landscape #game #mapShortcuts > :is(.scene-quest-shortcut,.scene-gold-shortcut):not([hidden]) { display:grid!important; }
#game.lithium-open #mapShortcuts > .scene-quest-shortcut:not([hidden]) { display:grid!important; }
#game.lithium-open #mapShortcuts > :is(.scene-gold-shortcut,#mailboxShortcut,#eventShortcut) { display:none!important; }
#game #dialogBody .next-quest-intro h2 { margin:4px 0 0;color:inherit; }

#game #dialogBody .next-quest-intro { box-sizing:border-box; min-height:64px;display:grid;align-content:center; }
#game #panelBody :is(.property-cards,.skyline-desk-cards) > article { min-width:0; }

body.phone.handset-landscape.landscape #game :is(#hud,#hud.has-ore-stocks) #identity {
  align-self: start;
  align-items: start;
  min-height: 44px;
}
body.phone.handset-landscape.landscape #game #hud #identity > span {
  align-self: start;
  transform: none;
}
body.phone.handset-landscape.landscape #game #hud #identity .level-row {
  margin-top: 3px;
  transform: none;
}
#game #mapViewport, #game #lithium-scene :is(.mine-visual,.mine-stage,.mine-background) { overscroll-behavior:none; }
#game #panelBody .profile-homes { margin-block:10px; }
#game #panelBody .profile-homes ul { display:flex; flex-wrap:wrap; gap:6px; margin:0;padding:0;list-style:none; }
#game #panelBody .profile-homes li { background:#184031;color:#fff0cb;border-radius:5px;padding:4px 10px; }

#game #panelBody .jewel-marks-token { width:42px;height:42px;object-fit:contain;align-self:center; }
#game #panelBody .company-shop-cards article .brand-preview { min-width:0; }

#game #panelBody .mine-depot header { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px; }
#game #panelBody .mine-depot header h3 { margin:0; }
#game #panelBody .mine-depot-resources { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,95px),1fr));gap:5px; }
#game #panelBody .mine-depot-resources article { padding:6px;min-width:0;background:#eee1ba;border:1px solid #b99c62;border-radius:5px; }
#game #panelBody .mine-depot-resources h4 { margin:0;font-size:.9em; }
#game #panelBody .mine-depot-resources progress { display:block;width:100%;height:7px;accent-color:#2f7158; }
#game #panelBody .elite-manager-shop article > img { width:min(100%,110px);height:auto;aspect-ratio:1;align-self:center;border-radius:7px;object-fit:cover; }
#game .elite-manager-badges .manager-unowned img { filter:grayscale(1);opacity:.5; }
#game #panelBody .quest-book-tabs { flex-wrap:wrap; }
#game #panelBody .quest-book-tabs button { min-width:0;padding-inline:6px; }
