:root {
  --enteng-red: #ff2638;
  --enteng-gold: #ffd34e;
  --enteng-green: #a8f06a;
  --enteng-ink: #070707;
  --enteng-panel: rgba(12, 12, 12, 0.9);
  --mx: 50%;
  --my: 18%;
  --enteng-safe-inline: 16px;
  --enteng-safe-inline: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--enteng-ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.enteng-page {
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #050505 0%, #120608 48%, #070707 100%) !important;
  color: #f4f1eb !important;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  cursor: url("blood-cursor.svg") 13 12, auto;
}

body.enteng-page a,
body.enteng-page button {
  cursor: url("blood-cursor.svg") 13 12, pointer;
}

body.enteng-page font {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

.enteng-cursor-light {
  position: fixed;
  left: var(--mx);
  top: var(--my);
  z-index: 80;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 38, 56, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 38, 56, 0.2) 0%, rgba(255, 38, 56, 0.08) 34%, rgba(255, 38, 56, 0) 72%);
  box-shadow: 0 0 22px rgba(255, 38, 56, 0.2);
  opacity: 0.72;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.enteng-topbar {
  position: fixed;
  top: 12px;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100vw - var(--enteng-safe-inline) - var(--enteng-safe-inline)));
  min-height: 62px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 211, 78, 0.28);
  border-radius: 7px;
  background: rgba(6, 6, 6, 0.9);
  box-shadow: 0 0 22px rgba(255, 38, 56, 0.24), 0 14px 34px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.enteng-brand {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: var(--enteng-gold) !important;
  font-family: "Arial Narrow", Arial, sans-serif !important;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  text-shadow: 0 0 12px rgba(255, 38, 56, 0.55), 0 2px 0 #000 !important;
}

.enteng-brand small {
  display: block;
  margin-top: 4px;
  color: #e8e2d8;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.enteng-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
}

.enteng-nav a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  color: #eee9df !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  text-shadow: 0 1px 0 #000 !important;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.enteng-nav a:hover,
.enteng-nav a:focus,
.enteng-nav a.is-active {
  border-color: var(--enteng-red);
  background: rgba(255, 38, 56, 0.12);
  color: var(--enteng-gold) !important;
}

.enteng-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - var(--enteng-safe-inline) - var(--enteng-safe-inline)));
  min-height: 100vh;
  margin: 0 auto;
  padding: 102px 0 64px;
  padding: 102px 0 calc(64px + env(safe-area-inset-bottom));
  color: #f4f1eb;
  text-align: justify;
  text-justify: inter-word;
  overflow-wrap: break-word;
  word-break: normal;
}

.enteng-content::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 38, 56, 0.035) 50%, transparent 100%);
  content: "";
  pointer-events: none;
}

.enteng-masthead {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 300px;
  margin: 0 0 34px;
  padding: 34px;
  overflow: hidden;
  border-bottom: 3px solid rgba(255, 38, 56, 0.72);
  border-radius: 7px 7px 0 0;
  background-color: #111;
  background-image: url("OnSet.jpg");
  background-position: center 44%;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 38, 56, 0.16);
  isolation: isolate;
  text-align: left;
}

.enteng-network {
  margin-top: 38px;
  padding: 24px;
  border: 1px solid rgba(255, 211, 78, 0.24);
  border-radius: 7px;
  background: rgba(8, 8, 8, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48), 0 0 22px rgba(255, 38, 56, 0.12);
  text-align: left;
}

.enteng-network-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.enteng-network-grid a {
  display: block;
  padding: 16px;
  border: 1px solid rgba(255, 38, 56, 0.28);
  border-radius: 6px;
  background: rgba(255, 38, 56, 0.07);
  text-decoration: none;
}

.enteng-network-grid strong,
.enteng-network-grid span { display: block; }
.enteng-network-grid span { margin-top: 4px; color: #e8e2d8; font-size: 14px; }

.enteng-masthead::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.6);
  content: "";
}

