/*
 * The animated how-to guide ([mobius_guide], inc/guide_page.php).
 * Everything is scoped under .mbx-guide. Colours and type come from the theme's
 * variables (--ms-*, --mbx-*) with fallbacks, so the page follows the site.
 * The miniature players (.mg-mini) are sized in em from one container-relative
 * font-size, so they scale as one piece from a phone to a wide monitor.
 */
.mbx-guide {
  --g-ground: var(--ms-ground, #000);
  --g-ink: var(--ms-text, #e9eef3);
  --g-dim: var(--ms-text-dim, #97a3b0);
  --g-ice: var(--mbx-ice, var(--ms-accent, #8ad8ff));
  --g-line: rgba(255, 255, 255, .1);
  --g-card: #090c11;
  --g-serif: var(--mbx-serif, "Cormorant Garamond", "Hiragino Mincho ProN", serif);
  --g-sans: var(--mbx-sans, "Figtree", system-ui, -apple-system, "Hiragino Sans", sans-serif);
  --g-row1: #4398b6;
  --g-row2: #3d8eab;
  --g-row3: #307891;
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 20px 40px;
  color: var(--g-ink);
  font-family: var(--g-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.mbx-guide *, .mbx-guide *::before, .mbx-guide *::after { box-sizing: border-box; }
.mbx-guide p { margin: 0; }
.mbx-guide img { max-width: none; }
/* The theme underlines every link in page content with a bottom border; these are buttons and cards. */
.mbx-guide.mbx-guide.mbx-guide.mbx-guide a.mg-cta { border: 0; text-decoration: none; }
.mbx-guide.mbx-guide.mbx-guide.mbx-guide .mg-toc a { border: 1px solid transparent; text-decoration: none; }
.mbx-guide.mbx-guide.mbx-guide.mbx-guide a.mg-recipe { border: 1px solid var(--g-line); text-decoration: none; }
.mbx-guide.mbx-guide.mbx-guide.mbx-guide a.mg-recipe:hover { border-color: color-mix(in srgb, var(--g-ice) 60%, transparent); }
.mbx-guide .mg-defs { position: absolute; width: 0; height: 0; }
.mbx-guide .mg-ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.mbx-guide--ja { line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }

/* ── Opening ─────────────────────────────────────────────── */
.mbx-guide .mg-hero { padding: clamp(48px, 9vw, 110px) 0 28px; text-align: center; }
.mbx-guide .mg-eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--g-ice);
}
.mbx-guide h1 {
  margin: 14px auto 0; max-width: 16em;
  font-family: var(--g-serif); font-weight: 500; font-size: clamp(38px, 6.4vw, 76px); line-height: 1.06; letter-spacing: -.01em;
  color: var(--ms-heading, #fff);
}
.mbx-guide--ja h1 { font-size: clamp(32px, 5.2vw, 60px); line-height: 1.3; }
.mbx-guide .mg-intro { max-width: 40em; margin: 22px auto 30px; color: var(--g-dim); font-size: clamp(16px, 1.6vw, 19px); }
.mbx-guide .mg-cta {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.5em; border-radius: 999px;
  background: var(--g-ice); color: #04121a; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mbx-guide .mg-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 34px -10px var(--g-ice); }
.mbx-guide .mg-cta .mg-ic { transition: transform .25s ease; }
.mbx-guide .mg-cta:hover .mg-ic { transform: translateX(3px); }

.mbx-guide .mg-quick {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; counter-reset: q;
}
.mbx-guide .mg-quick li {
  counter-increment: q; position: relative;
  padding: 22px 22px 24px; border: 1px solid var(--g-line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0));
  display: grid; gap: 6px; align-content: start;
}
.mbx-guide .mg-quick li::after {
  content: counter(q); position: absolute; right: 20px; top: 12px;
  font-family: var(--g-serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--g-ice); opacity: .35;
}
.mbx-guide .mg-quick-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px;
  background: color-mix(in srgb, var(--g-ice) 14%, transparent); color: var(--g-ice);
}
.mbx-guide .mg-quick-ic .mg-ic { width: 24px; height: 24px; }
.mbx-guide .mg-quick b { font-size: 19px; font-weight: 600; color: #fff; }
.mbx-guide .mg-quick span:last-child { color: var(--g-dim); font-size: 15px; line-height: 1.5; }

/* ── Jump bar ────────────────────────────────────────────── */
.mbx-guide .mg-toc {
  position: sticky; top: var(--mg-top, 0px); z-index: 20;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 34px -20px 0; padding: 10px 20px;
  background: color-mix(in srgb, var(--g-ground) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-block: 1px solid var(--g-line);
}
.mbx-guide .mg-toc::-webkit-scrollbar { display: none; }
.mbx-guide .mg-toc a {
  flex: none; display: inline-flex; align-items: center; gap: .45em;
  padding: .5em .95em; border-radius: 999px; border: 1px solid transparent;
  color: var(--g-dim); font-size: 13.5px; text-decoration: none; white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
}
.mbx-guide .mg-toc a .mg-ic { width: 1.1em; height: 1.1em; }
.mbx-guide .mg-toc a:hover { color: #fff; }
.mbx-guide .mg-toc a.is-here { color: #04121a; background: var(--g-ice); }

/* ── Lessons ─────────────────────────────────────────────── */
.mbx-guide .mg-sec { padding: clamp(64px, 9vw, 120px) 0 0; scroll-margin-top: calc(var(--mg-top, 0px) + 56px); }
.mbx-guide .mg-head { position: relative; max-width: 46em; margin-bottom: 34px; }
.mbx-guide .mg-num {
  display: block; font-family: var(--g-serif); font-style: italic; font-size: clamp(54px, 8vw, 92px); line-height: .9;
  color: var(--g-ice); opacity: .9; margin-bottom: 10px;
}
.mbx-guide .mg-head h2 {
  margin: 10px 0 0; font-family: var(--g-serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; color: #fff;
}
.mbx-guide--ja .mg-head h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.35; }
.mbx-guide .mg-lead { margin-top: 14px; color: var(--g-dim); font-size: clamp(16px, 1.5vw, 19px); }
.mbx-guide .mg-lead:empty { display: none; }
.mbx-guide .mg-h3 { margin: 56px 0 6px; font-family: var(--g-serif); font-weight: 500; font-size: clamp(24px, 3vw, 32px); color: #fff; }
.mbx-guide .mg-sub { color: var(--g-dim); margin-bottom: 20px; max-width: 44em; }
.mbx-guide .mg-fine { color: var(--g-dim); font-size: 14px; }

.mbx-guide .mg-tip, .mbx-guide .mg-note {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 18px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--g-ice) 22%, transparent);
  background: color-mix(in srgb, var(--g-ice) 6%, transparent);
  font-size: 15.5px; line-height: 1.6;
}
.mbx-guide .mg-tip > .mg-ic, .mbx-guide .mg-note > .mg-ic { color: var(--g-ice); width: 22px; height: 22px; margin-top: 2px; }
.mbx-guide .mg-tip b, .mbx-guide .mg-note b { color: #fff; font-weight: 600; }
.mbx-guide .mg-note p { color: var(--g-dim); margin-top: 4px; }
.mbx-guide .mg-ticks { list-style: none; margin: 8px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.mbx-guide .mg-ticks li::before { content: "✓"; color: var(--g-ice); margin-right: .6em; }

/* ── The demo frame ──────────────────────────────────────── */
.mbx-guide .mg-demo { margin: 0; }
.mbx-guide .mg-demo figcaption { margin-top: 16px; display: flex; gap: 18px; align-items: flex-start; }
.mbx-guide .mg-caps { flex: 1; list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mbx-guide .mg-caps li {
  counter-increment: c; position: relative; padding: 12px 12px 12px 44px; border-radius: 12px;
  border: 1px solid var(--g-line); color: var(--g-dim); font-size: 14.5px; line-height: 1.5;
  transition: color .35s, border-color .35s, background .35s;
}
.mbx-guide .mg-caps li::before {
  content: counter(c); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.08); color: var(--g-dim); transition: background .35s, color .35s;
}
.mbx-guide .mg-caps li b { color: #fff; font-weight: 600; }
.mbx-guide .mg-caps li.is-now { color: var(--g-ink); border-color: color-mix(in srgb, var(--g-ice) 55%, transparent); background: color-mix(in srgb, var(--g-ice) 8%, transparent); }
.mbx-guide .mg-caps li.is-now::before { background: var(--g-ice); color: #04121a; }
.mbx-guide .mg-replay {
  flex: none; display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  padding: .6em 1em; border-radius: 999px; border: 1px solid var(--g-line); background: none;
  color: var(--g-dim); font: inherit; font-size: 13.5px; white-space: nowrap; transition: color .2s, border-color .2s;
}
.mbx-guide .mg-replay:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.mbx-guide.is-still .mg-replay, .mbx-guide.is-still .mg-ptr { display: none; }

/* ── Miniature player ────────────────────────────────────── */
.mbx-guide .mg-mini {
  container-type: inline-size; position: relative; flex: 1; min-width: 0;
  border-radius: 14px; overflow: hidden; background: #05070a;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 90px -50px color-mix(in srgb, var(--g-ice) 60%, transparent), 0 2px 0 rgba(255,255,255,.04) inset;
}
.mbx-guide .mg-chrome {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #14181f;
  transition: height .6s cubic-bezier(.6,0,.2,1), opacity .4s; overflow: hidden;
}
.mbx-guide .mg-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #333a45; }
.mbx-guide .mg-chrome span { margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: #0b0e13; color: #7d8794; font-size: 11px; }
.mbx-guide .mg-mini.is-full .mg-chrome { height: 0; opacity: 0; }
.mbx-guide .mg-screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; font-size: 1.5cqw; line-height: 1.2; color: #fff;
  background: radial-gradient(120% 90% at 30% 20%, #1c4a63, #0a1220 60%, #05070a);
  font-family: var(--g-sans); user-select: none;
}
.mbx-guide .mg-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.mbx-guide .mg-pic.is-on { opacity: 1; }
.mbx-guide .mg-pic:not([src]) { visibility: hidden; }
.mbx-guide .mg-screen .mg-pic { animation: mg-drift 26s ease-in-out infinite alternate; transition: opacity 1.1s ease; }
.mbx-guide .mg-screen.is-paused .mg-pic { animation-play-state: paused; }
@keyframes mg-drift { from { transform: scale(1.04) translate(-1%, 0); } to { transform: scale(1.16) translate(1.5%, -1.5%); } }

.mbx-guide .mg-cats { position: relative; z-index: 3; transition: opacity .6s; }
.mbx-guide .mg-row { display: flex; align-items: center; gap: 1.1em; height: 2.9em; padding: 0 2.2em; white-space: nowrap; overflow: hidden; }
.mbx-guide .mg-row b { font-weight: 400; font-size: 1.12em; padding: .22em .62em; border-radius: .5em; color: rgba(255,255,255,.88); transition: background .25s, color .25s; }
.mbx-guide .mg-row b.on { background: #000; color: #fff; }
.mbx-guide .mg-row1 { background: var(--g-row1); }
.mbx-guide .mg-row2 { background: var(--g-row2); height: 0; transition: height .45s cubic-bezier(.3,.7,.2,1); }
.mbx-guide .mg-row3 { background: var(--g-row3); }
.mbx-guide .mg-row2 b { display: none; }
.mbx-guide .mg-row2 b.show { display: inline-block; }
.mbx-guide .mg-cats.has-sub .mg-row2 { height: 2.9em; }

.mbx-guide .mg-wm { position: absolute; z-index: 2; left: 2.4em; top: 2em; display: grid; gap: .25em; text-shadow: 0 1px 6px rgba(0,0,0,.35); opacity: .85; transition: top .45s cubic-bezier(.3,.7,.2,1); }
.mbx-guide .mg-wm span:first-child { font-size: 1.5em; letter-spacing: .08em; }
.mbx-guide .mg-wm span:last-child { font-size: .78em; letter-spacing: .2em; }
.mbx-guide .mg-logo { position: absolute; z-index: 2; right: 2em; top: 1.4em; height: 6.4em; width: 5.5em; object-fit: cover; object-position: 49% 50%; transition: top .45s cubic-bezier(.3,.7,.2,1), opacity .6s; }
.mbx-guide .mg-cats ~ .mg-wm { top: 7.6em; }
.mbx-guide .mg-cats ~ .mg-logo { top: 7em; }
.mbx-guide .mg-cats.has-sub ~ .mg-wm { top: 10.5em; }
.mbx-guide .mg-cats.has-sub ~ .mg-logo { top: 9.9em; }

.mbx-guide .mg-ovtext {
  position: absolute; z-index: 2; left: 50%; top: 21%; transform: translate(-50%, -50%);
  font-size: 2.4em; font-weight: 700; letter-spacing: .04em; white-space: nowrap; text-shadow: 0 2px 14px rgba(0,0,0,.45);
  transition: font-size .2s linear, left 1.1s cubic-bezier(.45,0,.2,1), top 1.1s cubic-bezier(.45,0,.2,1);
}
.mbx-guide .mg-ovtext.is-held { outline: 1px dashed rgba(255,255,255,.7); outline-offset: .3em; }

.mbx-guide .mg-ui { position: absolute; z-index: 4; inset: auto 0 0 0; padding: 0 .8em; background: linear-gradient(180deg, transparent, rgba(4,6,10,.82) 55%); transition: opacity .7s; }
.mbx-guide .mg-screen.ui-hidden .mg-ui, .mbx-guide .mg-screen.ui-hidden .mg-cats, .mbx-guide .mg-screen.ui-hidden .mg-logo { opacity: 0; }
.mbx-guide .mg-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.mbx-guide .mg-tabs span {
  padding: .75em .9em; border-radius: .5em; background: rgba(17,21,28,.92); border: 1px solid rgba(255,255,255,.08);
  font-size: .82em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color .25s, background .25s;
}
.mbx-guide .mg-tabs span.on { border-color: var(--g-ice); background: #161c26; }
.mbx-guide .mg-bar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 5.4em; }
.mbx-guide .mg-title { font-size: .8em; color: rgba(255,255,255,.75); padding-left: .4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbx-guide .mg-ctl { display: flex; align-items: center; gap: 2.4em; }
.mbx-guide .mg-ctl b, .mbx-guide .mg-right b { display: grid; place-items: center; border-radius: .5em; transition: background .2s, transform .15s; }
.mbx-guide .mg-ctl b { width: 3em; height: 3em; }
.mbx-guide .mg-ctl b .mg-ic { width: 2em; height: 2em; }
.mbx-guide .mg-ctl b[data-b="play"] .mg-ic { width: 2.9em; height: 2.9em; }
.mbx-guide .mg-i-play, .mbx-guide .mg-screen.is-paused .mg-i-pause { display: none; }
.mbx-guide .mg-screen.is-paused .mg-i-play { display: block; }
.mbx-guide .mg-right { justify-self: end; display: flex; align-items: center; gap: 1.1em; padding-right: .6em; position: relative; }
.mbx-guide .mg-right b[data-b="q"] { font-size: .9em; font-weight: 700; padding: .45em 1em; border: 1px solid rgba(255,255,255,.35); border-radius: .4em; }
.mbx-guide .mg-right b[data-b="fs"] .mg-ic { width: 2em; height: 2em; }
.mbx-guide .mg-bar b.is-hit { background: rgba(255,255,255,.18); transform: scale(.94); }
.mbx-guide .mg-qmenu {
  position: absolute; right: 3.6em; bottom: 3.2em; display: grid; min-width: 6.5em; padding: .35em; border-radius: .5em;
  background: #12161d; border: 1px solid rgba(255,255,255,.12); opacity: 0; transform: translateY(.5em); transition: opacity .25s, transform .25s; pointer-events: none;
}
.mbx-guide .mg-qmenu.open { opacity: 1; transform: none; }
.mbx-guide .mg-qmenu i { font-style: normal; font-size: .85em; padding: .4em .7em; border-radius: .35em; color: rgba(255,255,255,.8); }
.mbx-guide .mg-qmenu i:first-child { background: color-mix(in srgb, var(--g-ice) 26%, transparent); color: #fff; }

/* panel bodies inside the miniature */
.mbx-guide .mg-pb {
  position: absolute; bottom: calc(100% + .6em); width: calc((100% - 3em) / 3);
  padding: 1em 1em .8em; border-radius: .6em; background: rgba(17,21,28,.96); border: 1px solid rgba(255,255,255,.1);
  display: grid; gap: .55em; opacity: 0; transform: translateY(.8em); transition: opacity .35s, transform .35s; pointer-events: none;
}
.mbx-guide .mg-pb.open { opacity: 1; transform: none; }
.mbx-guide .mg-pb-visual { left: .8em; }
.mbx-guide .mg-pb-overlay { left: calc(.8em + (100% - 3em) / 3 + .7em); }
.mbx-guide .mg-pb-presets { right: .8em; }
.mbx-guide .mg-ptitle { font-size: .72em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #cfd8e3; }
.mbx-guide .mg-srow { display: grid; grid-template-columns: 1fr auto; row-gap: .5em; }
.mbx-guide .mg-slabel { font-size: .72em; color: #9aa6b4; }
.mbx-guide .mg-sval { font-size: .72em; font-weight: 700; color: #6cc1de; }
.mbx-guide .mg-sl { grid-column: 1 / -1; position: relative; height: .22em; border-radius: 1em; background: #2a3440; margin: .3em .5em .35em; }
.mbx-guide .mg-sl u { position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 1em; height: 1em; margin: -.5em 0 0 -.5em; border-radius: 50%; background: #4aa5c6; box-shadow: 0 0 0 0 rgba(74,165,198,.5); transition: box-shadow .2s; }
.mbx-guide .mg-sl.is-held u { box-shadow: 0 0 0 .45em rgba(74,165,198,.3); }
.mbx-guide .mg-sl.mg-rainbow { margin-bottom: .8em; }
.mbx-guide .mg-sl.mg-rainbow::after { content: ""; position: absolute; left: -.5em; right: -.5em; top: .55em; height: .3em; border-radius: 1em; background: linear-gradient(90deg, #f33, #fc3, #3f6, #3cf, #36f, #c3f, #f36); }
.mbx-guide .mg-frow { display: flex; align-items: center; gap: .6em; }
.mbx-guide .mg-input { flex: 1; min-width: 0; height: 2.3em; padding: 0 .7em; display: flex; align-items: center; border-radius: .4em; background: #05070a; border: 1px solid #2a3440; font-size: .85em; white-space: nowrap; overflow: hidden; transition: border-color .2s; }
.mbx-guide .mg-input:empty::before { content: attr(data-ph); color: #5b6673; }
.mbx-guide .mg-input.is-focus { border-color: var(--g-ice); }
.mbx-guide .mg-input.is-focus::after { content: ""; width: 1px; height: 1.1em; margin-left: 1px; background: #fff; animation: mg-blink 1s steps(1) infinite; }
@keyframes mg-blink { 50% { opacity: 0; } }
.mbx-guide .mg-toggle { flex: none; width: 2.6em; height: 1.4em; border-radius: 1em; background: #2a3440; position: relative; transition: background .25s; }
.mbx-guide .mg-toggle::after { content: ""; position: absolute; top: .2em; left: .2em; width: 1em; height: 1em; border-radius: 50%; background: #fff; transition: transform .25s; }
.mbx-guide .mg-toggle.on { background: #4aa5c6; }
.mbx-guide .mg-toggle.on::after { transform: translateX(1.2em); }
.mbx-guide .mg-btn { flex: 1; height: 2.3em; display: grid; place-items: center; border-radius: .4em; background: #fff; color: #05070a; font-size: .85em; font-weight: 700; transition: transform .15s, background .25s; }
.mbx-guide .mg-btn-save { flex: none; padding: 0 1.1em; }
.mbx-guide .mg-btn.is-hit { transform: scale(.94); background: var(--g-ice); }
.mbx-guide .mg-select { position: relative; height: 2.2em; padding: 0 .7em; display: flex; align-items: center; border-radius: .4em; background: #05070a; border: 1px solid #2a3440; font-size: .82em; }
.mbx-guide .mg-select em { font-style: normal; flex: 1; white-space: nowrap; overflow: hidden; }
.mbx-guide .mg-select::after { content: "⌄"; color: #9aa6b4; margin-top: -.4em; }
.mbx-guide .mg-select ul { list-style: none; margin: 0; padding: .3em; position: absolute; z-index: 2; left: -1px; right: -1px; top: 100%; border-radius: .4em; background: #1a212b; border: 1px solid #334050; display: none; }
.mbx-guide .mg-select.open ul { display: block; }
.mbx-guide .mg-select li { padding: .45em .6em; border-radius: .3em; display: none; }
.mbx-guide .mg-select li.has { display: block; }
.mbx-guide .mg-select li.is-hit { background: #4aa5c6; }
.mbx-guide .mg-ptitle-qr { margin-top: .3em; }
.mbx-guide .mg-qrbox { justify-self: center; width: 46%; padding: .5em; background: #fff; border-radius: .5em; display: block; transition: box-shadow .4s; }
.mbx-guide .mg-qrbox.is-seen { box-shadow: 0 0 0 .3em var(--g-ice), 0 0 2.5em var(--g-ice); }
.mbx-guide .mg-qr { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }

/* the pointer */
.mbx-guide .mg-ptr {
  position: absolute; z-index: 9; left: 0; top: 0; width: 27px; height: 27px; margin: -4px 0 0 -6px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8.5-6.200 1.300L16.500 20l-2.800 1.300-3.600-7.100L5.500 18z' fill='%23fff' stroke='%23000' stroke-width='1.300' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 0 0 / contain;
  transform: translate(var(--px, 60%), var(--py, 60%)); opacity: 0;
  transition: transform .9s cubic-bezier(.5,0,.15,1), opacity .4s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.mbx-guide .mg-ptr.is-on { opacity: 1; }
.mbx-guide .mg-ptr.is-drag { transition: transform .08s linear, opacity .4s; }
.mbx-guide .mg-ptr::after { content: ""; position: absolute; left: 5px; top: 3px; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--g-ice); opacity: 0; transform: scale(.2); }
.mbx-guide .mg-ptr.is-down::after { animation: mg-ripple .55s ease-out; }
@keyframes mg-ripple { 0% { opacity: .95; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.25); } }
.mbx-guide.is-touch .mg-ptr, .mbx-guide .mg-ptr.mg-ptr-touch {
  width: 26px; height: 26px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.mbx-guide.is-touch .mg-ptr::after, .mbx-guide .mg-ptr.mg-ptr-touch::after { left: 50%; top: 50%; }
.mbx-guide.is-touch .mg-ptr.is-down, .mbx-guide .mg-ptr.mg-ptr-touch.is-down { background: color-mix(in srgb, var(--g-ice) 70%, transparent); }

/* ── Choose: the row key and the menu cards ──────────────── */
.mbx-guide .mg-rowkey { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mbx-guide .mg-rowkey li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--g-line); display: grid; gap: 4px; font-size: 14.500px; line-height: 1.5; color: var(--g-dim); }
.mbx-guide .mg-rowkey i { height: 8px; width: 46px; border-radius: 4px; margin-bottom: 6px; }
.mbx-guide .mg-rowkey-1 i { background: var(--g-row1); }
.mbx-guide .mg-rowkey-2 i { background: var(--g-row2); width: 34px; }
.mbx-guide .mg-rowkey-3 i { background: var(--g-row3); width: 58px; }
.mbx-guide .mg-rowkey b { color: #fff; font-size: 16px; font-weight: 600; }
.mbx-guide .mg-menus { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.mbx-guide .mg-menu {
  position: relative; min-height: 190px; padding: 18px; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.82)), var(--bg, linear-gradient(135deg, #1c4a63, #0a1220)) center / cover;
  border: 1px solid var(--g-line);
}
.mbx-guide .mg-menu b { font-family: var(--g-serif); font-weight: 500; font-size: 26px; line-height: 1.1; color: #fff; }
.mbx-guide .mg-menu span { display: flex; flex-wrap: wrap; gap: 6px; }
.mbx-guide .mg-menu i, .mbx-guide .mg-chips i, .mbx-guide .mg-rule-art i {
  font-style: normal; font-size: 12.500px; padding: .25em .7em; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.14); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ── Combine: rules and recipes ──────────────────────────── */
.mbx-guide .mg-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mbx-guide .mg-rule { padding: 20px; border-radius: 16px; border: 1px solid var(--g-line); background: var(--g-card); }
.mbx-guide .mg-rule > b { display: block; margin-top: 16px; color: #fff; font-size: 18px; font-weight: 600; }
.mbx-guide .mg-rule > p { margin-top: 6px; color: var(--g-dim); font-size: 15px; line-height: 1.55; }
.mbx-guide .mg-rule-art { height: 96px; padding: 14px; border-radius: 12px; background: #05070a; display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 8px; position: relative; }
.mbx-guide .mg-rule-art em { font-style: normal; color: var(--g-dim); }
.mbx-guide .mg-rule-art i { background: #1b222c; font-size: 13px; }
.mbx-guide .mg-rule-art i.mood, .mbx-guide .mg-chips i.mood { background: color-mix(in srgb, var(--g-ice) 24%, transparent); color: var(--g-ice); }
.mbx-guide .mg-meter { flex-basis: 100%; height: 6px; border-radius: 3px; background: #1b222c; overflow: hidden; }
.mbx-guide .mg-meter u { display: block; height: 100%; width: 45%; border-radius: 3px; background: var(--g-ice); }
.mbx-guide .in .mg-rule-art i.a { animation: mg-tick 6s .2s infinite both; }
.mbx-guide .in .mg-rule-art i.b { animation: mg-tick 6s 1.2s infinite both; }
.mbx-guide .in .mg-rule-wide .mg-meter u { animation: mg-wide 6s infinite both; }
.mbx-guide .in .mg-rule-narrow .mg-meter u { animation: mg-narrow 6s infinite both; }
@keyframes mg-tick { 0%, 4% { background: #1b222c; color: #7d8794; } 10%, 88% { background: #fff; color: #000; } 96%, 100% { background: #1b222c; color: #7d8794; } }
@keyframes mg-wide { 0%, 6% { width: 0; } 12%, 22% { width: 42%; } 30%, 88% { width: 88%; } 100% { width: 0; } }
@keyframes mg-narrow { 0%, 6% { width: 0; } 12%, 22% { width: 80%; } 30%, 88% { width: 30%; } 100% { width: 0; } }
.mbx-guide .mg-queue { flex-basis: 100%; display: flex; gap: 8px; }
.mbx-guide .mg-queue u { text-decoration: none; width: 44px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #1b222c; color: var(--g-dim); }
.mbx-guide .in .mg-queue u:first-child { animation: mg-q1 6s infinite both; }
.mbx-guide .in .mg-queue u:last-child { animation: mg-q2 6s infinite both; }
@keyframes mg-q1 { 0%, 22% { transform: none; } 32%, 90% { transform: translateX(52px); } 100% { transform: none; } }
@keyframes mg-q2 { 0%, 22% { transform: none; background: #1b222c; color: #97a3b0; } 32%, 90% { transform: translateX(-52px); background: var(--g-ice); color: #04121a; } 100% { transform: none; } }

.mbx-guide .mg-recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mbx-guide .mg-recipe {
  position: relative; display: grid; gap: 8px; align-content: end; min-height: 300px; padding: 20px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--g-line); color: var(--g-ink); text-decoration: none; isolation: isolate;
  transition: transform .35s ease, border-color .35s ease;
}
.mbx-guide .mg-recipe-pic { position: absolute; inset: 0; z-index: -1; background: var(--bg, linear-gradient(135deg, #1c4a63, #0a1220)) center / cover; transition: transform 1.2s ease; }
.mbx-guide .mg-recipe-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.88) 78%); }
.mbx-guide .mg-recipe:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--g-ice) 60%, transparent); }
.mbx-guide .mg-recipe:hover .mg-recipe-pic { transform: scale(1.06); }
.mbx-guide .mg-recipe > b { font-family: var(--g-serif); font-weight: 500; font-size: 28px; line-height: 1.1; color: #fff; }
.mbx-guide--ja .mg-recipe > b { font-size: 23px; line-height: 1.3; }
.mbx-guide .mg-recipe-say { color: rgba(255,255,255,.8); font-size: 14.500px; line-height: 1.5; }
.mbx-guide .mg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mbx-guide .mg-chips i { opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.mbx-guide .mg-recipe.in .mg-chips i { opacity: 1; transform: none; }
.mbx-guide .mg-chips i:nth-child(2) { transition-delay: .18s; } .mbx-guide .mg-chips i:nth-child(3) { transition-delay: .36s; } .mbx-guide .mg-chips i:nth-child(4) { transition-delay: .54s; }
.mbx-guide .mg-recipe-go { display: inline-flex; align-items: center; gap: .4em; margin-top: 6px; color: var(--g-ice); font-size: 14px; font-weight: 600; }
.mbx-guide .mg-recipe-go .mg-ic { transition: transform .25s; }
.mbx-guide .mg-recipe:hover .mg-recipe-go .mg-ic { transform: translateX(4px); }

/* ── Visual Settings: the hands-on panel ─────────────────── */
.mbx-guide .mg-play { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.mbx-guide .mg-play-view { position: sticky; top: calc(var(--mg-top, 0px) + 72px); border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #05070a; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 90px -50px var(--g-ice); }
.mbx-guide .mg-play-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; display: block; }
.mbx-guide .mg-play-hint { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: .5em; padding: .45em .9em; border-radius: 999px; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; color: #fff; transition: opacity .5s; }
.mbx-guide .mg-play.is-used .mg-play-hint { opacity: 0; }
.mbx-guide .mg-play-panel { border-radius: 16px; background: #11151c; border: 1px solid rgba(255,255,255,.1); padding: 6px 18px 14px; }
.mbx-guide .mg-play-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 12.500px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--g-line); }
.mbx-guide .mg-play-reset { display: inline-flex; align-items: center; gap: .4em; cursor: pointer; background: none; border: 1px solid var(--g-line); border-radius: 999px; padding: .35em .9em; color: var(--g-dim); font: inherit; letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 13px; transition: color .2s, border-color .2s; }
.mbx-guide .mg-play-reset:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.mbx-guide .mg-ctl-row { display: grid; gap: 4px; padding: 13px 0 12px; border-bottom: 1px solid var(--g-line); cursor: pointer; }
.mbx-guide .mg-ctl-row:last-child { border-bottom: 0; }
.mbx-guide .mg-ctl-top { display: flex; align-items: center; gap: 10px; }
.mbx-guide .mg-ctl-top .mg-ic { color: var(--g-ice); width: 20px; height: 20px; }
.mbx-guide .mg-ctl-top b { flex: 1; font-size: 15px; font-weight: 600; color: #fff; }
.mbx-guide .mg-ctl-top output { font-size: 13px; font-weight: 700; color: #6cc1de; font-variant-numeric: tabular-nums; }
.mbx-guide .mg-ctl-row small { color: var(--g-dim); font-size: 13.500px; line-height: 1.45; }
.mbx-guide .mg-ctl-row input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 2px 0; background: none; cursor: pointer; touch-action: pan-y; }
.mbx-guide .mg-ctl-row input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #2a3440; }
.mbx-guide .mg-ctl-row input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: #2a3440; }
.mbx-guide .mg-ctl-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #4aa5c6; border: 0; box-shadow: 0 0 0 0 rgba(74,165,198,.4); transition: box-shadow .2s; }
.mbx-guide .mg-ctl-row input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #4aa5c6; border: 0; }
.mbx-guide .mg-ctl-row input[type="range"]:active::-webkit-slider-thumb, .mbx-guide .mg-ctl-row.is-auto input[type="range"]::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(74,165,198,.28); }
.mbx-guide .mg-ctl-row input.mg-range-rainbow::-webkit-slider-runnable-track { background: linear-gradient(90deg, #f33, #fc3, #3f6, #3cf, #36f, #c3f, #f36); }
.mbx-guide .mg-ctl-row input.mg-range-rainbow::-moz-range-track { background: linear-gradient(90deg, #f33, #fc3, #3f6, #3cf, #36f, #c3f, #f36); }

.mbx-guide .mg-fade, .mbx-guide .mg-time { margin-top: 16px; padding: 20px; border-radius: 16px; border: 1px solid var(--g-line); background: var(--g-card); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: center; }
.mbx-guide .mg-fade-text, .mbx-guide .mg-time-text { display: flex; gap: 14px; }
.mbx-guide .mg-fade-text > .mg-ic, .mbx-guide .mg-time-text > .mg-ic { color: var(--g-ice); width: 24px; height: 24px; margin-top: 2px; }
.mbx-guide .mg-fade-text b, .mbx-guide .mg-time-text b { color: #fff; font-size: 17px; font-weight: 600; }
.mbx-guide .mg-fade-text p, .mbx-guide .mg-time-text p { color: var(--g-dim); font-size: 15px; margin-top: 4px; }
.mbx-guide .mg-fade-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mbx-guide .mg-fade-box { margin: 0; }
.mbx-guide .mg-fade-box span { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #05070a; }
.mbx-guide .mg-fade-box .mg-pic { opacity: 1; transition: none; }
.mbx-guide .mg-fade-box figcaption { margin-top: 8px; text-align: center; font-size: 13px; color: var(--g-dim); }
.mbx-guide .in .mg-fade-short .mg-pic + .mg-pic { animation: mg-fade-s 8s infinite both; }
.mbx-guide .in .mg-fade-long .mg-pic + .mg-pic { animation: mg-fade-l 8s infinite both; }
@keyframes mg-fade-s { 0%, 22% { opacity: 0; } 28%, 72% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes mg-fade-l { 0%, 4% { opacity: 0; } 46%, 54% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* ── Overlay extras ──────────────────────────────────────── */
.mbx-guide .mg-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.mbx-guide .mg-card { padding: 20px; border-radius: 16px; border: 1px solid var(--g-line); background: var(--g-card); }
.mbx-guide .mg-card .mg-ic { color: var(--g-ice); width: 24px; height: 24px; }
.mbx-guide .mg-card b { display: block; margin-top: 10px; color: #fff; font-weight: 600; }
.mbx-guide .mg-card p { margin-top: 4px; color: var(--g-dim); font-size: 15px; line-height: 1.55; }
.mbx-guide .mg-time { grid-template-columns: 1fr; gap: 14px; }
.mbx-guide .mg-time-line { position: relative; display: grid; grid-template-columns: 2fr 1.4fr 2fr 1.4fr 2fr; gap: 4px; height: 34px; }
.mbx-guide .mg-time-line i { border-radius: 6px; background: #151b23; border: 1px dashed #2a3440; }
.mbx-guide .mg-time-line i.on { background: color-mix(in srgb, var(--g-ice) 30%, transparent); border: 1px solid var(--g-ice); }
.mbx-guide .mg-time-line u { position: absolute; top: -5px; bottom: -5px; left: 0; width: 2px; background: #fff; border-radius: 2px; }
.mbx-guide .in .mg-time-line u { animation: mg-head 9s linear infinite; }
@keyframes mg-head { from { left: 0; } to { left: 100%; } }
.mbx-guide .mg-time-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--g-dim); }
.mbx-guide .mg-time-key li::before { content: ""; display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: .6em; background: #151b23; border: 1px dashed #3a4654; }
.mbx-guide .mg-time-key li.on::before { background: color-mix(in srgb, var(--g-ice) 30%, transparent); border: 1px solid var(--g-ice); }

/* ── Phone remote ────────────────────────────────────────── */
.mbx-guide .mg-duo { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.mbx-guide .mg-handset { flex: none; width: 24%; container-type: inline-size; aspect-ratio: 9 / 18.500; border-radius: 12% / 6%; padding: 3.500%; background: #1a1f27; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 60px -30px #000; }
.mbx-guide .mg-handset-in { position: relative; height: 100%; border-radius: 9% / 4.500%; overflow: hidden; background: #0c1016; font-size: 7.4cqw; line-height: 1.2; color: #fff; }
.mbx-guide .mg-cam, .mbx-guide .mg-rc { position: absolute; inset: 0; transition: opacity .5s; }
.mbx-guide .mg-cam { display: grid; place-items: center; background: #20262f; opacity: 0; }
.mbx-guide .mg-cam-qr { width: 62%; padding: 4%; background: #fff; border-radius: 6%; transform: rotate(-4deg) scale(.6); opacity: 0; transition: transform 1s ease, opacity .6s; }
.mbx-guide .mg-scan { position: absolute; left: 14%; right: 14%; top: 30%; height: 2px; background: var(--g-ice); box-shadow: 0 0 12px var(--g-ice); opacity: 0; }
.mbx-guide .mg-cam em { position: absolute; left: 50%; bottom: 14%; transform: translate(-50%, 10px); padding: .5em 1em; border-radius: 999px; background: #f4d03f; color: #000; font-style: normal; font-size: .9em; font-weight: 700; opacity: 0; transition: opacity .35s, transform .35s; }
.mbx-guide .mg-handset.is-cam .mg-cam { opacity: 1; }
.mbx-guide .mg-handset.is-cam .mg-cam-qr { transform: none; opacity: 1; }
.mbx-guide .mg-handset.is-cam .mg-scan { opacity: 1; animation: mg-scan 1.4s ease-in-out infinite alternate; }
@keyframes mg-scan { from { top: 30%; } to { top: 62%; } }
.mbx-guide .mg-handset.has-link .mg-cam em { opacity: 1; transform: translate(-50%, 0); }
.mbx-guide .mg-rc { padding: 1.2em 1em; display: grid; align-content: start; gap: .9em; opacity: 0; }
.mbx-guide .mg-handset.is-rc .mg-rc { opacity: 1; }
.mbx-guide .mg-handset.is-rc .mg-cam { opacity: 0; }
.mbx-guide .mg-rc-h { font-size: .8em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-bottom: .5em; border-bottom: 1px solid rgba(255,255,255,.1); }
.mbx-guide .mg-rc .mg-slabel, .mbx-guide .mg-rc .mg-sval { font-size: .8em; }
.mbx-guide .mg-rc .mg-sl { height: .3em; }
.mbx-guide .mg-rc .mg-sl u { width: 1.5em; height: 1.5em; margin: -.75em 0 0 -.75em; }
.mbx-guide .mg-rc-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4em; }
.mbx-guide .mg-rc-btns .mg-ic { width: 100%; height: 2.6em; padding: .55em; border-radius: .5em; background: #1b222c; }

/* ── Control bar key ─────────────────────────────────────── */
.mbx-guide .mg-keys { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.mbx-guide .mg-keys li { padding: 18px 16px; border-radius: 16px; border: 1px solid var(--g-line); background: var(--g-card); display: grid; gap: 12px; align-content: start; }
.mbx-guide .mg-key { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #141a22; border: 1px solid rgba(255,255,255,.12); color: #fff; }
.mbx-guide .mg-key .mg-ic { width: 26px; height: 26px; }
.mbx-guide .mg-key-auto { font-size: 12px; font-weight: 700; padding: 3px 7px; border: 1px solid rgba(255,255,255,.5); border-radius: 5px; }
.mbx-guide .mg-keys b { color: #fff; font-weight: 600; font-size: 15.500px; }
.mbx-guide .mg-keys p { margin-top: 4px; color: var(--g-dim); font-size: 14px; line-height: 1.5; }

/* ── On a phone ──────────────────────────────────────────── */
.mbx-guide .mg-onphone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.mbx-guide .mg-handset-big { width: clamp(210px, 26vw, 270px); }
.mbx-guide .mg-handset-big .mg-handset-in { font-size: 4.200cqw; display: flex; flex-direction: column; }
.mbx-guide .mg-ph-rows .mg-row { height: 2.7em; padding: 0 1em; gap: .5em; }
.mbx-guide .mg-ph-rows .mg-row2 { height: 2.7em; }
.mbx-guide .mg-ph-rows .mg-row2 b { display: inline-block; }
.mbx-guide .mg-ph-slide { -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.mbx-guide .mg-ph-slide span { display: flex; gap: .5em; }
.mbx-guide .in .mg-ph-slide span { animation: mg-swipe 7s ease-in-out infinite; }
@keyframes mg-swipe { 0%, 18% { transform: none; } 42%, 62% { transform: translateX(-52%); } 86%, 100% { transform: none; } }
.mbx-guide .mg-ph-pic { position: relative; aspect-ratio: 4 / 3; background: #05070a; overflow: hidden; }
.mbx-guide .mg-ph-pic .mg-pic { opacity: 1; }
.mbx-guide .mg-ph-bar { display: flex; align-items: center; justify-content: center; gap: 1.6em; height: 4.6em; background: #05070a; position: relative; }
.mbx-guide .mg-ph-bar .mg-ic { width: 2em; height: 2em; }
.mbx-guide .mg-ph-bar .mg-ic:nth-child(2) { width: 2.6em; height: 2.6em; }
.mbx-guide .mg-ph-bar span { margin-left: .6em; font-size: .9em; font-weight: 700; padding: .3em .7em; border: 1px solid rgba(255,255,255,.35); border-radius: .4em; }
.mbx-guide .mg-ph-tabs { display: grid; gap: .5em; padding: .6em .8em; }
.mbx-guide .mg-ph-tabs span { padding: .8em 1em; border-radius: .5em; background: #11151c; border: 1px solid rgba(255,255,255,.08); font-size: .85em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mbx-guide .mg-ph-finger { position: absolute; left: 70%; top: 6.800em; width: 2.6em; height: 2.6em; margin: -1.3em; border-radius: 50%; background: rgba(255,255,255,.4); border: 2px solid #fff; opacity: 0; }
.mbx-guide .in .mg-ph-finger { animation: mg-finger 7s ease-in-out infinite; }
@keyframes mg-finger { 0%, 14% { opacity: 0; transform: none; } 18% { opacity: 1; transform: none; } 42% { opacity: 1; transform: translateX(-9em); } 48%, 100% { opacity: 0; transform: translateX(-9em); } }
.mbx-guide .mg-points { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; gap: 14px; }
.mbx-guide .mg-points li { counter-increment: p; position: relative; padding: 16px 18px 16px 62px; border-radius: 14px; border: 1px solid var(--g-line); background: var(--g-card); display: grid; gap: 2px; }
.mbx-guide .mg-points li::before { content: counter(p); position: absolute; left: 18px; top: 14px; font-family: var(--g-serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--g-ice); }
.mbx-guide .mg-points b { color: #fff; font-weight: 600; }
.mbx-guide .mg-points span { color: var(--g-dim); font-size: 15px; }

/* ── Plans ───────────────────────────────────────────────── */
.mbx-guide .mg-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--g-line); background: var(--g-card); }
.mbx-guide .mg-table { width: 100%; min-width: 620px; border-collapse: collapse; margin: 0; font-size: 15px; }
.mbx-guide .mg-table th, .mbx-guide .mg-table td { padding: 15px 18px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--g-line); background: none; color: var(--g-ink); line-height: 1.5; }
.mbx-guide .mg-table tbody tr:last-child > * { border-bottom: 0; }
.mbx-guide .mg-table thead th { font-family: var(--g-serif); font-weight: 500; font-size: 22px; color: #fff; }
.mbx-guide .mg-table tbody th { font-weight: 500; color: var(--g-dim); width: 26%; }
.mbx-guide .mg-table .is-top { background: color-mix(in srgb, var(--g-ice) 8%, transparent); color: #fff; }
.mbx-guide .mg-table thead .is-top { color: var(--g-ice); }
.mbx-guide .mg-plans-cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mbx-guide .mg-nocard { color: var(--g-ice); font-weight: 600; font-size: 15px; }
.mbx-guide .mg-nocard::before { content: "✓ "; }

/* ── Quick answers and the end ───────────────────────────── */
.mbx-guide .mg-faq { display: grid; gap: 10px; max-width: 820px; }
.mbx-guide .mg-faq details { border: 1px solid var(--g-line); border-radius: 14px; background: var(--g-card); transition: border-color .25s; }
.mbx-guide .mg-faq details[open] { border-color: color-mix(in srgb, var(--g-ice) 40%, transparent); }
.mbx-guide .mg-faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative; color: #fff; font-weight: 600; }
.mbx-guide .mg-faq summary::-webkit-details-marker { display: none; }
.mbx-guide .mg-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--g-ice); font-size: 22px; font-weight: 400; transition: transform .25s; }
.mbx-guide .mg-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.mbx-guide .mg-faq p { padding: 0 18px 18px; color: var(--g-dim); }
.mbx-guide .mg-end { margin-top: clamp(72px, 10vw, 130px); padding: clamp(44px, 7vw, 80px) 24px; text-align: center; border-radius: 24px; border: 1px solid var(--g-line); background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--g-ice) 16%, transparent), transparent 70%); }
.mbx-guide .mg-end h2 { margin: 0; font-family: var(--g-serif); font-weight: 500; font-size: clamp(32px, 5vw, 56px); line-height: 1.1; color: #fff; }
.mbx-guide .mg-end p { color: var(--g-dim); margin-top: 12px; }
.mbx-guide .mg-end p:last-child { margin-top: 28px; }

/* ── Gentle arrival ──────────────────────────────────────── */
.mbx-guide.has-js .mg-sec > * { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.mbx-guide.has-js .mg-sec.in > * { opacity: 1; transform: none; }
.mbx-guide.has-js .mg-sec.in > *:nth-child(2) { transition-delay: .12s; }
.mbx-guide.has-js .mg-sec.in > *:nth-child(3) { transition-delay: .2s; }

/* ── Narrow screens ──────────────────────────────────────── */
@media (max-width: 900px) {
  .mbx-guide .mg-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mbx-guide .mg-demo figcaption { flex-direction: column; }
  .mbx-guide .mg-caps { width: 100%; }
  .mbx-guide .mg-menus { grid-template-columns: repeat(2, 1fr); }
  .mbx-guide .mg-recipes { grid-template-columns: repeat(2, 1fr); }
  .mbx-guide .mg-rules, .mbx-guide .mg-cards3 { grid-template-columns: 1fr; }
  .mbx-guide .mg-keys { grid-template-columns: repeat(2, 1fr); }
  .mbx-guide .mg-play { grid-template-columns: 1fr; }
  .mbx-guide .mg-play-view { top: calc(var(--mg-top, 0px) + 60px); z-index: 5; }
  .mbx-guide .mg-fade { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mbx-guide { font-size: 16px; padding-inline: 16px; }
  .mbx-guide .mg-toc { margin-inline: -16px; padding-inline: 16px; }
  .mbx-guide .mg-quick, .mbx-guide .mg-rowkey { grid-template-columns: 1fr; }
  .mbx-guide .mg-quick li { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px; }
  .mbx-guide .mg-quick-ic { grid-row: span 2; margin: 0; }
  .mbx-guide .mg-caps { grid-template-columns: 1fr; gap: 8px; }
  .mbx-guide .mg-recipes { grid-template-columns: 1fr; }
  .mbx-guide .mg-recipe { min-height: 230px; }
  .mbx-guide .mg-menu { min-height: 150px; padding: 14px; }
  .mbx-guide .mg-menu b { font-size: 22px; }
  .mbx-guide .mg-keys { grid-template-columns: 1fr; }
  .mbx-guide .mg-keys li { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 14px; }
  .mbx-guide .mg-ticks { grid-template-columns: 1fr; }
  .mbx-guide .mg-onphone { grid-template-columns: 1fr; justify-items: center; }
  .mbx-guide .mg-handset-big { width: min(64vw, 250px); }
  .mbx-guide .mg-points { width: 100%; }
  /* the miniature: taller and larger, so labels stay readable on a phone */
  .mbx-guide .mg-screen { aspect-ratio: 4 / 3.150; font-size: 2.550cqw; }
  .mbx-guide .mg-row { padding: 0 1em; gap: .5em; }
  .mbx-guide .mg-row3 { -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
  .mbx-guide .mg-title { display: none; }
  .mbx-guide .mg-bar { grid-template-columns: 1fr auto 1fr; }
  .mbx-guide .mg-bar::before { content: ""; }
  .mbx-guide .mg-ctl { gap: 1.6em; }
  .mbx-guide .mg-pb { width: 58%; }
  .mbx-guide .mg-pb-overlay { left: 21%; }
  .mbx-guide .mg-pb-overlay .mg-srow[data-s="duration"], .mbx-guide .mg-pb-overlay .mg-srow[data-s="interval"] { display: none; }
  .mbx-guide .mg-wm { left: 1.2em; }
  .mbx-guide .mg-logo { right: 1em; height: 5em; width: 4.300em; }
  .mbx-guide .mg-duo { flex-direction: column; }
  .mbx-guide .mg-duo .mg-mini { width: 100%; flex: none; }
  .mbx-guide .mg-duo .mg-handset { width: 42%; aspect-ratio: 9 / 15; }
}

/* ── Reduced motion: stills, nothing moving ──────────────── */
@media (prefers-reduced-motion: reduce) {
  .mbx-guide *, .mbx-guide *::before, .mbx-guide *::after { animation: none !important; transition: none !important; }
  .mbx-guide.has-js .mg-sec > * { opacity: 1; transform: none; }
  .mbx-guide .mg-chips i { opacity: 1; transform: none; }
}
