:root {
  color-scheme: light;
  font-family:
    "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia,
    serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --forest: #245e32;
  --deep: #184c2a;
  --leaf: #548443;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  min-width: 360px;
  min-height: 100%;
  margin: 0;
}
body {
  overflow: hidden;
}
button,
input {
  font: inherit;
}
.wall-body {
  background: #e4f1ce;
  color: var(--forest);
}
.wall {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 480px;
  isolation: isolate;
  overflow: hidden;
}
.wall__poster,
.wall__wash,
.wall__frame,
.wall__names {
  position: absolute;
  inset: 0;
}
.wall__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.wall__wash {
  background: linear-gradient(
    180deg,
    rgba(247, 255, 227, 0.08),
    transparent 27%,
    transparent 73%,
    rgba(247, 255, 227, 0.18)
  );
  pointer-events: none;
}
.wall__frame {
  inset: 15% 8% 17%;
  border: 1px solid rgba(44, 110, 48, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.wall__frame--inner {
  inset: 20% 16% 23%;
  border-color: rgba(255, 255, 244, 0.34);
  border-style: dashed;
  transform: rotate(-4deg);
}
.wall__header {
  position: absolute;
  z-index: 4;
  inset: 3.3% 4.1% auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.wall__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--forest);
  text-decoration: none;
}
.wall__brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(47, 105, 47, 0.44);
  border-radius: 50%;
  color: #478144;
  font-family: Georgia, serif;
  font-size: 22px;
}
.wall__brand-copy {
  display: grid;
  gap: 4px;
  text-shadow: 0 1px 8px rgba(249, 255, 235, 0.9);
}
.wall__brand-name {
  font-size: clamp(12px, 1vw, 17px);
  letter-spacing: 0.14em;
}
.wall__brand-kicker {
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  opacity: 0.75;
}
.wall__top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.attendance {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 8px 17px;
  border: 1px solid rgba(43, 98, 47, 0.17);
  border-radius: 28px;
  background: rgba(255, 255, 246, 0.71);
  box-shadow: 0 8px 26px rgba(48, 93, 39, 0.07);
  backdrop-filter: blur(12px);
}
.attendance__spark {
  color: #7e9d42;
  font-size: 20px;
}
.attendance__text {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.attendance__text strong {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}
.attendance__text span {
  font-size: 12px;
  letter-spacing: 0.04em;
}
.reset-button {
  padding: 8px 11px;
  border: 1px solid rgba(43, 98, 47, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 246, 0.53);
  color: rgba(36, 94, 50, 0.68);
  font-family: sans-serif;
  font-size: 11px;
  cursor: pointer;
  opacity: 0.55;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.reset-button:hover,
.reset-button:focus-visible {
  background: rgba(255, 255, 246, 0.9);
  opacity: 1;
}
.wall__names {
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.guest-name {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 12px 6px;
  border: 1px solid rgba(51, 109, 54, 0.22);
  border-radius: 4px 17px 17px 17px;
  background: rgba(255, 255, 248, 0.85);
  box-shadow: 0 5px 21px rgba(45, 92, 37, 0.12);
  color: #286336;
  font-size: clamp(13px, 1.18vw, 21px);
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(5px);
  animation: guest-arrive 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.guest-name::before {
  content: "✳";
  margin-right: 8px;
  color: #8e9e48;
  font-size: 0.66em;
}
.guest-name--new {
  border-color: rgba(111, 141, 45, 0.62);
  background: rgba(255, 255, 243, 0.95);
  box-shadow:
    0 0 22px rgba(168, 183, 85, 0.44),
    0 7px 25px rgba(45, 92, 37, 0.13);
  animation:
    guest-arrive 0.65s cubic-bezier(0.16, 1, 0.3, 1) both,
    guest-glow 1.45s ease-in-out 0.55s 3;
}
.guest-name--crowded {
  padding: 4px 9px 5px;
  font-size: clamp(11px, 0.93vw, 16px);
  opacity: 0.88;
}
.wall__status {
  position: absolute;
  z-index: 4;
  left: 4.3%;
  top: 13.5%;
  margin: 0;
  color: rgba(48, 104, 47, 0.64);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.11em;
}
.wall__qr-card {
  position: absolute;
  z-index: 5;
  right: 3.1%;
  bottom: 4.5%;
  display: grid;
  width: clamp(172px, 13vw, 224px);
  justify-items: center;
  padding: 13px 15px 14px;
  border: 1px solid rgba(61, 101, 49, 0.16);
  border-radius: 3px 20px 20px 20px;
  background: rgba(255, 255, 246, 0.93);
  box-shadow: 0 15px 50px rgba(50, 85, 40, 0.14);
  backdrop-filter: blur(16px);
}
.wall__qr-head {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 7px;
  color: #6b8450;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.wall__qr-mark {
  color: #82974c;
  font-size: 14px;
}
.wall__qr {
  display: block;
  width: 100%;
  height: auto;
  margin: 9px 0 4px;
  border-radius: 2px;
  image-rendering: pixelated;
}
.wall__qr-title {
  color: #225b31;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.wall__qr-subtitle {
  margin-top: 4px;
  color: #718263;
  font-size: 10px;
  letter-spacing: 0.07em;
}
.wall__footer {
  position: absolute;
  z-index: 4;
  left: 4.3%;
  bottom: 6.3%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #39723e;
  text-shadow: 0 1px 8px rgba(249, 255, 235, 0.9);
}
.wall__footer-spark {
  color: #758c42;
  font-size: 15px;
}
.wall__footer > span:nth-child(2) {
  font-size: clamp(14px, 1.25vw, 22px);
  letter-spacing: 0.08em;
}
.wall__footer-line {
  width: clamp(30px, 5vw, 70px);
  height: 1px;
  margin: 0 3px;
  background: rgba(49, 105, 50, 0.38);
}
.wall__footer-en {
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.8;
}
@keyframes guest-arrive {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  to {
    opacity: 1;
  }
}
@keyframes guest-glow {
  0%,
  100% {
    box-shadow:
      0 0 13px rgba(168, 183, 85, 0.2),
      0 7px 25px rgba(45, 92, 37, 0.12);
  }
  50% {
    box-shadow:
      0 0 26px rgba(168, 183, 85, 0.55),
      0 7px 25px rgba(45, 92, 37, 0.12);
  }
}
@media (max-width: 800px) {
  .wall {
    min-height: 420px;
  }
  .wall__header {
    inset: 2.5% 3%;
  }
  .wall__brand-mark {
    width: 31px;
    height: 31px;
    font-size: 19px;
  }
  .wall__brand-name {
    max-width: 170px;
    font-size: 10px;
  }
  .wall__brand-kicker {
    font-size: 7px;
  }
  .attendance {
    min-height: 43px;
    gap: 7px;
    padding: 6px 10px;
  }
  .attendance__text {
    gap: 4px;
  }
  .attendance__text strong {
    font-size: 19px;
  }
  .attendance__text span {
    font-size: 10px;
  }
  .attendance__spark {
    font-size: 16px;
  }
  .reset-button {
    padding: 6px 8px;
    font-size: 9px;
  }
  .wall__frame--outer {
    inset: 19% 5% 18%;
  }
  .wall__frame--inner {
    inset: 24% 12% 25%;
  }
  .wall__status {
    top: 12%;
    left: 3.5%;
    font-size: 8px;
  }
  .wall__qr-card {
    right: 2.5%;
    bottom: 2.8%;
    width: clamp(126px, 23vw, 177px);
    padding: 9px 11px 10px;
  }
  .wall__qr-head {
    font-size: 9px;
  }
  .wall__qr {
    margin: 6px 0 3px;
  }
  .wall__qr-title {
    font-size: 13px;
  }
  .wall__qr-subtitle {
    font-size: 8px;
  }
  .wall__footer {
    left: 3.5%;
    bottom: 5%;
    gap: 8px;
  }
  .wall__footer > span:nth-child(2) {
    font-size: 12px;
  }
  .wall__footer-line {
    width: 22px;
  }
  .wall__footer-en {
    font-size: 7px;
  }
}
@media (max-width: 520px) {
  .wall__brand-copy {
    max-width: 140px;
  }
  .attendance__text span {
    max-width: 50px;
    white-space: normal;
    line-height: 1.2;
  }
  .wall__qr-card {
    width: 116px;
  }
  .wall__qr-head {
    font-size: 8px;
  }
  .wall__qr-title {
    font-size: 12px;
  }
  .wall__qr-subtitle {
    font-size: 7px;
  }
  .wall__footer-line,
  .wall__footer-en {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
