:root {
  --bg: #c90000;
  --panel: rgba(255, 247, 226, 0.92);
  --ink: #5b1208;
  --muted: #9b6a4b;
  --line: rgba(192, 80, 30, 0.22);
  --primary: #b9150f;
  --primary-dark: #8f0e0a;
  --gold: #f6d68a;
  --gold-deep: #b87824;
  --ok: #b9150f;
  --warn: #9a3412;
  --danger: #8f0e0a;
  --shadow: 0 24px 72px rgba(77, 0, 0, 0.34);
  --poster-width: 100vw;
  --poster-scale: calc(var(--poster-width) / 1126);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(88, 0, 0, 0.12), rgba(88, 0, 0, 0.24)),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("/bg-clean.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: var(--poster-width) auto;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(80, 0, 0, 0.02) 0%, rgba(80, 0, 0, 0.1) 48%, rgba(80, 0, 0, 0.18) 100%),
    radial-gradient(circle at 50% 55%, rgba(255, 224, 150, 0.08), transparent 34%);
  pointer-events: none;
  animation: ambientGlow 9s ease-in-out infinite alternate;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.home-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #c40000;
}

.home-stage {
  position: relative;
  width: min(100vw, 762px);
  aspect-ratio: 762 / 1651;
  overflow: hidden;
  background: #c40000;
  box-shadow: 0 0 48px rgba(80, 0, 0, 0.28);
}

.home-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.home-share-btn {
  position: absolute;
  right: 5.8%;
  top: 3.2%;
  z-index: 4;
  min-width: 58px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 236, 178, 0.72);
  border-radius: 999px;
  color: #fff7cc;
  background: linear-gradient(135deg, rgba(156, 16, 10, 0.8), rgba(232, 93, 29, 0.86));
  box-shadow: 0 8px 20px rgba(88, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 900;
}

.home-scan-status {
  position: absolute;
  left: 50%;
  bottom: 18.8%;
  z-index: 5;
  width: min(78%, 420px);
  margin: 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 236, 178, 0.64);
  border-radius: 999px;
  color: #fff7d6;
  background: rgba(108, 8, 4, 0.82);
  box-shadow: 0 12px 30px rgba(70, 0, 0, 0.28);
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-scan-status.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.home-countdown {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.home-countdown-number {
  position: absolute;
  top: 74.33%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13.9%;
  height: 3.72%;
  color: #df0505;
  font-family: "Source Han Sans SC", "Source Han Sans CN", "Noto Sans CJK SC", "思源黑体", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(27px, 8.35vw, 64px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
  -webkit-text-stroke: clamp(0.6px, 0.22vw, 1.6px) #ffffff;
  paint-order: stroke fill;
  text-shadow:
    0 0.5px 0 rgba(255, 255, 255, 0.9),
    0 3px 5px rgba(120, 0, 0, 0.12);
  font-variant-numeric: tabular-nums;
  transform: translateY(-6%);
}

.home-countdown-hours {
  left: 17.2%;
}

.home-countdown-minutes {
  left: 40.1%;
}

.home-countdown-seconds {
  left: 63.0%;
}

.share-guide {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(22px, env(safe-area-inset-top)) 18px 24px;
  background: rgba(54, 0, 0, 0.56);
  backdrop-filter: blur(8px);
  animation: fadeIn 180ms ease both;
}

.share-guide-arrow {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  top: max(16px, env(safe-area-inset-top));
  width: 92px;
  height: 92px;
  color: #fff8d6;
  font-size: 78px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  transform: rotate(-8deg);
  text-shadow: 0 6px 18px rgba(88, 0, 0, 0.52);
  pointer-events: none;
}

.share-guide-panel {
  width: min(92vw, 420px);
  margin-top: 58px;
  color: #fff7d6;
}

.share-guide-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 231, 166, 0.66);
  border-radius: 16px;
  background: rgba(255, 248, 230, 0.96);
  box-shadow: 0 24px 60px rgba(54, 0, 0, 0.34);
  color: #5b1208;
}

.share-guide-card img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  background: #d71913;
}

.share-guide-card strong {
  display: block;
  margin-bottom: 6px;
  color: #7b1209;
  font-size: 18px;
  line-height: 1.35;
}

.share-guide-card p,
.share-guide-actions p {
  margin: 0;
  line-height: 1.55;
}

.share-guide-card p {
  color: #9b4b1e;
  font-size: 14px;
}

.share-guide-actions {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 231, 166, 0.5);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(165, 19, 12, 0.94), rgba(225, 96, 28, 0.9));
  box-shadow: 0 18px 44px rgba(54, 0, 0, 0.28);
}

.share-guide-actions p {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
}

.share-guide-actions button {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 900;
}

.share-guide-actions .primary {
  color: #7b1209;
  background: linear-gradient(180deg, #fff9df, #f5d58c);
}

.share-guide-actions .secondary {
  margin-top: 10px;
  color: #fff7d6;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 238, 190, 0.38);
}

.home-nav {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.home-nav-item {
  position: absolute;
  display: block;
  border-radius: 6.5%;
  touch-action: manipulation;
  transition: background 160ms ease, transform 160ms ease;
}

.home-nav-item:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.985);
}

.item-honor {
  left: 12.99%;
  top: 30.66%;
  width: 36.22%;
  height: 18.08%;
}

.item-agenda,
.item-dining,
.item-checkin,
.item-seating,
.item-showcase {
  width: 35.96%;
  height: 8.49%;
}

.item-agenda {
  left: 51.44%;
  top: 30.66%;
}

.item-dining {
  left: 51.44%;
  top: 40.05%;
}

.item-checkin {
  left: 12.99%;
  top: 49.4%;
}

.item-seating {
  left: 51.44%;
  top: 49.4%;
}

.item-guide {
  left: 12.99%;
  top: 58.7%;
  width: 35.96%;
  height: 8.49%;
}

