:root{
      --bg:#0b1020;
      --card:#0f1733;
      --card2:#101a3b;
      --text:#e9eeff;
      --muted:#b8c2ff;
      --accent:#7aa2ff;
      --accent2:#55f2d0;
      --danger:#ff5a6d;
      --shadow: 0 20px 40px rgba(0,0,0,.35);
      --radius: 18px;
    }
    *{box-sizing:border-box}
    body{
      margin:0;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
      background: radial-gradient(1200px 800px at 20% 10%, #17224a 0%, var(--bg) 50%, #070a14 100%);
      color:var(--text);
      min-height:100vh;
      overflow-x:hidden;
    }
    header{
      padding: 28px 18px 10px;
      text-align:center;
    }
    header h1{
      margin:0;
      font-weight: 800;
      letter-spacing: .4px;
      font-size: clamp(24px, 3vw, 40px);
      text-shadow: 0 10px 20px rgba(0,0,0,.35);
    }
    header p{
      margin: 10px auto 0;
      max-width: 1000px;
      color: var(--muted);
      line-height: 1.55;
      font-size: 15.5px;
    }

    .wrap{
      max-width: 1200px;
      margin: 0 auto;
      padding: 18px 16px 60px;
    }

    .grid{
      display:grid;
      grid-template-columns: 320px 1fr;
      gap: 18px;
      align-items:start;
    }
    @media (max-width: 980px){
      .grid{grid-template-columns: 1fr}
    }

    .panel{
      background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
      border: 1px solid rgba(255,255,255,.10);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow:hidden;
      backdrop-filter: blur(10px);
    }

    .panel .hd{
      padding: 14px 14px 10px;
      display:flex;
      gap:10px;
      align-items:center;
      justify-content:space-between;
      border-bottom: 1px solid rgba(255,255,255,.08);
      background: rgba(0,0,0,.12);
    }
    .badge{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding: 7px 10px;
      border-radius: 999px;
      font-size: 12px;
      color: rgba(255,255,255,.85);
      background: rgba(122,162,255,.15);
      border: 1px solid rgba(122,162,255,.25);
    }
    .small{
      color: rgba(255,255,255,.65);
      font-size: 12px;
    }

    .menu{
      padding: 12px;
      display:flex;
      flex-direction:column;
      gap:10px;
    }
    .menu button{
      width:100%;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(16,26,59,.6);
      color:var(--text);
      text-align:left;
      padding: 12px 12px;
      border-radius: 14px;
      cursor:pointer;
      transition: transform .12s ease, background .12s ease, border-color .12s ease;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
    }
    .menu button:hover{
      transform: translateY(-1px);
      background: rgba(16,26,59,.8);
      border-color: rgba(122,162,255,.35);
    }
    .menu button.active{
      background: rgba(122,162,255,.16);
      border-color: rgba(122,162,255,.5);
      box-shadow: 0 10px 25px rgba(122,162,255,.18);
    }
    .menu button span{
      display:flex;
      flex-direction:column;
      gap:2px;
    }
    .menu button .t{
      font-weight: 700;
      font-size: 14px;
    }
    .menu button .d{
      font-size: 12px;
      color: rgba(255,255,255,.65);
      line-height:1.25;
    }
    .pill{
      font-size: 11px;
      padding: 4px 8px;
      border-radius: 999px;
      border:1px solid rgba(255,255,255,.12);
      color: rgba(255,255,255,.75);
      background: rgba(0,0,0,.15);
      white-space:nowrap;
    }

    .content{ padding: 16px; }
    .card{
      background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
      border: 1px solid rgba(255,255,255,.10);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow:hidden;
      backdrop-filter: blur(10px);
    }
    .card .top{
      padding: 16px 16px 12px;
      border-bottom: 1px solid rgba(255,255,255,.08);
      background: rgba(0,0,0,.10);
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:12px;
    }
    .card h2{
      margin:0;
      font-size: 18px;
      font-weight: 800;
      letter-spacing: .25px;
    }
    .card p{
      margin: 8px 0 0;
      color: rgba(255,255,255,.72);
      line-height: 1.55;
      font-size: 14.5px;
      max-width: 980px;
    }
    .card .body{
      padding: 14px 16px 18px;
      display:grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .info{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    @media (max-width: 980px){
      .info{grid-template-columns: 1fr}
    }
    .box{
      padding: 14px 14px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.14);
    }
    .box h3{
      margin:0 0 6px;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: .2px;
    }
    .box ul{
      margin:0;
      padding-left: 18px;
      color: rgba(255,255,255,.75);
      line-height:1.6;
      font-size: 14px;
    }
    .box li{margin: 4px 0}

    .actions{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
      padding: 12px 16px 16px;
      border-top: 1px solid rgba(255,255,255,.08);
      background: rgba(0,0,0,.08);
    }
    .btn{
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(16,26,59,.65);
      color: var(--text);
      padding: 10px 12px;
      border-radius: 14px;
      cursor:pointer;
      font-weight: 700;
      font-size: 13px;
      transition: transform .12s ease, background .12s ease, border-color .12s ease;
      display:inline-flex;
      align-items:center;
      gap:8px;
    }
    .btn:hover{
      transform: translateY(-1px);
      background: rgba(16,26,59,.85);
      border-color: rgba(122,162,255,.35);
    }
    .btn.primary{
      background: rgba(122,162,255,.18);
      border-color: rgba(122,162,255,.45);
    }
    .btn.danger{
      background: rgba(255,90,109,.14);
      border-color: rgba(255,90,109,.35);
    }

    /* PERSONAJE ANIME */
    #animeChar{
      position: fixed;
      width: 86px;
      height: 86px;
      left: 18px;
      top: 55vh;
      transform: translate(-0px,-50%);
      z-index: 9998;
      pointer-events:none;
      filter: drop-shadow(0 20px 30px rgba(0,0,0,.55));
      transition: left 420ms ease, top 420ms ease;
    }
    #animeChar img{
      width: 100%;
      height: 100%;
      object-fit: contain;
      image-rendering: auto;
      border-radius: 18px;
      background: rgba(0,0,0,.12);
      border: 1px solid rgba(255,255,255,.08);
      backdrop-filter: blur(4px);
    }
    #animeChar .bubble{
      position:absolute;
      left: 88px;
      top: 8px;
      padding: 8px 10px;
      background: rgba(8,12,28,.75);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 14px;
      color: rgba(255,255,255,.88);
      font-weight: 800;
      font-size: 12px;
      max-width: 220px;
      opacity: 0;
      transform: translateY(6px);
      transition: opacity .25s ease, transform .25s ease;
      box-shadow: 0 20px 40px rgba(0,0,0,.35);
      backdrop-filter: blur(10px);
      white-space: nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    #animeChar.showBubble .bubble{
      opacity: 1;
      transform: translateY(0);
    }
