:root {
  font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
  color: #46263b;
  background: #fff0f4;
  accent-color: #c23f73;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 17%, #ffdeeb 0%, transparent 57%),
              linear-gradient(150deg, #fff7f9, #ffedf4 62%, #f9effd);
}
main { width: min(100% - 36px, 456px); margin: auto; padding: 22px 0 28px; }
header, .progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 800; letter-spacing: .06em; font-size: .95rem; }
.brand span { font-size: 1.25rem; color: #bd3d73; margin-right: 2px; }
.mode { color: #8c3159; background: #fff8fb; border: 1px solid #f0bfd3; border-radius: 30px; padding: 5px 11px; font-size: .875rem; }
.hero { text-align: center; padding: 20px 0 24px; }
.art { width: 248px; height: 126px; margin: 0 auto 6px; position: relative; }
.art::before {
  content: ""; position: absolute; inset: 13px 19px 6px; border-radius: 50%;
  background: radial-gradient(ellipse, #ffc1d9 0%, #ffd9e8 55%, transparent 74%);
}
.tile {
  position: absolute; display: grid; place-items: center; width: 71px; height: 74px;
  border-radius: 20px; font-weight: 800; font-size: 2.55rem; border: 2px solid #fff9;
  box-shadow: inset 0 -6px #57214112, 0 8px 14px #a64e7429;
}
.left { top: 34px; left: 28px; transform: rotate(-16deg); background: #fff4da; color: #965444; }
.right { top: 36px; right: 28px; transform: rotate(15deg); background: #ede2ff; color: #765398; }
.center { top: 19px; left: 85px; width: 80px; height: 86px; transform: rotate(-4deg); background: #f69dbf; color: #732040; }
.spark { position: absolute; color: #b94273; }
.a { left: 17px; top: 9px; font-size: 20px; }
.b { right: 15px; top: 4px; font-size: 26px; }
.c { right: 11px; bottom: 9px; font-size: 15px; }
h1 { font-size: clamp(2rem, 8vw, 2.8rem); margin: 0; letter-spacing: .025em; font-weight: 900; line-height: 1.22; }
.hero p { margin: 9px 0 0; color: #784a66; line-height: 1.6; }
.card { background: #fffafb; border: 1px solid #f7d3e2; border-radius: 26px; padding: 22px; box-shadow: 0 12px 35px #a04e7520; }
h2 { font-size: 1.125rem; margin: 0; }
.progress-head p { margin: 0; color: #784a66; white-space: nowrap; }
.progress-head strong { color: #a32d60; font-size: 1.5rem; }
.segments { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 11px 0 23px; }
.segments span { height: 9px; border-radius: 18px; background: #f6dce7; }
.segments .filled { background: #d25184; }
form { display: grid; gap: 9px; }
label { font-weight: 750; }
input, button { font: inherit; }
input { border: 1px solid #e6bad0; min-width: 0; border-radius: 13px; width: 100%; padding: 13px; color: inherit; background: #fff; }
input::placeholder { color: #88667a; }
button { cursor: pointer; }
button:disabled { opacity: .58; cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid #9a3d91; outline-offset: 3px; }
#submit { border: 0; margin-top: 4px; padding: 13px 10px; min-height: 51px; border-radius: 14px; color: white; background: linear-gradient(110deg, #a92c60, #b63a70); font-weight: 800; }
#submit span { margin-right: 3px; }
.sealed { color: #794662; background: #fbeaf1; border-radius: 13px; text-align: center; margin-top: 16px; padding: 10px 6px; font-size: .875rem; }
.sealed span { color: #aa3a68; font-weight: bold; margin-right: 3px; }
#feedback { color: #84305a; margin: 13px 0 0; line-height: 1.55; }
footer { text-align: center; color: #784a66; margin-top: 14px; font-size: .875rem; }
footer button { background: none; border: 0; color: #8e2e5a; padding: 9px 4px; text-decoration: underline; }
#winners { display: grid; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
#winners li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; background: #fbeaf1; border-radius: 12px; overflow-wrap: anywhere; }
#winners strong { flex: 0 0 38px; text-align: center; background: #fff8fc; color: #952450; border-radius: 8px; padding: 4px 0; font-size: 1.4rem; }
