.ppeb-wrap {
  --ppeb-gold: #ffd700;
  --ppeb-gold-soft: rgba(255, 215, 0, 0.16);
  --ppeb-border: rgba(255, 215, 0, 0.14);
  --ppeb-card: rgba(255,255,255,.02);
  position: relative;
  margin: 24px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.ppeb-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ppeb-border);
}

.ppeb-intro {
  margin: 0;
  color: #e5e5e5;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 600;
}

.ppeb-grid {
  display: block;
}

.ppeb-day-card {
  position: relative;
  margin: 0;
  padding: 24px 0 8px;
}

.ppeb-day-card + .ppeb-day-card {
  margin-top: 24px;
  padding-top: 36px;
}

.ppeb-day-card + .ppeb-day-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,215,0,0) 0%, rgba(255,215,0,.18) 8%, rgba(255,215,0,.78) 22%, rgba(255,249,204,.98) 50%, rgba(255,215,0,.78) 78%, rgba(255,215,0,.18) 92%, rgba(255,215,0,0) 100%);
  box-shadow: 0 0 16px rgba(255,215,0,.22);
}

.ppeb-day-title {
  margin: 0 0 18px;
  color: var(--ppeb-gold);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
}

.ppeb-floor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

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

.ppeb-puzzle {
  appearance: none;
  border: 2px solid transparent!important;
  background: transparent!important;
  border-radius: 3px;
  padding: 14px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ppeb-puzzle:hover,
.ppeb-puzzle:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255,215,0,.36)!important;
  box-shadow: 0 12px 24px rgba(0,0,0,.24), 0 0 18px rgba(255,215,0,.12);
  background: rgba(255,255,255,.04)!important;
  outline: none;
}

.ppeb-puzzle-label {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 800;
}

.ppeb-puzzle-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,215,0,.12);
  background: rgba(0,0,0,.2);
}

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

.ppeb-modal[hidden] {
  display: none;
}

.ppeb-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.ppeb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(2px);
}

.ppeb-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 30px));
  max-height: 90vh;
  border-radius: 18px;
  border: 1px solid rgba(255,215,0,.18);
  background: #101010;
  box-shadow: 0 24px 48px rgba(0,0,0,.42);
  overflow: hidden;
}

.ppeb-modal-scroll {
  max-height: 90vh;
  overflow: auto;
  padding: 18px;
}

.ppeb-modal-caption {
  margin: 0 56px 12px 0;
  color: var(--ppeb-gold);
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 800;
}

.ppeb-modal-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.ppeb-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ppeb-notice,
.ppeb-editor-preview .ppeb-notice {
  padding: 14px 16px;
  border: 1px solid rgba(255,215,0,.22);
  background: rgba(255,215,0,.06);
  border-radius: 10px;
  color: #fff;
}
.ppeb-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.ppeb-intro-text {
    flex: 1 1 500px;
    min-width: 0;
}

.ppeb-intro-dates {
    margin-left: auto;
    white-space: nowrap;
}
.ppeb-head-copy {
    width:100%;
}
html.ppeb-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .ppeb-head {
    align-items: flex-start;
  }

  .ppeb-puzzles,
  .ppeb-floor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ppeb-day-title {
    font-size: 1.25rem;
  }

  .ppeb-modal {
    padding: 16px;
  }

  .ppeb-modal-dialog,
  .ppeb-modal-scroll {
    max-height: 88vh;
  }

}
