:root {
  --temple-blue: #0000aa;
  --electric-blue: #0000ff;
  --gold: #ffff00;
  --red: #ff0000;
  --purple: #660099;
  --green: #008000;
  --paper: #fffdf0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  background:
    radial-gradient(circle at 18px 18px, rgba(255,255,255,.85) 0 1px, transparent 2px),
    radial-gradient(circle at 58px 38px, rgba(120,120,255,.75) 0 2px, transparent 3px),
    radial-gradient(circle at 34px 62px, rgba(255,255,255,.5) 0 1px, transparent 2px),
    #010016;
  background-size: 82px 82px;
}

body.infernal-mode {
  background:
    radial-gradient(circle at 22px 18px, rgba(255,0,0,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 58px 38px, rgba(255,190,0,.75) 0 2px, transparent 3px),
    linear-gradient(#160000, #000);
  background-size: 82px 82px, 82px 82px, auto;
}

a {
  color: #0000ee;
  font-weight: bold;
}

.star-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 46px, rgba(255,255,255,.1) 47px, transparent 48px),
    repeating-linear-gradient(-45deg, transparent 0 68px, rgba(128,0,255,.18) 69px, transparent 70px);
  opacity: .55;
}

.infernal-flames {
  position: fixed;
  right: 0;
  bottom: -34vh;
  left: 0;
  z-index: 2;
  height: 34vh;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 100%, rgba(255,255,0,.9) 0 10%, transparent 30%),
    radial-gradient(ellipse at 28% 100%, rgba(255,80,0,.95) 0 16%, transparent 36%),
    radial-gradient(ellipse at 45% 100%, rgba(255,0,0,.95) 0 18%, transparent 40%),
    radial-gradient(ellipse at 63% 100%, rgba(255,180,0,.95) 0 13%, transparent 34%),
    radial-gradient(ellipse at 82% 100%, rgba(255,35,0,.95) 0 17%, transparent 38%);
  opacity: 0;
}

body.infernal-mode .infernal-flames {
  animation: rise-from-below 1.8s ease-out forwards, flame-wobble .42s steps(2, end) 1.8s infinite;
}

.infernal-notice,
.loop-notice {
  position: fixed;
  right: 18px;
  z-index: 4;
  width: min(350px, calc(100% - 36px));
  padding: 12px;
  text-align: center;
  background: #ffffcc;
  border: 5px ridge #ff0000;
  box-shadow: 6px 6px 0 #000;
  transform: translateY(-140%);
  transition: transform .35s ease;
}

.infernal-notice {
  top: 18px;
  color: #660000;
}

.loop-notice {
  top: 128px;
  color: #000080;
}

.infernal-notice strong,
.loop-notice strong,
.infernal-notice span,
.loop-notice span {
  display: block;
}

body.infernal-mode .infernal-notice,
body.loop-mode .loop-notice {
  transform: translateY(0);
}

#loop-escape {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 15px;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 20px));
  margin: 0 auto;
  border: 4px ridge #fff;
  background: var(--paper);
  box-shadow: 0 0 0 3px #000, 0 0 28px #000;
}

body.infernal-mode .page-shell {
  background: #fff2d8;
  border-color: #ff3300;
  box-shadow: 0 0 0 3px #000, 0 0 38px #ff0000;
}

.site-header {
  background: #080074;
  color: #fff;
  text-align: center;
  border-bottom: 3px ridge #00ffff;
}

body.infernal-mode .site-header {
  background: #240000;
  border-bottom-color: #ffcc00;
}

.top-blessing {
  padding: 8px;
  color: var(--gold);
  font-weight: bold;
  letter-spacing: 0;
  text-transform: uppercase;
  background: #000;
}

body.infernal-mode .top-blessing {
  color: #ffcc00;
  background: #660000;
}

