/* Fidgital World Create studio. Loaded by learn.html (Make tab). Brand tokens come from the page's :root. */

.cs { --cs-shadow: 0 10px 30px rgba(45,52,54,.08); --cs-stamp: #D64545; }
.cs *, .cs *::before, .cs *::after { box-sizing: border-box; }
.cs [hidden] { display: none !important; }
.cs button { font-family: inherit; }

/* ── Trail ─────────────────────────────────────────────── */
.cs-trail { position: sticky; top: var(--cs-trail-top, 60px); z-index: 30; background: rgba(255,253,240,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,.06); padding: 10px 12px 8px; }
@media (min-width: 768px) { .cs-trail { top: var(--cs-trail-top, 72px); } }
@media (min-width: 1024px) { .cs-trail { top: var(--cs-trail-top, 80px); } }
.cs-trail-inner { max-width: 820px; margin: 0 auto; }
.cs-trail-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; padding: 0 2px; }
.cs-trail-label { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-text); }
.cs-trail-count { font-size: 13px; font-weight: 700; color: var(--body); }
.cs-trail-count.is-all { color: var(--teal-text); }
.cs-stops { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; position: relative; list-style: none; margin: 0; padding: 0; }
.cs-stops::before { content: ""; position: absolute; left: 8.3%; right: 8.3%; top: 22px; height: 4px; background: var(--border); border-radius: 4px; }
.cs-stops-fill { position: absolute; left: 8.3%; top: 22px; height: 4px; background: var(--gold-dark); border-radius: 4px; width: 0; transition: width .5s cubic-bezier(.3,.9,.4,1.1); z-index: 0; }
.cs-stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.cs-stop-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--border); background: #fff; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: transform .15s, border-color .15s, background .15s, box-shadow .15s; }
.cs-stop-btn:hover { transform: translateY(-2px); }
.cs-stop-btn:active { transform: scale(.95); }
.cs-stop.is-current .cs-stop-btn { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(42,150,192,.18); }
.cs-stop.is-done .cs-stop-btn { background: var(--gold); border-color: var(--gold-dark); }
.cs-stop-tick { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 12px; font-weight: 800; display: none; align-items: center; justify-content: center; border: 2px solid #fff; }
.cs-stop.is-done .cs-stop-tick { display: flex; animation: cs-pop .45s cubic-bezier(.3,1.6,.5,1) both; }
.cs-stop-name { font-size: 10px; font-weight: 800; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cs-stop.is-current .cs-stop-name { color: var(--teal-text); }
.cs-stop.is-done .cs-stop-name { color: var(--dark); }
@media (min-width: 480px) { .cs-stop-name { font-size: 12px; } .cs-stop-btn { width: 48px; height: 48px; font-size: 22px; } .cs-stops::before, .cs-stops-fill { top: 24px; } }

/* ── Sections and cards ────────────────────────────────── */
.cs-section { padding: 28px 16px; }
.cs-section-cool { background: var(--cool-bg); }
.cs-section-warm { background: var(--warm-bg); }
.cs-section-white { background: #fff; }
.cs-wrap { max-width: 820px; margin: 0 auto; }
.cs-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px 16px; box-shadow: var(--cs-shadow); }
@media (min-width: 640px) { .cs-section { padding: 40px 24px; } .cs-card { padding: 28px 28px; } }
.cs-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 6px; }
.cs-h2 { font-size: clamp(24px, 6vw, 34px); font-weight: 800; line-height: 1.15; color: var(--dark); letter-spacing: -.01em; margin: 0 0 6px; text-wrap: balance; }
.cs-lead { font-size: 15px; font-weight: 500; color: var(--body); line-height: 1.55; margin: 0 0 18px; }
.cs-line { font-size: 14px; font-weight: 600; color: var(--body); line-height: 1.5; margin: 0; }
.cs-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 600; color: var(--body); background: var(--warm-bg); border: 1.5px dashed var(--gold-dark); border-radius: 12px; padding: 10px 12px; line-height: 1.45; }