.item-showcase {
  left: 51.44%;
  top: 58.7%;
}

.shell {
  width: var(--poster-width);
  margin: 0 auto;
  padding: 22px 16px 48px;
  container-type: inline-size;
  position: relative;
  min-height: calc(var(--poster-width) * 2.164);
}

.hero-title-art,
.date-place-art {
  position: absolute;
  left: 50%;
  z-index: 0;
  display: block;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.hero-title-art {
  top: calc(var(--poster-scale) * 250);
  width: calc(var(--poster-scale) * 1003);
  animation: heroRise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both, heroFloat 4.8s ease-in-out 900ms infinite;
}

.date-place-art {
  top: calc(var(--poster-scale) * 2050);
  width: calc(var(--poster-scale) * 327);
  animation: dateReveal 900ms ease 500ms both;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.brand {
  display: grid;
  gap: 2px;
  width: min(250px, 58vw);
  padding: 10px 14px;
  border: 1px solid rgba(246, 214, 138, 0.38);
  border-radius: 8px;
  color: #fff8dc;
  background: rgba(107, 0, 0, 0.18);
  box-shadow: 0 12px 36px rgba(80, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  animation: softReveal 650ms ease both;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.22;
}

.muted,
.brand span {
  color: rgba(255, 240, 194, 0.76);
  font-size: 13px;
  line-height: 1.35;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a,
.link-button {
  position: relative;
  overflow: hidden;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(246, 214, 138, 0.38);
  border-radius: 8px;
  color: #6b1008;
  background: linear-gradient(180deg, rgba(255, 249, 226, 0.96), rgba(247, 218, 150, 0.9));
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 10px 26px rgba(80, 0, 0, 0.16);
}

.nav a::after,
.link-button::after,
.primary::after,
.secondary::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 45%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}

.nav a:hover::after,
.link-button:hover::after,
.primary:hover::after,
.secondary:hover::after {
  animation: shineSweep 850ms ease;
}

.panel {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: cardIn 680ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ticket {
  max-width: 430px;
  margin: 0 auto;
  margin-top: calc(var(--poster-scale) * 610);
}

.shell > .panel:not(.ticket) {
  margin-top: calc(var(--poster-scale) * 610);
}

.shell.compact .hero-title-art {
  display: none;
}

.shell.compact .ticket {
  margin-top: calc(var(--poster-scale) * 350);
}

.shell.admin-page .ticket {
  margin-top: calc(var(--poster-scale) * 900);
}

.shell.lookup-page .ticket {
  margin-top: calc(var(--poster-scale) * 760);
}

.shell.admin-page .stats {
  margin-top: 14px;
}

.shell.admin-page {
  width: min(1180px, 100vw);
  padding-top: 24px;
}

.shell.admin-page .hero-title-art,
.shell.admin-page .date-place-art {
  display: none;
}

.shell.admin-page > .panel:not(.ticket) {
  width: min(94%, 1120px);
  max-width: none;
  margin-top: 14px;
}

.admin-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(94%, 1120px);
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(246, 214, 138, 0.38);
  border-radius: 8px;
  color: #fff7d6;
  background:
    linear-gradient(135deg, rgba(122, 0, 0, 0.96), rgba(201, 28, 15, 0.94) 58%, rgba(222, 101, 34, 0.9)),
    rgba(128, 0, 0, 0.92);
  box-shadow: 0 18px 46px rgba(72, 0, 0, 0.22);
}

.admin-hero span {
  display: inline-flex;
  margin-bottom: 6px;
  color: rgba(255, 236, 178, 0.92);
  font-size: 13px;
  font-weight: 850;
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.admin-hero p {
  margin: 8px 0 0;
  max-width: 620px;
  color: rgba(255, 246, 216, 0.82);
  line-height: 1.5;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-hero-actions .link-button,
.admin-hero-actions .secondary {
  min-height: 38px;
  border-color: rgba(255, 238, 190, 0.4);
  color: #fff7d6;
  background: rgba(255, 255, 255, 0.12);
}

.shell.service-page .hero-title-art,
.shell.seat-query-page .hero-title-art {
  display: none;
}

.shell.honor {
  width: min(100vw, 520px);
  min-height: auto;
  padding: 0;
  overflow: hidden;
  background: #bd0000;
}

.shell.honor .hero-title-art,
.shell.honor .date-place-art,
.shell.honor .topbar {
  display: none;
}

.ticket-head {
  position: relative;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(122, 0, 0, 0.96), rgba(200, 20, 12, 0.94) 62%, rgba(246, 214, 138, 0.72));
  color: white;
  border-bottom: 1px solid rgba(246, 214, 138, 0.36);
}

.page-title-block {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(92%, 430px);
  margin: calc(var(--poster-scale) * 210) auto 0;
}

.page-module {
  position: relative;
  z-index: 1;
  width: min(92%, 430px);
  margin: calc(var(--poster-scale) * 150) auto 0;
}

.page-module .page-title-block {
  width: 100%;
  margin: 0 auto 14px !important;
}

.page-module .ticket {
  width: 100%;
  max-width: none;
}

.page-title-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(80, 0, 0, 0.28));
  animation: heroRise 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ticket-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 238, 178, 0.2), transparent 78%);
  transform: translateX(-100%);
  animation: headerSweep 3.4s ease-in-out 900ms infinite;
  pointer-events: none;
}

.ticket-name {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  color: #fff7d6;
  text-shadow: 0 2px 12px rgba(88, 0, 0, 0.35);
}

.ticket-head p {
  margin: 6px 0 0;
  color: rgba(255, 244, 207, 0.86);
}

.lookup-panel .ticket-head,
.service-panel .ticket-head,
.seat-query-panel .ticket-head {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 126px;
}

.lookup-panel .ticket-head p,
.service-panel .ticket-head p,
.seat-query-panel .ticket-head p {
  max-width: 100%;
  line-height: 1.35;
}

