:root {
  color-scheme: dark;
  --pine: #173a35;
  --deep: #102622;
  --cream: #fff5e2;
  --gold: #ffcf83;
  --red: #9d323d;
  --line: #d7b77b77;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--cream);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #233d4c;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: var(--cream);
  border: 1px solid #e6d6b75c;
  background: #22443e;
  border-radius: 8px;
  padding: 0.65em 1em;
  min-height: 44px;
  font-weight: 650;
}
button:hover {
  background: #33594c;
}
button:disabled {
  cursor: default;
  opacity: 0.64;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ffc365;
  outline-offset: 2px;
}
a {
  color: #ffe0a5;
}
#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  touch-action: none;
}
header {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: max(16px, env(safe-area-inset-top)) clamp(16px, 3.4vw, 64px) 10px;
  background: linear-gradient(#102324ba, transparent);
  pointer-events: none;
}
.wordmark {
  display: grid;
  place-items: center;
  width: clamp(120px, 13vw, 185px);
  background: #fff;
  padding: 5px 7px;
  border-radius: 3px;
}
.wordmark img {
  width: 100%;
  display: block;
}
nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
nav button {
  font-size: 0.83rem;
  background: #152d2be3;
}
.edition,
.kicker,
small,
#coverfoot {
  font-weight: 750;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
}
.edition {
  color: #fff5df;
  text-shadow: 0 1px 5px #143132;
}
.edition i,
#coverfoot b {
  color: var(--gold);
  padding: 0 0.5rem;
}
.kicker {
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker i {
  width: 28px;
  height: 1px;
  background: var(--gold);
}
#cover {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 80px 6vw 55px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #102c2bf5 2%,
    #133432ed 23%,
    #193535cc 37%,
    #18372e32 61%,
    transparent 77%
  );
}
.covercopy {
  max-width: min(560px, 52vw);
  pointer-events: auto;
}
h1,
h2,
h3,
.sub,
.sig > span {
  font-family: Georgia, "Times New Roman", serif;
}
h1 {
  font-size: clamp(46px, 6.15vw, 105px);
  font-weight: normal;
  letter-spacing: -0.065em;
  line-height: 0.95;
  margin: 0.28em 0 0.32em;
}
h1 em {
  font-weight: normal;
  font-size: 0.84em;
  color: #ffdfa1;
}
.sub {
  margin: 0.7em 0 0.45em;
  font-size: clamp(22px, 2.15vw, 36px);
  letter-spacing: -0.035em;
}
.lead {
  color: #e3e7db;
  max-width: 420px;
  line-height: 1.55;
  font-size: clamp(14px, 1.2vw, 18px);
  margin: 0.25em 0 1.3em;
}
.primary {
  background: #efc179;
  color: #202d26;
  border-color: #f5db9e;
  padding: 12px 21px;
  box-shadow: 0 3px 10px #0002;
}
.primary:hover {
  background: #ffe1a3;
}
.sig {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 1.5rem;
}
.sig img,
.host img {
  width: 49px;
  height: 56px;
  object-fit: cover;
  object-position: 50% 15%;
  border: 1px solid var(--line);
  border-radius: 22px 22px 3px 3px;
}
.sig > span {
  font-size: 19px;
}
.sig small {
  display: block;
  font: 650 0.58rem system-ui;
  letter-spacing: 0.12em;
  color: #d0ccba;
  margin-top: 4px;
}
#coverfoot {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 18px 3.4vw;
  background: linear-gradient(transparent, #112c2acd);
  font-size: 0.61rem;
  color: #f4e8d2;
}
[hidden] {
  display: none !important;
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.glass {
  background: #142f2eef;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 20px #151f2238;
}
.glass small {
  color: var(--gold);
  font-size: 0.63rem;
}
.glass strong,
.glass b {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  margin: 3px 0;
}
.glass p {
  margin: 3px 0;
  line-height: 1.36;
  color: #efeede;
  font-size: 0.88rem;
}
#location {
  position: absolute;
  top: 85px;
  left: clamp(12px, 3vw, 52px);
  padding: 12px 16px;
  max-width: min(42vw, 390px);
}
#stat {
  position: absolute;
  top: 85px;
  right: clamp(12px, 3vw, 52px);
  text-align: right;
  padding: 10px 13px;
}
#stat span {
  font-size: 0.78rem;
}
#hint {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #172e2ce8;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 9px 17px;
  text-align: center;
  max-width: 80vw;
  font-size: 0.85rem;
  width: max-content;
}
#pad {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
#stick,
#use {
  pointer-events: auto;
  touch-action: none;
}
#stick {
  display: none;
  width: 101px;
  height: 101px;
  border-radius: 50%;
  background: #1935308f;
  border: 2px solid #f9ddada6;
  place-items: center;
}
#stick b {
  width: 42px;
  height: 42px;
  border-radius: 100%;
  background: #f3ddb6db;
  border: 2px solid white;
}
#use {
  margin-left: auto;
  background: #f4cea0;
  color: #263d34;
  min-width: 85px;
  min-height: 47px;
  border: 1px solid #fff0c7;
}
#meter {
  height: 15px;
  position: relative;
  background: #597069;
  margin: 0.6em 0 0;
  border-radius: 5px;
  overflow: hidden;
}
#meter span {
  position: absolute;
  left: 41.5%;
  width: 17%;
  height: 100%;
  background: #d5a04f;
}
#meter i {
  position: absolute;
  left: 0;
  height: 100%;
  background: white;
  width: 4px;
}
#toast {
  position: fixed;
  z-index: 5;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #183631ef;
  border: 1px solid var(--line);
  padding: 11px 18px;
  border-radius: 8px;
  pointer-events: none;
  text-align: center;
  font-weight: 650;
  opacity: 0;
}
#toast.show {
  opacity: 1;
}
dialog {
  width: min(510px, calc(100vw - 24px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  background: #173b35;
  color: var(--cream);
  border: 1px solid #ba9b67;
  border-radius: 14px;
  padding: clamp(18px, 3vw, 31px);
  box-shadow: 0 20px 90px #09191899;
}
dialog::backdrop {
  background: #0b2024a6;
  backdrop-filter: blur(3px);
}
.dialoghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dialoghead button {
  background: transparent;
  padding: 0;
  width: 42px;
  border-color: transparent;
  font-size: 1.5rem;
}
h2 {
  font-weight: normal;
  font-size: clamp(27px, 4.5vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0.18em 0 0.45em;
}
dialog p {
  line-height: 1.5;
  margin: 0.65em 0;
}
dialog button {
  margin: 4px 4px 4px 0;
}
dialog label {
  display: block;
  font-size: 0.91rem;
  margin: 0.76rem 0;
}
input:not([type="checkbox"]),
select {
  width: 100%;
  padding: 0.65em;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #142d26;
  background: #fff5df;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin: 0 8px 0 0;
}
.host {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #274b42;
  border-left: 3px solid #e0b777;
  padding: 10px 12px;
  margin: 13px 0;
}
.host img {
  flex: none;
}
.host p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.07rem;
}
.tag {
  display: inline-block;
  color: #ffdaa0;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 4px 9px;
  margin: 3px;
  font-size: 0.76rem;
}
.note {
  font-size: 0.84rem;
  color: #dbdccb;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.83rem;
}
td,
th {
  padding: 8px 5px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
tbody tr:nth-child(-n + 3) td:first-child {
  color: #ffcc78;
  font-weight: 750;
}
.shareimg {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.error {
  color: #ffcfab;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0.7rem;
}
@media (pointer: coarse), (max-width: 720px) {
  #stick {
    display: grid;
  }
  #hint {
    bottom: 124px;
    max-width: 88vw;
    font-size: 0.78rem;
  }
  #use {
    border-radius: 50%;
    width: 76px;
    height: 76px;
  }
  .edition {
    display: none;
  }
  header {
    padding: 10px 12px;
  }
  .wordmark {
    width: 119px;
  }
  #location,
  #stat {
    top: 64px;
  }
  #location {
    max-width: 62vw;
    left: 10px;
  }
  #stat {
    right: 10px;
  }
  .glass strong {
    font-size: 1.05rem;
  }
  .glass p {
    font-size: 0.81rem;
  }
  .kicker {
    font-size: 0.59rem;
  }
}
@media (max-width: 630px) and (orientation: portrait) {
  #cover {
    align-items: flex-end;
    padding: 70px 6vw max(43px, 7vh);
    background: linear-gradient(
      0deg,
      #102e2dfc 6%,
      #15332ff7 38%,
      #1a3632a3 58%,
      transparent 81%
    );
  }
  .covercopy {
    max-width: 100%;
    width: 100%;
  }
  h1 {
    font-size: clamp(40px, 12.6vw, 69px);
    margin: 0.2em 0;
  }
  .sub {
    font-size: 22px;
  }
  .lead {
    font-size: 0.86rem;
    max-width: 335px;
    line-height: 1.4;
  }
  .sig {
    margin-top: 13px;
  }
  .sig img {
    height: 39px;
    width: 33px;
  }
  .sig > span {
    font-size: 16px;
  }
  #coverfoot {
    padding: 10px 6vw;
    font-size: 0.49rem;
  }
  #location {
    padding: 8px 10px;
  }
  #stat {
    padding: 7px 8px;
  }
}
@media (max-height: 540px) {
  #cover {
    padding: 55px 5vw 22px;
  }
  .covercopy {
    max-width: 65vw;
  }
  .covercopy h1 {
    font-size: 42px;
  }
  .lead,
  .sig,
  #coverfoot {
    display: none !important;
  }
  #location,
  #stat {
    top: 61px;
  }
  .sub {
    font-size: 19px;
  }
  #stick {
    width: 82px;
    height: 82px;
  }
  #hint {
    bottom: 12px;
    max-width: 50vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.portrait {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: 50% 27%;
  border-radius: 7px;
  border: 1px solid var(--line);
}