/* ── Buttons ───────────────────────────────────────────── */
.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 50px; border: 2px solid transparent; font-size: 16px; font-weight: 800; line-height: 1.2; cursor: pointer; text-decoration: none; transition: filter .15s, transform .12s, background .15s, color .15s; }
.cs-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cs-btn:active { transform: scale(.97); }
.cs-btn-gold { background: var(--gold-dark); color: var(--dark); box-shadow: 0 4px 0 rgba(154,106,18,.35); }
.cs-btn-gold:active { box-shadow: 0 1px 0 rgba(154,106,18,.35); }
.cs-btn-teal { background: var(--teal); color: #fff; }
.cs-btn-outline { background: transparent; border-color: var(--dark); color: var(--dark); }
.cs-btn-outline:hover { background: rgba(45,52,54,.06); filter: none; }
.cs-btn-ghost { background: transparent; color: var(--teal-text); min-height: 44px; padding: 8px 12px; }
.cs-btn-ghost:hover { background: rgba(42,150,192,.08); filter: none; }
.cs-btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.cs-btn-block { width: 100%; }
.cs-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cs-row-between { justify-content: space-between; }

/* ── Chips ─────────────────────────────────────────────── */
.cs-field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.cs-field legend { padding: 0; }
.cs-chip-more { border-style: dashed; color: var(--gold-text); }
.cs-field-label { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: var(--dark); margin: 0 0 8px; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 50px; border: 2px solid var(--border); background: #fff; color: var(--dark); font-size: 15px; font-weight: 700; line-height: 1.15; cursor: pointer; transition: transform .12s, border-color .15s, background .15s, box-shadow .15s; }
.cs-chip:hover { border-color: var(--gold-dark); }
.cs-chip:active { transform: scale(.95); }
.cs-chip .cs-chip-e { font-size: 18px; line-height: 1; }
.cs-chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold-dark); box-shadow: 0 3px 0 rgba(154,106,18,.25); animation: cs-chip-pop .3s cubic-bezier(.3,1.6,.5,1); }
.cs-chip-other { border-style: dashed; color: var(--teal-text); }
.cs-other-wrap { display: flex; gap: 8px; width: 100%; margin-top: 8px; }
.cs-input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--border); font-family: inherit; font-size: 16px; font-weight: 600; color: var(--dark); background: #fff; }
.cs-input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px rgba(42,150,192,.15); }
.cs-input-row { display: flex; gap: 8px; align-items: stretch; }
.cs-input-row .cs-input { flex: 1; min-width: 0; }
.cs-hint { font-size: 13px; font-weight: 600; color: var(--muted); margin: 6px 0 0; }

