body {
  margin: 0;
  font-family: 'Courier New', monospace;
  background: #050505;
  color: #d9d9d9;
}

/* NAV */
nav {
  padding: 18px 22px;
  border-bottom: 1px solid #222;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav button {
  background: none;
  border: none;
  color: #d9d9d9;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  padding: 4px 2px;
  font-family: 'Courier New', monospace;
}

nav button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #d9d9d9;
  transition: width 0.2s ease;
}

nav button:hover::after {
  width: 100%;
}

/* PAGES */
.page {
  display: none;
  padding: 30px;
}

.page.active {
  display: block;
}

h1 {
  letter-spacing: 2px;
}

/* SYSTEM TEXT */
.system {
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.8;
}

/* LOADING DOTS */
.dots::after {
  content: '';
  animation: dots 1.5s steps(3,end) infinite;
}

@keyframes dots {
  0% { content: ''; }
  33% { content: '.'; }
  66% { content: '..'; }
  100% { content: '...'; }
}

/* GENERAL BUTTONS */
.action-btn {
  background: none;
  border: 1px solid #333;
  color: #d9d9d9;
  padding: 8px 12px;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  margin-top: 10px;
}

.action-btn:hover {
  background: #111;
}

/* TEXTAREA */
textarea {
  width: 100%;
  height: 140px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  margin-top: 10px;
  padding: 10px;
  font-family: 'Courier New', monospace;
  resize: vertical;
}

.entry {
  border: 1px solid #333;
  padding: 12px;
  margin-top: 12px;
  white-space: pre-wrap;
}

/* TERMINAL OVERLAY */
#terminalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#terminalWindow {
  width: 500px;
  background: #000;
  border: 1px solid #333;
  padding: 15px;
}

.header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #222;
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  opacity: 0.8;
}

.close-btn {
  background: none;
  border: none;
  color: #d9d9d9;
  cursor: pointer;
  font-size: 14px;
}

#cmd {
  width: 100%;
  background: black;
  border: none;
  color: #d9d9d9;
  outline: none;
  font-family: monospace;
  margin-top: 10px;
}

.output {
  min-height: 40px;
  white-space: pre-wrap;
  font-size: 13px;
  opacity: 0.9;
}

/* SECRET HEAVEN MODE */
.heaven-mode {
  background: #f5f5f5;
  color: #111;
}

.heaven-mode nav {
  opacity: 0.2;
  pointer-events: auto;
}

.heaven-mode nav button {
  color: #111;
}

.heaven-mode nav button::after {
  background: #111;
}

.heaven-mode .entry {
  border: 1px solid #ccc;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

.heaven-mode textarea {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
}

.heaven-mode .action-btn {
  border: 1px solid #bbb;
  color: #111;
}

.heaven-mode .action-btn:hover {
  background: #eee;
}


/* ASCENSION OVERLAY */

#ascension {
  position: fixed;
  inset: 0;
  background: #050505;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  text-align: center;
  animation: fadeIn 1s ease;
}

#ascension.active {
  display: flex;
}

.ascend-box {
  opacity: 0.95;
}

.wings {
  font-size: 20px;
  line-height: 1.4;
  animation: flutter 2s ease-in-out infinite;
  margin-bottom: 20px;
}

.ascend-text {
  opacity: 0.7;
  line-height: 1.8;
  margin-top: 20px;
}
/* ===== TRANSITIONS ===== */

.page {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.page.active {
  display: block;
  opacity: 1;
}

/* ASCENSION FIXED AS OVERLAY */
#ascension {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  text-align: center;
  background: #050505;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#ascension.active {
  display: flex;
  opacity: 1;
}

/* WHITE “YOU MADE IT” SCREEN */
#heavenConfirm {
  position: fixed;
  inset: 0;
  background: white;
  color: #111;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#heavenConfirm.active {
  display: flex;
  opacity: 1;
}

#heavenConfirm {
  flex-direction: column;
}

.heaven-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.heaven-nav button {
  background: none;
  border: 1px solid #ccc;
  padding: 6px 10px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
}

.heaven-section {
  display: none;
}

.heaven-section.active {
  display: block;
}

.heaven-mode nav {
  display: none;
}

/* DESCENSION WHITE SCREEN */

#descension {
  position: fixed;
  inset: 0;
  background: white;
  color: #111;
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 999998;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#descension.active {
  display: flex;
  opacity: 1;
}

/* DARK FALL CONFIRM */

#fallConfirm {
  position: fixed;
  inset: 0;
  background: #050505;
  color: #d9d9d9;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#fallConfirm.active {
  display: flex;
  opacity: 1;
}

.entry {
  border: 1px solid #333;
  padding: 12px;
  margin-top: 12px;
  white-space: pre-wrap;
  position: relative;
}

.delete-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: #d9d9d9;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.hidden-link {
  opacity: 0.45;
  cursor: pointer;
  transition: 0.3s;
}

.hidden-link:hover {
  opacity: 1;
  text-shadow: 0 0 8px white;
}