/* How to buy — picture guide (scoped under .howto) */
.howto {
  --howto-card: var(--bg-card, #121820);
  --howto-border: var(--border, #2a3444);
  --howto-muted: var(--muted, #8b97ab);
  --howto-buy: #24c484;
  --howto-warn: #ff7c48;
  --howto-click: #ffb020;
  --howto-look: #4c85ff;
  --howto-thumb: 336px;
}

.howto-wrap {
  width: min(920px, 100%);
  margin: 0 auto;
}

.howto-intro {
  margin-bottom: 8px;
}

.howto-intro .lead {
  margin: 0 0 10px;
  color: var(--howto-muted);
  font-size: 1.02rem;
  max-width: 54ch;
}

.howto-tips {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--howto-border);
  border-radius: 10px;
  background: var(--howto-card);
  color: var(--howto-muted);
  font-size: 0.9rem;
}

.howto-legend {
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--howto-muted);
}

.howto-leg {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.howto-leg.click {
  background: var(--howto-click);
}

.howto-leg.look {
  background: var(--howto-look);
}

.howto-row {
  padding: 20px 0;
  border-bottom: 1px solid rgba(42, 52, 68, 0.7);
}

.howto-row h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.howto-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(36, 196, 132, 0.16);
  color: var(--howto-buy);
  font-size: 0.8rem;
  font-weight: 700;
}

.howto-pair {
  display: grid;
  grid-template-columns: var(--howto-thumb) minmax(0, 1fr);
  gap: 14px 20px;
  align-items: start;
}

.howto-viz {
  position: relative;
  width: var(--howto-thumb);
  border: 1px solid var(--howto-border);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.howto-viz img {
  display: block;
  width: 100%;
  height: auto;
}

.howto-hot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  margin: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.howto-hot.click {
  background: var(--howto-click);
}

.howto-hot.look {
  background: var(--howto-look);
}

.howto-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.howto-notes li {
  position: relative;
  margin: 0;
  padding: 10px 12px 10px 30px;
  border: 1px solid var(--howto-border);
  border-radius: 8px;
  background: var(--howto-card);
  color: var(--howto-muted);
  font-size: 0.9rem;
}

.howto-notes li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 1.5px solid #fff;
}

.howto-notes li[data-kind="click"]::before {
  background: var(--howto-click);
}

.howto-notes li[data-kind="look"]::before {
  background: var(--howto-look);
}

.howto-notes li b {
  color: var(--text, #e8ecf4);
}

.howto-warn {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-left: 3px solid var(--howto-warn);
  background: rgba(255, 124, 72, 0.08);
  color: #ffd2bc;
  font-size: 0.85rem;
}

.howto-after {
  margin: 20px 0 36px;
  padding: 16px 18px;
  border: 1px solid var(--howto-border);
  border-radius: 12px;
  background: var(--howto-card);
}

.howto-after h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.howto-after ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--howto-muted);
  font-size: 0.9rem;
}

.howto-after li + li {
  margin-top: 6px;
}

.howto-after code {
  font-family: Consolas, "SF Mono", monospace;
  font-size: 0.86em;
  color: #c5d4ff;
  background: rgba(76, 133, 255, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

.howto-cta {
  margin: 0 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.howto-after {
  margin: 20px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--howto-border);
  border-radius: 12px;
  background: var(--howto-card);
}

.howto-after h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.howto-after ol {
  margin: 0;
  padding-inline-start: 1.2rem;
  color: var(--howto-muted);
  font-size: 0.9rem;
}

.howto-after li + li {
  margin-top: 6px;
}

.howto-after code {
  font-family: Consolas, "SF Mono", monospace;
  font-size: 0.86em;
  color: #c5d4ff;
  background: rgba(76, 133, 255, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .howto {
    --howto-thumb: 240px;
  }
}

@media (max-width: 520px) {
  .howto {
    --howto-thumb: 160px;
  }

  .howto-pair {
    gap: 10px;
  }

  .howto-notes li {
    font-size: 0.84rem;
  }
}