/* ── Idea ──────────────────────────────────────────────── */
.cs-idea-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cs-summary { background: var(--warm-bg); border: 2px solid var(--gold); border-radius: 16px; padding: 14px 16px; margin: 6px 0 14px; }
.cs-summary-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 4px; }
.cs-summary-text { font-size: clamp(17px, 4.6vw, 21px); font-weight: 800; color: var(--dark); line-height: 1.3; margin: 0; }
.cs-summary-text.is-empty { font-weight: 600; color: var(--muted); }
.cs-summary.is-bump { animation: cs-bump .35s ease; }
.cs-idea-foot { display: flex; flex-direction: column; gap: 10px; }
.cs-privacy { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--body); justify-content: center; text-align: center; }
.cs-idea.is-collapsed .cs-idea-body { display: none; }
.cs-idea-bar { display: none; align-items: center; justify-content: space-between; gap: 10px; }
.cs-idea.is-collapsed .cs-idea-bar { display: flex; }
.cs-idea-bar strong { font-size: 16px; color: var(--dark); }
.cs-idea-bar .cs-btn { white-space: nowrap; flex-shrink: 0; }
@media (min-width: 640px) { .cs-idea-foot { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ── Maker ─────────────────────────────────────────────── */
.cs-maker { animation: cs-in .35s ease both; }
.cs-maker-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.cs-maker-icon { flex-shrink: 0; width: 60px; height: 60px; border-radius: 18px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.cs-maker-kicker { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 2px; }
.cs-maker-title { font-size: clamp(24px, 6vw, 32px); font-weight: 800; color: var(--dark); line-height: 1.1; margin: 0 0 4px; }
.cs-maker-blurb { font-size: 15px; font-weight: 500; color: var(--body); margin: 0; line-height: 1.5; }
.cs-toolrow { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 14px; }
.cs-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 50px; background: var(--cool-bg); color: var(--teal-text); font-size: 14px; font-weight: 800; text-decoration: none; border: 2px solid transparent; }
.cs-tool:hover { border-color: var(--teal); }
.cs-tool-note { font-size: 13px; font-weight: 600; color: var(--muted); }
.cs-safety { margin: 0 0 18px; }
.cs-step-h { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--dark); margin: 22px 0 10px; }
.cs-step-h .cs-num { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-maker .cs-step-h:first-of-type { margin-top: 4px; }

/* Prompt box */
.cs-prompt { position: relative; background: var(--warm-bg); border: 2px solid var(--gold); border-left: 8px solid var(--gold-dark); border-radius: 16px; padding: 12px 12px 12px 14px; }
.cs-prompt.is-flash { animation: cs-flash .5s ease; }
.cs-prompt-text { width: 100%; min-height: 120px; resize: none; overflow: hidden; border: none; background: transparent; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--dark); padding: 0; }
.cs-prompt-text:focus { outline: none; }
.cs-prompt-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; }
.cs-copy { position: relative; }
.cs-copy.is-copied { background: var(--teal); color: #fff; }
.cs-copy .cs-spark { position: absolute; inset: 0; pointer-events: none; }
.cs-copy .cs-spark i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dark); opacity: 0; }
.cs-copy.is-copied .cs-spark i { animation: cs-spark .6s ease-out forwards; }
.cs-copy.is-copied .cs-spark i:nth-child(2) { background: var(--teal); --a: 60deg; }
.cs-copy.is-copied .cs-spark i:nth-child(3) { background: #fff; --a: 120deg; }
.cs-copy.is-copied .cs-spark i:nth-child(4) { --a: 180deg; }
.cs-copy.is-copied .cs-spark i:nth-child(5) { background: var(--teal); --a: 240deg; }
.cs-copy.is-copied .cs-spark i:nth-child(6) { background: #fff; --a: 300deg; }
.cs-prompt-tip { font-size: 13px; font-weight: 600; color: var(--muted); }
.cs-extras { margin-top: 10px; display: grid; gap: 8px; }
.cs-extra { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.cs-extra-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-text); margin: 0 0 2px; }
.cs-extra-text { font-size: 14px; font-weight: 600; color: var(--dark); margin: 0; }
.cs-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Steps */
.cs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: cs; }
.cs-steps li { position: relative; background: var(--warm-bg); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 14px 12px 50px; font-size: 15px; font-weight: 600; color: var(--dark); line-height: 1.45; }
.cs-steps li::before { counter-increment: cs; content: counter(cs); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-dark); color: var(--dark); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) { .cs-steps { grid-template-columns: repeat(3, 1fr); } }

