:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #5924ab;
  background: #eee6f6;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }

.event-home,
.detail-page {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 540px;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  overflow: hidden;
  background: #e8c3e7 url("background.webp") center top / 100% 100% no-repeat;
}

.hero,
.footer-art {
  display: block;
  width: 100%;
  height: auto;
  flex: none;
}

.entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 9px;
  padding: 11.2% 5.4% 10%;
}

.entry {
  display: block;
  min-width: 0;
  aspect-ratio: 408 / 209;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.entry img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.entry:active { transform: scale(.97); }
.entry[aria-disabled="true"] { cursor: default; }
.entry:focus-visible,
.back-link:focus-visible {
  outline: 3px solid #5924ab;
  outline-offset: 3px;
}

.footer-art { margin-top: auto; }
.page-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 56px;
  padding-top: env(safe-area-inset-top, 0px);
  background: #fbf7fc;
  border-bottom: 1px solid #ddc9ec;
}

.page-header h1 {
  grid-column: 2;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  margin: 0;
}

.back-link {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 48px;
  text-decoration: none;
  font-size: 26px;
}

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

.empty-content {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 56px 24px;
}

.empty-content img {
  width: 204px;
  height: auto;
}

.empty-content p {
  margin: 24px 0 0;
  font-size: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: hover) {
  .entry:hover { transform: translateY(-2px); filter: brightness(1.035); }
  .back-link:hover { background: #f0e5f7; }
}

@media (prefers-reduced-motion: reduce) {
  .entry { transition: none; }
}
