body {
  font-family: sans-serif;
  padding: 2rem;
  background: #f0f0f0;
  color: #333;
}
nav ul {
  list-style-type: none;
  padding: 0;
}
nav ul li {
  margin: 0.5rem 0;
}

* { box-sizing: border-box; }

 body {
      margin: 0;
      padding: 0;
      font-family: 'Segoe UI', sans-serif;
      color: #1d0d3a;
      background: url('https://cdn.mos.cms.futurecdn.net/BfemybeKVXCf9pgX9WCxsc-1200-80.jpg') no-repeat center center fixed;
      background-size: cover;
      text-align: center;
      position: relative;
    }

    /* Background crossfade layers */
    .bg-layer{
      position: fixed;
      inset: 0;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      opacity: 0;
      transition: opacity 1.5s ease-in-out;
      z-index: 0;
    }
    .bg-layer.visible{ opacity: 1; }

    /* Optional dim overlay for readability */
    .bg-dim{
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.22);
      z-index: 1;
      pointer-events: none;
    }

    /* Your content sits above the background */
    header, main, footer{
      position: relative;
      text-align: left;
      z-index: 2;
    }

    header{
      padding: 18px 22px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      background: rgba(0,0,0,0.28);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(255,255,255,0.15);
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }

    header h1 {
      font-size: 28px;
      margin: 0;
      text-decoration:none;
    }
    header h1 a{
      color: inherit;
      text-decoration: none;
    }

    nav a {
      margin: 0 15px;
      text-decoration: none;
      color: #298374;
      font-weight: bold;
      font-size: 16px;
      cursor: pointer;
    }
    nav a:hover{
      text-decoration: underline;
    }

    main{
      padding: 26px 22px;
      max-width: 1100px;
      margin: 0 auto;
      display: grid;
      gap: 18px;
    }

    .panel{
      background: rgba(0,0,0,0.32);
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 16px;
      padding: 18px;
      box-shadow: 0 12px 34px rgba(0,0,0,0.35);
      backdrop-filter: blur(10px);
    }

    .hero{
      min-height: 280px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 10px;
    }

    .hero .headline{
      margin: 0;
      font-size: clamp(28px, 3.5vw, 44px);
      line-height: 1.05;
      font-weight: 900;
      letter-spacing: 0.2px;
    }

    .hero .sub{
      margin: 0;
      font-size: 18px;
      opacity: 0.92;
      line-height: 1.35;
    }

    footer{
      padding: 16px 22px 26px;
      max-width: 1100px;
      margin: 0 auto;
      opacity: 0.85;
      font-size: 13px;
      position: fixed;
      bottom: 0;
      left: 0;
      text-align: left;
      width: 100%;
    }
    
/* ENTER BOX */
#enter-box {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 260px;
  height: 160px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#enter-btn {
  font-size: 22px;
  padding: 14px 36px;
  cursor: pointer;
}

#enter-btn:hover {
  transition: box-shadow 0.4s ease;
  box-shadow:
    0 0 6px rgba(255,255,255,0.6),
    0 0 14px rgba(255,255,255,0.8),
    0 0 30px rgba(255,255,255,0.5);
}

#console-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* CONSOLE */
#console {
  position: fixed;
  top: 20%;
  left: 20%;
  width: 320px;
  background: #111;
  color: #0f0;
  border: 1px solid #0f0;
  z-index: 20;
  padding: 10px;
  cursor: move;
}

.console-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#console-input {
  width: 100%;
  margin: 8px 0;
  background: black;
  color: #0f0;
  border: 1px solid #0f0;
}

.console-actions {
  display: flex;
  justify-content: space-between;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#scene {
  width: 100%;
  height: 100%;
  transform-origin: center center;
}