.hero {
  display: grid;
  grid-template-columns: 180px 1fr 230px;
  gap: 18px;
  align-items: center;
  min-height: 245px;
  padding: 18px;
  background:
    radial-gradient(circle at 25% 35%, rgba(255,255,255,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.9) 0 2px, transparent 4px),
    linear-gradient(#10148f, #000063);
}

body.infernal-mode .hero {
  background:
    radial-gradient(circle at 25% 35%, rgba(255,204,0,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 20%, rgba(255,0,0,.95) 0 2px, transparent 4px),
    linear-gradient(#650000, #120000);
}

body.infernal-mode .hero h1 {
  color: #ff3300;
  text-shadow: 3px 3px #ffff00, 5px 5px #000;
}

body.infernal-mode .promise::after {
  content: " Also, It Has Been Talking To Something Downstairs.";
  color: #ff9999;
}

.hero h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(42px, 7vw, 78px);
  line-height: .98;
  font-style: italic;
  text-shadow: 3px 3px #7a3600, 5px 5px #000;
}

.subtitle {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(24px, 3.8vw, 38px);
  font-weight: bold;
  text-shadow: 2px 2px #000;
}

.promise {
  margin: 16px 0 0;
  color: var(--gold);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: bold;
}

.orb {
  width: 165px;
  aspect-ratio: 1;
  margin: auto;
  border: 8px ridge #d7b553;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, #fff 0 5px, transparent 7px),
    radial-gradient(circle at 50% 50%, #e0ccff 0 6px, #8739ff 22px, #1f0b70 60px, #080026 75px);
  box-shadow: inset -18px -18px 20px rgba(0,0,0,.45), 0 12px 0 #704d00;
}

.sacred-laptop {
  width: 100%;
  image-rendering: auto;
  border: 4px outset #c0c0c0;
  background: #000;
}

.nav-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 5px;
  background: #0000cc;
}

body.infernal-mode .nav-bar {
  background: #7a0000;
}

.nav-bar a {
  padding: 10px 6px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(#1b35ff, #000087);
  border: 4px outset #5f8bff;
  text-shadow: 1px 1px #000;
}

body.infernal-mode .nav-bar a {
  background: linear-gradient(#ff3300, #660000);
  border-color: #ffcc00;
}

.nav-bar a:active,
button:active {
  border-style: inset;
}

.rainbow-rule {
  height: 10px;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, violet, red);
  border-top: 2px solid #fff;
  border-bottom: 2px solid #222;
}

.announcement {
  padding: 12px;
  color: var(--red);
  font-weight: bold;
  font-size: 22px;
  background: #fff;
  border-bottom: 4px double #ff0000;
}

.panel {
  padding: 18px;
  text-align: center;
  border-bottom: 2px groove #999;
}

.intro {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  gap: 12px;
  align-items: center;
}

h2 {
  margin: 0 0 10px;
  color: var(--temple-blue);
  font-size: clamp(25px, 4vw, 34px);
  text-transform: uppercase;
}

h3 {
  margin: 0 0 8px;
  color: var(--electric-blue);
  font-size: 21px;
}

.section-note {
  margin-top: 0;
  font-size: 20px;
  font-weight: bold;
}

.vow {
  color: var(--purple);
  font-size: 26px;
  font-weight: bold;
  text-transform: uppercase;
}

.candle {
  color: #ffcc00;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 95px;
  line-height: 1;
  text-shadow: 0 -10px 0 #ff7b00, 0 -20px 16px #ffff00, 2px 2px #5a3200;
}

.ritual-grid,
.testimonial-grid,
.offering-grid {
  display: grid;
  border: 2px ridge #d0b77a;
  background: #fff8d4;
}

.ritual-grid {
  grid-template-columns: repeat(5, 1fr);
}

.ritual-grid article,
.offering-grid article,
.testimonial-grid blockquote {
  margin: 0;
  padding: 14px;
  border-right: 2px groove #bfa86d;
  background: rgba(255,255,255,.45);
}

.ritual-grid article:last-child,
.offering-grid article:last-child,
.testimonial-grid blockquote:last-child {
  border-right: 0;
}

.ritual-icon {
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  margin: 0 auto 10px;
  color: #111;
  font-family: "Courier New", monospace;
  font-size: 33px;
  font-weight: bold;
  border: 5px ridge #aaa;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #b8e7ff 55%, #686868);
}

.live-ritual {
  width: min(680px, 100%);
  margin: 18px auto 0;
  padding: 14px;
  background: #ffffcc;
  border: 4px ridge #f4d44a;
}

#ritual-status {
  min-height: 48px;
  margin: 8px 0;
  color: #990000;
  font-weight: bold;
}

.progress-frame {
  width: 100%;
  height: 28px;
  padding: 3px;
  margin: 12px 0;
  border: 3px inset #999;
  background: #111;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #00ff00 0 12px, #ffff00 12px 24px, #00ffff 24px 36px);
  transition: width .35s ease;
}

button {
  padding: 12px 22px;
  color: #000080;
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: bold;
  background: linear-gradient(#fff, #ffcc00);
  border: 5px outset #ffdf47;
  cursor: pointer;
}

.burn-in {
  width: min(760px, 100%);
  margin: 18px auto 0;
  padding: 14px;
  color: #00ff00;
  background: #000;
  border: 5px ridge #ff0000;
  box-shadow: inset 0 0 0 3px #ffff00;
}

body.infernal-mode .burn-in h3::after {
  content: " 666";
  color: #ff3300;
}

.burn-in.is-burning {
  animation: sacred-alert .18s steps(2, end) infinite;
}

.burn-in h3 {
  color: #ffff00;
  text-transform: uppercase;
}

.burn-warning {
  color: #ff9999;
  font-weight: bold;
}

.meter-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.meter-board div {
  padding: 8px;
  background: #111;
  border: 3px inset #777;
}

.meter-board span,
.meter-board strong {
  display: block;
}

.meter-board span {
  color: #00ffff;
  font-size: 15px;
  font-weight: bold;
}

.meter-board strong {
  color: #ffff00;
  font-family: "Courier New", monospace;
  font-size: 24px;
}

#burn-log {
  min-height: 96px;
  margin: 10px 0 14px;
  padding: 10px;
  overflow: hidden;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 15px;
  text-align: left;
  white-space: pre-wrap;
  background: #050505;
  border: 3px inset #777;
}

@keyframes sacred-alert {
  0% {
    filter: saturate(1);
    transform: translateX(0);
  }

  100% {
    filter: saturate(2.2) hue-rotate(28deg);
    transform: translateX(1px);
  }
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
}

blockquote strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
}

.offerings h2 {
  color: var(--purple);
}

.offering-grid {
  grid-template-columns: repeat(4, 1fr);
}

.gem {
  font-size: 56px;
  font-family: "Arial Black", Impact, sans-serif;
  line-height: 1;
  text-shadow: 2px 2px #000;
}

.blue { color: #00bfff; }
.green { color: #00aa33; }
.red { color: #ff0033; }
.purple { color: #9933ff; }

.price {
  margin: 4px 0;
  color: #0000cc;
  font-size: 32px;
  font-weight: bold;
}

.enhanced-service {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.35) 0 2px, rgba(255,255,204,.35) 2px 4px),
    #fff8d4;
}

.enhanced-service h2 {
  color: #cc0000;
  text-decoration: blink;
}

.warning-strip {
  width: min(820px, 100%);
  margin: 0 auto 14px;
  padding: 8px;
  color: #ffff00;
  font-weight: bold;
  background: #000;
  border: 4px ridge #ff0000;
}

.enhanced-layout {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 16px;
  align-items: center;
  width: min(860px, 100%);
  margin: 0 auto 16px;
  padding: 14px;
  text-align: left;
  background: #fff;
  border: 4px ridge #c0c0c0;
}

.floppy-icon {
  position: relative;
  width: 104px;
  aspect-ratio: 1;
  margin: auto;
  background: #1d1d1d;
  border: 6px outset #888;
  box-shadow: 8px 8px 0 #999;
}

.floppy-icon::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 14px;
  width: 62px;
  height: 34px;
  background: #c0c0c0;
  border: 3px inset #777;
}

.floppy-icon::after {
  content: "HELPER";
  position: absolute;
  right: 7px;
  bottom: 10px;
  left: 7px;
  padding: 5px 2px;
  color: #000080;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  background: #ffffcc;
  border: 2px inset #777;
}

.floppy-icon span {
  position: absolute;
  right: 14px;
  top: 16px;
  width: 14px;
  height: 22px;
  background: #4d4d4d;
}

.enhanced-copy p {
  margin: 0 0 10px;
}

.small-print {
  color: #990000;
  font-size: 16px;
  font-weight: bold;
}

.parallel-tracks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: min(860px, 100%);
  margin: 0 auto;
}

.parallel-tracks article {
  padding: 14px;
  background: #fff;
  border: 4px ridge #ffcc00;
}

.parallel-tracks h3 {
  color: #cc0000;
}

.upsell {
  color: #660099;
  font-size: 20px;
  font-weight: bold;
}

.faq {
  text-align: left;
}

.faq h2 {
  text-align: center;
}

details {
  margin: 10px auto;
  padding: 10px;
  max-width: 820px;
  background: #fff;
  border: 3px ridge #d0d0d0;
}

summary {
  color: #000080;
  font-size: 21px;
  font-weight: bold;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  text-align: center;
  background: #fff;
  border-top: 8px ridge #ddd;
}

body.loop-mode .site-footer::after {
  content: "You have reached the end. Unfortunately the end has rejected your paperwork.";
  display: block;
  grid-column: 1 / -1;
  margin-top: 12px;
  color: #ff0000;
  font-weight: bold;
}

@keyframes rise-from-below {
  from {
    bottom: -34vh;
    opacity: 0;
  }

  to {
    bottom: 0;
    opacity: .84;
  }
}

@keyframes flame-wobble {
  from {
    filter: hue-rotate(0deg) saturate(1.2);
    transform: translateY(0);
  }

  to {
    filter: hue-rotate(-18deg) saturate(1.8);
    transform: translateY(8px);
  }
}

.counter {
  display: inline-block;
  margin: 0 4px;
  padding: 2px 6px;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  background: #000;
  border: 3px inset #777;
}

.browser-badge {
  justify-self: end;
  width: 185px;
  padding: 8px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  background: #f7f7f7;
  border: 3px ridge #999;
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .hero,
  .intro,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .orb {
    width: 120px;
  }

  .sacred-laptop {
    max-width: 260px;
    margin: 0 auto;
  }

  .nav-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .ritual-grid,
  .testimonial-grid,
  .offering-grid,
  .meter-board,
  .parallel-tracks,
  .enhanced-layout {
    grid-template-columns: 1fr;
  }

  .ritual-grid article,
  .offering-grid article,
  .testimonial-grid blockquote {
    border-right: 0;
    border-bottom: 2px groove #bfa86d;
  }

  .browser-badge {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #progress-bar {
    transition: none;
  }

  .burn-in.is-burning {
    animation: none;
  }

  body.infernal-mode .infernal-flames {
    animation: none;
    bottom: 0;
    opacity: .5;
  }
}