#orders {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  pointer-events: auto;
  font-size: 0.76rem;
}
#orders summary {
  cursor: pointer;
  color: var(--gold);
  min-height: 24px;
}
#order-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 4px;
}
#order-list li {
  color: #bccbc5;
  line-height: 1.3;
}
#order-list .done {
  color: #a7d8bd;
}
#order-list .current {
  color: #fff2c9;
  font-weight: bold;
}
#location {
  max-height: calc(100dvh - 250px);
  overflow-y: auto;
  pointer-events: auto;
}
@media (max-height: 540px) {
  #location {
    max-height: calc(100dvh - 170px);
  }
  #orders {
    font-size: 0.7rem;
  }
}

#campaign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  margin-top: 8px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: #e8dfca;
  text-align: left;
  font-size: 0.73rem;
}
#campaign-list {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
#campaign-list span {
  display: inline-block;
  border: 1px solid #81928b;
  padding: 3px 5px;
  border-radius: 5px;
  color: #c3cfc8;
}
#campaign-list .complete {
  background: #426d43;
  color: #fff4c9;
  border-color: #d1b877;
}
#ask-hendrik {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 5px;
  margin-top: 4px;
  font-size: 0.78rem;
  min-height: 40px;
}
#ask-hendrik img {
  width: 28px;
  height: 30px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 4px;
}
.mission-choice {
  width: 100%;
  text-align: left;
  line-height: 1.5;
}
.mission-choice[data-complete="true"] {
  background: #375e3b;
  border-color: #cfb879;
}
progress {
  width: 100%;
  height: 16px;
  accent-color: #72985e;
}
#volume {
  width: 100%;
  accent-color: #b38a37;
}
@media (max-width: 480px) {
  #campaign {
    flex-wrap: wrap;
    gap: 4px;
  }
  #campaign-list {
    width: 100%;
  }
  #campaign-list span {
    flex: 1;
    text-align: center;
  }
}

