* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: "IBM Plex Sans Hebrew", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #fff;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 50px 80px;
}

/* Header */
.header {
  margin-bottom: 56px;
}
.header-top {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.title {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 14px;
}
.subtitle {
  font-size: 17px;
  color: #333;
  font-weight: 400;
  line-height: 1.5;
}
.subtitle-small {
  font-size: 14px;
  color: #888;
  font-weight: 300;
  margin-top: 4px;
}

.progress-section {
  max-width: 720px;
  margin: 0 auto;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.progress-label {
  font-size: 18px;
  font-weight: 600;
  color: #111;
}
.progress-count {
  font-size: 15px;
  font-weight: 500;
  color: #888;
  font-variant-numeric: tabular-nums;
}
.progress-track {
  width: 100%;
  height: 6px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: #111;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cell {
  aspect-ratio: 1 / 1;
  background: #3a3a3a;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.15s ease;
}
.cell.unlocked {
  background: #f3f3f3;
  cursor: pointer;
}
.cell.unlocked:hover {
  transform: translateY(-2px);
}
.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.cell:not(.unlocked) img {
  opacity: 0.9;
  mix-blend-mode: multiply;
}
.cell-day {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  opacity: 0;
}
.cell.unlocked .cell-day { opacity: 1; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.modal-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: pop 0.18s ease;
}
@keyframes pop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 10px;
  left: 14px;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.modal-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f3f3f3;
}
.modal-body { padding: 22px; text-align: center; }
.modal-day { font-size: 14px; color: #666; margin-bottom: 6px; }
.modal-desc {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 18px;
  color: #111;
}
.modal-link {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.modal-link:hover { background: #333; }
.modal-link.hidden { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .container { padding: 36px 20px 60px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .title { font-size: 38px; }
  .header { margin-bottom: 40px; }
  .header-top { margin-bottom: 28px; }
}
@media (max-width: 600px) {
  .container { padding: 28px 16px 50px; }
  .header { margin-bottom: 32px; }
  .header-top { margin-bottom: 24px; }
  .title { font-size: 28px; letter-spacing: -0.5px; }
  .subtitle { font-size: 14px; }
  .subtitle-small { font-size: 12px; }
  .progress-label { font-size: 16px; }
  .progress-count { font-size: 13px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cell { border-radius: 14px; }
  .cell-day { font-size: 12px; top: 6px; right: 8px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
