:root {
  --wine: #530d1a;
  --dark: #290a11;
  --red: #aa1b2c;
  --gold: #f6bf61;
  --cream: #fff0d0;
  --paper: #f5e3bd;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --sans: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--dark);
  background: var(--cream);
  font-family: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, p, figure { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #27998b; outline-offset: 5px; }
.shell { width: min(1210px, calc(100% - 112px)); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: .105em; }

.masthead {
  position: relative;
  z-index: 2;
  background: #470b16;
  color: var(--cream);
  border-bottom: 1px solid #db8e4766;
}
.masthead-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { display: block; }
.brand b { display: block; font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: .04em; }
.brand b span { color: var(--gold); }
.brand small { display: block; color: #eebf8a; font-size: 10px; margin-top: 4px; }
.masthead nav { display: flex; align-items: center; gap: 35px; color: #f8ddbb; font-size: 13px; font-weight: 650; }
.masthead nav a:hover, .back-top:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.mute {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid #eeba6c66;
  border-radius: 4px;
  background: transparent;
  color: var(--cream);
  font-size: 12px;
  font-weight: 650;
}
.mute:hover, .mute[aria-pressed="true"] { background: #ffdd9e1c; }
.mute-slash { visibility: hidden; }
.mute[aria-pressed="true"] .mute-slash { visibility: visible; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 73% 52%, #b53a2d 0%, transparent 49%),
    radial-gradient(ellipse at 20% 15%, #9a222b 0%, transparent 65%),
    linear-gradient(115deg, #58101c, #841423 58%, #530d1a);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .42;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, #2c071a38 3px 4px),
    repeating-linear-gradient(45deg, transparent 0 68px, #f5a35538 69px 70px, transparent 71px 139px),
    repeating-linear-gradient(-45deg, transparent 0 68px, #f5a35538 69px 70px, transparent 71px 139px);
  mask-image: linear-gradient(100deg, #0006, #000);
}
.hero::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 14px;
  border: 1px solid #efab5b4d;
  box-shadow: inset 0 0 0 4px #4b101876, inset 0 0 0 5px #d888493f;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 16px 1px,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 16px,
    linear-gradient(var(--gold), var(--gold)) top right / 16px 1px,
    linear-gradient(var(--gold), var(--gold)) top right / 1px 16px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 16px 1px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px 16px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 16px 1px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 16px;
  background-repeat: no-repeat;
}
.hero-inner { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; min-height: 608px; }
.hero-copy { position: relative; z-index: 1; padding: 48px 0 54px; }
.broadcast {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffdc9a;
  background: #420a1794;
  border: 1px solid #f8be6c70;
  border-radius: 2px;
  padding: 8px 10px;
  margin-bottom: 21px;
  font-size: 10px;
  font-weight: 750;
}
.broadcast span:first-child, .console-top i { width: 7px; height: 7px; border-radius: 50%; background: #ff805e; box-shadow: 0 0 9px #ff8b6c; }
.broadcast i { width: 1px; height: 12px; background: #e7a96871; }
.zh-title {
  display: block;
  white-space: nowrap;
  color: #ffdb87;
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, "PingFang SC", serif;
  font-size: clamp(47px, 6vw, 84px);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: 1.04;
  margin: 0 0 15px -.065em;
  text-shadow: 2px 3px #ad3d25, 4px 6px #4c0917a0;
}
.en-title, h2 {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.018em;
  line-height: .98;
}
.en-title {
  font-size: clamp(93px, 13vw, 182px);
  line-height: .85;
  white-space: nowrap;
  text-shadow: 3px 4px #ad3d25, 6px 8px #4c091778;
}
.en-title > span {
  display: block;
  margin-bottom: .33em;
  font-size: clamp(25px, 3.7vw, 52px);
  line-height: 1;
  letter-spacing: .01em;
  text-shadow: 3px 4px #4c091768;
}
.hero-desc { max-width: 365px; margin-top: 23px; color: #ffe7c6; font-size: 17px; line-height: 1.47; }
.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 26px;
  padding: 12px 14px;
  border: 1px solid #ffe6a4;
  border-radius: 3px;
  background: #ffd27a;
  color: #49101a;
  box-shadow: 3px 4px 0 #4c0b16;
  font-size: 14px;
  font-weight: 800;
}
.hero-action:hover { background: #ffe6aa; transform: translateY(-2px); }
.hero-action span { font-size: 11px; }
.hero-action b { padding-left: 17px; font-size: 17px; }

.stage { position: relative; margin-inline: -8% -4%; min-width: 0; }
.stage-art { width: 100%; height: auto; display: block; overflow: visible; }
.stage-stamp {
  position: absolute;
  top: 57%;
  right: 6%;
  display: grid;
  place-items: center;
  gap: 3px;
  transform: rotate(9deg);
  padding: 7px 9px;
  border: 3px double var(--gold);
  color: #ffe198;
  background: #7e1425;
  box-shadow: 2px 3px #4c09175c;
}
.stage-stamp span { font-size: clamp(16px, 2.1vw, 29px); font-weight: 850; line-height: 1; }
.stage-stamp small { font-size: 8px; }
.stage-caption {
  position: absolute;
  left: 50%;
  top: 79%;
  transform: translateX(-50%) rotate(-4deg);
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  padding: 6px 19px;
  border: 3px double #ffda84;
  background: #741022;
  color: #ffe3a1;
  box-shadow: 0 5px 0 #420911;
  font: 900 clamp(17px, 2.5vw, 34px)/1 var(--display);
  letter-spacing: .055em;
}
.stage-caption span { font-size: .48em; }
.stage-channel { position: absolute; bottom: 4%; right: 5%; color: #ffddab; font-size: 9px; }

.ticker {
  overflow: hidden;
  display: flex;
  background: #f4bd5c;
  color: #581320;
  border-block: 2px solid #68201b;
}
.ticker-track { display: flex; min-width: max-content; align-items: center; gap: 23px; padding: 12px 0; margin-left: -25px; font-size: 11px; }
.ticker span { color: #922335; }
.soundboard { background: var(--cream); padding-block: 68px 82px; }
.section-kicker { display: flex; align-items: center; gap: 9px; color: #8a2130; font-size: 11px; font-weight: 750; }
.section-kicker b { padding: 5px 7px; background: #861d2b; color: var(--cream); border-radius: 2px; }
.section-kicker i, .headshot figcaption i { width: 15px; height: 1px; background: currentColor; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-block: 15px 28px; }
h2 { font-size: clamp(42px, 6.1vw, 82px); }
h2 span { color: #a82336; }
.section-heading p { max-width: 260px; padding-bottom: 4px; font-size: 15px; line-height: 1.55; color: #683943; }
.console { overflow: hidden; background: #3d1219; color: var(--cream); border: 1px solid #3d1219; border-radius: 9px; box-shadow: 0 6px #a3613b; }
.console-top, .console-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; font-size: 10px; font-weight: 750; }
.console-top { background: #510f1d; color: #ffd392; border-bottom: 1px solid #e6a66555; }
.console-top span:last-child { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.console-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 15px; }
.console-key {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px 17px;
  min-height: 162px;
  border: 1px solid #ffffff6a;
  border-radius: 4px;
  box-shadow: 0 4px #200910, inset 0 -3px #290a1129;
  transition: transform .15s, filter .15s;
}
.console-key:hover { filter: brightness(1.1); transform: translateY(-2px); }
.console-key:active, .console-key[aria-pressed="true"] { transform: translateY(3px); box-shadow: 0 1px #200910, inset 0 2px #290a1129; }
.theme-key { color: #3e1420; background: #f6c66c; }
.sting-key { color: #fff2d4; background: #a92334; }
.clap-key { color: #fff2d4; background: #24594e; }
.key-number { opacity: .85; font-size: 10px; font-weight: 800; }
.key-icon { margin: 8px 0 4px; font: 900 37px/1 var(--sans); }
.console-key strong { font-size: clamp(15px, 2.2vw, 28px); line-height: 1.1; }
.console-key small { font-size: 11px; margin-top: 5px; }
.console-bottom { justify-content: flex-start; min-height: 42px; border-top: 1px solid #e6a66555; background: #280c13; color: #f6cf8b; }
.console-status { flex: 1; overflow-wrap: anywhere; }
.signal { display: inline-flex; align-items: end; gap: 2px; }
.signal i { display: block; width: 3px; height: 4px; background: #ffc467; }
.signal i:nth-child(2) { height: 6px; }
.signal i:nth-child(3) { height: 8px; }
.signal i:nth-child(4) { height: 10px; }
.signal i:nth-child(5) { height: 12px; }
.clap-count { margin-left: auto; white-space: nowrap; }
.clap-count b { color: #fff1c9; }

.star-section { padding-block: 74px 85px; background: var(--paper); border-top: 1px solid #d8a777; }
.star-inner { display: grid; grid-template-columns: minmax(220px, .72fr) 1fr; gap: clamp(28px, 8vw, 104px); align-items: center; }
.headshot { max-width: 385px; }
.headshot-frame { border: 1px solid #793023; padding: 8px; background: #8a1929; box-shadow: 5px 5px 0 #be8159; }
.headshot img { display: block; width: 100%; height: auto; border: 1px solid #eab470; }
.headshot figcaption { display: flex; align-items: center; gap: 7px; margin-top: 16px; color: #742334; font-size: 9px; font-weight: 750; }
.headshot figcaption i { flex-shrink: 0; }
.star-copy h2 { margin: 15px 0 20px; }
.quote {
  padding: 15px 18px 16px;
  border: 1px solid #c88d5a;
  border-left: 4px solid #a82336;
  background: #fff0d0ad;
  box-shadow: 3px 3px 0 #b76d4433;
}
.decree-number { margin-bottom: 9px; color: #872333; font-size: 10px; font-weight: 800; }
.decree-number b { padding: 2px 4px; background: #872333; color: var(--cream); }
.quote-zh { font-size: clamp(17px, 2.3vw, 24px); font-weight: 800; line-height: 1.4; }
.quote-en { margin-top: 5px; color: #6d3a44; font-size: 14px; line-height: 1.45; }
.next-quote {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 19px;
  padding: 9px 11px;
  border: 1px solid #8a2130;
  border-radius: 3px;
  color: #6a1423;
  background: #fff0d06b;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
}
.next-quote:hover { color: var(--cream); background: #8a2130; }
.next-quote span { font-size: 16px; line-height: 1; }

.fortune-section {
  padding-block: 74px 85px;
  color: var(--cream);
  background: radial-gradient(ellipse at 15% 0, #932837, transparent 70%), var(--wine);
  border-block: 1px solid #dd995573;
}
.fortune-inner {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: center;
}
.fortune-copy .section-kicker { color: #ffd291; }
.fortune-copy .section-kicker b { color: var(--wine); background: var(--gold); }
.fortune-copy h2 { margin: 15px 0 17px; }
.fortune-copy h2 span { color: var(--gold); }
.fortune-copy p { max-width: 285px; color: #ffe4bd; font-size: 15px; line-height: 1.55; }
.fortune-tray {
  padding: clamp(12px, 2.5vw, 26px);
  border: 3px double #e4a955;
  border-radius: 9px;
  background: radial-gradient(ellipse at top, #295649, #15382f 85%);
  box-shadow: 0 6px #2d0a14;
}
.cookie-defs { position: absolute; }
.fortune-tray-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: #ffde9f;
  font-size: 10px;
}
.fortune-tray-header span { white-space: nowrap; }
.fortune-cookies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fortune-cookie {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 4px 11px;
  border: 1px solid #dcab6770;
  border-radius: 4px;
  background: #356253;
  color: #fff0cc;
  transition: background .18s, transform .18s;
}
.fortune-tray button:focus-visible { outline-color: #ffe29b; outline-offset: 3px; }
.fortune-cookie:hover:not([aria-disabled="true"]) { background: #447361; transform: translateY(-2px); }
.fortune-cookie svg { display: block; width: min(100%, 105px); height: auto; }
.fortune-cookie > span { font-size: clamp(8px, 1.3vw, 11px); font-weight: 800; text-transform: uppercase; }
.fortune-cookie .cookie-opened, .fortune-cookie[aria-disabled="true"] .cookie-sealed { display: none; }
.fortune-cookie[aria-disabled="true"] { cursor: default; background: #1f493d; color: #ffda96; }
.fortune-cookie[aria-disabled="true"] .cookie-opened { display: inline; }
.fortune-cookie[aria-disabled="true"] svg { animation: crack-cookie .24s ease-out; }
@keyframes crack-cookie {
  from { transform: scale(.86) rotate(-5deg); }
  to { transform: scale(1); }
}
.fortune-slip {
  min-height: 130px;
  margin-top: 13px;
  padding: 13px 14px 15px;
  border: 1px solid #e2ab64;
  border-left: 4px solid #9f2b3c;
  background: #fff0cd;
  color: #51252b;
}
.fortune-slip-label { margin-bottom: 7px; color: #872333; font-size: 9px; font-weight: 800; }
.fortune-slip-label span:last-child { margin-left: 4px; }
.fortune-en { font-family: Georgia, serif; font-size: clamp(16px, 2vw, 22px); font-weight: 700; line-height: 1.25; }
.fortune-zh { margin-top: 5px; color: #713b42; font-size: 13px; line-height: 1.4; }
.fortune-reset {
  margin-top: 12px;
  padding: 8px 11px;
  border: 1px solid #dda65a;
  border-radius: 3px;
  background: transparent;
  color: #ffe6b2;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.fortune-reset span { margin-left: 5px; }
.fortune-reset:hover:not(:disabled) { background: #ffdd9e28; }
.fortune-reset:disabled { opacity: .55; cursor: default; }

.footer { background: #470b16; color: #ffdfac; }
.footer-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer .brand b { color: var(--cream); font-size: 24px; }
.footer p, .back-top { font-size: 9px; }
.footer p span:first-child { margin-inline: 6px; color: var(--gold); }

.show-overlay { position: fixed; inset: 0; z-index: 5; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.show-message {
  grid-area: 1 / 1;
  justify-self: center;
  max-width: calc(100vw - 32px);
  padding: .24em .38em;
  border: 5px double #ffe093;
  background: #811827;
  color: #ffdf88;
  box-shadow: 0 8px 0 #390c15, 0 0 85px #310711bd;
  text-align: center;
  line-height: 1.1;
  font: 900 clamp(27px, 8vw, 94px)/1.08 var(--display);
  animation: show-pop 1.45s both;
}
.show-message span { display: block; margin-top: .22em; font: 800 .33em/1.1 var(--sans); letter-spacing: .13em; }
@keyframes show-pop {
  0% { transform: scale(.65) rotate(-8deg); opacity: 0; }
  14%, 76% { transform: scale(1) rotate(-4deg); opacity: 1; }
  100% { transform: scale(1.08) rotate(-2deg); opacity: 0; }
}
.confetti {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 8px;
  height: 12px;
  background: var(--color);
  animation: scatter 1.2s cubic-bezier(.14, .64, .46, .96) both;
}
@keyframes scatter {
  0% { opacity: 1; transform: translate(0,0); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--spin)); }
}

@media (min-width: 1450px) {
  .hero-inner { min-height: 650px; }
}
@media (max-width: 1050px) {
  .shell { width: calc(100% - 74px); }
  .hero-inner { min-height: 530px; }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 38px); }
  .masthead-inner { min-height: 62px; gap: 10px; }
  .masthead .brand img { width: 37px; height: 37px; }
  .masthead .brand b { font-size: 24px; }
  .masthead .brand small { font-size: 8px; }
  .masthead nav { gap: 13px; font-size: 11px; }
  .masthead nav a:first-child { display: none; }
  .mute { min-width: 42px; min-height: 40px; padding: 6px; }
  .mute span { display: none; }
  .hero::after { inset: 8px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .hero-copy { padding: 42px 0 0; }
  .broadcast { margin-bottom: 14px; }
  .zh-title { font-size: clamp(44px, 11vw, 78px); margin: 0 0 10px; }
  .en-title { font-size: clamp(93px, 24vw, 155px); }
  .en-title > span { font-size: clamp(25px, 7.2vw, 46px); }
  .hero-desc { margin: 15px auto 0; font-size: 15px; }
  .hero-action { margin-top: 17px; }
  .stage { width: min(100% + 12px, 480px); margin: -5px auto 4px; }
  .stage-channel { right: 4%; font-size: 8px; }
  .stage-stamp { right: 7%; }
  .stage-stamp small { font-size: 7px; }
  .soundboard, .star-section, .fortune-section { padding-block: 47px 55px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 19px; }
  .section-heading p { max-width: none; }
  .star-inner { grid-template-columns: minmax(135px, .8fr) 1fr; gap: 25px; }
  .star-copy h2 { font-size: clamp(33px, 7vw, 56px); }
  .fortune-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; padding-block: 15px; }
}
@media (max-width: 490px) {
  .star-inner { grid-template-columns: 1fr; }
  .headshot { max-width: min(230px, 78%); }
  .console-keys { gap: 7px; padding: 8px; }
  .console-key { min-height: 124px; padding: 10px 7px; }
  .console-key strong { font-size: 14px; }
  .key-number { font-size: 8px; letter-spacing: 0; }
  .key-icon { font-size: 30px; }
  .console-key small { font-size: 9px; }
  .console-top, .console-bottom { font-size: 8px; padding: 9px; gap: 6px; }
  .fortune-slip { min-height: 146px; }
  .footer p { order: 1; flex-basis: 100%; }
}
@media (max-width: 370px) {
  .masthead-inner { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding-block: 9px; }
  .masthead nav { grid-area: 2 / 1 / 3 / 3; justify-content: space-between; }
  .masthead nav a { padding-block: 7px; }
  .mute { grid-area: 1 / 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
  .confetti { display: none; }
  .show-message { animation-name: show-hold; }
  .fortune-cookie[aria-disabled="true"] svg { animation: none; }
}
@keyframes show-hold { 0%, 100% { opacity: 1; } }
