@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');

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

body {
  font-family: 'Noto Sans', sans-serif;
  background: #e8e3d8;
  color: #2c2c2c;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  padding: 40px 20px 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
  background: #fdfbf7;
  background-image: 
    linear-gradient(90deg, #e8a5a5 1px, transparent 1px),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.02) 2px,
      rgba(0,0,0,0.02) 4px
    );
  background-size: 100% 100%, 4px 4px;
  box-shadow: 
    0 1px 1px rgba(0,0,0,0.1),
    0 2px 2px rgba(0,0,0,0.1),
    0 4px 4px rgba(0,0,0,0.1),
    0 8px 8px rgba(0,0,0,0.1),
    0 16px 16px rgba(0,0,0,0.1);
  position: relative;
  border-left: 40px solid #fdfbf7;
}

#app::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d85050;
  opacity: 0.4;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 10px;
}

.rosalia-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2c2c2c;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-color: #d85050;
  text-decoration-thickness: 2px;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.6;
  margin-bottom: 20px;
  font-style: italic;
}

.progress {
  background: #e8e3d8;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #ccc;
}

.progress-bar {
  height: 100%;
  background: #4a90e2;
  transition: width 0.3s ease;
}

.story-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-item {
  background: transparent;
  padding: 15px 20px;
  border-radius: 0;
  border: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.story-item.revealed {
  border-left-color: #4a90e2;
  background: rgba(74, 144, 226, 0.03);
}

.story-text {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  vertical-align: middle;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blank img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #4a90e2;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.blank:hover img {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.blank.revealed {
  background: transparent;
}

.blank-text {
  display: inline-block;
  padding: 2px 8px;
  background: #fffacd;
  color: #1a1a1a;
  border-radius: 3px;
  font-weight: 600;
  font-size: 1.2rem;
  animation: fadeIn 0.3s ease;
  border: 1px dashed #4a90e2;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-btn {
  background: #4a90e2;
  color: #fff;
  border: 2px solid #3a7bc8;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reveal-btn:hover {
  background: #3a7bc8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.reveal-btn:active {
  transform: translateY(0);
}

.reveal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.controls {
  position: sticky;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 20px;
  border-radius: 4px;
  border: 2px solid #ccc;
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.control-btn {
  flex: 1;
  min-width: 120px;
  background: #fff;
  color: #2c2c2c;
  border: 2px solid #ccc;
  padding: 10px 18px;
  border-radius: 4px;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
}

.control-btn:hover {
  border-color: #4a90e2;
  background: #f5f5f5;
}

.control-btn.active {
  background: #4a90e2;
  border-color: #3a7bc8;
  color: #fff;
}

@media (max-width: 600px) {
  #app {
    padding: 30px 15px;
  }
  
  .title {
    font-size: 1.2rem;
  }
  
  .story-text {
    font-size: 1.1rem;
  }
  
  .blank img {
    width: 90px;
    height: 90px;
  }
}