/* Dead End Motel — monetization store (modal in #paypal-root only) */

#paypal-modal .modal-content.dem-store-shell {
  max-width: min(920px, calc(100vw - 28px));
  max-height: min(88vh, 900px);
  overflow: auto;
  text-align: left;
  padding: 18px 18px 16px;
}

.dem-store-hero {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.dem-store-sub {
  margin: 0 0 12px;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.45;
  font-size: 0.95rem;
}

.dem-store-trust,
.dem-store-delivery {
  margin: 0 0 8px;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.86rem;
  line-height: 1.45;
}

.dem-store-delivery {
  margin-bottom: 12px;
}

.dem-featured {
  margin: 14px 0 6px;
}

.dem-featured-intro {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.dem-featured h3,
.dem-store-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
}

.dem-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dem-featured-grid .dem-product-card.is-featured {
  min-height: 188px;
  padding: 14px 14px 12px;
}

.dem-featured-grid .dem-product-card.is-featured .dem-card-head h4 {
  font-size: 1.08rem;
}

.dem-featured-grid .dem-product-card.is-featured .dem-card-desc {
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .dem-featured-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 980px) {
  .dem-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dem-product-grid {
    grid-template-columns: 1fr;
  }
}

.dem-product-card {
  position: relative;
  border-radius: 16px;
  padding: 12px 12px 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}

.dem-product-card.is-featured {
  border-color: rgba(110, 231, 255, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.dem-card-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.16);
  border: 1px solid rgba(110, 231, 255, 0.35);
  color: rgba(224, 242, 254, 0.95);
}

.dem-card-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.28);
  color: rgba(254, 243, 199, 0.95);
}

.dem-card-head h4 {
  margin: 0 64px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.dem-card-desc {
  margin: 0;
  flex: 1;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.88rem;
  line-height: 1.45;
}

.dem-card-savings {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(167, 243, 208, 0.92);
}

.dem-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.dem-card-price {
  font-weight: 700;
  color: rgba(241, 245, 249, 0.95);
  letter-spacing: 0.01em;
}

.dem-store-section {
  margin-top: 16px;
}

.dem-reco-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(110, 231, 255, 0.07);
  border: 1px solid rgba(110, 231, 255, 0.20);
}

.dem-reco-main {
  display: grid;
  gap: 2px;
}

.dem-reco-title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.dem-reco-price {
  color: rgba(241, 245, 249, 0.92);
  font-weight: 700;
}

.dem-reco-note {
  margin: 8px 0 0;
  font-size: 0.84rem;
}

.dem-section-desc {
  margin: -4px 0 10px;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.86rem;
  line-height: 1.45;
}

.dem-store-note {
  margin: 10px 0 0;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.88rem;
  line-height: 1.45;
}

.dem-terms-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.88rem;
  line-height: 1.35;
}

.dem-purchase-history {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.88);
}

.dem-store-close {
  margin-top: 12px;
  width: 100%;
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(12, 14, 22, 0.96), rgba(12, 14, 22, 0.78), transparent);
  padding-top: 10px;
}

#paypal-modal .modal-content.dem-store-shell button[disabled],
#paypal-modal .modal-content.dem-store-shell .button[disabled],
#failure-screen .button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.failure-emotional {
  margin: 10px 0 0;
  font-size: 1.02rem;
  color: rgba(226, 232, 240, 0.95);
  line-height: 1.45;
}

