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

body {
  background: #0d1117;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#rabbit-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

main {
  width: 100%;
  max-width: 720px;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.city-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #161b22;
  border-radius: 12px;
  border: 1px solid #30363d;
}

.city-card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #f0f6fc;
  letter-spacing: 0.02em;
}

/* Time Display - 2 line layout */
.time-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  min-height: 3.5rem;
}

.time-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(240, 230, 140, 0.25);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.time-text:hover {
  background: rgba(240, 230, 140, 0.06);
  border-color: rgba(240, 230, 140, 0.5);
  box-shadow: 0 0 12px rgba(240, 230, 140, 0.1);
}

.time-clock {
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #f0f6fc;
  line-height: 1.2;
}

.time-date {
  font-size: 0.75rem;
  color: #7a828e;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.time-input {
  display: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(240, 230, 140, 0.4);
  border-radius: 8px;
  background: #0d1117;
  color: #e6edf3;
  font-family: inherit;
  color-scheme: dark;
}

.time-input.active {
  display: inline-block;
}

.time-text.hidden {
  display: none;
}

.now-btn {
  display: none;
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(240, 230, 140, 0.3);
  border-radius: 4px;
  background: #21262d;
  color: #f0e68c;
  cursor: pointer;
  transition: background 0.15s;
}

.now-btn:hover {
  background: #30363d;
}

.now-btn.visible {
  display: inline-block;
}

/* Moon */
.moon-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  overflow: hidden;
  filter: drop-shadow(0 0 18px rgba(240, 230, 140, 0.12));
}

.moon-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.sky-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sky-svg svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.moon-name {
  font-size: 1rem;
  color: #8b949e;
  font-weight: 500;
}

/* Events Section */
.events-section {
  background: #161b22;
  border-radius: 12px;
  border: 1px solid #30363d;
  padding: 1.25rem 1.5rem;
}

.events-section h3 {
  font-weight: 600;
  color: #8b949e;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.events-list {
  list-style: none;
}

.events-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #21262d;
  font-size: 0.9rem;
}

.events-list li:last-child {
  border-bottom: none;
}

.event-icon {
  font-size: 1.2rem;
  width: 1.6rem;
  text-align: center;
  flex-shrink: 0;
}

.event-date {
  color: #7ee787;
  font-variant-numeric: tabular-nums;
  min-width: 5rem;
  font-weight: 500;
}

.event-name {
  color: #b1bac4;
}

/* Responsive */
@media (max-width: 520px) {
  .city-grid {
    grid-template-columns: 1fr;
  }

  .moon-container {
    width: 120px;
    height: 120px;
  }

  .time-clock {
    font-size: 1.2rem;
  }
}