/* Example and tip */
.cs-duo { display: grid; gap: 14px; }
@media (min-width: 768px) { .cs-duo { grid-template-columns: 3fr 2fr; align-items: start; } }
.cs-example { background: var(--cool-bg); border-radius: 16px; padding: 12px; }
.cs-example-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--teal-text); margin: 0 0 8px; }
.cs-example-h img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 52% 38%; border: 2px solid #fff; }
.cs-example img.cs-example-img { width: 100%; height: auto; border-radius: 12px; display: block; }
.cs-example figcaption { margin-top: 8px; }
.cs-example-title { font-size: 16px; font-weight: 800; color: var(--dark); margin: 0; }
.cs-example-cap { font-size: 14px; font-weight: 500; color: var(--body); margin: 2px 0 0; line-height: 1.45; }
.cs-example-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 800; color: var(--teal-text); }
.cs-songcard { position: relative; border-radius: 12px; background: var(--dark); color: var(--gold); min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 6px; overflow: hidden; }
.cs-songcard i { display: block; width: 10px; border-radius: 6px; background: var(--gold-dark); height: 30%; animation: cs-eq 1.1s ease-in-out infinite alternate; }
.cs-songcard i:nth-child(2) { animation-duration: .8s; background: var(--teal); }
.cs-songcard i:nth-child(3) { animation-duration: 1.3s; }
.cs-songcard i:nth-child(4) { animation-duration: .9s; background: var(--gold); }
.cs-songcard i:nth-child(5) { animation-duration: 1.2s; background: var(--teal); }
.cs-songcard span { position: absolute; bottom: 10px; font-size: 13px; font-weight: 800; color: #fff; opacity: .85; }
.cs-tip { background: #fff; border: 2px solid var(--gold); border-radius: 16px; padding: 14px 16px; }
.cs-tip-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 6px; }
.cs-tip-title { font-size: 17px; font-weight: 800; color: var(--dark); margin: 0 0 4px; }
.cs-tip-text { font-size: 14px; font-weight: 500; color: var(--body); margin: 0; line-height: 1.5; }

/* Done and nav */
.cs-done-row { position: relative; margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--warm-bg); border: 1.5px dashed var(--gold-dark); display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.cs-done-row.is-done { background: var(--gold); border-style: solid; }
.cs-done-hint { font-size: 13px; font-weight: 600; color: var(--body); margin: 0; }
.cs-stamp { position: absolute; right: 10px; top: -14px; transform: rotate(-12deg); border: 3px solid var(--cs-stamp); color: var(--cs-stamp); border-radius: 10px; padding: 4px 10px; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.85); box-shadow: 0 4px 10px rgba(0,0,0,.08); animation: cs-stamp .45s cubic-bezier(.2,1.4,.4,1) both; pointer-events: none; }
.cs-stamp::after { content: "✓"; margin-left: 4px; }
.cs-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cs-nav .cs-btn { flex: 1 1 auto; }

/* ── Puppet template ───────────────────────────────────── */
.cs-template { margin-top: 20px; background: #fff; border: 2px solid var(--teal); border-radius: 16px; padding: 14px; }
.cs-template-h { font-size: 18px; font-weight: 800; color: var(--dark); margin: 0 0 4px; }
.cs-template-svg { width: 100%; height: auto; max-width: 420px; margin: 10px auto; display: block; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.cs-template-row { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
@media (min-width: 640px) { .cs-template-row { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ── Celebration ───────────────────────────────────────── */
.cs-celebrate { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--gold) 0%, #FFF3D0 55%, var(--cool-bg) 100%); border: 2px solid var(--gold-dark); text-align: center; }
.cs-celebrate .cs-h2 { font-size: clamp(28px, 7vw, 40px); }
.cs-card-canvas { width: 100%; max-width: 360px; height: auto; margin: 14px auto; display: block; border-radius: 18px; box-shadow: 0 16px 40px rgba(45,52,54,.18); }
.cs-celebrate-ctas { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto 12px; }
@media (min-width: 640px) { .cs-celebrate-ctas { flex-direction: row; max-width: none; justify-content: center; } }
.cs-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cs-confetti i { position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 3px; opacity: 0; animation: cs-fall 1.6s ease-in forwards; }

/* ── Motion ────────────────────────────────────────────── */
@keyframes cs-pop { from { transform: scale(0); } 70% { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes cs-chip-pop { from { transform: scale(.9); } 60% { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes cs-bump { 0% { transform: scale(1); } 40% { transform: scale(1.02); } 100% { transform: scale(1); } }
@keyframes cs-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cs-flash { 0% { box-shadow: 0 0 0 0 rgba(232,168,56,.55); } 100% { box-shadow: 0 0 0 14px rgba(232,168,56,0); } }
@keyframes cs-spark { 0% { opacity: 1; transform: translate(-50%,-50%) rotate(var(--a, 0deg)) translateY(0); } 100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--a, 0deg)) translateY(-34px); } }
@keyframes cs-stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.8); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes cs-eq { from { height: 20%; } to { height: 85%; } }
@keyframes cs-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(110vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) {
  .cs *, .cs *::before, .cs *::after { animation: none !important; transition: none !important; }
  .cs-stops-fill { transition: none; }
  .cs-songcard i { height: 50%; }
  .cs-confetti { display: none; }
}

/* ── Print: only the puppet template ───────────────────── */
#cs-print { display: none; }
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body.cs-printing > * { display: none !important; }
  body.cs-printing > #cs-print { display: block !important; }
  #cs-print svg { width: 190mm; height: auto; display: block; margin: 0 auto; }
}
