:root {
  --bg: #2f2f2f;
  --text: #f4f4f4;
  --box: #3d2e28;
  --accent: #fcaf58;
  --frame: #a78c6d;
  --shadow: rgba(0, 0, 0, 0.3);
  --raccoon: #8B7E6B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rubik', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 2rem;
}

/* Shrine Container */
.shrine-container {
  max-width: 800px;
  margin: auto;
  background: var(--box);
  border-radius: 12px;
  box-shadow: 0 0 20px var(--shadow);
  padding: 2rem;
  border: 2px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.shrine-container::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--raccoon) 0%, transparent 70%);
  opacity: 0.1;
  z-index: -1;
  animation: float 6s ease-in-out infinite alternate;
}

/* Animations */
@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-20px, 20px) rotate(5deg); }
}

@keyframes typewriter {
  from { width: 0 }
  to { width: 100% }
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 24%, 55% { opacity: 0.5; }
}

@keyframes grapple {
  0% { transform: translateY(0) rotate(10deg); }
  50% { transform: translateY(100%) rotate(-5deg); }
  100% { transform: translateY(200%) rotate(5deg); }
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: 'Major Mono Display', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 2.8rem;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
  animation: flicker 2s infinite, typewriter 2s steps(20) 1;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent);
  margin-bottom: 0.3rem;
  display: inline-block;
}

.alias {
  font-style: italic;
  color: var(--frame);
  font-size: 1.1rem;
  font-family: 'Major Mono Display', monospace;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.2rem;
}

/* Headings */
h2 {
  font-family: 'Rubik', sans-serif;
  color: var(--accent);
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 0.3rem;
}

/* Stats and Relationships */
.stats ul,
.relationships ul {
  list-style: none;
  padding-left: 0;
}

.stats li,
.relationships li {
  margin-bottom: 0.8rem;
}

.stats li strong,
.alias,
.winamp-skin a {
  font-family: 'Major Mono Display', monospace;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Relationships list item */
.relationships li {
  background: #2a2320;
  padding: 0.8rem;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

/* Quote */
.quote-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.quote-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--frame);
  box-shadow: 0 0 8px var(--shadow);
  transition: all 0.3s ease;
}

.quote-image:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform: scale(1.02);
}

.quote blockquote {
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding: 1rem;
  color: var(--frame);
  background: #272020;
  border-radius: 6px;
  box-shadow: 0 0 8px var(--accent);
}

/* Inventory */
.inventory {
  margin: 2rem 0;
}

.stolen-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.item {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: var(--box);
  border: 1px dashed var(--frame);
  border-radius: 8px;
  cursor: help;
  position: relative;
  transition: all 0.3s ease;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 10px var(--shadow);
  border-color: var(--accent);
}

.item::after {
  content: attr(data-item);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--box);
  color: var(--text);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.item:hover::after {
  opacity: 1;
}

/* Gallery */
.gallery {
  margin: 2rem 0;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.gallery-images figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--frame);
  background: var(--box);
  transition: all 0.3s ease;
}

.gallery-images figure:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform: translateY(-5px);
}

.gallery-images img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px dashed var(--frame);
  border-radius: 8px;
  border: 2px solid var(--frame);
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gallery-images img:hover {
  transform: scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.gallery-images img::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: grapple 1.5s infinite;
  opacity: 0.7;
}

.gallery-images figcaption {
  padding: 0.8rem;
  text-align: center;
  font-family: 'Major Mono Display', monospace;
  font-size: 0.9rem;
  color: var(--text);
  background: linear-gradient(to top, #3d2e28 0%, #2a2320 100%);
}

.gallery-images figure:hover figcaption {
  color: var(--accent);
  text-shadow: 0 0 5px var(--shadow);
}

/* Personality Section */
.personality p {
  background: #292421;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 2rem;
}

.timeline-date {
  font-family: 'Major Mono Display', monospace;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.timeline-content {
  background: var(--box);
  padding: 0.8rem;
  border-radius: 6px;
  border-left: 3px solid var(--frame);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--box);
}

/* Steal Button */
.steal-button-container {
  text-align: center;
  margin: 2rem 0;
}

.steal-button {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.8rem 1.5rem;
  font-family: 'Major Mono Display', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.steal-button:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 15px var(--accent);
}

.steal-message {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  font-style: italic;
  color: var(--frame);
}

.vulnerability {
  margin: 2rem 0;
}

.meter {
  margin: 1rem 0 2rem;
}
