/* MPE Notipede: Ghost shell for the Godot terrarium export. */
:root {
  --notipede-ink: #171a20;
  --notipede-muted: rgba(23, 26, 32, .66);
  --notipede-rim: #e7e0d2;
  --notipede-rim-mid: #a8a297;
  --notipede-rim-dark: #5f5c56;
  --notipede-gold: #eec643;
  --notipede-shadow: rgba(39, 34, 27, .28);
}

html[data-color-scheme="dark"] {
  --notipede-ink: rgba(247, 248, 250, .96);
  --notipede-muted: rgba(247, 248, 250, .66);
  --notipede-rim: #20242a;
  --notipede-rim-mid: #13161b;
  --notipede-rim-dark: #050608;
  --notipede-shadow: rgba(0, 0, 0, .78);
}

.mpe-notipede-block {
  position: relative;
  margin: clamp(4.4rem, 7vw, 7rem) 0 clamp(4.8rem, 7vw, 7.4rem);
  color: var(--notipede-ink);
}

.mpe-notipede-copy {
  max-width: 78rem;
  margin: 0 auto 1.45rem;
}

.mpe-notipede-kicker {
  margin: 0 0 .48rem;
  color: var(--notipede-muted);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mpe-notipede-copy h2 {
  margin: 0 0 .55rem;
}

.mpe-notipede-copy p:last-child {
  margin-bottom: 0;
}

.mpe-notipede-well {
  position: relative;
  isolation: isolate;
  min-height: clamp(42rem, 64vw, 62rem);
  margin: 2.2rem auto 1.5rem;
  color: var(--notipede-ink);
}

.mpe-notipede-well::before {
  content: "";
  position: absolute;
  inset: 0 -1rem .2rem;
  z-index: -2;
  pointer-events: none;
  clip-path: polygon(4% 0%, 96% 0%, 100% 13%, 100% 87%, 94% 100%, 6% 100%, 0% 87%, 0% 13%);
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, .36), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, .48), rgba(255, 255, 255, .03) 30%, rgba(0, 0, 0, .26) 76%),
    linear-gradient(180deg, var(--notipede-rim), var(--notipede-rim-mid) 28%, var(--notipede-rim-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48), inset 0 -27px 48px rgba(0, 0, 0, .36), 0 46px 105px var(--notipede-shadow);
}

.mpe-notipede-well::after {
  content: "";
  position: absolute;
  inset: .18rem -.55rem 3.4rem;
  z-index: 7;
  pointer-events: none;
  clip-path: polygon(4% 0%, 96% 0%, 100% 13%, 100% 87%, 94% 100%, 6% 100%, 0% 87%, 0% 13%);
  border-radius: 34px;
  padding: clamp(1.05rem, 2.2vw, 2.35rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .06) 19%, transparent 39%),
    linear-gradient(315deg, rgba(0, 0, 0, .36), transparent 42%),
    linear-gradient(180deg, var(--notipede-rim), var(--notipede-rim-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .60), inset 0 -16px 34px rgba(0, 0, 0, .36), 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.mpe-notipede-viewport {
  position: absolute;
  inset: clamp(3.7rem, 5.6vw, 5.55rem) clamp(1.5rem, 3.7vw, 3.95rem) 5.9rem;
  z-index: 1;
  overflow: hidden;
  border-radius: 26px;
  clip-path: polygon(3.7% 0%, 96.3% 0%, 100% 12.5%, 100% 87.5%, 94% 100%, 6% 100%, 0% 87.5%, 0% 12.5%);
  background: radial-gradient(ellipse at 50% 82%, rgba(0, 0, 0, .50), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .34)), #050608;
  box-shadow: inset 0 78px 120px rgba(0, 0, 0, .65), inset 0 -44px 78px rgba(0, 0, 0, .56), 0 32px 94px rgba(0, 0, 0, .34);
}

.mpe-notipede-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(103deg, rgba(255, 255, 255, .16), transparent 21%, transparent 72%, rgba(0, 0, 0, .22)),
    radial-gradient(circle at 17% 17%, rgba(255, 255, 255, .12), transparent 10%),
    linear-gradient(90deg, transparent 49.85%, rgba(255, 255, 255, .12) 50%, transparent 50.18%);
  mix-blend-mode: screen;
  opacity: .72;
}

.mpe-notipede-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050608;
}

