/* basic rpg-style chest page styling */
body {
  background-color: #1a1a1a;
  color: #fff;
  font-family: 'Libre Baskerville', serif;
  margin: 0;
  padding: 0;
  /* center content with flex */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* subtle rotating pinwheel effect */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 300vw;
  height: 300vh;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 60%),
              conic-gradient(from 0deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.15) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.15) 75%, rgba(255,255,255,0.08) 100%);
  transform: translate(-50%, -50%) rotate(0deg) scale(1.5);
  transform-origin: center;
  animation: spin 40s linear infinite;
  pointer-events: none;
  z-index: -1;
  filter: blur(4px);
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg) scale(1.5); }
  to   { transform: translate(-50%, -50%) rotate(360deg) scale(1.5); }
}

.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
}


.container{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
}

/* outer frame with decorative ends kept visible */
.scroll-container {
  /* allow the :before/:after decorations to extend outside without being chopped off */
  text-align:justify;
  scrollbar-width: thin;
  scrollbar-color: #c9a66b #fdf5e6;
  overflow: visible;
  margin: 100px auto;
  min-width: 300px;
  max-width: 300px;
  background: #fdf5e6;
  color: #222;
  padding: 10px 20px;
  border: 8px solid #c9a66b;
  border-radius: 20px 20px 5px 5px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

/* inner scrolling wrapper so content can overflow without hiding decorations */
.scroll-content {
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  box-sizing: border-box;
}

/* decorative scroll ends */
.scroll-container:before,
.scroll-container:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 20px;
  background: #c9a66b;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-container:before {
  top: -28px;
  border-radius: 30px 30px 0 0;
}
.scroll-container:after {
  bottom: -28px;
  border-radius: 0 0 30px 30px;
}

.rewards-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  text-align: left;
}
.rewards-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #c9a66b;
}
.rewards-list li:last-child {
  border-bottom: none;
}
