/* Hidden Spiney easter egg: zero visible trigger UI. The egg opens by typing
   "spiney" (outside text fields), entering the Konami code, or
   triple-clicking empty masthead space. This file styles only the modal;
   class names must match spiney-easter-egg.js. */

/* Full-screen modal backdrop */
.spiney-egg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(13, 30, 42, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* The viewer frame is the modal box itself */
.spiney-egg-frame {
  width: min(980px, 96vw);
  height: min(800px, 92vh);
  border: 1px solid #c9d8e0;
  border-radius: 18px;
  background: #f7fafb;
  box-shadow: 0 24px 70px rgba(5, 15, 25, 0.45);
}

/* Round x button pinned to the frame's top-right corner */
.spiney-egg-close {
  position: absolute;
  top: calc((100vh - min(800px, 92vh)) / 2 - 15px);
  right: calc((100vw - min(980px, 96vw)) / 2 - 15px);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: #1e40af;
  color: #fff;
  font: 700 18px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 15, 25, 0.4);
}
.spiney-egg-close:hover,
.spiney-egg-close:focus-visible {
  background: #16307f;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .spiney-egg-backdrop { padding: 10px; }
  .spiney-egg-frame { width: 98vw; height: 94vh; border-radius: 14px; }
  .spiney-egg-close {
    top: calc((100vh - 94vh) / 2 - 15px);
    right: calc((100vw - 98vw) / 2 - 15px);
  }
}
