/* Be Unicorn (021 Originals): see unicorn.js. Dark 021 shell and editorial.css type; the decision preview (.bu-game)
 * borrows the game's own warm paper palette (as in the gameplay screenshot) and carries its Illustrative tag. */
html[data-ed="unicorn"] {
  --bu-paper: #f3eee5;
  --bu-paper-2: #e6dfd2;
  --bu-ink: #26231f;
  --bu-ink-2: #4f4a42;
  --bu-ink-3: #6f685d;
  --bu-accent: #e8875a;
}
[data-ed="unicorn"] .ed-block[id], [data-ed="unicorn"] .ed-anchor { scroll-margin-top: calc(var(--ed-top) + 24px); }
.ed-anchor { display: block; height: 0; overflow: hidden; }
/* one ending: the page closes on the App Store band, not the footer's "Start a project" band */
html[data-ed="unicorn"] footer.site-footer [data-marketing-closing-cta], html[data-ed="unicorn"] footer.site-footer .marketing-closing-ink { display: none !important; }

/* ---------- shared ---------- */
.bu-head { max-width: 46rem; }
.bu-h2 { max-width: none; }
.bu-ln { display: block; }
.bu-tag { display: inline-flex; align-items: center; font-family: var(--ed-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px dashed currentColor; white-space: nowrap; }
.bu-glabel { font-family: var(--ed-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bu-ink-3); }
.bu-note { margin-top: 1rem; font-size: .88rem; line-height: 1.5; color: var(--ed-mute); }
.bu-strong { margin-top: 1.5rem; font-size: 1.12rem; line-height: 1.5; color: var(--foreground); font-weight: 500; max-width: 40rem; }
.bu-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.15rem; border-radius: 999px; font-size: .95rem; font-weight: 500; border: 1px solid var(--bu-ink); cursor: pointer; transition: background .2s, color .2s; }
.bu-btn-ghost { background: transparent; color: var(--bu-ink); }
.bu-btn-ghost:hover { background: var(--bu-ink); color: var(--bu-paper); }
.bu-cta { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .7rem 1.35rem; border-radius: 999px; background: var(--foreground); color: var(--background); font-size: 1rem; font-weight: 500; transition: opacity .2s; }
.bu-cta:hover { opacity: .88; }
.bu-btn:focus-visible, .bu-choose:focus-visible, .bu-cta:focus-visible, .bu-links a:focus-visible { outline: 2px solid var(--bu-accent); outline-offset: 3px; }

/* ---------- 01 hero: copy left (~40%), the real gameplay screenshot right ---------- */
html[data-ed="unicorn"] [data-ed-herocol] h1 { white-space: pre-line; }
@media (min-width: 1100px) {
  html[data-ed="unicorn"] .container-lev:has(> [data-ed-herocol]) { display: grid; grid-template-columns: minmax(0, 39fr) minmax(0, 61fr); gap: clamp(2.5rem, 4vw, 4rem); align-items: center; }
  html[data-ed="unicorn"] .container-lev:has(> [data-ed-herocol]) > div:last-child { margin-top: 0 !important; }
  html[data-ed="unicorn"] [data-ed-herocol] h1 { font-size: clamp(2.7rem, 1.3rem + 2.5vw, 4.2rem); }
}
html[data-ed="unicorn"] [data-ed-herocol] > p:not([class^="ed-"]) { max-width: 34rem; }
[data-ed="unicorn"] [data-ed-stage] { background: radial-gradient(110% 80% at 70% 0%, color-mix(in oklab, var(--bu-accent) 12%, transparent), transparent 62%), var(--ed-card) !important; }
[data-ed="unicorn"] [data-ed-stage] .ed-visual { padding: clamp(.9rem, 2.2vw, 2rem); }
.bu-hero { margin: 0; }
.bu-shot { border-radius: 14px; overflow: hidden; background: var(--bu-paper); box-shadow: 0 30px 70px -36px rgba(0,0,0,.8), 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent); }
.bu-shot img { display: block; width: 100%; height: auto; aspect-ratio: 760 / 547; }
.bu-hero figcaption { margin-top: .85rem; font-family: var(--ed-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ed-mute); }

