/* Fizoland Startup Academy (js/academy/academy.js). Loaded after style.css, every class is scoped under .ac. */

.ac {
  --ac: #ffb347;
  --ac-ink: #fff7ea;
  --ac-soft: color-mix(in srgb, var(--ac) 16%, transparent);
  --ac-line: color-mix(in srgb, var(--ac) 38%, rgba(255, 255, 255, .12));
  --ac-card: linear-gradient(165deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035));
  --ok: #4ade80;
  --no: #fb7185;
  --meh: #facc15;
  width: min(1180px, 100%); margin: 0 auto; padding: 22px clamp(14px, 3.5vw, 36px) 30px;
  color: var(--ac-ink);
}
.ac img { max-width: 100%; }
.ac-svg { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.15em; }
.ac-ic { width: 40px; height: 40px; object-fit: contain; }
.ac-muted { color: var(--muted); }
.ac .pos { color: var(--ok); }
.ac .neg { color: var(--no); }
.ac h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.ac h2 { font-size: clamp(22px, 2.8vw, 30px); }
.ac h3 { font-size: 21px; margin-bottom: 8px; }
.ac h4 { font-size: 17px; margin: 0 0 6px; }
.ac p { margin: 6px 0; }

/* ---------- Frame ---------- */
.ac-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ac-crumb { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 4px 14px 4px 6px; border-radius: 999px; background: var(--ac-soft); border: 1px solid var(--ac-line); }
.ac-crumb-ic { width: 32px; height: 32px; object-fit: contain; }
.ac-head { text-align: center; margin: 8px auto 22px; max-width: 820px; }
.ac-head h1 { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(100deg, #fff 20%, color-mix(in srgb, var(--ac) 70%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ac-head h1 .ac-svg { color: var(--ac); }
.ac-head p { color: var(--muted); font-size: 18px; }
.ac-body { display: flex; flex-direction: column; gap: 18px; }
.ac-card {
  background: var(--ac-card); border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; padding: clamp(16px, 2.4vw, 24px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 20px 40px -26px rgba(0, 0, 0, .7);
}
.ac-sec { margin: 44px 0 22px; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.ac-actions.center { justify-content: center; }
.ac-prompt { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.ac-hint { color: var(--muted); font-size: 15px; margin: 8px 0; }
.ac-result:empty { display: none; }
.ac-result { margin-top: 12px; }
.btn-ic { width: 26px; height: 26px; object-fit: contain; margin: -4px 0; }
.ac-h-ic { width: 34px; height: 34px; object-fit: contain; vertical-align: middle; margin-inline-end: 6px; }
.ac-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 18px; background: rgba(255, 211, 77, .09); border: 1px dashed rgba(255, 211, 77, .45); }
.ac-note p { margin: 0; }
.ac-note a { color: var(--yellow); text-decoration: underline; }
.ac-note-ic { width: 38px; height: 38px; object-fit: contain; flex: none; }
.ac-disclaimer { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }
.ac-toast-ic { height: 52px; width: 52px; object-fit: contain; }

.ac-fb { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; line-height: 1.55; animation: ac-pop .35s cubic-bezier(.3, 1.5, .5, 1); }
.ac-fb > .ac-svg { margin-top: 4px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: #10230f; }
.ac-fb.ok { background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .45); }
.ac-fb.ok > .ac-svg { background: var(--ok); }
.ac-fb.no { background: rgba(251, 113, 133, .11); border: 1px solid rgba(251, 113, 133, .45); }
.ac-fb.no > .ac-svg { background: var(--no); color: #3a0a12; }
.ac-fb ul { margin: 4px 0 0; padding-inline-start: 20px; }
.ac-donebar { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(74, 222, 128, .15); color: #bbf7d0; font-weight: 700; }
@keyframes ac-pop { from { transform: scale(.94); opacity: 0; } }
@keyframes ac-in { from { opacity: 0; transform: translateY(18px); } }

.ac-field { display: flex; flex-direction: column; gap: 6px; }
.ac-field > span { font-weight: 700; color: var(--muted); font-size: 15px; }
.ac input:not([type]), .ac input[type=text] {
  font: inherit; font-size: 17px; color: #fff; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px; padding: 10px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.ac input:not([type]):focus, .ac input[type=text]:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }
.ac input[type=range] { width: 100%; accent-color: var(--ac); height: 28px; cursor: pointer; }
.ac input[type=checkbox] { accent-color: var(--ac); width: 18px; height: 18px; }
.pill-btn {
  font: inherit; font-weight: 700; font-size: 15px; color: #fff; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); transition: background .2s, border-color .2s, transform .1s;
}
.pill-btn:hover { background: rgba(255, 255, 255, .13); }
.pill-btn.on { background: var(--ac); border-color: var(--ac); color: #2a1600; }

/* Tabs used by lessons */
.ac-steps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.ac-step {
  font: inherit; font-weight: 800; font-size: 16px; color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
}
.ac-step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-size: 14px; }
.ac-step.on { background: var(--ac); color: #2a1600; border-color: transparent; box-shadow: 0 8px 20px -8px var(--ac); }
.ac-step.on .ac-step-n { background: rgba(0, 0, 0, .15); }
.ac-step.done .ac-step-n { background: var(--ok); color: #10230f; }
.ac-step:disabled { opacity: .45; cursor: not-allowed; }

/* Locked stage */
.ac-locked { display: flex; align-items: center; gap: 22px; max-width: 760px; margin: 0 auto; }
.ac-locked-fizo { width: 140px; height: auto; flex: none; animation: hover 3.5s ease-in-out infinite; }

/* ---------- Landing ---------- */
.ac-home .back { margin-bottom: 14px; }
.ach-hero {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 10px; overflow: hidden;
  border-radius: 34px; min-height: 480px; isolation: isolate;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 179, 71, .35);
}
.ach-town { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ach-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(270deg, rgba(20, 10, 51, .94) 0%, rgba(20, 10, 51, .82) 38%, rgba(20, 10, 51, .15) 72%, rgba(20, 10, 51, 0) 100%),
    linear-gradient(0deg, rgba(20, 10, 51, .75), transparent 45%);
}
.ach-copy { padding: clamp(22px, 4vw, 46px); align-self: center; }
.ach-pill { background: rgba(255, 179, 71, .18); border-color: rgba(255, 179, 71, .55); color: #ffe2b8; letter-spacing: .5px; }
.ach-copy h1 {
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12;
  background: linear-gradient(100deg, #fff 10%, #ffe1a6 55%, #ffb347 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(255, 160, 50, .35));
}
.ach-motto { font-size: clamp(18px, 2vw, 22px); font-weight: 800; color: #ffd28a; margin: 12px 0 4px; }
.ach-lead { color: #ece6ff; font-size: 17px; max-width: 560px; }
.ach-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.ach-progress { color: var(--muted); font-weight: 700; }
.ach-progress b { color: #fff; font-size: 22px; }
.ach-guide { display: flex; flex-direction: column; align-items: center; padding: 20px 20px 0; align-self: end; }
.ach-bubble {
  position: relative; background: #fff; color: #2a1a5e; font-weight: 600; font-size: 17px; line-height: 1.5;
  padding: 12px 18px; border-radius: 22px; max-width: 320px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  animation: pop-in .6s .3s both cubic-bezier(.3, 1.6, .5, 1);
}
.ach-bubble::after { content: ""; position: absolute; bottom: -11px; left: 50%; margin-left: -11px; border: 11px solid transparent; border-top-color: #fff; border-bottom: 0; }
.ach-fizo { width: min(230px, 70%); height: auto; margin-top: 8px; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .5)); animation: hover 3.5s ease-in-out infinite; }

.ach-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; }
.ach-stage { animation: ac-in .6s calc(var(--i) * 90ms) both cubic-bezier(.3, 1.3, .5, 1); }
.ach-stage a {
  position: relative; display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 18px; border-radius: 26px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 26%, transparent), rgba(255, 255, 255, .03) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s;
}
.ach-stage.open a:hover, .ach-stage.done a:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px var(--c); }
.ach-stage.next a { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 70%, #fff), 0 22px 44px -18px var(--c); }
.ach-stage.next a::after {
  content: "التالي"; position: absolute; top: -12px; inset-inline-start: 18px; background: var(--c); color: #1b0d00; font-weight: 800;
  font-size: 13px; padding: 1px 12px; border-radius: 999px; box-shadow: 0 6px 14px -6px var(--c);
}
.ach-stage.locked a { filter: grayscale(.75); opacity: .62; cursor: not-allowed; }
.ach-stage.shake a { animation: ac-shake .45s; }
@keyframes ac-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.ach-ring {
  --p: 0; flex: none; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0);
}
.ach-ring > span { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #2d1a63, #170c3c); }
.ach-stage-ic { width: 60px; height: 60px; object-fit: contain; }
.ach-stage-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ach-stage-txt small { color: color-mix(in srgb, var(--c) 55%, #fff); font-weight: 700; }
.ach-stage-txt b { font-size: 21px; line-height: 1.25; }
.ach-stage-txt span { color: #ddd6ff; font-size: 14.5px; line-height: 1.5; }
.ach-stage-txt em { font-style: normal; font-weight: 800; font-size: 14px; margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; }
.ach-stage.done em { color: var(--ok); }

.ach-learn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ach-mod {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 12px; border-radius: 22px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 20%, transparent), rgba(255, 255, 255, .03));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); animation: ac-in .6s calc(var(--i) * 60ms) both;
}
.ach-mod.done { box-shadow: inset 0 0 0 2px var(--ok); }
.ach-mod-ic { width: 70px; height: 70px; object-fit: contain; }
.ach-mod b { font-size: 18px; }
.ach-mod small { color: var(--muted); line-height: 1.45; }

.ach-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.ach-values ul, .ach-notebook ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ach-values li { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border-inline-start: 4px solid var(--ac); }
.ach-values li span { color: var(--muted); font-size: 15px; }
.ach-notebook li { padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.ach-notebook li small { display: block; color: #ffd28a; font-weight: 700; }
.nb-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--bc); }
.nb-ic { width: 26px; height: 26px; object-fit: contain; }

.ach-badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ach-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 8px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 255, 255, .16); }
.ach-badge > span { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.ach-badge-ic { width: 48px; height: 48px; object-fit: contain; filter: grayscale(1) brightness(.6); opacity: .55; }
.ach-badge b { font-size: 15px; }
.ach-badge small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ach-badge.got { border: 1px solid rgba(255, 211, 77, .6); background: linear-gradient(170deg, rgba(255, 211, 77, .16), rgba(255, 255, 255, .03)); }
.ach-badge.got > span { background: radial-gradient(circle, rgba(255, 211, 77, .45), rgba(255, 179, 71, .1)); box-shadow: 0 0 22px rgba(255, 200, 70, .4); }
.ach-badge.got .ach-badge-ic { filter: none; opacity: 1; }

/* ---------- Diagrams ---------- */
.vz-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 14px 0; }
.vz-node { padding: 8px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ac) 22%, rgba(255, 255, 255, .05)); border: 1px solid var(--ac-line); font-weight: 700; animation: ac-in .5s calc(var(--i) * 120ms) both; }
.vz-arrow { color: var(--ac); font-weight: 800; font-size: 20px; }
.vz-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.vz-col { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; }
.vz-col b { display: flex; align-items: center; gap: 6px; }
.vz-col span { padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .18); font-size: 15px; }
.vz-col.bad { background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .35); }
.vz-col.bad b { color: #fda4af; }
.vz-col.good { background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .35); }
.vz-col.good b { color: #86efac; }
.vz-eq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 16px 0; }
.vz-term { display: flex; flex-direction: column; align-items: center; padding: 8px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); min-width: 84px; }
.vz-term b { font-size: 24px; color: var(--ac); }
.vz-term small { color: var(--muted); }
.vz-op { font-size: 26px; font-weight: 800; color: #fff; }
.vz-bars, .stock-chart { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 12px; height: 190px; margin: 16px 0 6px; padding-top: 20px; }
.vz-unit { position: absolute; top: 0; inset-inline-start: 0; color: var(--muted); }
.vz-bar { display: flex; flex-direction: column; align-items: center; height: 100%; width: 64px; gap: 4px; }
.vz-track { flex: 1; min-height: 0; width: 100%; display: flex; align-items: flex-end; }
.vz-bar small { min-height: 2.6em; }
.vz-fill {
  position: relative; width: 100%; height: var(--h); min-height: 6px; border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 85%, #fff), color-mix(in srgb, var(--ac) 70%, #000));
  animation: ac-grow .7s calc(var(--i, 0) * 100ms) both cubic-bezier(.3, 1.3, .5, 1); transform-origin: bottom;
}
.vz-fill b { position: absolute; top: -24px; left: 0; right: 0; text-align: center; font-size: 14px; }
.vz-fill.neg { background: linear-gradient(180deg, #fda4af, #e11d48); }
.vz-fill.mine { background: linear-gradient(180deg, #a5f3fc, #0891b2); }
.vz-bar small { color: var(--muted); font-size: 13px; text-align: center; line-height: 1.3; }
@keyframes ac-grow { from { transform: scaleY(0); } }
.vz-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0; }
.vz-chip { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--ac-line); max-width: 260px; animation: ac-in .5s calc(var(--i) * 90ms) both; }
.vz-chip small { color: var(--muted); line-height: 1.45; }
.vz-funnel { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px 0; }
.vz-fn { width: var(--w); text-align: center; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--ac) calc(70% - var(--i) * 12%), rgba(255, 255, 255, .08)); font-weight: 700; animation: ac-in .5s calc(var(--i) * 120ms) both; }
.vz-formula { text-align: center; font-size: 20px; font-weight: 800; padding: 14px; margin: 14px 0; border-radius: 16px; background: rgba(0, 0, 0, .2); border: 1px dashed var(--ac-line); }
.vz-formula mark { background: color-mix(in srgb, var(--ac) 35%, transparent); color: #fff; padding: 0 8px; border-radius: 8px; }
.vz-swatches { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 14px 0; }
.vz-swatches span { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.vz-swatches i { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.vz-table-wrap { overflow-x: auto; margin: 14px 0; }
.vz-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 14px; overflow: hidden; font-size: 15px; }
.vz-table th, .vz-table td { padding: 8px 12px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.vz-table th { background: color-mix(in srgb, var(--ac) 25%, rgba(0, 0, 0, .2)); }
.vz-table td { background: rgba(255, 255, 255, .03); }

/* ---------- Activities ---------- */
.sort-pool, .ord-pool { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 10px; border-radius: 16px; background: rgba(0, 0, 0, .18); }
.sort-item {
  font: inherit; font-size: 15.5px; font-weight: 700; color: #2a1a5e; background: #fff; cursor: pointer; text-align: start;
  padding: 8px 14px; border-radius: 12px; border: 0; box-shadow: 0 3px 0 #b6acec; transition: transform .1s, box-shadow .2s;
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.4;
}
.sort-item:hover { transform: translateY(-2px); }
.sort-item.sel { background: var(--ac); color: #2a1600; box-shadow: 0 0 0 3px #fff, 0 8px 18px -6px var(--ac); transform: scale(1.04); }
.sort-item small { flex-basis: 100%; font-weight: 600; font-size: 13.5px; opacity: .85; }
.sort-item.right { background: #dcfce7; box-shadow: 0 3px 0 #22c55e; color: #14532d; }
.sort-item.wrong { background: #ffe4e6; box-shadow: 0 3px 0 #f43f5e; color: #881337; }
.sort-buckets { display: grid; grid-template-columns: repeat(min(var(--n), 3), 1fr); gap: 10px; }
.sort-bucket {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-height: 110px; padding: 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .05); border: 2px dashed rgba(255, 255, 255, .2); transition: border-color .2s, background .2s; cursor: default;
}
.sort-bucket h4 { text-align: center; color: #ffe2b8; }
.sort-bucket.ready { border-color: var(--ac); background: var(--ac-soft); cursor: pointer; animation: ac-breathe 1.4s ease-in-out infinite; }
@keyframes ac-breathe { 50% { background: color-mix(in srgb, var(--ac) 26%, transparent); } }

.ch-list { display: flex; flex-direction: column; gap: 8px; }
.ch-opt {
  font: inherit; font-size: 16px; font-weight: 600; color: #fff; text-align: start; cursor: pointer; line-height: 1.5;
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); transition: background .2s, border-color .2s, transform .1s;
}
.ch-opt:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: var(--ac-line); }
.ch-opt:disabled { cursor: default; }
.ch-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-weight: 800; }
.ch-opt.right { background: rgba(74, 222, 128, .16); border-color: var(--ok); }
.ch-opt.right .ch-dot { background: var(--ok); color: #10230f; }
.ch-opt.wrong { background: rgba(251, 113, 133, .14); border-color: var(--no); animation: ac-shake .4s; }
.ch-opt.wrong .ch-dot { background: var(--no); color: #3a0a12; }
.ch-opt.meh { background: rgba(250, 204, 21, .13); border-color: var(--meh); }
.ch-opt.dim { opacity: .5; }
.ch-opt.picked { background: var(--ac-soft); border-color: var(--ac); }

.ord-seq { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.ord-seq li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-weight: 600; }
.ord-seq li > span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ac); color: #2a1600; font-weight: 800; }
.ord-seq li.ord-empty { background: none; border: 2px dashed rgba(255, 255, 255, .18); color: var(--muted); }
.ord-seq li.ord-empty > span { background: rgba(255, 255, 255, .12); color: #fff; }
.ord-seq li.right { background: rgba(74, 222, 128, .15); }
.ord-seq li.wrong { background: rgba(251, 113, 133, .15); }
.ord-seq li.wrong > span { background: var(--no); }

.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.rate-card { padding: 16px; }
.rate-facts { margin: 0 0 10px; padding-inline-start: 18px; color: #ddd6ff; font-size: 14.5px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .07); font-weight: 600; font-size: 15px; }
.rate-btns { display: flex; gap: 4px; direction: ltr; }
.rate-btns button { font: inherit; font-weight: 800; width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.rate-btns button.on { background: var(--ac); border-color: var(--ac); color: #2a1600; transform: scale(1.08); }
.rate-total { margin-top: 8px; text-align: center; color: var(--muted); }
.rate-total b { color: #fff; font-size: 20px; }

.calc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: start; }
.calc-inputs, .budget { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(0, 0, 0, .18); }
.calc-inputs label, .budget label, .stock-in, .wz-range { display: block; font-weight: 700; }
.calc-inputs b, .budget b, .stock-in b, .wz-range > b { color: var(--ac); font-size: 20px; }
.calc-out { display: flex; flex-direction: column; gap: 8px; }
.calc-row { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .05); z-index: 0; }
.calc-row i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); z-index: -1; transition: width .3s; }
.calc-row i.in { background: rgba(74, 222, 128, .22); }
.calc-row i.out { background: rgba(251, 113, 133, .2); }
.calc-total { font-size: 22px; font-weight: 800; text-align: center; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.calc-total.pos { background: rgba(74, 222, 128, .16); color: #bbf7d0; }
.calc-total.neg { background: rgba(251, 113, 133, .16); color: #fecdd3; }
.calc-tasks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.calc-tasks li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.calc-tasks li > i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); flex: none; }
.calc-tasks li.done { background: rgba(74, 222, 128, .13); color: #bbf7d0; }
.calc-tasks li.done .ac-svg { color: var(--ok); width: 20px; height: 20px; }
.stock-chart .vz-fill { --i: 0; }
.stock-in { margin-top: 10px; }

.brand-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.brand-form { display: flex; flex-direction: column; gap: 14px; }
.brand-colors, .brand-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-colors button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.brand-colors button.on { border-color: #fff; transform: scale(1.12); }
.brand-icons button { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .06); border: 2px solid transparent; }
.brand-icons button.on { border-color: var(--ac); background: var(--ac-soft); }
.brand-ic { width: 38px; height: 38px; object-fit: contain; }
.brand-promises { display: flex; flex-direction: column; gap: 6px; }
.brand-promises .ch-opt { font-size: 15px; padding: 8px 12px; }
.brand-preview {
  --bc: #ffb347; position: sticky; top: 90px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 26px 18px; border-radius: 26px; background: linear-gradient(160deg, color-mix(in srgb, var(--bc) 40%, #1b0f45), #160b3a);
  border: 2px solid var(--bc); box-shadow: 0 24px 40px -24px var(--bc);
}
.bp-logo { width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center; background: #fff; box-shadow: 0 8px 0 color-mix(in srgb, var(--bc) 60%, #000), 0 0 0 6px var(--bc); }
.bp-ic { width: 76px; height: 76px; object-fit: contain; }
.bp-name { font-size: 30px; margin-top: 10px; color: #fff; text-shadow: 0 3px 0 color-mix(in srgb, var(--bc) 50%, #000); }
.bp-promise { color: #f3edff; font-weight: 600; max-width: 260px; }

.budget-reserve { font-weight: 700; }
.budget-bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.budget-bar i { width: var(--w); transition: width .25s; }
.budget-bar .m, .budget-legend .m::before { background: #f59e0b; }
.budget-bar .k, .budget-legend .k::before { background: #ec4899; }
.budget-bar .r, .budget-legend .r::before { background: #38bdf8; }
.budget-legend { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--muted); margin-top: 8px; }
.budget-legend span { display: inline-flex; align-items: center; gap: 6px; }
.budget-legend span::before { content: ""; width: 12px; height: 12px; border-radius: 4px; }

.note-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.note-preview { margin: 14px 0; padding: 14px 18px; border-radius: 18px; background: #fffbea; color: #3b2a00; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); transform: rotate(-.6deg); }
.note-preview small { color: #8a6a1a; font-weight: 700; }
.note-preview p { font-size: 18px; font-weight: 700; margin: 4px 0 0; }
.note-checks { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, .18); }
.note-checks label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.persona { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.persona-groups { display: flex; flex-direction: column; gap: 14px; }
.persona-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.persona-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; padding-top: 22px; border-radius: 22px; background: #fff; color: #2a1a5e; box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .7); }
.persona-card > b { font-size: 20px; }
.persona-card span { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 12px; background: #f3efff; font-weight: 700; }
.persona-card span small { color: #6a5aa8; font-weight: 600; }
.persona-fizo { position: absolute; top: -26px; inset-inline-end: 8px; width: 70px; height: auto; }

.dlg { display: flex; flex-direction: column; gap: 12px; }
.dlg-bubble { display: flex; align-items: flex-start; gap: 10px; }
.dlg-bubble p { margin: 0; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: #fff; color: #2a1a5e; font-weight: 600; font-size: 17px; }
.dlg-ic { width: 46px; height: 46px; object-fit: contain; flex: none; }

.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.quiz-dots { display: flex; gap: 6px; }
.quiz-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.quiz-dots i.d { background: var(--ac); }
.quiz-dots i.c { background: #fff; box-shadow: 0 0 0 3px var(--ac-soft); }
.quiz-q { font-size: 21px; margin-bottom: 12px; line-height: 1.45; }
.quiz-end { text-align: center; padding: 10px; }
.quiz-end h3 { font-size: 44px; color: var(--ac); margin: 4px 0; }
.quiz-end.pass h3 { color: var(--ok); }
.quiz-end .ac-actions { justify-content: center; }
.quiz-fizo { width: 130px; height: auto; animation: hover 3s ease-in-out infinite; }

/* ---------- Stage 1: passion ---------- */
.pz-progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pz-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ac), #ffd28a); transition: width .5s; }
.pz-progress + small { display: block; text-align: center; margin: 6px 0 12px; }
.pz-scene { text-align: center; animation: ac-in .45s both; }
.pz-scene > p { font-size: 18px; color: #ece6ff; max-width: 680px; margin: 8px auto 18px; }
.pz-options { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pz-options > .pz-opt { flex: 0 0 calc((100% - (var(--cols) - 1) * 12px) / var(--cols)); }
.pz-opt, .pz-big {
  font: inherit; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 16px 12px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .14);
  font-size: 16px; font-weight: 700; line-height: 1.45; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), border-color .2s, background .2s;
  animation: ac-in .45s calc(var(--i, 0) * 60ms) both;
}
.pz-opt:hover, .pz-big:hover { transform: translateY(-4px); border-color: var(--ac-line); }
.pz-opt.on, .pz-big.chosen { border-color: var(--ac); background: var(--ac-soft); box-shadow: 0 14px 28px -16px var(--ac); transform: scale(1.03); }
.pz-ic { width: 76px; height: 76px; object-fit: contain; }
.pz-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; max-width: 720px; margin: 0 auto 10px; }
.pz-big { padding: 22px 14px; font-size: 18px; }
.pz-big-ic { width: 110px; height: 110px; object-fit: contain; }
.pz-or { font-size: 22px; font-weight: 800; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ac); color: #2a1600; }
.pz-map { position: relative; border-radius: 22px; overflow: hidden; max-width: 960px; margin: 0 auto; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); }
.pz-map img { display: block; width: 100%; height: auto; }
.pz-spot {
  position: absolute; transform: translate(-50%, -50%); font: inherit; cursor: pointer; border: 0; padding: 0; background: none;
  display: flex; flex-direction: column; align-items: center;
}
.pz-spot::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--ac);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ac) 70%, transparent); animation: ac-ping 1.8s infinite;
}
.pz-spot span { margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(20, 10, 51, .85); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.pz-spot.on::before { background: var(--ok); border-color: #fff; animation: none; }
.pz-spot.on span { background: var(--ok); color: #10230f; }
@keyframes ac-ping { 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.pz-nav { justify-content: center; margin-top: 18px; }

.pz-report { display: flex; flex-direction: column; gap: 16px; }
.pzr-head { display: flex; align-items: center; gap: 18px; background: linear-gradient(120deg, rgba(255, 107, 107, .2), rgba(255, 179, 71, .12)); }
.pzr-fizo { width: 120px; height: auto; flex: none; }
.pzr-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pzr-int { position: relative; text-align: center; border-top: 5px solid var(--c); animation: ac-in .6s calc(var(--i) * 150ms) both; }
.pzr-rank { position: absolute; top: 12px; inset-inline-start: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #1b0d00; font-weight: 800; }
.pzr-ic { width: 96px; height: 96px; object-fit: contain; }
.pzr-int p { color: #ddd6ff; font-size: 15px; }
.pzr-skills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; }
.pzr-skills b, .pzr-ideas b { flex-basis: 100%; font-size: 14px; color: color-mix(in srgb, var(--c) 60%, #fff); }
.pzr-skills span { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, transparent); font-size: 14px; font-weight: 700; }
.pzr-ideas ul { text-align: start; margin: 4px 0 0; padding-inline-start: 18px; font-size: 15px; }
.pzr-bar { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 10px; margin: 6px 0; }
.pzr-bar span { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.pzr-bar i { display: block; height: 14px; width: var(--w); min-width: 4px; border-radius: 999px; background: var(--c); animation: ac-grow-x .8s both; transform-origin: right; }
@keyframes ac-grow-x { from { transform: scaleX(0); } }
.pzr-mini { width: 30px; height: 30px; object-fit: contain; }
.pzr-worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pzr-world { position: relative; border-radius: 18px; overflow: hidden; display: block; transition: transform .2s; }
.pzr-world:hover { transform: translateY(-4px); }
.pzr-world img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pzr-world b { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(0deg, rgba(10, 5, 30, .9), transparent); text-align: center; }

/* ---------- Stage 2: business worlds ---------- */
.aw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.aw-card {
  position: relative; display: block; border-radius: 26px; overflow: hidden; isolation: isolate;
  border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 18px 36px -22px var(--c);
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); animation: ac-in .6s calc(var(--i) * 70ms) both;
}
.aw-card:hover { transform: translateY(-6px) scale(1.02); }
.aw-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.aw-card b { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 14px 12px; font-size: 21px; text-align: center; background: linear-gradient(0deg, color-mix(in srgb, var(--c) 30%, rgba(10, 5, 30, .95)), transparent); }
.aw-rec, .aw-done { position: absolute; top: 10px; padding: 2px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; font-style: normal; }
.aw-rec { inset-inline-start: 10px; background: var(--yellow); color: #3b2300; }
.aw-done { inset-inline-end: 10px; background: var(--ok); color: #10230f; display: inline-flex; gap: 4px; align-items: center; }
.aw-card.done { border-color: var(--ok); }

.awd-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: center; }
.awd-hero img { width: 100%; border-radius: 26px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 60%, transparent), 0 24px 44px -24px var(--ac); }
.awd-hero p { font-size: 18px; color: #ece6ff; }
.awd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.awd-ex, .awd-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.awd-ex li { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.awd-ex li span { color: var(--muted); font-size: 15px; }
.awd-list li { padding: 7px 12px 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border-inline-start: 4px solid var(--ac); }
.awd-act h3 { display: flex; align-items: center; gap: 8px; }
.awd-act h3 .ac-svg { color: var(--ok); }

/* ---------- Stage 3: business school ---------- */
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.as-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 16px 16px;
  border-radius: 26px; background: linear-gradient(165deg, color-mix(in srgb, var(--c) 28%, transparent), rgba(255, 255, 255, .03) 75%);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1);
  animation: ac-in .6s calc(var(--i) * 60ms) both;
}
.as-card:hover { transform: translateY(-6px); box-shadow: 0 20px 36px -22px var(--c); }
.as-card.done { box-shadow: inset 0 0 0 2px var(--ok); }
.as-key { position: absolute; top: 12px; inset-inline-start: 14px; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #1b0d00; font-weight: 800; }
.as-ic { width: 92px; height: 92px; object-fit: contain; }
.as-card b { font-size: 21px; }
.as-card small { color: var(--muted); line-height: 1.45; flex: 1; }
.as-prog { width: 80%; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 8px; }
.as-prog i { display: block; height: 100%; background: var(--c); border-radius: inherit; }
.as-card em { font-style: normal; font-weight: 800; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.as-card.done em { color: var(--ok); }

.am-head { display: flex; align-items: center; gap: 16px; }
.am-ic { width: 96px; height: 96px; object-fit: contain; flex: none; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .4)); }
.am-head small { color: var(--ac); font-weight: 800; }
.am-head p { color: var(--muted); font-size: 17px; }
.am-panel { scroll-margin-top: 80px; }
.am-story { text-align: center; animation: ac-in .4s both; }
.am-card-n { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--ac-soft); color: #ffe2b8; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.am-story h2 { margin-bottom: 8px; }
.am-story-body { max-width: 760px; margin: 0 auto; }
.am-story-body > p { font-size: 18.5px; line-height: 1.75; color: #f1ecff; }
.am-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.am-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .2); cursor: pointer; }
.am-dots button.on { background: var(--ac); width: 30px; border-radius: 999px; }
.am-story .ac-actions { justify-content: center; }
.am-sub { margin-bottom: 12px; }
.am-sim { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: 18px; background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .4); }
.am-sim p { margin: 0; color: #dbeafe; }
.am-sim-ic { width: 54px; height: 54px; object-fit: contain; flex: none; }

/* ---------- Stage 4: wizard ---------- */
.wz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.wz-step {
  font: inherit; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px;
  border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
}
.wz-step > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .12); }
.wz-step small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.wz-step.on { background: var(--ac-soft); border-color: var(--ac); }
.wz-step.on > span { background: var(--ac); color: #2a1600; }
.wz-step.done > span { background: var(--ok); color: #10230f; }
.wz-step:disabled { opacity: .4; cursor: not-allowed; }
.wz-panel { scroll-margin-top: 80px; animation: ac-in .35s both; }
.wz-head { margin-bottom: 16px; }
.wz-head > span { color: var(--ac); font-weight: 800; }
.wz-head p { color: #ddd6ff; font-size: 17px; }
.wz-sub { margin: 16px 0 8px; color: #ffe2b8; }
.wz-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.wz-cat { position: relative; padding: 0; border: 3px solid transparent; border-radius: 20px; overflow: hidden; cursor: pointer; background: #000; color: #fff; font: inherit; transition: transform .2s; }
.wz-cat:hover { transform: translateY(-3px); }
.wz-cat img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .9; }
.wz-cat b { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 8px 8px; background: linear-gradient(0deg, rgba(10, 5, 30, .95), transparent); font-size: 16px; }
.wz-cat.on { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }
.wz-cat .aw-rec { top: 8px; inset-inline-start: 8px; }
.wz-ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.wz-idea, .wz-seg, .wz-opt {
  font: inherit; color: #fff; text-align: start; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 14px;
  border-radius: 18px; background: rgba(255, 255, 255, .05); border: 2px solid rgba(255, 255, 255, .12); transition: border-color .2s, background .2s, transform .15s;
}
.wz-idea:hover, .wz-seg:hover, .wz-opt:hover:not(:disabled) { border-color: var(--ac-line); }
.wz-idea.on, .wz-seg.on, .wz-opt.on { border-color: var(--ac); background: var(--ac-soft); }
.wz-idea b { font-size: 18px; }
.wz-idea > span { color: #ddd6ff; font-size: 15px; }
.wz-idea small { display: block; color: #ffd28a; font-weight: 700; }
.wz-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.wz-meta i { font-style: normal; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.ac .fit.hi { color: #bbf7d0; }
.ac .fit.mid { color: #fef08a; }
.ac .fit.lo { color: #fecdd3; }
.wz-meta i.fit.hi { background: rgba(74, 222, 128, .18); }
.wz-meta i.fit.mid { background: rgba(250, 204, 21, .16); }
.wz-meta i.fit.lo { background: rgba(251, 113, 133, .16); }
.wz-segs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.wz-seg { align-items: center; text-align: center; }
.wz-seg small, .wz-opt small { color: var(--muted); line-height: 1.45; }
.wz-seg-ic { width: 64px; height: 64px; object-fit: contain; }
.wz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.wz-opts.small { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 8px; }
.wz-opts.small .wz-opt { padding: 9px 12px; gap: 2px; }
.wz-opts.small .wz-opt b { font-size: 15.5px; }
.wz-opt:disabled { opacity: .4; cursor: not-allowed; }
.wz-idea-emo { font-style: normal; font-size: 40px; line-height: 1; }
.wz-nav { justify-content: space-between; margin-top: 18px; }
.wz-nav [data-fwd], .wz-nav [data-launch] { margin-inline-start: auto; }

/* ---------- Stage 4: dashboard ---------- */
.bz-brand {
  --bc: #ffb347; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 26px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--bc) 35%, #1b0f45), #170c3c 70%); border: 1px solid color-mix(in srgb, var(--bc) 60%, transparent);
}
.bz-brand .bp-logo { width: 72px; height: 72px; border-radius: 22px; flex: none; box-shadow: 0 5px 0 color-mix(in srgb, var(--bc) 60%, #000), 0 0 0 4px var(--bc); }
.bz-brand .bp-ic { width: 54px; height: 54px; }
.bz-brand h1 { font-size: clamp(26px, 3.4vw, 38px); }
.bz-brand p { color: #ece6ff; margin: 0; }
.bz-weekno { margin-inline-start: auto; text-align: center; padding: 6px 16px; border-radius: 16px; background: rgba(0, 0, 0, .25); font-weight: 700; }
.bz-weekno b { display: block; font-size: 30px; line-height: 1; color: var(--bc); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi {
  font: inherit; color: #fff; text-align: start; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px;
  border-radius: 18px; background: var(--ac-card); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .2s, transform .15s;
}
.kpi:hover { border-color: var(--ac-line); transform: translateY(-2px); }
.kpi-ic { width: 46px; height: 46px; object-fit: contain; flex: none; }
.kpi > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.kpi small { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.kpi b { font-size: 21px; line-height: 1.3; overflow-wrap: anywhere; }
.kpi b small { font-size: 13px; }
.kpi .kpi-sub { font-size: 12px; font-weight: 600; }
.kpi-gauge { display: block; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: 4px; }
.kpi-gauge i { display: block; height: 100%; background: var(--g); border-radius: inherit; }
.kpi-help { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .4); animation: ac-pop .3s both; }
.kpi-help p { margin: 0; }
.bz-totals { text-align: center; font-size: 15px; }
.bz-report { scroll-margin-top: 80px; }
.bz-report.first { border: 2px solid var(--ac); box-shadow: 0 0 0 6px var(--ac-soft), 0 24px 50px -26px var(--ac); }
.bz-report h4 { margin-top: 18px; color: #ffe2b8; }
.bz-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.bz-week > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 6px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.bz-week small { color: var(--muted); font-size: 13px; }
.bz-week b { font-size: 22px; }
.bz-week .pos { background: rgba(74, 222, 128, .14); }
.bz-week .neg { background: rgba(251, 113, 133, .14); }
.bz-break { margin-top: 10px; padding: 8px 14px; border-radius: 14px; background: rgba(0, 0, 0, .18); }
.bz-break summary { cursor: pointer; font-weight: 700; }
.bz-break ul { margin: 6px 0 0; padding-inline-start: 20px; color: #ddd6ff; }
.bz-voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bz-voice { position: relative; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff; color: #2a1a5e; }
.bz-voice b { font-size: 14px; color: #6a5aa8; }
.bz-voice p { margin: 2px 0 0; font-weight: 600; }
.bz-voice.good { box-shadow: inset 4px 0 0 #22c55e; }
.bz-voice.bad { box-shadow: inset 4px 0 0 #f43f5e; }
.bz-voice.info { box-shadow: inset 4px 0 0 #f59e0b; }
.bz-insights { display: flex; flex-direction: column; gap: 8px; }
.bz-ins { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.bz-ins > .ac-svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; margin-top: 2px; }
.bz-ins p { margin: 2px 0 0; color: #ddd6ff; font-size: 15px; }
.bz-ins.good > .ac-svg { background: var(--ok); color: #10230f; }
.bz-ins.bad > .ac-svg { background: var(--no); color: #3a0a12; }
.bz-ins.info > .ac-svg { background: var(--meh); color: #3b2300; }
.bz-chart .bzc { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 10px; overflow-x: auto; }
.bzc-w { flex: 1; min-width: 44px; display: flex; flex-direction: column; align-items: center; height: 100%; gap: 2px; }
.bzc-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bzc-bars i { width: 40%; max-width: 22px; height: var(--h); min-height: 3px; border-radius: 6px 6px 2px 2px; animation: ac-grow .6s both; transform-origin: bottom; }
.bzc-bars i.in { background: #f59e0b; }
.bzc-bars i.out { background: #38bdf8; }
.bzc-w b { font-size: 13px; }
.bzc-w small { color: var(--muted); font-size: 12px; }
.bz-chart .budget-legend .m::before { background: #f59e0b; }
.bz-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.bz-crisis { display: flex; align-items: center; gap: 16px; border: 2px solid var(--no); background: linear-gradient(120deg, rgba(251, 113, 133, .18), rgba(255, 255, 255, .03)); }
.bz-crisis-fizo { width: 110px; height: auto; flex: none; }
.bz-weekno + .bz-weekno { margin-inline-start: 0; }

/* ---------- Stage 4: the shop game ---------- */
.sg-scene {
  --bc: #ffb347; position: relative; height: clamp(300px, 36vw, 400px); border-radius: 26px; overflow: hidden; scroll-margin-top: 70px;
  background: linear-gradient(180deg, #2a1b6e 0%, #4b3aa3 78%, #6b5bc0 78.5%, #5a4aa8 100%); border: 1px solid rgba(255, 255, 255, .14);
}
.sg-shop {
  position: absolute; inset: 16px 5% 17% 5%; display: flex; flex-direction: column; border-radius: 18px 18px 6px 6px;
  background: linear-gradient(180deg, #fff6e6, #f3e3c8); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .7);
}
.sg-awning {
  position: relative; z-index: 1; height: 38px; flex: none; border-radius: 16px 16px 0 0;
  background: repeating-linear-gradient(90deg, var(--bc) 0 34px, #fffaf0 34px 68px);
}
.sg-awning::after {
  content: ''; position: absolute; inset-inline: 0; top: 100%; height: 14px;
  background: radial-gradient(circle at 17px 0, var(--bc) 16px, transparent 17px) 0 0 / 68px 14px repeat-x,
    radial-gradient(circle at 51px 0, #fffaf0 16px, transparent 17px) 0 0 / 68px 14px repeat-x;
}
.sg-sign {
  position: absolute; z-index: 2; top: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: 80%;
  padding: 4px 16px 4px 6px; border-radius: 999px; background: #241556; color: #fff; border: 3px solid var(--bc); box-shadow: 0 6px 0 rgba(0, 0, 0, .25); white-space: nowrap;
}
.sg-sign b { font-size: 19px; overflow: hidden; text-overflow: ellipsis; }
.sg-sign-ic { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.sg-front { flex: 1; display: flex; gap: 12px; padding: 34px 14px 8px; min-height: 0; }
.sg-window {
  flex: 1; border-radius: 12px; padding: 8px; min-width: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(56, 189, 248, .28), rgba(56, 189, 248, .14)); border: 5px solid #b7845a;
}
.sg-shelf {
  position: relative; height: 100%; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 2px 4px; padding: 2px 4px;
  background: repeating-linear-gradient(180deg, transparent 0 42px, #a0704a 42px 46px);
}
.sg-shelf i { font-style: normal; font-size: 30px; line-height: 40px; height: 46px; animation: sg-drop .35s both; }
.sg-shelf .sg-item { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.sg-shelf em { font-style: normal; font-weight: 800; color: #3b2300; align-self: center; }
.sg-shelf-n { margin-inline-start: auto; padding: 0 10px; border-radius: 999px; background: #241556; color: #fff; font-size: 14px; white-space: nowrap; }
.sg-empty { margin: auto; color: #6b4a2a; font-weight: 800; }
.sg-shelf.shake { animation: ac-shake .4s; }
.sg-door {
  width: 18%; min-width: 56px; flex: none; display: grid; place-items: center; border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, #8a5a36, #a87048); border: 4px solid #6e4528;
}
.sg-door span { padding: 2px 10px; border-radius: 8px; background: #fb7185; color: #fff; font-weight: 800; font-size: 14px; transform: rotate(-4deg); }
.sg-scene.open .sg-door span { background: #22c55e; }
.sg-counter { height: 30px; flex: none; display: flex; align-items: center; gap: 8px; padding-inline: 14px; background: #b7845a; border-radius: 0 0 6px 6px; }
.sg-board { padding: 2px 12px; border-radius: 10px; background: #1f2937; color: #fef3c7; font-weight: 800; border: 2px solid #fef3c7; transform: translateY(-14px); box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.sg-board b { font-size: 20px; }
.sg-street { position: absolute; inset: auto 0 0 0; height: 30%; direction: ltr; }
.sg-cust {
  position: absolute; bottom: 6px; left: -14%; height: 165%; aspect-ratio: 9 / 20; transform: translateX(-50%); padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: #fff; transition: left 1s cubic-bezier(.3, .1, .35, 1);
}
.sg-cust::before { content: ''; position: absolute; left: 4%; right: 4%; bottom: -4px; height: 12px; border-radius: 50%; background: rgba(0, 0, 0, .3); }
.sg-person { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; pointer-events: none; transition: scale .2s; }
.sg-cust.walk .sg-person { animation: sg-walk .38s ease-in-out infinite alternate; }
.sg-cust.wait { z-index: 2; }
.sg-cust.wait::before { left: -14%; right: -14%; bottom: -8px; height: 20px; background: radial-gradient(closest-side, var(--bc), transparent); }
.sg-cust.wait .sg-person { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px var(--bc)); animation: sg-bob 1.2s ease-in-out infinite; }
.sg-cust.wait:hover .sg-person, .sg-cust.wait:focus-visible .sg-person { scale: 1.06; }
.sg-cust.out { pointer-events: none; }
.sg-item { height: 1.3em; width: auto; vertical-align: -.3em; }
.sg-bub .sg-item { height: 1.7em; vertical-align: -.5em; }
.sg-bub {
  position: absolute; z-index: 1; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); white-space: nowrap; direction: rtl;
  padding: 3px 10px; border-radius: 14px; background: #fff; color: #2a1a5e; font-weight: 800; font-size: 15px; box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}
.sg-bub.happy { background: #dcfce7; color: #14532d; }
.sg-bub.sad { background: #ffe4e6; color: #881337; }
.sg-pat { position: absolute; left: 4px; right: 4px; bottom: calc(100% + 4px); height: 6px; border-radius: 999px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.sg-pat i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #fb7185, #facc15 40%, #4ade80); }
@keyframes sg-bob { 50% { transform: translateY(-4px); } }
@keyframes sg-walk { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-4px) rotate(2deg); } }
@keyframes sg-drop { from { transform: translateY(-14px) scale(.6); opacity: 0; } }

.sg-say { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 20px; background: rgba(255, 211, 77, .09); border: 1px dashed rgba(255, 211, 77, .45); }
.sg-say p { margin: 0; line-height: 1.6; }
.sg-fizo { width: 70px; height: auto; flex: none; }
.sg-tools { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.sg-batch { color: #ece6ff; }
.sg-batch b { color: var(--ac); }
.sg-recipe { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.sg-recipe > i { font-style: normal; color: var(--muted); font-weight: 800; }
.sg-slot {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 30px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 2px dashed rgba(255, 255, 255, .25); filter: grayscale(1); opacity: .45;
}
.sg-slot.next { opacity: 1; filter: none; border-style: solid; border-color: var(--ac); animation: ac-ping 1.2s infinite; box-shadow: 0 0 0 0 var(--ac); }
.sg-slot.done { opacity: 1; filter: none; border-style: solid; border-color: var(--ok); background: rgba(74, 222, 128, .15); }
.sg-slot.out { display: flex; align-items: center; white-space: nowrap; width: auto; padding: 0 10px; font-size: 22px; font-weight: 800; opacity: 1; filter: none; border-style: solid; border-color: var(--ac-line); }
.sg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sg-stepbtn {
  font: inherit; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); border: 2px solid rgba(255, 255, 255, .18); box-shadow: 0 4px 0 rgba(0, 0, 0, .3);
  transition: transform .12s;
}
.sg-stepbtn span { font-size: 34px; line-height: 1.1; }
.sg-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.sg-var {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 16px; cursor: pointer; text-align: center;
  background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .14); color: inherit; font: inherit; transition: transform .15s, border-color .15s;
}
.sg-var .sg-item { height: 64px; vertical-align: 0; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.sg-var b { font-size: 14.5px; line-height: 1.35; }
.sg-var small { font-size: 12px; color: var(--muted); }
.sg-var.on { border-color: var(--ac); background: rgba(255, 211, 77, .12); }
.sg-var:hover:not(:disabled):not(.on) { transform: translateY(-2px); border-color: rgba(255, 255, 255, .35); }
.sg-var:disabled { opacity: .4; cursor: not-allowed; }
.sg-var { position: relative; }
.sg-var-n {
  position: absolute; top: 6px; inset-inline-start: 6px; min-width: 24px; padding: 1px 6px; border-radius: 99px; font-style: normal;
  font-size: 12.5px; font-weight: 800; background: var(--ac); color: #2a1f00; box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.wz-sub small { font-size: 12px; font-weight: 600; }
.sg-live .sg-menu { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.sg-live .sg-var { padding: 6px 4px; gap: 2px; }
.sg-live .sg-var .sg-item { height: 44px; }
.sg-live .sg-var b { font-size: 12.5px; }
.sg-live .sg-var small { display: none; }
.sg-soldby { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 12px; font-weight: 700; }
.sg-soldby span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.sg-soldby b { color: var(--ac); }
.sg-stepbtn small { font-size: 13.5px; font-weight: 700; color: #ece6ff; text-align: center; }
.sg-stepbtn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.sg-stepbtn:disabled { opacity: .35; cursor: not-allowed; }
.sg-stepbtn.shake { animation: ac-shake .4s; border-color: var(--no); }
.sg-hint { text-align: center; font-size: 14.5px; margin-bottom: 0; }
.sg-tag { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 10px; }
.sg-tag > b { font-size: 40px; line-height: 1; min-width: 70px; text-align: center; padding: 8px 14px; border-radius: 16px; background: #fef3c7; color: #3b2300; box-shadow: 0 5px 0 #d6a65a; }
.sg-tag > small { color: var(--muted); }
.sg-pm {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; font: inherit; font-size: 28px; font-weight: 800; line-height: 1;
  background: var(--ac); color: #2a1600; box-shadow: 0 4px 0 color-mix(in srgb, var(--ac) 55%, #000);
}
.sg-pm:disabled { opacity: .35; cursor: not-allowed; }
.sg-mood { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.sg-mood span { font-size: 34px; }
.sg-mood p { margin: 0; font-weight: 700; }
.sg-margin { font-size: 15px; }
.sg-ads summary { cursor: pointer; font-weight: 700; }
.sg-ads summary small { color: var(--muted); }
.sg-ads[open] summary { margin-bottom: 8px; }
.sg-open { font-size: 22px; }
.sg-ledger > summary { cursor: pointer; font-weight: 800; font-size: 18px; }
.sg-ledger[open] > summary { margin-bottom: 14px; }
.sg-ledger { display: block; }
.sg-ledger > * + * { margin-top: 14px; }
.ac-body.sg-live .sg-ledger, .ac-body.sg-live .bz-links { display: none; }
.sg-hud { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) auto; gap: 8px; align-items: stretch; }
.sg-hud-time, .sg-hud-box { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; border-radius: 16px; background: var(--ac-card); border: 1px solid rgba(255, 255, 255, .12); }
.sg-hud small { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.sg-hud-box b { font-size: 26px; line-height: 1.1; }
.sg-bar { display: block; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: 6px; }
.sg-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #facc15, var(--ac)); }
.sg-speed { align-self: center; }
.sg-tip { text-align: center; font-weight: 800; font-size: 17px; margin: 0; padding: 8px 14px; border-radius: 14px; background: rgba(74, 222, 128, .12); animation: ac-pop .3s both; }
.sg-tip.bad { background: rgba(251, 113, 133, .14); }
.sg-sum { text-align: center; border: 2px solid var(--ac); box-shadow: 0 0 0 6px var(--ac-soft); scroll-margin-top: 80px; animation: ac-pop .4s both; }
.sg-stars { display: flex; justify-content: center; gap: 6px; margin: 6px 0 12px; }
.sg-stars span { color: rgba(255, 255, 255, .2); }
.sg-stars span .ac-svg { width: 46px; height: 46px; }
.sg-stars span.on { color: #facc15; animation: ac-pop .5s both; }
.sg-stars span.on:nth-child(2) { animation-delay: .15s; }
.sg-stars span.on:nth-child(3) { animation-delay: .3s; }
.sg-sum-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sg-sum-grid > div { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.sg-sum-grid > div.bad { background: rgba(251, 113, 133, .12); }
.sg-sum-grid span { font-size: 30px; }
.sg-sum-grid b { font-size: 26px; }
.sg-sum-grid small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.sg-profit { font-size: 20px; font-weight: 800; margin-top: 14px; }
.sg-profit small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
body > .sg-fly { position: fixed; z-index: 60; pointer-events: none; font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); white-space: nowrap; }
.sg-coin { display: inline-block; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff7c2, #facc15 45%, #b7791f); box-shadow: 0 0 0 2px #92400e; }

/* ---------- Stage 5: challenges ---------- */
.chl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chl-card {
  font: inherit; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 16px 12px; border-radius: 22px; background: var(--ac-card); border: 1px solid var(--ac-line); transition: transform .2s;
  animation: ac-in .5s calc(var(--i) * 60ms) both;
}
.chl-card:hover:not(:disabled) { transform: translateY(-4px); }
.chl-card:disabled { opacity: .45; cursor: not-allowed; }
.chl-card b { font-size: 17px; }
.chl-card small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.chl-card.done { border-color: var(--ok); }
.chl-card.done small { color: #bbf7d0; display: inline-flex; gap: 4px; align-items: center; }
.chl-ic { width: 60px; height: 60px; object-fit: contain; }
.chl-play { scroll-margin-top: 80px; display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--ac-line); }
.chl-top { display: flex; align-items: center; gap: 16px; }
.chl-top p { font-size: 17px; color: #ece6ff; }
.chl-big { width: 90px; height: 90px; object-fit: contain; flex: none; }
.chl-delta { max-width: 460px; margin: 10px auto; }
.chl-lesson { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 18px; background: rgba(139, 92, 255, .14); border: 1px solid rgba(139, 92, 255, .45); }
.chl-lesson p { margin: 0; }

/* ---------- Stage 6: grow ---------- */
.gr-goals ul { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.gr-goals li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-weight: 600; font-size: 15px; }
.gr-goals li span { flex: 1; }
.gr-goals li.done { background: rgba(74, 222, 128, .14); }
.gr-goals li.done .ac-svg { color: var(--ok); }
.gr-goal-ic { width: 34px; height: 34px; object-fit: contain; flex: none; }
.gr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gr-card { display: flex; flex-direction: column; gap: 6px; }
.gr-card p { font-size: 15px; color: #ddd6ff; margin: 0; }
.gr-card .btn { margin-top: auto; align-self: flex-start; }
.gr-card.owned { border-color: rgba(74, 222, 128, .5); }
.gr-top { display: flex; align-items: center; gap: 10px; }
.gr-ic { width: 58px; height: 58px; object-fit: contain; flex: none; }
.gr-cost { color: #ffd28a; font-size: 13.5px; font-weight: 700; }
.gr-risk { color: #fecdd3 !important; }
.gr-owned { display: inline-flex; align-items: center; gap: 6px; color: #bbf7d0; font-weight: 800; font-size: 14px; }
.gr-choice { scroll-margin-top: 80px; border: 2px solid var(--ac-line); }

/* ---------- Home portal ---------- */
.portal-academy .p-emo { display: grid; place-items: center; }
.p-art { width: 96px; height: 96px; object-fit: contain; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ach-path { grid-template-columns: repeat(2, 1fr); }
  .ach-learn { grid-template-columns: repeat(2, 1fr); }
  .ach-badges { grid-template-columns: repeat(4, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .chl-grid { grid-template-columns: repeat(2, 1fr); }
  .pzr-top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ach-hero { grid-template-columns: 1fr; min-height: 0; }
  .ach-hero::before { background: linear-gradient(0deg, rgba(20, 10, 51, .96) 30%, rgba(20, 10, 51, .55) 70%, rgba(20, 10, 51, .2)); }
  .ach-copy { padding-top: 200px; }
  .ach-guide { flex-direction: row; align-items: flex-end; gap: 8px; padding: 0 16px; order: -1; position: absolute; top: 12px; inset-inline: 0; }
  .ach-bubble { font-size: 14.5px; padding: 10px 14px; }
  .ach-bubble::after { display: none; }
  .ach-fizo { width: 96px; margin: 0; }
  .ach-path, .ach-two, .awd-hero, .awd-grid, .calc, .brand-wrap, .persona, .wz-review, .bz-plan-grid, .vz-compare { grid-template-columns: 1fr; }
  .ach-badges { grid-template-columns: repeat(3, 1fr); }
  .bz-week { grid-template-columns: repeat(3, 1fr); }
  .bz-voices { grid-template-columns: 1fr; }
  .wz-price { grid-template-columns: repeat(2, 1fr); }
  .wz-sum { grid-template-columns: 1fr; }
  .sort-buckets { grid-template-columns: 1fr; }
  .pz-duel { grid-template-columns: 1fr; }
  .pz-or { margin: 0 auto; }
  .pzr-bar { grid-template-columns: 1fr; gap: 2px; }
  .brand-preview { position: static; order: -1; }
  .ac-locked, .pzr-head, .bz-crisis, .chl-top, .am-head { flex-direction: column; text-align: center; }
  .pz-spot span { font-size: 11.5px; padding: 2px 7px; }
  .pz-spot::before { width: 20px; height: 20px; border-width: 4px; }
  .sg-tools { grid-template-columns: 1fr; }
  .sg-hud { grid-template-columns: repeat(3, 1fr); }
  .sg-hud-time { grid-column: 1 / -1; }
  .sg-speed { grid-column: 1 / -1; justify-self: center; }
  .sg-sum-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .ac { padding-inline: 12px; }
  .ach-learn, .chl-grid { grid-template-columns: 1fr 1fr; }
  .ach-mod-ic { width: 54px; height: 54px; }
  .ach-ring { width: 70px; height: 70px; }
  .ach-ring > span { width: 60px; height: 60px; }
  .ach-stage-ic { width: 46px; height: 46px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; }
  .kpi-ic { width: 34px; height: 34px; }
  .kpi b { font-size: 18px; }
  .bz-brand { flex-wrap: wrap; }
  .wz-steps { gap: 4px; }
  .wz-step small { font-size: 11px; }
  .pz-options { --cols: 2 !important; }
  .pz-ic { width: 60px; height: 60px; }
  .btn.big { font-size: 19px; padding: 12px 22px; }
  .ac-step { font-size: 14.5px; padding: 6px 12px 6px 8px; }
  .sg-scene { height: 300px; }
  .sg-shop { inset: 12px 3% 17% 3%; }
  .sg-sign { top: 18px; }
  .sg-sign b { font-size: 16px; }
  .sg-sign-ic { width: 28px; height: 28px; }
  .sg-front { padding: 30px 8px 6px; gap: 8px; }
  .sg-shelf { background: repeating-linear-gradient(180deg, transparent 0 30px, #a0704a 30px 34px); }
  .sg-shelf i { font-size: 20px; line-height: 30px; height: 34px; }
  .sg-cust { height: 150%; }
  .sg-bub { font-size: 13px; padding: 2px 8px; }
  .sg-fizo { width: 52px; }
  .sg-say { padding: 8px 12px; font-size: 15px; }
  .sg-stepbtn span { font-size: 28px; }
  .sg-menu { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
  .sg-var { padding: 8px 4px; }
  .sg-var .sg-item { height: 52px; }
  .sg-var b { font-size: 13px; }
  .sg-var small { font-size: 11px; }
  .sg-stepbtn small { font-size: 12.5px; }
  .sg-hud-box b { font-size: 22px; }
  .sg-sum-grid { grid-template-columns: repeat(2, 1fr); }
  .sg-tag > b { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac *, .ac *::before, .ac *::after { animation: none !important; transition: none !important; }
}
