/**
 * #045 Character-led Home — single-screen Hero + dialogue + menu
 * Mobile: 100dvh, no scroll dependency. Desktop: spatial menu beside hero.
 */

html.mjn-cl-home,
html.mjn-cl-home body.mjn-cl-home {
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #020617;
  color: #f8fafc;
}

html.mjn-cl-home body.mjn-cl-home {
  margin: 0;
  --mjn-home-scene-position: center 26%;
  --mjn-home-scene-size: cover;
  background-image:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.97) 0%,
      rgba(2, 6, 23, 0.72) 12%,
      rgba(2, 6, 23, 0.46) 46%,
      rgba(2, 6, 23, 0.9) 100%
    ),
    var(--mjn-home-scene, url("/assets/backgrounds/main-home.png"));
  background-position: var(--mjn-home-scene-position);
  background-size: var(--mjn-home-scene-size);
  background-repeat: no-repeat;
}

.mjn-cl-home-app {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
  max-height: 100dvh;
  padding:
    max(10px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    max(10px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  pointer-events: none;
}

.mjn-cl-home-app a,
.mjn-cl-home-app button,
.mjn-cl-home-app summary {
  pointer-events: auto;
}

.mjn-cl-home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  z-index: 5;
}

.mjn-cl-region-access {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: max(12px, env(safe-area-inset-left, 0px));
  z-index: 20;
  pointer-events: auto;
}

.mjn-cl-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}

.mjn-cl-home-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.mjn-cl-home-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mjn-cl-home-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(248, 250, 252, 0.72);
  font-weight: 700;
}

.mjn-cl-home-region {
  font-size: 0.95rem;
  font-weight: 800;
}

.mjn-cl-home-region-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 214, 139, 0.58);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(51, 39, 22, 0.72));
  color: #f8fafc;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(14px) saturate(1.15);
}

.mjn-cl-home-region-label {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.68rem;
  font-weight: 700;
}

.mjn-cl-home-region-chevron {
  color: #f4d68b;
  font-size: 1rem;
}