/* ---------- 02 make the call ---------- */
.bu-call-intro { display: grid; gap: 1.25rem; }
.bu-lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.45; color: var(--ed-mute); max-width: 36rem; }
.bu-pv { margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.1rem, 2.6vw, 2rem); }
.bu-game { background: var(--bu-paper); color: var(--bu-ink); border-radius: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 28px 70px -36px rgba(0,0,0,.75); }
.bu-pv-top .bu-tag { color: var(--bu-ink-2); }
.bu-pv-grid { margin-top: 1.25rem; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1rem, 2.4vw, 1.75rem); align-items: stretch; }
.bu-opts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 1.6vw, 1rem); }
.bu-opt { display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem 1.2rem 1.25rem; border-radius: 14px; background: #fbf8f2; border: 1px solid color-mix(in oklab, var(--bu-ink) 14%, transparent); transition: border-color .2s, box-shadow .2s; }
.bu-opt-tag { font-family: var(--ed-mono); font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--bu-ink-2); font-weight: 600; }
.bu-opt-b { font-size: 1.05rem; line-height: 1.45; color: var(--bu-ink); font-weight: 500; flex: 1; }
.bu-choose { margin-top: .4rem; display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; padding: .55rem 1rem .55rem .6rem; border-radius: 12px; background: var(--bu-ink); color: var(--bu-paper); font-size: .98rem; font-weight: 500; border: 1px solid var(--bu-ink); cursor: pointer; text-align: left; transition: background .2s, color .2s; }
.bu-choose:hover { background: #3a362f; }
.bu-key { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 7px; background: var(--bu-paper); color: var(--bu-ink); font-family: var(--ed-mono); font-size: 12px; flex: none; }
.bu-choose[aria-pressed="true"] { background: var(--bu-accent); border-color: var(--bu-accent); color: var(--bu-ink); }
.bu-call[data-state="expand"] .bu-opt[data-opt="expand"], .bu-call[data-state="protect"] .bu-opt[data-opt="protect"] { border-color: var(--bu-accent); box-shadow: 0 0 0 1px var(--bu-accent); }
.bu-out { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.25rem 1.3rem 1.3rem; border-radius: 14px; background: var(--bu-paper-2); min-height: 13rem; }
.bu-out-q { font-size: 1.15rem; line-height: 1.4; font-weight: 600; color: var(--bu-ink); text-wrap: balance; }
.bu-out-k { display: none; }
.bu-out-l { font-family: var(--ed-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #a14f27; font-weight: 600; }
.bu-out-t { margin-top: .45rem; font-size: 1.15rem; line-height: 1.42; font-weight: 500; color: var(--bu-ink); text-wrap: pretty; }
.bu-again { margin-top: auto; display: none; }
.bu-call:not([data-state="idle"]) .bu-out-q { display: none; }
.bu-call[data-state="expand"] .bu-out-k[data-out="expand"], .bu-call[data-state="protect"] .bu-out-k[data-out="protect"] { display: block; animation: bu-in .22s var(--ed-ease) both; }
.bu-call:not([data-state="idle"]) .bu-again { display: inline-flex; }
@keyframes bu-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bu-call-foot { margin-top: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.bu-close { font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.35; color: var(--foreground); font-weight: 500; max-width: 36rem; text-wrap: balance; }
/* the editor shows every state, so all copy can be edited */
html[data-bu-edit] .bu-out-k, html[data-bu-edit] .bu-out-q, html[data-bu-edit] .bu-again { display: block !important; animation: none; }

/* ---------- 03 gameplay: four modules, 2×2 ---------- */
.bu-mods { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ed-faint); border: 1px solid var(--ed-faint); border-radius: 16px; overflow: hidden; }
.bu-mod { display: flex; flex-direction: column; gap: .6rem; padding: clamp(1.25rem, 2.6vw, 2rem); background: var(--background); }
.bu-mod-fig { margin: 0 0 .75rem; max-width: 300px; }
.bu-mod-h { font-family: var(--ed-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--foreground); font-weight: 500; }
.bu-mod-t { font-size: 1.05rem; line-height: 1.55; color: var(--ed-mute); max-width: 32rem; }

/* ---------- 04 built from venture building ---------- */
.bu-orig { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: center; }
.bu-orig-copy .ed-prose { margin-top: 1.5rem; max-width: 40rem; }
.bu-orig-map { margin: 0; }
.bu-orig-map .bu-map-card { fill: color-mix(in oklab, var(--foreground) 6%, var(--background)); }
.bu-links { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.bu-links a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--ed-soft); color: var(--foreground); font-size: .98rem; transition: border-color .2s, background .2s; }
.bu-links a:hover { border-color: var(--foreground); background: color-mix(in oklab, var(--foreground) 6%, transparent); }

/* ---------- 05 closing band ---------- */
[data-ed="unicorn"] [data-ed-closing] .ed-closing-sign { margin-top: 1.25rem; }
[data-ed="unicorn"] [data-ed-closing] .ed-closing-sign p { font-family: var(--ed-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ed-mute); }

/* ---------- narrow ---------- */
@media (max-width: 1023px) {
  .bu-pv-grid { grid-template-columns: 1fr; }
  .bu-out { min-height: 0; }
  .bu-orig { grid-template-columns: 1fr; }
  .bu-orig-map { max-width: 560px; }
}
@media (max-width: 640px) {
  .bu-opts { grid-template-columns: 1fr; }
  .bu-mods { grid-template-columns: 1fr; }
  .bu-call-foot { flex-direction: column; align-items: flex-start; }
  .bu-choose { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bu-out-k { animation: none !important; }
  .bu-opt, .bu-choose, .bu-btn, .bu-cta, .bu-links a { transition: none; }
}
