:root {
  color-scheme: dark;
  --bg: #000;
  --ink: rgba(255, 255, 255, 0.78);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: stretch;
  padding: 0;
}

.frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #000;
}

.winter {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  object-fit: cover;
  object-position: center center;
  background: #000;
  border: 0;
  /* slight upscale so calligraphy reads sharper on phone */
  transform: scale(1.04);
  transform-origin: center center;
}

.sign {
  position: absolute;
  left: 50%;
  top: 28%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: auto;
  max-width: 80%;
  margin: 0;
  text-align: center;
  font-family: "Ma Shan Zheng", "ZCOOL XiaoWei", "STXingkai", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.3rem, 3.7vw, 1.95rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.35);
  line-height: 1.35;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.95;
}

@media (orientation: portrait) {
  .winter {
    object-position: center 42%;
    transform: scale(1.08);
  }
  .sign {
    top: 26%;
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: clamp(1.25rem, 6.2vw, 1.75rem);
    letter-spacing: 0.24em;
    text-indent: 0.24em;
    max-width: 90%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #snow { display: none; }
  .winter { transform: none; }
}
