﻿:root {
  --bg-1: #f6f2ea;
  --bg-2: #e8f0e3;
  --ink: #1f2a1f;
  --ink-soft: #4f5a4f;
  --frame: #d8d0c6;
  --accent: #7aa96b;
  --accent-strong: #4d8a56;
  --weekend: #c7c7c7;
  --day: #d9d9d9;
  --day-active: #7aa96b;
  --day-selected: #2f6d46;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 20% -10%, #ffffff 0%, transparent 60%),
              radial-gradient(1200px 600px at 80% 110%, #ffffff 0%, transparent 60%),
              linear-gradient(140deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.page-title {
  text-align: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 1px;
  margin: 10px 0 30px;
  color: #2b3a2b;
}

.photo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.photo-frame {
  position: relative;
  width: min(900px, 92vw);
  aspect-ratio: 3 / 2;
  background: #ffffff;
  border: 6px solid var(--frame);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(33, 49, 33, 0.15);
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mood-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.mood-badge.is-hidden {
  display: none;
}

.photo-message {
  font-size: 15px;
  color: var(--ink-soft);
}

.timeline {
  margin-top: 30px;
  padding: 20px 16px 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  border: 1px solid #e1ddd6;
  box-shadow: 0 10px 20px rgba(33, 49, 33, 0.08);
}

.timeline-months,
.timeline-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  font-size: 12px;
  color: var(--ink-soft);
}

.timeline-months::-webkit-scrollbar,
.timeline-days::-webkit-scrollbar {
  height: 0;
}

.timeline-months::-webkit-scrollbar-track,
.timeline-days::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-months::-webkit-scrollbar-thumb,
.timeline-days::-webkit-scrollbar-thumb {
  background: transparent;
}

.timeline-months,
.timeline-days {
  scrollbar-width: none;
}

.month-label {
  flex: 0 0 auto;
  min-width: 72px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 15px;
  color: #2b3a2b;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e1ddd6;
  border-radius: 999px;
  padding: 4px 10px;
  text-align: center;
  margin-bottom: 4px;
}

.day-label {
  flex: 0 0 24px;
  text-align: center;
  opacity: 0.8;
}

.timeline-days {
  display: none;
}

.timeline-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.timeline-track::-webkit-scrollbar {
  height: 22px;
}

.timeline-track::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.timeline-track {
  scrollbar-width: auto;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.day-cell {
  flex: 0 0 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--day);
  border: 1px solid rgba(33, 49, 33, 0.12);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #2b3a2b;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.2s ease;
}

.day-cell.weekend {
  background: #e1e1e1;
  color: #6f6f6f;
}

.day-cell.has-photo {
  background: #7aa96b;
  color: #ffffff;
}

.day-cell.today {
  outline: 2px solid #1f2a1f;
  outline-offset: 2px;
}

.day-cell.selected {
  background: #2f6d46;
  color: #ffffff;
  transform: translateY(-2px);
}

.day-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(33, 49, 33, 0.18);
}

.year-picker {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.year-picker select {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #cfc7bd;
  background: #ffffff;
  font-size: 15px;
}

.notice {
  margin-top: 6px;
  font-size: 13px;
  color: #6b716b;
}

@media (max-width: 720px) {
  main {
    padding: 24px 14px 32px;
  }

  .photo-frame {
    border-width: 4px;
  }

  .day-cell {
    flex-basis: 60px;
    height: 60px;
    font-size: 16px;
  }

  .month-label {
    min-width: 56px;
    font-size: 13px;
  }

  .day-label {
    flex-basis: 20px;
    font-size: 11px;
  }
}
