* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #f4f1ea;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
}

.page {
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background:
    url("background.jpeg") center center / contain no-repeat,
    radial-gradient(circle at center, #f5f3ee 0%, #ddd7cc 100%);
}

.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.02) 32%,
    rgba(0,0,0,.08) 55%,
    rgba(0,0,0,.34) 100%
  );
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding:
    calc(env(safe-area-inset-top) + 18px)
    16px
    calc(env(safe-area-inset-bottom) + 28px);
}

.title-wrap {
  width: min(94vw, 760px);
  margin-top: 2px;
  text-align: center;
}

h1 {
  margin: 0;
  padding: 11px 14px 12px;
  border-radius: 16px;
  color: #fff;
  font-size: clamp(22px, 5.7vw, 42px);
  line-height: 1.18;
  letter-spacing: .04em;
  font-weight: 800;
  text-shadow:
    0 2px 3px rgba(0,0,0,.92),
    0 0 9px rgba(0,0,0,.66);
  background: rgba(8, 39, 33, .42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 7px 24px rgba(0,0,0,.16);
}

h1 span {
  display: block;
  white-space: nowrap;
}

.countdown-card {
  width: min(94vw, 760px);
  padding: 18px 14px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 22px;
  background: rgba(5, 31, 27, .64);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  text-align: center;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.unit {
  min-width: 0;
  padding: 8px 4px 7px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
}

.unit strong {
  display: block;
  color: #fff7d6;
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 10vw, 68px);
  line-height: 1;
  letter-spacing: -.03em;
  text-shadow: 0 3px 8px rgba(0,0,0,.65);
}

.unit span {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: clamp(14px, 3.8vw, 21px);
  font-weight: 700;
}

.status {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(15px, 4vw, 21px);
  font-weight: 700;
}

.date {
  margin: 5px 0 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(13px, 3.6vw, 18px);
}

@media (orientation: landscape) and (max-height: 600px) {
  .content {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  h1 {
    font-size: clamp(20px, 4vw, 31px);
    padding: 7px 12px 8px;
  }

  .countdown-card {
    padding: 10px 12px 8px;
  }

  .unit strong {
    font-size: clamp(28px, 7vw, 54px);
  }
}