.section,
.ticket-body,
.verify-result {
  padding: 18px;
}

.qr-box {
  display: grid;
  place-items: center;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px dashed rgba(184, 120, 36, 0.5);
  border-radius: 8px;
  background: rgba(255, 252, 242, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
  animation: qrBreathe 3.2s ease-in-out infinite;
}

.qr-box img {
  width: 210px;
  height: 210px;
}

.qr-box canvas,
.qr-box svg {
  width: 210px;
  height: 210px;
}

.admin-qr-actions {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.admin-qr-actions .qr-box {
  margin-bottom: 0;
}

.qr-download-btn {
  width: min(220px, 100%);
}

.return-home-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
  width: min(92%, 520px);
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(246, 214, 138, 0.58);
  border-radius: 8px;
  color: #fff7d6;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(145, 7, 0, 0.94), rgba(226, 54, 22, 0.92) 56%, rgba(232, 155, 48, 0.9));
  box-shadow: 0 16px 42px rgba(83, 0, 0, 0.28);
  overflow: hidden;
  animation: softReveal 520ms ease both;
}

.return-home-card::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  color: rgba(255, 248, 216, 0.9);
  font-size: 34px;
  font-weight: 300;
  transform: translateY(-50%);
}

.return-home-card span {
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
}

.return-home-card strong {
  max-width: calc(100% - 42px);
  color: rgba(255, 241, 196, 0.84);
  font-size: 13px;
  line-height: 1.35;
}

.scan-panel {
  display: grid;
  gap: 14px;
}

.scan-button {
  min-height: 58px;
  font-size: 20px;
  font-weight: 750;
}

.scanner-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(246, 214, 138, 0.55);
  background: rgba(80, 0, 0, 0.34);
  box-shadow: 0 16px 36px rgba(80, 0, 0, 0.22);
}

.scanner-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scan-frame {
  position: absolute;
  inset: 16%;
  border: 2px solid rgba(246, 214, 138, 0.96);
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(60, 0, 0, 0.28), 0 0 26px rgba(246, 214, 138, 0.3);
  animation: scanFramePulse 1.8s ease-in-out infinite;
  pointer-events: none;
}

.file-scan {
  width: 100%;
}

.seat-highlight {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(184, 120, 36, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 220, 0.96), rgba(246, 214, 138, 0.76)),
    rgba(255, 247, 226, 0.9);
  text-align: center;
  box-shadow: 0 12px 28px rgba(132, 20, 8, 0.12);
  animation: seatGlow 3s ease-in-out infinite;
}

.seat-highlight span {
  color: var(--muted);
  font-size: 13px;
}

.seat-highlight strong {
  color: #8f0e0a;
  font-size: 28px;
  line-height: 1.2;
}

.info-grid {
  display: grid;
  gap: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  animation: rowIn 420ms ease both;
}

.info-row:nth-child(2) {
  animation-delay: 60ms;
}

.info-row:nth-child(3) {
  animation-delay: 120ms;
}

.info-row:nth-child(4) {
  animation-delay: 180ms;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row span:first-child {
  flex: 0 0 78px;
  color: var(--muted);
}

.info-row span:last-child {
  text-align: right;
  font-weight: 650;
}

.notice {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(184, 120, 36, 0.28);
  background: linear-gradient(180deg, rgba(255, 246, 218, 0.9), rgba(255, 236, 180, 0.82));
  color: #6b3a05;
  line-height: 1.55;
  animation: softReveal 520ms ease 180ms both;
}

.notice strong {
  color: #8f0e0a;
}

.service-panel {
  max-width: 460px;
}

.service-guide-page {
  width: min(100%, calc(var(--poster-scale) * 1126));
  margin: calc(var(--poster-scale) * 40) auto 0;
}

.service-guide-map {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 18px 42px rgba(70, 0, 0, 0.18);
}

.service-guide-image {
  display: block;
  width: 100%;
  height: auto;
}

.service-map-hotspot {
  position: absolute;
  left: 5.15%;
  width: 89.7%;
  height: 9.6%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  display: block;
  -webkit-tap-highlight-color: rgba(255, 230, 150, 0.2);
}

.service-map-hotspot-hotel {
  top: 14.98%;
}

.service-map-hotspot-meeting {
  top: 30.91%;
}

.service-body {
  display: grid;
  gap: 14px;
}

.agenda-page {
  width: min(100%, 762px);
  min-height: 100vh;
  margin: 0 auto;
  background: #c40000;
  box-shadow: 0 0 48px rgba(80, 0, 0, 0.28);
}

.agenda-brand {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 3.2% 4.5% 0;
  background: #c40000;
}

.agenda-brand img {
  display: block;
  width: 91%;
  height: auto;
}

.agenda-image-crop {
  overflow: hidden;
}

.agenda-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -53.3%;
}

.agenda-home-link {
  display: block;
  width: min(82%, 420px);
  margin: 24px auto 36px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 231, 161, 0.72);
  border-radius: 6px;
  color: #fff7d6;
  background: rgba(125, 7, 3, 0.82);
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.service-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(184, 120, 36, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 250, 232, 0.94), rgba(255, 235, 190, 0.82));
  animation: softReveal 520ms ease both;
}

.service-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184, 120, 36, 0.28);
}

.service-title span {
  color: #8f0e0a;
  font-size: 22px;
  font-weight: 800;
}

.service-title strong {
  color: rgba(143, 14, 10, 0.46);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.service-list {
  display: grid;
  gap: 8px;
}

.service-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(184, 120, 36, 0.18);
}

.service-item:last-child {
  border-bottom: 0;
}

.service-item span {
  color: var(--muted);
  font-size: 13px;
}

.service-item strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.service-note {
  margin-top: 0;
}

.service-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  text-decoration: none;
  font-weight: 750;
  text-align: center;
  line-height: 1.2;
  color: inherit;
}

.service-action.primary {
  color: #fff7d6;
}

