/* ---------- Entrance ---------- */
.entrance {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem clamp(1rem, 5vw, 4rem);
}

.ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
  pointer-events: none;
}

.entrance-step {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.entrance-step.active {
  display: flex;
  animation: fadeIn 0.7s ease both;
}

.title-wall {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 11vw, 6.5rem);
  letter-spacing: 0.18em;
  padding-left: 0.18em; /* balances the letter spacing so it looks centered */
  text-transform: uppercase;
  line-height: 1;
  margin-top: 1rem;
}

.title-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  margin-top: 0.75rem;
}

.rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: clamp(1.5rem, 4vw, 2.25rem) auto;
}

.entrance-note {
  margin-top: clamp(2.5rem, 8vh, 5rem);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- Visitor guide ---------- */
.guide-panel {
  width: 100%;
  max-width: 920px;
  text-align: left;
}

.guide-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin: 0.25rem 0 clamp(1rem, 3vw, 1.75rem);
}

.guide-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1rem);
}

/* two columns from tablet size up, so the four labels form a balanced square */
@media (min-width: 640px) {
  .guide-labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.numeral {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 1rem;
}

.guide-label h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.15;
  margin: 0.2rem 0 0.45rem;
}

.guide-label > p:not(.numeral) {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* show keyboard keys on computers, touch instructions on phones and tablets */
.touch-text { display: none; }

@media (hover: none) and (pointer: coarse) {
  .desk-text { display: none; }
  .touch-text { display: revert; }
}

.guide-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.skip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  min-height: 44px;
}

.skip input { accent-color: var(--accent); width: 16px; height: 16px; }

.guide-resume {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}

/* ---------- Toolbar map (mobile guide) ---------- */
.toolbar-map { margin-top: 0.4rem; }

.tm-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--wall);
  padding: 10px 8px 8px;
}

.tm-icon {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}

.tm-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tm-serif { font-family: var(--serif); font-size: 1rem; }

.tm-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
  margin-left: -2px;
}

.tm-dots i:nth-child(1) { background: #1d3557; margin-left: 0; }
.tm-dots i:nth-child(2) { background: #e63946; }
.tm-dots i:nth-child(3) { background: #f1c453; }

/* the small red number badges */
.tm-icon b,
.tm-brushes b {
  position: absolute;
  top: -7px;
  right: -6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-time {
  flex: 1;
  font-family: var(--serif);
  font-size: 0.9rem;
}

.tm-brushes {
  position: relative;
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.tm-brushes span {
  flex: 1;
  font-size: 0.65rem;
  text-align: center;
  padding: 4px 0;
  border: 1px solid var(--line);
  color: var(--ink);
}

.tm-brushes span.on {
  background: var(--ink);
  color: var(--wall);
  border-color: var(--ink);
}

.tm-legend {
  list-style: none;
  counter-reset: tm;
  margin-top: 0.6rem;
  display: grid;
  gap: 0.3rem;
}

.tm-legend li {
  counter-increment: tm;
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.tm-legend li::before {
  content: counter(tm);
  color: var(--accent);
  font-weight: 500;
  width: 0.8rem;
  flex-shrink: 0;
}