.world-header {
  padding: 0 24px;
  gap: 22px;
  height: 64px;
}
.world-header h1 {
  font: 400 clamp(16px, 2vw, 21px)/1.2 Georgia, serif;
  letter-spacing: 0;
  margin: 0;
}
.world-tools {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 7px 24px;
  border-bottom: 1px solid #182c2625;
  background: var(--paper);
}
.world-filters, .world-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.world-tools button {
  font-size: 13px;
  font-weight: 600;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
}
.world-tools button:hover {
  border-color: #a3aa9a;
}
.world-tools button[aria-pressed="true"] {
  color: white;
  background: var(--purple);
}
.world-tools .draw {
  background: var(--gold);
}
.world-tools button:disabled {
  opacity: .55;
  cursor: default;
}
.explore-label, #hint, #match-status, #tooltip {
  pointer-events: none;
}
#tooltip {
  z-index: 4;
  max-width: calc(100% - 16px);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
  padding: 8px 11px;
  border: 1px solid #c4baa9;
}
#ideas {
  padding: 0;
  overflow: hidden;
  width: min(680px,calc(100vw - 24px));
  max-width: none;
  max-height: none;
  color: var(--ink);
  background: var(--paper);
}
.list-panel {
  display: flex;
  flex-direction: column;
  max-height: min(76dvh,680px);
}
.list-heading {
  position: relative;
  padding: 17px 22px 10px;
  background: var(--paper);
  border-bottom: 1px solid #182c2625;
}
.list-heading h2 {
  font-size: 27px;
  margin: 0 40px 15px 0;
}
.list-heading .close {
  top: 12px;
  right: 14px;
}
.list-heading input {
  margin: 4px 0 0;
}
.list-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}
.list-summary p {
  margin: 0;
}
.list-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 22px 16px;
}
#results {
  margin-top: 8px;
}
.scene-safety {
  background: #f3e7cf;
  border-radius: 5px;
  padding: 9px 11px;
  margin-top: 10px;
}
.scene-safety p {
  margin: 4px 0 0;
}
.legal nav a[aria-current="page"] {
  text-decoration: underline;
}
@media(max-width:750px) {
  .world-header {
    height: 55px;
    padding: 0 12px;
    gap: 10px;
  }
  .world-header .logo {
    width: 174px;
    height: 22px;
    background-size: 636px 358px;
    background-position: -6px -1px;
  }
  .world-header h1 {
    font-size: 15px;
  }
  .world-tools {
    flex-wrap: wrap;
    gap: 2px;
    padding: 5px 8px;
  }
  .world-tools button {
    font-size: 12px;
    padding: 4px 8px;
  }
  .world-filters, .world-actions {
    gap: 3px;
  }
}
@media (max-width:420px) {
  .world-filters {
    display: grid;
    grid-template-columns: 1fr 1.12fr 1.35fr;
    width: 100%;
  }
  .world-filters button {
    padding: 5px 3px;
    font-size: 12px;
    line-height: 1.18;
    text-align: left;
  }
  .list-heading, .list-scroll {
    padding-left: 14px;
    padding-right: 14px;
  }
  .list-panel {
    max-height: 86dvh;
  }
}
/* Compact world chrome; catalogue filters have no effect on the landscape. */
.world-tools{justify-content:flex-end}
#ideas .world-filters{gap:6px;margin-top:12px;display:flex;flex-wrap:wrap}
#ideas .world-filters button{border:1px solid #c6c7bb;border-radius:18px;padding:7px 10px;background:transparent;font-size:13px;min-height:36px}
#ideas .world-filters button[aria-pressed=true]{background:var(--purple);color:#fff;border-color:var(--purple)}
#scene{width:min(350px,calc(100vw - 24px))}
#scene-photo{display:none}
#scene .scene-copy{padding:18px}
#scene .eyebrow{max-width:calc(100% - 28px);display:block;font-size:10px}
#scene h2{font-size:23px;margin:8px 0}
#scene p{font-size:14px;line-height:1.45}
#scene .suggestion{padding:9px 11px}
#scene details{margin:12px 0;font-size:13px}
#scene summary{cursor:pointer;padding:8px 0;font-weight:600}
#scene .scene-facts{font-size:12px}
#scene-links>div{border-top:1px solid #d9d0c0;padding-top:10px;margin-top:10px;font-size:13px}
#scene-links p{margin:5px 0}
#scene-links strong{display:block;color:#694792}
footer{gap:8px;flex-wrap:wrap}
footer button{font:inherit}
@media(max-width:600px){
 .world-header{height:49px}
 .world-tools{padding:4px 10px}
 footer{font-size:10px;padding:5px 10px;gap:3px 10px}
 footer nav{gap:10px;flex-wrap:wrap}
 footer .credit{display:none}
 #scene{max-height:min(41dvh,var(--map-card-height,41dvh))}
 #scene .scene-copy{padding:14px}
 #scene h2{font-size:21px}
 #ideas .world-filters button{font-size:12px;flex:1 1 auto}
 .list-heading h2{font-size:23px;margin-bottom:9px}
}
/* One shared header gives the illustration back its full height. */
.world-header{display:flex;min-height:64px;height:auto;padding:12px 24px;gap:18px;flex-wrap:nowrap}
.world-header .world-tools{margin-left:auto;border:0;padding:0;flex:none;background:none}
.world-header h1{white-space:nowrap;font-size:18px;letter-spacing:0}
.world-header .world-actions{flex-wrap:nowrap;gap:7px}
@media(max-width:850px){.world-header{gap:12px;padding:12px}.world-header .logo{width:174px;height:20px;background-size:636px 358px;background-position:-6px -1px}.world-header h1{font-size:15px}.world-header .world-tools button{font-size:12px;padding:7px 10px}}
@media(max-width:630px){.world-header{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;padding:9px 12px}.world-header .logo{width:146px;height:17px;background-size:536px 301px;background-position:-5px -1px}.world-header h1{grid-column:1 / -1;grid-row:2;font-size:13px;margin:0}.world-header .world-tools{grid-column:2;grid-row:1;justify-self:end;margin-left:0}.world-header .world-tools button{font-size:11px;padding:6px 8px;min-height:34px}.world-header .world-actions{gap:3px}}
@media(max-width:359px){.world-header{grid-template-columns:1fr;gap:6px}.world-header .world-tools{grid-column:1;grid-row:3;justify-self:stretch}.world-header .world-actions{width:100%}.world-header .world-actions button{flex:1}.world-header h1{grid-row:2}}
.commercial-note{font-size:14px;line-height:1.6;border-left:3px solid #ad9566;padding:8px 14px;margin:16px 0;background:#f5eddf}.commercial-slot{border:1px solid #c9bba1;padding:12px;margin:12px 0;border-radius:6px}.commercial-slot strong{display:block;font-size:12px}.commercial-slot a{display:inline-block;margin-top:5px}.legal main{overflow-wrap:anywhere}.legal footer nav{flex-wrap:wrap}
.world-header .logo{background-image:url('assets/verlunkid-wortmarke-klar.png');background-position:center;background-size:contain;background-repeat:no-repeat}

.world-area-label{display:flex;align-items:center;gap:6px;font-size:11px}.world-area-label select{font:inherit;color:inherit;background:transparent;border:1px solid #c6c7bb;border-radius:5px;padding:3px;max-width:180px}.world-area-label select:focus-visible{outline:3px solid var(--purple)}

[hidden]{display:none!important}@media(max-width:600px){#scene{bottom:var(--map-bottom,75px)}#scene.dock-top{bottom:auto}}

#discovery-bubble{position:absolute;z-index:4;width:min(300px,calc(100% - 16px));padding:14px 46px 14px 16px;background:#fff9eccc;border:1px solid #b7c5b1;border-radius:16px;box-shadow:0 7px 28px #14332230;backdrop-filter:blur(8px)}#discovery-bubble strong{display:block;font:20px Georgia,serif}#discovery-bubble p{margin:7px 0 0;font-size:13px;line-height:1.5}#discovery-bubble button{position:absolute;right:3px;top:3px;width:40px;height:44px;border:0;background:transparent;border-radius:50%;font-size:26px;color:#324b3c}

/* Readable, deliberately dismissed animal encounters. */
#discovery-bubble{background:#fff9ec;max-height:calc(100% - 16px);overflow:auto;overscroll-behavior:contain}
.encounter-source{display:inline-block;margin-top:9px;font-size:12px;text-decoration:underline;color:#435b43}
#scene-animal-fact{border-left:3px solid #788f67;padding:8px 12px;margin:12px 0;background:#edf0e5}
#scene-animal-fact p{margin:6px 0;font-size:14px;line-height:1.5}