.service-action.link-button {
  color: #6b1008;
}

.service-test {
  color: #8f0e0a;
}

.honor-page {
  min-height: calc(min(100vw, 520px) * 5.706);
  padding: 46px 20px calc(min(100vw, 520px) * 1.08);
  background:
    linear-gradient(180deg, rgba(80, 0, 0, 0.02), rgba(80, 0, 0, 0.08)),
    url("/assets/honor-bottom.png?v=20260630-honor") bottom center / 100% auto no-repeat,
    url("/assets/honor-bg.png?v=20260630-honor") top center / 100% auto no-repeat;
  color: #fff6d5;
}

.honor-main-title {
  display: block;
  width: min(76.5%, 398px);
  height: auto;
  margin: 0 auto 28px;
}

.honor-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px 10px;
  width: min(92%, 430px);
  margin: 0 auto 28px;
  padding: 0;
  overflow: visible;
}

.honor-tab {
  position: relative;
  grid-column: span 2;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}

.honor-tab:nth-child(4) {
  grid-column: 2 / span 2;
}

.honor-tab:nth-child(5) {
  grid-column: 4 / span 2;
}

.honor-tab img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.honor-tab.active {
  filter: none;
  transform: none;
}

.honor-content {
  position: relative;
  margin: 0 auto;
  padding: 4px 2px 0;
}

.honor-content-item {
  display: none;
}

.honor-content-item.active {
  display: block;
  animation: cardIn 420ms ease both;
}

.honor-content-panel {
  display: grid;
  gap: 14px;
}

.honor-long-panel {
  gap: 0;
}

.honor-image-wrap {
  position: relative;
}

.honor-section-strip {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 14px;
}

.honor-long-image {
  display: block;
  width: 100%;
  height: auto;
}

.honor-like-button {
  position: absolute;
  right: 20.6%;
  z-index: 2;
  width: clamp(42px, 12%, 58px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translate3d(0, -50%, 0);
  transform-origin: 50% 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: auto;
  overflow: visible;
}

.honor-like-button img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.honor-like-button.liked {
  animation: none;
}

.honor-like-button.is-liked {
  cursor: default;
  opacity: 0.78;
  filter: grayscale(0.18);
}

.honor-like-button:active {
  transform: translate3d(0, -50%, 0);
}

.honor-like-count {
  position: absolute;
  left: calc(100% + 6px);
  min-width: clamp(36px, 9vw, 50px);
  height: clamp(20px, 5vw, 26px);
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  color: #9f1009;
  background: rgba(255, 255, 255, 0.95);
  font-size: clamp(12px, 3.2vw, 16px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
  box-shadow: inset 0 -2px 5px rgba(141, 0, 0, 0.14), 0 4px 10px rgba(80, 0, 0, 0.16);
  pointer-events: none;
}

.thumb-rain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.thumb-rain span {
  position: absolute;
  top: -72px;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(90, 0, 0, 0.28));
  animation: thumbFall 1.7s linear forwards;
}

@keyframes likePop {
  0% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes thumbFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -16px, 0) rotate(-18deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 20px), 110vh, 0) rotate(28deg);
  }
}

.honor-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 229, 152, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(176, 20, 11, 0.88), rgba(222, 85, 21, 0.86));
  box-shadow: 0 16px 36px rgba(82, 0, 0, 0.24);
}

.honor-section-title span {
  font-size: 22px;
  font-weight: 900;
}

