/**
 * Vaillant — iPhone-style device frame for desktop prototypes in demos
 */
.phone-wrap {
  position: relative;
  width: 393px;
  flex-shrink: 0;
}
.phone-shell {
  position: relative;
  width: 393px;
  height: 852px;
  background: linear-gradient(160deg, #2c2c2e 0%, #1c1c1e 100%);
  border-radius: 54px;
  box-shadow:
    0 0 0 1px #4a4a4c,
    0 0 0 3px #1c1c1e,
    0 0 0 5px #3a3a3c,
    0 40px 120px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.btn-silent {
  position: absolute;
  width: 4px;
  height: 34px;
  left: -4px;
  top: 118px;
  background: linear-gradient(180deg, #3a3a3c, #2c2c2e);
  border-radius: 3px 0 0 3px;
}
.btn-vol-up {
  position: absolute;
  width: 4px;
  height: 46px;
  left: -4px;
  top: 172px;
  background: linear-gradient(180deg, #3a3a3c, #2c2c2e);
  border-radius: 3px 0 0 3px;
}
.btn-vol-dn {
  position: absolute;
  width: 4px;
  height: 46px;
  left: -4px;
  top: 228px;
  background: linear-gradient(180deg, #3a3a3c, #2c2c2e);
  border-radius: 3px 0 0 3px;
}
.btn-power {
  position: absolute;
  width: 4px;
  height: 64px;
  right: -4px;
  top: 190px;
  background: linear-gradient(180deg, #3a3a3c, #2c2c2e);
  border-radius: 0 3px 3px 0;
}
.screen {
  position: absolute;
  inset: 0;
  border-radius: 54px;
  background: var(--v-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  background: #000;
  border-radius: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.di-cam {
  width: 10px;
  height: 10px;
  background: #1a1a1a;
  border-radius: 50%;
  border: 1.5px solid #333;
}
.di-dot {
  width: 6px;
  height: 6px;
  background: #0a1a0a;
  border-radius: 50%;
}
.status-bar {
  height: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 8px;
  flex-shrink: 0;
  z-index: 10;
  position: relative;
}
.s-time {
  font-size: 17px;
  font-weight: 400;
  color: #f0f4f0;
}
.s-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.s-icons svg {
  width: 16px;
  height: 16px;
  fill: #f0f4f0;
}
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  z-index: 60;
  pointer-events: none;
}

/* ── WeChat mini program style chrome (use .screen--wxmp on .screen) ── */
.screen--wxmp .dynamic-island,
.screen--wxmp .status-bar {
  display: none !important;
}

.screen--wxmp .wx-mp-chrome {
  flex-shrink: 0;
  background: #000;
  color: #fff;
  z-index: 20;
}

.screen--wxmp .wx-mp-status {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #fff;
}

.screen--wxmp .wx-mp-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.screen--wxmp .wx-mp-status-icons svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

.screen--wxmp .wx-mp-nav {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 10px 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.screen--wxmp .wx-mp-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.screen--wxmp .wx-mp-back svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen--wxmp .wx-mp-title {
  position: absolute;
  left: 48px;
  right: 96px;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.screen--wxmp .wx-mp-capsule {
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.screen--wxmp .wx-mp-capsule-btn {
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  font-family: inherit;
}

.screen--wxmp .wx-mp-capsule-btn.wx-mp-capsule-more {
  font-size: 20px;
  letter-spacing: 1px;
}

.screen--wxmp .wx-mp-capsule-close {
  position: relative;
}

.screen--wxmp .wx-mp-capsule-close::after {
  content: '';
  width: 17px;
  height: 17px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: block;
}

.screen--wxmp .wx-mp-capsule-close::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.screen--wxmp .wx-mp-capsule-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.screen--wxmp .wx-mp-back--hidden {
  visibility: hidden;
  pointer-events: none;
}
