/* The-One playable preview — minimal styles (the visuals come from the exported images). */
.to-root {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #141414;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.to-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1400px;
  height: 600px;
  transform-origin: 0 0;
}
.to-page {
  position: absolute;
  inset: 0;
  background-size: 1400px 600px;
  background-repeat: no-repeat;
}
.to-ctl,
.to-indicator {
  position: absolute;
  background-repeat: no-repeat;
}
.to-ctl {
  cursor: ns-resize;
}
.to-sprites {
  cursor: pointer;
}
.to-deco,
.to-indicator {
  pointer-events: none;
}

/* Terminal-style tooltip: amber phosphor in an amber frame, scanlines, blinking cursor (same amber as
   the plugin's SYNC LCD). Appended to <body> (or the fullscreen element) so it is never clipped. */
.to-tip {
  position: fixed;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 120px;
  padding: 8px 12px 7px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  font: 14px/1.3 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0a020;
  text-shadow: 0 0 6px rgba(224, 160, 32, 0.65);
  background:
    repeating-linear-gradient(to bottom, rgba(224, 160, 32, 0.06) 0 1px, transparent 1px 3px),
    rgba(12, 8, 1, 0.93);
  border: 1px solid #e0a020;
  box-shadow: 0 0 14px rgba(224, 160, 32, 0.35), inset 0 0 14px rgba(224, 160, 32, 0.1);
}
.to-tip.is-on {
  opacity: 1;
  transform: none;
}
.to-tip-value {
  color: #ffe2a6;
}
.to-tip-value::after {
  content: '';
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.35em;
  vertical-align: -0.12em;
  background: #e0a020;
  box-shadow: 0 0 6px rgba(224, 160, 32, 0.8);
  animation: to-tip-cursor 1s steps(1) infinite;
}
@keyframes to-tip-cursor {
  50% { opacity: 0; }
}