.honor-section-title strong {
  color: rgba(255, 240, 196, 0.65);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.honor-card {
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(255, 229, 152, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(214, 65, 21, 0.88), rgba(188, 18, 11, 0.88)),
    radial-gradient(circle at 50% 0%, rgba(255, 236, 164, 0.2), transparent 36%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(78, 0, 0, 0.26);
}

.honor-medal {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 28px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 999px;
  color: #7a1607;
  background: linear-gradient(180deg, #fff3bd, #e9aa42);
  font-weight: 900;
}

.honor-card h2 {
  margin: 0 0 10px;
  color: #fff6d5;
  font-size: 21px;
}

.honor-card p {
  margin: 0 0 10px;
  color: rgba(255, 248, 222, 0.92);
  font-size: 14px;
  line-height: 1.75;
}

.seat-query-panel {
  max-width: 520px;
}

.seat-query-body {
  display: grid;
  gap: 14px;
}

.seat-map-mini {
  position: relative;
  overflow: hidden;
  padding: 14px 12px 16px;
  border: 1px solid rgba(246, 214, 138, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 228, 150, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(142, 8, 5, 0.94), rgba(210, 19, 12, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 32px rgba(80, 0, 0, 0.18);
  animation: softReveal 520ms ease both;
}

.pdf-seat-map {
  padding: 0;
  background: transparent;
}

.pdf-seat-map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.seat-map-marker {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 56px;
  height: 26px;
  padding: 0 8px;
  border: 2px solid #fff7a8;
  border-radius: 999px;
  color: #8f0e0a;
  background: #ffe35f;
  box-shadow: 0 0 0 5px rgba(255, 240, 120, 0.38), 0 0 26px rgba(255, 236, 90, 0.95);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: markerPulse 1.1s ease-in-out infinite;
}

.stage-mini {
  width: min(58%, 260px);
  min-height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 240, 194, 0.7);
  border-radius: 8px;
  color: #fff6d8;
  background: linear-gradient(135deg, rgba(198, 62, 30, 0.98), rgba(239, 150, 90, 0.88));
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 8px;
}

.seat-rows-mini {
  display: grid;
  gap: 6px;
}

.seat-row-mini {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.seat-row-label {
  color: rgba(255, 247, 220, 0.86);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.seat-row-groups {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr 0.9fr;
  gap: 7px;
  align-items: center;
}

.seat-group-mini {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.seat-group-mini.wide {
  grid-column: auto;
}

.seat-row-mini:nth-child(n + 5) .seat-row-groups {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.seat-dot {
  width: clamp(6px, 1.45vw, 11px);
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 -1px 0 rgba(120, 0, 0, 0.14);
}

.seat-dot.active {
  position: relative;
  z-index: 2;
  background: #ffe35f;
  box-shadow: 0 0 0 3px rgba(255, 247, 176, 0.72), 0 0 18px rgba(255, 236, 90, 0.95);
  animation: seatBlink 1.05s ease-in-out infinite;
}

.seat-result-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(184, 120, 36, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.96), rgba(246, 214, 138, 0.76));
  color: #6b3a05;
  text-align: center;
  box-shadow: 0 14px 32px rgba(80, 0, 0, 0.16);
  animation: cardIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.seat-result-card strong {
  color: #d8120b;
  font-size: 30px;
  line-height: 1.15;
}

.seat-result-card em {
  color: #8f0e0a;
  font-style: normal;
  font-size: 13px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
  margin-top: calc(var(--poster-scale) * 610);
  position: relative;
  z-index: 1;
  animation: cardIn 680ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stats + .panel {
  margin-top: 0;
}

.admin-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 14px;
}

.admin-command-center {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.admin-command-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(184, 120, 36, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 242, 0.96), rgba(255, 244, 218, 0.9));
  box-shadow: 0 12px 30px rgba(96, 28, 0, 0.08);
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-action-grid.compact-actions {
  grid-template-columns: 1fr;
}

.admin-action-grid .secondary,
.admin-action-grid .link-button {
  justify-content: center;
  width: 100%;
  min-height: 40px;
  text-align: center;
}

.site-code-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(184, 120, 36, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.94), rgba(255, 231, 170, 0.76));
  animation: softReveal 520ms ease both;
}

.site-code-copy {
  display: grid;
  gap: 8px;
  color: #6b3a05;
}

.site-code-copy strong {
  color: #8f0e0a;
  font-size: 20px;
}

.admin-settings {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(184, 120, 36, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 242, 0.96), rgba(255, 244, 218, 0.9));
  box-shadow: 0 12px 30px rgba(96, 28, 0, 0.08);
  animation: softReveal 520ms ease both;
}

.settings-head {
  display: grid;
  gap: 5px;
  color: #6b3a05;
}

.settings-head.compact {
  gap: 3px;
  margin-bottom: 0;
}

.settings-head strong {
  color: #8f0e0a;
  font-size: 20px;
}

.settings-head.compact strong {
  font-size: 16px;
}

.settings-head span {
  color: #8f6b54;
  line-height: 1.45;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.settings-grid label.wide {
  grid-column: 1 / -1;
}

.settings-grid input,
.settings-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 252, 242, 0.96);
}

.settings-grid textarea {
  min-height: 88px;
  resize: vertical;
}

.settings-grid input:focus,
.settings-grid textarea:focus {
  outline: none;
  border-color: rgba(185, 21, 15, 0.54);
  background: #fffdf7;
  box-shadow: 0 0 0 4px rgba(185, 21, 15, 0.1);
}

.module-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(184, 120, 36, 0.22);
  border-radius: 8px;
  background: rgba(255, 252, 242, 0.78);
}

.module-toggle-row > div {
  display: grid;
  gap: 4px;
}

.module-toggle-row strong {
  color: #7a100c;
  font-size: 16px;
}

.module-toggle-row span {
  color: #9c7550;
  font-size: 12px;
}

.module-switch {
  min-width: 78px;
  min-height: 38px;
  border: 1px solid rgba(130, 82, 36, 0.22);
  border-radius: 999px;
  color: #7a100c;
  background: linear-gradient(180deg, #fff9ec, #ead8c3);
  box-shadow: inset 0 -2px 5px rgba(70, 22, 0, 0.08);
}

.module-switch.active {
  color: #fff9df;
  border-color: rgba(154, 22, 14, 0.28);
  background: linear-gradient(135deg, #a90d08, #e13820 60%, #d49b3f);
  box-shadow: 0 8px 18px rgba(155, 15, 9, 0.2);
}

.module-disabled-panel .section {
  display: grid;
  gap: 16px;
}

.module-disabled-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.settings-actions {
  margin-bottom: 0;
}

.attendee-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(184, 120, 36, 0.18);
  border-radius: 8px;
  background: rgba(255, 249, 232, 0.72);
}

.attendee-toolbar .segmented {
  margin: 0;
  justify-self: end;
}

.attendee-form-head {
  padding-top: 2px;
}

.admin-status-message {
  position: sticky;
  bottom: 12px;
  z-index: 8;
  width: fit-content;
  max-width: 100%;
  margin: 4px 0 12px;
  padding: 10px 14px;
  border: 1px solid rgba(184, 120, 36, 0.24);
  border-radius: 999px;
  color: #7a1309;
  background: rgba(255, 250, 232, 0.96);
  box-shadow: 0 12px 30px rgba(80, 0, 0, 0.12);
}

.likes-admin-grid {
  display: block;
  max-height: 360px;
  overflow: auto;
  padding: 2px;
}

.honor-like-admin-tabs {
  margin-top: 8px;
}

.like-admin-tab-panel {
  display: none;
}

.like-admin-tab-panel.active {
  display: grid;
  gap: 10px;
}

.like-admin-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(164, 28, 22, 0.16);
  border-radius: 8px;
  background: rgba(255, 247, 224, 0.5);
}

.like-admin-group-title {
  grid-column: 1 / -1;
  color: #9a150f;
  font-size: 15px;
  font-weight: 900;
}

.likes-admin-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.likes-admin-grid input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 252, 242, 0.96);
}

.field-hint {
  display: block;
  color: #8f6b54;
  font-size: 12px;
  font-weight: 500;
}

.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.secondary.mini {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
}

.secondary.danger {
  color: #9f160e;
  border-color: rgba(190, 41, 28, 0.28);
  background: rgba(255, 236, 228, 0.88);
}