.failure-context-subline {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.failure-credits-ready {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.failure-cta-primary {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.failure-cta-main {
  font-weight: 700;
}

.failure-cta-secondary {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.failure-bundle-hint {
  margin: 0;
  font-size: 0.88rem;
}

.dem-trust-lead {
  margin: 0;
  line-height: 1.45;
}

.dem-active-effects-strip {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: rgba(167, 243, 208, 0.88);
  line-height: 1.45;
}

/* ─── Campaign Progress Map ──────────────────────────────────────── */

.dem-campaign-map-outer {
  margin: 10px 0 0;
}

.dem-campaign-map {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px 10px;
}

.dem-cp-heading {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.80);
}

.dem-cp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dem-cprow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.35;
  flex-wrap: wrap;
}

.dem-cprow-icon {
  font-size: 0.82rem;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.dem-cprow-label {
  flex: 1;
  min-width: 0;
}

.dem-cprow--done .dem-cprow-label {
  color: rgba(167, 243, 208, 0.90);
}

.dem-cprow--current .dem-cprow-label {
  color: rgba(226, 232, 240, 0.95);
  font-weight: 600;
}

.dem-cprow--locked .dem-cprow-label {
  color: rgba(148, 163, 184, 0.55);
}

.dem-cprow-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(167, 243, 208, 0.10);
  border: 1px solid rgba(167, 243, 208, 0.22);
  color: rgba(167, 243, 208, 0.80);
  white-space: nowrap;
}

.dem-cp-complete {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: rgba(110, 231, 255, 0.90);
  font-weight: 600;
}

.dem-cp-reset-btn {
  margin-top: 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.65);
  cursor: pointer;
  line-height: 1.3;
}

.dem-cp-reset-btn:hover {
  border-color: rgba(251, 113, 133, 0.35);
  color: rgba(251, 113, 133, 0.80);
}

/* ─── Motel Files Panel ──────────────────────────────────────────── */

.dem-files-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dem-file {
  font-size: 0.88rem;
  line-height: 1.45;
}

.dem-file--unlocked {
  border-left: 2px solid rgba(110, 231, 255, 0.28);
  padding-left: 10px;
}

.dem-file-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.90);
  margin: 0 0 3px;
}

.dem-file-text {
  margin: 0;
  color: rgba(148, 163, 184, 0.88);
  font-style: italic;
}

.dem-file--locked {
  opacity: 0.50;
}

.dem-file-lock {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.60);
}

/* ─── Unlock Toast ───────────────────────────────────────────────── */

.dem-unlock-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9500;
  background: rgba(15, 18, 30, 0.97);
  border: 1px solid rgba(167, 243, 208, 0.30);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 32px));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.dem-unlock-toast.dem-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dem-toast-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(167, 243, 208, 0.95);
  display: block;
}

.dem-toast-sub {
  font-size: 0.80rem;
  color: rgba(148, 163, 184, 0.80);
  display: block;
}

/* ─── Failure Screen Campaign Strip ─────────────────────────────── */

#dem-failure-campaign-strip {
  margin: 10px 0 0;
}

.dem-fail-cp {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dem-fail-cp-line {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.88);
}

.dem-fail-cp-next {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: rgba(148, 163, 184, 0.88);
}

.dem-fail-cp-hint {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: rgba(167, 243, 208, 0.80);
}

/* ─── Game screen next-unlock line ──────────────────────────────── */

.dem-next-unlock-line {
  font-size: 0.80rem;
  color: rgba(148, 163, 184, 0.70);
  margin: 2px 0 0;
  line-height: 1.35;
}

/* ─── end v0.53 campaign progression ────────────────────────────── */

/* ─── v0.54 Signature Horror Events ─────────────────────────────── */

/* Horror event panel — slides in from top-center */
.dem-horror-panel {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 8500;
  width: min(420px, calc(100vw - 24px));
  background: rgba(10, 12, 20, 0.97);
  border: 1px solid rgba(251, 113, 133, 0.28);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(251, 113, 133, 0.08);
  padding: 0;
  opacity: 0;
  animation: dem-horror-enter 0.25s ease forwards;
  pointer-events: auto;
}

.dem-horror-panel[hidden] {
  display: none;
}

.dem-horror-panel--out {
  animation: dem-horror-exit 0.28s ease forwards !important;
}