.mpe-notipede-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: rgba(238, 198, 67, .68);
  background: #050608;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: clamp(.82rem, 1vw, 1.05rem);
  letter-spacing: .18em;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.mpe-notipede-well.is-loaded .mpe-notipede-loading {
  opacity: 0;
  visibility: hidden;
}

.mpe-notipede-well[data-state="empty"] .mpe-notipede-viewport {
  box-shadow: inset 0 78px 120px rgba(0, 0, 0, .62), inset 0 -44px 78px rgba(0, 0, 0, .52), 0 0 0 1px rgba(86, 255, 220, .12), 0 32px 94px rgba(0, 0, 0, .34);
}

.mpe-notipede-runner {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  transition: opacity .4s ease;
}

html[data-notipede-free="true"] .mpe-notipede-runner {
  opacity: 1;
}

.mpe-notipede-dragger {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 61;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  background: transparent;
}

.mpe-notipede-dragger:active,
html[data-notipede-dragging="true"] .mpe-notipede-dragger {
  cursor: grabbing;
}

.mpe-badge-rack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .78rem;
  margin: 2.4rem auto 1.3rem;
}

html:not([data-edw-badge-unlocked="true"]):not([data-notipede-unlocked="true"]):not([data-hoover-eyebot-unlocked="true"]):not([data-citadel-drone-unlocked="true"]):not([data-citadel-gasbag-unlocked="true"]) .mpe-badge-rack {
  display: none;
}

.mpe-badge {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 4.35rem;
  height: 4.35rem;
  min-width: 4.35rem;
  min-height: 4.35rem;
  padding: 0;
  border: 1px solid rgba(127, 127, 127, .27);
  border-radius: 999px;
  background: rgba(127, 127, 127, .08);
  color: inherit;
  cursor: pointer;
  appearance: none;
}

.mpe-badge[hidden] {
  display: none !important;
}

.mpe-badge span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.mpe-badge--entropy.edw-footer-orb {
  width: 4.35rem;
  height: 4.35rem;
  min-width: 4.35rem;
  min-height: 4.35rem;
  border-color: rgba(238, 198, 67, .34);
  background-color: rgba(8, 10, 9, .24);
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 47%, rgba(0, 0, 0, .44) 75%),
    url("../images/penrose-pattern.svg");
  background-position: center, center;
  background-size: 100% 100%, 18rem auto;
  opacity: .78;
  filter: saturate(.62) grayscale(.22) contrast(1.12);
}

.mpe-badge--entropy.edw-footer-orb::before {
  content: "";
  position: absolute;
  inset: .62rem;
  border-radius: 50%;
  background-image: url("../images/penrose-pattern.svg");
  background-position: center;
  background-size: 13rem auto;
  box-shadow: inset 0 0 0 1px rgba(238, 198, 67, .18), 0 0 12px rgba(238, 198, 67, .09);
  opacity: .9;
}

.mpe-badge--notipede::before {
  content: "";
  width: 3.05rem;
  height: 3.05rem;
  background-image: url("../images/icons/notipede-rock-mark.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 0 5px rgba(238, 198, 67, .22));
}

html[data-notipede-free="true"] .mpe-badge--notipede::before {
  background-image: url("../images/icons/notipede-godot-mark.svg");
}

.mpe-badge--notipede::after {
  content: "";
  position: absolute;
  inset: .36rem;
  border-radius: 50%;
  border: 1px solid rgba(238, 198, 67, .18);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .22);
  pointer-events: none;
}

html[data-notipede-free="true"] .mpe-badge--notipede {
  border-color: rgba(88, 255, 220, .48);
  box-shadow: 0 0 0 1px rgba(88, 255, 220, .16), 0 0 28px rgba(88, 255, 220, .16);
}

.mpe-badge:hover,
.mpe-badge:focus-visible {
  transform: translateY(-1px) scale(1.035);
  outline: none;
}

@media (max-width: 760px) {
  .mpe-notipede-well {
    min-height: 60rem;
  }

  .mpe-notipede-viewport {
    inset: 4.2rem 1rem 5.8rem;
    border-radius: 18px;
  }

  .mpe-badge {
    width: 4.7rem;
    height: 4.7rem;
    min-width: 4.7rem;
    min-height: 4.7rem;
  }

  .mpe-badge--entropy.edw-footer-orb {
    width: 4.7rem;
    height: 4.7rem;
    min-width: 4.7rem;
    min-height: 4.7rem;
  }
}