.mjn-cl-home-main {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

.mjn-cl-home-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.mjn-cl-home-more {
  display: none !important;
}

.mjn-cl-home-more summary {
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

.mjn-cl-home-more summary::-webkit-details-marker {
  display: none;
}

.mjn-cl-home-more-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 0 4px;
}

.mjn-cl-home-more-nav a,
.mjn-cl-home-more-admin {
  color: rgba(248, 250, 252, 0.7);
  text-decoration: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* —— Home Hero stage: never corner dock on home —— */
html.mjn-cl-home body.mjn-ce-ready:not(.mjn-living-depart) .mjn-character-stage.is-live {
  left: 50%;
  right: auto;
  bottom: auto;
  top: 42%;
  width: min(72vw, 300px);
  height: min(52dvh, 480px);
  max-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 24px);
  max-height: min(52dvh, 480px);
  transform: translate(-50%, -55%);
  border-radius: 28px;
  opacity: 1;
  z-index: 30;
  pointer-events: auto;
  box-shadow:
    0 0 0 1px rgba(251, 146, 60, 0.28),
    0 28px 72px rgba(0, 0, 0, 0.45),
    0 0 90px rgba(251, 146, 60, 0.2);
}

html.mjn-cl-home body.mjn-ce-ready:not(.mjn-living-depart) .mjn-character-stage.is-hero {
  top: 42%;
  bottom: auto;
  transform: translate(-50%, -55%);
}

/* Home led-nav: primary UI under / around hero — not dock clearance */
html.mjn-cl-home .mjn-cln {
  inset: auto 0 0 0;
  top: auto;
  z-index: 40;
  --mjn-cln-dock-clear: calc(env(safe-area-inset-bottom, 0px) + 3.2rem);
}

html.mjn-cl-home .mjn-cln__panel {
  width: min(100%, 26rem);
  padding-bottom: calc(var(--mjn-cln-dock-clear) + 0.25rem);
}

html.mjn-cl-home .mjn-cln__toggle {
  display: none;
}

html.mjn-cl-home .mjn-cln.is-open .mjn-cln__menu,
html.mjn-cl-home .mjn-cln .mjn-cln__menu {
  max-height: none;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  overflow: visible;
}

html.mjn-cl-home body.mjn-has-presence-dock {
  padding-bottom: 0;
}

@media (min-width: 900px) {
  html.mjn-cl-home body.mjn-ce-ready:not(.mjn-living-depart) .mjn-character-stage.is-live {
    left: 38%;
    width: min(34vw, 420px);
    height: min(62vh, 700px);
    max-height: min(62vh, 700px);
    top: 50%;
    transform: translate(-50%, -50%);
  }

  html.mjn-cl-home .mjn-cln {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: clamp(1.5rem, 7vw, 5rem);
    --mjn-cln-dock-clear: 0px;
  }

  html.mjn-cl-home .mjn-cln__panel {
    width: min(22rem, 32vw);
    transform: translateY(-2vh);
  }
}

@media (max-width: 420px) {
  html.mjn-cl-home body.mjn-ce-ready:not(.mjn-living-depart) .mjn-character-stage.is-live {
    width: min(78vw, 280px);
    height: min(46dvh, 420px);
    max-height: min(46dvh, 420px);
    top: 38%;
  }
}

/* —— #045.2 Android portrait shell: physical Character / Panel split —— */
.mjn-mobile-service-shell,
.mjn-character-space,
.mjn-guided-panel,
.mjn-guided-panel__content {
  display: contents;
}

.mjn-character-space__prompt {
  display: none;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home,
html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  body.mjn-cl-home {
  width: 100%;
  height: var(--mjn-app-height, 100dvh);
  min-height: var(--mjn-app-height, 100dvh);
  overflow: hidden;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-cl-home-app {
  width: 100%;
  max-width: none;
  height: var(--mjn-app-height, 100dvh);
  min-height: var(--mjn-app-height, 100dvh);
  max-height: var(--mjn-app-height, 100dvh);
  margin: 0;
  padding: 0;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-cl-home-top {
  display: none !important;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-cl-home-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-mobile-service-shell {
  display: grid;
  /* Character dominates; the two root choices sit directly below its feet. */
  grid-template-rows: minmax(0, 70%) minmax(0, 30%);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

html.mjn-cl-home[data-mjn-menu-bg="home"] {
  --mjn-home-scene: url("/assets/backgrounds/main-home.png");
  --mjn-home-scene-position: center 30%;
  --mjn-character-menu-background:
    radial-gradient(circle at 50% 48%, rgba(37, 99, 235, 0.17), transparent 50%);
}

html.mjn-cl-home[data-mjn-menu-bg="request"] {
  --mjn-home-scene: url("/assets/backgrounds/request-cleaning.png");
  --mjn-home-scene-position: center 36%;
  --mjn-character-menu-background:
    radial-gradient(circle at 38% 44%, rgba(14, 165, 233, 0.2), transparent 52%);
}

html.mjn-cl-home[data-mjn-menu-bg="join"] {
  --mjn-home-scene: url("/assets/backgrounds/join-cleaning.png");
  --mjn-home-scene-position: center 38%;
  --mjn-character-menu-background:
    radial-gradient(circle at 62% 44%, rgba(13, 148, 136, 0.2), transparent 52%);
}

/* PHASE C-2: outgoing environment layer for crossfade (body scene only). */
html.mjn-cl-home[data-mjn-menu-bg-from="home"] {
  --mjn-home-scene-from: url("/assets/backgrounds/main-home.png");
  --mjn-home-scene-from-position: center 30%;
  --mjn-character-menu-background-from:
    radial-gradient(circle at 50% 48%, rgba(37, 99, 235, 0.17), transparent 50%);
}

html.mjn-cl-home[data-mjn-menu-bg-from="request"] {
  --mjn-home-scene-from: url("/assets/backgrounds/request-cleaning.png");
  --mjn-home-scene-from-position: center 36%;
  --mjn-character-menu-background-from:
    radial-gradient(circle at 38% 44%, rgba(14, 165, 233, 0.2), transparent 52%);
}

html.mjn-cl-home[data-mjn-menu-bg-from="join"] {
  --mjn-home-scene-from: url("/assets/backgrounds/join-cleaning.png");
  --mjn-home-scene-from-position: center 38%;
  --mjn-character-menu-background-from:
    radial-gradient(circle at 62% 44%, rgba(13, 148, 136, 0.2), transparent 52%);
}

html.mjn-cl-home body.mjn-cl-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background-color: #020617;
  background-image:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.97) 0%,
      rgba(2, 6, 23, 0.72) 12%,
      rgba(2, 6, 23, 0.46) 46%,
      rgba(2, 6, 23, 0.9) 100%
    ),
    var(--mjn-home-scene-from, none);
  background-position: var(--mjn-home-scene-from-position, center 26%);
  background-size: var(--mjn-home-scene-size, cover);
  background-repeat: no-repeat;
}

/* Hold outgoing scene while REACTING-OUT, then fade it away during REACTING-IN. */
html.mjn-cl-home[data-mjn-env-phase="reacting-out"] body.mjn-cl-home::before {
  opacity: 1;
}

html.mjn-cl-home[data-mjn-env-phase="reacting-in"] body.mjn-cl-home::before {
  opacity: 1;
  animation: mjn-env-react-in 240ms ease forwards;
}

@keyframes mjn-env-react-in {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Soft tone swap on Character Space (canvas-host stays above; no canvas rules). */
html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-character-space::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: var(--mjn-character-menu-background-from, transparent);
}

html.mjn-cl-home[data-mjn-env-phase="reacting-out"]
  .mjn-character-space::after,
html.mjn-cl-home[data-mjn-env-phase="reacting-in"]
  .mjn-character-space::after {
  opacity: 1;
}

html.mjn-cl-home[data-mjn-env-phase="reacting-in"]
  .mjn-character-space::after {
  animation: mjn-env-tone-in 240ms ease forwards;
}

@keyframes mjn-env-tone-in {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.mjn-cl-home[data-mjn-env-phase="reacting-out"] body.mjn-cl-home::before,
  html.mjn-cl-home[data-mjn-env-phase="reacting-in"] body.mjn-cl-home::before,
  html.mjn-cl-home[data-mjn-env-phase="reacting-out"] .mjn-character-space::after,
  html.mjn-cl-home[data-mjn-env-phase="reacting-in"] .mjn-character-space::after {
    animation: none;
    opacity: 0;
  }
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-character-space {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  border-bottom: 0;
  background:
    var(--mjn-character-menu-background, transparent),
    radial-gradient(circle at 50% 54%, rgba(37, 99, 235, 0.08), transparent 52%),
    transparent;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-character-space__viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-character-space__viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.62) 78%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.28), transparent 34%, rgba(2, 6, 23, 0.42));
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-character-space__canvas-host {
  position: relative;
  z-index: 2;
  min-height: 0;
  overflow: hidden;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-character-space__canvas-host
  canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  body.mjn-ce-ready:not(.mjn-living-depart)
  .mjn-character-space
  .mjn-character-stage.is-live,
html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  body.mjn-ce-ready:not(.mjn-living-depart)
  .mjn-character-space
  .mjn-character-stage.is-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  transform: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  contain: layout paint;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-character-space
  .mjn-character-stage__canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  pointer-events: none;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-character-space
  .mjn-character-stage__hint {
  display: none !important;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-character-space__dialogue-zone {
  position: static;
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 6px 12px 8px;
  border-top: 0;
  background: transparent;
}

/* Submenu: panel header already names the section — hide duplicate title pill. */
html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-mobile-service-shell:has(.mjn-guided-panel[data-panel-state="CATEGORY"])
  .mjn-character-space__dialogue-zone {
  display: none;
  min-height: 0;
  padding: 0;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-mobile-service-shell:has(.mjn-guided-panel[data-panel-state="CATEGORY"])
  .mjn-character-space {
  grid-template-rows: minmax(0, 1fr);
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-mobile-service-shell:has(.mjn-guided-panel[data-panel-state="CATEGORY"][data-panel-target="join-cleaning"]) {
  grid-template-rows: minmax(0, 76%) minmax(0, 24%);
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-mobile-service-shell:has(.mjn-guided-panel[data-panel-state="CATEGORY"][data-panel-target="join-cleaning"])
  .mjn-guided-panel-host {
  padding-top: 6px;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-mobile-service-shell:has(.mjn-guided-panel[data-panel-state="CATEGORY"][data-panel-target="join-cleaning"])
  .mjn-guided-panel__menu {
  gap: 10px;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-mobile-service-shell:has(.mjn-guided-panel[data-panel-state="CATEGORY"][data-panel-target="join-cleaning"])
  .mjn-guided-panel__choice {
  min-height: 52px;
  padding: 0.62rem 0.55rem;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-character-space__prompt {
  position: static;
  display: block;
  width: 100%;
  max-width: 32rem;
  min-height: 44px;
  margin: 0;
  padding: 0.62rem 1rem;
  box-sizing: border-box;
  transform: none;
  border: 1px solid rgba(244, 214, 139, 0.44);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(2, 6, 23, 0.82), rgba(51, 39, 22, 0.64));
  color: #f8fafc;
  font-size: clamp(0.9rem, 4vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel-host {
  min-height: 0;
  overflow: hidden;
  border-top: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.76));
  color: #fff;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: #fff;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 2px 16px 4px;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel[data-panel-state="HOME"]
  .mjn-guided-panel__header {
  display: none;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel[data-panel-state="GUIDE"]
  .mjn-guided-panel__header {
  display: flex;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__back {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(244, 214, 139, 0.5);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 800;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__title {
  margin: 0;
  color: #fff7ed;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  padding:
    4px
    max(14px, env(safe-area-inset-right, 0px))
    max(14px, env(safe-area-inset-bottom, 0px))
    max(14px, env(safe-area-inset-left, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__choice {
  width: 100%;
  min-height: 56px;
  padding: 0.72rem 0.6rem;
  border: 1px solid rgba(244, 214, 139, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(72, 52, 25, 0.78)),
    rgba(15, 23, 42, 0.82);
  color: #fffaf0;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 30px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(14px) saturate(1.15);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__choice:active {
  transform: translateY(1px) scale(0.99);
  border-color: rgba(255, 238, 174, 0.9);
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__choice:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.34);
  outline-offset: 2px;
}

/* PHASE C-1: selected pulse — only the clicked choice stays highlighted. */
html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__choice.is-selected {
  transform: scale(1.04);
  border-color: rgba(255, 238, 174, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(255, 214, 120, 0.45),
    0 16px 34px rgba(249, 115, 22, 0.28);
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel[data-panel-transition="selected"]
  .mjn-guided-panel__choice:not(.is-selected) {
  opacity: 0.82;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel[data-panel-transition="exiting"]
  .mjn-guided-panel__choice,
html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel[data-panel-transition="entering"]
  .mjn-guided-panel__choice {
  pointer-events: none;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__body {
  will-change: opacity, transform;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel[data-panel-transition="exiting"][data-panel-direction="forward"]
  .mjn-guided-panel__body {
  animation: mjn-panel-exit-forward 220ms ease forwards;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel[data-panel-transition="exiting"][data-panel-direction="back"]
  .mjn-guided-panel__body {
  animation: mjn-panel-exit-back 220ms ease forwards;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel[data-panel-transition="entering"][data-panel-direction="forward"]
  .mjn-guided-panel__body {
  animation: mjn-panel-enter-forward 260ms ease forwards;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel[data-panel-transition="entering"][data-panel-direction="back"]
  .mjn-guided-panel__body {
  animation: mjn-panel-enter-back 260ms ease forwards;
}

@keyframes mjn-panel-exit-forward {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-18px) scale(0.98);
  }
}

@keyframes mjn-panel-exit-back {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(18px) scale(0.98);
  }
}

@keyframes mjn-panel-enter-forward {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes mjn-panel-enter-back {
  from {
    opacity: 0;
    transform: translateX(-24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
    .mjn-guided-panel[data-panel-transition="exiting"]
    .mjn-guided-panel__body,
  html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
    .mjn-guided-panel[data-panel-transition="entering"]
    .mjn-guided-panel__body {
    animation-duration: 80ms;
  }

  html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
    .mjn-guided-panel__choice.is-selected {
    transform: none;
  }
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__content {
  min-height: 100%;
  display: grid;
  place-items: start stretch;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__message {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(244, 214, 139, 0.5);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.84);
  color: #f8fafc;
  line-height: 1.55;
  white-space: pre-line;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__content--guide {
  gap: 14px;
  display: grid;
  align-content: start;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__guide-actions {
  display: grid;
  gap: 10px;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-panel__choice--cta {
  border-color: rgba(251, 191, 36, 0.85);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.28), rgba(15, 23, 42, 0.88));
  color: #fffbeb;
  font-weight: 800;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-order-room__actions {
  position: sticky;
  top: -8px;
  z-index: 2;
  padding-bottom: 10px;
  background: #fff;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-order-room__status {
  margin: 4px 0 10px;
  color: #475569;
  font-size: 0.84rem;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-order-room__status.is-error {
  color: #b91c1c;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-order-room__list {
  display: grid;
  gap: 9px;
  padding-bottom: 4px;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-listing {
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-listing__title,
html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-listing__meta,
html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-listing__price {
  margin: 0;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-listing__title {
  color: #0f172a;
  font-size: 0.94rem;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-listing__meta,
html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-guided-listing__price {
  margin-top: 4px;
  color: #475569;
  font-size: 0.79rem;
  line-height: 1.4;
}

html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
  .mjn-cl-home-more {
  display: none;
}

@media (max-height: 700px) {
  html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
    .mjn-guided-panel__header {
    padding-top: 6px;
  }

  html[data-mjn-experience="mobile-service"][data-mjn-orientation="portrait"].mjn-cl-home
    .mjn-guided-panel__choice {
    min-height: 44px;
    padding: 0.5rem 0.4rem;
  }
}