@keyframes dem-horror-enter {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes dem-horror-exit {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

.dem-horror-inner {
  padding: 16px 18px 14px;
}

.dem-horror-tag {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(251, 113, 133, 0.80);
}

.dem-horror-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.97);
  line-height: 1.25;
}

.dem-horror-body {
  margin: 0 0 14px;
  font-size: 0.90rem;
  color: rgba(148, 163, 184, 0.92);
  line-height: 1.50;
  font-style: italic;
}

.dem-horror-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dem-horror-btn {
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.15s, opacity 0.15s;
}

.dem-horror-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dem-horror-btn--caution {
  background: rgba(251, 113, 133, 0.10);
  border-color: rgba(251, 113, 133, 0.32);
  color: rgba(254, 205, 211, 0.95);
}

.dem-horror-btn--caution:hover:not(:disabled) {
  background: rgba(251, 113, 133, 0.20);
}

.dem-horror-btn--secondary {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
  color: rgba(203, 213, 225, 0.92);
}

.dem-horror-btn--secondary:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.16);
}

.dem-horror-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(148, 163, 184, 0.70);
}

.dem-horror-btn--ghost:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.20);
  color: rgba(148, 163, 184, 0.88);
}

.dem-horror-btn--primary {
  background: rgba(110, 231, 183, 0.12);
  border-color: rgba(110, 231, 183, 0.32);
  color: rgba(209, 250, 229, 0.95);
}

.dem-horror-btn--primary:hover:not(:disabled) {
  background: rgba(110, 231, 183, 0.22);
}

/* Guest risk traits */
.dem-risk-traits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 6px 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dem-risk-level {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid;
}

.dem-risk-level--high {
  background: rgba(251, 113, 133, 0.10);
  border-color: rgba(251, 113, 133, 0.28);
  color: rgba(254, 205, 211, 0.90);
}

.dem-risk-level--medium {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
  color: rgba(254, 243, 199, 0.88);
}

.dem-risk-level--low {
  background: rgba(110, 231, 183, 0.06);
  border-color: rgba(110, 231, 183, 0.18);
  color: rgba(167, 243, 208, 0.80);
}

.dem-risk-level--unknown {
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.18);
  color: rgba(148, 163, 184, 0.70);
}

.dem-risk-chip {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(148, 163, 184, 0.80);
  white-space: nowrap;
}

/* Camera blink effect — subtle static on camera digest */
@keyframes dem-camera-blink-frames {
  0%   { opacity: 1; }
  15%  { opacity: 0.70; filter: contrast(1.15) brightness(0.88); }
  30%  { opacity: 1; filter: none; }
  50%  { opacity: 0.80; filter: contrast(1.10); }
  70%  { opacity: 1; filter: none; }
  85%  { opacity: 0.90; }
  100% { opacity: 1; filter: none; }
}

.dem-camera-blink {
  animation: dem-camera-blink-frames 2.8s ease-in-out forwards;
}

/* Power flicker — very subtle, no seizure risk */
@keyframes dem-power-flicker-frames {
  0%   { filter: none; }
  10%  { filter: brightness(0.88); }
  20%  { filter: none; }
  38%  { filter: brightness(0.92); }
  50%  { filter: none; }
  70%  { filter: brightness(0.90); }
  85%  { filter: none; }
  100% { filter: none; }
}

.dem-power-flicker {
  animation: dem-power-flicker-frames 3.2s ease-in-out forwards;
}

/* Failure screen horror factors */
#dem-failure-horror-factors {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(251, 113, 133, 0.04);
  border: 1px solid rgba(251, 113, 133, 0.14);
}

.dem-fail-horror-head {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(251, 113, 133, 0.80);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dem-fail-horror-list {
  margin: 0;
  padding: 0 0 0 14px;
  font-size: 0.84rem;
  color: rgba(148, 163, 184, 0.88);
  line-height: 1.55;
}

/* ─── end v0.54 signature horror ─────────────────────────────────── */
