/* Frozen parlor chrome. Screens fill slots; they do not invent layout. */
.ui-overlay--overworld {
  --shell-ink: #5A3A2A;
  --shell-cream: #FFF6E8;
  --shell-pink: #FF8FB7;
  --shell-stroke: 3px;
}

.ui-overlay--overworld .ui-top {
  padding: 10px 12px 4px;
}

/* Hide the extra table card so the map is not inside a box-in-a-box. */
.ui-overlay--overworld .overlay-table,
.ui-overlay--overworld .ui-center-wrap > .table-surface {
  display: none !important;
}

.ui-overlay--overworld .ui-mid {
  min-height: 0;
  height: 100%;
}

.ui-overlay--overworld .ui-center-wrap,
.ui-overlay--overworld .ui-center-stage {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  height: 100%;
  min-height: 0;
}

/* Center stage = future narrative / instruction / nav host. */
.ui-overlay--overworld .ui-center-label.ow-map {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: min(96%, 520px);
  height: 100%;
  max-height: none;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ui-overlay--overworld .ow-map > strong,
.ui-overlay--overworld .ow-meta {
  display: none;
}

.ui-overlay--overworld .ow-map-frame,
.ui-overlay--overworld .ow-map-frame.ow-map-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0;
  overflow: visible;
}

.ui-overlay--overworld .ow-map-art {
  width: 100%;
  height: auto;
  max-height: min(52vh, 340px);
  object-fit: contain;
  object-position: top center;
  background: transparent;
}

.ow-node.is-selected {
  outline: none;
  box-shadow: none;
}

/* Dock owns the full bottom band so 4 labels are not crushed into the center third. */
.ui-overlay--overworld .ui-bottom {
  display: block;
  min-height: 88px;
  padding: 8px 10px calc(14px + env(safe-area-inset-bottom, 0px));
}

.ui-overlay--overworld .ui-bottom-left,
.ui-overlay--overworld .ui-bottom-right {
  display: none !important;
}

.ui-overlay--overworld .ui-bottom-center {
  display: block;
  width: 100%;
  min-height: 0;
  pointer-events: auto;
}

.shell-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--shell-cream);
  border: var(--shell-stroke) solid var(--shell-ink);
  box-shadow: 0 3px 0 var(--shell-ink);
  color: var(--shell-ink);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.1;
}

.shell-chip span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 700;
}

.shell-chip strong {
  font-size: 15px;
}

.shell-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  box-sizing: border-box;
}

.shell-dock-btn {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 8px 4px 6px;
  border-radius: 16px;
  border: var(--shell-stroke) solid var(--shell-ink);
  box-shadow: 0 3px 0 var(--shell-ink);
  background: var(--shell-cream);
  color: var(--shell-ink);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: auto;
  overflow: hidden;
}

.shell-dock-btn span:last-child {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-dock-btn[data-hole="play"] {
  background: #7DFFB3;
}

.shell-dock-btn.is-ghost {
  opacity: 0.7;
}

.shell-dock-btn .glyph {
  font-size: 20px;
  line-height: 1;
}
