/* GLOBAL RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Button color variables (changed from JS) */
:root {
  --btn-bg: #ffffff;      /* button fill */
  --btn-shadow: #d2232a;  /* button shadow */
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #1a1a1a;  /* charcoal */
  color: #111;
}

/* MAIN WRAPPER */
.death-hill .page-wrapper {
  max-width: 430px;
  margin: 40px auto;
  background: #e7e7e7;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
}

/* TOP IMAGE */
.hero img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(100%);
}

/* TORN EDGES */
.tear {
  width: 100%;
  display: block;
}

.tear-top {
  margin-top: -4px;
}

.tear-bottom {
  margin-bottom: -4px;
}

/* BLACK PANEL */
.panel {
  background: #000;
  padding: 28px 24px;
}

.panel-inner {
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}

/* GOTHIC TITLE */
.logo-word {
  font-family: "UnifrakturMaguntia", cursive;
  font-size: 2.6rem;
  color: #fff;
  line-height: 1.1;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* BOLDER SUBTITLE */
.subtitle {
  margin-top: 6px;
  color: #e9473d;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* BUTTON LIST */
.link-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* BUTTONS – using variables */
.link-btn {
  display: block;
  width: 100%;
  background: var(--btn-bg);
  color: #000;
  text-decoration: none;
  padding: 12px 16px;

  font-size: 1rem;
  font-weight: 700;

  text-align: center;
  position: relative;

  box-shadow: 6px 6px 0 var(--btn-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 4px;
}

.link-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--btn-shadow);
}

/* FOOTER SECTION (HIDDEN) */
.footer {
  display: none;
}

.welcome-text {
  color: #e9473d;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* ADMIN PAGE STYLES */
.admin-body {
  background: #111;
  color: #f5f5f5;
}

.admin-wrapper {
  max-width: 480px;
  margin: 30px auto;
  padding: 24px 18px 32px;
  background: #1b1b1b;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.admin-wrapper h1 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.admin-note {
  font-size: 0.85rem;
  color: #b9b9b9;
  margin-bottom: 16px;
}

.admin-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.admin-form input {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #101010;
  color: #f5f5f5;
}

/* color inputs smaller width */
.admin-form input[type="color"] {
  padding: 0;
  height: 36px;
  width: 80px;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
}

.admin-form hr {
  border: none;
  border-top: 1px solid #333;
  margin: 14px 0;
}

.admin-form h2 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.button-config {
  background: #151515;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid #242424;
}

.button-config-title {
  font-size: 0.8rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
}

.save-btn {
  margin-top: 12px;
  width: 100%;
  border: none;
  background: #e9473d;
  color: #fff;
  font-weight: 700;
  padding: 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}

.save-btn:hover {
  opacity: 0.9;
}

.save-status {
  font-size: 0.85rem;
  margin-top: 10px;
  color: #7fe47f;
}

.admin-denied {
  color: #f5f5f5;
  text-align: center;
  margin-top: 40vh;
  font-family: "Montserrat", system-ui, sans-serif;
}

/* RED GLOW BEHIND CARD */
.glow-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 0;
  width: 100%;
  overflow-x: hidden;
}


.glow-wrapper::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* Soft red glow gradient */
  background: radial-gradient(
    circle,
    rgba(255, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0) 70%
  );

  filter: blur(80px);
  z-index: -1; /* behind both card + page */
}

/* Ensure the card sits ABOVE the glow */
.page-wrapper {
  position: relative;
  z-index: 10;
}
