/* Styles for xanrean/lore/species.html — moved out of the markup verbatim. */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html, body { height: 100%; overflow: hidden; }

    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 2rem;
      background: rgba(10,6,20,0.9);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(16,185,129,0.2);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--royal);
      text-decoration: none;
    }

    body {
      display: flex;
      flex-direction: column;
    }

    main {
      flex: 1;
      margin-top: 60px;
      display: flex;
      flex-direction: column;
    }

    .species-grid {
      display: grid;
      flex: 1;
      width: 100%;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(2, 1fr);
    }

    .species-panel {
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      color: white;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s ease;
      border-right: 1px solid rgba(255,255,255,0.1);
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .species-panel:nth-child(3n) { border-right: none; }
    .species-panel:nth-child(n+4) { border-bottom: none; }
    .species-panel:hover { transform: scale(1.02); z-index: 2; }

    .species-panel::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.35);
      transition: background 0.3s;
    }

    .species-panel:hover::after { background: rgba(0,0,0,0.25); }

    /* Panel backgrounds */
    .panel-nekojin {
      background: linear-gradient(180deg, rgba(139,92,246,0.2) 0%, rgba(10,6,20,0.95) 100%);
    }

    .panel-foxkin {
      background: linear-gradient(180deg, rgba(245,158,11,0.2) 0%, rgba(10,6,20,0.95) 100%);
    }

    .panel-elves {
      background: linear-gradient(180deg, rgba(16,185,129,0.2) 0%, rgba(10,6,20,0.95) 100%);
    }

    .panel-wolfkin {
      background: linear-gradient(180deg, rgba(100,116,139,0.25) 0%, rgba(10,6,20,0.95) 100%);
    }

    .panel-kitsune {
      background: linear-gradient(180deg, rgba(236,72,153,0.2) 0%, rgba(10,6,20,0.95) 100%);
    }

    .panel-travelers {
      background: linear-gradient(180deg, rgba(59,130,246,0.2) 0%, rgba(10,6,20,0.95) 100%);
    }

    .panel-content {
      position: relative;
      z-index: 1;
      text-align: center;
      padding: 2rem;
      padding-top: 3vh;
      max-width: 350px;
    }

    .panel-badge {
      display: inline-block;
      padding: 0.5rem 1rem;
      border-radius: 100px;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }

    .panel-badge.purple { background: rgba(139,92,246,0.3); border: 1px solid rgba(139,92,246,0.5); color: #c4b5fd; }
    .panel-badge.orange { background: rgba(245,158,11,0.3); border: 1px solid rgba(245,158,11,0.5); color: #fcd34d; }
    .panel-badge.green { background: rgba(16,185,129,0.3); border: 1px solid rgba(16,185,129,0.5); color: #6ee7b7; }
    .panel-badge.slate { background: rgba(100,116,139,0.3); border: 1px solid rgba(100,116,139,0.5); color: #cbd5e1; }
    .panel-badge.pink { background: rgba(236,72,153,0.3); border: 1px solid rgba(236,72,153,0.5); color: #fbcfe8; }
    .panel-badge.blue { background: rgba(59,130,246,0.3); border: 1px solid rgba(59,130,246,0.5); color: #93c5fd; }

    .panel-title {
      font-family: var(--font-display);
      font-size: clamp(1.5rem, 3vw, 2.5rem);
      font-weight: 700;
      line-height: 1.1;
      margin-bottom: 1rem;
    }

    .panel-title.purple { background: linear-gradient(135deg, #c4b5fd, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .panel-title.orange { background: linear-gradient(135deg, #fcd34d, #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .panel-title.green { background: linear-gradient(135deg, #a7f3d0, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .panel-title.slate { background: linear-gradient(135deg, #cbd5e1, #64748b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .panel-title.pink { background: linear-gradient(135deg, #fbcfe8, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .panel-title.blue { background: linear-gradient(135deg, #bfdbfe, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

    .panel-desc {
      font-size: 0.95rem;
      line-height: 1.6;
      opacity: 0.95;
      margin-bottom: 1.5rem;
    }

    .panel-cta {
      display: inline-block;
      padding: 0.75rem 1.5rem;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 8px;
      color: white;
      font-weight: 600;
    }

    .species-panel:hover .panel-cta {
      background: rgba(255,255,255,0.2);
      border-color: rgba(255,255,255,0.4);
    }

    footer {
      flex-shrink: 0;
      height: 52px;
      background: rgba(10,6,20,0.9);
      backdrop-filter: blur(12px);
      border-top: 1px solid rgba(255,255,255,0.1);
      padding: 0.75rem 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .footer-link {
      color: rgba(255,255,255,0.7);
      text-decoration: none;
    }

    @media (max-width: 900px) {
      .species-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
      }
      .species-panel {
        border-right: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
      }
      .species-panel:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.1); }
      .species-panel:nth-child(n+4) { border-bottom: 1px solid rgba(255,255,255,0.1); }
      .species-panel:nth-child(2n) { border-right: none; }
      .species-panel:nth-child(n+5) { border-bottom: none; }
    }

    @media (max-width: 500px) {
      .species-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, minmax(200px, 1fr));
      }
      .species-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
      }
      .species-panel:nth-child(n+5) { border-bottom: 1px solid rgba(255,255,255,0.1); }
      .species-panel:last-child { border-bottom: none; }
    }
  