.display-page { height: 100vh; overflow: hidden; position: relative; }
#fireworks, #fireworks3d { position: fixed; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }
#fireworks3d { mix-blend-mode: screen; }
#fireworks[hidden], #fireworks3d[hidden] { display: none; }
.display-page::before {
  content: ""; position: fixed; inset: 0; z-index: -4;
  background:
    linear-gradient(90deg, rgba(2, 4, 18, .28), rgba(2, 7, 27, .06) 34%, rgba(2, 7, 27, .06) 66%, rgba(2, 4, 18, .3)),
    linear-gradient(180deg, rgba(2, 5, 20, .28), transparent 48%, rgba(2, 5, 18, .24)),
    url("assets/festive-mall-background-v1.jpg") center center / cover no-repeat,
    #061126;
}
.display-page::after {
  content: ""; position: fixed; inset: 0; z-index: -2; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}
.aurora { display: none; }
.aurora-one { width: 45vw; height: 18vw; top: 20%; left: 20%; background: #176dff; transform: rotate(-13deg); }
.aurora-two { width: 38vw; height: 16vw; top: 6%; right: 5%; background: #893cff; animation-delay: -5s; }
@keyframes drift { to { transform: translate(5vw, 4vh) rotate(8deg) scale(1.15); } }
.stars { position: fixed; inset: 0; z-index: -1; opacity: .3; background-image: radial-gradient(#fff 0.7px, transparent 0.9px), radial-gradient(#77cfff 0.8px, transparent 1px); background-position: 0 0, 45px 72px; background-size: 88px 88px, 121px 121px; }

.display-header { height: 17vh; padding: 2.4vh 3vw; display: grid; grid-template-columns: 1fr 2.2fr 1fr; align-items: start; position: relative; z-index: 5; }
.brand-mark { justify-self: start; display: flex; align-items: center; gap: .65rem; font-size: clamp(1rem, 1.3vw, 1.45rem); font-weight: 700; letter-spacing: .08em; }
.brand-mark span { color: var(--gold); font-size: 1.5em; filter: drop-shadow(0 0 12px #ffd56a); }
.event-title { text-align: center; }
.event-title h1 { margin: 0; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(1.6rem, 3vw, 3.4rem); font-weight: 600; letter-spacing: .12em; text-shadow: 0 0 26px rgba(145, 202, 255, .36); }
.live-pill { justify-self: end; display: flex; gap: .55rem; align-items: center; padding: .55rem .8rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(5, 11, 34, .5); color: #dfe9ff; font-size: .82rem; }

.display-main { height: 70vh; padding: 1vh 3vw; display: grid; grid-template-columns: minmax(220px, 17vw) minmax(0, 1fr); gap: 2.5vw; align-items: center; position: relative; z-index: 3; }
.qr-panel { padding: 1.2vw; border-radius: 1.4rem; text-align: center; }
.qr-kicker { margin: 0 0 .8rem; font-size: clamp(1.2rem, 1.6vw, 1.8rem); font-weight: 800; letter-spacing: .15em; }
.qr-shell { padding: .65rem; background: #fff; border-radius: 1rem; box-shadow: 0 0 35px rgba(91, 220, 255, .3); }
.qr-shell img { display: block; width: 100%; aspect-ratio: 1; }
.qr-tip { margin: .9rem 0 .8rem; color: #cfe5ff; font-size: clamp(.78rem, 1vw, 1rem); }
.room-line { padding-top: .8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.room-line strong { color: #fff; margin-left: .35rem; }

.stage-copy { min-height: 40vh; display: grid; place-items: center; text-align: center; }
.idle-copy { position: relative; top: -16vh; opacity: .94; animation: breathe 3.5s ease-in-out infinite; }
.idle-copy .spark { color: var(--gold); font-size: 2rem; text-shadow: 0 0 25px #ffd56a; }
.idle-copy p { margin: .7rem 0 .35rem; color: #fff; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(1.2rem, 2vw, 2.4rem); letter-spacing: .14em; text-shadow: 0 3px 10px rgba(0,0,0,.92), 0 0 30px rgba(82, 164, 255, .5); }
.idle-copy small { color: #dbe9ff; letter-spacing: .12em; text-shadow: 0 2px 8px rgba(0,0,0,.95); }
@keyframes breathe { 50% { opacity: .76; transform: translateY(-6px); } }

.history-panel { align-self: stretch; margin: 5vh 0; border-radius: 1.4rem; padding: 1.25rem; overflow: hidden; }
.history-panel[hidden] { display: none; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.history-heading h2 { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.55rem); }
.history-heading > span { color: var(--muted); font-size: .75rem; }
.history-list { display: flex; flex-direction: column; gap: .65rem; padding-top: .8rem; }
.history-item { padding: .7rem .8rem; border: 1px solid rgba(255,255,255,.08); border-radius: .85rem; background: rgba(255,255,255,.045); animation: historyIn .45s ease both; }
.history-item p { margin: 0 0 .3rem; font-size: clamp(.8rem, 1vw, 1rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item small { color: var(--muted); }
.history-item[data-color="gold"] { border-left: 3px solid #ffd56a; }
.history-item[data-color="rose"] { border-left: 3px solid #ff769f; }
.history-item[data-color="cyan"] { border-left: 3px solid #5ce7ff; }
.history-item[data-color="violet"] { border-left: 3px solid #b797ff; }
.history-item[data-color="emerald"] { border-left: 3px solid #63f0bd; }
@keyframes historyIn { from { opacity: 0; transform: translateX(18px); } }

.display-footer { height: 8vh; padding: 0 3vw; display: flex; align-items: center; gap: 1rem; position: relative; z-index: 5; color: var(--muted); font-size: clamp(.75rem, 1vw, 1rem); }
.display-footer b { color: #fff; font-size: 1.2em; }
.divider { width: 1px; height: 1rem; background: var(--line); }
.footer-stars { margin-left: auto; color: #8ccfff; letter-spacing: .5em; }

.city { display: none; }
.city::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, #5adfff, transparent); box-shadow: 0 0 25px #3fcfff; }
.building { width: 7vw; min-width: 55px; border: 1px solid rgba(95, 214, 255, .55); background: linear-gradient(180deg, rgba(23, 83, 177, .35), rgba(3, 9, 35, .85)); box-shadow: inset 0 0 18px rgba(61, 153, 255, .13); clip-path: polygon(12% 9%, 88% 0, 100% 100%, 0 100%); }
.building::after { content: ""; display: block; width: 50%; height: 70%; margin: 20% auto 0; background: repeating-linear-gradient(180deg, rgba(88, 202, 255, .6) 0 2px, transparent 2px 12px); opacity: .35; }
.b1,.b9 { height: 28%; }.b2,.b8 { height: 48%; }.b3,.b7 { height: 65%; }.b4,.b6 { height: 80%; }.b5 { height: 100%; width: 9vw; }

.wish-label { position: fixed; z-index: 6; transform: translate(-50%, -50%); text-align: center; pointer-events: none; animation: wishReveal 5.8s ease both; }
.wish-label strong { display: block; max-width: 34vw; font-family: "STKaiti", "KaiTi", serif; font-size: clamp(1.5rem, 3vw, 4rem); letter-spacing: .1em; text-wrap: balance; text-shadow: 0 2px 6px rgba(0,0,0,.65), 0 0 20px currentColor, 0 0 60px currentColor; }
.wish-label small { display: inline-block; margin-top: .45rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(4, 9, 28, .7); color: #e8efff; letter-spacing: .08em; }
@keyframes wishReveal { 0%,14% { opacity: 0; transform: translate(-50%, -35%) scale(.75); filter: blur(8px); } 25%,75% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); } 100% { opacity: 0; transform: translate(-50%, -65%) scale(1.05); } }

@media (max-aspect-ratio: 4/3) {
  .display-header { grid-template-columns: 1fr 2fr 1fr; }
  .display-main { grid-template-columns: 190px minmax(0, 1fr); gap: 1.5vw; }
}
