body {
  background-color: #f0f5f9;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(104, 170, 198, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(160, 200, 220, 0.25) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: mysticGlow 10s ease-in-out infinite alternate;
}

@keyframes mysticGlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.rpg-scrapbook-layout {
  max-width: 850px;
  margin: 100px auto 50px auto;
  padding: 0 20px;
}

.page-title {
  text-align: center;
  margin-bottom: 50px;
}

.page-title h1 {
  color: #2c3e50;
  font-family: 'Cinzel', 'Noto Serif TC', serif; 
  font-size: 2.8rem;
  letter-spacing: 6px;
  margin: 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.page-title h2 {
  font-family: 'Noto Serif TC', serif;
  color: #607d8b;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-top: 5px;
}

.scrapbook-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.rpg-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.65); 
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), inset 0 0 20px rgba(255, 255, 255, 0.8);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rpg-panel:hover {
  border-color: rgba(104, 170, 198, 0.6); 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 0 15px rgba(104, 170, 198, 0.15);
}

.rpg-badge {
  position: absolute;
  background: linear-gradient(135deg, #68aac6, #4a7d96);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 15px rgba(104, 170, 198, 0.3);
  z-index: 10;
}

.top-right-badge { top: -15px; right: 20px; }
.top-left-badge { top: -15px; left: 20px; }
.bottom-left-badge { bottom: -15px; left: 20px; }

.panel-content-flex {
  display: flex;
  gap: 30px;
  align-items: center;
}

.avatar-glass-box {
  width: 200px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 4px solid #ffffff;
  flex-shrink: 0;
  transform: rotate(-2deg); 
  box-shadow: 5px 10px 20px rgba(0,0,0,0.08);
}

.avatar-glass-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(105%);
}

.scroll-content {
  flex: 1;
}

.epic-en {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: #2c3e50; 
  margin: 0 0 5px 0;
}

.epic-en span {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.2rem;
  color: var(--accent-color);
}

.scroll-hint {
  color: #78909c; 
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin: 0 0 15px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  padding-bottom: 5px;
}

.rpg-scroll-box {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 15px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.95rem;
  color: #455a64;
  line-height: 1.7;
}

.short-scroll {
  max-height: 140px;
}

.highlight-text {
  color: #1a252f;
  font-family: 'Noto Serif TC', serif;
  font-style: italic;
  font-weight: bold;
}

.rpg-scroll-box::-webkit-scrollbar { width: 4px; }
.rpg-scroll-box::-webkit-scrollbar-track { background: rgba(0,0,0,0.03); border-radius: 4px; }
.rpg-scroll-box::-webkit-scrollbar-thumb { background: rgba(104, 170, 198, 0.5); border-radius: 4px; }
.rpg-scroll-box::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.rpg-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.offset-down {
  margin-top: 40px; 
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  margin-bottom: 8px;
  color: #455a64; 
}

.achievement-text {
  font-family: 'Noto Sans TC', sans-serif;
  color: #455a64;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 25px;
  background: rgba(255,255,255,0.7);
  padding: 15px;
  border-radius: 6px;
  border-left: 3px solid var(--accent-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.mini-carousel {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

@media screen and (max-width: 768px) {
  .panel-content-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .avatar-glass-box {
    width: 150px;
    transform: rotate(0);
  }
  .rpg-scroll-box {
    text-align: left; 
  }
  .rpg-split-grid {
    grid-template-columns: 1fr; 
  }
  .offset-down {
    margin-top: 0; 
  }
  .rpg-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}