:root {
  color-scheme: light;
  --black: #090909;
  --paper: #fffef2;
  --yellow: #f5df00;
  --red: #f20b27;
  --pink: #f0008b;
  --cyan: #00dce8;
  --blue: #1046ff;
  --green: #19b94d;
  --violet: #7b18e7;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--yellow);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--black);
  background: var(--yellow);
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", serif;
}

button,
a { font: inherit; }

.love-broadcast { min-height: 100vh; }

.opening {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(160px, 0.9fr) auto minmax(190px, 0.8fr) auto;
  min-height: 100svh;
  padding-top: 72px;
  overflow: hidden;
  background: var(--yellow);
  border: 8px solid var(--black);
}

.opening::before,
.opening::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
  border-top: 5px solid var(--black);
  border-bottom: 5px solid var(--black);
}

.opening::before {
  top: 54px;
  background: var(--cyan);
}

.opening::after {
  bottom: 58px;
  background: var(--pink);
}

.signal-bar {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 180px 0 20px;
  color: white;
  background: var(--blue);
  border-bottom: 6px solid var(--black);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.flower-wall {
  position: absolute;
  z-index: -2;
  inset: 74px 0 58px;
  overflow: hidden;
}

.flower-frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: white;
  border: 8px solid var(--black);
  box-shadow: 12px 12px 0 var(--red);
}

.flower-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flower-frame--print {
  left: -3vw;
  top: 9%;
  width: clamp(220px, 28vw, 430px);
  aspect-ratio: 4 / 3;
  transform: rotate(-5deg);
}

.flower-frame--print img {
  filter: contrast(1.2) saturate(2.4) hue-rotate(300deg);
}

.flower-frame--photo {
  right: -3vw;
  bottom: 4%;
  width: clamp(230px, 30vw, 460px);
  aspect-ratio: 4 / 3;
  box-shadow: -12px 12px 0 var(--cyan);
  transform: rotate(5deg);
}

.flower-frame--photo img {
  filter: saturate(1.8) contrast(1.1);
}

