body {
  background-color: var(--bg);
  background-image: url('https://sintelad.neocities.org/IMAGEs/Corkbg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: 'AppleGaramond', serif;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: left;
  letter-spacing: 0.01em;
  overflow: hidden;
  cursor: url('https://sintelad.neocities.org/IMAGEs/starc.png') 0 0, auto;
}

/* ===== TAKE ME WITH YOU SECTION ===== */
.takeme {
  text-align: center;
  margin-top: 20px;
}

.takeme h3 {
  font-family: 'Alagard', serif;
  color: var(--glow-red);
  margin-bottom: 10px;
}

.takeme img {
  width: 88px;
  height: 31px;
  transition: filter 0.5s ease, transform 0.3s ease;
  filter: grayscale(100%) brightness(0.4) sepia(1) hue-rotate(-10deg) saturate(9) brightness(1.2);
  /* red tint overlay */
}

.takeme img:hover {
  filter: none;
  transform: scale(1.05);
  cursor: pointer;
}

.takeme textarea {
  margin-top: 6px;
  width: 100%;
  height: 55px;
  background: #0a0a0a;
  color: #ccc;
  font-size: 10px;
  border: 1px solid #333;
  resize: none;
}

/* ===== PAGEDOLL ===== */
.pagedoll {
  position: fixed;
  right: 40px;
  bottom: 60px;
  width: 280px; /* adjusted from 160px */
  height: auto;
  pointer-events: none;
  z-index: 5;
  transform: translateY(0);
  transition: transform 0.4s ease-out;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.4));
}

/* === Decorative frame wrapper for main panel === */
.frame-wrapper {
  position: relative;
  display: inline-block;
}

/* Decorative border that sits outside the main panel */
.frame-wrapper::before {
  content: "";
  position: absolute;
  top: -30px;   /* space above */
  right: -30px; /* space right */
  bottom: -30px;/* space below */
  left: -30px;  /* space left */
  background: url('IMAGEs/decorframe.png') no-repeat center center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1;
}

/* Only show the frame in default mode */
body.ocean-mode .frame-wrapper::before,
body.swirl-mode .frame-wrapper::before,
body.pulse-bg .frame-wrapper::before {
  display: none;
}

/* Ensure main stays above the frame and layout remains intact */
.frame-wrapper main {
  position: relative;
  z-index: 2;
}