.import-mode {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(184, 120, 36, 0.22);
  border-radius: 8px;
  background: rgba(255, 247, 226, 0.78);
}

.import-mode label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.import-mode input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.site-qr {
  width: 156px;
  min-height: 156px;
  margin: 0;
  padding: 10px;
}

.site-qr canvas,
.site-qr img,
.site-qr svg {
  width: 132px;
  height: 132px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 226, 0.92);
  box-shadow: 0 14px 34px rgba(80, 0, 0, 0.16);
  animation: statPop 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stat:nth-child(2) {
  animation-delay: 80ms;
}

.stat:nth-child(3) {
  animation-delay: 160ms;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid rgba(184, 120, 36, 0.24);
  border-radius: 8px;
  background: rgba(255, 249, 226, 0.58);
}

.segmented button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: #7a1309;
  background: transparent;
}

.segmented button.active {
  color: #fff7d6;
  background: linear-gradient(135deg, #a90d08, #d8321c);
  box-shadow: 0 8px 18px rgba(155, 15, 9, 0.18);
}

.search {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 252, 242, 0.96);
  color: var(--ink);
}

.primary,
.secondary,
.danger {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  color: white;
  white-space: nowrap;
}

.primary {
  background: linear-gradient(135deg, #a90d08, #e13820 62%, #d49b3f);
  box-shadow: 0 12px 28px rgba(155, 15, 9, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary:not(:disabled):active,
.secondary:not(:disabled):active,
.link-button:active,
.nav a:active {
  transform: translateY(1px) scale(0.99);
}

.secondary {
  color: #7a1309;
  border: 1px solid rgba(184, 120, 36, 0.34);
  background: rgba(255, 249, 226, 0.9);
}

.danger {
  background: var(--danger);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 238, 196, 0.72);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  color: white;
  background: #7c6f35;
  animation: softReveal 420ms ease both;
}

.badge.ok {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(185, 21, 15, 0.1);
}

.empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--muted);
}

.verify-result {
  display: grid;
  gap: 14px;
}

.big-status {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(184, 120, 36, 0.28);
  background: rgba(255, 246, 218, 0.88);
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 750;
  animation: statusPulse 2.6s ease-in-out infinite;
}

.big-status.warn {
  background: rgba(255, 233, 198, 0.9);
  color: var(--warn);
}

.invalid-status {
  text-align: center;
  font-size: 22px;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.form input,
.form textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 252, 242, 0.96);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.form input:focus,
.form textarea:focus,
.search:focus {
  outline: none;
  border-color: rgba(185, 21, 15, 0.54);
  box-shadow: 0 0 0 4px rgba(185, 21, 15, 0.1);
}

.form input[type="file"] {
  padding: 8px;
}

.form textarea {
  min-height: 180px;
  resize: vertical;
}

@keyframes ambientGlow {
  from {
    opacity: 0.78;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-5px) scale(1.006);
  }
}

@keyframes dateReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes softReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shineSweep {
  from {
    left: -60%;
  }
  to {
    left: 120%;
  }
}

@keyframes headerSweep {
  0%, 45% {
    transform: translateX(-100%);
  }
  72%, 100% {
    transform: translateX(100%);
  }
}

@keyframes qrBreathe {
  0%, 100% {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52), 0 0 0 rgba(246, 214, 138, 0);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68), 0 0 24px rgba(246, 214, 138, 0.28);
  }
}

@keyframes seatGlow {
  0%, 100% {
    box-shadow: 0 12px 28px rgba(132, 20, 8, 0.12);
  }
  50% {
    box-shadow: 0 14px 34px rgba(214, 142, 42, 0.28);
  }
}

@keyframes seatBlink {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.55);
  }
}

@keyframes markerPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes statPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(185, 21, 15, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(185, 21, 15, 0.12);
  }
}

