/* Kotoro landing · mini interfaces inside the frames (no images).
   Each frame is a size container: everything inside is sized in em from the frame width,
   so the interfaces scale like screenshots and switch to a compact layout in narrow frames. */

.slot--ui { container-type: inline-size; display: block; }
.slot--ui::before, .slot--ui::after { display: none; }
.slot--ui .hud { z-index: 5; }
.slot--ui img { position: static; inset: auto; width: auto; height: auto; object-fit: initial; z-index: auto; }
@media (max-width: 760px) { .slot--16x10.slot--ui, .slot--3x2.slot--ui { aspect-ratio: 4 / 3; } }

.mk { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; font-family: var(--f-body); font-size: clamp(9.5px, 3.1cqw, 13.5px); line-height: 1.35; color: #d7dae0; text-align: left; letter-spacing: 0; }
.slot--16x10 .mk, .slot--3x2 .mk { font-size: clamp(9px, 1.78cqw, 12.5px); }
@container (max-width: 520px) { .slot--16x10 .mk, .slot--3x2 .mk { font-size: clamp(9px, 2.7cqw, 12px); } }
.mk *, .mk *::before, .mk *::after { box-sizing: border-box; }
.mk b { font-weight: 600; }
.mk p { margin: 0; }
.mk button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.mk button:focus-visible, .mk input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.mk .px { font-size: 0.6em; line-height: 1.2; }
.mk-ico { width: 1em; height: 1em; flex: none; }
.mk-pmark { width: 1.35em; height: 1.35em; flex: none; }
.mk .mk-yt { height: 0.8em; }
.mk .mk-tw { height: 0.95em; }
.mk .mk-kk { height: 0.8em; border-radius: 0.16em; }
.mk .mk-stripe { height: 1.05em; }
.mk-lbl { color: #8a909b; font-size: 0.82em; }

/* avatars */
.mk-ava { width: 2em; height: 2em; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-style: normal; font-weight: 700; color: #120e18; font-family: var(--f-display); }
.mk-ava--lea { background: linear-gradient(135deg, #ffc3d2, #ff6f91); }
.mk-ava--nova { background: linear-gradient(135deg, #d2c8ff, #7b61ff); color: #fff; }
.mk-ava--kai { background: linear-gradient(135deg, #b5efff, #3fa7d6); }
.mk-ava--tom { background: radial-gradient(circle at 35% 30%, #ffe2a1, #e0891a 58%, #7a3f0c); }
.mk-ava--a { background: linear-gradient(135deg, #ffd27a, #e0891a); }
.mk-ava--b { background: linear-gradient(135deg, #9ef0c9, #2fa37a); }
.mk-ava--c { background: linear-gradient(135deg, #c3b6ff, #6a54e0); }
.mk-ava--d { background: linear-gradient(135deg, #ffb2a6, #e0574a); }
.mk-ava--e { background: linear-gradient(135deg, #a9d8ff, #3f7fd6); }

/* tick bubble */
.mk-tick { width: 1.3em; height: 1.3em; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: rgba(102, 192, 244, 0.16); color: #66c0f4; }
.mk-tick .mk-ico { width: 0.8em; height: 0.8em; }

/* ---------- game capsules (pure CSS art, fictional games) ---------- */
.mk-cap { position: relative; display: block; aspect-ratio: 460 / 215; border-radius: 0.3em; overflow: hidden; isolation: isolate; }
.mk-cap b { position: absolute; left: 0.55em; bottom: 0.4em; z-index: 2; font: 800 0.82em/1 var(--f-display); letter-spacing: -0.01em; color: #fff; text-transform: uppercase; text-shadow: 0 0.12em 0.4em rgba(0, 0, 0, 0.7); white-space: nowrap; }
.mk-cap::before, .mk-cap::after { content: ""; position: absolute; inset: 0; }
.mk-cap--cave { background: radial-gradient(circle at 28% 74%, rgba(64, 255, 210, 0.6), transparent 32%), radial-gradient(circle at 74% 40%, rgba(150, 120, 255, 0.65), transparent 30%), linear-gradient(160deg, #11313b, #0a1422 62%, #04070d); }
.mk-cap--cave::before { bottom: auto; height: 42%; background: #03060c; clip-path: polygon(0 0, 100% 0, 100% 34%, 93% 78%, 86% 26%, 77% 96%, 68% 30%, 58% 64%, 49% 18%, 40% 84%, 31% 26%, 21% 70%, 11% 30%, 0 62%); }
.mk-cap--cave::after { top: auto; height: 30%; background: #050a12; clip-path: polygon(0 100%, 0 60%, 8% 20%, 15% 70%, 24% 34%, 33% 80%, 44% 40%, 55% 76%, 66% 28%, 76% 70%, 86% 38%, 94% 72%, 100% 46%, 100% 100%); }
.mk-cap--sky { background: linear-gradient(180deg, #ffb36b 0%, #ff6b86 46%, #7a43b5 100%); }
.mk-cap--sky::before { background: repeating-linear-gradient(170deg, transparent 0 22%, rgba(255, 255, 255, 0.28) 22% 25%, transparent 25% 40%); }
.mk-cap--sky::after { top: auto; height: 38%; background: #2b1650; clip-path: polygon(0 100%, 0 70%, 20% 40%, 32% 62%, 52% 18%, 70% 58%, 84% 36%, 100% 64%, 100% 100%); }
.mk-cap--pines { background: radial-gradient(circle at 70% 30%, rgba(255, 245, 200, 0.5), transparent 18%), linear-gradient(180deg, #0f2a20, #1c3f30 58%, #08140f); }
.mk-cap--pines::before { top: auto; height: 72%; background: #050d09; clip-path: polygon(0 100%, 0 40%, 6% 70%, 10% 20%, 15% 72%, 21% 30%, 27% 76%, 33% 10%, 39% 74%, 46% 34%, 52% 78%, 59% 16%, 65% 74%, 72% 38%, 78% 76%, 85% 22%, 91% 72%, 96% 44%, 100% 70%, 100% 100%); }
.mk-cap--neon { background: linear-gradient(180deg, #0a0f2e 0%, #261054 55%, #4b0b5e 100%); }
.mk-cap--neon::before { top: 52%; background: repeating-linear-gradient(90deg, rgba(0, 240, 255, 0.55) 0 1px, transparent 1px 12%), repeating-linear-gradient(0deg, rgba(255, 60, 200, 0.55) 0 1px, transparent 1px 22%); transform: perspective(5em) rotateX(55deg); transform-origin: top; }
.mk-cap--neon::after { left: 38%; right: 38%; top: 20%; bottom: 46%; border-radius: 50%; background: linear-gradient(180deg, #ffd35c, #ff4fa8); }

/* ---------- game scene + in-game dialog (hero 1, how 3) ---------- */
.mk-game { background: #160d2b; }
.mk-scene { position: absolute; inset: 0; background: linear-gradient(180deg, #120a26 0%, #2a1650 36%, #772d6e 64%, #df775a 86%, #f4b26b 100%); }
.mk-sun { position: absolute; left: 70%; top: 12%; width: 3.6em; height: 3.6em; border-radius: 50%; background: radial-gradient(circle at 42% 40%, #fff7dc, #ffd27a 52%, rgba(255, 210, 122, 0) 70%); }
.mk-stars { position: absolute; inset: 0 0 50% 0; opacity: 0.75; background-image: radial-gradient(1.5px 1.5px at 8% 22%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 21% 9%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 33% 30%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 47% 14%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 58% 34%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 88% 26%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 94% 8%, #fff 50%, transparent 52%); }
.mk-hill { position: absolute; left: 0; right: 0; bottom: 0; }
.mk-hill--3 { height: 46%; background: #4b2a6c; clip-path: polygon(0 50%, 6% 50%, 6% 38%, 14% 38%, 14% 28%, 22% 28%, 22% 44%, 32% 44%, 32% 22%, 41% 22%, 41% 36%, 52% 36%, 52% 18%, 60% 18%, 60% 32%, 70% 32%, 70% 24%, 80% 24%, 80% 40%, 90% 40%, 90% 30%, 100% 30%, 100% 100%, 0 100%); }
.mk-hill--2 { height: 33%; background: #2c1846; clip-path: polygon(0 40%, 10% 40%, 10% 26%, 18% 26%, 18% 46%, 30% 46%, 30% 30%, 44% 30%, 44% 50%, 56% 50%, 56% 24%, 66% 24%, 66% 42%, 78% 42%, 78% 30%, 92% 30%, 92% 48%, 100% 48%, 100% 100%, 0 100%); }
.mk-hill--1 { height: 20%; background: #180c2a; clip-path: polygon(0 30%, 12% 30%, 12% 46%, 26% 46%, 26% 24%, 40% 24%, 40% 40%, 58% 40%, 58% 22%, 72% 22%, 72% 44%, 86% 44%, 86% 30%, 100% 30%, 100% 100%, 0 100%); }
.mk-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 7%; background: repeating-linear-gradient(90deg, #120820 0 1.2em, #170a28 1.2em 2.4em); }
.mk-scene--day { background: linear-gradient(180deg, #4fb7f5 0%, #8fd9ff 48%, #ffe9b6 100%); }
.mk-scene--day .mk-sun { left: 12%; top: 10%; background: radial-gradient(circle, #fffbe0, #ffe27a 55%, rgba(255, 226, 122, 0) 70%); }
.mk-scene--day .mk-stars { inset: 6% 0 55% 0; opacity: 0.9; background-image: radial-gradient(ellipse 3.6em 0.9em at 70% 30%, #fff 60%, transparent 62%), radial-gradient(ellipse 2.4em 0.7em at 78% 22%, #fff 60%, transparent 62%), radial-gradient(ellipse 3em 0.8em at 36% 62%, rgba(255, 255, 255, 0.9) 60%, transparent 62%); }
.mk-scene--day .mk-hill--3 { background: #78c87a; }
.mk-scene--day .mk-hill--2 { background: #43a35c; }
.mk-scene--day .mk-hill--1 { background: #256b41; }
.mk-scene--day .mk-ground { background: repeating-linear-gradient(90deg, #1d5634 0 1.2em, #215d38 1.2em 2.4em); }

.mk-dialog { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); width: 84%; padding: 0.95em 1em 0.85em; background: rgba(21, 13, 37, 0.93); border: 0.15em solid #f1e6c8; border-radius: 0.25em; box-shadow: 0 0 0 0.15em #1a1030, inset 0 0 0 0.15em #5d4a86, 0 1.3em 2.6em rgba(0, 0, 0, 0.5); }
.mk-dialog__q { margin: 0 0 0.75em !important; font: 700 1.1em/1.2 var(--f-display); letter-spacing: -0.01em; color: #fff5dc; text-align: center; text-wrap: balance; }
.mk-code { display: flex; align-items: center; gap: 0.55em; height: 2.45em; padding: 0 0.32em 0 0.7em; background: #0e0a18; border: 0.12em solid #4b3b70; border-radius: 0.18em; transition: border-color 0.3s, box-shadow 0.3s; }
.mk-code__lbl { color: #a497c9; letter-spacing: 0.06em; white-space: nowrap; }
.mk-code__val { flex: 1; display: flex; align-items: center; font: 700 1.05em var(--f-mono); letter-spacing: 0.2em; color: #fff; min-width: 0; }
.mk .caret { width: 0.12em; height: 1.05em; margin-left: 0.05em; }
.mk-code__ok { display: grid; place-items: center; height: 1.8em; padding: 0 0.75em; border-radius: 0.14em; background: #c8ff3e; color: #0e1300; font-weight: 800; font-size: 0.78em; box-shadow: inset 0 -0.2em 0 rgba(0, 0, 0, 0.25); }
.step.is-active .mk-code { border-color: #c8ff3e; box-shadow: 0 0 0 0.22em rgba(200, 255, 62, 0.16); }

/* how 3 · bigger, interactive dialog */
.mk-dialog--lg { width: 60%; top: 48%; padding: 1.2em 1.3em 1.1em; }
.mk-dialog--lg .mk-dialog__q { font-size: 1.35em; margin-bottom: 0.9em !important; }
.mk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45em; margin-bottom: 0.8em; }
.mk-tiles button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4em; min-height: 4.4em; padding: 0.55em 0.3em; background: #2d2148; border: 0.12em solid #4b3b70; border-radius: 0.22em; color: #d9cff0; font-size: 0.8em; font-weight: 600; line-height: 1.15; cursor: var(--cur-hand, pointer); transition: border-color 0.15s, transform 0.15s, background 0.15s; }
.mk-tiles button:hover { transform: translateY(-0.1em); border-color: #7d68b3; }
.mk-tiles button.is-on { background: #33300f; border-color: #c8ff3e; color: #f0ffc8; box-shadow: 0 0 0 0.2em rgba(200, 255, 62, 0.14); }
.mk-tiles__ic { display: flex; align-items: center; gap: 0.3em; height: 1.3em; }
.mk-tiles__ic .mk-ico { width: 1.3em; height: 1.3em; }
.mk-tiles__ic .mk-yt { height: 0.95em; }
.mk-tiles__ic .mk-tw { height: 1.1em; }
.mk-tiles__ic .mk-kk { height: 0.95em; border-radius: 0.18em; }
.mk-code--lg { height: 2.8em; cursor: text; }
.mk-code--lg input { flex: 1; min-width: 0; height: 100%; padding: 0; background: transparent; border: 0; outline: 0; color: #fff; font: 700 1.1em var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; }
.mk-code--lg:focus-within { border-color: #c8ff3e; box-shadow: 0 0 0 0.22em rgba(200, 255, 62, 0.16); }
.mk-start { display: block; width: 100%; height: 2.5em; margin-top: 0.6em; border: 0; border-radius: 0.18em; background: #c8ff3e; color: #0e1300; font-size: 0.88em; font-weight: 800; letter-spacing: 0.02em; cursor: var(--cur-hand, pointer); box-shadow: inset 0 -0.22em 0 rgba(0, 0, 0, 0.25); transition: transform 0.12s, filter 0.2s; }
.mk-start:hover { filter: brightness(1.06); }
.mk-start:active { transform: translateY(0.08em); box-shadow: inset 0 -0.08em 0 rgba(0, 0, 0, 0.25); }
.mk-unlock { position: absolute; left: 50%; top: calc(100% + 0.9em); display: flex; align-items: center; gap: 0.4em; padding: 0.45em 0.85em; border-radius: 99px; background: rgba(14, 19, 0, 0.92); border: 1px solid rgba(200, 255, 62, 0.5); color: #c8ff3e; font-size: 0.82em; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, 0.6em); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); pointer-events: none; }
.mk-dialog.is-started .mk-unlock { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Steam ownership check (hero 2) ---------- */

/* ---------- creator earnings (hero 3) ---------- */
.mk-earn { display: flex; flex-direction: column; gap: 0.7em; padding: 0.95em 1em; background: radial-gradient(120% 80% at 100% 0%, rgba(165, 151, 255, 0.17), transparent 55%), linear-gradient(180deg, #121019, #0c0b12); }
.mk-earn__head { display: flex; align-items: center; gap: 0.6em; }
.mk-earn__who b { display: block; color: #f3f0ff; font-size: 0.95em; }
.mk-earn__who > span { display: flex; align-items: center; gap: 0.3em; font-size: 0.76em; color: #9a94b8; }
.mk-earn__code { margin-left: auto; padding: 0.2em 0.55em; border-radius: 0.35em; border: 1px solid rgba(165, 151, 255, 0.4); background: rgba(165, 151, 255, 0.1); color: #cfc6ff; font-size: 0.78em; letter-spacing: 0.14em; }
.mk-earn__bal b { display: block; margin-top: 0.1em; font-size: 2em; line-height: 1.1; letter-spacing: -0.03em; color: #fff; }
.mk-earn__chart { position: relative; flex: 1; display: flex; min-height: 5.6em; }
.mk-spark { display: flex; align-items: flex-end; gap: 0.24em; flex: 1; padding-top: 2.95em; }
.mk-spark i { flex: 1; height: calc(var(--h) * 100%); border-radius: 0.18em 0.18em 0.06em 0.06em; background: linear-gradient(180deg, rgba(165, 151, 255, 0.36), rgba(165, 151, 255, 0.13)); transform-origin: bottom; }
.mk-spark i.is-now { background: linear-gradient(180deg, #ddd6ff, #8f7dff); box-shadow: 0 0 1.1em rgba(165, 151, 255, 0.55); }
/* new-sale notification: its own band above the bars, always inside the card */
.mk-earn__toast { position: absolute; top: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 0.55em; max-width: 100%; padding: 0.38em 0.75em 0.38em 0.38em; border-radius: 0.75em; border: 1px solid rgba(165, 151, 255, 0.3); background: rgba(24, 20, 40, 0.94); box-shadow: 0 0.9em 1.8em -0.9em rgba(0, 0, 0, 0.9), 0 0 0 0.22em rgba(165, 151, 255, 0.07); font-size: 0.8em; white-space: nowrap; }
.mk-earn__ic { width: 1.9em; height: 1.9em; flex: none; display: grid; place-items: center; border-radius: 0.55em; background: linear-gradient(180deg, #cdc3ff, #8f7dff); color: #1b1240; box-shadow: inset 0 -0.12em 0 rgba(0, 0, 0, 0.18); }
.mk-earn__ic svg { width: 1.05em; height: 1.05em; }
.mk-earn__tt { display: flex; flex-direction: column; min-width: 0; line-height: 1.22; }
.mk-earn__tt > span { overflow: hidden; text-overflow: ellipsis; color: #f1eeff; font-weight: 600; }
.mk-earn__tt small { color: #9d97bd; font-size: 0.86em; }
.mk-earn__toast b { margin-left: 0.4em; color: #ddd6ff; font-size: 1.12em; font-weight: 700; }
.mk .coin { width: 1.45em; height: 1.45em; }
.mk-earn__pay { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; margin-top: auto; padding-top: 0.6em; border-top: 1px dashed rgba(255, 255, 255, 0.1); font-size: 0.78em; color: #9a94b8; }
.step.is-active .mk-spark i.is-now { animation: mk-grow 0.6s var(--ease-pop) 0.2s both; }
.step.is-active .mk-earn__toast { animation: mk-notif 0.6s var(--ease-pop) 0.3s both; }

/* ---------- hero cards 1 and 2: our own minimal UI, same family as the earnings card (card 3) ---------- */
.mk-hc { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.1em 1.2em; }
.mk-h1 { gap: 0.95em; background: radial-gradient(110% 70% at 50% 0%, rgba(200, 255, 62, 0.09), transparent 60%), linear-gradient(180deg, #111317, #0b0c0f); }
.mk .h1-q { font: 600 1.16em/1.25 var(--f-display); letter-spacing: -0.02em; color: #f2f3f5; }
.h1-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.7em; width: 100%; max-width: 19em; padding: 0.6em 0.5em 0.55em 1em; border-radius: 0.8em; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.035); text-align: left; transition: border-color 0.35s, box-shadow 0.35s; }
.mk .h1-lbl { grid-column: 1; grid-row: 1; overflow: hidden; color: #8a909b; font-size: 0.56em; line-height: 1; white-space: nowrap; text-overflow: ellipsis; }
.h1-val { grid-column: 1; grid-row: 2; display: flex; align-items: center; min-width: 0; height: 1.3em; margin-top: 0.12em; font-size: 1.45em; letter-spacing: 0.16em; color: #fff; }
.h1-val .mono { font-weight: 700; }
.mk-h1 .caret { visibility: hidden; }
.step.is-active .mk-h1 .caret { visibility: visible; }
.h1-ok { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; height: 2.25em; padding: 0 0.9em; border-radius: 0.55em; background: rgba(255, 255, 255, 0.06); color: #8a909b; font-size: 0.82em; font-weight: 600; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.step.is-active .h1-field { border-color: rgba(200, 255, 62, 0.55); box-shadow: 0 0 0 0.25em rgba(200, 255, 62, 0.08); }
.is-typed .h1-ok { background: #c8ff3e; color: #0e1300; box-shadow: 0 0.4em 1em -0.4em rgba(200, 255, 62, 0.7); }
.h1-match { display: flex; align-items: center; gap: 0.6em; padding: 0.4em 0.45em 0.4em 0.4em; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); opacity: 0; transform: translateY(0.5em); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.is-typed .h1-match { opacity: 1; transform: none; }
.h1-match .mk-ava { width: 1.85em; height: 1.85em; font-size: 0.8em; }
.h1-who { display: flex; align-items: center; gap: 0.55em; font-size: 0.84em; color: #c9cdd4; }
.mk .h1-who b { color: #fff; font-weight: 600; }
.h1-who > span { display: inline-flex; align-items: center; gap: 0.3em; color: #8a909b; }
.h1-check, .h2-badge { display: grid; place-items: center; border-radius: 50%; background: #c8ff3e; color: #0e1300; }
.h1-check { width: 1.6em; height: 1.6em; }
.h1-check svg, .h2-badge svg, .h2-checks svg { width: 0.9em; height: 0.9em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.is-typed .h1-check { animation: mk-pop 0.45s var(--ease-pop) 0.2s both; }
.mk-h2 { gap: 0.5em; background: radial-gradient(110% 70% at 50% 0%, rgba(102, 192, 244, 0.13), transparent 60%), linear-gradient(180deg, #0f141a, #0a0d11); }
.h2-seal { position: relative; display: grid; place-items: center; width: 5.3em; height: 5.3em; margin-bottom: 0.4em; }
.h2-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.h2-ring circle { fill: none; stroke-width: 3; }
.h2-ring__bg { stroke: rgba(102, 192, 244, 0.14); }
.h2-ring__fg { stroke: #66c0f4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 2px rgba(102, 192, 244, 0.7)); }
.mk .h2-logo { width: 3.4em; height: 3.4em; border-radius: 50%; box-shadow: 0 0.6em 1.6em -0.4em rgba(0, 0, 0, 0.85); }
.h2-badge { position: absolute; right: 0.1em; bottom: 0.1em; width: 1.6em; height: 1.6em; box-shadow: 0 0 0 0.22em #0d1116; }
.mk .h2-t { font: 600 1.16em/1.2 var(--f-display); letter-spacing: -0.02em; color: #fff; }
.h2-sub { display: flex; align-items: center; gap: 0.45em; font-size: 0.78em; color: #8f98a0; }
.h2-sub .mk-ava { width: 1.45em; height: 1.45em; }
.h2-sub span { opacity: 0.5; }
.h2-checks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em; margin: 0.55em 0 0; padding: 0; }
.h2-checks li { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.38em 0.75em 0.38em 0.55em; border-radius: 99px; border: 1px solid rgba(102, 192, 244, 0.2); background: rgba(102, 192, 244, 0.08); color: #d2e7f5; font-size: 0.76em; }
.h2-checks svg { color: #66c0f4; }
.step.is-active .h2-ring__fg { animation: h2-ring 1s var(--ease) both; }
.step.is-active .h2-badge { animation: mk-pop 0.5s var(--ease-pop) 0.95s both; }
.step.is-active .h2-checks li { animation: h2-rise 0.45s var(--ease) both; animation-delay: calc(1.1s + var(--i) * 0.15s); }
@keyframes h2-ring { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes h2-rise { from { opacity: 0; transform: translateY(0.45em); } to { opacity: 1; transform: none; } }
.slot--ui:has(.mk-h1) { background: radial-gradient(90% 70% at 50% 0%, rgba(200, 255, 62, 0.08), transparent 70%), linear-gradient(180deg, #0f1114, #0a0b0d); }
.slot--ui:has(.mk-h2) { background: radial-gradient(90% 70% at 50% 0%, rgba(102, 192, 244, 0.16), transparent 70%), linear-gradient(180deg, #0e1319, #0a0c10); }
/* step 04 header, built like the step 05 dashboard */
.mk-app__bar--head { height: 3.6em; padding: 0 1.25em; gap: 0.75em; }
.mk-app__bar--head .mk-pmark { width: 1.7em; height: 1.7em; }
.mk-app__bar--head .mk-app__title { font: 600 1.1em var(--f-display); letter-spacing: -0.01em; color: #fff; }
/* step 03 tiles: real brand marks */
.mk .mk-tile-logo { width: 1.35em; height: 1.35em; border-radius: 50%; }

/* ---------- engine install cycler (how 1) ---------- */
.mk-eng { display: flex; flex-direction: column; background: #0b0d11; }
.mk-eng__tabs { display: flex; gap: 0.45em; padding: 0.75em 0.85em 0.65em; }
.mk-eng__tabs button { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 0.5em; height: 2.35em; padding: 0 0.85em; border-radius: 0.65em; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.025); color: #8a909b; font-size: 0.88em; font-weight: 600; cursor: var(--cur-hand, pointer); transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.mk-eng__tabs button img { height: 1.15em; }
.mk-eng__tabs button:hover { color: #d7dae0; }
.mk-eng__tabs button.is-on { color: #fff; border-color: rgba(200, 255, 62, 0.42); }
/* the same engines as pills beside the frame (step 01): they follow the same timeline */
.ticks li.eng-pill { position: relative; overflow: hidden; isolation: isolate; cursor: var(--cur-hand, pointer); user-select: none; -webkit-tap-highlight-color: transparent; transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.ticks li.eng-pill:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.ticks li.eng-pill.is-on { color: #fff; border-color: rgba(200, 255, 62, 0.45); }
.ticks li.eng-pill:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
/* progress fill: the bar slides (transform only, run on the compositor by mocks.js) instead of stretching,
   so its glowing head keeps the same shape and moves at sub-pixel precision */
.mk-fill { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: linear-gradient(90deg, rgba(200, 255, 62, 0) 0%, rgba(200, 255, 62, 0.07) 45%, rgba(200, 255, 62, 0.22) 100%); transform: translate3d(calc(-100% - 16px), 0, 0); opacity: 0; will-change: transform, opacity; backface-visibility: hidden; transition: opacity 0.45s ease; }
.mk-fill::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1.1em; max-width: 40%; background: linear-gradient(90deg, rgba(200, 255, 62, 0), rgba(200, 255, 62, 0.34)); box-shadow: inset -1.5px 0 0 rgba(226, 255, 150, 0.92); transition: opacity 0.45s ease; }
.is-on > .mk-fill { opacity: 1; transition-duration: 0.2s; }
.is-done > .mk-fill, .is-leaving > .mk-fill { transform: none; }
.is-done > .mk-fill { opacity: 0.34; transition-duration: 0.6s; }
.is-done > .mk-fill::after, .is-leaving > .mk-fill::after { opacity: 0; }
.mk-eng__stage { position: relative; flex: 1; margin: 0 0.85em 0.85em; border-radius: 0.7em; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 1.2em 2.4em -1em rgba(0, 0, 0, 0.8); }
.mk-ed { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s; background: var(--e-bg); color: var(--e-text); font-size: 0.85em; }
.mk-ed.is-on { opacity: 1; visibility: visible; transition: opacity 0.4s; }
.mk-ed--godot { --e-bg: #1d2229; --e-top: #252b34; --e-panel: #262c35; --e-head: #2f3640; --e-line: #14181d; --e-text: #d3d8df; --e-dim: #8b95a3; --e-acc: #478cbf; --e-sel: rgba(71, 140, 191, 0.42); --e-view: #2a313b; }
.mk-ed--unity { --e-bg: #191919; --e-top: #202020; --e-panel: #282828; --e-head: #3c3c3c; --e-line: #141414; --e-text: #c4c4c4; --e-dim: #8a8a8a; --e-acc: #3a79bb; --e-sel: #2c5d87; --e-view: #3a4450; }
.mk-ed--unreal { --e-bg: #0e0e0e; --e-top: #151515; --e-panel: #1b1b1b; --e-head: #242424; --e-line: #050505; --e-text: #c0c0c0; --e-dim: #7d7d7d; --e-acc: #0070e0; --e-sel: rgba(0, 112, 224, 0.42); --e-view: #1a1a1a; }
.mk-ed--gm { --e-bg: #1b1d20; --e-top: #232528; --e-panel: #26282c; --e-head: #2f3237; --e-line: #141517; --e-text: #d0d3d8; --e-dim: #868b93; --e-acc: #65a637; --e-sel: rgba(101, 166, 55, 0.4); --e-view: #1e1f22; }
.ed-top { display: flex; align-items: center; gap: 1em; height: 2.15em; padding: 0 0.85em; background: var(--e-top); border-bottom: 1px solid var(--e-line); font-size: 0.84em; color: var(--e-dim); white-space: nowrap; overflow: hidden; flex: none; }
.ed-modes { display: flex; gap: 0.9em; margin: 0 auto; }
.ed-modes b { color: var(--e-acc); }
.ed-play { margin-left: auto; color: var(--e-dim); }
.ed-play--unity { display: flex; gap: 0.25em; }
.ed-play--unity i { width: 1.1em; height: 0.9em; border-radius: 0.15em; background: #3c3c3c; }
.ed-tab { margin-left: auto; padding: 0.25em 0.7em; border-radius: 0.3em 0.3em 0 0; background: var(--e-panel); color: var(--e-text); }
.ed-tab + .ed-play { margin-left: 0.4em; }
.ed-body { flex: 1; display: grid; grid-template-columns: 26% minmax(0, 1fr) 27%; min-height: 0; }
.ed-dock { padding: 0.35em 0; overflow: hidden; background: var(--e-panel); }
.ed-dock--l { border-right: 1px solid var(--e-line); }
.ed-dock--r { border-left: 1px solid var(--e-line); }
.ed-h { margin-bottom: 0.25em; padding: 0.28em 0.75em; background: var(--e-head); font-size: 0.8em; font-weight: 700; color: var(--e-text); }
.ed-tree { list-style: none; margin: 0 0 0.45em; padding: 0; font-size: 0.83em; }
.ed-tree li { display: flex; align-items: center; gap: 0.45em; padding: 0.17em 0.75em; white-space: nowrap; color: var(--e-text); }
.ed-tree .i1 { padding-left: 1.7em; }
.ed-tree .i2 { padding-left: 2.6em; }
.ed-tree .ed-new { background: var(--e-sel); color: #fff; }
.ed-n { width: 0.75em; height: 0.75em; border-radius: 0.15em; background: var(--e-acc); }
.ed-n--ui { background: #8eef97; }
.ed-view { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--e-view); }
.ed-view--grid { background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 1.6em 1.6em; }
.ed-view--scene { background: linear-gradient(180deg, #59687a 0%, #3f4955 52%, #2f353c 52%, #262a30 100%); }
.ed-gizmo { position: absolute; top: 0.7em; right: 0.8em; width: 2.2em; height: 2.2em; }
.ed-gizmo i { position: absolute; left: 50%; top: 50%; width: 1.1em; height: 2px; transform-origin: left; }
.ed-gizmo i:nth-child(1) { background: #e8544e; transform: rotate(-20deg); }
.ed-gizmo i:nth-child(2) { background: #7fd45a; transform: rotate(-90deg); }
.ed-gizmo i:nth-child(3) { background: #4c8cf0; transform: rotate(150deg); }
.ed-preview { width: 70%; padding: 0.7em 0.75em; border-radius: 0.25em; background: rgba(21, 13, 37, 0.95); border: 0.12em solid #f1e6c8; text-align: center; box-shadow: 0 0.9em 2em rgba(0, 0, 0, 0.5); }
.ed-preview b { display: block; margin-bottom: 0.5em; font: 700 0.8em/1.2 var(--f-display); color: #fff5dc; }
.ed-pv-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25em; margin-bottom: 0.4em; }
.ed-pv-opts i { height: 0.95em; border-radius: 0.12em; background: #2d2148; }
.ed-pv-opts i:first-child { background: #33300f; box-shadow: inset 0 0 0 0.08em #c8ff3e; }
.ed-pv-code { display: block; height: 1.5em; line-height: 1.5em; border-radius: 0.12em; background: #0e0a18; font: 700 0.75em var(--f-mono); letter-spacing: 0.22em; color: #fff; }
.ed-sub { display: flex; align-items: center; gap: 0.4em; padding: 0.2em 0.75em 0.45em; font-size: 0.8em; color: #fff; white-space: nowrap; }
.ed-props { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.38em 0.5em; margin: 0; padding: 0 0.75em; font-size: 0.78em; }
.ed-props dt { color: var(--e-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-props dd { margin: 0; text-align: right; white-space: nowrap; color: var(--e-text); }
.ed-check { display: inline-block; width: 0.95em; height: 0.95em; border-radius: 0.2em; vertical-align: -0.12em; background: var(--e-acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.75em no-repeat; }
.ed-out { display: flex; align-items: center; gap: 1.4em; height: 2em; padding: 0 0.85em; border-top: 1px solid var(--e-line); background: var(--e-panel); font-size: 0.74em; color: var(--e-dim); white-space: nowrap; overflow: hidden; flex: none; }
.ed-ok { color: #8be37a; }
.ed-view--bp { display: block; background-color: #1c1c1c; background-image: linear-gradient(rgba(0, 0, 0, 0.55) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.55) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 6.4em 6.4em, 6.4em 6.4em, 0.8em 0.8em, 0.8em 0.8em; }
.bp-node { position: absolute; min-width: 10.5em; border-radius: 0.4em; overflow: hidden; border: 1px solid #000; background: rgba(16, 16, 16, 0.94); box-shadow: 0 0.5em 1.2em rgba(0, 0, 0, 0.55); font-size: 0.78em; }
.bp-node b { display: block; padding: 0.38em 0.65em 0.38em 1.4em; color: #fff; }
.bp-node--event { left: 6%; top: 16%; }
.bp-node--event b { padding-left: 0.65em; padding-right: 1.6em; background: linear-gradient(90deg, #9b1f1f, #4e0e0e); }
.bp-node--fn { right: 6%; top: 42%; }
.bp-node--fn b { background: linear-gradient(90deg, #2058a0, #12345e); }
.bp-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; padding: 0.3em 0.65em; color: #c8c8c8; }
.bp-row em { font-style: normal; color: #f0c36d; }
.bp-pin { position: absolute; top: 0.62em; width: 0.62em; height: 0.62em; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.bp-pin--out { right: 0.5em; }
.bp-pin--in { left: 0.5em; }
.bp-wire { position: absolute; left: 32%; top: 23%; width: 28%; height: 30%; overflow: visible; }
.bp-wire path { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ed-view--code { place-items: start; padding: 1em 1.2em; }
.ed-view--code pre { margin: 0; font: 0.82em/1.75 var(--f-mono); color: #d4d4d4; white-space: pre; }
.c-cm { color: #6a9955; } .c-fn { color: #ffb871; } .c-st { color: #ce9178; } .c-kw { color: #569cd6; }
.in-view .mk-ed.is-on .ed-new { animation: ed-in 0.5s var(--ease) 0.45s both; }
.in-view .mk-ed.is-on .ed-props dd { animation: ed-in 0.4s var(--ease) 1s both; }
.in-view .mk-ed.is-on .ed-preview, .in-view .mk-ed.is-on .bp-node--fn, .in-view .mk-ed.is-on pre { animation: mk-pop 0.6s var(--ease-pop) 1.4s both; }
.in-view .mk-ed.is-on .bp-wire { animation: ed-in 0.4s var(--ease) 1.8s both; }
.in-view .mk-ed.is-on .ed-out span { animation: ed-in 0.35s var(--ease) both; }
.in-view .mk-ed.is-on .ed-out span:nth-child(1) { animation-delay: 1.9s; }
.in-view .mk-ed.is-on .ed-out span:nth-child(2) { animation-delay: 2.5s; }
.in-view .mk-ed.is-on .ed-out span:nth-child(3) { animation-delay: 3.1s; }

/* ---------- Kotoro app shell (catalog, sales, dashboard, requests) ---------- */
.mk-app { display: flex; flex-direction: column; background: linear-gradient(180deg, #101318, #0a0c10); }
.mk-app__bar { display: flex; align-items: center; gap: 0.7em; height: 2.85em; padding: 0 1em; border-bottom: 1px solid rgba(255, 255, 255, 0.07); flex: none; white-space: nowrap; }
.mk-brand { display: flex; align-items: center; gap: 0.45em; font: 700 0.95em var(--f-display); letter-spacing: -0.02em; color: #fff; }
.mk-app__title { font-weight: 600; color: #eef0f3; }
.mk-live { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.18em 0.55em; border-radius: 99px; border: 1px solid rgba(200, 255, 62, 0.25); background: rgba(200, 255, 62, 0.08); color: #c8ff3e; font-size: 0.74em; font-weight: 600; }
.mk-live i { width: 0.45em; height: 0.45em; border-radius: 50%; background: #c8ff3e; animation: pulse 1.6s ease-in-out infinite; }
.mk-app__sum { margin-left: auto; color: #c8ff3e; font-weight: 700; }

/* catalog (how 2): the creator side of Kotoro. Violet only, built around real game covers (img/covers/) */
.mk-cr { inset: 1.45em; display: flex; flex-direction: column; border-radius: 0.85em; border: 1px solid rgba(165, 151, 255, 0.16); background: radial-gradient(110% 70% at 0% 0%, rgba(165, 151, 255, 0.08), transparent 60%), linear-gradient(180deg, #121019, #0b0a10); box-shadow: 0 1.6em 3.2em -1.4em rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.35); color: #dcd8ea; }
.cr-bar { display: flex; align-items: center; gap: 1em; height: 3em; padding: 0 0.55em 0 1em; border-bottom: 1px solid rgba(165, 151, 255, 0.1); flex: none; white-space: nowrap; }
.cr-brand { display: flex; align-items: center; gap: 0.45em; font: 700 0.98em var(--f-display); letter-spacing: -0.03em; color: #fff; }
.cr-nav { display: flex; gap: 0.15em; min-width: 0; font-size: 0.84em; }
.cr-nav span { padding: 0.36em 0.72em; border-radius: 0.5em; color: #8f8aa6; }
.cr-nav .is-on { color: #fff; background: rgba(165, 151, 255, 0.14); }
.cr-search { flex: 1; min-width: 0; max-width: 14.5em; margin-left: auto; display: flex; align-items: center; gap: 0.45em; height: 2.05em; padding: 0 0.7em; border-radius: 0.6em; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.035); color: #77728c; font-size: 0.82em; }
.cr-search span { overflow: hidden; text-overflow: ellipsis; }
.cr-me { display: flex; align-items: center; gap: 0.55em; padding: 0.2em 0.2em 0.2em 0.75em; border-radius: 99px; border: 1px solid rgba(165, 151, 255, 0.24); background: rgba(165, 151, 255, 0.08); }
.mk .cr-me b { font-family: var(--f-display); font-size: 0.84em; font-weight: 600; letter-spacing: -0.01em; color: #ddd6ff; font-variant-numeric: tabular-nums; }
.cr-me .mk-ava { width: 1.75em; height: 1.75em; font-size: 0.85em; }
.cr-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 14.5em; grid-template-rows: minmax(0, 1fr) auto; gap: 0.8em; padding: 0.85em; }
.cr-hero { position: relative; min-height: 0; border-radius: 0.7em; overflow: hidden; isolation: isolate; background: #1a1626; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.mk .cr-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.6s var(--ease); }
.cr-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 8, 16, 0) 28%, rgba(10, 8, 16, 0.55) 62%, rgba(10, 8, 16, 0.95)), linear-gradient(90deg, rgba(10, 8, 16, 0.45), transparent 60%); }
.mk .cr-feat { position: absolute; top: 0.9em; left: 0.9em; z-index: 2; padding: 0.55em 0.65em 0.5em; border-radius: 0.45em; background: #a597ff; color: #160f33; font-size: 0.6em; box-shadow: 0 0.4em 1.2em -0.3em rgba(165, 151, 255, 0.7); }
.cr-hero__txt { position: absolute; left: 1em; right: 1em; bottom: 0.95em; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 0.3em; }
.cr-tags { display: flex; gap: 0.35em; margin-bottom: 0.25em; }
.cr-tags span { padding: 0.24em 0.62em; border-radius: 0.42em; background: rgba(255, 255, 255, 0.13); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #f2f0fa; font-size: 0.74em; font-weight: 500; }
.mk .cr-title { font: 800 2.05em/1 var(--f-display); letter-spacing: -0.035em; color: #fff; text-shadow: 0 0.1em 1em rgba(0, 0, 0, 0.5); }
.cr-studio { color: #bab5cd; font-size: 0.8em; }
/* the offer: one type family, one big number, quiet rows (after Outerbase, Lemni, Raycast) */
.cr-offer { display: flex; flex-direction: column; min-height: 0; padding: 1em 1.05em 1.05em; border-radius: 0.75em; border: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(165, 151, 255, 0.07), transparent 42%), #121118; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.cr-k { color: #9a95ad; font-size: 0.78em; font-weight: 500; }
.cr-pay { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.35em; margin-top: 0.2em; }
.mk .cr-pay b { display: inline-block; font: 600 2.2em/1 var(--f-display); letter-spacing: -0.045em; color: #fff; font-variant-numeric: tabular-nums; }
.mk .cr-pay sup { position: relative; top: -0.95em; margin-right: 0.08em; font-size: 0.42em; font-weight: 500; letter-spacing: 0; color: #c9c3dc; vertical-align: baseline; line-height: 0; }
.cr-pay > span { color: #9a95ad; font-size: 0.8em; }
.cr-rows { display: flex; flex-direction: column; gap: 0.6em; margin: 0.9em 0 1em; padding-top: 0.9em; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.cr-r { display: flex; align-items: center; gap: 0.55em; min-width: 0; font-size: 0.73em; line-height: 1.2; white-space: nowrap; color: #a39eb5; }
.cr-r > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cr-ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: #8b84a8; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.mk .cr-r > b { display: inline-flex; align-items: center; gap: 0.35em; flex: none; color: #eeecf4; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-langs { gap: 0.22em !important; }
.cr-langs i { padding: 0.18em 0.4em; border-radius: 0.3em; background: rgba(255, 255, 255, 0.07); color: #d9d6e3; font-size: 0.82em; font-style: normal; font-weight: 600; letter-spacing: 0.03em; }
.mk .cr-cta { flex: none; height: 2.35em; margin-top: auto; padding: 0 1.1em; border-radius: 99px; font-family: var(--f-body); font-size: 0.86em; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; background: #a597ff; color: #130d2e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0.5em 1.2em -0.6em rgba(165, 151, 255, 0.7); }
.mk .cr-cta:hover { background: #b3a7ff; }
.mk .cr-cta.is-done { background: rgba(165, 151, 255, 0.12); color: #d8d1ff; box-shadow: none; }
.mk .cr-cta.is-done .mk-ico { color: #b9aeff; }
.cr-row { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.55em; min-width: 0; }
.cr-row__h { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; white-space: nowrap; }
.mk .cr-row__h b { font: 700 0.92em var(--f-display); letter-spacing: -0.02em; color: #f1eff7; }
.cr-row__h span { color: #8f8aa6; font-size: 0.74em; }
.cr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75em; }
.cr-card { display: flex; flex-direction: column; gap: 0.28em; min-width: 0; }
.cr-thumb { position: relative; display: block; aspect-ratio: 2.8; border-radius: 0.5em; overflow: hidden; background: #1a1626; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.cr-card:hover .cr-img, .cr-hero:hover .cr-img { transform: scale(1.04); }
.cr-hero picture, .cr-thumb picture { display: contents; }
.mk .cr-img--cave { object-position: 64% 62%; }
.mk .cr-img--sky { object-position: 50% 44%; }
.mk .cr-img--pines { object-position: 50% 46%; }
.mk .cr-img--neon { object-position: 50% 46%; }
.cr-card__t { margin-top: 0.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 0.84em var(--f-display); letter-spacing: -0.01em; color: #f1eff7; }
.cr-card__m { display: flex; justify-content: space-between; gap: 0.5em; font-size: 0.74em; color: #8f8aa6; white-space: nowrap; }
.cr-card__m span { overflow: hidden; text-overflow: ellipsis; }
.mk .cr-card__m b { font-family: var(--f-display); font-weight: 700; color: #cfc6ff; }
.cr-match { display: none; align-items: center; gap: 0.45em; margin-top: 0.75em; color: #b9b3cc; font-size: 0.72em; line-height: 1.2; }
.cr-match svg { width: 1.2em; height: 1.2em; padding: 0.18em; border-radius: 50%; background: rgba(165, 151, 255, 0.18); color: #c9beff; }
/* taller 4:3 frames (phones and small tablets): uncropped covers, one more line in the offer */
@media (max-width: 760px) {
  .cr-offer .cr-match { display: flex; margin-top: auto; }
  .cr-offer .cr-match + .cr-cta { margin-top: 0.75em; }
  .cr-thumb { aspect-ratio: 1.75; }
}
@container (max-width: 560px) {
  .cr-nav, .cr-search, .cr-row, .cr-k, .cr-offer .cr-match, .cr-r:not(.cr-r--keys) { display: none; }
  .cr-me { margin-left: auto; }
  .cr-body { grid-template-columns: minmax(0, 1fr); padding: 0.75em; gap: 0.65em; }
  .cr-offer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 1.1em; padding: 0.6em 0.6em 0.6em 0.95em; }
  .cr-pay { flex-direction: column; flex-wrap: nowrap; gap: 0.2em; margin: 0; }
  .mk .cr-pay b { font-size: 1.95em; }
  .cr-pay > span { font-size: 0.74em; }
  .cr-rows { margin: 0; padding: 0 0 0 1.1em; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.07); }
  .mk .cr-cta { margin: 0; }
  .mk .cr-title { font-size: 1.8em; }
}
/* medium frames: the catalog moves to a side column next to the featured game */
@container (min-width: 431px) and (max-width: 560px) {
  .cr-body { grid-template-columns: minmax(0, 1fr) 10.5em; grid-template-rows: minmax(0, 1fr) auto; }
  .cr-hero, .cr-offer { grid-column: 1; }
  /* the offer only has the left column here: price and keys on one line, the button full width below
     (side by side, the key count slid under the button, longer in French and German) */
  .cr-offer { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "pay rows" "cta cta"; gap: 0.65em 1em; padding: 0.7em 0.75em 0.75em 0.95em; }
  .cr-pay { grid-area: pay; }
  .cr-rows { grid-area: rows; }
  .mk .cr-cta { grid-area: cta; width: 100%; }
  .cr-row { display: flex; grid-column: 2; grid-row: 1 / 3; gap: 0.5em; }
  .cr-row__h span { display: none; }
  .mk .cr-row__h b { font-size: 0.84em; }
  .cr-grid { grid-template-columns: minmax(0, 1fr); gap: 0.6em; }
  .cr-thumb { aspect-ratio: 2.2; }
  .cr-card__m span { display: none; }
  .cr-card__t { margin-top: 0.1em; font-size: 0.8em; }
  .cr-card { position: relative; }
  .cr-card__m { position: absolute; right: 0; bottom: 0; }
  .cr-card__t { padding-right: 3.2em; }
}
.mk-cta { position: relative; display: flex; align-items: center; justify-content: center; height: 2.45em; margin-top: auto; border: 0; border-radius: 0.6em; background: #a597ff; color: #120c2c; font-size: 0.88em; font-weight: 700; cursor: var(--cur-hand, pointer); box-shadow: inset 0 -0.18em 0 rgba(0, 0, 0, 0.18), 0 0.6em 1.5em -0.5em rgba(165, 151, 255, 0.65); transition: background 0.25s, transform 0.15s, box-shadow 0.25s; }
.mk-cta:hover { transform: translateY(-0.08em); }
.mk-cta__b { display: none; align-items: center; gap: 0.35em; }
.mk-cta.is-done { background: #c8ff3e; color: #0e1300; box-shadow: inset 0 -0.18em 0 rgba(0, 0, 0, 0.18), 0 0.6em 1.5em -0.5em rgba(200, 255, 62, 0.6); }
.mk-cta.is-done .mk-cta__a { display: none; }
.mk-cta.is-done .mk-cta__b { display: inline-flex; animation: mk-pop 0.4s var(--ease-pop); }

/* sales log (how 4) */
.mk-table { display: flex; flex-direction: column; padding: 0.35em 1em 1em; font-size: 0.88em; overflow: hidden; }
.mk-tr { display: grid; grid-template-columns: 1.55fr 0.85fr 0.55fr 1.5fr 0.75fr; align-items: center; gap: 0.8em; height: 2.75em; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.mk-th { height: 2.3em; font-size: 0.74em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6f7580; }
.mk-pl { display: flex; align-items: center; gap: 0.55em; min-width: 0; font-family: var(--f-mono); font-size: 0.9em; color: #d7dae0; white-space: nowrap; overflow: hidden; }
.mk-pl .mk-ava { width: 1.65em; height: 1.65em; }
.mk-codechip { justify-self: start; padding: 0.16em 0.5em; border-radius: 0.35em; background: rgba(200, 255, 62, 0.1); color: #c8ff3e; font-size: 0.8em; letter-spacing: 0.08em; }
.mk-codechip--v { background: rgba(165, 151, 255, 0.14); color: #c9bfff; }
.mk-codechip--s { background: rgba(102, 192, 244, 0.14); color: #8fd3fa; }
.mk-ref { display: flex; align-items: center; gap: 0.6em; min-width: 0; }
.mk-ref i { position: relative; flex: 1; height: 0.42em; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.mk-ref i::after { content: ""; position: absolute; inset: 0; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, #5d636d, #aab0ba); transform-origin: left; }
.mk-ref b { min-width: 3.2em; text-align: right; font-size: 0.8em; color: #9aa0aa; }
.mk-ref.is-done i::after { background: linear-gradient(90deg, #8cc21a, #c8ff3e); }
.mk-ref.is-done b { color: #c8ff3e; }
.mk-c-amt { text-align: right; color: #eef0f3; }
.in-view .mk-tr--new { animation: mk-row 0.7s var(--ease) 0.3s both; }
.in-view .mk-ref i::after { animation: mk-bar 1.1s var(--ease) both; }
.in-view .mk-tr:nth-child(3) .mk-ref i::after { animation-delay: 0.15s; }
.in-view .mk-tr:nth-child(4) .mk-ref i::after { animation-delay: 0.3s; }
.in-view .mk-tr:nth-child(5) .mk-ref i::after { animation-delay: 0.45s; }
.in-view .mk-tr:nth-child(6) .mk-ref i::after { animation-delay: 0.6s; }

/* studio dashboard (how 5) */
.mk-dash { flex-direction: row; }
.mk-side { display: flex; flex-direction: column; gap: 0.2em; width: 9.6em; flex: none; padding: 0.95em 0.6em; border-right: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.015); }
.mk-side__brand { margin: 0 0 0.85em 0.45em; }
.mk-side__brand .mk-pmark { width: 1.7em; height: 1.7em; }
.mk-side > span:not(.mk-side__brand) { display: flex; align-items: center; gap: 0.55em; padding: 0.48em 0.6em; border-radius: 0.45em; font-size: 0.84em; color: #8a909b; white-space: nowrap; }
.mk-side > span.is-on { background: rgba(255, 255, 255, 0.06); color: #fff; }
.mk-dot { width: 0.5em; height: 0.5em; border-radius: 0.15em; background: currentColor; opacity: 0.55; flex: none; }
.mk-side > span.is-on .mk-dot { background: #c8ff3e; opacity: 1; box-shadow: 0 0 0.6em #c8ff3e; }
.mk-dash__main { flex: 1; display: flex; flex-direction: column; gap: 0.8em; min-width: 0; padding: 0.95em 1em; }
.mk-dash__top { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; }
.mk-dash__h { font: 600 1.1em var(--f-display); color: #fff; }
.mk-seg { display: flex; padding: 0.2em; border-radius: 0.6em; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.035); }
.mk-seg button { padding: 0.35em 0.75em; border: 0; border-radius: 0.42em; background: transparent; color: #8a909b; font-size: 0.78em; font-weight: 500; cursor: var(--cur-hand, pointer); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.mk-seg button:hover { color: #d7dae0; }
.mk-seg button.is-on { background: rgba(255, 255, 255, 0.09); color: #fff; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6em; }
.mk-kpis > div { min-width: 0; padding: 0.6em 0.75em; border-radius: 0.65em; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02); }
.mk-kpis .mk-lbl { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-kpis b { display: inline-block; margin-top: 0.2em; font-size: 1.45em; letter-spacing: -0.02em; color: #fff; }
.mk-kpis em { margin-left: 0.4em; font-style: normal; font-size: 0.74em; color: #c8ff3e; }
.mk-dash__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0.6em; min-height: 0; }
.mk-panel { display: flex; flex-direction: column; min-height: 0; padding: 0.65em 0.75em; border-radius: 0.65em; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02); }
.mk-panel__t { margin-bottom: 0.55em; font-size: 0.8em; color: #9aa0aa; }
.mk-bars { flex: 1; display: flex; align-items: flex-end; gap: 0.38em; min-height: 3.5em; }
.mk-bars > span { flex: 1; display: flex; flex-direction: column-reverse; gap: 1px; height: 100%; }
.mk-bars i { height: calc(var(--h) * 52%); border-radius: 0.12em; transform-origin: bottom; transition: height 0.5s var(--ease); }
.mk-bars i:nth-child(1) { background: #c8ff3e; }
.mk-bars i:nth-child(2) { background: #a597ff; }
.mk-bars i:nth-child(3) { background: #3a3f48; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 0.3em 0.9em; margin-top: 0.55em; font-size: 0.72em; color: #8a909b; }
.mk-legend > span { display: inline-flex; align-items: center; gap: 0.35em; }
.mk-legend i { width: 0.6em; height: 0.6em; border-radius: 0.15em; background: #c8ff3e; }
.mk-legend > span:nth-child(2) i { background: #a597ff; }
.mk-legend > span:nth-child(3) i { background: #3a3f48; }
.mk-rank { list-style: none; display: grid; gap: 0.75em; margin: 0; padding: 0; }
.mk-rank li { position: relative; display: flex; align-items: center; gap: 0.5em; padding-bottom: 0.4em; font-size: 0.84em; color: #d7dae0; }
.mk-rank .mk-ava { width: 1.6em; height: 1.6em; font-size: 0.9em; }
.mk-rank b { margin-left: auto; color: #fff; }
.mk-rank em { position: absolute; left: 2.2em; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #c8ff3e, rgba(200, 255, 62, 0.15)); transform: scaleX(var(--w)); transform-origin: left; }
.mk-pay { display: flex; align-items: center; gap: 0.7em; padding: 0.55em 0.8em; border-radius: 0.65em; border: 1px solid rgba(200, 255, 62, 0.18); background: rgba(200, 255, 62, 0.05); font-size: 0.8em; color: #9aa0aa; white-space: nowrap; }
.mk-pay b { margin-left: auto; color: #fff; }
.in-view .mk-bars i { animation: mk-grow 0.8s var(--ease) both; }
.in-view .mk-bars > span:nth-child(n+5) i { animation-delay: 0.1s; }
.in-view .mk-bars > span:nth-child(n+9) i { animation-delay: 0.2s; }
.mk-dash.is-switch .mk-kpis b { animation: mk-pop 0.4s var(--ease-pop); }

/* key requests (features) */
.mk-req .mk-app__bar { gap: 0.55em; }
.mk-badge { display: grid; place-items: center; min-width: 1.55em; height: 1.55em; padding: 0 0.35em; border-radius: 99px; background: rgba(165, 151, 255, 0.18); color: #d3caff; font-size: 0.74em; font-weight: 700; }
.mk-switch { display: flex; align-items: center; gap: 0.45em; margin-left: auto; font-size: 0.74em; color: #9aa0aa; }
.mk-switch i { position: relative; width: 2.2em; height: 1.25em; border-radius: 99px; background: rgba(255, 255, 255, 0.12); flex: none; }
.mk-switch i::after { content: ""; position: absolute; top: 0.17em; left: 0.17em; width: 0.9em; height: 0.9em; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.mk-switch.is-on i { background: #c8ff3e; }
.mk-switch.is-on i::after { transform: translateX(0.95em); background: #0e1300; }
.mk-reqs { list-style: none; display: grid; gap: 0.45em; margin: 0; padding: 0.6em 0.8em; }
.mk-reqs li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.6em; padding: 0.55em 0.6em; border-radius: 0.65em; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02); transition: background 0.3s, border-color 0.3s, opacity 0.3s; }
.mk-req__who { min-width: 0; }
.mk-req__who b { display: block; color: #fff; font-size: 0.92em; }
.mk-req__who > span { display: flex; align-items: center; gap: 0.35em; font-size: 0.74em; color: #8a909b; white-space: nowrap; }
.mk-req__g { padding-left: 0.4em; border-left: 1px solid rgba(255, 255, 255, 0.16); overflow: hidden; text-overflow: ellipsis; }
.mk-req__sold { text-align: right; }
.mk-req__sold b { display: block; color: #c8ff3e; font-size: 0.95em; }
.mk-req__sold span { font-size: 0.66em; color: #7d838d; white-space: nowrap; }
.mk-req__act { display: flex; align-items: center; gap: 0.3em; }
.mk-no, .mk-yes { height: 1.95em; padding: 0 0.7em; border-radius: 0.5em; border: 1px solid rgba(255, 255, 255, 0.12); background: transparent; color: #aab0ba; font-size: 0.74em; font-weight: 600; cursor: var(--cur-hand, pointer); transition: transform 0.12s, background 0.2s; }
.mk-no:hover { background: rgba(255, 255, 255, 0.06); }
.mk-yes { border-color: #c8ff3e; background: #c8ff3e; color: #0e1300; }
.mk-yes:hover { transform: translateY(-0.06em); }
.mk-sent { display: none; align-items: center; gap: 0.3em; color: #c8ff3e; font-size: 0.76em; font-weight: 600; white-space: nowrap; }
.mk-autochip { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.25em 0.6em; border-radius: 99px; background: rgba(165, 151, 255, 0.13); color: #d3caff; font-size: 0.72em; font-weight: 600; white-space: nowrap; }
.mk-reqs li.is-accepted { border-color: rgba(200, 255, 62, 0.32); background: rgba(200, 255, 62, 0.045); }
.mk-reqs li.is-accepted .mk-no, .mk-reqs li.is-accepted .mk-yes { display: none; }
.mk-reqs li.is-accepted .mk-sent { display: inline-flex; animation: mk-pop 0.4s var(--ease-pop); }
.mk-reqs li.is-declined { opacity: 0.38; }

/* ---------- compact layouts for narrow frames ---------- */
@container (max-width: 560px) {
  .ed-body { grid-template-columns: 36% minmax(0, 1fr); }
  .ed-dock--r, .ed-menu, .ed-tab { display: none; }
  .ed-modes { margin-left: 0; }
  .mk-eng__tabs { gap: 0.35em; padding: 0.65em 0.7em 0.55em; }
  .mk-eng__tabs button { flex: 1; justify-content: center; padding: 0 0.4em; font-size: 0.8em; gap: 0.35em; }
  .mk-eng__stage { margin: 0 0.7em 0.7em; }
  .bp-node { min-width: 8.5em; }
  .bp-node--fn { right: 3%; top: 48%; }
  .bp-wire { left: 36%; width: 22%; }
  .mk-dialog--lg { width: 88%; padding: 0.9em 0.9em 0.85em; }
  .mk-dialog--lg .mk-dialog__q { font-size: 1.15em; margin-bottom: 0.65em !important; }
  .mk-tiles { gap: 0.35em; margin-bottom: 0.6em; }
  .mk-tiles button { min-height: 3.6em; font-size: 0.74em; }
  .mk-unlock { top: auto; bottom: calc(100% + 0.5em); }
  .mk-tr { grid-template-columns: 1.4fr 0.8fr 1.3fr 0.75fr; gap: 0.6em; }
  .mk-c-own { display: none; }
  .mk-pl .mk-ava { display: none; }
  .mk-side, .mk-kpi--3, .mk-panel--rank { display: none; }
  .mk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-dash__grid { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 360px) {
  .mk-req__sold span { display: none; }
}

/* ---------- capsules of the founding program ---------- */
.capsule { position: relative; justify-content: center; gap: 4px; }
.capsule__n { position: absolute; top: 9px; left: 12px; font-size: 11px; color: var(--dim); }
.capsule__open { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-body) !important; font-size: 12px !important; color: var(--muted) !important; }
.capsule__open i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); }

@keyframes mk-pop { 0% { opacity: 0; transform: scale(0.85); } 100% { opacity: 1; transform: none; } }
@keyframes mk-notif { from { opacity: 0; transform: translateY(-0.45em) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes mk-dim-in { 0%, 40% { opacity: 0.35; } 100% { opacity: 1; } }
@keyframes mk-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes ed-in { from { opacity: 0; transform: translateX(-0.4em); } to { opacity: 1; transform: none; } }
@keyframes mk-row { 0% { opacity: 0; transform: translateY(-0.6em); background: rgba(200, 255, 62, 0.12); } 60% { opacity: 1; transform: none; background: rgba(200, 255, 62, 0.08); } 100% { background: transparent; } }
@keyframes mk-bar { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk-fill, .mk-fill::after { transition: none; } .is-on > .mk-fill { transform: none; } }

/* ---------- polish pass: app windows float inside the frame, away from the HUD corners ---------- */
.slot--ui .hud { inset: 9px; --s: 15px; }
.mk-hc, .mk-earn, .mk-app { inset: 1.45em; border-radius: 0.8em; border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 1.6em 3.2em -1.4em rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.35); }
.slot--ui:has(.mk-earn) { background: radial-gradient(90% 70% at 85% 0%, rgba(165, 151, 255, 0.24), transparent 70%), linear-gradient(180deg, #110f18, #0b0a10); }
.slot--ui:has(.mk-app) { background: radial-gradient(90% 70% at 50% 0%, rgba(200, 255, 62, 0.08), transparent 70%), linear-gradient(180deg, #0f1216, #0a0c0f); }
.slot--ui:has(.mk-cr), .slot--ui:has(.mk-req) { background: radial-gradient(90% 70% at 50% 0%, rgba(165, 151, 255, 0.16), transparent 70%), linear-gradient(180deg, #100f16, #0a0a0f); }
.slot--ui:has(.mk-eng) { background: radial-gradient(90% 60% at 50% 0%, rgba(200, 255, 62, 0.07), transparent 70%), #0b0d11; }
.mk-eng { background: transparent; }
.mk-eng__tabs { padding: 1.4em 1.45em 0.75em; }
.mk-eng__stage { margin: 0 1.45em 1.45em; }
.mk-dialog { background: rgba(21, 13, 37, 0.97); }
.mk-earn__list { list-style: none; display: grid; gap: 0.35em; margin: 0; padding: 0; }
.mk-earn__list li { display: flex; align-items: center; gap: 0.55em; font-size: 0.8em; color: #cfcae6; }
.mk-earn__list .mk-cap { width: 2.7em; border-radius: 0.2em; }
.mk-earn__list b { margin-left: auto; color: #cfc6ff; }
.mk-table { flex: 1; }
.mk-tr:not(.mk-th) { flex: 1; height: auto; min-height: 2.2em; max-height: 3.4em; }
.ed-canvas { position: relative; display: grid; place-items: center; width: 84%; aspect-ratio: 16 / 9; overflow: hidden; box-shadow: 0 0 0 1px #8b7cf0, 0 1em 2em rgba(0, 0, 0, 0.4); }
.ed-canvas .mk-scene { position: absolute; inset: 0; }
.ed-canvas .ed-preview { position: relative; width: 68%; }
.mk-ed--unity .ed-canvas { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 1em 2em rgba(0, 0, 0, 0.4); }
.mk-reqs li.is-filtered { opacity: 0.62; }
.mk-filtchip { padding: 0.25em 0.6em; border-radius: 99px; border: 1px dashed rgba(255, 255, 255, 0.18); color: #8a909b; font-size: 0.72em; white-space: nowrap; }

.mk-bars i { height: calc(var(--h) * 74%); }
.mk-dash__grid .mk-panel:first-child { min-height: 9em; }

/* ---------- features bento: 6-column grid, a live interface on top of every card ---------- */
.bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; }
.bento > .card--big { grid-column: span 4; }
.bento > .card--receipt { grid-column: span 2; display: flex; flex-direction: column; }
.card--receipt .receipt { margin-top: auto; }
.bx { display: flex; flex-direction: column; padding: 0; }
.bx--src { grid-column: span 4; }
.bx--ver { grid-column: span 2; grid-row: span 2; }
.bx--demo, .bx--fps { grid-column: span 2; }
.bx--native, .bx--pay { grid-column: span 3; }
.bx__vis { position: relative; display: grid; place-items: center; height: 204px; margin: 10px 10px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(rgba(12, 14, 17, 0.07) 1px, transparent 1.3px) 0 0 / 16px 16px, linear-gradient(180deg, #f8f9f5, #eff1eb); }
.bx--ver .bx__vis { flex: 1; height: auto; min-height: 330px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px; }
.bx__txt { padding: 20px 24px 24px; }
.bx__txt .h3 { margin: 12px 0 8px; }
.bx-w { border: 1px solid rgba(12, 14, 17, 0.08); border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(12, 14, 17, 0.03), 0 14px 30px -18px rgba(12, 14, 17, 0.38); color: var(--text); font-size: 13px; }
.bx .mk-ico { width: 1em; height: 1em; }
.bx-yt { height: 11px; width: auto; }
.bx-tw { height: 13px; width: auto; }
.bx-kk { height: 11px; width: auto; border-radius: 2.5px; }
.bx:not(.is-visible) * { animation-play-state: paused !important; }

/* sources */
.bx-src { width: min(92%, 540px); padding: 14px 16px 13px; }
.bx-w__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.bx-w__h b { font-size: 13px; font-weight: 600; }
.bx-pill { padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); background: #f3f4f0; color: var(--muted); font-size: 11px; }
.bx-src__rows { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.bx-src__rows li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 38px; align-items: center; gap: 10px; font-size: 12.5px; }
.bx-src__rows li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.bx-src__rows i { position: relative; height: 8px; border-radius: 99px; background: #eef0ea; overflow: hidden; }
.bx-src__rows i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100% / 0.38); border-radius: inherit; background: var(--c); transform-origin: left; box-shadow: inset 0 0 0 1px rgba(12, 14, 17, 0.06); }
.bx-src__rows b { text-align: right; font-size: 12px; color: var(--text); }
.in-view .bx-src__rows i::after { animation: mk-bar 1.1s var(--ease) both; }
.in-view .bx-src__rows li:nth-child(2) i::after { animation-delay: 0.1s; }
.in-view .bx-src__rows li:nth-child(3) i::after { animation-delay: 0.2s; }
.in-view .bx-src__rows li:nth-child(4) i::after { animation-delay: 0.3s; }
.in-view .bx-src__rows li:nth-child(5) i::after { animation-delay: 0.4s; }

/* verified creators */
.bx-prof { width: 100%; padding: 14px; }
.bx-prof__id { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.bx-prof__id .mk-ava { width: 42px; height: 42px; font-size: 16px; }
.bx-prof__id b { display: block; font-size: 15px; }
.bx-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 8px 2px 5px; border-radius: 99px; background: rgba(22, 117, 179, 0.1); color: #1675b3; font-size: 11px; font-weight: 600; }
.bx-badge .mk-ico { width: 11px; height: 11px; }
.bx-acc { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.bx-acc li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; background: #f5f6f2; font-size: 12.5px; }
.bx-acc b { margin-left: auto; font-size: 12px; color: var(--muted); }
.bx-ok { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #c8ff3e; color: #0e1300; flex: none; }
.bx-ok .mk-ico { width: 11px; height: 11px; }
.bx-rule { width: 100%; padding: 12px 14px; }
.bx-rule__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bx-rule__h b { font-size: 13px; font-weight: 600; }
.bx .mk-switch { margin-left: 0; font-size: 14px; cursor: var(--cur-hand, pointer); }
.bx .mk-switch i { background: #dfe2da; }
.bx .mk-switch.is-on i { background: #c8ff3e; box-shadow: inset 0 0 0 1px rgba(61, 106, 0, 0.35); }
.bx-rule__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bx-rule__chips > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); background: #f3f4f0; font-size: 12px; color: var(--text); }

/* demo to sale */
.bx-tl { display: flex; align-items: center; width: 92%; }
.bx-tl__node { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 104px; padding: 13px 12px; text-align: center; }
.bx-tl__k { font-size: 12px; font-weight: 600; color: var(--muted); }
.bx .bx-key { min-height: 34px; padding: 6px 11px 9px; font-size: 13px; color: #eef0f3; }
.bx-tl__node--sale { border-color: rgba(84, 140, 0, 0.35); background: linear-gradient(180deg, rgba(200, 255, 62, 0.26), #fff 80%); }
.bx-tl__node--sale b { font-size: 17px; color: #3d6a00; }
.bx-tl__link { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0 6px; min-width: 0; }
.bx-tl__link i { width: 100%; height: 2px; background: repeating-linear-gradient(90deg, #9aa0aa 0 5px, transparent 5px 9px); background-size: 9px 2px; }
.bx-tl__link span { font-size: 11px; color: var(--dim); white-space: nowrap; }
.in-view .bx-tl__link i { animation: flow 0.9s linear infinite; }

/* zero lag */
.bx-fps { position: relative; width: 86%; padding: 14px 16px 12px; }
.bx-fps__num { display: flex; align-items: baseline; gap: 6px; }
.bx-fps__num b { font-size: 34px; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.bx-fps__num span { font-size: 12px; font-weight: 600; color: var(--muted); }
.bx-fps__graph { display: block; width: 100%; height: 56px; margin-top: 6px; }
.bx-fps__line { fill: none; stroke: #3d6a00; stroke-width: 2; vector-effect: non-scaling-stroke; }
.bx-fps__area { fill: rgba(200, 255, 62, 0.4); }
.bx-fps__mark { position: absolute; left: 18%; bottom: 16px; display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 6px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--muted); white-space: nowrap; }
.bx-fps__mark i { width: 7px; height: 7px; border-radius: 50%; background: #5a49d8; box-shadow: 0 0 0 3px rgba(90, 73, 216, 0.15); }

/* feels native: the same screen in three game styles */
.bx--native .bx__vis { height: 224px; }
.bx-themes { position: relative; width: 100%; height: 100%; }
.bx-mini { position: absolute; left: 50%; top: 45%; width: 216px; padding: 12px 12px 11px; border-radius: 6px; text-align: center; box-shadow: 0 18px 36px -20px rgba(12, 14, 17, 0.55); transform: translate(-50%, -50%) translateX(var(--x, 0px)) rotate(var(--r, 0deg)) scale(var(--s, 1)); transition: transform 0.6s var(--ease), opacity 0.6s, filter 0.6s; }
.bx-mini b { display: block; margin-bottom: 8px; font-size: 11px; line-height: 1.25; }
.bx-mini__opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 7px; }
.bx-mini__opts i { height: 12px; border-radius: 2px; }
.bx-mini__code { display: block; height: 21px; line-height: 21px; border-radius: 3px; font-size: 10px; letter-spacing: 0.22em; }
.bx-mini[data-pos="0"], .bx-mini:nth-child(1):not([data-pos]) { --x: 0px; --r: 0deg; --s: 1; z-index: 3; opacity: 1; }
.bx-mini[data-pos="1"], .bx-mini:nth-child(2):not([data-pos]) { --x: 118px; --r: 7deg; --s: 0.84; z-index: 2; opacity: 0.72; filter: saturate(0.7); }
.bx-mini[data-pos="2"], .bx-mini:nth-child(3):not([data-pos]) { --x: -118px; --r: -7deg; --s: 0.84; z-index: 1; opacity: 0.72; filter: saturate(0.7); }
.bx-mini--pixel { background: #1c1430; border: 3px solid #f1e6c8; color: #fff5dc; font-family: var(--f-display); }
.bx-mini--pixel .bx-mini__opts i { background: #3a2d52; }
.bx-mini--pixel .bx-mini__opts i:first-child { background: #33300f; box-shadow: inset 0 0 0 1.5px #c8ff3e; }
.bx-mini--pixel .bx-mini__code { background: #0e0a18; color: #fff; }
.bx-mini--fantasy { background: linear-gradient(180deg, #f8e9c4, #ebd29b); border: 2px solid #8a5a2b; border-radius: 12px; color: #4a2d12; font-family: Georgia, "Times New Roman", serif; }
.bx-mini--fantasy b { font-style: italic; }
.bx-mini--fantasy .bx-mini__opts i { background: rgba(138, 90, 43, 0.18); border: 1px solid rgba(138, 90, 43, 0.4); border-radius: 6px; }
.bx-mini--fantasy .bx-mini__opts i:first-child { background: #8a5a2b; }
.bx-mini--fantasy .bx-mini__code { border: 1px solid #8a5a2b; border-radius: 8px; background: #fff8e6; color: #4a2d12; }
.bx-mini--scifi { background: rgba(6, 18, 28, 0.97); border: 1px solid #22d3ee; border-radius: 2px; color: #a5f3fc; font-family: var(--f-mono); box-shadow: 0 0 22px rgba(34, 211, 238, 0.35), 0 18px 36px -20px rgba(12, 14, 17, 0.55); }
.bx-mini--scifi b { font-weight: 500; letter-spacing: 0.02em; }
.bx-mini--scifi .bx-mini__opts i { border: 1px solid rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.1); border-radius: 0; }
.bx-mini--scifi .bx-mini__opts i:first-child { background: rgba(34, 211, 238, 0.5); }
.bx-mini--scifi .bx-mini__code { border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 0; background: rgba(34, 211, 238, 0.08); color: #22d3ee; }
.bx-swatch { position: absolute; left: 50%; bottom: 12px; display: flex; gap: 9px; transform: translateX(-50%); z-index: 4; }
.bx-swatch button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(12, 14, 17, 0.2); cursor: var(--cur-hand, pointer); transition: box-shadow 0.2s, transform 0.2s; }
.bx-swatch button:nth-child(1) { background: #5d4a86; }
.bx-swatch button:nth-child(2) { background: #b07a3c; }
.bx-swatch button:nth-child(3) { background: #22d3ee; }
.bx-swatch button.is-on { box-shadow: 0 0 0 2px #0c0e11; transform: scale(1.1); }

/* payouts */
.bx--pay .bx__vis { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.bx-cur { display: grid; gap: 8px; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.bx-cur__row { display: flex; gap: 8px; width: max-content; animation: marquee 24s linear infinite; }
.bx-cur__row--b { animation-duration: 28s; animation-direction: reverse; }
.bx-cur__row span { padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line); background: #fff; box-shadow: 0 6px 14px -10px rgba(12, 14, 17, 0.4); color: var(--text); font: 600 12px var(--f-mono); white-space: nowrap; }
.bx-pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bx-pay__ok { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 9px; border-radius: 99px; background: rgba(200, 255, 62, 0.4); color: #2f5200; font-size: 12px; font-weight: 600; }
.bx-pay__ok .mk-ico { width: 12px; height: 12px; }
.bx-pay__st { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: #fff; }
.bx-pay__st img { height: 15px; width: auto; }

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .card--big, .bx--native, .bx--pay, .bx--src { grid-column: span 2; }
  .bento > .card--receipt, .bx--ver, .bx--demo, .bx--fps { grid-column: span 1; }
  .bx--ver { grid-row: span 2; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > .card, .bento > .bx { grid-column: auto; grid-row: auto; }
  .bx--ver .bx__vis { min-height: 0; }
  .bx-mini { width: 190px; }
  .bx-mini[data-pos="1"], .bx-mini:nth-child(2):not([data-pos]) { --x: 92px; }
  .bx-mini[data-pos="2"], .bx-mini:nth-child(3):not([data-pos]) { --x: -92px; }
}

.bx-fps__area { fill: url(#fpsg); }
.bx-fps__grid { stroke: rgba(12, 14, 17, 0.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bx-fps__mark { left: auto; right: 16px; top: 18px; bottom: auto; }
.bx-block { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; }
.bx-block__ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(224, 87, 74, 0.12); color: #d0453a; font-size: 12px; font-weight: 700; flex: none; }
.bx-block__who { min-width: 0; }
.bx-block__who b { display: block; font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.bx-block__who span { font-size: 11px; color: var(--dim); }
.bx-block__tag { margin-left: auto; padding: 3px 9px; border-radius: 99px; background: rgba(224, 87, 74, 0.12); color: #c0392b; font-size: 11px; font-weight: 600; white-space: nowrap; }

/* offscreen interfaces are not rendered until they get close to the viewport (faster first paint) */
.flow .slot--ui, .bento .slot--ui { content-visibility: auto; }

.bp-wire { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; pointer-events: none; }
