/* Miamo product family: existing orange accent, 18px panels and pill controls.
   System typography keeps this page independent of external font services. */
.miaget-page { --display: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.miaget-page h1, .miaget-page h2, .miaget-page h3 { font-family: var(--display); letter-spacing: -.045em; }
.miaget-page h2 { margin: 0; font-size: clamp(2rem, 4.3vw, 3.6rem); font-weight: 650; line-height: 1.12; }
.miaget-page h3 { margin: 0 0 12px; font-weight: 650; }
.miaget-page .button { font-size: .95rem; min-height: 46px; }
.mg-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 134px 66px; }
.mg-back { display: inline-block; margin-bottom: 38px; color: var(--muted); font-size: .875rem; text-decoration: none; }
.mg-back:hover, .mg-section-nav a:hover { color: var(--paper); }
.mg-identity { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; font-size: 1.3rem; font-weight: 650; }
.mg-identity small { display: block; margin-top: 2px; color: var(--muted); font-size: .875rem; font-weight: 400; }
.mg-hero h1 { margin: 0; font-size: clamp(3.2rem, 5.5vw, 5.3rem); font-weight: 680; line-height: 1.03; }
.mg-lead { max-width: 46ch; margin: 26px 0 0; color: var(--muted); font-size: 1.15rem; line-height: 1.7; }
.mg-hero .product-actions { gap: 10px; margin-top: 30px; }
.mg-meta { margin: 22px 0 0; color: var(--muted); font-size: .875rem; }
.mg-meta span { margin-inline: 6px; }
.mg-desktop { margin: 0; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: #151515; }
.mg-desktop-bar { display: flex; justify-content: space-between; gap: 10px; padding: 15px 18px; color: #d1d1d5; font-size: .875rem; }
.mg-desktop-bar > span:last-child { color: var(--muted); }
.mg-desktop-scene { position: relative; min-height: 414px; overflow: hidden; }
.mg-wallpaper { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 62%; }
.mg-desktop-widgets { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; max-width: 342px; padding: 28px 0; margin: auto; }
.mg-desktop-widgets img { width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgb(0 0 0 / .16)); }
.mg-scene-calendar, .mg-scene-music { grid-column: 1 / -1; }
.mg-desktop figcaption { padding: 13px 18px; color: var(--muted); font-size: .875rem; }
.mg-section-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-block: 22px; border-block: 1px solid var(--line); }
.mg-section-nav a { padding-block: 6px; font-size: .9rem; color: var(--muted); text-decoration: none; }
.mg-section { padding-block: 96px; }
.mg-eyebrow { margin: 0 0 20px; color: var(--accent); font-size: .9rem; }
.mg-intro, .mg-control, .mg-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.mg-intro { border-bottom: 1px solid var(--line); }
.mg-prose p { margin: 0 0 18px; color: var(--muted); line-height: 1.8; }
.mg-prose strong { color: var(--paper); font-weight: 500; }
.mg-text-link { display: inline-block; margin-top: 8px; text-underline-offset: 5px; }
.mg-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.mg-heading > p { max-width: 36ch; margin: 0; color: var(--muted); line-height: 1.8; }
.mg-collection { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #111113; }
.mg-collection-main { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.mg-collection-copy { padding: 38px; }
.mg-tag { display: inline-block; margin-bottom: 12px; color: var(--accent); font-size: .875rem; }
.mg-collection h3 { font-size: 2rem; }
.mg-collection-copy > p { margin: 0 0 20px; color: var(--muted); line-height: 1.75; }
.mg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.mg-chips li { padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: #d1d1d5; font-size: .875rem; }
.mg-collection-art { padding: 36px; background: #1b1b1f; }
.mg-collection-art > img { width: 100%; max-width: 329px; margin-inline: auto; }
.mg-collection-art > div { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; max-width: 329px; margin: 18px auto 0; }
.mg-collection-art img { height: auto; }
.mg-collection-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.mg-small-art { display: flex; justify-content: center; gap: 22px; min-height: 231px; padding: 38px 20px; background: #1b1b1f; }
.mg-small-art img { width: min(39%, 155px); height: auto; object-fit: contain; }
.mg-game-art { display: flex; min-height: 231px; flex-direction: column; justify-content: center; padding: 26px 38px; background: #1b1b1f; }
.mg-game-art > span { font-size: .875rem; color: var(--accent); }
.mg-game-art p { margin: 12px 0 16px; font-size: 2rem; line-height: 1.1; font-weight: 650; letter-spacing: -.04em; }
.mg-game-art > div { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .875rem; }
.mg-section-note { margin: 24px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.mg-section-note a, .mg-steps a, .mg-faq-items a { text-underline-offset: 4px; }
.mg-appearance { padding-block: 80px; background: #111113; border-block: 1px solid var(--line); }
.mg-appearance-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.mg-body-copy { max-width: 45ch; margin: 24px 0; color: var(--muted); line-height: 1.8; }
.mg-theme-picker { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); }
.mg-theme-picker[hidden] { display: none; }
.mg-theme-picker button { min-height: 44px; padding: 9px 17px; border: 0; border-radius: var(--radius-pill); background: transparent; font-size: .9rem; cursor: pointer; }
.mg-theme-picker button[aria-pressed="true"] { background: var(--paper); color: #111; }
.mg-theme-picker button:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.miaget-page .mg-fine { margin-top: 18px; font-size: .875rem; line-height: 1.7; color: var(--muted); }
.mg-appearance-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 52px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: #303033; transition: background-color 180ms ease; }
.mg-appearance-demo[data-mg-appearance="dark"] { background: #222224; }
.mg-appearance-demo img { width: 100%; height: auto; }
.mg-feature-rows { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.mg-feature-rows article { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.mg-feature-rows h3 { font-size: 1.2rem; }
.mg-feature-rows p { color: var(--muted); margin: 0; line-height: 1.75; }
.mg-steps { list-style: none; counter-reset: setup; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0; padding: 0; }
.mg-steps li { counter-increment: setup; border-top: 1px solid var(--line-strong); padding-top: 24px; }
.mg-steps li::before { content: counter(setup); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 22px; color: var(--accent); background: var(--accent-soft); border-radius: 50%; }
.mg-steps h3 { font-size: 1.15rem; }
.mg-steps p { color: var(--muted); line-height: 1.8; margin: 0; }
.mg-steps code { font-size: 1em; }
.mg-control { border-top: 1px solid var(--line); }
.mg-facts { margin: 0; }
.mg-facts > div { padding-block: 22px; border-bottom: 1px solid var(--line); }
.mg-facts > div:first-child { padding-top: 0; }
.mg-facts dt { margin-bottom: 9px; font-size: 1.15rem; font-weight: 600; }
.mg-facts dd { margin: 0; color: var(--muted); line-height: 1.8; }
.mg-developer { padding-block: 80px; border-block: 1px solid var(--line); background: #111113; }
.mg-dev-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 54px; }
.mg-dev-grid .product-actions { gap: 12px; }
.mg-dev-example { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: #0a0a0a; }
.mg-code-caption { padding: 18px 24px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .875rem; }
.mg-dev-example pre { margin: 0; padding: 28px 24px; overflow-x: auto; font-size: .9rem; line-height: 2; }
.mg-dev-example code { font-family: Consolas, ui-monospace, monospace; }
.mg-dev-example code span { color: var(--muted); }
.mg-dev-example > p { margin: 0; padding: 16px 24px; color: var(--muted); border-top: 1px solid var(--line); font-size: .875rem; }
.mg-faq-items details { border-bottom: 1px solid var(--line); }
.mg-faq-items summary { padding: 22px 32px 22px 0; position: relative; list-style: none; cursor: pointer; font-size: 1.05rem; font-weight: 500; }
.mg-faq-items summary::-webkit-details-marker { display: none; }
.mg-faq-items summary::after { content: "+"; position: absolute; top: 18px; right: 2px; color: var(--accent); font-size: 1.4rem; }
.mg-faq-items details[open] summary::after { content: "−"; }
.mg-faq-items details[open] summary { color: var(--paper-bright); }
.mg-faq-items p { margin: 0; padding: 0 24px 24px 0; color: var(--muted); line-height: 1.85; }
.mg-bottom { padding-block: 56px; background: #151515; border-block: 1px solid var(--line); }
.mg-bottom-inner { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 28px; }
.mg-bottom h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.mg-bottom .mg-eyebrow { margin-bottom: 10px; }
.mg-bottom p:last-child { margin-bottom: 0; color: var(--muted); }
.miaget-page .product-footer { padding-block: 28px; }
.mg-footer-links { grid-column: 1 / -1; width: 100%; display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: .875rem; }
.mg-footer-links a { text-decoration: none; }
.mg-footer-links a:hover { text-decoration: underline; }
@media (min-width: 1280px) { .mg-hero { gap: 60px; } }
@media (max-width: 1023px) {
    .mg-hero { gap: 28px; }
    .mg-hero h1 { font-size: 3.5rem; }
    .mg-desktop-widgets { max-width: 290px; padding-inline: 10px; }
    .mg-desktop-scene { min-height: 366px; }
    .mg-intro, .mg-control, .mg-faq { gap: 36px; }
    .mg-appearance-grid, .mg-dev-grid { gap: 32px; }
    .mg-collection-copy, .mg-collection-art { padding: 28px; }
    .mg-bottom-inner { grid-template-columns: 60px 1fr; }
    .mg-bottom-inner > a { grid-column: 2; justify-self: start; }
}
@media (max-width: 767px) {
    .mg-hero { grid-template-columns: 1fr; padding-block: 100px 40px; gap: 36px; }
    .mg-back { margin-bottom: 26px; }
    .mg-hero h1 { font-size: clamp(3rem, 10vw, 4.5rem); }
    .mg-desktop { max-width: 560px; width: 100%; }
    .mg-desktop-widgets { max-width: 342px; }
    .mg-desktop-scene { min-height: 410px; }
    .mg-section { padding-block: 60px; }
    .mg-heading { align-items: start; flex-direction: column; gap: 22px; margin-bottom: 30px; }
    .mg-heading > p { max-width: 50ch; }
    .mg-intro, .mg-control, .mg-faq, .mg-appearance-grid, .mg-dev-grid { grid-template-columns: 1fr; gap: 32px; }
    .mg-collection-main { grid-template-columns: 1fr; }
    .mg-collection-pair { gap: 18px; }
    .mg-collection-copy { padding: 24px; }
    .mg-collection-art { padding: 28px; }
    .mg-small-art { gap: 12px; padding: 24px 12px; min-height: 180px; }
    .mg-game-art { min-height: 180px; padding: 24px; }
    .mg-game-art p { font-size: 1.7rem; }
    .mg-feature-rows { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
    .mg-steps { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
    .mg-appearance, .mg-developer { padding-block: 60px; }
    .mg-appearance-demo { max-width: 560px; }
    .mg-bottom-inner { gap: 22px; }
    .mg-bottom-inner > img { width: 60px; height: 60px; }
}
@media (max-width: 479px) {
    .mg-collection-pair { grid-template-columns: 1fr; }
    .mg-small-art { min-height: 210px; }
    .mg-desktop-widgets { max-width: 296px; }
    .mg-desktop-scene { min-height: 372px; }
    .mg-section-nav { gap: 5px 18px; }
    .mg-appearance-demo { padding: 32px 14px; gap: 9px; }
    .mg-steps { grid-template-columns: 1fr; gap: 28px; }
    .mg-steps li { padding-left: 50px; position: relative; }
    .mg-steps li::before { position: absolute; left: 0; top: 20px; }
    .mg-bottom-inner { grid-template-columns: 1fr; }
    .mg-bottom-inner > a { grid-column: 1; }
    .mg-dev-example pre { font-size: .875rem; padding: 20px 16px; }
    .mg-hero .product-actions > a { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .miaget-page *, .miaget-page *::before, .miaget-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (prefers-reduced-transparency: reduce) { .miaget-page .site-header { background: #171717; backdrop-filter: none; -webkit-backdrop-filter: none; } }
