:root {
  color-scheme: dark;
  --ground: #100d0a;
  --panel: #1c1712;
  --gold: #dfbc80;
  --cream: #f7ecd9;
  --muted: #d3bea0;
  --line: #786044;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--cream);
  background: var(--ground);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 65% 34% at 4% 1%, #a87a3538, transparent 72%),
    radial-gradient(ellipse 47% 30% at 100% 36%, #bd955033, transparent 74%),
    radial-gradient(ellipse 65% 25% at 12% 91%, #7f592522, transparent 78%),
    linear-gradient(90deg, #0b0907b8, #15100c78 52%, #0b0907ae),
    #17140f url("assets/mj38/background.png") center top / 320px 570px repeat;
}
.masthead, .page-shell, .activity-page { position: relative; z-index: 1; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #ffe0a1; outline-offset: 4px; }
::selection { background: var(--gold); color: #211509; }
img { display: block; max-width: 100%; }
.masthead {
  position: relative;
  border-bottom: 1px solid #8d6b43;
  background: linear-gradient(105deg, #241a12, #11131a 58%, #0a1019);
  box-shadow: 0 12px 34px #0005;
}
.masthead::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: linear-gradient(90deg, transparent, #f1d4a176 16%, #9a7546 52%, transparent); pointer-events: none; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(94%, 1200px); margin: auto; }
.masthead-inner .brand { width: auto; min-width: 0; margin: 0; }
.header-activity { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 44px; padding: 8px 17px; border: 1px solid #b38e59; border-radius: 999px; background: linear-gradient(135deg, #46331f, #20170f); box-shadow: inset 0 1px #f4d9a43b, 0 5px 18px #0005; color: var(--cream); font-size: clamp(13px, 1.2vw, 16px); font-weight: 720; letter-spacing: .04em; text-decoration: none; max-width: min(38%, 16rem); text-align: center; overflow-wrap: anywhere; }
.header-activity:hover { border-color: #efca8c; box-shadow: inset 0 1px #f4d9a466, 0 7px 22px #0007; transform: translateY(-1px); }
.brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px clamp(14px, 3vw, 40px);
  width: min(94%, 1200px);
  min-height: 70px;
  margin: auto;
  padding: 12px 0;
  text-decoration: none;
}
.brand-seal { display: grid; place-items: center; flex: none; width: clamp(28px, 3.8vw, 44px); aspect-ratio: 1; color: var(--gold); filter: drop-shadow(0 0 8px #cfa15b55); }
.brand-seal svg { width: 100%; height: 100%; }
.brand-name {
  color: var(--gold);
  font: 800 clamp(29px, 5vw, 57px)/1.1 "Songti SC", SimSun, serif;
  overflow-wrap: anywhere;
}
.brand-note { color: var(--muted); font-size: clamp(12px, 1.45vw, 18px); letter-spacing: .06em; overflow-wrap: anywhere; }
.page-shell { width: min(94%, 1200px); margin: clamp(15px, 3vw, 38px) auto 0; padding-bottom: 36px; }
.hero {
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(340px, 37vw, 470px);
  margin-bottom: clamp(14px, 3vw, 36px);
  padding: clamp(22px, 5.5vw, 72px);
  border: 1px solid #a7814e;
  border-radius: clamp(14px, 1.8vw, 24px);
  background: #0d0907 url("assets/mj38/window-city-poster.jpg") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px #f6e2b52a, 0 28px 72px #0009;
}
.hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; opacity: 0; pointer-events: none; }
.hero-video.is-playing { opacity: 1; }
.hero::before { content: ""; position: absolute; z-index: 3; inset: 14px; pointer-events: none; border: 1px solid #efd5a63d; border-radius: 8px; }
.hero-inner { position: relative; z-index: 2; width: min(68%, 680px); min-width: 0; }
.hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .8em; margin-bottom: clamp(20px, 3vw, 35px); color: #ead0a2; font-size: clamp(11px, 1.08vw, 14px); font-weight: 720; letter-spacing: .18em; text-shadow: 0 2px 12px #000; }
.hero-eyebrow span:first-child { color: #f6dcb0; font-size: 18px; line-height: 1; }
.hero h1 { margin: 0; color: #ebd0a5; font: 700 clamp(38px, 5.6vw, 76px)/1.09 "Songti SC", SimSun, serif; text-shadow: 0 2px 12px #000, 0 12px 30px #000b; overflow-wrap: anywhere; }
.hero p { max-width: 540px; margin: 1em 0 0; color: #f5ead8; font-size: clamp(15px, 1.7vw, 22px); line-height: 1.65; text-wrap: balance; white-space: pre-line; overflow-wrap: anywhere; text-shadow: 0 2px 10px #000, 0 0 20px #000b; }
.hero-footnote { display: flex; align-items: center; gap: 13px; margin-top: clamp(29px, 4vw, 52px); color: #d6b88b; font-size: 11px; font-weight: 750; letter-spacing: .16em; white-space: nowrap; text-shadow: 0 2px 10px #000; }
.hero-footnote-line { width: 72px; height: 1px; background: linear-gradient(90deg, #d6b88b, #d6b88b33); }
.notice-bar {
  display: flex;
  align-items: center;
  margin-bottom: clamp(14px, 3vw, 36px);
  min-height: clamp(48px, 8vw, 102px);
  gap: clamp(8px, 1.5vw, 20px);
  padding: 8px;
  padding-inline: clamp(12px, 2.4vw, 30px);
  background: #1c1a17 url("assets/mj38/notice.png") center / 100% 100%;
  border-radius: 38px;
}
.notice-bar img { width: clamp(23px, 3.7vw, 48px); height: auto; flex: none; }
.support-launcher-slot { display: contents; }
.notice-bar p { margin: 0; font-size: clamp(13px, 1.55vw, 20px); line-height: 1.45; color: #fff8e9; white-space: pre-line; overflow-wrap: anywhere; min-width: 0; }
.entry-card {
  position: relative;
  isolation: isolate;
  background: #15110c url("assets/mj38/card.png") center / 100% 100%;
  border: 1px solid #ba965c;
  border-radius: clamp(13px, 3vw, 40px);
  padding: clamp(12px, 3.2vw, 42px);
  margin-bottom: clamp(13px, 2.7vw, 35px);
  scroll-margin-top: 12px;
  box-shadow: inset 0 0 0 1px #f6e2b52a, 0 18px 50px #0006;
}
.entry-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: clamp(10px, 1.8vw, 22px);
  border-radius: clamp(10px, 2vw, 28px);
  background: url("assets/mj38/hero-city-still-v2.jpg") 62% 52% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 44%);
  mask-image: linear-gradient(90deg, transparent, #000 44%);
  pointer-events: none;
}
.entry-card > * { position: relative; z-index: 1; }
.home-app-preview { display: block; width: min(100%, 300px); margin: 0 auto; border-radius: 16px; cursor: zoom-in; }
.home-app-preview img { width: 100%; height: auto; border-radius: inherit; }
.card-info { display: grid; grid-template-columns: min(22%, 180px) minmax(0, 1fr); align-items: start; column-gap: clamp(10px, 3.1vw, 40px); row-gap: clamp(12px, 1.8vw, 24px); }
.card-details { text-shadow: 0 2px 8px #000, 0 0 18px #000; }
.app-emblem {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 18%;
  background: radial-gradient(circle at 30% 20%, #49351f, #1e160f 58%, #0d0b09);
  box-shadow: inset 0 0 0 4px #110e0b, inset 0 0 0 5px #9e7d4b7d, 0 12px 28px #0006;
  color: var(--cream);
  font-size: clamp(23px, 6vw, 76px);
  font-weight: 800;
}
.app-emblem img { width: 100%; height: 100%; object-fit: cover; }
.card-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 8px 12px; }
.card-heading h2 { margin: 0; font-size: clamp(26px, 4vw, 56px); line-height: 1.1; overflow-wrap: anywhere; }
.room, .room-number { margin: .4em 0 0; color: var(--muted); font-size: clamp(14px, 2.1vw, 24px); line-height: 1.35; overflow-wrap: anywhere; }
.room span, .room-number strong { margin-inline-start: .24em; color: var(--cream); font-weight: 750; }
.room-number strong { font-size: 1.3em; font-variant-numeric: tabular-nums; }
.card-subtitle { margin: .55em 0 0; font-size: clamp(13px, 2.4vw, 30px); line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; }
.category-list { grid-column: 1 / -1; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(4px, .55vw, 8px); padding: 0; margin: 0; }
.category-list li { border: 1px solid #927a58; border-radius: 2em; background: linear-gradient(#29231c, #13100d 70%); text-align: center; padding: 6px 8px; font-size: clamp(12px, 1.6vw, 21px); line-height: 1.3; overflow-wrap: anywhere; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 6.8vw, 86px); padding: 0 clamp(0px, 3vw, 40px); margin-top: clamp(11px, 3vw, 38px); }
.action-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4em;
  padding: 8px 10px;
  min-height: clamp(44px, 7.8vw, 100px);
  border: 0;
  background: transparent url("assets/mj38/button.png") center / 100% 100% no-repeat;
  color: var(--cream);
  font-size: clamp(16px, 2.7vw, 34px);
  line-height: 1.2;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  min-width: 0;
}
.action-button img { flex: none; width: clamp(16px, 4.5vw, 56px); height: auto; }
.action-button:hover { filter: brightness(1.18); transform: translateY(-2px); }
.lottery-action svg { color: #e8c98f; filter: drop-shadow(0 1px 7px #c9974c77); }

.poster-link { display: grid; gap: 12px; justify-items: center; width: fit-content; max-width: 100%; margin: 0 auto; }
.poster-link img { height: auto; }
.activity-page { width: min(92%, 760px); margin: 26px auto; }
.activity-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.activity-panel { margin-top: 10px; padding: clamp(18px, 5vw, 40px); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.activity-panel h1 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 36px); overflow-wrap: anywhere; }
.activity-description { margin: 0; line-height: 1.65; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.activity-app-preview { width: min(100%, 308px); margin: clamp(20px, 5vw, 36px) auto 0; }
.activity-app-preview a { display: block; border-radius: 16px; }
.activity-app-preview img { width: 100%; height: auto; border-radius: inherit; }
.activity-app-preview figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.activity-panel .poster-link { margin-top: 18px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; }
.download-dialog { width: min(535px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: clamp(16px, 3vw, 25px); color: var(--cream); background: linear-gradient(145deg, #281d13, #15110e 62%); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 80px #000b; }
.download-dialog::backdrop { background: #090704cc; }
.dialog-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-topline h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.close-button { width: 44px; height: 44px; border: 1px solid var(--line); background: #2a2117; color: inherit; border-radius: 8px; font-size: 26px; }
.dialog-intro, .qr-area { color: var(--muted); font-size: 14px; }
.download-options { display: grid; gap: 10px; }
.download-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.download-option { display: grid; gap: 4px; min-height: 55px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #2a2117; text-decoration: none; }
.download-option small { color: var(--muted); }
.choice-guide { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 106px; min-height: 55px; padding: 7px; border: 1px solid #947754; border-radius: 8px; color: var(--gold); background: #17120e; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; }
.choice-guide:hover { background: #392817; border-color: var(--gold); }
#common-download { background: #3b2c19; }
.download-option[href]:hover { border-color: var(--gold); background: #352719; transform: translateY(-2px); }
.download-option[aria-disabled="true"] { color: var(--muted); }
.security-info { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.security-info code { overflow-wrap: anywhere; color: var(--gold); }
.subtle-button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; color: inherit; background: #2a2117; }
.subtle-button:disabled { color: var(--muted); cursor: default; }
.qr-details { margin-top: 8px; }
.qr-details summary { display: list-item; padding: 12px 0; cursor: pointer; }
.qr-area img { width: min(180px, 100%); height: auto; }
.toast { position: fixed; z-index: 3; bottom: 20px; inset-inline: 14px; width: fit-content; max-width: calc(100% - 28px); margin-inline: auto; padding: 8px 14px; border-radius: 8px; background: #312317; visibility: hidden; }
.toast.visible { visibility: visible; }

.mj38-theme #support-support-launcher::part(launcher) {
  width: clamp(85px, 11.72vw, 150px);
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 237 / 256;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: url("assets/mj38/support-portrait-v2.png") center / contain no-repeat, radial-gradient(ellipse 48% 59% at 50% 67%, #c79d592b, transparent 76%);
  box-shadow: none;
  filter: drop-shadow(0 0 11px #a67a3e70) drop-shadow(0 0 25px #97704438) drop-shadow(0 12px 18px #000b);
}
.mj38-theme #support-support-launcher::part(launcher)::after { content: attr(data-label); position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%); padding: 4px 10px; border: 1px solid #d5b077; border-radius: 999px; color: var(--cream); background: #23170eee; box-shadow: 0 4px 15px #0009; font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: .05em; width: max-content; max-width: min(116px, calc(100% + 20px)); overflow-wrap: anywhere; }
.mj38-theme #support-support-launcher::part(launcher-art) { display: none; }
@media (min-width: 1001px) {
  .page-shell {
    width: min(calc(100% - 238px), 1200px);
    margin-left: max(3vw, calc((100% - 1438px) / 2));
    margin-right: auto;
  }
}
.activity-toolbar .support-launcher-slot:not(:empty) { display: block; flex: none; }
.activity-toolbar .support-launcher-slot #support-support-launcher { display: block; }
.mj38-theme .activity-toolbar #support-support-launcher::part(launcher) {
  position: relative;
  inset: auto;
  width: 54px;
  transform: none;
  cursor: pointer;
  touch-action: manipulation;
}
@media (max-width: 1000px) {
  .support-launcher-slot:not(:empty) { display: block; flex: none; margin-inline-start: auto; }
  .support-launcher-slot #support-support-launcher { display: block; }
  .mj38-theme .support-launcher-slot #support-support-launcher::part(launcher) {
    position: relative;
    inset: auto;
    width: 64px;
    transform: none;
    cursor: pointer;
    touch-action: manipulation;
  }
}
@media (max-width: 700px) {
  .hero { min-height: 340px; }
  .hero-video { object-position: 35% 50%; }
  .hero-inner { width: 100%; }
}
@media (max-width: 520px) {
  .brand { gap: 6px 10px; }
  .brand-seal { width: 30px; }
  .hero { min-height: 324px; padding: 31px 26px; }
  .hero::before { inset: 9px; }
  .hero-eyebrow { margin-bottom: 24px; font-size: 11px; }
  .hero-footnote { gap: 8px; margin-top: 26px; font-size: 10px; }
  .hero-footnote-line { width: 36px; }
  .card-heading { align-items: center; }
  .card-heading h2 { font-size: clamp(18px, 5.7vw, 29px); }
}

.action-button svg { flex: none; width: clamp(16px, 4.5vw, 56px); height: auto; }
/* A small, scannable contact sheet; full-resolution originals stay one tap away. */
.installation-page { width: min(94%, 1160px); margin: 32px auto 48px; }
.installation-guide { padding: clamp(22px, 4vw, 52px); background: #18130f; }
.installation-guide h1 { font: 700 clamp(32px, 4vw, 55px)/1.16 "Songti SC", SimSun, serif; color: var(--cream); }
.installation-guide .activity-description { max-width: 60ch; margin-top: 12px; }
.guide-eyebrow { display: block; margin: 0 0 10px; color: var(--gold); font-size: 12px; font-weight: 750; letter-spacing: .17em; }
.guide-intro strong { color: var(--cream); }
.guide-version-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 28px 0; }
.guide-version-nav a { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 112px; padding: 15px; border: 1px solid #70583d; border-radius: 12px; background: linear-gradient(150deg, #312418, #17120e); text-decoration: none; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.guide-version-nav a span { color: var(--gold); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.guide-version-nav a strong { font-size: clamp(15px, 1.5vw, 19px); line-height: 1.3; }
.guide-version-nav a small { margin-top: auto; color: var(--muted); }
.guide-version-nav a:hover { transform: translateY(-3px); border-color: var(--gold); }
.guide-version-nav a[aria-current="page"] { border-color: #e9c78d; background: linear-gradient(145deg, #634424, #2b1e13); box-shadow: inset 0 0 0 1px #e9c78d66, 0 10px 26px #0005; }
.guide-prompt { display: flex; align-items: center; gap: clamp(18px, 4vw, 50px); margin: 28px 0 8px; padding: 28px 0; border-block: 1px solid var(--line); }
.guide-prompt-mark { color: var(--gold); font: 700 clamp(30px, 5vw, 62px)/1 "Songti SC", SimSun, serif; white-space: nowrap; }
.guide-prompt strong { font-size: clamp(18px, 2.1vw, 25px); }
.guide-prompt p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.guide-selection { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 20px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(115deg, #392918, #1b1510 72%); }
.guide-selection h2 { margin: 0 0 5px; font: 700 clamp(25px, 3vw, 36px)/1.2 "Songti SC", SimSun, serif; }
.guide-selection p { margin: 0; color: var(--muted); line-height: 1.5; }
.guide-download-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 48px; padding: 10px 18px; border-radius: 8px; color: #1b120a; background: var(--gold); font-weight: 800; text-decoration: none; white-space: nowrap; }
.guide-download-link:hover { background: #f3d29b; }
.guide-note { margin: 0; padding: 16px 20px; border-left: 3px solid var(--gold); background: #2a2016; color: var(--muted); font-size: 14px; line-height: 1.7; }
.guide-note strong { color: var(--cream); }
.guide-images { counter-reset: guide; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding: 0; margin: 32px 0; }
.guide-images li { counter-increment: guide; min-width: 0; }
.guide-images figure { margin: 0; height: 100%; display: flex; flex-direction: column; gap: 11px; }
.guide-images figcaption { display: flex; align-items: baseline; gap: 10px; min-height: 42px; color: var(--cream); font-weight: 650; font-size: clamp(13px, 1.3vw, 17px); line-height: 1.35; }
.guide-images figcaption::before { content: counter(guide, decimal-leading-zero); color: var(--gold); font: 700 1.25em/1 "Songti SC", SimSun, serif; }
.guide-images a { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: clamp(10px, 1.4vw, 17px); border: 1px solid #735b3e; border-radius: 14px; background: #0f0d0c; color: var(--muted); text-decoration: none; transition: border-color .24s ease, transform .24s ease, box-shadow .24s ease; }
.guide-images a::after { content: "点击查看清晰原图"; font-size: 12px; letter-spacing: .025em; }
.guide-images a:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 13px 26px #0005; }
.guide-images img { width: auto; max-width: 100%; height: clamp(170px, 21vw, 275px); object-fit: contain; border-radius: 6px; }
.huawei-guide { margin-top: 28px; }
.huawei-guide h3 { margin: 0 0 10px; font-size: clamp(20px, 3vw, 28px); }
.guide-complete { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; padding: 25px 0 0; border-top: 1px solid var(--line); }
.guide-complete strong { display: block; font-size: 20px; }
.guide-complete p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.guide-complete a { flex: none; color: var(--gold); font-weight: 700; }
.room-security { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: .6em; color: var(--muted); font-size: clamp(13px, 1.45vw, 19px); }
.room-security code { margin-inline-start: .3em; color: var(--cream); font: 650 1em/1.3 system-ui, sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.room-security .subtle-button { min-height: 32px; font-size: .8em; border-color: var(--gold); color: var(--gold); white-space: nowrap; }
.room-security .subtle-button:hover { background: #3a2b19; }
.header-activity, .action-button, .download-option[href] { transition: transform .24s ease, background .24s ease, border-color .24s ease, filter .24s ease; }
.mj38-theme #support-support-launcher::part(launcher) { animation: ty-support-breathe 6.8s cubic-bezier(.38,0,.22,1) infinite; transform-origin: 50% 75%; }
@keyframes ty-support-breathe { 0%, 12%, 100% { translate: 0 0; scale: 1; } 34% { translate: 0 -3px; scale: 1.018; } 55% { translate: 0 -1px; scale: 1.006; } 83% { translate: 0 -4px; scale: 1.022; } }
@media (max-width: 700px) {
  .guide-version-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .guide-images img { height: clamp(170px, 48vw, 230px); }
  .huawei-guide-images { grid-template-columns: minmax(0, 1fr); }
  .huawei-guide-images img { width: auto; height: auto; max-height: 520px; }
  .guide-selection, .guide-complete { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) { .choice-guide { min-width: 78px; padding: 5px; font-size: 12px; } .download-option { padding-inline: 10px; } .guide-version-nav a { min-height: 104px; padding: 12px; } .guide-prompt { align-items: flex-start; flex-direction: column; } .notice-bar p { max-width: 17em; text-wrap: balance; } .mj38-theme #support-support-launcher::part(launcher)::after { bottom: 0; padding: 3px 5px; font-size: 11px; } }
@media (max-width: 380px) { .guide-images figcaption { font-size: 12px; } .guide-images a { padding: 8px; } }
@media (max-width: 380px) { .masthead-inner .brand-note { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .mj38-theme #support-support-launcher::part(launcher) { animation: none; } .header-activity, .action-button, .download-option[href], .guide-version-nav a, .guide-images a { transition: none; } }