.peony-drawing {
  position: absolute;
  width: clamp(170px, 22vw, 330px);
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.peony-drawing--left {
  left: 8%;
  bottom: -16%;
  transform: rotate(18deg);
}

.peony-drawing--right {
  top: -10%;
  right: 8%;
  transform: rotate(-24deg) scaleX(-1);
}

.broadcast-title {
  z-index: 2;
  align-self: center;
  width: min(900px, 88vw);
  margin: 0 auto;
  text-align: center;
}

.title-kicker,
.title-subline {
  display: inline-block;
  margin: 0;
  padding: 5px 10px;
  color: white;
  background: var(--black);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 900;
}

.title-kicker { font-size: clamp(12px, 1.4vw, 16px); }

.broadcast-title h1 {
  display: flex;
  justify-content: center;
  margin: 12px 0;
  font-family: STKaiti, KaiTi, "Songti SC", serif;
  font-size: clamp(4rem, 11vw, 9.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 5px 5px 0 white, 10px 10px 0 var(--black);
}

.broadcast-title h1 span:nth-child(1) { color: var(--red); }
.broadcast-title h1 span:nth-child(2) { color: var(--blue); }
.broadcast-title h1 span:nth-child(3) { color: var(--green); }
.broadcast-title h1 span:nth-child(4) { color: var(--pink); }
.broadcast-title h1 span:nth-child(5) { color: var(--violet); }

.title-subline {
  color: var(--black);
  background: var(--cyan);
  border: 3px solid var(--black);
  font-size: clamp(13px, 1.5vw, 18px);
}

.love-marquee {
  position: relative;
  z-index: 3;
  align-self: center;
  width: 100%;
  overflow: hidden;
  color: var(--yellow);
  background: var(--pink);
  border-top: 8px solid var(--black);
  border-bottom: 8px solid var(--black);
  box-shadow: 0 10px 0 white, 0 18px 0 var(--black);
}

.love-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: max-content;
  padding: 11px 0 15px;
  will-change: transform;
  animation: love-scroll 14s linear infinite;
}

.love-marquee span {
  font-family: STKaiti, KaiTi, "Songti SC", serif;
  font-size: clamp(3rem, 8vw, 7.4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 var(--black);
  white-space: nowrap;
}

.love-marquee b {
  color: white;
  font-size: clamp(2.3rem, 5vw, 5.4rem);
  text-shadow: 3px 3px 0 var(--black);
}

@keyframes love-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.declaration {
  position: relative;
  z-index: 2;
  align-self: center;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  width: min(920px, calc(100% - 40px));
  margin: 30px auto 26px;
  padding: clamp(16px, 2vw, 24px);
  background: rgba(255, 254, 242, 0.92);
  border: 7px double var(--black);
  box-shadow: 12px 12px 0 var(--blue);
}

.love-seal {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  color: white;
  background: var(--red);
  border: 5px solid var(--black);
  border-radius: 50%;
  font-family: KaiTi, serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 0.95;
  transform: rotate(-9deg);
}

.declaration-copy p {
  margin: 0;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.55;
}

.declaration-copy .main-line {
  color: var(--red);
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
}

.bloom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  color: white;
  background: var(--green);
  border: 4px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  cursor: pointer;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  font-weight: 900;
  touch-action: manipulation;
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}

.bloom-button:active { transform: scale(0.97); }

.bloom-button:focus-visible {
  outline: 4px solid white;
  outline-offset: 3px;
}

.is-blooming .bloom-button { background: var(--red); }

.news-ticker {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  margin-top: auto;
  color: white;
  background: var(--black);
  border-top: 6px solid white;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.news-ticker strong {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 22px;
  color: var(--black);
  background: var(--cyan);
  font-size: 15px;
}

.news-ticker p {
  margin: 0;
  padding: 11px 20px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promise-strip {
  color: white;
  background: var(--violet);
  border: 0 8px 8px;
  border-style: solid;
  border-color: var(--black);
}

.promise-strip > p {
  margin: 0;
  padding: 12px 20px;
  color: var(--black);
  background: var(--cyan);
  border-bottom: 6px solid var(--black);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promise-grid div {
  min-width: 0;
  padding: clamp(28px, 5vw, 64px) 14px;
  text-align: center;
}

.promise-grid div + div { border-left: 6px solid var(--black); }
.promise-grid div:nth-child(2) { background: var(--red); }
.promise-grid div:nth-child(3) { color: var(--black); background: var(--yellow); }

.promise-grid strong,
.promise-grid span { display: block; }

.promise-grid strong {
  overflow-wrap: anywhere;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(2.2rem, 7vw, 7rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 var(--black);
}

.promise-grid div:nth-child(3) strong { text-shadow: 4px 4px 0 white; }

.promise-grid span {
  margin-top: 12px;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 900;
}

.broadcast-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px max(20px, 3vw);
  color: white;
  background: var(--black);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
}

.broadcast-footer a { color: var(--cyan); }

.love-particle {
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  pointer-events: none;
  color: var(--red);
  font-family: serif;
  font-size: 28px;
  text-shadow: 2px 2px 0 white;
  will-change: transform, opacity;
}

@media (hover: hover) and (pointer: fine) {
  .bloom-button:hover { background: var(--pink); }
}

@media (max-width: 760px) {
  .opening {
    grid-template-rows: minmax(190px, 0.8fr) auto minmax(250px, auto) auto;
    padding-top: 66px;
    border-width: 5px;
  }

  .signal-bar {
    min-height: 50px;
    padding: 0 64px 0 12px;
    border-bottom-width: 5px;
    font-size: 11px;
  }

  .signal-bar span:nth-child(2) { display: none; }
  .flower-wall { top: 66px; }
  .flower-frame { border-width: 5px; }

  .flower-frame--print {
    left: -24%;
    top: 7%;
    width: 58vw;
  }

  .flower-frame--photo {
    right: -24%;
    bottom: 9%;
    width: 61vw;
  }

  .peony-drawing { width: 42vw; }
  .broadcast-title { width: calc(100% - 24px); }

  .broadcast-title h1 {
    font-size: clamp(3.35rem, 18.5vw, 6.3rem);
    text-shadow: 3px 3px 0 white, 6px 6px 0 var(--black);
  }

  .love-marquee {
    border-top-width: 5px;
    border-bottom-width: 5px;
    box-shadow: 0 6px 0 white, 0 11px 0 var(--black);
  }

  .love-marquee span {
    font-size: clamp(3.1rem, 16vw, 5.2rem);
    text-shadow: 3px 3px 0 var(--black);
  }

  .declaration {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    width: calc(100% - 24px);
    margin: 28px auto 22px;
    padding: 14px;
    border-width: 5px;
    box-shadow: 7px 7px 0 var(--blue);
  }

  .love-seal {
    width: 54px;
    border-width: 3px;
    font-size: 18px;
  }

  .declaration-copy .main-line { font-size: clamp(1.7rem, 8vw, 2.5rem); }

  .declaration-copy p:last-child {
    margin-top: 4px;
    font-size: 14px;
  }

  .bloom-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 50px;
  }

  .news-ticker {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 54px;
    border-top-width: 5px;
  }

  .news-ticker strong { padding: 0 8px; font-size: 12px; }
  .news-ticker p { padding: 10px; font-size: 12px; }

  .promise-strip { border-width: 0 5px 5px; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-grid div { padding: 30px 14px; }

  .promise-grid div + div {
    border-top: 5px solid var(--black);
    border-left: 0;
  }

  .promise-grid strong { font-size: clamp(3rem, 17vw, 5rem); }

  .broadcast-footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .signal-bar span:last-child { display: none; }
  .broadcast-title h1 { font-size: clamp(3rem, 17vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .love-marquee-track { animation: none; }
  .love-marquee-track span:nth-of-type(n + 2),
  .love-marquee-track b:nth-of-type(n + 2) { display: none; }
}