/* --- Guided tour (the-one-tour.js): spotlight + terminal panel, inside the stage (design units), amber --- */
.to-tour { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.to-tour-beam {
  position: absolute; border: 1px solid rgba(224, 160, 32, 0.9); border-radius: 6px;
  box-shadow: 0 0 0 3000px rgba(6, 5, 3, 0.74), 0 0 24px rgba(224, 160, 32, 0.35), inset 0 0 18px rgba(224, 160, 32, 0.12);
  transition: left 0.7s cubic-bezier(0.6, 0, 0.2, 1), top 0.7s cubic-bezier(0.6, 0, 0.2, 1),
              width 0.7s cubic-bezier(0.6, 0, 0.2, 1), height 0.7s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.4s;
}
.to-tour-beam::before, .to-tour-beam::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid #e0a020; }
.to-tour-beam::before { left: -6px; top: -6px; border-right: 0; border-bottom: 0; }
.to-tour-beam::after { right: -6px; bottom: -6px; border-left: 0; border-top: 0; }
.to-tour.is-full .to-tour-beam { border-color: transparent; box-shadow: none; background: rgba(6, 5, 3, 0.78); }
.to-tour.is-full .to-tour-beam::before, .to-tour.is-full .to-tour-beam::after { display: none; }
.to-tour-panel {
  position: absolute; pointer-events: auto; box-sizing: border-box; width: 470px; padding: 16px 20px 14px;
  background: rgba(16, 13, 6, 0.96); border: 1px solid #8a6414; border-radius: 4px; color: #f1e3c2;
  font: 15px/1.5 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  transition: left 0.7s cubic-bezier(0.6, 0, 0.2, 1), top 0.7s cubic-bezier(0.6, 0, 0.2, 1);
  background-image: repeating-linear-gradient(0deg, rgba(224, 160, 32, 0.03) 0 1px, transparent 1px 3px);
}
.to-tour-head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.14em; color: #b8862a; }
.to-tour-title { margin: 8px 0 6px; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; color: #e0a020;
  text-shadow: 0 0 10px rgba(224, 160, 32, 0.45); }
.to-tour-body { margin: 0; }
.to-tour-try { margin: 10px 0 0; color: #f3d9a0; min-height: 1.5em; }
.to-tour-try.is-done { color: #e0a020; }
.to-tour-nav { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.to-tour-nav span { flex: 1; }
.to-tour-nav button {
  font: inherit; font-size: 13px; letter-spacing: 0.04em; cursor: pointer; padding: 6px 12px; border-radius: 3px; white-space: nowrap;
  background: none; color: #f1e3c2; border: 1px solid #8a6414;
}
.to-tour-nav button:hover:not(:disabled) { border-color: #e0a020; color: #e0a020; }
.to-tour-nav button:disabled { opacity: 0.35; cursor: default; }
.to-tour-nav .to-tour-next { background: #e0a020; color: #1a1205; border-color: #e0a020; }
.to-tour-nav .to-tour-next:hover:not(:disabled) { background: #f2c060; border-color: #f2c060; color: #1a1205; }
.to-tour-nav .to-tour-next.is-ready { animation: to-tour-pulse 1.2s ease-in-out infinite; }
.to-tour-nav .to-tour-quit { border-color: transparent; color: #978a70; padding-left: 0; }
.to-tour-nav .to-tour-full[hidden] { display: none; }
@keyframes to-tour-pulse { 50% { box-shadow: 0 0 0 5px rgba(224, 160, 32, 0.25); } }
.to-tour-end { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.to-tour-end[hidden] { display: none; }
.to-tour-buy, .to-tour-manual {
  display: inline-block; padding: 10px 18px; border-radius: 3px; white-space: nowrap; cursor: pointer; text-decoration: none;
  font: 600 15px/1.3 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.05em;
}
.to-tour-buy { background: #e0a020; color: #1a1205; border: 1px solid #e0a020; }
.to-tour-buy:hover { background: #fff; border-color: #fff; }
.to-tour-manual { color: #e0a020; border: 1px solid #e0a020; }
.to-tour-manual:hover { border-color: #fff; color: #fff; }
.to-tour-buy[hidden], .to-tour-manual[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .to-tour-beam, .to-tour-panel { transition: none; }
  .to-tour-nav .to-tour-next.is-ready { animation: none; }
}
/* Several frames: masked veil + one outline per frame (the single beam is hidden). */
.to-tour-veil { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: none; }
.to-tour.is-multi .to-tour-veil { display: block; }
.to-tour.is-multi .to-tour-beam { opacity: 0; }
.to-tour-frame {
  position: absolute; border: 1px solid rgba(224, 160, 32, 0.9); border-radius: 6px;
  box-shadow: 0 0 24px rgba(224, 160, 32, 0.35), inset 0 0 18px rgba(224, 160, 32, 0.12);
}
/* Ghost cursor (scripted demos). */
.to-tour-cursor {
  position: absolute; width: 0; height: 0; z-index: 2; pointer-events: none;
  transition-property: left, top; transition-timing-function: cubic-bezier(0.5, 0, 0.2, 1);
}
.to-tour-cursor svg { position: absolute; left: -3px; top: -2px; fill: #fff4dc; stroke: #1a1205; stroke-width: 1.4;
  filter: drop-shadow(0 0 6px rgba(224, 160, 32, 0.8)); }
.to-tour-tag { position: absolute; left: 22px; top: 18px; white-space: nowrap; padding: 2px 7px; border-radius: 3px;
  background: #e0a020; color: #1a1205; font: 600 12px/1.3 'IBM Plex Mono', ui-monospace, Menlo, monospace; }
.to-tour-tag:empty { display: none; }
.to-tour-ripple { position: absolute; width: 0; height: 0; pointer-events: none; }
.to-tour-ripple::after {
  content: ''; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #e0a020; animation: to-tour-ripple 0.6s ease-out forwards;
}
@keyframes to-tour-ripple { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
