/* fixed_63_1_4: hard game-copy protection + privacy curtain. */

/*
 * Protect the whole game root instead of trying to predict every dynamic
 * question markup variant. Chat lives outside #app and remains unaffected.
 */
#app,
#app * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* Keep typing/editing surfaces usable. */
#app input,
#app textarea,
#app select,
#app [contenteditable="true"],
#app [contenteditable="plaintext-only"],
#app input *,
#app textarea *,
#app select *,
#app [contenteditable="true"] *,
#app [contenteditable="plaintext-only"] * {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

#app img,
#app video,
#app svg,
#app canvas {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important;
}

.privacy-shield {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #02071d;
  color: #f8f9ff;
  font-family: Inter, Arial, sans-serif;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.privacy-shield[hidden] { display: none !important; }

.privacy-shield-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(360px, 92vw);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(246, 200, 77, .34);
  background: #041447;
}

.privacy-shield-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 2px solid #f6c84d;
  color: #f6c84d;
  font-weight: 900;
  letter-spacing: .12em;
}

.privacy-shield-card strong { font-size: 22px; }
.privacy-shield-card small { color: #aeb9df; font-size: 13px; }

@media print {
  body > *:not(.privacy-shield) { display: none !important; }
  .privacy-shield {
    display: grid !important;
    position: fixed !important;
    inset: 0 !important;
  }
}