@keyframes scanFramePulse {
  0%, 100% {
    opacity: 0.78;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (min-width: 721px) {
  :root {
    --poster-width: 520px;
  }
}

@media (max-width: 720px) {
  body::before {
    background-size: var(--poster-width) auto;
  }

  .shell {
    padding: 18px 14px 36px;
  }

  .topbar,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar > * {
    width: 100%;
  }

  .topbar {
    flex-direction: row;
    align-items: flex-start;
  }

  .brand {
    width: min(250px, calc(100% - 92px));
  }

  .nav a {
    flex: 1;
  }

  .ticket {
    margin-top: calc(var(--poster-scale) * 610);
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .shell.admin-page {
    padding: 14px 10px 36px;
  }

  .admin-hero {
    flex-direction: column;
    align-items: stretch;
    width: min(96%, 1120px);
  }

  .admin-hero-actions {
    justify-content: flex-start;
  }

  .admin-command-center {
    grid-template-columns: 1fr;
  }

  .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-action-grid.compact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendee-toolbar {
    grid-template-columns: 1fr;
  }

  .attendee-toolbar .segmented {
    justify-self: stretch;
  }

  .site-code-card {
    grid-template-columns: 1fr;
  }

  .admin-qr-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .module-toggle-grid {
    grid-template-columns: 1fr;
  }

  .likes-admin-grid {
    grid-template-columns: 1fr;
  }

  .seat-row-mini {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 5px;
  }

  .seat-row-groups {
    gap: 4px;
  }

  .seat-row-mini:nth-child(n + 5) .seat-row-groups {
    gap: 12px;
  }

  .seat-group-mini {
    gap: 2px;
  }

  .site-qr {
    justify-self: center;
  }

  .table {
    display: block;
    overflow-x: auto;
  }
}

.shell.service-page,
.shell.seat-query-page {
  padding-top: 18px;
}

.shell.service-page .page-module,
.shell.seat-query-page .page-module {
  width: min(92%, 430px);
  margin-top: calc(var(--poster-scale) * 740);
  margin-left: auto !important;
  margin-right: auto !important;
}

.shell.service-page .topbar,
.shell.seat-query-page .topbar {
  display: none !important;
}

.shell.service-page .hero-title-art,
.shell.seat-query-page .hero-title-art {
  display: block !important;
}

.shell.service-page .page-title-block,
.shell.seat-query-page .page-title-block {
  width: 100%;
  margin: 0 auto 14px !important;
}

.shell.service-page .ticket,
.shell.seat-query-page .ticket {
  margin-top: 0 !important;
}

.honor-card-hotspot {
  position: absolute;
  z-index: 3;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.honor-card-hotspot:focus-visible {
  outline: 2px solid rgba(255, 245, 190, 0.95);
  outline-offset: 2px;
  border-radius: 12px;
}

.honor-card-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(72, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.honor-card-dialog {
  position: relative;
  width: min(91vw, 430px);
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 34px 24px 26px;
  border: 2px solid rgba(255, 229, 142, 0.92);
  border-radius: 18px;
  color: #fff8e5;
  background:
    linear-gradient(180deg, rgba(239, 125, 31, 0.82) 0%, rgba(225, 34, 12, 0.74) 42%, rgba(205, 2, 2, 0.7) 100%),
    url("/assets/honor-card-modal-bg.jpg?v=20260707-unit-frame-layout-v4") center bottom / cover no-repeat;
  box-shadow: 0 24px 60px rgba(31, 0, 0, 0.45);
}

.honor-card-dialog.unit-dialog {
  aspect-ratio: 1003 / 2116;
  height: min(92vh, 920px);
  max-height: min(92vh, 920px);
  padding: 0;
  overflow: hidden;
  background: url("/assets/honor-card-unit-frame.png?v=20260707-card-modal-fix-v2") center / 100% 100% no-repeat;
}

.honor-card-dialog.stars-dialog {
  aspect-ratio: 1003 / 2116;
  height: min(92vh, 920px);
  max-height: min(92vh, 920px);
  padding: 0;
  overflow: hidden;
  border: 0;
  background: url("/assets/honor-card-stars-frame.png?v=20260707-card-modal-fix-v2") center / 100% 100% no-repeat;
}

.honor-card-dialog.unit-dialog .honor-card-dialog-title,
.honor-card-dialog.stars-dialog .honor-card-dialog-title {
  display: none;
}

.honor-card-close {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 235, 186, 0.55);
  border-radius: 50%;
  color: #fff8df;
  background: rgba(129, 0, 0, 0.35);
  font-size: 26px;
  line-height: 30px;
}

.honor-card-dialog.unit-dialog .honor-card-close,
.honor-card-dialog.stars-dialog .honor-card-close {
  right: 7.2%;
  top: 2.6%;
  width: 42px;
  height: 42px;
  z-index: 8;
  border-color: rgba(255, 238, 196, 0.6);
  background: rgba(133, 34, 0, 0.28);
}

.honor-card-dialog-title {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 auto 32px;
  width: 100%;
}

.honor-card-dialog-title span {
  font-size: 32px;
  color: #ffe19a;
  text-shadow: 0 3px 8px rgba(74, 0, 0, 0.32);
}

.honor-card-dialog-title strong {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(64%, 260px);
  color: #fff7dc;
  font-size: clamp(32px, 7.5vw, 46px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 5px 8px rgba(80, 0, 0, 0.38);
}

.honor-card-dialog-title strong::before,
.honor-card-dialog-title strong::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(19vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 243, 199, 0.82));
}

.honor-card-dialog-title strong::before {
  right: calc(100% + 18px);
}

.honor-card-dialog-title strong::after {
  left: calc(100% + 18px);
  transform: scaleX(-1);
}

.honor-card-dialog-photo {
  display: block;
  width: 86%;
  aspect-ratio: 872 / 548;
  object-fit: cover;
  margin: 0 auto;
  border: 3px solid rgba(255, 225, 142, 0.98);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(72, 0, 0, 0.28);
}

.honor-card-dialog-photo.portrait {
  width: min(48%, 205px);
  aspect-ratio: 440 / 548;
  margin-inline: auto;
  border-radius: 18px;
}

.honor-card-dialog h2 {
  width: 94%;
  margin: 24px auto 18px;
  color: #fff;
  font-size: clamp(22px, 5.8vw, 31px);
  line-height: 1.12;
  text-align: center;
  text-shadow: 0 4px 8px rgba(89, 0, 0, 0.28);
  overflow: hidden;
}

.honor-card-dialog-copy {
  width: 84%;
  min-height: 168px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(15px, 3.8vw, 19px);
  font-weight: 600;
  line-height: 2.08;
  text-align: center;
  white-space: pre-wrap;
  overflow: hidden;
}

.honor-card-dialog.stars-dialog .honor-card-dialog-title {
  margin-bottom: 36px;
}

.honor-card-dialog.unit-dialog .honor-card-dialog-photo,
.honor-card-dialog.stars-dialog .honor-card-dialog-photo {
  position: absolute;
  z-index: 2;
  margin: 0;
  box-shadow: none;
}

.honor-card-dialog.unit-dialog .honor-card-dialog-photo {
  left: 11.3%;
  top: 17.2%;
  width: 77.4%;
  height: 22.25%;
  border-width: 0;
  border-radius: 19px;
}

.honor-card-dialog.stars-dialog .honor-card-dialog-photo.portrait {
  left: 29.6%;
  top: 17.6%;
  width: 40.8%;
  height: 22.05%;
  border: 2px solid rgba(245, 209, 109, 0.95);
  border-radius: 19px;
  object-fit: cover;
}

.honor-card-dialog.unit-dialog h2,
.honor-card-dialog.stars-dialog h2 {
  position: absolute;
  z-index: 3;
  left: 10.4%;
  top: 40.05%;
  width: 79.2%;
  height: 4.55%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(17px, 4.15vw, 25px);
  line-height: 1;
  text-align: center;
  text-shadow: 0 4px 8px rgba(89, 0, 0, 0.28);
  white-space: normal;
  overflow: hidden;
}

.honor-card-dialog.stars-dialog h2 {
  left: 10.4%;
  top: 40.7%;
  height: 4.05%;
  width: 79.2%;
  font-size: clamp(17px, 4vw, 25px);
  white-space: nowrap;
  line-height: 1;
}

.honor-card-dialog.unit-dialog .honor-card-dialog-copy,
.honor-card-dialog.stars-dialog .honor-card-dialog-copy {
  position: absolute;
  z-index: 3;
  left: 13.8%;
  top: 48.15%;
  width: 72.4%;
  height: 30.8%;
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(12px, 2.95vw, 16px);
  font-weight: 600;
  line-height: 1.74;
  text-align: left;
  text-indent: 2em;
  white-space: pre-wrap;
  overflow: hidden;
}

.honor-card-dialog.stars-dialog .honor-card-dialog-copy {
  left: 10.8%;
  top: 47.35%;
  width: 78.4%;
  height: 34.15%;
  font-size: clamp(10.5px, 2.72vw, 14.5px);
  line-height: 1.68;
  text-align: left;
  text-indent: 0;
}

.honor-card-dialog.unit-dialog .honor-card-dialog-footer,
.honor-card-dialog.stars-dialog .honor-card-dialog-footer {
  position: absolute;
  z-index: 4;
  left: 9.8%;
  right: auto;
  bottom: 4.05%;
  width: 79.2%;
  margin: 0;
  padding-top: 0;
  gap: 12px;
  justify-content: flex-end;
}

.honor-card-dialog.stars-dialog .honor-card-dialog-footer {
  left: 9.8%;
  right: auto;
  bottom: 4.25%;
  width: 79.2%;
}

.honor-card-dialog.unit-dialog .honor-card-dialog-footer > span,
.honor-card-dialog.stars-dialog .honor-card-dialog-footer > span {
  border-bottom: 0;
}

.honor-card-dialog.unit-dialog .honor-modal-like-button,
.honor-card-dialog.stars-dialog .honor-modal-like-button {
  flex: 0 0 142px;
  width: 142px;
}

.honor-card-dialog-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 84%;
  margin: auto auto 0;
  padding-top: 28px;
}

.honor-card-dialog-footer > span {
  flex: 1 1 auto;
  border-bottom: 3px dotted rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.honor-modal-like-button {
  position: relative;
  flex: 0 0 142px;
  width: 142px;
  height: 56px;
  border: 0;
  padding: 0;
  background: transparent;
  transform: none;
}

.honor-modal-like-button img {
  position: absolute;
  left: 0;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translateY(-50%);
  z-index: 2;
}

.honor-modal-like-button .honor-like-count {
  position: absolute;
  left: 62px;
  right: 0;
  top: 50%;
  height: 34px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #9c0d09;
  background: linear-gradient(180deg, #fff 0%, #ececec 100%);
  font-size: 20px;
  font-weight: 900;
}

.honor-card-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.honor-card-editor-item {
  padding: 12px;
  border: 1px solid rgba(130, 27, 11, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.honor-card-editor-item img {
  display: block;
  width: 100%;
  aspect-ratio: 872 / 548;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.honor-card-editor-item img.portrait {
  width: min(100%, 220px);
  aspect-ratio: 440 / 548;
  margin-inline: auto;
}

.honor-card-editor-item textarea {
  min-height: 120px;
}

.sticky-admin-actions {
  position: sticky;
  bottom: 14px;
  z-index: 3;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 244, 221, 0.96);
  box-shadow: 0 12px 30px rgba(92, 20, 0, 0.16);
}

@media (max-width: 640px) {
  .honor-card-editor-grid {
    grid-template-columns: 1fr;
  }

  .honor-card-dialog {
    width: min(94vw, 420px);
    padding: 32px 18px 24px;
  }

  .honor-card-dialog.unit-dialog {
    height: min(92vh, 880px);
    padding: 0;
  }

  .honor-card-dialog.stars-dialog {
    height: min(92vh, 880px);
    padding: 0;
  }

  .honor-card-dialog:not(.unit-dialog):not(.stars-dialog) .honor-card-dialog-photo,
  .honor-card-dialog:not(.unit-dialog):not(.stars-dialog) .honor-card-dialog-copy,
  .honor-card-dialog:not(.unit-dialog):not(.stars-dialog) .honor-card-dialog-footer {
    width: 86%;
  }

  .honor-card-dialog:not(.stars-dialog) .honor-card-dialog-photo.portrait {
    width: min(49%, 188px);
  }

  .honor-card-dialog-title strong::before,
  .honor-card-dialog-title strong::after {
    width: min(15vw, 64px);
  }

  .honor-card-dialog.unit-dialog h2,
  .honor-card-dialog.stars-dialog h2 {
    font-size: clamp(19px, 5vw, 25px);
  }

  .honor-card-dialog.unit-dialog .honor-card-dialog-copy,
  .honor-card-dialog.stars-dialog .honor-card-dialog-copy {
    font-size: clamp(11px, 3.15vw, 15px);
  }
}


.honor-card-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.honor-card-admin-tab {
  min-width: 112px;
  border: 1px solid rgba(132, 35, 21, 0.18);
  border-radius: 999px;
  padding: 10px 16px;
  color: #7b160f;
  background: rgba(255, 248, 230, 0.82);
  font-weight: 800;
}

.honor-card-admin-tab.active {
  color: #fff7df;
  border-color: rgba(255, 221, 139, 0.75);
  background: linear-gradient(135deg, #c80d09, #e89528);
  box-shadow: 0 10px 22px rgba(128, 26, 10, 0.18);
}

.honor-card-editor-group {
  display: none;
}

.honor-card-editor-group.active {
  display: block;
}
