/* =========================================
   LX5 FINAL GLOBAL CSS — TRUE CENTERED
   ========================================= */

/* Prevent drift */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Font sizing (LOCKED — DO NOT CHANGE) */
html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }
}

/* =========================================
   BODY — CENTER PAGE AS A WHOLE
   ========================================= */

body {
  background: #000;
  color: #e6e6e6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.6;

  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================
   MAIN WRAPPER — CENTER EVERYTHING TOGETHER
   ========================================= */

main.wrap,
main.wrap.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  text-align: center;
}


/* Mobile: scale the ENTIRE block (safe) */
@media (max-width: 768px) {
  main.wrap.center {
    transform: scale(0.92);
    transform-origin: center center;
  }
}

/* =========================================
   TERMINAL / ASCII BLOCK
   ========================================= */

pre.term {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;

  white-space: pre;
  overflow-x: auto;

  font-size: 0.9em;
  line-height: 1.4;

  text-align: left; /* KEEP ASCII PERFECT */
  -webkit-overflow-scrolling: touch;
}

/* =========================================
   CENTER NON-ASCII CONTENT UNDER ART
   ========================================= */

pre.term .links,
pre.term .footer {
  display: block;
  text-align: center;
  margin: 0 auto;
}

/* =========================================
   LINKS
   ========================================= */

a {
  color: #e6e6e6;
  text-decoration: none;
}

@media (min-width: 769px) {
  a:hover {
    text-decoration: underline;
  }
}

@media (max-width: 768px) {
  a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* =========================================
   MUTED TEXT
   ========================================= */

.muted {
  color: #9a9a9a;
}

/* =========================================
   SWIPE HINT — HIDDEN ON MOBILE
   ========================================= */

@media (max-width: 768px) {
  .swipe-hint {
    display: none !important;
  }
}

/* =========================================
   SAFETY NET
   ========================================= */

* {
  box-sizing: border-box;
  max-width: 100%;
}
