.forum-countdown {
  padding: 32px max(6vw, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--blue-pale);
  border-top: 1px solid var(--line);
}
.countdown-heading h2 { margin: 0 0 8px; color: var(--blue-deep); font-size: 1.1rem; letter-spacing: .04em; }
.countdown-heading p { margin: 0; color: var(--ink-soft); font-size: .75rem; }
.countdown-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.countdown-unit { min-width: 76px; text-align: center; perspective: 500px; }
.countdown-unit strong {
  position: relative;
  display: block;
  padding: 10px 12px;
  color: var(--white);
  background: linear-gradient(180deg, var(--blue-deep) 50%, #15466e 50%);
  border-radius: 3px;
  box-shadow: 0 3px 6px rgba(11, 49, 86, .12);
  font-size: 2.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.countdown-unit strong::after { content: ""; position: absolute; z-index: 4; left: 0; right: 0; top: 50%; border-top: 1px solid rgba(0, 0, 0, .25); pointer-events: none; }
.countdown-flap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: inherit;
  font: inherit;
  font-style: normal;
  backface-visibility: hidden;
  transform-origin: center;
  pointer-events: none;
}
.countdown-flap-back { z-index: 1; clip-path: inset(50% 0 0); animation: countdown-back .6s steps(1) forwards; }
.countdown-flap-top { z-index: 3; clip-path: inset(0 0 50%); animation: countdown-top .3s ease-in forwards; }
.countdown-flap-bottom { z-index: 2; clip-path: inset(50% 0 0); animation: countdown-bottom .3s .3s ease-out both; }
@keyframes countdown-back { 0% { visibility: visible; } 50%, 100% { visibility: hidden; } }
@keyframes countdown-top { from { transform: perspective(500px) rotateX(0deg); } to { transform: perspective(500px) rotateX(-90deg); } }
@keyframes countdown-bottom { from { transform: perspective(500px) rotateX(90deg); } to { transform: perspective(500px) rotateX(0deg); } }
.countdown-unit > span { display: block; margin-top: 8px; color: var(--blue-deep); font-size: .72rem; font-weight: 700; }
.countdown-started { margin: 0; color: var(--blue-deep); font-size: 1.4rem; font-weight: 700; }
.forum-countdown [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .countdown-flap { display: none; animation: none; }
}
@media (max-width: 900px) {
  .forum-countdown { flex-direction: column; text-align: center; gap: 20px; }
}
@media (max-width: 480px) {
  .forum-countdown { padding: 26px 20px; }
  .countdown-units { width: 100%; max-width: 360px; gap: 8px; }
  .countdown-unit { min-width: 0; }
  .countdown-unit strong { padding: 10px 5px; font-size: clamp(1.5rem, 7vw, 2rem); }
  .countdown-heading p { font-size: .68rem; }
}
