/* ==========================================================================
   Project Builder — the interactive brief "game"
   ========================================================================== */
.bld [hidden] { display: none !important; }
.page-builder .site-footer, .page-builder .wa-float { display: none; }
.bld { position: relative; min-height: calc(100vh - 112px); padding: 26px 0 60px; isolation: isolate; overflow: hidden; }
.bld-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bld-bg .aurora { opacity: .28; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }

/* ---------- HUD ---------- */
.bld-hud { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; animation: rise .5s both; }
.lv-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex: 1; max-width: 720px; }
.lv-track li { flex: 1; min-width: 0; }
.lv-track .lv-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; position: relative; }
.lv-track .lv-bar i { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.lv-track .lv-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: barshine 2s linear infinite; }
@keyframes barshine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.lv-track small { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--dim); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-track li.current small { color: var(--text); font-weight: 600; }
.lv-track li.done small { color: var(--ok); }
.hud-right { display: flex; align-items: center; gap: 10px; }
.hud-xp, .hud-badges { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border-2); font-size: .88rem; color: var(--muted); }
.hud-xp b { font: 700 1rem var(--display); color: #fff; min-width: 2ch; text-align: right; }
.hud-xp.bump { animation: bump .45s; }
.hud-badges b { color: #fff; }
@keyframes bump { 40% { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(124, 92, 255, .25); } }
.hud-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 1rem; }
.hud-btn:hover { color: #fff; }

/* ---------- Layout ---------- */
.bld-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 34px; align-items: start; }
.bld-stage { min-width: 0; }

/* ---------- Max ---------- */
.max-wrap { width: 108px; flex: none; }
.max-xl { width: 170px; margin: 0 auto 10px; }
.max { width: 100%; height: auto; overflow: visible; }
.max * { transform-box: fill-box; transform-origin: center; }
.max .mx-body { animation: mx-idle 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes mx-idle { 50% { transform: translateY(-4px); } }
.max .mx-shadow { animation: mx-shadow 3.2s ease-in-out infinite; }
@keyframes mx-shadow { 50% { transform: scaleX(.85); opacity: .6; } }
.max .mx-bulb { animation: mx-bulb 1.6s ease-in-out infinite; }
@keyframes mx-bulb { 50% { fill: #f472b6; } }
.max .mx-eye { animation: mx-blink 4.5s infinite; }
@keyframes mx-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.max .mx-m, .max .mx-eye-happy, .max .mx-eye-love, .max .mx-eye-wow, .max .mx-think-dots, .max .mx-sparkles, .max .mx-hearts { display: none; }
.max .mx-arm-r { transform-origin: 0% 100%; }
/* moods */
.max.mood-happy .m-smile, .max.mood-wave .m-smile { display: block; }
.max.mood-wave .mx-arm-r { animation: mx-wave .6s ease-in-out 4 alternate; }
@keyframes mx-wave { from { transform: rotate(-12deg); } to { transform: rotate(18deg); } }
.max.mood-excited .m-open, .max.mood-excited .mx-eye-happy, .max.mood-excited .mx-sparkles { display: block; }
.max.mood-excited .mx-eye-n { display: none; }
.max.mood-excited .mx-sparkles path { animation: mx-spark .8s ease-in-out infinite alternate; }
@keyframes mx-spark { from { transform: scale(.6) rotate(0); } to { transform: scale(1.2) rotate(30deg); } }
.max.mood-wow .m-o, .max.mood-wow .mx-eye-wow { display: block; }
.max.mood-wow .mx-eye-n { display: none; }
.max.mood-thinking .m-think, .max.mood-thinking .mx-think-dots { display: block; }
.max.mood-thinking .mx-eye-n { transform: translate(4px, -4px); transition: transform .3s; }
.max.mood-thinking .mx-think-dots circle { animation: mx-dots 1.2s ease-in-out infinite; }
.max.mood-thinking .mx-think-dots circle:nth-child(2) { animation-delay: .2s; }
.max.mood-thinking .mx-think-dots circle:nth-child(3) { animation-delay: .4s; }
@keyframes mx-dots { 50% { opacity: .2; } }
.max.mood-love .m-smile, .max.mood-love .mx-eye-love, .max.mood-love .mx-hearts { display: block; }
.max.mood-love .mx-eye-n { display: none; }
.max.mood-love .mx-eye-love path, .max.mood-love .mx-hearts path { animation: mx-heart .7s ease-in-out infinite alternate; }
@keyframes mx-heart { to { transform: scale(1.25); } }
.max.jump .mx-body { animation: mx-jump .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mx-jump { 30% { transform: translateY(-18px) scale(1.04, .96); } 60% { transform: translateY(0) scale(1.06, .94); } 100% { transform: none; } }

/* ---------- Intro ---------- */
.bld-intro { text-align: center; padding: 30px 0 10px; animation: rise .6s both; }
.bld-intro h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.bld-intro .lead { margin: 0 auto 26px; }
.intro-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.intro-perks span { padding: 9px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border-2); font-size: .92rem; }
.intro-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }

/* ---------- Conversation ---------- */
.convo { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 8px; }
.bubble {
  position: relative; flex: 1; min-height: 70px; padding: 20px 24px; border-radius: 22px 22px 22px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); border: 1px solid var(--border-2);
  font: 600 clamp(1.15rem, 2.2vw, 1.45rem)/1.4 var(--display); letter-spacing: -.01em; box-shadow: var(--shadow); cursor: pointer;
}
.bubble.react { border-color: rgba(52, 211, 153, .45); background: linear-gradient(180deg, rgba(52, 211, 153, .12), rgba(52, 211, 153, .03)); }
.bubble.pop { animation: bubble-pop .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes bubble-pop { from { transform: scale(.94); opacity: .4; } }
.typing { display: inline-flex; gap: 5px; padding: 8px 0; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.q-hint { color: var(--muted); font-size: .95rem; margin: 6px 0 18px 122px; min-height: 1.4em; }
.answer { min-height: 120px; }
.answer.in > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }

/* option cards */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.opts.chips-mode { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.opt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer;
  padding: 18px; border-radius: 18px; border: 1.5px solid var(--border-2); background: rgba(255, 255, 255, .035); color: var(--text); font: inherit;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s; overflow: hidden; animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.opt:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .08); box-shadow: 0 14px 30px -16px rgba(124, 92, 255, .8); }
.opt:active { transform: scale(.97); }
.opt .em { font-size: 2rem; line-height: 1; margin-bottom: 8px; display: inline-block; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.opt:hover .em { transform: scale(1.2) rotate(-8deg); }
.opt b { font-size: 1rem; font-weight: 600; }
.opt small { color: var(--dim); font-size: .83rem; line-height: 1.4; }
.opt .key { position: absolute; top: 10px; right: 12px; font-size: .7rem; color: var(--dim); border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; }
.opt .tick { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .8rem; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.opt.on { border-color: var(--brand); background: rgba(124, 92, 255, .16); box-shadow: 0 0 0 4px rgba(124, 92, 255, .15); }
.opt.on .tick { transform: scale(1); }
.opt.on .key { display: none; }
.opt.chosen { animation: chosen .5s cubic-bezier(.3, 1.6, .5, 1) both; border-color: var(--brand-2); }
@keyframes chosen { 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
.opts.decided .opt:not(.chosen) { opacity: .3; transform: scale(.97); transition: opacity .3s, transform .3s; }
.chips-mode .opt { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; }
.chips-mode .opt .em { font-size: 1.4rem; margin: 0; }
.chips-mode .opt b { font-size: .92rem; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.multi-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.multi-bar .count { color: var(--muted); font-size: .9rem; }
.other-row { display: flex; gap: 8px; margin-top: 12px; }

/* text input */
.text-row { display: flex; gap: 10px; }
.text-row input, .text-row textarea { font-size: 1.15rem; padding: 18px 20px; border-radius: 16px; }
.text-row .btn { flex: none; }
.send { width: 60px; height: 60px; border-radius: 16px !important; padding: 0 !important; }
.send .ico { width: 22px; height: 22px; }
.ta-wrap textarea { min-height: 150px; font-size: 1.05rem; border-radius: 16px; }
.meter { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: .88rem; color: var(--muted); }
.meter .track { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter .track i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }

/* slider */
.slider-box { padding: 26px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--border-2); text-align: center; }
.slider-vis { font-size: 2.4rem; min-height: 70px; display: flex; justify-content: center; align-items: flex-end; gap: 2px; flex-wrap: wrap; letter-spacing: -6px; transition: all .2s; }
.slider-vis span { display: inline-block; animation: drop .35s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes drop { from { transform: translateY(-20px) scale(.6); opacity: 0; } }
.slider-val { font: 700 2rem var(--display); margin: 10px 0 16px; }
.slider-box input[type=range] { width: 100%; }
.slider-ticks { display: flex; justify-content: space-between; font-size: .72rem; color: var(--dim); margin-top: 10px; }

/* this-or-that */
.pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair-opt { cursor: pointer; border: 1.5px solid var(--border-2); border-radius: 22px; padding: 16px; background: rgba(255, 255, 255, .035); color: var(--text); font: inherit; text-align: left; transition: transform .25s, opacity .3s, border-color .2s; animation: rise .5s both; }
.pair-opt:nth-child(2) { animation-delay: .08s; }
.pair-opt:hover { transform: translateY(-4px) rotate(-.6deg); border-color: var(--brand); }
.pair-opt:nth-child(2):hover { transform: translateY(-4px) rotate(.6deg); }
.pair-opt b { display: block; font-size: 1.05rem; margin-top: 12px; }
.pair-opt small { color: var(--dim); font-size: .85rem; }
.pair-vs { position: absolute; left: 50%; top: 42%; translate: -50% -50%; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font: 800 1rem var(--display); box-shadow: 0 0 0 6px var(--bg), 0 10px 30px -8px rgba(124, 92, 255, .9); animation: vs 2s ease-in-out infinite; z-index: 2; pointer-events: none; }
@keyframes vs { 50% { transform: scale(1.12) rotate(8deg); } }
.pair.decided .pair-opt:not(.chosen) { opacity: .25; transform: scale(.94); }
.pair.decided .pair-opt.chosen { transform: scale(1.03); border-color: var(--brand-2); box-shadow: 0 20px 50px -20px rgba(34, 211, 238, .7); }
.pair.decided .pair-vs { opacity: 0; transition: opacity .2s; }
.mock { height: 120px; border-radius: 14px; overflow: hidden; position: relative; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.mock i { display: block; border-radius: 4px; }
.mock-minimal { background: #f8fafc; } .mock-minimal i { background: #cbd5e1; height: 5px; } .mock-minimal i:first-child { width: 40%; height: 7px; background: #64748b; margin-top: 18px; } .mock-minimal i:nth-child(2) { width: 60%; } .mock-minimal i:nth-child(3) { width: 25%; height: 12px; border-radius: 99px; background: #7c5cff; margin-top: 8px; }
.mock-bold { background: linear-gradient(135deg, #f43f5e, #7c5cff 60%, #22d3ee); } .mock-bold i { background: #fff; height: 14px; } .mock-bold i:first-child { width: 80%; height: 20px; } .mock-bold i:nth-child(2) { width: 55%; } .mock-bold i:nth-child(3) { width: 35%; height: 18px; background: #111827; border-radius: 99px; }
.mock-light { background: linear-gradient(180deg, #fff, #eef2ff); } .mock-light i { background: #c7d2fe; height: 8px; } .mock-light i:first-child { width: 50%; background: #6366f1; }
.mock-dark { background: radial-gradient(circle at 70% 20%, #3b2a7a, #05070e 70%); } .mock-dark i { background: rgba(255, 255, 255, .2); height: 8px; } .mock-dark i:first-child { width: 50%; background: linear-gradient(90deg, #fbbf24, #f472b6); }
.mock-round { background: #eef2ff; flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; } .mock-round i { width: 54px; height: 54px; border-radius: 22px; background: #a5b4fc; } .mock-round i:nth-child(2) { border-radius: 50%; background: #f9a8d4; }
.mock-sharp { background: #0f172a; flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; } .mock-sharp i { width: 54px; height: 54px; border-radius: 0; background: transparent; border: 2px solid #e2e8f0; } .mock-sharp i:nth-child(2) { background: #e2e8f0; }

/* colour */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.sw { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); animation: rise .4s both; animation-delay: calc(var(--i) * 35ms); }
.sw:hover { transform: scale(1.12); }
.sw.on { border-color: #fff; transform: scale(1.15); box-shadow: 0 0 0 4px var(--c), 0 10px 30px -6px var(--c); }
.sw-custom { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: .92rem; cursor: pointer; }
.sw-custom input { width: 54px; height: 40px; padding: 2px; border-radius: 10px; cursor: pointer; }
.color-name { margin-top: 16px; font: 600 1.05rem var(--display); }

/* FAQ helper (the customer's point of view) */
.faq-wrap { margin-top: 22px; }
.faq-q { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1px dashed rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .07); color: #a5f3fc; font: 500 .9rem var(--font); cursor: pointer; animation: rise .5s .5s both; }
.faq-q:hover { background: rgba(34, 211, 238, .14); }
.faq-q .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); animation: pulse 2s infinite; box-shadow: 0 0 0 0 rgba(34, 211, 238, .7); }
.faq-a { margin-top: 12px; padding: 16px 18px; border-radius: 16px 16px 16px 4px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .3); color: var(--text); font-size: .95rem; line-height: 1.6; animation: rise .35s both; }
.faq-a b { display: block; color: #a5f3fc; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }

.q-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); }
.q-count { color: var(--dim); font-size: .85rem; }

/* floating XP */
.xp-float { position: fixed; z-index: 150; pointer-events: none; font: 800 1.1rem var(--display); color: #fde68a; text-shadow: 0 2px 12px rgba(251, 191, 36, .7); animation: xpfloat 1.1s ease-out forwards; }
@keyframes xpfloat { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }

/* achievement toasts */
.bld-toasts { position: fixed; top: 96px; right: 20px; z-index: 160; display: grid; gap: 10px; }
.ach { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; background: rgba(13, 19, 38, .95); border: 1px solid rgba(251, 191, 36, .5); box-shadow: 0 20px 40px -14px rgba(251, 191, 36, .45); animation: ach-in .6s cubic-bezier(.3, 1.5, .5, 1) both; }
.ach.out { animation: ach-out .4s ease-in forwards; }
.ach .em { font-size: 1.8rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(251, 191, 36, .14); }
.ach small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #fcd34d; }
.ach b { display: block; }
.ach span.d { display: block; font-size: .8rem; color: var(--dim); }
@keyframes ach-in { from { opacity: 0; transform: translateX(60px) scale(.8); } }
@keyframes ach-out { to { opacity: 0; transform: translateX(60px); } }

/* level-up overlay */
.levelup { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; background: rgba(4, 6, 14, .72); backdrop-filter: blur(8px); animation: fade .3s both; padding: 20px; }
@keyframes fade { from { opacity: 0; } }
.levelup-card { text-align: center; padding: 40px 44px; border-radius: 28px; background: linear-gradient(180deg, #121a33, #0a0f1f); border: 1px solid var(--border-2); box-shadow: 0 40px 100px -30px rgba(124, 92, 255, .8); max-width: 420px; animation: lu-in .6s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes lu-in { from { opacity: 0; transform: scale(.7) translateY(30px); } }
.lu-badge { width: 110px; height: 110px; margin: 0 auto 18px; border-radius: 30px; display: grid; place-items: center; font-size: 3.4rem; background: var(--grad); box-shadow: 0 0 0 8px rgba(124, 92, 255, .18), 0 20px 50px -10px rgba(124, 92, 255, .9); animation: lu-badge 1s cubic-bezier(.3, 1.5, .5, 1) .15s both; }
@keyframes lu-badge { from { transform: scale(0) rotate(-180deg); } }
.levelup small { color: #fcd34d; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; }
.levelup h2 { margin: 6px 0 8px; font-size: 1.9rem; }
.levelup p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Live preview ---------- */
.bld-side { position: sticky; top: 96px; }
.side-head { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.side-head small { color: var(--dim); font-weight: 400; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #f87171; box-shadow: 0 0 0 0 rgba(248, 113, 113, .7); animation: pulse 1.6s infinite; }
.side-close { display: none; margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.pv {
  --pc: #7c5cff; --pbg: #ffffff; --ptx: #0f172a; --pmut: #64748b; --pcard: #f1f5f9; --pr: 14px;
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-2); background: var(--pbg); color: var(--ptx);
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--pc) 70%, transparent); transition: background .5s, color .5s, box-shadow .5s; font-family: var(--font);
}
.pv[data-mode="dark"] { --pbg: #0b0f1c; --ptx: #f1f5f9; --pmut: #94a3b8; --pcard: #151b2e; }
.pv[data-shape="sharp"] { --pr: 2px; }
.pv-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: rgba(0, 0, 0, .06); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.pv[data-mode="dark"] .pv-bar { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .06); }
.pv-bar i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; } .pv-bar i:nth-child(2) { background: #fbbf24; } .pv-bar i:nth-child(3) { background: #34d399; }
.pv-url { margin-left: 8px; padding: 2px 12px; border-radius: 99px; font-size: .68rem; color: var(--pmut); background: rgba(127, 127, 127, .12); max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-site { padding: 12px 14px 14px; font-size: .78rem; }
.pv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pv-logo { width: 26px; height: 26px; border-radius: calc(var(--pr) * .6); display: grid; place-items: center; background: var(--pc); color: #fff; font-weight: 800; font-size: .8rem; flex: none; transition: all .4s; }
.pv-name { font-weight: 800; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.pv-nav { display: flex; gap: 8px; margin-left: auto; color: var(--pmut); font-size: .66rem; overflow: hidden; white-space: nowrap; }
.pv-lang { font-size: .62rem; padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(127, 127, 127, .3); color: var(--pmut); flex: none; }
.pv-cart { position: relative; font-size: .9rem; flex: none; }
.pv-cart i { position: absolute; top: -6px; right: -8px; min-width: 15px; height: 15px; border-radius: 99px; background: var(--pc); color: #fff; font-size: .55rem; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.pv-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; align-items: center; padding: 16px; border-radius: var(--pr); background: color-mix(in srgb, var(--pc) 10%, var(--pbg)); transition: all .5s; }
.pv[data-tone="bold"] .pv-hero { background: linear-gradient(135deg, var(--pc), color-mix(in srgb, var(--pc) 55%, #000)); color: #fff; }
.pv[data-tone="bold"] .pv-sub { color: rgba(255, 255, 255, .8); }
.pv[data-tone="bold"] .pv-btn { background: #fff; color: var(--pc); }
.pv-h { margin: 0 0 4px; font: 800 1.05rem/1.2 var(--display); letter-spacing: -.02em; }
.pv[data-tone="bold"] .pv-h { font-size: 1.25rem; text-transform: none; }
.pv-sub { margin: 0 0 10px; color: var(--pmut); font-size: .7rem; line-height: 1.4; }
.pv-btn { display: inline-block; padding: 6px 12px; border-radius: calc(var(--pr) * 2); background: var(--pc); color: #fff; font-weight: 700; font-size: .68rem; transition: all .4s; }
.pv-art { font-size: 3rem; text-align: center; line-height: 1; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .25)); animation: mx-idle 3s ease-in-out infinite; }
.pv-section-t { margin: 14px 0 8px; font-weight: 800; font-size: .78rem; }
.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-grid > * { border-radius: var(--pr); background: var(--pcard); min-height: 64px; padding: 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; font-size: .62rem; transition: all .4s; animation: rise .4s both; }
.pv-grid .ph { flex: 1; min-height: 34px; border-radius: calc(var(--pr) * .7); background: color-mix(in srgb, var(--pc) 25%, var(--pcard)); display: grid; place-items: center; font-size: 1.1rem; }
.pv-grid b { font-size: .64rem; }
.pv-grid .price { color: var(--pc); font-weight: 800; }
.pv-feats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; min-height: 10px; }
.pv-feats span { padding: 3px 8px; border-radius: 99px; font-size: .6rem; font-weight: 600; background: color-mix(in srgb, var(--pc) 14%, transparent); color: var(--pc); animation: drop .4s both; }
.pv[data-mode="dark"] .pv-feats span { color: color-mix(in srgb, var(--pc) 60%, #fff); }
.pv-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(127, 127, 127, .18); color: var(--pmut); font-size: .6rem; }
.pv-wa { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-size: 1rem; box-shadow: 0 6px 16px -4px rgba(37, 211, 102, .8); animation: drop .5s both; }
.pv-flash { animation: pvflash .9s ease; }
@keyframes pvflash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pc) 80%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.side-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.side-stats span { font-size: .78rem; padding: 5px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); animation: drop .4s both; }
.side-stats b { color: #fff; }
.peek { display: none; }

/* ---------- Blueprint ---------- */
.bld-final { animation: rise .6s both; }
.bp-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.bp-head .max-wrap { width: 110px; }
.bp-head h2 { margin: 0 0 4px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.blueprint { position: relative; border-radius: 24px; padding: 28px; border: 1px solid rgba(34, 211, 238, .35); overflow: hidden;
  background: linear-gradient(rgba(34, 211, 238, .06) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(34, 211, 238, .06) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(180deg, #0c1530, #080d1d); }
.blueprint::after { content: "BLUEPRINT"; position: absolute; top: 18px; right: -34px; transform: rotate(35deg); background: rgba(34, 211, 238, .15); color: #67e8f9; font: 800 .7rem var(--font); letter-spacing: .2em; padding: 4px 40px; }
.bp-title { font: 700 1.4rem var(--display); margin-bottom: 4px; }
.bp-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.bp-meta div { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); animation: rise .5s both; }
.bp-meta div:nth-child(2) { animation-delay: .1s; } .bp-meta div:nth-child(3) { animation-delay: .2s; }
.bp-meta small { display: block; color: var(--dim); font-size: .76rem; }
.bp-meta b { display: block; font: 700 1.2rem var(--display); margin-top: 2px; }
.size-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); font: 800 .95rem var(--display); margin-right: 6px; vertical-align: middle; }
.bp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bp-cols h4 { font: 700 .76rem var(--font); text-transform: uppercase; letter-spacing: .12em; color: #67e8f9; margin: 0 0 10px; }
.bp-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }
.bp-list li { display: flex; gap: 8px; font-size: .9rem; color: var(--muted); animation: rise .4s both; animation-delay: calc(var(--i, 0) * 40ms); }
.bp-list li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.bp-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 5px; vertical-align: -3px; margin-right: 6px; border: 1px solid rgba(255, 255, 255, .3); }
.bp-note { font-size: .78rem; color: var(--dim); margin-top: 8px; }
.bp-form { margin-top: 26px; padding: 28px; border-radius: 24px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .03); }
.bp-form h3 { font-size: 1.35rem; margin-bottom: 4px; }
.done-card { text-align: center; padding: 30px 10px; }
.done-card .max-wrap { margin: 0 auto 10px; width: 160px; }
.done-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.done-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.done-badges span { padding: 8px 14px; border-radius: 99px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); font-size: .88rem; animation: drop .5s both; animation-delay: calc(var(--i) * 90ms); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bld-grid { grid-template-columns: 1fr; }
  .bld-side { position: fixed; inset: auto 12px 12px 12px; top: auto; z-index: 120; max-width: 460px; margin-left: auto; padding: 14px; border-radius: 22px; background: rgba(8, 12, 24, .96); border: 1px solid var(--border-2); box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .8); transform: translateY(120%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); max-height: 80vh; overflow: auto; }
  .bld-side.open { transform: none; }
  .side-close { display: block; }
  .peek { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 110; padding: 12px 18px; border-radius: 99px; border: 0; background: var(--grad); color: #fff; font: 700 .92rem var(--font); box-shadow: 0 14px 30px -10px rgba(124, 92, 255, .9); cursor: pointer; }
  .peek.ping { animation: bump .5s; }
  .peek[hidden] { display: none; }
}
@media (max-width: 720px) {
  .lv-track small { display: none; }
  .hud-badges { display: none; }
  .max-wrap { width: 72px; }
  .q-hint { margin-left: 0; }
  .bubble { padding: 16px 18px; }
  .opts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .opt { padding: 14px; }
  .opt .em { font-size: 1.6rem; }
  .opt small { display: none; }
  .opt .key { display: none; }
  .opts.chips-mode { grid-template-columns: 1fr 1fr; }
  .pair { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mock { height: 90px; }
  .bp-meta, .bp-cols { grid-template-columns: 1fr; }
  .blueprint, .bp-form { padding: 20px; }
  .swatches { gap: 10px; } .sw { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .bld *, .bld *::before, .bld *::after { animation: none !important; transition: none !important; }
}

/* v6 — phone layout for answer cards */
@media (max-width: 720px) {
  .bld .opt { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 14px; }
  .bld .opt .em { grid-row: span 2; margin: 0; font-size: 1.5rem; text-align: center; }
  .bld .opt b { font-size: .95rem; line-height: 1.3; }
  .bld .opt small { display: block; grid-column: 2; font-size: .8rem; }
  .bld .opt .tick { top: 8px; right: 8px; width: 20px; height: 20px; font-size: .7rem; }
  .bld .opts { grid-template-columns: 1fr; gap: 8px; }
  .bld .opts.chips-mode { grid-template-columns: 1fr 1fr; }
  .bld .chips-mode .opt { grid-template-columns: 26px 1fr; }
  .bld .chips-mode .opt .em { font-size: 1.2rem; }
  .bld .bubble { font-size: 1.05rem; }
  .bld .multi-bar { position: sticky; bottom: 0; z-index: 5; margin: 14px -4px 0; padding: 12px 4px; background: linear-gradient(180deg, rgba(6, 9, 18, 0), rgba(6, 9, 18, .95) 35%); }
}

@media (max-width: 720px) {
  .bld { padding-top: 14px; }
  .bld-hud { margin-bottom: 12px; }
  .hud-xp { padding: 6px 12px; }
  .convo { gap: 10px; }
  .bld-intro h1 { font-size: 2rem; }
  .intro-perks span { font-size: .82rem; padding: 7px 12px; }
  .intro-ctas .btn { flex: 1 1 100%; }
  .text-row input { font-size: 1rem; padding: 15px 16px; }
  .send { width: 54px; height: 54px; }
  .slider-box { padding: 18px; }
  .slider-ticks span:nth-child(even) { visibility: hidden; }
  .pair-opt { padding: 10px; }
  .pair-opt b { font-size: .92rem; }
  .pair-vs { width: 40px; height: 40px; font-size: .8rem; }
  .bp-head { flex-direction: column; align-items: flex-start; }
  .levelup-card { padding: 30px 22px; }
  .bld-toasts { left: 12px; right: 12px; top: 80px; }
  .ach { padding: 10px 14px 10px 10px; }
  .peek { bottom: 12px; right: 12px; }
}
