.guide-help {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid #6c5438;
  border-radius: 50%;
  background: #2b2319;
  color: #efc68d;
  font: 650 15px/1 var(--body);
  cursor: pointer;
  vertical-align: middle;
}

.guide-help:hover {
  background: #45341f;
  border-color: #b38755;
}

.guide-help:focus-visible,
.showcase-more:focus-visible {
  outline: 2px solid #f2bf7f;
  outline-offset: 3px;
}

.tracker-dialog {
  box-sizing: border-box;
  max-width: none;
  width: min(660px, calc(100vw - 24px));
  max-height: min(780px, calc(100dvh - 26px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #846642;
  border-radius: 15px;
  background: #1b1814;
  color: #f1e7d4;
  box-shadow: 0 24px 90px #070503db;
}

.tracker-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: tracker-dialog-enter .19s ease-out both;
}

.tracker-dialog::backdrop {
  background: #0a0805cf;
  backdrop-filter: blur(5px);
}

.tracker-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  gap: 12px;
  padding: 12px clamp(13px, 3vw, 23px);
  background: linear-gradient(110deg, #33271c, #221d16);
  border-bottom: 1px solid #5b472f;
}

.tracker-dialog-header h2 {
  margin: 0;
  font: 650 clamp(20px, 4vw, 28px)/1.12 var(--display);
}

.tracker-dialog-close {
  width: 36px;
  height: 36px;
  font-size: 23px;
}

.tracker-dialog-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px clamp(14px, 3vw, 25px) 13px;
}

.guide-items {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

ol.guide-items {
  list-style: decimal;
  padding-left: 24px;
}

.guide-items li {
  padding: 13px 0;
}

.guide-items li + li {
  border-top: 1px solid #493b2c;
}

.guide-items li::marker {
  color: #e6b781;
  font-weight: 700;
}

.guide-items h3 {
  margin: 0 0 5px;
  color: #eed4ad;
  font: 650 18px/1.2 var(--display);
}

.guide-items p {
  color: #d7c7b1;
  margin: 0;
  font: 400 14px/1.56 var(--body);
}

.tracker-lightbox {
  --lightbox-inset: 32px;
  width: fit-content;
  max-width: calc(100vw - var(--lightbox-inset));
  max-height: calc(100dvh - 26px);
}

.tracker-lightbox-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  background: #100e0b;
}

.tracker-lightbox-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1358px, calc(100vw - var(--lightbox-inset) - 2px));
  max-height: min(900px, max(45px, calc(100dvh - 144px)));
  object-fit: contain;
}

.tracker-lightbox-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex: none;
  padding: 7px;
  border-top: 1px solid #5b472f;
  color: #d7c7b1;
  font: 500 13px var(--mono);
}

.tracker-lightbox-controls .guide-help {
  width: 36px;
  height: 36px;
  font-size: 23px;
}

@keyframes tracker-dialog-enter {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .tracker-lightbox { --lightbox-inset: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .tracker-dialog[open] { animation: none; }
}
