/* ===== Base ===== */
* { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f3f4f6;
  color: #111;
}

/* ===== Header ===== */
.lae-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.lae-header .back{
  text-decoration: none;
  color: #444;
  font-weight: 500;
}

.lae-header .brand{ font-weight: 700; }

/* ===== Split Screen ===== */
.split{
  height: calc(100vh - 57px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.panel{
  text-decoration: none;
  color: inherit;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 28px;
  position: relative;
  overflow: hidden;
  border: 0;

  cursor: pointer;
}

/* Card */
.panel-inner{
  width: min(520px, 100%);
  background: rgba(255,255,255,0.92);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);

  position: relative;
  z-index: 1;
}

.panel-title{
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 8px 0;
}

.panel-sub{
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}

/* Base panel colors */
.panel-lore{ background: #fff; }
.panel-story{
  background: #fff;
  border-left: 1px solid #e5e7eb;
}

/* Background PNG layers */
.panel-lore::before,
.panel-story::before{
  content: "";
  position: absolute;
  inset: 0;

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  opacity: 0.22;
  transform: scale(1.02);

  pointer-events: none;
  z-index: 0;
}

/* CORRECT paths based on your folder: nerdvous.net/assets/lore.png, story.png */
.panel-lore::before{ background-image: url("assets/lore.png"); }
.panel-story::before{ background-image: url("assets/story.png"); }

/* Hover */
.panel:hover .panel-inner{
  transform: translateY(-2px);
  transition: transform 140ms ease;
}

/* Mobile stack */
@media (max-width: 900px){
  .split{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: auto;
  }

  .panel-story{
    border-left: 0;
    border-top: 1px solid #e5e7eb;
  }

  .panel-title{ font-size: 36px; }
}