#companion {
  position: absolute;
  top: 185px;
  right: clamp(12px, 3vw, 52px);
  width: 185px;
  padding: 10px;
  pointer-events: auto;
}
body[data-state="hub"] #companion {
  top: 85px;
}
#companion #campaign {
  flex-wrap: wrap;
  border: 0;
  padding: 0;
  margin: 0;
}
#companion #campaign-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
#companion #campaign-list span {
  text-align: center;
  padding: 3px 1px;
}
#companion #ask-hendrik {
  width: 100%;
  margin-top: 9px;
}
@media (pointer: coarse), (max-width: 720px) {
  #companion {
    top: 164px;
    right: 10px;
    width: 103px;
    padding: 8px;
  }
  body[data-state="hub"] #companion {
    top: 64px;
  }
  #companion #campaign-list {
    grid-template-columns: repeat(2, 1fr);
  }
  #companion #ask-hendrik {
    flex-direction: column;
    gap: 3px;
    padding: 5px;
    line-height: 1.2;
    font-size: 0.75rem;
  }
}
@media (max-height: 540px) {
  #companion {
    top: 158px;
    right: 10px;
    width: 180px;
    padding: 8px;
  }
  #companion #campaign-count {
    display: none;
  }
  #companion #campaign-list {
    grid-template-columns: repeat(4, 1fr);
  }
  #companion #ask-hendrik {
    flex-direction: row;
    justify-content: center;
  }
}

