/* makeithappen tutorials: short story-style cards shared by the Board and Creator Studio (js/guide.js).
   Dark like both apps, the orange accent, the mascot with the light halo it gets on dark backgrounds. */

.guide { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s ease; -webkit-font-smoothing: antialiased; }
.guide.open { opacity: 1; pointer-events: auto; }
.guide-scrim { position: absolute; inset: 0; background: rgba(8, 8, 9, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.guide-card { position: relative; display: flex; flex-direction: column; width: 400px; max-width: 100%; max-height: calc(100dvh - 32px); overflow: hidden; border-radius: 22px; background: #18171a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 64px rgba(0, 0, 0, .5); transform: translateY(10px) scale(.98); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.guide.open .guide-card { transform: none; }
.guide-bars { position: absolute; z-index: 3; top: 12px; left: 14px; right: 52px; display: flex; gap: 4px; }
.guide-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.guide-bars i::after { content: ""; display: block; width: 0; height: 100%; border-radius: inherit; background: #fff; transition: width .35s cubic-bezier(.16, 1, .3, 1); }
.guide-bars i.done::after, .guide-bars i.on::after { width: 100%; }
.guide-x { position: absolute; z-index: 3; top: 6px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: rgba(255, 255, 255, .7); cursor: pointer; transition: background-color .15s, color .15s; }
.guide-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.guide-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* the stage: orange glow on dark, the mascot, and a small live demo built from UI pieces */
.guide-art { position: relative; flex: none; height: 232px; overflow: hidden; background: radial-gradient(120% 90% at 85% 100%, rgba(255, 107, 44, .5), rgba(255, 107, 44, .08) 55%, transparent 75%), radial-gradient(60% 60% at 10% 0%, rgba(255, 255, 255, .06), transparent 70%), #121114; cursor: pointer; }
.guide-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, #18171a); pointer-events: none; }
.guide-mascot { position: absolute; z-index: 1; right: 18px; bottom: -6px; height: 176px; width: auto; filter: drop-shadow(0 0 22px rgba(255, 98, 30, .28)); transform-origin: 50% 100%; animation: guide-in .55s cubic-bezier(.34, 1.56, .64, 1) both, guide-bob 4.5s ease-in-out .6s infinite; pointer-events: none; }
@keyframes guide-in { from { opacity: 0; transform: translateY(24px) scale(.92); } }
@keyframes guide-bob { 50% { transform: translateY(-5px); } }
.guide-demo { position: absolute; z-index: 2; left: 18px; top: 44px; right: 150px; display: flex; flex-direction: column; gap: 8px; animation: guide-rise .5s cubic-bezier(.16, 1, .3, 1) .08s both; }
@keyframes guide-rise { from { opacity: 0; transform: translateY(10px); } }

.gd-pill { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; height: 30px; padding: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-size: 13px; font-weight: 500; white-space: nowrap; }
.gd-pill.acc { background: #ff6b2c; box-shadow: none; color: #fff; font-weight: 600; }
.gd-pill.soft { background: rgba(255, 107, 44, .16); box-shadow: none; color: #ffa27c; }
.gd-pill.green { background: rgba(102, 195, 153, .16); box-shadow: none; color: #7fd7ad; }
.gd-pill.dim { color: rgba(255, 255, 255, .6); }
.gd-big { font-size: 34px; font-weight: 650; letter-spacing: -.03em; line-height: 1.05; font-feature-settings: "tnum"; }
.gd-big small { font-size: .55em; color: rgba(255, 255, 255, .55); font-weight: 500; letter-spacing: -.01em; }
.gd-label { color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 500; }
.gd-bar { position: relative; width: 100%; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.gd-bar i { position: absolute; inset: 0 auto 0 0; width: var(--to, 100%); border-radius: inherit; background: #ff6b2c; animation: gd-fill 1.4s cubic-bezier(.65, 0, .35, 1) .25s both; }
@keyframes gd-fill { from { width: var(--from, 0%); } }
.gd-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-arrow { color: rgba(255, 255, 255, .45); font-size: 15px; }
.gd-line { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 12.5px; }
.gd-line span { color: rgba(255, 255, 255, .6); }
.gd-line b { font-weight: 600; font-feature-settings: "tnum"; }
.gd-pop { animation: gd-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: var(--d, .3s); }
@keyframes gd-pop { from { opacity: 0; transform: scale(.7); } }
.gd-type::after { content: ""; display: inline-block; width: 1px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #ff6b2c; animation: gd-blink 1s steps(1) infinite; }
@keyframes gd-blink { 50% { opacity: 0; } }
.gd-lock { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.gd-lock svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gd-lock .shackle { transform-origin: 70% 100%; animation: gd-unlock .7s cubic-bezier(.34, 1.56, .64, 1) 1.2s both; }
@keyframes gd-unlock { to { transform: translateY(-3px) rotate(28deg); } }

.guide-body { flex: none; padding: 6px 22px 4px; }
.guide-kicker { margin: 0; color: #ff8f5c; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.guide-body h2 { margin: 6px 0 0; font-size: 21px; font-weight: 650; line-height: 1.2; letter-spacing: -.02em; }
.guide-body p.t { margin: 8px 0 0; color: rgba(255, 255, 255, .72); font-size: 14.5px; line-height: 1.5; }
.guide-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px 20px; }
.guide-nav button { height: 40px; padding: 0 18px; border: 0; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s, opacity .15s, transform .15s; }
.guide-nav button:active { transform: scale(.98); }
.guide-prev { background: rgba(255, 255, 255, .08); color: #fff; }
.guide-prev:hover { background: rgba(255, 255, 255, .12); }
.guide-prev[disabled] { opacity: 0; pointer-events: none; }
.guide-next { background: #fff; color: #111; }
.guide-next:hover { background: #ececec; }
.guide-count { color: rgba(255, 255, 255, .45); font-size: 12px; font-weight: 500; }

@media (max-width: 480px) {
  .guide { align-items: end; padding: 0; }
  .guide-card { width: 100%; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .guide-art { height: 210px; }
  .guide-mascot { height: 156px; right: 10px; }
  .guide-demo { right: 128px; left: 16px; }
  .gd-big { font-size: 28px; }
  .guide-nav { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .guide-mascot, .guide-demo, .gd-bar i, .gd-pop, .gd-lock .shackle { animation: none !important; } }