.enteng-eyebrow {
  margin: 0 0 4px !important;
  color: var(--enteng-green) !important;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.enteng-masthead h1 {
  margin: 0 !important;
  color: var(--enteng-gold) !important;
  font-family: "Segoe UI Light", "Arial Narrow", Arial, sans-serif !important;
  font-size: 64px !important;
  font-weight: 300;
  font-stretch: semi-condensed;
  line-height: 1;
  text-shadow: 0 0 9px rgba(255, 38, 56, 0.52), 0 1px 0 #5e0911, 0 2px 0 #000 !important;
}

.enteng-masthead p:last-child {
  max-width: 680px;
  margin: 10px 0 0 !important;
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 2px 4px #000;
}

.enteng-content h1,
.enteng-content h2,
.enteng-content h3 {
  color: var(--enteng-gold) !important;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif !important;
  font-weight: 500;
  font-stretch: semi-condensed;
  letter-spacing: 0;
  line-height: 1.08;
  text-align: left;
  text-shadow: 0 0 10px rgba(255, 38, 56, 0.35), 0 2px 0 #000 !important;
}

.enteng-content h1 { font-size: 46px; }
.enteng-content h2 { font-size: 34px; }
.enteng-content h3 { font-size: 27px; }
.enteng-content .enteng-trivia-title { font-size: 36px; }

.enteng-content p,
.enteng-content li,
.enteng-content blockquote {
  max-width: 100%;
  white-space: normal;
  text-align: justify;
  text-justify: inter-word;
  overflow-wrap: break-word;
  word-break: normal;
}

.enteng-content center,
.enteng-content [align="center"],
.enteng-content [align="center"] h1,
.enteng-content [align="center"] h2,
.enteng-content [align="center"] h3 {
  text-align: center !important;
}

.enteng-content .enteng-film-heading,
.enteng-content .enteng-film-heading b {
  font-weight: 500 !important;
}

.enteng-content a {
  color: var(--enteng-green) !important;
  font-weight: 800;
  overflow-wrap: break-word;
  text-decoration-color: rgba(168, 240, 106, 0.55) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.enteng-content a:hover,
.enteng-content a:focus {
  color: var(--enteng-gold) !important;
  text-shadow: 0 0 10px rgba(255, 38, 56, 0.52);
}

body.enteng-page a:focus-visible,
body.enteng-page button:focus-visible {
  outline: 3px solid var(--enteng-gold);
  outline-offset: 3px;
}

.enteng-content hr {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 38, 56, 0.75), rgba(255, 211, 78, 0.72), transparent);
}

.enteng-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--enteng-red);
  background: rgba(255, 255, 255, 0.045);
  color: #e9e3d8;
}

.enteng-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 211, 78, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.enteng-content iframe,
.enteng-content video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.enteng-content embed,
.enteng-content object { max-width: 100%; }

.enteng-content a:hover img,
.enteng-content a:focus img {
  filter: saturate(1.08) contrast(1.04);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 38, 56, 0.28);
  transform: translateY(-3px);
}

.enteng-content table {
  max-width: 100%;
  border-collapse: collapse;
  color: inherit;
}

@media (max-width: 820px) {
  .enteng-topbar {
    position: sticky;
    top: 8px;
    top: max(8px, env(safe-area-inset-top));
    left: auto;
    align-items: flex-start;
    width: min(1240px, calc(100vw - var(--enteng-safe-inline) - var(--enteng-safe-inline)));
    margin: 8px auto 0;
    padding: 8px;
    transform: none;
  }

  .enteng-brand { font-size: 18px; }

  .enteng-nav {
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .enteng-nav a {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 11px;
  }

  .enteng-content {
    width: min(calc(100vw - var(--enteng-safe-inline) - var(--enteng-safe-inline)), 1120px);
    padding-top: 22px;
    font-size: 16px;
  }

  .enteng-masthead {
    min-height: 240px;
    padding: 22px;
  }

  .enteng-masthead h1 { font-size: 50px !important; }
  .enteng-content h1 { font-size: 38px; }
  .enteng-content h2 { font-size: 30px; }
  .enteng-content h3 { font-size: 24px; }
  .enteng-content .enteng-trivia-title { font-size: 31px; }

  .enteng-network-grid { grid-template-columns: 1fr; }

  .enteng-content img[align] {
    display: block;
    float: none !important;
    margin: 14px auto !important;
  }

  .enteng-content img[align][width] {
    width: min(240px, 70vw) !important;
    height: auto !important;
  }
}

@media (max-width: 520px) {
  .enteng-topbar {
    top: 8px;
    top: max(8px, env(safe-area-inset-top));
    display: block;
    width: calc(100vw - var(--enteng-safe-inline) - var(--enteng-safe-inline));
  }

  .enteng-brand {
    display: block;
    padding: 3px 7px 7px;
  }

  .enteng-brand small { display: inline; margin-left: 6px; }
  .enteng-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    border-top: 1px solid rgba(255, 211, 78, 0.18);
  }
  .enteng-nav a { min-height: 44px; font-size: 12px; }
  .enteng-content { padding-top: 18px; text-align: left; }
  .enteng-content p,
  .enteng-content li,
  .enteng-content blockquote { text-align: left; text-justify: auto; }
  .enteng-masthead { min-height: 220px; background-position: 54% center; }
  .enteng-masthead h1 { font-size: 40px !important; }
}

@media (max-width: 820px) and (max-height: 520px) {
  .enteng-topbar { position: relative; top: auto; }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .enteng-cursor-light { display: none; }
  .enteng-topbar { backdrop-filter: none; }
  .enteng-content::before { display: none; }
  .enteng-content img { transition: none; }
  .enteng-content a:hover img,
  .enteng-content a:focus img { transform: none; }
}