#route-guide {
  color: #f4ce7d;
  border-top: 1px solid var(--line);
  padding-top: 7px;
  margin-top: 7px;
  font-weight: 600;
}
#order-list small {
  display: block;
  color: #cbd5ce;
  font:
    normal 0.73rem/1.3 system-ui,
    sans-serif;
  padding: 2px 0 5px 15px;
}
#use:disabled {
  opacity: 0.75;
  cursor: wait;
}

#jump{position:fixed;right:145px;bottom:25px;z-index:7;background:#234a50;border:2px solid #e4c689;padding:16px;color:white;border-radius:50%;width:86px;height:86px;touch-action:manipulation;pointer-events:auto;font-weight:bold}#jump[hidden]{display:none}#skill-readout{font-size:1.12rem;color:#ffdb8f;font-weight:bold;margin-top:8px}#orders small{letter-spacing:normal}
#customer-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:8px 0}#customer-board[hidden]{display:none}.customer{font-size:.72rem;padding:6px;border:1px solid #7f928b;border-radius:6px;min-width:0;overflow:hidden}.customer.active{border-color:#f3c46a;background:#f3c46a18}.glass .customer b{font:700 .73rem/1.3 system-ui,sans-serif;margin:0 0 3px;overflow-wrap:anywhere}.customer i{font-style:normal;display:flex;gap:4px;align-items:center;font-size:.7rem}.customer svg{flex:none}.customer span{display:block;font-size:.7rem}#customer-board~#orders{max-height:125px}
@media(max-width:720px){#customer-board{grid-template-columns:1fr}.customer:not(.active){display:flex;justify-content:space-between;gap:5px;padding:4px 6px}.customer:not(.active) b{font-size:.65rem;flex:1}.customer.active i{display:inline-flex;margin-right:6px}.customer.active svg{width:20px;height:20px}#customer-board~#orders{max-height:95px}}
@media(max-width:480px){#jump{right:110px;bottom:35px;width:78px;height:78px;font-size:.8rem}#place{font-size:1.2rem}#goal{font-size:.83rem}}
/* Version 3.1: progress is visible before, during and after a mission. */
#journey {position:fixed;z-index:3;top:82px;left:50%;transform:translateX(-50%);width:min(490px,calc(100% - 24px));padding:0 12px;pointer-events:auto;}
#journey #campaign {border:0;margin:0;padding:7px 0;flex-wrap:nowrap;min-height:38px;}
#journey #campaign-count {display:block;font-size:.8rem;}
#journey #campaign-list {width:auto;display:flex;}
#journey #save-state {display:block;border:0;border-top:1px solid #d7b77b44;border-radius:0;background:none;font-size:.68rem;font-weight:400;width:100%;padding:4px;min-height:28px;color:#e5d7bc;}
#location,#stat {top:165px;}
#companion,body[data-state="hub"] #companion {top:270px;width:150px;}
#companion #ask-hendrik {margin:0;}
#dialog-progress {margin:3px 0 12px;color:var(--gold);font-size:.8rem;}
.mission-guide {text-align:left;}
.mission-guide ol {list-style:none;padding:0;display:grid;gap:10px;}
.mission-guide li {padding:12px 14px;background:#244b42;border:1px solid #b7a77755;border-radius:8px;}
.mission-guide h3 {font:700 1rem system-ui;margin:0 0 6px;color:var(--gold);}
.mission-guide p {font-size:.93rem;line-height:1.5;margin:5px 0;}
.guide-goal,.guide-box,.guide-finish,.resume-note {padding:12px 14px;background:#122c27;border-radius:8px;border-left:3px solid var(--gold);}
.guide-finish {border-color:#83b274;}
.recovery-key {display:block;padding:12px;background:#102622;overflow-wrap:anywhere;font-size:1.05rem;user-select:all;}
#signup label,#login label {margin-bottom:12px;}
body[data-state="intro"] #cover {padding-top:170px;}
@media (max-width:720px),(pointer:coarse) {
 header {padding:10px;gap:8px;} header nav {gap:5px;} header button {padding:8px;font-size:.75rem;}
 .wordmark {width:100px;min-width:90px;}
 #journey {top:64px;} #journey #campaign-count {font-size:.74rem;}
 #journey #campaign-list span {padding:2px 4px;font-size:.7rem;}
 #location,#stat {top:138px;}
 #companion,body[data-state="hub"] #companion {top:242px;width:99px;}
 #location {max-width:calc(100vw - 125px);max-height:calc(100dvh - 325px);overflow:auto;}
 .mission-guide li {padding:10px;}
}
@media (max-height:540px) {
 #journey {top:60px;left:10px;transform:none;width:calc(100% - 20px);display:flex;align-items:center;gap:15px;}
 #journey #campaign {width:auto;flex:1;} #journey #save-state {border:0;width:auto;max-width:220px;text-align:right;}
 #location,#stat {top:112px;} #location {max-height:calc(100dvh - 200px);}
 #companion,body[data-state="hub"] #companion {top:208px;width:175px;}
 body[data-state="intro"] #cover {padding-top:105px;}
}

/* Keep full product names readable inside the three order cards. */
.customer i {min-width:0;max-width:100%;align-items:flex-start;line-height:1.35;}
.customer i .product-name {flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal;}
.customer i svg {flex:0 0 24px;}
@media(max-width:720px){
 .customer.active i {display:flex;margin-right:0;}
 .customer.active i svg {flex-basis:20px;}
}

@media(min-width:721px){
 #customer-board:has(.customer:nth-child(1).active){grid-template-columns:minmax(0,1.8fr) repeat(2,minmax(0,1fr));}
 #customer-board:has(.customer:nth-child(2).active){grid-template-columns:minmax(0,1fr) minmax(0,1.8fr) minmax(0,1fr);}
 #customer-board:has(.customer:nth-child(3).active){grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.8fr);}
}
/* Mission sharing: keep long public links readable on narrow devices. */
#sharetext{width:100%;max-width:100%;min-height:8em;padding:.7em;background:#112f2b;color:#fff0d4;border:1px solid #8b9a86;border-radius:8px;font:inherit;resize:vertical}#posturl{width:100%;min-width:0}.shareimg{max-height:65vh;object-fit:contain}#dialog-content a{overflow-wrap:anywhere}
.work-order{border-left:3px solid var(--gold);padding:.6em .9em;background:#f5d19a12}
.cut-range,.fire-track{width:100%;display:block;accent-color:#f6c57f}.cut-range{min-height:44px;touch-action:pan-y}
.cut-strip{display:flex;gap:4px;height:28px;margin-top:1em}.cut-strip i{background:#cb795e;border-radius:5px}.cut-strip i:nth-child(2){background:#edb787}.cut-strip i:nth-child(3){background:#9e644d}
#work-feedback{color:#ffcd89;font-weight:bold}
#phone-info,#phone-pin{display:none}
@media (pointer:coarse) and (max-width:600px), (pointer:coarse) and (orientation:landscape) and (max-height:520px){
 body:is([data-state="play"],[data-state="hub"]) header{background:none;border:0;box-shadow:none;pointer-events:none;height:auto;top:max(4px,env(safe-area-inset-top));padding:0 max(8px,env(safe-area-inset-right));justify-content:flex-end}
 body:is([data-state="play"],[data-state="hub"]) header :is(.wordmark,.edition,#mute,#account){display:none}
 body:is([data-state="play"],[data-state="hub"]) nav{pointer-events:auto;display:flex;gap:5px}
 body:is([data-state="play"],[data-state="hub"]) #phone-info{display:inline-block;min-height:44px}
 body:is([data-state="play"],[data-state="hub"]) :is(#journey,#stat,#hint,#companion){display:none}
 #location{display:none}
 body[data-state="play"] #location:has(#skill-readout:not([hidden])){display:block;position:absolute;top:max(6px,env(safe-area-inset-top));left:max(6px,env(safe-area-inset-left));width:min(42vw,200px);max-width:none;max-height:none;overflow:visible;padding:5px 7px}
 #location>:not(#skill-readout):not(#meter){display:none!important}
 #phone-pin:not([hidden]){display:block;position:absolute;top:calc(max(4px,env(safe-area-inset-top)) + 48px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(78vw,380px);margin:0;padding:5px 10px;border-radius:8px;background:#142f2ee8;font-size:.78rem;line-height:1.28}
 #skill-readout{font-size:.75rem}.phone-info-body .customer{min-width:0}
 #pad{left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom))}
 #jump{right:calc(max(10px,env(safe-area-inset-right)) + 94px);bottom:max(14px,env(safe-area-inset-bottom));width:65px;height:65px;padding:3px}
}

/* Tischansicht für die Fingerfood-Gläschen */
.tasting-glass { margin: .7rem auto; max-width: 17rem; padding: .25rem; border: 2px solid #9dc7bf; border-top: 1px solid #d1eee8; border-radius: .45rem .45rem 1.35rem 1.35rem; overflow: hidden; }
.tasting-glass span { display: block; padding: .45rem; text-align: center; font-weight: 700; }
.tasting-glass span:last-child { border-radius: 0 0 1rem 1rem; }
.tasting-glass [data-layer="schnitzel"] { background: #edca80; color: #332411; }
.tasting-glass [data-layer="stick"] { background: #83a476; color: #142a18; }
.tasting-glass [data-layer="tasche"] { background: #f1e3be; color: #3d331e; }
#glass-top[data-layer="stick"] { background: #ecaaa0; color: #421c1b; }
#glass-top[data-layer="schnitzel"], #glass-top[data-layer="tasche"] { background: #ce9255; color: #2f1c0b; }
#glass-choices { display: flex; flex-wrap: wrap; gap: .4rem; }
#glass-choices strong { width: 100%; }
#glass-choices button { white-space: normal; min-height: 44px; }
.offer-links { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; }
.offer-links a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.plating { display: grid; place-items: end center; height: 6rem; }
.glass-cup { position: relative; width: 5.8rem; height: 4rem; border: 3px solid #b8d9d5; border-top-width: 2px; border-radius: 10% 10% 25% 25%; background: linear-gradient(105deg,#d4ebe92b,transparent 24%,#dcf6ef21); }
.glass-cup i { position: absolute; display: block; }
#plated-base { inset: auto 4% 4%; height: 55%; border-radius: 15% 15% 22% 22%; }
#plated-base[data-layer="schnitzel"] { background: radial-gradient(ellipse at 24% 44%,#faf0c4 0 16%,transparent 18%),radial-gradient(ellipse at 64% 39%,#fff0bd 0 20%,transparent 22%),#dbb76f; }
#plated-base[data-layer="stick"] { background: repeating-radial-gradient(ellipse at 34% 48%,#567e3a 0 4px,#719a4b 6px,#7a9c54 8px); }
#plated-base[data-layer="tasche"] { background: linear-gradient(155deg,#fff8e7,#e4d5b8); }
#plated-top { left: 24%; bottom: 47%; width: 52%; height: 69%; transform: rotate(16deg); }
#plated-top[data-layer="schnitzel"] { border-radius: 42% 57% 35% 40%; background: repeating-radial-gradient(at 12% 25%,#d9a04d 0 2px,#bf833b 3px,#dbab62 5px); }
#plated-top[data-layer="tasche"] { border-radius: 25% 46% 16% 16%; background: repeating-linear-gradient(95deg,#c48742 0 2px,#e4b468 3px 9px); }
#plated-top[data-layer="stick"] { width: .22rem; left: 50%; height: 4.3rem; background: #ca9f69; }
#plated-top[data-layer="stick"]::after { content: ''; position: absolute; left: -.52rem; top: .55rem; width: 1.3rem; height: 1.3rem; background: #db5742; border-radius: 50%; box-shadow: 0 1.1rem #fff0ca, 0 2.15rem #c94a3e; }
@media (max-height: 520px) { .plating { height: 4.4rem; } .glass-cup { transform: scale(.75); transform-origin: bottom; } }

.tray-list {display:flex;gap:.35rem;margin:.6rem 0;padding:.4rem;list-style:none;background:#463a30;border-radius:.5rem}
.tray-list li {flex:1;min-width:0;padding:.3rem;text-align:center;color:#ebdfc7;font-size:.83rem;overflow-wrap:anywhere}
.tray-list .served {background:#35644e;border-radius:.3rem}
.offer-links .grill-offer {display:inline-block;background:#f3ce89;color:#263e32;padding:.65rem .9rem;border-radius:.5rem;font-weight:700}

/* Keep faces and hands visible above the conversation on small screens. */
#counter-dialog {inset:auto 0 max(6px,env(safe-area-inset-bottom));margin:0 auto;width:min(34rem,calc(100% - 16px));max-height:42dvh;padding:.55rem .85rem;border-color:#cea974}
#counter-dialog::backdrop {background:transparent;backdrop-filter:none}
#counter-dialog .counter-top {display:flex;align-items:center;justify-content:space-between;gap:.7rem}
#counter-dialog [data-speaker] {color:#ffda95}
#counter-dialog button {min-height:44px;margin:0;padding:.35rem .7rem}
#counter-dialog [data-leave] {background:transparent;border:0;text-decoration:underline;font-size:.8rem}
#counter-dialog p {margin:.15rem 0 .45rem;line-height:1.3}
#counter-dialog [data-choices] {display:flex;gap:.4rem;flex-wrap:wrap}
body:has(#counter-dialog[open]) :is(header,#hud,#journey,#toast) {visibility:hidden}
@media(max-height:480px) { #counter-dialog {max-height:44dvh;font-size:.88rem} #counter-dialog .counter-top {min-height:28px} }

.lunch-preview {display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr);align-items:center;gap:clamp(.75rem,3vw,1.4rem)}
.lunch-preview img {display:block;width:100%;height:auto;border-radius:2px}
.lunch-preview p {margin:.4rem 0 .85rem}

.nye-entry{display:inline-block;color:#ffcf84;font-weight:700;text-underline-offset:4px}
