/* Styles for xanrean.html — moved out of the markup verbatim. */
    :root {
      --xanrean-books-bg: url('/covers/xanrean-cover-books.webp');
      --xanrean-characters-bg: url('/covers/xanrean-cover-characters.webp');
      --xanrean-lore-bg: url('/covers/xanrean-cover-lore.webp');
      --xanrean-game-bg: url('/covers/xanrean-cover-game.webp');
    }
    /* Nav - matches homepage */
    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(255,255,255,0.9);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(124,58,237,0.1);
    }
    
    [data-theme="dark"] nav {
      background: rgba(10,6,20,0.9);
      border-bottom-color: rgba(124,58,237,0.2);
    }
    
    .nav-logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-family: var(--font-display);
      font-size: 1.4rem;
      color: var(--royal);
      text-decoration: none;
    }
    
    .nav-tama {
      width: 32px;
      height: 32px;
      image-rendering: pixelated;
      background: url('/images/tama-idle.png') 0 0 / 256px 32px;
      animation: tama-nav 1.2s steps(8) infinite;
    }
    
    @keyframes tama-nav {
      from { background-position: 0 0; }
      to { background-position: -256px 0; }
    }
    
    @media (prefers-reduced-motion: reduce) {
      .nav-tama { animation: none; }
    }
    
    .theme-toggle {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: var(--surface);
      cursor: pointer;
      font-size: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    
    .theme-toggle:hover {
      border-color: var(--royal);
      transform: scale(1.05);
    }
    
    /* Hub Panels - like homepage */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    html, body {
      height: 100%;
      overflow: hidden;
    }
    
    body {
      display: flex;
      flex-direction: column;
    }
    
    main {
      width: 100%;
      margin: 0;
      padding: 0;
      margin-top: 60px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    
    .hub-choice {
      display: flex;
      flex: 1;
      width: 100%;
      margin: 0;
      padding: 0.5rem;
      gap: 0.5rem;
      align-items: stretch;
    }
    
    .hub-panel {
      flex: 1;
      height: 100%;
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 3rem;
      padding-top: 3vh;
      text-decoration: none;
      overflow: hidden;
      transition: all 0.4s ease;
      border-radius: 8px;
    }
    
    .hub-panel::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.3);
      transition: background 0.4s;
    }
    
    .hub-panel:hover::after {
      background: rgba(0,0,0,0.2);
    }
    
    [data-theme="light"] .hub-panel::after {
      background: rgba(255,255,255,0.1);
    }
    
    [data-theme="light"] .hub-panel:hover::after {
      background: rgba(255,255,255,0.05);
    }
    
    .hub-panel-books {
      background: linear-gradient(180deg, rgba(124,58,237,0.1) 0%, rgba(10,6,20,0.9) 100%),
                  var(--xanrean-books-bg) center bottom / contain no-repeat;
      border-right: 1px solid rgba(124,58,237,0.3);
    }
    
    .hub-panel-characters {
      background: linear-gradient(180deg, rgba(59,130,246,0.1) 0%, rgba(10,6,20,0.9) 100%),
                  var(--xanrean-characters-bg, url('/covers/xanrean-cover-characters.webp')) center bottom / contain no-repeat;
      border-right: 1px solid rgba(59,130,246,0.3);
    }
    
    .hub-panel-lore {
      background: linear-gradient(180deg, rgba(16,185,129,0.1) 0%, rgba(10,6,20,0.9) 100%),
                  var(--xanrean-lore-bg, url('/covers/xanrean-cover-lore.webp')) center bottom / contain no-repeat;
      border-right: 1px solid rgba(16,185,129,0.3);
    }
    
    .hub-panel-game {
      background: linear-gradient(180deg, rgba(180,83,9,0.15) 0%, rgba(10,6,20,0.9) 100%),
                  var(--xanrean-game-bg, url('/covers/xanrean-cover-game.webp')) center bottom / contain no-repeat;
    }
    
    [data-theme="light"] .hub-panel-books {
      background: linear-gradient(180deg, rgba(124,58,237,0.15) 0%, rgba(20,10,40,0.7) 100%),
                  var(--xanrean-books-bg) center bottom / contain no-repeat;
    }
    
    [data-theme="light"] .hub-panel-characters {
      background: linear-gradient(180deg, rgba(59,130,246,0.15) 0%, rgba(20,10,40,0.7) 100%),
                  var(--xanrean-characters-bg, url('/covers/xanrean-cover-characters.webp')) center bottom / contain no-repeat;
    }
    
    [data-theme="light"] .hub-panel-lore {
      background: linear-gradient(180deg, rgba(16,185,129,0.15) 0%, rgba(20,10,40,0.7) 100%),
                  var(--xanrean-lore-bg, url('/covers/xanrean-cover-lore.webp')) center bottom / contain no-repeat;
    }
    
    [data-theme="light"] .hub-panel-game {
      background: linear-gradient(180deg, rgba(180,83,9,0.25) 0%, rgba(40,25,10,0.8) 100%),
                  var(--xanrean-game-bg, url('/covers/xanrean-cover-game.webp')) center bottom / contain no-repeat;
    }
    
    .hub-content {
      position: relative;
      z-index: 1;
      text-align: center;
      color: white;
    }
    
    [data-theme="light"] .hub-content {
      color: white;
      text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    }
    
    .hub-title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4vw, 3.5rem);
      margin-bottom: 1rem;
      text-shadow: 0 2px 20px rgba(0,0,0,0.5);
      line-height: 1.1;
      min-height: 2.4em;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
    
    .hub-title br {
      display: block;
      content: "";
      margin-bottom: 0.1em;
    }
    
    .hub-title-books {
      background: linear-gradient(135deg, #c4b5fd, #a78bfa, #8b5cf6);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0 2px 10px rgba(139,92,246,0.3));
    }
    
    .hub-title-characters {
      background: linear-gradient(135deg, #93c5fd, #60a5fa, #3b82f6);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0 2px 10px rgba(59,130,246,0.3));
    }
    
    .hub-title-lore {
      background: linear-gradient(135deg, #6ee7b7, #34d399, #10b981);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0 2px 10px rgba(16,185,129,0.3));
    }
    
    .hub-title-game {
      background: linear-gradient(135deg, #fbbf24, #d97706, #92400e);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0 2px 10px rgba(180,83,9,0.3));
    }
    
    [data-theme="light"] .hub-title {
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }
    
    .hub-desc {
      font-size: 1rem;
      opacity: 0.9;
      line-height: 1.7;
      margin-bottom: 2rem;
      max-width: 400px;
      margin-left: auto;
      margin-right: auto;
      text-shadow: 0 1px 10px rgba(0,0,0,0.5);
    }
    
    .hub-cta {
      display: inline-block;
      padding: 1rem 2rem;
      border: 2px solid rgba(255,255,255,0.3);
      border-radius: 12px;
      color: white;
      font-weight: 600;
      font-size: 1rem;
      transition: all 0.3s;
      text-shadow: 0 1px 10px rgba(0,0,0,0.5);
    }
    
    .hub-panel:hover .hub-cta {
      background: rgba(255,255,255,0.1);
      border-color: rgba(255,255,255,0.6);
      transform: translateY(-4px);
    }
    
    @media (max-width: 768px) {
      html, body {
        overflow: auto;
        height: auto;
      }
      
      .hub-choice {
        flex-direction: column;
      }

      .hub-panel {
        height: 25%;
        border-right: none;
        border-bottom: 1px solid rgba(124,58,237,0.3);
      }

      .hub-panel:last-child {
        border-bottom: none;
      }
      
      footer {
        position: relative;
      }
    }
    
    /* Footer - part of flex layout */
    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;
    }
    
    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
    }
    
    .footer-brand {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-family: var(--font-display);
      font-size: 1rem;
      color: var(--royal);
    }
    
    .footer-tama {
      width: 24px;
      height: 24px;
      background: url('/images/tama-icon.png') center/contain no-repeat;
      image-rendering: pixelated;
    }
    
    .footer-text {
      color: var(--text);
    }
    
    .footer-copy {
      font-size: 0.8rem;
      color: var(--muted);
      margin: 0;
    }
    
    .footer-actions {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    
    .footer-link {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      transition: color 0.2s;
      padding: 0.5rem;
    }
    
    .footer-link:hover {
      color: var(--royal-light);
    }
    
    .footer-patreon {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.65rem 1.25rem;
      border-radius: 8px;
      background: linear-gradient(135deg, #7c3aed, #6d28d9);
      color: white;
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 600;
      transition: all 0.2s;
    }
    
    .footer-patreon:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(124,58,237,0.4);
    }
    
    .footer-newsletter {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .footer-newsletter input {
      padding: 0.6rem 0.875rem;
      border: 1px solid rgba(124,58,237,0.4);
      border-radius: 8px;
      background: rgba(255,255,255,0.05);
      color: white;
      font-size: 0.9rem;
      width: 180px;
    }
    
    .footer-newsletter input::placeholder {
      color: rgba(255,255,255,0.5);
    }
    
    .footer-newsletter button {
      padding: 0.6rem 1rem;
      border: none;
      border-radius: 8px;
      background: var(--royal-light);
      color: #0a0614;
      font-weight: 600;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .footer-newsletter button:hover {
      background: #c4b5fd;
    }
    
    @media (max-width: 768px) {
      .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
      }
      
      .footer-actions {
        flex-direction: column;
        width: 100%;
      }
      
      .footer-newsletter {
        width: 100%;
      }
      
      .footer-newsletter input {
        flex: 1;
      }
      
      .hub-grid {
        grid-template-columns: 1fr;
      }
    }
  