* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #0a1121; }
body {
  margin: 0; min-width: 0; color: #fff3db;
  font: 16px/1.5 "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}
.page {
  min-height: 100vh; min-height: 100dvh; padding: 20px 16px;
  display: flex; justify-content: center; align-items: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(37, 58, 117, .30), transparent 67%),
              linear-gradient(165deg, rgba(8, 15, 33, .9), rgba(17, 18, 39, .89) 63%, rgba(21, 14, 31, .86)),
              #0a1121 url("/static/event-pattern.jpg") 47% bottom / cover no-repeat;
}
.experience {
  position: relative; width: 100%; max-width: 420px; padding: 25px 24px 20px;
  border: 1px solid rgba(218, 179, 107, .53); border-radius: 21px;
  background: #131b32; background: linear-gradient(150deg, rgba(24, 34, 58, .91), rgba(11, 15, 31, .94) 76%);
  text-align: center; box-shadow: 0 19px 70px rgba(0, 0, 0, .57), inset 0 1px 0 rgba(237, 201, 136, .2);
}
.brand { display: block; width: 138px; max-width: 68%; height: auto; margin: 0 auto 10px; }
.show-title { margin: 0; font-size: 14px; letter-spacing: .065em; color: #e7c995; }
h1 { margin: 4px 0 5px; font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: .07em; }
.orb-area {
  position: relative; width: 176px; height: 176px; max-width: 72vw;
  margin: 14px auto; isolation: isolate;
}
.orb-core {
  position: absolute; left: 16%; top: 16%; width: 68%; height: 68%; border-radius: 50%;
  background: radial-gradient(circle at 37% 34%, #fffdf0 0%, #e1e8ff 4%, #8ea6ff 13%, #3d60b8 35%, #20326d 52%, #121734 66%, #3a2951 86%, #f4c881 97%);
  box-shadow: 0 0 38px #3a508f, 0 0 74px rgba(106, 133, 230, .46), inset 0 -6px 26px rgba(238, 176, 92, .49);
  transition: box-shadow .32s, transform .32s, filter .32s;
}
.orb-ring { position: absolute; inset: 3%; border: 1px solid #a18366; border-radius: 50%; }
.orb-ring-one { transform: rotate(-26deg) scaleY(.59); box-shadow: 0 0 14px rgba(232, 182, 105, .45); }
.orb-ring-two { transform: rotate(54deg) scaleY(.71); opacity: .47; }
.star { width: 4px; height: 4px; position: absolute; border-radius: 50%; background: #ffe2a5; box-shadow: 0 0 11px 2px #ab8a71; }
.star-one { top: 19%; left: 19%; }.star-two { right: 17%; bottom: 24%; }.star-three { left: 23%; bottom: 13%; }
.orb-area.pulse .orb-core {
  transform: scale(1.12); filter: brightness(1.33);
  box-shadow: 0 0 31px #f7dba3, 0 0 67px rgba(115, 159, 255, .9), inset 0 0 35px rgba(241, 182, 88, .75);
}
.orb-area.complete .orb-core {
  filter: brightness(1.26); box-shadow: 0 0 44px #ecbd6a, 0 0 90px rgba(90, 132, 235, .88);
}
.status { min-height: 24px; margin: 0 0 12px; color: #dce3f4; font-size: 15px; }
.status.error { color: #ffcab2; }
button {
  width: 100%; display: block; min-height: 54px; padding: 10px 14px; border: 1px solid #f8dca7; border-radius: 10px;
  color: #24150a; background: #edc984; background: linear-gradient(110deg, #fce1ad, #deb778 71%, #c89154);
  box-shadow: 0 7px 20px rgba(0, 0, 0, .23); font: inherit; font-weight: bold; cursor: pointer;
  touch-action: manipulation;
}
button:focus { outline: 2px solid #dcf0ff; outline-offset: 2px; }
button:disabled { background: #3f455a; border-color: #6d7084; color: #d3d6e3; box-shadow: none; cursor: default; }
.mode-link {
  margin: 5px auto 0; min-height: 44px; border: 0; background: transparent;
  color: #c4cce3; font-size: 14px; box-shadow: none; font-weight: normal;
}
.mode { min-height: 21px; margin: 9px 0 0; color: #b8c4e0; font-size: 13px; }
.notice { color: #fff; text-align: center; }
@media (max-width: 360px), (max-height: 592px) {
  .page { padding: 13px 12px; }
  .experience { padding: 17px 16px 12px; }
  .brand { width: 120px; margin-bottom: 8px; }
  .orb-area { width: 136px; height: 136px; margin: 10px auto; }
  h1 { font-size: 29px; }
}
@media (max-height: 470px) { .page { align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .orb-core { transition: none; } }
#tap {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
#tap.is-holding {
  color: #20140b;
  background: linear-gradient(105deg, #fff3cc, #ffd483 78%, #dd9b48);
  box-shadow: 0 0 25px rgba(244, 203, 131, .42), inset 0 1px 0 rgba(255, 253, 226, .88);
}
.mode-link:disabled { color: #b8c4e0; border: 0; background: transparent; }